May 2009 Archives
Every now and then you have the (miss fortunate) to need sIFR. I usually go for the jquery plugin. However, jquery sIFR measures the width of the html text (not the block itself) and then creates a matching flash. Since flash text is often wider, a line break appears.
Thus - jquery sIFR needs support for css width.
In jquery.sifr.js, efter line 297 (sendOptions[height]), add:
if( $each.css(width) !== "auto" ) {
sendOptions[width] = $each.css(width).replace('px','');
}else{
sendOptions[width] = sendOptions[width] || $alt[0][offsetWidth] || $alt[0][parentNode][offsetWidth] || $each.css(width);
}
Works for me..
Thus - jquery sIFR needs support for css width.
In jquery.sifr.js, efter line 297 (sendOptions[height]), add:
if( $each.css(width) !== "auto" ) {
sendOptions[width] = $each.css(width).replace('px','');
}else{
sendOptions[width] = sendOptions[width] || $alt[0][offsetWidth] || $alt[0][parentNode][offsetWidth] || $each.css(width);
}
Works for me..
From time to time you have the need to duplicate an mysql database, here's how you do it:
mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host DB_name
Source
For I while I've been getting myself involved in Orbited, a " HTTP daemon that is optimized for long-lasting comet
connections. It is designed to be easily integrated with new and
existing applications. Orbited allows you to write real-time web
applications, such as a chat room or instant messaging client, without
using any external plugins like Flash or Java."
It's a great piece of software to work with as it allows web users to connect to TCP services, such as IRC servers, telnet, sockets, pretty much anything you can think of.
I am basing my new application for my chat project on it and so far it's great. The only downside isn't really any good performance measurements for it - yet. I am working with Orbited developers and a stress test analysis company to perform such measurements. Updates will follow...
It's a great piece of software to work with as it allows web users to connect to TCP services, such as IRC servers, telnet, sockets, pretty much anything you can think of.
I am basing my new application for my chat project on it and so far it's great. The only downside isn't really any good performance measurements for it - yet. I am working with Orbited developers and a stress test analysis company to perform such measurements. Updates will follow...
