By editor, 16 February, 2016 Create and Apply Patches using GIT DIFF and APPLY Tags Shell Git Create Patch: git diff PATH/TO/SOURCE.php > PATH/SAVE_patch.diff Apply patch git apply PATH/SAVE_patch.diff
By editor, 9 February, 2016 Add a solid color zone at the top (or anyware) of the page Tags Theming CSS .main-container { &:before { content: ''; position: absolute; height: 500px; background: red; width: 100%; left: 0; } } ALSO: Add z-index: -1; if this hide some thing .main-container is a div just after the body
By editor, 9 February, 2016 Horizontal Align Tags Theming CSS 1. Text-Align: Center; div{ text-align: center; } 2. Margin: 0 auto;
By editor, 9 February, 2016 Vertical Align - Center Up and Down Tags Theming CSS Tables vertical-align: middle; is working in a TABLE, but not inside if a DIV Move up/down To move a background image (50px s=X 50px) to center of the previus line(50px to top).
By editor, 3 February, 2016 Make Correction on a git Tags Shell Git Server 1. Remove Files Step 1. Switch to your branch Strp 2. Remove files using -rm command Ex : git rm -r sites/all/modules/stage_file_proxy Step 3. Add this file to the .gitignore
By editor, 30 January, 2016 Mysql Database Backup / Restore Syntax Tags Server Shell Database Syatax (Usually used) mysqldump --host=IP-OR-HOST --user=USERNAME --password=PASSWORD database_name > database_name.sql mysqldump -h IP-OR-HOST -u USERNAME -pPASSWORD database_name > database_name.sql
By editor, 28 January, 2016 Git - Include and Exclude by .gitignore Tags Git Server Shell Ignore files and folders using .gitignore Example 1. Ignore (Exclude) a simple file or a folder sites/default/settings.php sites/*/files
By editor, 24 January, 2016 Remove Apache Log files Tags Server Shell Step 1. Connect to the server as root or execute commands as sudo #sudo su Step 2. remove all log files rm -rf /var/log/apache2/* rm -rf /var/log/virtualmin/* ....
By editor, 24 January, 2016 XDebug - Install and configure with NetBeans Tags Server Debug Step 1. Install Xdebug If not already ainstalled, Install Xdebug (I'ts already on the package WAML, LAMP, MAMP) In Linux Debian/Ubuntu/Mint # sudo apt-get install php5-xdebug
By editor, 18 January, 2016 Debug and Display errors. PHP Apache Mysql Xdebug Tags Server Shell Debug Step 1. Check apache error log (use tail to show in real time) # tail -f /var/log/apache2/error.log Step 2 : Check MySQL database connection using mysql -uusername -ppassword