Qroot - qroot.org - Bogdan's

Latest News:

Upload WordPress post thumb image with PHP 26 Jul 2013 | 03:37 pm

Here’s what you need to use in order to upload the thumb automatically with PHP instead of manually from the backend. $upload_dir = wp_upload_dir(); $image_data = file_get_contents($image_url); $filen...

WordPress social login: Unspecified error. #6 17 Jun 2013 | 03:57 pm

Change $this->api->api_base_url = “https://api.twitter.com/1/”; to $this->api->api_base_url = “https://api.twitter.com/1.1/”; in wordpress-social-login/hybridauth/Hybrid/Providers/Twitter.php The pos...

Add WordPress Javascript and CSS in header 11 Jun 2013 | 01:19 am

Use the following functions in order to add  Javascript and CSS codes within the header of the web site from a plugin or a theme. wp_register_script() wp_enqueue_script() wp_register_style() wp_enqueu...

Copy one file in multiple folders 12 Apr 2013 | 07:20 pm

This is what you need to do in order to copy a single file within multiple folders. Code runs on bash / shell Linux scripting. for f in *.qroot.org; do cp index.php "$f"/index.php; done The post Copy...

YII blog database schema example 29 Mar 2013 | 02:23 am

YII blog example comes with a default database schema. Here’s the code to build it. CREATE TABLE tbl_lookup ( id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(128) NOT NULL, code INTEGER N...

Copy recursively doc files on Mac 16 Mar 2013 | 03:44 am

If you need to copy multiple files at once recursively on Mac, you need to run this script within the Terminal: find ./-name "*.doc" -type file -exec cp {} /where_to_copy_them The post Copy recursive...

Remove files with certain extension recursively 16 Mar 2013 | 03:14 am

If you need to remove multiple files, recursively while using a UNIX / Linux box, here’s what you need to type in the console: find ./ -iname "*.doc" -exec rm {} \; That will remove all the doc files ...

Remote files with certain extension recursively 16 Mar 2013 | 03:14 am

If you need to remove multiple files, recursively while using a UNIX / Linux box, here’s what you need to type in the console: find ./ -iname "*.doc" -exec rm {} \; That will remove all the doc files ...

Convert doc in txt on Mac 15 Mar 2013 | 07:35 am

Here’s what you have to do in order to convert multiple doc files in txt format at once: find . -name *.doc -exec textutil -convert txt '{}' The post Convert doc in txt on Mac appeared first on Bogda...

Apple Mail To Do label with Gmail 7 Mar 2013 | 10:46 pm

Open Mail.app and visit your account preferences (CMD-,) and select the Mailbox Behaviors tab for your gmail account. Uncheck the field that says ‘Store notes in Inbox’ Quit Mail.app. Don’t use the re...

Recently parsed news:

Recent searches: