MySQL statement terminators

There is the semicolon “;” that every one knows, and “g” which is just the same: mysql > SELECT * FROM wp_links; mysql > SELECT * FROM wp_links\g Those are exactly the same, and will produce the same result, here is an example: mysql> select * from wp_links \g +———+———————–+————–+————+————-+—————+——————+————–+————+————-+———————+———-+————+———————–+ | link_id | link_url |… Continue reading MySQL statement terminators

Install Symfony Without PEAR

A lot of web hosts have limited or nonexistent support for PEAR, the pear command will throw errors on most commands or not work at all, in order to install Symfony on such hosts you will need to download the Symfony package, copy Symfony files to your home directory and make them easily accessible from… Continue reading Install Symfony Without PEAR

WordPress upgrade error (Allowed memory size of 33554432 bytes exhausted)

The problem Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2516315 bytes) in /home/mydomain/public_html/blog/wp-includes/http.php on line 1370 This can happen at any line and with any file, not only http.php at line 1370! Explanation Don’t worry if you get this error, there is nothing wrong with your server or hosting plan… Continue reading WordPress upgrade error (Allowed memory size of 33554432 bytes exhausted)

Opera: CSS rotation and other transformations

After the release of Opera 10.5 Alpha, it’s now be possible to rotate elements, this new release includes support for CSS3 rotation and other transitions and transforms, we may not longer need JavaScript for some basic transformations, have a taste: Download Opera 10.5 Alpha See the demonstration The demonstration doesn’t show rotation, so the CSS… Continue reading Opera: CSS rotation and other transformations

JavaScript Tween function

This is a small library I wrote for creating simple and complicated easing effects without using JQuery, MooTools or other JS libraries. The library is small 13.4 KB or 5.6 KB compressed, The function can be called as follows: tween(element, property, from, to, duration, [optional] function) Parameters element: The id  of the HTML element you… Continue reading JavaScript Tween function

How can I set a WordPress page as my blog homepage

This can be done with a few clicks from your WordPress blog control panel. So first login to your control panel, then under the Settings menu choose Reading, after the page finishes loading, choose A static page (select below) for the option Front page displays, then on the first drop-down list  that follows choose the… Continue reading How can I set a WordPress page as my blog homepage