September 2004 - Posts

Today I went to a BENUG session about test driven development, and I finally got NUnitAddin to work ;)

A small recap of today:
  • Get TestDriven.NET-0.9.615d.msi, this includes MbUnit along with NUnitAddin already setup to work with MbUnit. No more need to edit that config file yourself. The future testing tool is TestDriven.NET ;)
  • Reference Core, Framework and TestFu in your project.
  • Add [TestFixture] as attribute to your class.
  • Add [Test] as attribute to a method.
  • Right click somewhere in the class and Run Tests, to run them all, or right click in one method to only run that one.
  • Watch the Output window display success or failed, and display the report url at the end.
  • CTRL+Click the url to see a detailed report (view example).
For all other news, I redirect you to Jonathan de Halleux his blog, where he talks about the Database Populator Framework and other nice testing stuff.

Note:
If you have installed csUnit, leave it installed! Do NOT uninstall it unless you are good enough informed about the uninstall possibly fucking up your VS.NET installation. I uninstalled it today, and poof, adding classes and everything else trough VS.NET was broken, solution, Repair VS.NET :(
with 1 comment(s)
Filed under:
Right, someone trying to convince me why Firefox is so much better than IE brought up the issue of being able to type "google searchterm" into his Adress bar and immediately being taken to the site.

Well, here's some news: IE can do that to, along with imdb, whois, vandale, php and everything else that uses parameters as query terms.

How? Look at this registry key and see the light:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\google]
@="http://www.google.com/search?q=%s"
" "="+"
"%"="%25"
"&"="%26"
"+"="%2B"

%s is where your search term comes, and the name of the key is the prefix.

Another example to get the hang of it:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\imdb]
@="http://us.imdb.com/Find?%s"
" "="+"
"%"="%25"
"&"="%26"
"+"="%2B"

Got it? Sweet, enjoy your new IE power! ;)

I have uploaded a .reg file which contains altavista, astalavista, cd, download, google, googlenl, imdb, php, sub, vandale, vcd, whois and lucky as search terms. Feel free to invent more :)

Update: Google feeling lucky keyword.

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchUrl\lucky]
@="http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky"
" "="+"
"%"="%25"
"&"="%26"
"+"="%2B"
with 4 comment(s)
Filed under:
Today something very weird happened and I doubt something this weird will ever happen again.

I was working on a site at school when I browsed to a file-server to check some paths, and to my surprise I could suddenly access ALL shares, not only the ones for students, but all of them...

When I tried creating files they got made under BUILTIN\Administrators! But I was logged on with my own student account. So, being nice and all, I reported it...

Then we spent almost entire afternoon trying to determine why I was suddenly an admin.

And this is when the weird stuff started to happen:
On PC1 I was an admin on the server, but when I logged in to PC2 I couldn't access it.
We tried different student accounts on PC1 but they also couldn't access the shares.
Then we removed all groups from my account except Domain Users, and I still could get in.
We cleared the profiles from PC1 and 2 and also deleted my roaming profile.
Nothing changed...

First conclusion: It's tied to username X and PC1, examine PC1 later.

Then we go to another room and try it on different computers. And there it starts all over again.
PC3: I'm an admin, PC4: I'm not.

In the end we checked all groups I belonged to, and their membership, deleted my profile, checked all NTFS permissions (which I could change as well..), and nowhere there was a trace of me or any groups I belonged to. Nothing had admin rights.

We forced replication to make sure I was group-less but it still worked!

Conclusion: User X has the rights of an Admin, but does NOT show up in any group, NTFS permissions or anything else...

Solution: We disabled the account and created a new account.. (Which means I have to recreate my entire profile again...)

Has anyone else every encountered this, and found out why this was happening?
with 2 comment(s)
Filed under: ,
Ah, well, 11 blog posts on a day is fine as well :p

With all those people giving away GMail accounts, I got 6 as well.

I got one someday, never used GMail, but hey, I can give them away.

There's too much hype around it, and I'm really not into webbased mail when I just can read it from Outlook.

But anyway, if you want one, it seems I have to supply a First and Last name and an email adress, so, the first 6 people who supply them in the comments get an invite.

Update: I just got 5 more invites, will update post when they're all given out...

Update2: All gone, closing comments
with 14 comment(s)
Filed under:
I own a Sony Ericsson T630 and manage my contacts with Outlook trough Bluetooth.

This has the side side-effect that I finally started adding everyone I might need to contact to my Contacts, before that I just picked an email and used the Reply-To ;)

But there is one thing that bothers me, I store my numbers in international format (eg: +32 50 .....), but Outlook always removes the + in front of it, and I can't find how to change that. And my phone needs the +!

So I wrote a C# tool that would let me fix my contacts.

You can download it here and read the full article here.
with no comments
Filed under: ,
Wow, apparently I made 8 blog-posts today (9 now), that's a record ;) Well I've been away for a while as well, so..

Busy holiday, little time for computer, and plenty of new projects, a new laptop, airport express, all the toys ;)

I guess it'll be a bit more quiet the coming days, as I said everything today ;)

But to give this post some information, here's how to set up a Dell truemobile 1450 under linux. (I got it working under Fedora Core 2)

Get ndiswrapper and the .exe file that came with your card.
Extract the exe to a location on your disk
Install ndiswrapper (make install)
Install the driver (ndiswrapper -i bcmw15a.inf)
Check if it worked (ndiswrapper -l)
If it worked, check iwconfig to see wlan0

Now set up your wlan
iwconfig wlan0 mode managed
iwconfig wlan0 key open 12345..6 (your hex WEP key)
iwconfig wlan0 channel 11 (your channel)
iwconfig wlan0 essid HEAVEN (your essid, without quotes)

You can test with iwlink wlan0 scan (I believe) if it finds your AP.

I found that when you are unable to set your essid, it is because your WEP key is invalid. I don't know WiFi tech enough, but it seems that you only need a valid WEP key and it'll find your wlan.

If it's associated, bring it up with ifup wlan0 and it'll get an ip trough dhcp.

It took me a while, especially the essid part. Also sometimes it can bark at you when trying to set your key, then you have to do:

iwconfig wlan0 key open
iwconfig wlan0 key open 12345..6 (your hex WEP key)

Don't know why, but that solved it.
with 3 comment(s)
Filed under:
Ulysses Consulting recently contacted me asking if I didn't knew anyone for the following positions:
  • Java Programmer
  • .NET Programmer
Both functions need to have some years of experience and be able to coach other people in orde to improve to projectleader.

If you want to apply contact me and put Ulysses in the subject. Include your contact details and which function you're going for and I'll forward the info.
with 1 comment(s)
Filed under:
In case there are some Dutch teachers reading this, I just finished a forum site exclusively for teachers...

It's a project of Kurt Meuleman, a teacher himself, who wanted to have a forum for the entire Dutch-speaking teacher-community, and today it's officially open.

Basically it's phpBB with a self-created theme and some mods. I'm convinced that with his motivation it could become something, should be on Radio 1 soon normally ;)

The address? http://www.lerarenforum.be
with no comments
Filed under:
Right, about 2 weeks ago Jon Lech Johansen released Justeport, a tool to stream your Apple music files to your Airport Express.

His site went down almostly as soon as the big news sites picked it up, and the source of Justeport couldn't be downloaded.

I also didn't see much blogging about this, which is strange, because his tool is written in C#!

A few days ago I got an Airport Express and now I'm streaming .mp3 to it from iTunes (on Windows) but I have to use iTunes, and that's not something I like, making me go away from Winamp...

But JustePort can not stream .mp3 files to it, but the source is available (and here is a mirror), so maybe there is someone with a better understanding of handling music files in C# who could write something to stream .mp3 to it.

Hopefully there will be a Winamp plugin someday to do this.

It's a great piece of technology, a very small WiFi AP which you can plug in to an electric outlet and to your stereo and stream music to it through the air.

I guess if someone has too much time on his hands and wants a challenge, this is one, writing an mp3 player that can stream to the Airport Express (with volume control, play, pauze, prev, next and playlist support ofcourse ;))

If someone is up to it, and needs someone testing it with an Airport Express, contact me and I'm willing to help you.
with no comments
Filed under: , ,

With my new laptop I got a screen with a 1920x1200 resolution, so I went out looking for wallpapers for the resolution, because my existing ones degraded in quality with that size.

My search led to Deaddreamer from which I have my current wallpaper as well.

But nowadays he got so many good ones, so I picked up 5 1600x1200 wallpapers. And now I want a random wallpaper each time I logon.

Having some spare time (very rare) I created something small myself, I'm sure there are tools out there to do all that.

Originally I wanted to use PHP to get a random number and set the wallpaper, and then call the php script with a bat file and set it as a scheduled task. But that kept popping up a dos prompt each time it set it, and my wallpaper disappeared after boot (some bad registry settings).

So I used KiXtart to set the wallpaper and then link it with a shortcut which would run minimized.

That worked for one paper, but when I tried the RAND function in KiXtart, it didn't go well.. But I had the php script and bat still there so I let that make a random number and then kill the KiX script with that number as argument.

Result:
Shortcut to wall.bat, which calls wall.php, which makes a random number and calls wallpaper.kix with the number, after which my wallpaper is set, and saved in registry.

I have to shortcut Run as minimized and on logon and every hour, and now I got a nice random wallpaper implementation.

Overly complicated? Maybe, If you have php installed, it's a small solution, otherwise you need a 1.3Mb dll and 24k php.exe in the same dir, which isn't really something bad.

I have zipped everything and written the steps to install it out in a Readme.txt for everyone wanting it as well. I also included the php.exe and dll.

Download it here: RandomWall.zip (706Kb).

And now I have sweeeet super-detailed wallpapers auto-changing without any special timer programs running, but just the Scheduled Tasks :)

Here are my wallpapers:
ddr_0075_vertical_theory_pure.jpg
ddr_0075_vertical_theory_decay.jpg
ddr_0088_v1r2a_1600x1200.jpg
ddr_0091_bioforge_1600x1200.jpg
ddr_0086_21st_century_kaos_1600x1200.jpg
(convert them to .bmp first, not sure if it's required, but whatever, bmp is nicer, no need for desktop to go in Web mode)

More Posts Next page »