Linux Quote
I don’t know who said it, and I’m not really quoting it verbatim either; but who cares I still like it:
"Linux is great, just like C is great; it’s useful, powerful, and can blow your leg off if you’re not careful."
I don’t know who said it, and I’m not really quoting it verbatim either; but who cares I still like it:
"Linux is great, just like C is great; it’s useful, powerful, and can blow your leg off if you’re not careful."
If you ever work on a project or installer that requires you to create some GUIDs frequently, you should make your life easier by creating a Visual Studio macro that will insert a GUID wherever your cursor is. Here’s how to do it:
REM Insert a new Guid at whatever the cursor has selected Sub InsertGuid() Dim ts As TextSelection = ActiveDocument().Selection Dim guid As System.Guid = System.Guid.NewGuid() ts.Insert(guid.ToString().ToUpper()) End Sub
public static bool IsCurrentUserAdministrator() { AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsPrincipal principal = (WindowsPrincipal)Thread.CurrentPrincipal; return principal.IsInRole(WindowsBuiltInRole.Administrator); }