Need a way to automatically schedule posts for X number of days past your current latest post? On another blog I write a handful of posts at a time and schedule them out over several days. But I have to keep going back and forth to the post list to check dates. This plugin adds… Read more »
Posts Categorized: Computers & Internet
A couple years ago I setup a website to let me play around with creating WordPress plugins and themes. Turns out it’s never gotten much traffic, so I’m going to start using this site instead. Shouldn’t really matter all that much other than the other site is just going to sort of wither away. This… Read more »
Around the end of last year I started using OpenX to take care of ad serving on a couple of my sites. The intent was that I could switch things around much more quickly to see what’s working and what’s not. Now that it’s been a few months I decided to go and look at… Read more »
File this under “how did I not already know this.” I put together quite a few PowerPoints and Word documents explaining how to do labs. And since I teach computer science, many of these include source code of some type. Normally I just type it in and change the font to Courier New or Lucida… Read more »
One of my students came across an “expecting semicolon before minus” error while working on an ActionScript project last week. The error totally threw the student, but it made sense to me. At least I though it did. My guess was that somewhere in the code he had accidentally put a minus where one shouldn’t… Read more »
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 use for an upcoming project. After getting it installed and setup admin-side, I went and… Read more »
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 that’s the route I wanted to take.
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 if you pass today’s date and yesterday’s date it will return “1 day ago.”
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 in a hurry when I needed this and went for quick rather than clever.
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 get a fresh copy of a page it took forever. I was using fsockopen and… Read more »