I have a site that runs on Linux in production that uses Memcache. Installing Memcache on Linux is a cinch. I was setting this site up in my development environment however (Windows 7 64-bit, with WAMP, specifically Apache 2 and PHP 5.3) and I quickly discovered it’s not so easy. For the life of me, I could not find the correct php_memcache.dll file.
After spending a ton of time unsuccessfully install Memcache on my local machine, I realized that I don’t even need the memory caching functionality of Memcache, I just need the functions to work. Continue reading How to install PHP Memcache on Windows WAMP, Linux for any operating system (without really installing)
APC (or Alternate PHP Cache) is a popular PHP PECL extension that can be used for PHP op-code caching. It is very stable and can significantly reduce page rendering times. It works by caching the PHP binaries, so that PHP doesn’t have to compile them on every request.
Installation is simple:
1. Use yum to install necessary packages.
# yum install php-pear php-devel httpd-devel pcre-devel
Continue reading How to Install PHP APC on Fedora & CentOS
If you’re like me, you’ve noticed that if you’re trying to grep for a tab character, the following won’t work:
The solution is to use a literal tab character, but it’s not quite so simple. You can’t insert a tab character just by hitting the tab button or by pasting one in. You need to hit Ctrl+V first:
So to type a tab in the putty console:
htop is awesome. I use it all the time to monitor all the servers I use. It was only until recently that I noticed it has some great configuration options, namely the "Tree View." This allows you to see a hierarchy of processes, which can be really helpful in finding out why certain processes are running.
I quickly realized it would be a pain to have to constantly hit F5 every time I opened the program, until I realized there was a way to make htop remember your last configuration.
What you want to do is make sure you close out of htop with F10 instead of Ctrl+C, which I normally use. You only need to use F10 when you want to save the settings, and can subsequently close out how you normally do!
I use Digsby as my instant messenger client. A couple minutes ago, I received an update which set ads to display in the conversation windows by default. I immediately decided I'd try to figure out how to remove the ads, or switch back to Pidgin, the free open source client. Turns out it was simple to turn off the ads. When you're done, you'll need to reopen your conversation windows to see the changes.
From the Buddy List window:
- Tools -> Preferences
- Uncheck "Support Digsby development by showing an ad in the IM window"