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.
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…
How did I not try this before today? My normal method of needing two files open was to have the one I’m working on in…
Working on a statistics plugin I needed a way to group records by the day. Turns out it’s remarkably easy. If you just want to…
As geeky as I am you would think I would have heard about Apple Remote before this week. Maybe it’s because I haven’t been an…
It’s come up a few times where I’ve needed to get a screen shot from my iPhone. Turns out there are two ways to do it, one of which is built into the phone.
Easiest way is to hold down the home button and press the power button. You’ll hear the shutter sound and the screen shot will be saved into your camera roll. Piece of cake. You’ll still have to get it from your phone to your computer, but that’s not too tough.