Category Archives: Computers & Internet

Quick Fix for OpenX Redirect Loop

tl:dr Version Problem is caused by a cookie. Quick fix is to park a different subdomain on top of your OpenX domain and use that subdomain to access admin. Full Version Last week I installed OpenX on my server to … Continue reading

Posted in Computers & Internet | Tagged , | 5 Comments

WordPress recent posts as JSON

For an update to one of my web projects I went looking for a way to get the recent posts as JSON instead of using the RSS feed. I personally find JSON much easier to deal with than RSS, so … Continue reading

Posted in Programming | Tagged , , | Leave a comment

days_ago function for PHP

Can’t take credit for all of this, but I also don’t remember where the code that I started with came from. days_ago is a function that will take two dates and return a more human friendly version of dates. So … Continue reading

Posted in Programming | Tagged , , | 1 Comment

PHP function to get first n words from a string

A handy little function for your bag of tricks. This PHP function will return a max number of words out of a string, or the whole string if it’s already shorter. This probably could be made shorter, but I was … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

fsockopen / fgets very slow in PHP

I’ve been using a PHP class in a project that pulls a URL and then caches the result so it doesn’t have to get loaded again until it’s considered stale. Works pretty well, but every time it went out to … Continue reading

Posted in Programming | Tagged , , | 2 Comments

Posting to Twitter with PHP and OAuth class

Needed a bit of an update on a font site I threw up a few years ago. Specifically I wanted to put a script together to tweet a random font each day. Should have been easy since I already had … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Printing a single frame from a Flash project

Bit of a duh moment after finally finding a solution to this. What I needed was a way to print a single frame out of a Flash project. Pretty easy to print the first frame, or all frames, but I … Continue reading

Posted in Computers & Internet | Tagged | 1 Comment

Set WordPress image to “none”

Been using WordPress for a while now. Heck, this blog has been running WP since 2007. So it’s really sad that it took until today for me to figure this out. Putting an image inline to a post defaults to … Continue reading

Posted in Blogging | Tagged | 1 Comment

How to create a wine glass in Blender

Looking to create a simple wine glass in Blender 2.5/2.6? Yes, there’s quite a few steps. But it’s remarkably easy to do. First step is to create the default cube. Right click to select it and press either Delete or … Continue reading

Posted in Computers & Internet | Tagged , | Leave a comment

How to create a very simple space game in Flash

Admit it, you’ve played an online game while at work. And odds are very good it was written in Flash / ActionScript. We’re going to cook up a very simple Flash project that might serve as the start of a … Continue reading

Posted in Programming | Tagged , | Leave a comment