Author / Giovambattista Fazioli

Here you’ll find the actions run during a typical request in the backend admin area.

Read More

Edit your wp-config.php file, located in WordPress root folder, and add or replace define(‘WP_DEBUG’, true); In this way, WordPress will print the logs on the screen. This may be very annoying, so you would like to redirect all logs in a file. As usual, please don’t hesitate to leave any questions or comments in the […]

Read More

MySQL provides a very simple method to select rows in random order. It uses the ORDER BY RAND()statement. If you will be used theORDER BY RAND() statement, MySQL will create a temporary table with all results, then will be assigned a random index to each row and finally will return the random rows! This makes the […]

Read More

When you would like to show a page only for a specified user or you wish to create a maintenance page, you may use this simple script:

Read More

With Xcode 4 you can develop applications for iPad and iPhone. Also, you can choose a different iOS target. Currently, the last release of iOS is 4.3 and when you will create a new project you will see: Now, the rootViewController property has been added with iOS 4. This means that when we going to test […]

Read More

The last version of WordPress provides a new toolbar in frontend view when you are logged in. To disable this feature you can add the following code in the functions.php file in your active theme:

Read More

Apple suggests using an instance of NSFileManager class and avoid the static class method defaultManagerbecause it will return a singleton instance: no thread-safe: In Mac OS X v.10.5 and later you should consider using [[NSFileManager alloc] init] rather than the singleton method defaultManager. Using [[NSFileManager alloc] init] instead, the resulting NSFileManager instance is thread safe. […]

Read More

If you  would like to avoid to set the background image of the main view controller through Interface Builder, you can use a different way and delete the UIImageview object from Interface Builder: You may use viewDidLoad as well but viewWillAppear avoid some flickering. With Xcode 3.2.5 is not possible to use the pattern yet.

Read More

How to check if an element DOM exists Be careful when you wish if an element DOM exists. If you use: This method doesn’t work because jQuery will return an [Object object] even if the element doesn’t exist. We may use a couple of methods to be sure that an element exists:

Read More