Archive for the ‘Geek Life’ Category

6 days before my Honeymoon in India

Tuesday, October 13th, 2009

That was a terrible year professionally speaking, and in a certain way, I’m stopping it this week!

I leave to India for a 5 week trip with my wife. We’ll go to north and south, and will finish this in the laquedive islands .  (The reason why I passed my PADI Open Water is that I’ll dive there)

My current boss does not want to let me leave, and I’m currently dealing with him how to change the way we work today to maybe stay here longer. I’m quite satisfied with all the discussion we had together (at least, the lunches was good…), and if he really does what he said, I’ll maybe stay here, but now as a senior developer and Scrum-master in an improved team (more than 2). Indeed, as I wrote the specification of this project which is very ambitious and not so stupid, how can I say no to a boss proposing me a 6 person team and a total autonomy  to lead it in the way I want, and stock option to motivate to the success of this software platform…

So let’s forget this story during the 5 next week, and decide this when I’ll come back in November.

I’ll try to keep to push photos on the blog during the travel, to keep in touch with family and friends.

LVM on ubuntu

Friday, September 4th, 2009

Ok, here we are, a ftp server has no more space on its 1 To /home mounted drive… we don’t know what take so much place, but now the idea is to put another 1To drive to have a bigger /home.

No choice, LVM to create a new 2To partition, and mount this on a brand new /home where I’ll have to copy old 1To home. It’s not so hard to find what to do, but as always under linux, nothing go well at the first time.

After rebooting the machine, the old /home sdc1 does not work.  Then juste before panic, I see that my colleague changed the order of drive on sata controllers, and the old sdb1 was now sdc1.
I just change the /etc/fstab mount device for the old /home and everything went ok and it’s 1To of precious data not lost…

Ok, so start building the logical volume with the 2 new drives sdb and sdd:

fdisk /dev/sdb, v to display status, o to create msdos partition table, and v to see display again, q for quit

fdisk /dev/sdd, v to display status, o to create msdos partition table, and v to see display again, q for quit

Then I have my devices sdb1 and sdd1, I can create physical volumes:

pvcreate /dev/sdb1
pvcreate /dev/sdd1
pvdisplay confirms that

Now let’s create and activate the volume group:
vgcreate memnonhome /dev/sdb1 /dev/sdd1
vgchange -a y memnonhome
vgdisplay to confirm the volume group.

As I did’nt find a way to take all the available space with lvcreate, I used the size value given by the vgdisplay to do
lvcreate -L1829G -nHomeLV memnonhome

and then

mkfs.ext3 /dev/memnonhome/HomeLV which has created the partition correctly.

After few modification in the /etc/fstab, I mounted the old home in /oldhome, and the /dev/memnonhome/HomeLV in /home.

Just have to run a last copy with the -p option to preserve owners rights etc…
Ok, so few preparation, and so lucky to make it work in 1h…cool…Again google and other blog save my life.

Data access is not easy…

Thursday, September 3rd, 2009

I try to find a cost free configuration for an ASP.NET MVC application.

For this, Mono is the obvious part of the solution. PostgreSQL is a database solution that I follow since few years, and after trying MySql and SQLServer express, It’s sure that it’s my favorite one. Not only because it’s free, but specially for the clarity of the documentation and the high performance of this database.

The thing is thas I really hate working with SQL commands, and since few months, I ‘m really kind of Linq technology.

Indeed, I try to set up this configuration:

mono 2.4.2.3 – mod_mono 2.4.2 – apache 2.2.11  – PostgreSQL 8.3
mono – FastCGI – lighttpd – PostgreSQL 8.3

I tried both fascgi et mod_mono, and in both cases, the configuration is not so hard and works quite well. The issue is that I really need now to be able to use linq to SQL with the postgreSQL database.

I tried with the Devart dotConnect component which pretended to be compatible Mono, and Linq.
That’s right, it creates good DataContext models (compatible with SQLServer DataContext which allow to swith really easilly from one to other). The big issue, is that does not work under Mono, as they answer to my question in their forum.

I now wait the DBLinq integration in the Mono 2.6 which was annouced for September and supporting PostgreSQL/MysqlSQL/SQLite with linq support.

Just that my boss won’t be please, because I’m really late on this point…
Not an issue, right, I ‘ve quit last monday ;-)