Posts

WordPress blogs over to Blogger

  Ever wanted to move your WordPress blogs over to Blogger? This site can aid in the process! http://wordpress2blogger.appspot.com/

PostgreSQL: table creating new table with

Image
PostgreSQL:   Create same structure of another Table with no data CREATE TABLE db_na AS SELECT * FROM db_ca WHERE 1=2;

Simplest CSS hack Ever

Simple, just put '//' in front of any valid css declaration , most of the other browser will treat this as comment and ignore it, while our friend Internet Explorer will not treat this as comment and render the property. <style> .test{      color:red;      //color:green; } </style> <p class='test'>I will be green in Internet Explorer, red in all other browsers</p>

Wordpress :Creating a Simple Shortcode

The thing to remember with shortcodes is that they're very easy to create. If you know how to write a basic PHP function, then you already know how to create a WordPress shortcode. For our first one, let's create the well-known "Hello, World" message. Open the functions.php file in your theme. If the file doesn't exists, create it. First, we have to create a function to return the "Hello World" string. Paste this in your functions.php file: view source print ? 1 function hello() { 2      return 'Hello, World!' ; 3 } Now that we have a function, we have to turn it into a shortcode. Thanks to the add_shortcode() function, this is very easy to do. Paste this line after our hello() function, then save and close the functions.php file: view source print ? add_shortcode( 'hw' , 'hello' ); The first parameter is the shortcode name, and the second is the function to be called. Now that the shortcode is create...

How to : WordPress Install Process

Install xampp start Apache and MySql call the Local url as "http://localhost/yourfolder" Download word press from http://wordpress.org/download/ put the content of WP in 'htdocs' folder In phpMyAdmin create a Database and grant priviliages to that db by executing the command: GRANT ALL ON * . * TO user@localhost IDENTIFIED BY  'password'; Thats all Call "http://localhost/wordpressfolder" fillup the details (db name, username, password, table prefix...) Famous 5-Minute Install Here's the quick version of the instructions, for those that are already comfortable with performing such installations. More detailed instructions follow. Download and unzip the WordPress package, if you haven't already. Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it. Rename the wp-config-sample.php file to wp-config.php ....

Fwd: disable or enable some elements in Jquery

Image
Sometimes you need to disable or enable some elements in your document and jQuery makes this task easy. All you have to do is to set disabled attribute to " disabled ". Example:     // To disable     $('.someElement').attr('disabled', 'disabled'); In order to enable any disabled element you need to set the disabled attribute to empty string or remove it entirely like in the code below.     // To enable     $('.someElement').removeAttr('disabled');           // OR you can set attr to ""      $('.someElement').attr('disabled', '');

Highcharts Interactivecharts for your web page. : Free

Image
http://www.highcharts.com/ Interactive JavaScript charts for your web page. Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scatter chart types.