Ref. Ignoring “Your local changes to the following files would be overwritten by merge” on pull
git checkout HEAD^ file/to/overwrite
Ignoring versioned files
To start ignoring a file
$ git update-index --assume-unchanged path/to/file.txt
To start track again
$ git update-index --no-assume-unchanged path/to/file.txt
You can pull one or all public submodules with git using the following commands :
git submodule update --init [PATH TO SUBMODULE]
Ex. git submodule update --init c:/wamp/www/site/subfolder
git submodule update –init,
more coming soon..
With the excel spreadsheet going large you have to scroll down to view the records which are out of screen and fall out of the screen down towards bottom. In this process of scrolling you might not be able to remember the heading of the column and may have to scroll up again to the top to view the heading of the column again. Continue reading
This issue took me weeks to fix it. It started when we started working on a new ratings module for PHPBB forum at popular HTML.net website. I noticed (the client also knew) that a few of forum tables filled very fast and kept growing with the time. Continue reading
Changes to Media Uploader in WordPress 3.5 were perhaps the most significant changes in that release. Another important change was the removal of Settings » Miscellaneous section where there was an option to change the default upload directory and an option “check box for year/month folder organization”, in the admin end. Continue reading
I tried to add a featured image to the previous post i created but it gave me the following error:
Unable to create directory uploads/2014/08. Is its parent directory writable by the server?
The same error occurred when i tried to add a new media item to the same post. Continue reading
It’s almost 5 years when i purchased my first laptop. It was Dell Inspiron 1440. This was the first and the only laptop i have had bought for myself till date. After buying this one didn’t feel need to buy another one as this one still runs very smooth and problem free. Continue reading
Sometimes you wanted to update columns of one MySQL table by quering another MySQL table and getting a column value from the later table. For example you have a ‘students’ table and you wanted to create a new field ‘totalMarks’ in it and wanted to fill or update by taking sum of the ‘marks’ field from another table named ‘marks’. Here comes the use of subquery to update column. Continue reading
I frequently need to check this list as i have got two active Airtel activated sim cards and one of them is a post-paid sim. The given list of Airtel prepaid tariff plans for Punjab circle is on the Airtel website itself and i dont think i am going to be responsible for any mistake in the list, haha.. Continue reading
WordPress keys and salt in wp-config.php work as an important security measure. These “impossible to guess” and hard to remember and understand keys work as salt for WordPress Cookies data store in your computer for your WordPress website information. These security keys ensure better encryption of data. Continue reading
Here is the latest CakePHP Captcha support for CakePHP Version upto 3.x.
Download for CakePHP 3.x
Download for CakePHP 2.x
NOTE:For best Image Captcha results this component requires GD and Freetype support enabled. Please check your phpinfo() to know whether your server supports this (See image below). Contact your hosting provider if any of these libraries is not enabled.