Category Archives: Uncategorized

PowerShell Getting Started

Whenever you run a power shell script it says it requires permissions and certificates. Simple solution is to run the following command: Set-ExecutionPolicy Unrestricted   IMO, When publishing scripts for third-party we can sign the scripts. Advertisements

PowerShell Getting Started

Whenever you run a power shell script it says it requires permissions and certificates. Simple solution is to run the following command: Set-ExecutionPolicy Unrestricted   IMO, When publishing scripts for third-party we can sign the scripts.

div collapse

Collapsing a div is not intuitive, visibility:collapse doesn’t get the intended effect. The following does: .collapsed{ overflow:hidden; height:0px; }

div collapse

Collapsing a div is not intuitive, visibility:collapse doesn’t get the intended effect. The following does: .collapsed{ overflow:hidden; height:0px; }

WCF REST: 404 Error

If you get a 404 Error on WCF REST service, make sure the virtual directory has Global.asax

WCF REST: 404 Error

If you get a 404 Error on WCF REST service, make sure the virtual directory has Global.asax

MVC Deployment

Source: http://blog.discountasp.net/getting-asp-net-mvc-3-working-on-discountasp-net/   Backup Text: “Getting Errors After Deploying your Application? After deploying your application, you might see the following error message… Could not load file or assembly ‘System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot

MVC Deployment

Source: http://blog.discountasp.net/getting-asp-net-mvc-3-working-on-discountasp-net/   Backup Text: “Getting Errors After Deploying your Application? After deploying your application, you might see the following error message… Could not load file or assembly ‘System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′ or one of its dependencies. The system cannot

Remove Table Formatting in Excel

I got an excel document from one of my team members and it has been formatted as table. I couldn’t get rid of the formatting as table from “Format as Table” options. Here’s the solution I found: Right-click anywhere in

Remove Table Formatting in Excel

I got an excel document from one of my team members and it has been formatted as table. I couldn’t get rid of the formatting as table from “Format as Table” options. Here’s the solution I found: Right-click anywhere in

Do Extension Methods work on null objects?

Common sense would say yes, because those are static objects. But the calling pattern is object.ExtensionMethod() which would make it a little iffy on the developer. Well, Chey tested it today and it works on null objects, so that confusion

Do Extension Methods work on null objects?

Common sense would say yes, because those are static objects. But the calling pattern is object.ExtensionMethod() which would make it a little iffy on the developer. Well, Chey tested it today and it works on null objects, so that confusion

Retrieving an Embedded Resource

Code: Retrieving an Image that is an Embedded Resource (Visual C#) This example retrieves an image that is an embedded resource of the assembly. Example System.Reflection.Assembly thisExe; thisExe = System.Reflection.Assembly.GetExecutingAssembly(); System.IO.Stream file =     thisExe.GetManifestResourceStream("AssemblyName.ImageFile.jpg"); this.pictureBox1.Image = Image.FromStream(file);   http://msdn.microsoft.com/en-us/library/aa287676(VS.71).aspx

Retrieving an Embedded Resource

Code: Retrieving an Image that is an Embedded Resource (Visual C#) This example retrieves an image that is an embedded resource of the assembly. Example System.Reflection.Assembly thisExe; thisExe = System.Reflection.Assembly.GetExecutingAssembly(); System.IO.Stream file =     thisExe.GetManifestResourceStream("AssemblyName.ImageFile.jpg"); this.pictureBox1.Image = Image.FromStream(file);   http://msdn.microsoft.com/en-us/library/aa287676(VS.71).aspx