wordpress-faq

WordPress Development FAQ

With more than 5 years of WordPress development experiences. I decided to create this summary of most frequently asking question (FAQ) while developing a WordPress themes or WordPress plugins. And this post will continuously updated, so you may need to bookmarked it :)White blank page (White screen of death)This is one of the annoying issue in WordPress. It is just a white blank page. No errors, No warning. I found this issue couple times during my WordPress development. And i wrote it in … Read more...

ubuntu-wallpaper

Solve Missing Library Error in Ubuntu

This article i want to share and also remind myself in the future on how to solve missing library error in Ubuntu. There was a time when i tried to compile some package library on Ubuntu.When i tried to compiled it i got a strange error "zlib.h : No such file or directory.", this is strange error that I never encountered before.After Googling a while I got the solution as follows:Search zlib.h file in http://packages.ubuntu.com and you will get some results.Then i choose the library … Read more...

hex-editor

Fix Strange “Headers already sent by” in Line 1 PHP File

"Cannot modify header information - headers already sent by" error is most common PHP error happen when we develop a web application. Usually when we want to redirect or send cookie. I used to get that warning a lot long time ago. But since i standardize my PHP code, it doesn't happen for a while now, until last night.Yesterday night i was fixing somebody else code and audit the performance as well as the security. But when testing it, i got very strange error, the error was "Headers already … Read more...

security

Linux Shellshock Security Patch

Just doing  a routine browsing this morning and i found that my Ubuntu is vulnerable with Shellshock attack. Shellshock is newly discovered security vulnerable for your bash, which means all Linux and Max are vulnerable from this security issue. Shellshock using crafted environment in bash script and gain access to your computer. This is more serious than heartbleed a while ago.To test if your Linux is vulnerable, run this script on your bash terminal:If you see a message: vulnerable … Read more...

sublime-phpcs

Use PHP Code Sniffer (phpcs) in Sublimetext 3

Today i found a great plugin for Sublimetext 3, it is called sublime-phpcs on Sublimetext 3. This plugin is to check if my php code is good according to the PHP Standard (PSR-1 and PSR-2). After the  default installation, the plugin was not working and return a lot of errors. So i dig around a bit and finally it is working now.Below are the requirements and how to install it (note that i'm on Ubuntu 14.04):PHP PearPHP Code Sniffer (phpcs) Pear PackagePHP … Read more...

Git-Logo

Git Ignore File Permission

Using Ubuntu for web development is a perfect match. Since i migrate to Ubuntu a month ago, i could code faster and deliver more result. Instead of great environment, i also found an issue with Git and File Permission. By default Git detect file permission, and if i change a file or directory permission then Git will track it and consider it as new changes. In Windows environment, i never found this issue.And since i'm also using suPHP libraries on my LAMP stack, i must use 755 file … Read more...

commandline

Linux Command “find” 101

It's been a month i move back to Ubuntu as my primary OS. And i would like to write one of the most use command in Linux: "find". This command is like a magic to search anything i want on my hard drive. I can find a text inside a file, or filter it for certain extension. I can search the files with latest modified time and also the file size.List to use Linux command "find" that mostly used by me:Find all PHP Files in a directory:Find a file with a name:Find file with wrong permission … Read more...