Site Compatibility and IE8

It’s always pain in the cock to get your (X)HTML/CSS design right in as many browsers as possible.

On the IEBlog, there is an article about IE8 and it’s Compatibility Mode. Main subject is of course the problems and differences it brings with it.

So, head over to the blog post and get your knowledge up to date. Spare yourself a few minutes/hours/days/… of frustration already!

Posted in The Web | Tagged , , , , , | Leave a comment

French Police Save Millions Switching To Ubuntu

Always nice to see positive stories about migrations from Windows to Linux. This time it’s the French police.

Read the full article on Ars Technica.

Posted in Linux, Software, Technology | Tagged , , , , | Leave a comment

Pixels to Ems Conversion Table for CSS

This one comes in handy when you’re CSSing: http://jontangerine.com/silo/css/pixels-to-ems/

Posted in The Web | Tagged | Leave a comment

GetHashCode() on a 32-bit vs a 64-bit platform

If you compile your .NET application with the standard “Any CPU” option, it will run as a 32-bit process on a 32-bit OS and as a 64-bit process on a 64-bis process.

When you use GetHashCode() the generated hashes on the 32-bit platform will differ from the hashes on the 64-bit platform…

The solution is either to not use the GetHashCode() the way you do it, or if you can’t change the way your program works you can run it in 32-bit mode by setting the 32-bit flag in the executable’s headers using CorFlags.exe.

Set the 32-bit flag:CorFlags.exe YourApplication.exe /32BIT+

Remove the 32-bit flag:CorFlags.exe YourApplication.exe /32BIT-

More info about CoreFlags.exe on MSDN: http://msdn.microsoft.com/en-us/library/ms164699(VS.80).aspx

Posted in Programming | Tagged , , , | 1 Comment

GetHashCode() in .NET 1.1 vs .NET 2.0

notepadd

When migrating GarageTV from .NET 1.1 to .NET 3.5 I ran in a “strange” problem.

It seems that there is a SearchBarrel table containing the links between keywords and posts (and some other info like keyword weight etc), so when a search is made you simply do a select using this table.

But… the keyword is hashed using String.GetHashCode() and that’s stored in the DB. Not clever it seems, because the GetHashCode() in .NET 2.0+ differs from the .NET 1.1 version.

Quote from MSDN: Prior to the .NET Framework version 2.0, the hash code provider was based on the System.Collections.IHashCodeProvider interface. Starting with version 2.0, the hash code provider is based on the System.Collections.IEqualityComparer interface.”

And for your information I’ve found an implementation of the GetHashCode() of the .NET 1.1 version, so you can use this method in .NET 2.0 projects.


Int32 HashString(String szStr)
{
ulong hash = 5381;

foreach (int ch in szStr)
{
hash = ((hash << 5) + hash) ^ (ulong)ch;
}

return (Int32)hash;
}

So… enjoy.

Posted in Programming, Uncategorized | Tagged , , , | Leave a comment

Moonlight 1.0 released: brings Silverlight to Linux

You can download the Mozilla Firefox plugin at the official Moonlight website. Enjoy!

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Mozilla Fennec Alpha 2 released (running on Linux, MacOS X and Windows)!

As the title says: go grab a copy of Mozilla Fennec for your platform and start testing your websites in it! Or start building addons…

Builds running on Linux, MacOS X and Windows (as XULRunner application). Lots of fun guaranteed!

You can find the release notes on the Mozilla project page

PS: GarageTV.be doesn’t look too bad using Fennic for Windows!

Posted in Software, The Web | Tagged , , | Leave a comment

Linux holds back our children’s evolution

Or this is what a teacher from some middle school in the USA. She found out that a student of her was giving a demonstration of Linux to classmates and handing out discs of the HeliOS Project. She confiscated the discs and told her students not to use Linux. She also send an email to the people of the HeliOS Project claiming she wasn’t sure that installing Linux is legal and saying that software isn’t free.

Some people seem to be very afraid of the unknown. The story has a happy ending, though, so check out Posted in Linux | Tagged , | Leave a comment

Google Chrome 1.0 Stable is released!

Indeed, Google Chrome is out of beta! You can download the 1.0 release by updating your current installed version or by downloading it!

Not all users are convinced that Chrome is ready to be called “stable”.

Check out the official statement on the Google Chrome Releases blog. Don’t forget to read the comments!

Posted in Software, The Web | Tagged , | Leave a comment

I want one of these: ElectraFlyer – C

Besides computers, programming, cars, movies, friends, family and my girlfriend, I’ve another interest: planes! I don’t have a flying license, but I hope to get one some time. In the meantime I enjoy flying RC models when the weather in Belgium allows me to.

My plan is to get a license to fly ULM’s one day and maybe move onto something bigger later on. In my search for information I came across different types of planes that are affordable (Afford a Plane), but now I came across a “green” one: the ElectraFlyer – C. It’s a modified glider that has an electrical motor which can make the plane fly for 90 minutes at +/- 110 km/h. When you decides to start “gliding” to land, you can turn the propeller into wind powered generator to charge the batteries.

Maybe this will become my private company plane, one day, maybe, whenever, we’ll see, …

Posted in Technology | Tagged , | Leave a comment