Author Archives: SiZiOUS

Setting a static IP on Raspberry Pi on Raspbian 20150505

For setting a static IP for the Raspberry Pi 2 on the latest Raspbian release available at this time (20150505 through NOOBS v1.4.1), the old method modifying the /etc/network/interfaces file isn’t so efficiency as before. In fact, if you modify the /etc/network/interfaces by setting eth0 to static instead of manual (the default setting) your Raspberry Pi will get two IP adresses for the same eth0 interface. This sucks.

The “faulty” is the dhcpcd daemon, which is a DHCP client that seems to be run before the parsing of the /etc/network/interfaces file.

So you have 3 options there:

  1. Setting like before in /etc/network/interfaces then disabling the dhcpcd daemon, with the sudo update-rc.d -f dhcpcd remove command (you can revert back with sudo update-rc.d dhcpcd defaults). But really, don’t do this;
  2. Add a static DHCP entry for your Raspberry Pi in your router/gateway configuration;
  3. Force the dhcpcd daemon to get the IP you like. It’s really the best solution for me.

To implement the latest solution, just sudo nano /etc/dhcpcd.conf then at the end of the file, add the following:

Of course, adjust the IP as you wish. the  192.168.0.1 IP address is referring to my ISP router.

After this modification, restart the network interface or just perform a reboot. Now, your Raspberry Pi will have only one static address!

Note: For those that dislike to set a hard-coded IP, the second solution is the best of course.

Sources:

How to load an Access Database into a DataSet object in C#

Today I needed to load a Microsoft Access Database (*.ACCDB / *.MDB) into a DataSet  object in .NET environment using C#.

After finding some (partial) solutions I finally developed a little C# class in order to accomplish this task. This class loads an Access Database (whatever in ACCDB or MDB formats) into a DataSet  object. After the operation you can directly access to the loaded tables by using the .Tables  property of the generated DataSet object.

To use it, it’s really simple:

  1. Add the provided AccessDbLoader  class to your project.
  2. Load the Access Database file by using the following snippet:
    DataSet ds = AccessDbLoader.LoadFromFile("my.accdb");
  3. You can now use the ds.Tables  property.

For your convenience you’ll find a sample program below:

I think this class can be improved in some ways (e.g. handling primary / foreign keys constraints) but that’s enough for my needs.

Website update

I just updated the About page on the global structure of the website. 🙂

It was really funny cuz I saw that About page was in draft mode since EXACTLY 365 days! 🙂

gditools.py GUI released

I just released gditools.py GUI for Windows and Linux 64-bit for the excellent gditools.py script by FamilyGuy.

This Python script was made to handle GD-ROM image files (*.gdi) on several platforms.

If you’re interested, go here.

Happy New Year ’15!

Long time no see, he? I wish you a happy new year 2015. Wishing you 365 days of good luck!

And don’t forget to switch on your old gen consoles, especially the Dreamcast, he? 🙂

Hello World !

Finally, finally, finally ! I’m finally back on the web 😀

But before anything else , let me (re)introduce myself: My name’s SiZiOUS, formerly known as my full pseudonym [big_fury]SiZiOUS (which I no longer use), or more shortly SiZ! (yes, shorting a nickname’s possible, and it isn’t ridiculous!).

Continue reading