Sunday, July 12th, 2009
In order to insert value 0 in a field that is set as primary key for a MySQL table you need to execute the following query prior to any insert query:
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
Now you can successfully run the insert query with 0 set as value for a primary key, ...
Posted in MySQL, Programming | No Comments »
Wednesday, February 18th, 2009
Here is a JavaScript function used to remove blank lines from a textarea. This snippet is using the Prototype JavaScript framework
function removeBlankLines(field)
{
$(field).value=$(field).value.gsub(/\s+/, '\r\n');
}
You can use it with "onblur" attribute:
Posted in HTML, JavaScript, Programming | No Comments »
Friday, November 16th, 2007
If you have more than Yahoo accounts and you want to use them in the same time, there is a simple way to do it, by using an alternative instant messenger client or by executing some small tweaks on the Yahoo Messenger client.
Alternatives:
Alternatives to the Yahoo Messenger client are Pidgin, ...
Posted in Software, Windows | No Comments »