Subscribe
Twitter Updates
- Fuuuu http://t.co/ItjqQrkT 1 week ago
- RT @phoronix: Cinnamon Fork Of GNOME Shell Is Tasty At v1.2: Cinnamon, the fork of the GNOME 3.x Shell by Linux Mint developer... http:/ ... 1 week ago
- Disable javascript in your browser to skip the #SOPA protest on Wikipedia 2 weeks ago
- Symfony2 and Twig part of NetBeans (NetBeans for PHP) http://t.co/6Ur2QoLX 2 weeks ago
- The Raspberry Pi Computer Is Finally Being Manufactured http://t.co/QJxATfXV 3 weeks ago
Category Archives: Programming
Display random posts in WordPress
WordPress posts may be randomly displayed using the “Get random results from a MySql table” tip placed in a simple plugin. What this plugin does is to simply ad the “RAND()” value to “ORDER BY” clause in the sql query which retrieves the WordPress posts.Continue reading
Get random results from a MySql table
It is possible to retrieve random results from a MySql table using the RAND() mathematical function. In order to get the random results the RAND() function needs to be used in the ORDER BY clause.Continue reading
Pretty print JavaScript with Google Chrome
The built-in Developer Tools from Google Chrome allows formatting of an inline (minified) JavaScript code to a human readable format.Continue reading
Use your browser to decode base64 encoded data
If you are dealing with base64 encoded data you may find useful to know that any modern browser can easily decode it using the Data URI scheme. All you need is pass the encoded data to the browser in the same way as you would enter a regular URL, but of course using the correct structure of the data URI scheme.Continue reading
PHP CLI increase memory limit
When running a PHP script from command line interface (CLI), a higher memory limit may be required in order for the script to be successfully executed. This can be achieved using the “-d” or “–define” option in the commandContinue reading
