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 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 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?
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
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
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 […]