Archive of Programming Goodness
Pods WordPress Plugin
A couple of weeks ago, I was introduced to Pods. I’ve been working in WordPress for a while but had never heard of Pods. I’ve now used it in 2 websites and have another one underway. Basically, if you’re looking for an easier way for you and your clients to…
WordPress Post Nav
If you have a custom query in WordPress using query_posts you might have issues with pagination using posts_nav_link. posts_nav_link() uses the post count from your WordPress admin settings (eg 10). If posts_per_page is set to a number that differs from the global setting either the third page will not be…
Internet Explorer Needs Form Fields!
Ok, I ran across an interesting issue tonight, and it only affected users if they were using Internet Explorer. Part of the problem was with the unique way our form had to be set up. For styling issues, we couldn’t use a standard HTML submit button or form button, so…
MySQL: Disabling the safe update mode
If you’ve ever gotten this error message: Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column Just add this simple query: SET SQL_SAFE_UPDATES=0;
PeakSystems’ iPhone and iPad App
Our company has released its first app! First, get the app on iTunes. Next, show off your new diptych creations in the Diptic App Flickr pool. If you’ve questions, stop at the app’s website for instructions and FAQ. Get your friends to join in the fun and become a fan…
Script Include Sans “HTTP”
So according to the Facebook tracking guide the URL recommended for including the tracking script is: //ah8.facebook.com/js/conversions/tracking.js This is potentially a very convenient way to include a script regardless of SSL (http vs https), which will cause an alert or warning on computers with common settings. Unfortunately, this method does…
Flash Prototypes
Here’s two AS2 Flash prototypes that I use all the time. The search proto is probably from that genius sephiroth but I can’t remember since it’s been a while. The shuffle prototype is from kingdavid. Array Search Prototype Array.prototype.search = function(needle, from, strict) { if(from == undefined || from >=…
Chroma Hash
I just want to post a message about how clever I find this password input. I can thank Reddit for originally bringing this to my attention. I hope to implement this on my next project. If you decide to do the same, please give some credit back to the source…
Credit Card Autocomplete
When working on a shared computer, there is a lot of risk involved with personal data. For example, buying something online with a credit card. Best practice is to clear all saved data from the computer as one logs off. However, I am not convinced a majority of users know…
Horizontal Scroll
For some reason I haven’t seen many examples of a horizontal scrolling div. These are commonly used for image slideshows (we have a number of photography clients). CSS: div { width:380px; height:80px; padding: 15px 0 30px 0; overflow-x:auto; white-space:nowrap; } By default, img tags are display:inline, so you need only…