May 10, 2009

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 have used that service and it’s a little sad to see it’s goin.
UPDATE: As of October 26, 2009 geocities has been officially closed.
Tags: geocities
Posted in Web | No Comments >
April 20, 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 very difficult to find the error.
Tags: ajax
Posted in Programming | No Comments >
April 14, 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-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.
Tags: rails, ruby
Posted in Programming | No Comments >
April 6, 2009
Hi everybody!
I launched my new web site today. It’s a mix of my freelance business and my 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 here later!
Posted in General | No Comments >