Tag Archives: line

wp-cache and sem_get issue: How to fix it

I had my wp-cache disabled for a long time but when I reactivated it today I saw a PHP warning showing up: Warning: sem_get() [function.sem-get]: failed for key 0x152b: Permission denied in ……/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 98 To fix this problem, … Continue reading

Posted in PHP, Resources, Tips and Tricks, WordPress | Tagged , , , , , , , , , , , , , , , , | Leave a comment

“sed”: Find and Replace Command on Linux Command Line

Sometimes we use IDE to find and replace strings in our file(s). IDEs have features to search for a keyword in all the files in a directory and replace with a given string. When you’re on Linux and using command … Continue reading

Posted in Codes, Interest, Linux, Mac, Playground | Tagged , , , , , , , , , , , , , , , , , , , | 1 Comment

Setup sub-domain on the localhost

When I work on my local machine on a website, I usually setup the virtual host on a sub-domain setup on the localhost. I feel comfortable using a sub-domain rather than setting up an Alias. I’ve seen many people know … Continue reading

Posted in Interest, Playground, Resources | Tagged , , , , , , , , , , , , , , | 3 Comments