Browse by Tags
All Tags »
TipsAndTricks (
RSS)
Normalmente, quando eu vou dormir, também ponho o meu computador a dormir. Mas, desde há alguns meses, o computador acordava sozinho e eu não conseguia percber porquê. Com a ajuda do Pete consegui perceber porquê: C:\>PowerCfg -LASTWAKE Wake History...
Usually, when I go to sleep, I also put my desktop computer to sleep. But, for the last couple of months, the computer would always wake up by itself and I couldn’t figure out why. With the help of Pete I was able to find out: C:\>PowerCfg -LASTWAKE...
After installing Visual Studio 2010 I, inadvertently ended up with SQL Server 2008 Express having already installed SQL Server 2008 Developer . Only when I was going to upgrade to SQL Server 2008R2 I found out I had two instances installed. I looked everywhere...
Some of my Windows 7 systems, after installing Windows Virtual PC , were missing the Create virtual machine option. Bob Comer directed me to this post from the Virtual PC Guy's Blog but, before trying the recipes in the post (which involved logging out...
Since Visual Studio 2005 , Visual Studio comes with a development web server: the ASP.NET Development Server . I’ve been using this web server for simple test projects since than with Visual Studio 2005 and Visual Studio 2008 in Windows XP Professional...
Recently, a friend of mine asked me something like: “How do I get the user’s regional settings for a request to a web server?” As far as I know, web browser only send an Accept-Language HTTP header and nothing more. You can take this and use the default...
Using Visual Studio macros to change the current project as the startup project and start it....
For those who don’t know, I have this web site http://PauloMorgado.NET/ that I use both as a web presence besides my blogs and a playfield. Because I write both in English and Portuguese, I wanted the web site to have both English and Portuguese versions...
Today I was talking with João about a way to couple the lifetime of the ASP.NET session state with the lifetime of Forms Authentication ticket . My idea was to store the session ID in the UserData property of the forms authentication ticket upon...
Today, my friend Nuno was writing some code to get the PropertyInfo s of a class implementation of an interface. Given this interface: public interface ISomeInterface { int IntProperty { get ; set ; } string StringProperty { get ; } void Method(); } and...
More Posts
Next page »