Archive > November 2009

Transfer a twitter application from one user to another

If you have a twitter account maybe you have played with twitter API, or even you have made a twitter application for integrating the “Sign in with Twitter”, or maybe you have created an application for something else. Anyway, these days I’ve been working in integrating the Sign in with Twitter and Sign in with […]

Continue reading

, ,

[SOLVED] The kvm-qemu virtual machine ignores shutdown and reboot

These days I’ve been playing with KVM (Kernel-based Virtual Machine). All started with a kernel upgrade and VMWare Server stop working, and getting lots of errors when executing vmware-config.pl while recompiling the modules. Anyway, what matters is that I’ve migrated a couple of virtual machines from VMWare Server 2 to qemu-kvm. One of the virtual […]

Continue reading

, , , , , , ,

How to get the UUID of a disk or partition in Ubuntu

Sometimes it can be very useful, and even necessary, to know the UUID (Universally Unique Identifier) of a disk or partition in Linux. Nowadays the configuration for mounting disk partitions on linux (the file /etc/fstab) uses the UUID instead of the device name (/dev/hda1, /dev/sda1 …). If you need to know which is the UUID […]

Continue reading

, , ,

Emulate short tags in PHP when short_open_tag = off

Yesterday I was playing with PHP 5.3. It seems that the default configuration comes with short_open_tag disabled 🙁 The short open tags is what allows to write code like this <?=”algo”?> instead of having to write <?php echo “algo”?>. Something REALLY INTERESTING, it makes PHP code really clear when looking at templates from my point […]

Continue reading

, , ,

Writing clean and semantically correct HTML

Web Designer Wall people has writen a post titled Coding Clean and Semantic Templates that basically gives some advices on how to write proper HTML code for templates. Briefly, the list of advices that they give are: Minimize the use of  <div> Use  the <div> tag only  for the layout: header, content, sidebar, and footer […]

Continue reading

, , ,

PHP amazingly improves itself

This was me, looking how to install PHP 5.3 in the new Ubuntu Karmic, because using the new functionality of late static binding will simplify my code, and I’ve found something amazing. A new feature that was missing in PHP, but they have included in PHP 5.3… the… wait for it…. wait for it…. wait […]

Continue reading

, , , ,