PHP 5.3 has been released!

June 30th, 2009

The PHP development team is proud to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X series, which includes a large number of new features and bug fixes.

Some of the key new features include: namespaces, late static binding, closures, optional garbage collection for cyclic references, new extensions (like ext/phar, ext/intl and ext/fileinfo), over 140 bug fixes and much more.

For more info go to php.net.

Freemasons - Rain Down Love

June 29th, 2009

Freemasons feat. Sophie Ellis Bextor - Heartbreak (Make Me A Dancer)

June 15th, 2009

Recent track with Sophie Ellis Bextor.

OASIS - I’m Outta Time

May 28th, 2009

I love England!

Say Bye to GeoCities

May 10th, 2009

geocities_is_closing

GeoCities does no longer support new accounts creation and as they state on their web site it’s going to be closed later this year.

Many of us used that service and it’s a little sad to see it’s being closed.

Ajax in real XHTML

April 20th, 2009

I’ve been workin today on Live Search for this web site. It uses Ajax and since this site is made in real XHTML, JavaScript works in xml mode.

When you work with JavaScript in real XHTML sites sometimes things are different than what they used to be. For example, you make an Ajax call and got transport.responseXML object. This is what you do to add that xml to your code.

var content = $('content')
var res_xml = document.importNode(transport.responseXML.documentElement, true)
content.parentNode.replaceChild(res_xml, content)

You can’t just take plain transport.responseXML object and use replaceChild or appendChild methods on it. You need to call importNode or adoptNode first, to import it to the current document, only after that you can use replaceChild or appendChild.

It took me 2 hours to figure that out, because Safari doesn’t show any error message when you don’t use importNode, it just doesn’t work. And in Firefox it works, but without any error message or a warning, which makes it much difficult to find the error.

Coca Cola and Avril

April 15th, 2009

avril

yea

Ruby 1.9.1 and Rails

April 14th, 2009

I installed ruby 1.9.1 and was gonna upgrade my rails apps to Rails 2.3. These are the problems I ran into during the upgrade.

MySQL Gem

Automatic installation of mysql 2.8.1 gem for ruby 1.9.1 on Mac OS 10.5 doesn’t work. Here is how to install it manually.

1. First thing, check whether you meet requirements on mysql gem’s page.
Note: mysql 2.8.1 gem doesn’t support MySQL < 5.0.67 and 5.1.x family (according to this post).

2. Download it from their page on RubyForge. Unpack it, cd to its root directory. Run these commands.

ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config --with-mysql-dir=/usr/local/mysql
make
sudo make install

Ruby-Debug Gem

ruby-debugRuby-debug 0.10.3 gem doesn’t support ruby 1.9.x. If you have some important sites in rails, maybe you shouldn’t switch to ruby 1.9.x yet, as debugging will not be available.

Web Site Launch!

April 6th, 2009

Hi everybody!

I launched my new web site today. It’s a mix of my freelance business and a blog. The color scheme, I made for it is called ‘Light Purple’. The site is made in real XHTML, which means it uses application/xhtml+xml as its content-type and yes IE is not supported.

I’m gonna use this site to post my thoughts, music, web development stuff and posts about freelancing of course.

Hope to see y’all later here!