Author: sisir

  • How to Fetch Latest Update Form Bitbucket Private Repo to Local

    If you are collaborating with a team and working on a fork of a repo. Merge conflicts are common on git but you always need to be upto date to avoid nasty merge conflicts, which may very well kill your production time if you get too far behind. This is how you can download the […]

  • How to Exit from Linux CLI Editor / VIM

    Often for newbies how to exit form VIM or CLI (command line interface) editor is confusing. I’ve seen people just close the CLI in out of frustration. Follow the instruction below if you finding it hard to exit from VIM   Press Esc key couple of time. This will ensure that you are back in […]

  • How to Change PHP Version for Current Directory – Godaddy – Linux Hosting

    So, I recently had a special case where my client was using older version of php in his godaddy hosting and didn’t want to upgrade. But for the current project I needed to enable php 5.4. I couldn’t use godaddy control panel to change/upgrade php version because that would change the php version for whole […]

  • How to Disable Password Requirement on Windows 8 Logon?

    How to Disable Password Requirement on Windows 8 Logon?

    While setting up Windows 8 you will need to setup a password for your user account. On previous windows version it was optional. Its a awesome security feature but if you are using your PC in home you might not require that. So, Here is how you disable it. Logon to your user account. Press […]

  • How to Toggle, Remove Tab on Top on Firefox Latest Versions

    How to Toggle, Remove Tab on Top on Firefox Latest Versions

    I was updating firefox other day and after the update i have found the tabs gone back to default location. I like tabs after web address bar. So, here is how it can be changed if you need. On your firefox browser write about:config and press enter. You will be shown a alert message. Click […]

  • Permanently (301) Redirect Old Domain URL to New Domain URL Using .htaccess – Linux Server

    [php] # BEGIN WordPress RewriteEngine On RewriteCond %{HTTP_HOST} ^oldsite.com RewriteRule (.*) http://newsite.com/$1 [R=301,L] # END WordPress [/php] Make sure to change url for oldesite.com and newsite.com

  • How to Convert GET URL Structure to Array and Reverse

    [js] function URLToArray(url) { var request = {}; var pairs = url.substring(url.indexOf(‘?’) + 1).split(‘&’); for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split(‘=’); request[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); } return request; } function ArrayToURL(array) { var pairs = []; for (var key in array) if (array.hasOwnProperty(key)) pairs.push(encodeURIComponent(key) + ‘=’ + encodeURIComponent(array[key])); return […]

  • How to Get Posts Using Post IDs in The Order It was Given on WordPress?

    How to Get Posts Using Post IDs in The Order It was Given on WordPress?

    Example: We have an array containing post ids [php] $post_ids = array(56, 4, 66, 34, 56, 6); [/php] Now if we want to get those posts we can use any of wordpress query functions such as get_posts(), query_posts() or WP_Query. In the order they will be received you can control it via ‘orderby’ and ‘order’ […]

  • How to Fix WordPress 404 Permalink Error on Localhost

    How to Fix WordPress 404 Permalink Error on Localhost

    Go to your servers httpd.conf file and open it up with notepad or any text editor (not MS word!). Now press ctrl+F to open up the search function and search for this line # LoadModule rewrite_module modules/mod_rewrite.so and remove the # before the line. Restart the server. If you still having problem please comment and […]

  • How to Remove Bubble – Google Maps

    How to Remove Bubble – Google Maps

    To remove the Address or Info Bubble on Google Map embed code you will need to set iwloc parameter something other than default on source attribute of iframe tag. First copy your embed from google map and paste on any text editor and find check if the iwloc parameter already exists if it exists then […]