Thursday, May 10, 2007

Word =rand() function

posted by Lars Hundebøl # 09:07 AM
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 PM
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 # 04:38 PM
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.

Gravatar of payday loans canada

payday loans canada

 
The writer of propellerhead.dk has written a superior article. I got your point and there is nothing to argue about. It is like the following universal truth that you can not disagree with: There are no standards I will be back.
 

Gravatar of propellerhead

propellerhead

 
Thank you for your nice comments about by article.
 

leave comment

Tuesday, January 23, 2007

Anders Hejlsberg et. al.

posted by Lars Hundebøl # 12:29 AM
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 PM
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 # 05:21 PM
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 # 06:19 AM
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 07, 2006

A Developers perspective: Bootcamp vs. Parrallels

posted by Lars Hundebøl # 05:14 PM
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 # 05:44 PM
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

Wednesday, July 26, 2006

Windows XP Desktop Transparent Annoyance

posted by Lars Hundebøl # 10:02 AM
Recently, after installing some new software, all my desktop icons in Windows XP was not transparent, but instead a standard blue colour background. After googling around the Internet I found this solution: 1. Start regedit 2. Navigate to the following location: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] 3. Set the DWORD "ForceActiveDesktopOn" to 0 (zero) - see image below. If DWORD value is not present in the registry, then simply create a new DWORD value with the name "ForceActiveDesktopOn" and set this to 0 (zero). 4. Restart for changes to take affect.

leave comment

< newer posts older posts >