Hannes Pavelka
It isn't rocket science. Well, unless of course you're NASA

November 2005 Entries

WSE 3.0 Configuration Tool does not appear in Visual Studio 2005

If you are having problems to see the WSE 3.0 tool in the IDE you should first follow the instructions from the read me: The WSE Settings Tool does not appear on the Visual Studio 2005 Solution Explorer content menu. This occurs if you install Visual Studio 2005 and then install WSE 3.0 without first having started Visual Studio 2005. Ensure that you start Visual Studio 2005 before installing WSE 3.0. Alternatively you can use the Visual Studio 2005 Add-in Manager available from the Tools menu item...

ClickOnce fails with Firefox and other alternative browsers

As you might know Click Once does not support Firefox, to be more specific ClickOnce even requires IE to be your default browser to work 100%.There are a few workarounds available: use IE for installing the Click Once application.This sounds a bit odd, but is probably is the easiest solution. If Firefox is your default browser you might still be able to install a click once app by using IE.The problem: If your Application carries a bootstrapper along with it to install prerequisites before the actual...

How to modify a hashtable in a foreach loop

If you try to modify a collection while enumarte over it you will get an Exception : "Collection was modified; enumeration operation may not execute." Personally, I simply copy the keys: Hashtable t = new Hashtable();t.Add(1, 1);t.Add(2, 2);ArrayList a = new ArrayList(t.Keys);foreach (int i in a){ t.Remove(i);} Eric Gunnerson has another aproach. You can read it here...

Why does the TabControlTask under VS2005 don't offer Edit Tab ?

Could it be so hard to imagine I might want to Edit a tab ??? Add Tab - Edit Tab - Remove Tab would be much more reasonable

db4o 5.0 with Native Queries

The db4o open source object database is introducing the concept of Native Queries into their new 5.0 release. Native Queries are a new approach to express database queries with .Net syntax, completely without the use of strings. Native Queries are fully checked at compile time, they can be written using IDE autocompletion and they can be automatically refactored by the IDE. An example query would look like this: IList <Cat> cats = db.Query <Cat> (delegate (Cat cat) { return cat.Father.Father.FirstName...

NUnit 2.2.3 is available

The new 2.2.3 release of NUnit is compatible with the VS2005 and .NET 2.0 RTM. You can get it on the NUnit SF Site. By the time of writing you can't find it on Unit.org yet

Visual Studio 2005 InteliSense completes if you hit space bar

Upon default Visual Studio 2005 will complete a selection if you hit the space bar. That means, if you plan to use a not yet declared variable, e.g. "radio" and hit the space bar intellisense will kindly complete it to RadioButton for you. This really is not how I wan't intellisense to behave. It's enough for me if intelisense completes upon tab. Luckily, it's possible to disable that behaviour. Go to Tools->Options->Text Editor->C#->Intellisense and uncheck Committed by pressing the...

Pandora Music V2.0 with unlimited free Version

Pandora Music has added a bunch of new features to their service. Besides adding a lot of extra candy you can now use pandora for free (ad-supported). Read all about it at the Pandora developer blog

Roll your own search engine

The signal-to-noise ratio is still increasing. Our old habits of searching will soon fail. There are several new search engines out to make our search more personalized and thus give us a better search experience. You are probably aware of Yahoo's MyWeb 2.0 , PersonalizedGoogle , IndividualGoogle and Microsoft Start.com. But did you know about and tried Rollyo and Filangy. Rollyo allows you to take your favorite urls and create a search engine that only searches those domains Filangy remembers every...

Top 10 replies by developers when their programs don’t work

This is hilarious (via Enrique Ortiz). Replies by developers when their programs don’t work: 10. 'That's weird...' 9. 'It's never done that before.' 8. 'It worked yesterday.' 7. 'You must have the wrong version.' 6. 'It works, but it hasn't been tested.' 5. 'Somebody must have changed my code.' 4. 'Did you check for a virus?' 3. 'Where were you when the program blew up?'2. 'Why do you want to do it that way?' 1. 'I thought I fixed that...

The first internet worm and the first commercial firewall

If you are interested in the history of internet security I can recommend you to read this article on the cisco homepage. Two interesting facts: On November 2, 1988, something happened that changed the Internet forever. Reporting this incident, Peter Yee at the NASA Ames Research Center sent a note out to the TCP/IP Internet mailing list that reported, "We are currently under attack from an Internet VIRUS! It has hit Berkeley, UC San Diego, Lawrence Livermore, Stanford, and NASA Ames. Of course,...

Declaring Properties on interfaces

Even though this is probably obvious I had to look it up today. Declaring a property on interface in c# works like this: public interface IFoo { string Value { get; set; }}