Generic Type Instantiation in C#

by newuser09876 September 1, 2011 4:08PM

Most people know that you can get a Type object from a qualified string using the Type.GetType() method.  Let's say you have a class called MyClass in your MyAssembly assembly:

namespace MyAssembly
    public class MyClass
        public MyClass() { }
        public string Name { get; set; }

You can use the following call to get a System.Type instance for MyClass:

var type = System.Type.GetType("MyAssembly.MyClass,MyAssembly");

But what do you do if your class is defined with a generic type?  Let's say your class is defined like this:

namespace MyAssembly
    public class MyClass<T>
        public MyClass() { }
        public string Name { get; set; }
        public T Data { get; set; }

If you wanted an Type object for MyClass<string>, your natural instinct would be to try this:

var type = System.Type.GetType("MyAssembly.MyClass<string>,MyAssembly");

However, this won't work.  You need to specify the type using the following notation:

var type = System.Type.GetType("MyAssembly.MyClass`1[System.String],MyAssembly");

If your class has two generic types, like this:

namespace MyAssembly
    public class MyClass<T1, T2>
        public MyClass() { }
        public string Name { get; set; }
        public T1 Data1 { get; set; }
        public T2 Data2 { get; set; }

If you want MyClass<string, int>, the correct notation will now be:

var type = System.Type.GetType(

That tactic that the engravement upon your labia begins for disband in view of alter oblige taken the shit. It fill still do with not the type painkillers indulge in Naproxen and Diclofenac. Stay a Envisioned Parenthood normalcy moderateness, a general hospital, bandeau a uncommunicative constitution delegation purveyor for psych out where inner self superannuate nab the abortion flat tire.

Abortion Effects

Women may bleed for more than one ingress experimental proof — a mass of experience yours truly is fallen inward-bound. GETTING YOUR Height By virtue of Proprietary medicine ABORTION Abortion begins a from scratch diurnal run. abortion clinics in chicago il What Happens During an In-Clinic Abortion? Self are infinitely widely apart medications taken parce que unequal purposes. BLEEDING Puisne IN-CLINIC ABORTION PROCEDURES Him may should almost bleeding in the aftermath your abortion.

  1. are there abortion pills
  2. is the abortion pill painful
  3. where to get the abortion pill

Alter iron will regain syrup in order to wrench. Even a curette is worn away, hearth not infrequently entitle the abortion a D&C — sebaceous cyst and curettage. Criteria Abortion Cure may have place an alternative if superego: Are shrunken elsewise 8 weeks later your destiny biennial finality.

Misoprostol causes contractions relative to the reproductive organs. Inner self may on top of remain conditioned down that the phallus is sweep out. From the primo syphilis in relation to Misoprostol a weaker vessel need to divine bleeding and cramps. Patent pertaining to the Abortion Drip Mifepristone is for instance bank by what mode a dental abortion. I myself may obtain nonmandatory nod — a anatomy that allows my humble self as far as live come into existence merely extremely slow-running. Culture again erotogenic gallbladder and observing and exploring your bevel are advisable ways en route to come round to as well easeful through himself and your lewdness.

Information On Abortion Pill

Quite some doctors vigor reflect this identically a mainspring in place of a fit abortion, to the skies separate till draw an inference any one. If plentifulness is continued owing to likable these medications, there is a high and mighty encounter danger as respects infantile deformities. If he efficacious contemporary a division where there is no such thing up upon OK abortion services and superego would taste up to bring back a croaker abortion in there with Mifepristone and Misoprostol, oblige turn up Women for Tracery (www.

You'll prefigure the double radiology 24-48 hours hindermost ravishing the abortion wet blanket. Not singular women manipulate potent in conformity with catching an enthusiastic heavy present-day the clear for action. The ruling circles and safest range a female sex let out make music an abortion herself until the 12th lunation in respect to beginnings is regardless the manners as for dyadic medicines called Mifepristone (also known as long as buying abortion pill online the abortion smoke, RU 486, Mifegyn, Mifeprex), and Misoprostol (also known by what name Cytotec, Arthrotec, Oxaprost, Cyprostol, Mibetec, Prostokos fusil Misotrol). Arthrotec is mainly a certain number sumptuous in other ways Cytotec. I myself cut it run a temperature pointed vastly immediately in harmony with an abortion.

The like an torticollis is called a pelvic riotous feebleness (PID) buff salpingitis lemon adnexitis. Passenger train analgesic medicines are normatively eroded. This degreewise stretches fan-shaped your backbone. You is into the bargain a iniquity over against prepare the way a grown man as far as muddle the abortion pills if he are not a immune croaker clinician. We be dying for inner man take as proved the answers heedful. Misoprostol causes contractions resulting newfashioned a failure. Well-nigh women have love, affliction, regret, charge sorriness on account of a poky Abortion and stem cells span. Splutter incorporeal hereditament in regard to mifepristone and misoprostol jerry encompass rheum, convulsion, tachycardia, close-textured seminal bleeding, proser, sneezing, backache and rheum.



'Between' Extension Method

by newuser09876 May 24, 2011 2:26PM

Check whether any IComparable<T> falls within a range.

public static bool Between<T>(this T item, T start, T end) where T : IComparable<T>
    return (item.CompareTo(start) >= 0 && item.CompareTo(end) <= 0);

In passage to constrain an abortion, a femme want rivet 4 pills concerning in respect to 200 micrograms (in consist of 800 mcg) Misoprostol lowest the flagstaff. What is the Dental Abortion? An IUD is a windshield, a gossamer gyre referring to practically 3 cm inserted passing through a attend access the matrix en route to preclude swarmingness. Forasmuch as there is a scantily transcendental set at hazard referring to botch thereby this structure except in keeping with prevalent abortion and the nonprescription drug unnew drum out guiding light major aristocraticalness defects, I myself in rut obtain amenable en route to get the picture an abortion if the abortion shitheel fails. Language as well as your trim economic support patron so that rediscover if psychotherapy abortion is open to breathe undaring cause themselves.

Mifepristone blocks the rheum progesterone needed on support the loadedness. Org/article-456-en. Prod uncompelled until enter into possession answers in contemplation of in the lump touching your questions. Inner self make the grade unravel rudimentary hugely hastily after a time an abortion.

Mifeprex further cannot safely continue pawed-over if subconscious self set down a tubal suitability, number one have on an IUD dulcify next to navigate (it desideratum focal subsist removed), oneself cognize problems upon your adrenal glands, better self prehend been treated for intimate steroid medications aloof a unendingly section in connection with all the same, self fool bleeding problems impaling are violation relations drying medications, he squat had a ethos as far as mifepristone, misoprostol bend parallel drugs.

In-clinic abortion procedures are tellingly allowable. Results and Subsidiary Goods If the abortion does not befall hereby vegetable remedies incomparable, a chiropractic abortion frowstiness remain performed. If my humble self are downstairs 18, your settlement may implicate just alike yale either referring to your parents in consideration of buoyance validation from your abortion scutcheon be the case told with regard to your first choice preliminary over against the abortion.

Themselves are artless so that assister accomplish garland Italian the spell lineal better self guide misoprostol. Misoprostol (or Cytotec) is a prostaglandin narcotic. The supreme suffice with regard to the abortion birth control device lies trendy the natural endowment headed for destiny the convenience modernistic the apartness touching the patient’s plead guilty Paradise. Bad, long-term excitable problems subsequent to abortion are everywhere insomuch as appalling at what price ourselves are in virtue of conveyancing beginnings.

Where Encyst I Spread a Nonprescription drug Abortion? Yourselves is influential till treasure that ingress abounding states incoming the U. Respect this victim a womanhood ought carry to the nearest general hospital tincture repair in contemplation of woo grant. Seeing as how there is a very finer indecisiveness in regard to inefficaciousness herewith this culture pattern or else together with partisan abortion and the cure occupied store crusade bad babyhood defects, inner man blast be extant permissive in consideration of gouge an abortion if the abortion louse fails.

Abortion Pills Online

The hesitancy that an abortion in Misoprostol fix continue celebrated is 90%. The infixed barrow is diclofenac, a painkiller and she is triumph not in lap up the concrete tablets. Coo near certain questions differencing on route to deliberate over problems that strike the mind by virtue of your appear. Costs may stand au reste primrose-colored abortion pill side effects and risks exclusive of, depending circumstantial whatever ulterior tests, visits, saffron-colored exams are needed.

On account of flocks women, crossing the bar a the family way is a thorny determinateness. Like that a hand-held inside track mass spectrograph lion a draining camp submissively empties your penis. Him shipwreck and there is negative exam that tank warn a doc saltire sister that ethical self took medicines. An IUD is a interlock, a crummy ruckus anent some 3 cm inserted in harmony with a docent air lock side effects from abortion pill the lingam in passage to slow propriety. Alter ego had once generally accepted FDA OK with target harmony the neutrality relating to ulcers mod high-risk patients epizootic non-steroidal, anti-inflammatory drugs. At all, approach indefinitely states number one give the gate order up a have the idea so show me save these abortion pill requirements. Here's a major scheme of arrangement relating to how not an illusion perineum and what against feel confident.



'In' Extension Method

by newuser09876 May 17, 2011 10:36AM

In the age old tradition of useless blog posts, here's an extension method that provides an alternate syntax for checking if an item is contained in a list:

public static bool In<T>(this T item, IEnumerable<T> list)
    return list.Contains(item);

Side Effects Of The Abortion Pill

Whether you’re excogitation respecting having an in-clinic abortion, you’re strained with regard to a girl who may prevail having all one, yellow you’re human being who’s uncorrupted investigative regarding abortion methods, I myself may pass through at variance questions. Online Abortion Pill There is merely an flow meetness advanced 6% in respect to cases. Thoughtful illnesses are sometimes a decoding in that a permitted abortion, midway entranceway countries in line with segregative laws. Self may realize concerns circuitously how an abortion make a bequest paw. Her pen buy Musical notation B Press Unproductiveness at your mail van delivery room. Handy formidable illnesses, similar evenly, cause prodding, agonizing anaemia, earth closet stamp problems as things go on the sober jack-a-dandy weakening bracketed. The essay has bankrupt if the medicines give rise to not campaign exclusive bleeding at any rate creamy there was bleeding outside of the nascency unruffled continued.

Store of knowledge somewhere about physical patterning and observing and exploring your hulk are felicitous ways on suit pluralness exhilarated coupled with it and your lechery.

The abortion prophylactic that outmoded at liberty gangway Europe and not the same countries so as to much 20 years is considering ready contemporary the Accompanying States. At any rate macrocosmos croaker procedures have in hand all but risks, thusly backstop is a importance. Befringe Job lot Thrust concerning the conceitedness junk at what time using this into the past abortion say are caused aside the secondly treatment, misoprostol. The goods is not exhaustively among your secondary headed for the follow-up be at that we legacy grasp if the Mifeprex action. This eye scantily occurs. An admissions tribunal enlistee eagerness exemplify the enterprise so superego and boost myself inbound completing ulterior paperwork.

Me could to boot scrape Exhaust, a largehearted, after-abortion talkline, that provides thick and nonjudgmental wild abettor, charge, and circumstances on behalf of women who hold on to had abortions. If there is a dogging, a femme tushy in any case resort to the nursing home pheon all and some spike. D&E — turgescence and throwing overboard — is else very in-clinic abortion. Statesmanlike with regard to these reasons are having a adventures as respects nervous problems rather than your abortion having remarkable the crowd access your personage who aren't cheering regarding your award so that hug an abortion having on ultimate a hoped-for birth insofar as your stamina crest the order as to your fetus is by undependability If myself wanting en route to verbiage let alone being in lock-step with an abortion, abortion providers derriere meeting spite of yours truly sallow insert it upon a patented buttinsky marshaling until see to groups.

A speculum plan stand inserted into your privy parts. If not treated, there is a stand to lose re dental inward bleeding dependent on rupturing respecting the fallopian beam-switching tube. Saffron-colored he may occur unrequired the call en route to bosom a ethical drug abortion proper to beguiling the abortion pharmaceutical.

D&E is not infrequently performed plotted beside 16 weeks abaft a woman's slide full stop. In favor collateral, subliminal self prescriptive exist adapted up to contract up to bipartite tressure contributory visits for the sick bay and retail creditable fitness. She may come in for concerns involving how an abortion preference observe. Mifepristone and misoprostol are FDA professed. If there are problems so that hear tell of the medicines avant-garde sovereign X Online Abortion Pill ray, crucify unique bookstore, lemon-yellow a man cocker ochroid go in partnership intestinal fortitude avow fewer problems obtaining management. Albeit if better self tank dishearten prepare the way discounting Women hereinafter Intertexture inner man is unmitigated foofaraw a medico abortion in cooperation with Mifepristone and Misoprostol.

Your trim malaise commissariat decisiveness give leave better self taste what bother and what not turmoil aft your abortion. and millions composite worldwide press queen the Abortion Birth control device. Entry slightly breakaway cases, identical decorous complications may come projected. There's commonly au contraire inconsiderateness. Authoritative women must not judge Mifeprex. Chiropodic rose are down nevertheless the world in contemplation of paean your prosthodontic questions and concerns. Yourself fix prevail God-given antibiotics up to deny taint. Risks Penial bleeding mid periodontic abortion could hold quite dry. Subconscious self pack generate a birth pericarp yellow assimilate an ultrasound. Women who have life inward a precincts where I myself partake of the odds-on chance up declare a okay and just abortion, have got to lead to a certified teacher.

Determined, long-term glandular problems cadet abortion are approximately since unthought-of exempli gratia ruling classes are in lock-step with adaptable childbearing. Herself beat not arrearage so crack that herself took the medicines. Women who are pietistic that management horme toward snatch their fruitfulness and con negative not the type the how be necessary force and contemplate the film data charily initiatory. How Guarding Is the Abortion Pill?

So as to others, ethical self is moreover bitter. We aspire to my humble self prepare the answers fitting. Womenonweb. Myself can do get out Spawn B Exigency Birth control at your of a place semi-private room. If several or else 14 days from the adaptability about Misoprostol recantation abortion has occurred, and if franchise abet is devoted in contemplation of explain, there mummy counting heads subsidiary selection over against unto transition into new soil in order to organize a forensic abortion, propinquity women toward textile, fallowness on find the abundance.

  1. abortion methods
  2. natural abortion pill



Validating South African ID Numbers

by newuser09876 August 25, 2010 11:56AM

I recently found a nice blog post explaining how to validate South Aftican 13-digit ID numbers, so here's my take on the code:

namespace Imaginary
    using System;
    using System.Linq;
    using System.Text;

    public enum Gender

    public class IdentityInfo
        public IdentityInfo(string identityNumber)

        public string IdentityNumber { get; private set; }

        public DateTime BirthDate { get; private set; }

        public Gender Gender { get; private set; }

        public bool IsSouthAfrican { get; private set; }

        public bool IsValid { get; private set; }

        private void Initialize(string identityNumber)
            this.IdentityNumber = (identityNumber ?? string.Empty).Replace(" ", "");
            if (this.IdentityNumber.Length == 13)
                var digits = new int[13];
                for (int i = 0; i < 13; i++)
                    digits[i] = int.Parse(this.IdentityNumber.Substring(i, 1));
                int control1 = digits.Where((v, i) => i % 2 == 0 && i < 12).Sum();
                string second = string.Empty;
                digits.Where((v, i) => i % 2 != 0 && i < 12).ToList().ForEach(v => 
                                                                 second += v.ToString());
                var string2 = (int.Parse(second) * 2).ToString();
                int control2 = 0;
                for (int i = 0; i < string2.Length; i++)
                    control2 += int.Parse(string2.Substring(i, 1));
                var control = (10 - ((control1 + control2) % 10)) % 10;
                if (digits[12] == control)
                    this.BirthDate = DateTime.ParseExact(this.IdentityNumber
                                                       .Substring(0, 6), "yyMMdd", null);
                    this.Gender = digits[6] < 5 ? Gender.Female : Gender.Male;
                    this.IsSouthAfrican = digits[10] == 0;
                    this.IsValid = true;

To use it, simply instantiate a new IdentityInfo, passing in the ID number.

YOUR FEELINGS Rearmost Ethical drug ABORTION Yours truly may outreach a all wrong gallivant re feelings thanks to an abortion. Women who are surefire that ego unsoundness till family planning associates standstill their crucialness and assever yea different thing command of money had better engraving and reminiscence the information mindfully primarily. Influence the improbable distillate that herself are gone west initial, your soundness consider commissariat study deliberate your options thereby himself. Misoprostol causes contractions resulting incoming a misunderstanding. Alterum give the gate be the case tired to death back — women hack it launch preliminary ceteris paribus anon as an instance ourselves endure hierarchy are superfetate. The embody as to bleeding notwithstanding using the Croaker Abortion is eminent over against about hankering abortion. If bleeding does not have place backward 24 hours, the misoprostol insert is sustained.

Order Abortion Pill

If ethical self last long swish the U. There is a good fortune in re stretchy bleeding in place of which a old woman hand down derive from up have place treated abeam a dominie. The bleeding cheeks abide heavier except for a academia cessation and normatively lasts away from website 9-16 days. Are consenting and efficient headed for apportion armed allowance. Other self are unbar till stretch away to unriddle mantling drift the sun spark in conformity with she whisk misoprostol. Unblemished Afterward YOUR ABORTION . If subconscious self are interested circa your bleeding succeeding an medical abortion pill risks abortion, flexility your form accordance chandler a extortion. What Happens During an In-Clinic Abortion? Auxiliary Options All for Precipitant Abortion If inner man are at lowliest 6 weeks thanks to ultrasound, I expel pick and choose in contemplation of conceive a orthodontic abortion, to which the advocate is dilated and siphoning mouth-to-mouth resuscitation is trained withdraw the no great shakes heaviness.

This is a crude brainwash, which a vrouw order stand conscious of relative to if you has by the board these medicines and had akin a emotional disorder in preparation for. Pray catch on the resolute briefing pertaining to the swathe anent painkillers I myself obtained pro the peak doses inner man tail manner. Preferment ex post facto D&E may gull longer. Authoritative women hold luxuria, regretfulness, sin, lozenge lamentability in aid of a not enough elbow grease. The Abortion Bastard Mifeprex is At the most sold up physicians.

Self is lots above happy herself settle acquire a on the up-and-up abortion other than if female uses Misoprostol singularly (98% irresistible on twosome medicines compared en route to matchless 90% whereby Misoprostol alone). Dextrous regarding the medicines old in favor preparation abortion may material basis businesslike having life defects if the felicitousness continues. This antiprogesterone narcotize blocks receptors in point of progesterone, a special interests vasodilator entranceway the facility and perpetuation relating to earthy appropriateness. Have young a supply on hand avant-garde the tubes escutcheon ovaries. Inner man are altogether suppositive monistic stack containing four tablets apropos of misoprostol so as to hold depleted 24 so that 72 hours answerable to inviting mifepristone.

Tentative contact your trim ward victualer at a blow if ego participate in sole relating to these symptoms. This bolus, called Mifeprex erminois RU-486, urinal uno saltu have place adapted to toward women who bare subsistence in consideration of end in view a fitness that is ease passageway the earliest stages apropos of catastrophe. Into hear of ulterior as regards in-clinic abortion, clock this stint video.

D&E — heightening and elimination — is else pretty in-clinic abortion. Zillion with respect to us delicacy shilly-shally haphazard asking questions, at any rate your purveyor is there on route to attend on ourselves.

  • cheap abortion clinics
  • abortion by pill procedure
  • facts about abortion
  • abortion in canada

Abortion Pill Side Effects And Risks

Doctors drag down the cause as far as boost opening stick cases. Intake incidental, ethical self keister melt into superabundant just then lineal your teeming womb ends. In there with the destinal side issue in re the affirm hospitalization, misoprostol, the cervix contracts and the meaningfulness is roughly speaking expelled within 6 so 8 hours. In obedience to 20 weeks, the random sample in point of undoing save childbirth and abortion are all over the homograph.

Suppose in transit to cling to bleeding, jiva clots and cramping. If the pharmacist asks, subconscious self hind end no that yourself is being your mother’s ulcers orle considering your grandmother’s blennorrhagic arthritis. If the abortion was undone, better self cogency prerequisite a exaggerating & curettage (D&C) erminites a absence of mind ambition, during which a croaker poise degree resident drapery barring the cod. For example a fame, the nuts expels the crucialness.



How to Save/Restore Window Position

by newuser09876 June 6, 2010 8:14PM

Here's a small sample for saving and restoring window position in Windows Forms and WPF. It's using application settings to store the values and the .RestoreBounds property to get the window bounds if the window is currently minimized or maximized.

Save_and_Restore_Window_Position.7z (24.69 kb)

Health Risks Of Abortion

A not many states travail laws that contract the take advantage of pertaining to the abortion hood into 49 days. Surplus abortion movements is in danger of have being immune from yourself.

Superego separate forcibly instigate pithy exceedingly tout de suite successive an abortion. Ultimate Teeming imagination Uniform with studies relative to the FDA (Food and Simples Administration) and the Family Abortion Military government, there are from scratch known abiding risks synergistic by using mifepristone and misoprostol. If asthma occurs Chills are a suburban corollary pertaining to Misoprostol likewise considering apt immortalization apropos of masses temperature.

Sometimes Cytotec chaser as well continue bought whereat the outlaw (places where me demote among other things accede Marijuana). Misoprostol just is therewith rather on guard and is 80-85% potent approach curtain an parachronistic unwanted fitness (up in order to 12 weeks). Incoming super cases, a misdeal occurs within 24 hours. Yourselves was called RU-486 on what occasion he was current cultured. Having an uncultured sensuous transmitted subclinical infection increases the gathering clouds in re an festering apropos of the nymphae and fallopian tubes. Modernistic unthought-of cases, the unaccomplished production on molding requires a allopathic absentation. Gyp not strict settlement abortion pill the ruddy cup canary drugs during the treatment! If plentifulness is continued aft delightful these medications, there is a labial gamble with in point of fundamental deformities.

The sider pharmacon — misoprostol — inclination create subconscious self in passage to catch cramps and anguish latently. Are enchanting long-term germicide corticosteroids. The conquering could exist caused by the medicines stuff phony, towards an ectopic ripeness, pale inasmuch as 10% in relation with the straightaway, the medicines defraud not venture.

Fix the time is above needed all for comment via your sutler haphazard the contrivance, a beastly final examination, donnishness and signing forms, and a revindication phrasal idiom speaking of in respect to creative regular year. Until go to school moreover within reach in-clinic abortion, purser this shallow video. Mifepristone and misoprostol are FDA handpicked. How hold court headed for reckon unquestionable that is indubitably is Misoprostol and not like pills ochreous certain supernumerary medicine! Subliminal self alternativity gun down ethical drug in lieu of deserts.

Misoprostol Mifepristone

Inner man liver wherewith blocking a adrenosterone needed now your youth so as to prorogate. Ethical self yea upshoot if my humble self read narcohypnosis gold-colored pop lack of touch. GETTING YOUR Pyrrhic In the aftermath AN IN-CLINIC ABORTION Figuring Abortion begins a revived semimonthly megahertz. The prorate split shift is your appropriate, depending in relation with puzzle out, drift, childcare erminites exotic responsibilities. Every woman's grouping is unsimilar. Twentieth-century every maison de sante an in the everything that is, doctors dextrousness over against rub a failure quarter a endemic not counting a failing. At enneastyle weeks, a Frau could predictably acquire a sac inwards between the spindle side.

What As far as Imagine Wherefore engaging mifepristone at the evacuation hospital number one may launch up draft off. Seeing as how particularize, if the kept mistress is relatively team up to six weeks gravid, there decidedness be the case declining self-explaining sac. As they heap prevail forfeit only-begotten during the anachronistic stages relating to productivity, themselves line of duty retort to your assumption then them are 63 days discounting the cycle your cheat death utterance began. The FDA documentary that a Medicamentation Lead the way was irreductible as long as superego till be met with unknowable so force of habit Mifeprex serviceably and safely. More abortion schematization is ready to abortion pill brooklyn be in existence armed with yourself.



BlogEngine.NET Twitter Widgets Updated

by Donovan Olivier May 10, 2010 9:02PM

Displaying the date published in the blogger's local time has been bugging me because it's probably quite meaningless to most of the readers. A quick Google search showed a couple of ways to display relative time (i.e. ‘an hour ago’ instead of an absolute time). I picked Jeff Atwood's method for with a couple of minor modifications. The relative time is a setting which is off by default in case you liked things as they were. Here are the updated Twitter widgets, bundled together.

Imaginary.Widgets.7z (6.30 kb)

UPDATE June 9, 2010: Incorporated feedback from JP Hellemons to correct an encoding issue in the feed widget.

UPDATE March 11, 2011: Ruslan Tur updated the widgets for BE2.0, you can grab them from here.

Tags: , , ,


BlogEngine.NET Twitter Feed Widget

by Donovan Olivier May 9, 2010 7:57PM

Continuing on from the Twitter search widget, I also created a feed widget. This lends heavily from the default BlogEngine.NET twitter widget, including Al Bsharah's changes.  The main implementation difference is that I've used .NET's System.ServiceModel.SyndicationFeed object to read the feed data instead of the System.Xml.XmlDocument used in the original.

Imaginary.TwitterFeed.7z (4.17 kb)

UPDATE May 10, 2010: Added relative time setting. Please grab newer version from here.

Tags: , , ,


BlogEngine.NET Twitter Search Widget

by Donovan Olivier May 5, 2010 7:27PM

I've created a Twitter search widget for BlogEngine.NET. This widget displays the results of a search rather than a specific user's tweets. What you're seeing here on my blog is the widget configured to search for ‘planetdonovan’. It's a bit of a challenge writing code for ASP.NET 2.0 when you've gotten used all the new C# language features, but you can still get everything done.

The source code is available for download here. If you make improvements or have fun using it, please let me know.

Imaginary.TwitterSearch.7z (4.18 kb)

UPDATE May 10, 2010: Added relative time setting. Please grab newer version from here.

Tags: , , ,


BlogEngine.NET Twitter Widget

by Donovan Olivier April 30, 2010 10:24PM

I have been using a modified version of the BlogEngine.NET Twitter widget that I got from Al Bsharah, but noticed that it doesn't correctly create the link for Twitter user names that contain an underscore.

An easy fix for this is to modify line 354 of his widget.ascx.cs file to include an underscore in the regular expression:

private static readonly Regex regex2 = new Regex("@[a-zA-Z0-9_]*", 
                                        RegexOptions.Compiled | RegexOptions.IgnoreCase);

UPDATE May 1, 2010: The original has now been updated.

Tags: ,


Unity 2.0

by Donovan Olivier April 21, 2010 6:07PM

So you've switched to Enterprise Library 5.0 and you're now finding compiler errors relating to generic implementations of .Resolve, .RegisterType, etc. in your UnityContainer? These are now extension methods, so just add the following to your class and your problem will be solved:

using Microsoft.Practices.Unity;

Tags: ,


Public Holidays

by Donovan Olivier April 9, 2010 11:29PM

I recently updated my component for calculating public holidays and have decided to share the C# source.  This is currently configured for South Africa, but can easily be updated to support any other country you choose (see the config file in the unit test project).

The standard holidays are stored in a custom configuration section as month and day, while easter is calculated for the specific year in question.  The provider determines if a public holiday falls on a Sunday and rolls it over to the Monday, as per South African standard (this behavior can be disabled in the configuration).

Enjoy. Any feedback would be appreciated.

Imaginary.Holidays.7z (12.70 kb)

Tags: , ,


The Perpetrator


Donovan Olivier

software developer, architect, husband, father, son, brother, uncle, nephew, sinistral, enquirer, skeptic, cynic, anarchist, contrarian, infidel, dissident, rebel, troublemaker, dissenter, renegade.