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.
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.
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-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.
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.