WPThemesFree.com – Decoding the footers

Recently a friend asked for help setting up a website. When this happens I normally just throw a few minutes of time in to help set up a WordPress site and install a theme. I do a few minutes of customization to the theme to make it fit what they want and then go on my merry way.

This time the person decided they wanted this theme from wpthemesfree.com. It looks nice, I like color, and it fit what she was doing well enough. So, I downloaded the theme and installed it for her. I started to do my customizations ... changing some wording here and there to make it sound more business like instead of personal. She was doing the site for a business after all. Thats where the I ran into an issue...

Read the rest of this entry »

Creating Code 39 Barcodes in Pure Javascript

There are many different barcode standards and code 39 is one that is easy to use, supported by most scanners, and can encode letters, numbers, spaces, and some punctuation. For these reasons it makes it a good choice for many different scenarios.

There are a lot of ways you can create barcodes on your own. You can get a special font for it. You can get special software. You can write server side generation logic in a host of different languages. The server side generators can use a font, or generate it manually. Continue on to learn how to do it on the fly in javascript.


Read the rest of this entry »

Circular Bit Shifting in PHP

In PHP there is bit shifting to the right and bit shifting to the left, but they just shift bits off of the end of the bytes. At one point in the past for reasons I don't remember I had the need to have the ability to circularly shift bits instead of just shifting them off of a byte. Continue for the explanation and code...


Read the rest of this entry »

PHP States Array

Today a co-worker of mind asked me if I had an array of states handy so he didn't have to go create one. I did, and gave it to him, and thought that maybe someone else could benefit from it. So, continue on to get a copy/paste PHP array of states.

Read the rest of this entry »

Manually Parsing an x509 Certificate in PHP

One might ask why you would ever need to manually parse an x509 certificate in PHP when there are handy functions like openssl_x509_parse just laying around. The answer? To verify the certificate's signature. Why can't you just use openssl_x509_checkpurpose you say? Well, because there are bugs in certain combinations of PHP and openssl pertaining to this function and the 'any' purpose. The PHP and openssl that come with centos by default just so happen to have these bugs and I write software that has to run on centos with it's defaults.

If you are brave enough, read on...

Read the rest of this entry »

XD Triggers 1.0 Beta

Ok, so, I am far from done with putting all of my content on the site but I have some done now. Love this theme too. If you are a WordPress nerd then check out XDTriggers :-)