If you host lots of different sites for people, one of the things you might want to know is what versions of WordPress each site is running. WordPress stores the version number in a variable named $wp_version which is set in...
While working with Lee Newton over at b5media I was able to watch him build up some server tools over time that were invaluable to diagnosing exactly what was going on on the server. Now I find I need to make...
It’s rare that I open the source code for a random plugin and see every recommended security measure taken. When looking at Chris Boyd‘s plugin GeoLocation Plugin, I kept digging deeper and deeper and found he’d consistently covered everything. This plugin...
I just made a change to my .bashrc file and I thought I would share the tip. All of this is pretty basic stuff, but if you don’t customize your Linux logins, this would be a good place to start. For...
When manipulating WordPress databases for exports and merges, sometimes it is helpful to get a list of all of the parents for the categories your posts are in. For the import I am working on right now. The category list is...
Periodically I would get messages from Twitter and Facebook telling me that my email address is invalid. I would just hit reconfirm and it would work fine for a while. When a client came to me and said he was getting...
I was faced with a weird copy command I wanted to do today; so I thought I would share. How do you copy files in a directory tree to another directory? I wanted to copy all of the mp3 files in...
The process is straight forwarded. There are several methods: find . -mtime -1 \! -type d -exec ls -l {} \; Or more simply find . -type f -mtime -1 In my case, I wanted to do more. First since I...
AVG is a “free” antivirus software package that has become fairly popular lately. The b5media tech team has been asked many times in the last 24 hours about why AVG is blocking legitimate sites. There is a FAQ on AVG’s site...
I’m just jotting down some notes about using the Google Safe Browsing API to prevent a site from serving malicious/bad ads. Problem Defined Ads are put on a site via javascript by calls as simple as “getad(‘adposition1’)”. JavaScript is executed via...