Archive for November, 2008

DNSKnife.com: meet the online dig

Saturday, November 29th, 2008

Last summer, we had to do do some web programming and database design at my engineer school. Our group chose to create something more useful: an online DNS checker.

To get an idea of the project, without reading the rest of my post, head to http://www.dnsknife.com/about.php. There is a good description of the project on this page.

So, here we are, 6 months later and the website is running well. Actually it’s running on an Ubuntu 6 box hosted at school, but I’m going to transfer it to one of my CentOS boxes when I have a bit of spare time. The current server has severe memory issues and the database (PostgreSQL) goes down on a regular basis.

The website may look simple, but the code behind it is rather complicated. It’s a full MVC model coded in object oriented PHP5 and the database designs looks like that:

It’s full of dependencies everywhere as you can see, now let’s have a look at the application structure:

As you can see, it’s rather complicated (but not complex) for a PHP program. The watchdog is there to prevent any service from accessing controllers and managers it doesn’t have the right to access. This means that even if you are logged on the website, there is a full security check for each button or function you are trying to call. The “Technical” part is a module which queries DNS servers.

The whole design is very open to extensions, it was designed this way from the ground up. If you want to add a new DNS test, you can, very quickly.

Every function in the whole design has been documented with sequence diagrams. This was the most “boring” part, but in the end it is REALLY useful when you actually begin to code.

I’d like to thank my friends Simon Oulevay, Jonathan Rey and Sven Wagner for the good job, it was really a great and pleasant experience to work with you :)

Oh, and it’s free, we hope that it will be useful to some of you!

NetBeans 6.5 on Fedora 10: no {}

Wednesday, November 26th, 2008

If you prefer to install NetBeans 6.5 directly from netbeans.org instead of NetBeans 6.1 packaged in Fedora 10 (if you need GlassFish for example), you may encounter a rather annoying bug: it’s impossible to type the {} signs on some keyboard layouts.

I don’t exactly know what it’s related to, but it’s a known issue at Ubuntu and there is a simple temporary fix available. It seems to happen on non-US keyboards only and I have no idea what this “XMODIFIERS=” ./netbeans” parameter does. Should I file a bugreport somewhere?

Fedora 10 x86-64, Flash 10 and sound

Tuesday, November 25th, 2008

So, Fedora 10 is out and that’s absolutely awesome. I just reinstalled my systems (and updated my software guide) and it installed without a glitch.

The only annoying problem I faced is that I got no sound with my Fedora 10 x86-64 linked with the traditional Adobe Yum repository (which provides a 32-Bit Flash version) + libflashsupport. The reason is simple: libflashsupport was removed from Fedora. It has just been replaced by a new solution described on http://fedoraproject.org/wiki/Flash

Another solution to get the sound back is by installing the 64-Bit Flash version which is still in alpha. You probably want a howto? Here it is…

  • rpm -e nspluginwrapper.i386 flash-plugin (if you have installed them)
  • cd /usr/lib64/mozilla/plugins/ (this is where your Firefox plugins are)
  • wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz (to download the Flash plugin)
  • tar -xvzf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz (to extract the plugin)

Restart Firefox and it works.

NetBeans IDE 6.5

Thursday, November 20th, 2008

The final version of NetBeans 6.5 is out, you can grab it on http://www.netbeans.org/downloads/index.html :)

It can be installed in your home directory on F9/10 without problems, it doesn’t taint your system in any way. You may wonder why I don’t use NetBeans 6.1 packaged in Fedora 10? I simply need the EE version with the GlassFish server.

Flash 10 x86-64 test release available

Monday, November 17th, 2008

Finally, Adobe released an x86-64 version of Flash 10. It’s still beta, grab it on http://labs.adobe.com/downloads/flashplayer10.html

Errata on the Dell Mini 12

Saturday, November 15th, 2008

Last week, I was ranting about the Dell Mini 12 which is based on the Poulsbo architecture, with a Linux incompatible GMA 500 GPU. It turns out that the folks at dell Dell are smart : they are using an Intel GMA 900 instead, which is fully compatible with Linux.

Still, it only has 1GB of RAM, non-upgradable :(

NOTE: it is in fact an incompatible GMA500, the GMA900 reference was a mistake on dell’s french website!

Poulsbo isn’t that great, yet (Intel Atom Inside)

Sunday, November 9th, 2008

No, I’m not talking about the city of Poulsbo in Washington State. I’m talking about the low power Intel chipset for the Atom platform that is consuming 5W instead of the 25W the 945GC (22W) + ICH7 (3W) couple used in most Atom platforms is consuming.

So, the US15W System Controller Hub finally made its way to a consumer product, the Dell Inspiron Mini 12 netbook (not the Mini 9, this one is still using the i945). Great you may think, but don’t get excited too quickly…with the US15W comes a news graphic chip: the Intel GMA 500.

This chip isn’t an Intel development, it was licensed from PowerVR and there is a huge issue with that: as far as I can tell, it doesn’t use the same Intel graphic drivers you can find in the Linux Kernel. Basically, you can’t use the Inspiron Mini 12 with Linux yet, which is a huge drawback. We’re pretty much fucked until Tungsten Graphics comes up with a new driver, I don’t even know if they were mandated by Intel for this one.

A discussion about this issue in French: http://forum.canardpc.com/showthread.php?t=30544

Netbooks with a 1280*XXX resolution?

Saturday, November 1st, 2008

Currently I have a rather big laptop; it’s a HP/Compaq 6710B weighting about 2.9 Kg with a 1680×1050 resolution. This laptop works very well with Fedora and it’s quick. The problem I’m facing is that I’m transporting it every day for about 40 minutes in a backpack and I really begin to hate its weight :)

So I began to look for a lighter netbook (around 1 Kg); what bothers me about them is the 1024*XXX resolution., it’s almost unusable for me. A 1280*XXX resolution is an acceptable compromise, that’s what the 13.3″ Apple MacBook uses for example (unfortunately, it’s too heavy). A 10-12″ display would be nice too.

To my big disappointment, there doesn’t seem to be any laptop corresponding to my needs, the closest match is the underpowered HP 2133 Mini Note or the Dell Mini 12” that isn’t out yet in Europe. Am I missing something?


I could play with a HP 2133 at my local electronics store (they run SuSE Linux, which is a good indicator for Fedora compatibility), but it has 2 major problems:

  • 8.9″ screen
  • VIA C7 processor

Please HP, update your model to a 10″ screen with the VIA Nano CPU and I’ll be your first customer.