Fork me on GitHub

Wednesday, June 20, 2007

Precompile ASP.NET in command line

posted by Lars Hundebøl # 8:33 p.m.

I have sometimes been unable to precompile ASP.NET web projects using the built in function of Visual Studio. In these cases I use the following command line to manually precompile ASP.NET 2.0 projects:

%WINDIR%\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe 
-p . -v / c:\myprecompiledwebsite -u

leave comment

Thursday, May 10, 2007

Word =rand() function

posted by Lars Hundebøl # 9:07 a.m.
Just a quick tip I often use in Microsoft Word to generate random text. Type "=rand()" without the quotes, press enter, and Word automatically generates some random text.

leave comment

Wednesday, March 28, 2007

Macro inside Visual Studio

posted by Lars Hundebøl # 10:48 p.m.
This tutorial shows how to insert a Macro which inserts a GUID into the current open document in Visual Studio (VS). Very usefull. This eliminates the process of first to open Create GUID from the External Tools menu in VS, and then copy a GUID into the clipboard, with curly brakets around it. The curly bracket usally then has to be removed, after it has been pasted inside the document in VS. The tutorial suggests to create a keyboard shortcut, I instead, created a button in the toolbar. http://developer.mugshot.org/wiki/Create_A_GUID_Macro

leave comment

Thursday, February 22, 2007

Use custom validators instead of Attributes.Add() when using PostBackUrl

posted by Lars Hundebøl # 4:38 p.m.
I recently had a problem regarding using a button's PostBackUrl and client script validation in ASP.NET. I had a form which had to Postback to another page on another website (a website used to host a secure page for credit cart transations), but before proceeding to postback to the remote page, the user must check off that they have read the disclaimer. So I thought to myself to validate that the user has checked off, that they have read the disclaimer, I would add a simple client script, and then add this client script to the buttons onclick attribute. btnBuy.Attributes.Add("onclick", "javascript:validateCheckOff();"); However when using the PostBackUrl on a button, this automatically generate some client script code to create a postback on the onclick attribute, which in turn means that when using the Attributes.Add() method, this will overwrite the postbackurl rendered client script. In order to fix the issue above, one should instead use a custom validator control. I found this article explaining how to create a custom validator control for a checkbox control.

leave comment

Tuesday, January 23, 2007

Anders Hejlsberg et. al.

posted by Lars Hundebøl # 12:29 a.m.
Check this out. A cool talk on software composability, and on the how functional syntax may be used in exsisting language like C# (to syntactically describe interaction with data as used in LINQ). http://channel9.msdn.com/Showpost.aspx?postid=273697

leave comment

Sunday, December 17, 2006

Die Herren

posted by Lars Hundebøl # 11:18 p.m.
As always, Die Herren rocking the shit out of Esbjerg's Tobakken.

leave comment

Monday, October 23, 2006

Multi touch touchscreens

posted by Lars Hundebøl # 5:21 p.m.
Cool demo on how multi-touch touchscreen could be used for future applications. See Jeff Han bring down house on Ted Talks. http://www.ted.com/tedtalks/tedtalksplayer.cfm?key=j_han

leave comment

Monday, September 25, 2006

On my way to Copenhagen at DKK 1,00 a minute

posted by Lars Hundebøl # 6:19 a.m.
The time is now 6.12 AM, the coffee is cold, and I'm sitting on the ferry from Århus ot Sj.Odde. I'm using a tdc hotspot (for DKK 1,- a minute - believe or not), there has to be a cheaper alternative... maybe this would be a good reason for me to go out and buy a 3G mobile?! : ) However I'm on my to a Microsoft conferrence regarding development for Internet Explorer 7.0. I'm a little exicited to see the new features of the long awaited browser from Microsoft and whether it is more complient with the existing standards and browsers on the market today. The conferrence is over at 1 PM... maybe I should check out Copenhagen afterwards...

leave comment

Thursday, September 7, 2006

A Developers perspective: Bootcamp vs. Parrallels

posted by Lars Hundebøl # 5:14 p.m.
I use my MacBook to run both Mac OS X and Windows XP. To run Windows XP I've previously installed BootCamp (Beta) from Apple in order to install both systems. Since upgrading the my MacBook to 2GB of ram, I though I would try to install Parallels instead of BootCamp, to see if that would solve the issue of having to restart every time i needed to shift system. Basically what I need Windows XP for is to run Visual Studio 2005, which works perfectly in BootCamp, when not mentioning the issues with keyboard setup. Although the keyboard setup works better in Parallels, with 1GB of ram allocated exclusively to Parallels, it doesn't seem to be enough for it to run perfectly. All in all, as for choosing between Parallels and BootCamp for running Visual Studio 2005, I would choose BootCamp, due to the better performance. When that is said, I was very impressed with the overall performance of Parallels, and I'm looking forward for the newly promoted features of the new Parallels Beta to run using the BootCamp partition. The Winner is BootCamp.

leave comment

Thursday, July 27, 2006

Windows XP thumbs.db file

posted by Lars Hundebøl # 5:44 p.m.
Why is it, that this thumbs.db file keeps being generated automatically for any folder in Windows XP containing images?! Even if you try to delete it, it keeps on regenerating itself. The thumbs.db is used to cache thumbnails, but is only relevant for very slow computers, and is otherways a great annoyance. However I found a solution to the problem: 1. In Explorer, go to Tools -> Folder Options or open the Folder Options icon in the Control Panel. 2. Choose the View tab, and turn off the Do not cache thumbnails option. 3. Click OK. This should stop Windows from saving the thumnail cache.

leave comment

newer posts older posts