Tuesday, February 9, 2010

Nasal rinse as a natural way to fight common cold

Whenever I get cold, I’m very averse to taking medicine as technically there is no medicine for cold and taking some will unnecessarily reduce my body’s ability to fight virus. At the same time I always wondered if there is something I could do that’s completely natural and gives me relief at that hard time.

Recently I discovered this NeilMed Sinus rinse that apparently is followed since ages in India. This time I used this towards the end of my ‘cold’ episode and loved it!

Next time I’ll try earlier – usually I know about my cold before a day or 2 of its arrival…

Friday, January 22, 2010

Get subject common name from an X509Certificate2 object

Both Subject and SubjectName properties of X509Certificate2 have the full distinguished name (ex: “CN = Rags, OU = UserAccounts, DC = corp, O = microsoft”). But what if we only want the common name part of it (in this case “Rags”). This was unintuitive to find, but I finally figured out. You use

cert.GetNameInfo(X509NameType.SimpleName, false)

This prevents parsing the string etc and is certainly better!