Blog

I’m Attending WordCamp Mumbai, 2017, This Weekend

I’m Attending WordCamp Mumbai, 2017, This Weekend. #WCMUMBAI 2017 is happening on 25th & 26th of March, 2017 and I’ll be among the many attendees. I am attendee of WordCamp since 2015. I’m looking forward to meeting new people this weekend and creating new memories. I’d love to talk to you about your experiences with …

How to mount remote directory using SSH ?

How to mount remote directory using SSH and make it available it as local directory. Install the module sshfs:

Load it to kernel

Set permissions

Now create a directory to mount the remote folder in.

Run the command to mount remote directory

Now remote directory should be mounted.

How To Record Streaming Audio In Ubuntu

How To Record Streaming Audio In Ubuntu: Audio Recorder records all type of sound your computer makes. It records audio played through your system’s soundcard, microphones, browsers, webcams and more. It provides option of selecting the recording device such as webcam, microphone, Skype etc. Use a PPA to install Audio Recorder in Ubuntu. Use the following …

How To Reset MySQL Auto Increment Column

MySQL database provides a beautiful feature of Auto Increment Column index. Database table can define its primary key as Auto Increment number and MySQL will take care of its unique value while inserting new rows. Each time you add a new row, MySQL increments the value automatically and persist it to table. But sometime you …

What is a WordPress Theme Text Domain ?

In this example ‘my-theme-textdomain’ is the defined as textdomain for the Theme. Text Domain is used to make the Theme translatable. (Codex reference: load_theme_textdomain()). Define the Theme’s textdomain load_theme_textdomain( 'my-theme-textdomain', TEMPLATEPATH.'/languages' ); Define translatable strings in the template. This is done using one of a few translation functions: __() (for returned strings), _e() (for echoed strings), and _x()/_ex() …

Get wordpress post content by post id

To get wordpress post content by post id use WordPress function get_post() with post id as parameter.

Using WP-CLI : A Command line interface for WordPress

WP-CLI – A command line interface for WordPress is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser. Setting up path for mysql command (For MAC OS Terminal) export PATH=$PATH:/Applications/MAMP/bin/apache2/bin/mysql Configure wp-config.php file at core WordPress wp core config --dbname=woo --dbuser=root --dbpass=root --dbhost=127.0.0.1 Start installation of WordPress for …

PHP show a number to decimal places

Use number_format() function to format number to decimal places.