Blog

These days I am looking for a web developer in Lithuania. It is not very easy because it’s a small country… but on Linkedin you can find quite many profiles.

The problem is, sometimes you can’t connect to these people because they are too far out of your network.

Usually you would get the first name of the person and some skills in his profile.

Read more

When building a web application it can seem a bit tricky to get the value of the id (primary key) of the latest row inserted in a mysql table.

It is not that complicated.

The function LAST_INSERT_ID() can help you finding that. This function will return the latest auto-incremented value. No need to specify the table, it just takes the latest one.

SELECT LAST_INSERT_ID() ;

The next question is: what happens when I have many concurrent sessions on the same server? Will I get the latest inserted id from another user?

Read more

Easy!

sudo apt-get install lamp-server^

Be careful not to delete the ^ character.

This will install: 

Read more

Login and re-login and re-re-login in phpmyadmin is a huge pain.

Here is the way to extend sessions duration.

Open the file config.inc.php in /usr/share/phpmyadmin or in /etc/phpmyadmin

Add the following line:

$cfg['LoginCookieValidity']=86400;

And in php.ini, modify the following line:

session.gc_maxlifetime = 86400

Restart apache.

apache2ctl restart

You now have 24h sessions.

Read more

MAC addresses are assigned at the bootup of a virtual machine. But there is a way to assign a fix hardware address to a vmware network interface by editing the virtual machine with Vi.

Simply connect with SSH to your ESXi and go to /vnfs/datastore1 or anywhere you put your vm.

If your virtual machine is called vm1, go to /vmfs/datastore1/vm1

Open the file vm1.vmx using Vi.

Around the end of the file there will be the configuration of the network interfaces.

You should see things like:

Read more

Indians seem to be very proud of Qutub Minar. It is a nice sight to visit, no too crowded even on a Saturday afternoon.

As usual when it is available I decided to hire an audio guide. Audio guides will give you only advantages.

First no pseudo fake official guide is going to annoy you and try to get your money in exchange of dodgy historical facts…

Second the information you receive is probably accurate. It probably doesn’t work in every country but I think I can trust India for not trying to change History.

Read more

Lotus Temple

The Lotus Temple is a multi-faith praying temple. It is also known as the Bahá’í House of Worship. Apparently these Bahá’í Houses are sharing some characteristics. They should be roughly rounded and have 9 sides. I looked a bit inside and it was obvious that everything was build around the number 9.

Anyone is welcome to enter the Lotus temple and stay as long as they want. You are welcome to pray for whoever you want and speak to whatever god you want and for as long as you want.

Read more

Humayun’s tomb

This complex was interesting and peaceful like many other sights in Delhi. A throw stone away from the hustle and bustle of the streets of Delhi but very quiet inside. Some people are repairing some parts of the site. Their kids are playing with them as it is Saturday and they are not at school.

Read more

India GateIndia gate

India Gate is a monument build in the 1930s in memory of India soldiers who died during first wold war. I was surprised to see something about France written on it, close to the top.

Read more

30/98