- Saturday, February 28th, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 23:59 is using his laptop at his desk for the first time since… November. I forgot how much I like using two monitors. #
- 00:58 is eating Samoas! Most definitely the best kind of Girl Scount cookie. #
- 01:18 @kevinschroeder that happened to one of my friends.. It’s an epidemic. #
- 01:30 @Keleigh :/ that happened to me last night. Except I just laid in bed until 4am. #
- 01:54 @Keleigh I feel productive right now because I’m using two monitors. But I’m just chatting, listening to music and posting at Surpass forums #
- 03:04 My favorite Chris LeDoux song is "This Cowboy’s Hat". It’s reminds me a lot of Johnny Cash. And it reminds me of my grandpa (dad’s dad). #
- 05:57 is going to sleeeeeep. #
- 17:46 Twins won again today. Oh, note to self: don’t pee on the floor at Target. #
- 19:26 has a whole weekend with no plans! Hmmm… #
- 21:21 @d4nz what kind of fish/turtle? We have a snapping turtle that eats goldfish. We threw in snails crabs & shrimp a few days ago too. #
- 22:56 is leaving work. Off for the weekend :D #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Friday, February 27th, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 01:47 is going to bed even though he’s not tired at all. :( Two more days of work until I get the weekend off though. #
- 04:46 @RAZE502 we should hang out. #
- 04:47 is sleepy now. Wonder if the snow started yet? #
- 11:13 @keleigh http://twitpic.com/1pfa2 – Looks good! :) #
- 11:40 is going back to sleep. Hoping the snow holds off a little longer so I can at least make it to work. #
- 13:55 http://twitpic.com/1pkdq – Mae’s car. Parked there for 30 minutes. #
- 14:08 Snow sucks. But the Twins are winning 5-0 in the 7th. Work is gonna be soooo boring tonight. #
- 14:28 A good day to avoid the highways. Quarter mile visibility at best. Speeds not exceeding 25mph. #tctraffic #
- 14:33 All lanes fully stopped on I-94W at Hwy 52 going into downtown Saint Paul #tctraffic #
- 16:36 @nightdrake what do you mean configure facebook with twitter? Like your updates? You can do that. #
- 16:38 Snow Emergency declared in St Paul. Night plowing begins at 9pm. Day plowing at 8am tomorrow. www.stpaul.gov #tctraffic #
- 18:56 advises against stealing today. Attempts thus far have been futile. #
- 19:32 @kevinschroeder welcome to twitter. You can link it facebook so your tweets show as your facebook status. #
- 19:59 is eating dinner. Is it done snowing yet? #
- 21:29 is going to catch up on stuff from the DVR tonight. #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Thursday, February 26th, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 00:09 is all sweaty because he’s watching COPS. And I teabagged your drum set. #
- 01:37 is watching the new episode of Dirty Jobs. It’s a special look back at the 200 jobs Mike has done so far. #
- 04:17 is sleepy. Sort of. Put in my resume for another technician job today. It’s in Brooklyn Park. But it pays much better than my current job. #
- 14:02 RT @donttrythis: This just in Mythbuster fans: Kari Byron is pregnant! Congrats Kari, I can’t wait to meet the new mythbuster! | congrats! #
- 14:44 Saw a license plate one number off from mine for the second time today. Strange. #
- 18:18 is listening to the Twins. It is officially baseball season. #
- 19:28 is eating pizza rolls for dinner. Yessss. #
- 19:38 will have to start DVRing Twins games. Maybe. It would fill up pretty fast. #
- 20:38 Twins win :) great start to the season. #
- 21:18 is going to Buffalo Wild Wings after work for beers and trivia. Maybe some wings. Maybe. #
- 23:09 Is leaving work; going to BWW in Maplewood with Robert and @aprmaejun #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Wednesday, February 25th, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 01:28 @RAZE502 hehe we were driving home from my dad’s and all the local places (not pizza hut, etc) were closed so we made our own :) it was good #
- 01:33 is liking some of the new features in Wordpress 2.7. Self updates, mass edit posts (for adding tags) and the dashboard looks pretty sweet. #
- 03:27 is watching some stuff on NatGeo about Pearl Harbor. And talking to @Nightdrake :) #
- 05:02 is going to bed. As soon as I get up off the couch. #
- 17:26 working tonight with Dirty D. #
- 20:08 @Aprmaejun pretty sure it is. DVR was gonna record it I think. #
- 23:30 @nightdrake RT is for "retweet". Its used to copy and distribute someones tweet. #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Tuesday, February 24th, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 00:42 is watching TV. Not a whole lot on tonight… #
- 01:51 New blog post: Playlist: February 2009 http://is.gd/kvDq #
- 04:24 is going to bed. Been awake for 22 hours. Day off tomorrow! #
- 18:18 is going to take a shower and try to get some stuff done today. #
- 21:50 is wondering when every pizza place in the city started being closed at 930? Got beer, now at the grocery store getting stuff to make pizza. #
- 22:49 http://twitpic.com/1nuh7 – Home made pizza! #
- 23:39 @mrheadrick it was really good! Sausage, pepperoni and black olives with a few kinds of cheese. #
- 23:40 enjoyed the pizza for dinner. Watching Jeopardy now :) #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Monday, February 23rd, 2009 at 1:47 am
Took me a little while, but I finally finished up the February playlist. Got a few new ones in there, and some old ones too. I got Slacker Radio for my Storm, so hopefully I’ll discover some new stuff and dig up even more old ones. Don’t forget to check out my music stats too.
|
Artist |
Title |
Album |
| 01. |
Stone Temple Pilots |
Crackerman |
Core |
| 02. |
Creed |
Bullets |
Greatest Hits |
| 03. |
Jason Mraz |
I’m Yours |
We Sing We Dance We Steal Things |
| 04. |
The All-American Rejects |
The Last Song |
All-American Rejects |
| 05. |
Franz Ferdinand |
Ulysses |
Tonight |
| 06. |
Godsmack |
Trippin |
Awake |
| 07. |
The Cranberries |
Zombie |
Stars |
| 08. |
Apocalyptica |
I Don’t Care |
Worlds Collide |
| 09. |
Black Label Society |
Fire It Up |
Mafia |
| 10. |
Garth Brooks |
Pappa Loved Mama |
Ropin’ The Wind |
| 11. |
The Subways |
I Want To Hear What You Have Got To Say |
Young For Eternity |
| 12. |
Alice In Chains |
Sick Man |
Dirt |
| 13. |
Clutch |
The Soapmakers |
The Elephant Riders |
| 14. |
The Lonely Island |
I’m On A Boat (feat. T-Pain) |
Incredibad |
| 15. |
Anti-Flag |
Fuck Police Brutality |
Die For The Government |
| 16. |
Nirvana |
Something In The Way |
Nevermind |
| 17. |
Dierks Bentley |
What Was I Thinkin’ |
Dierks Bentley |
| 18. |
Queen |
Flash |
Greatest Hits I |
| 19. |
M.I.A. |
Paper Planes |
Kala |
| 20. |
Atmosphere |
Trying To Find A Balance |
Seven’s Travels |
Filed under: music — Tags: ipod, mixtape, music, playlist —
- Monday, February 23rd, 2009 at 12:00 am
Twitter digest for the last 24 hours:
- 00:16 New blog post: Daily Tweets http://tinyurl.com/bjjv84 #
- 01:27 Bedtime. #
- 09:36 is at work for another long boring day. Starting to get hungry. Can’t wait for the day off tomorrow. #
- 09:53 http://twitpic.com/1mrh1 – Breakfast! PB&J and chocolate milk :) #
- 22:13 New blog post: Wordpress Email Posts Are 12 Hours Off? I Have The Solution! http://is.gd/kuOR @mrheadrick this is for you! #
- 22:46 @mrheadrick yeah I dunno wtf the deal was. I toyed with a few different options before realizing it was just math. I feel accomplished. :) #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Sunday, February 22nd, 2009 at 10:10 pm
As I wrote yesterday, I recently upgraded my Wordpress install to 2.7.1. I stated at that time that all was running smoothly, and it was. Until my daily digest of tweets posted. I had discussed this with @mrheadrick briefly and never even realized that the reason he had the issue and I didn’t while we were using nearly the same code to process and post our tweet digest, we were not using the same versions of Wordpress. He was on 2.7.1, and I was only running 2.6.3.
When my latest digest of tweets posted, the time stamp was off by 12 hours. The post should have been created at midnight, and it was posted 12 hours later, at noon. This was the exact same problem that Mark was having. He had complained that he had to manually edit each post’s post date in order to display correctly. My initial thought was an error in the code of the script that creates the post, but that wasn’t the case. It was the new version of Wordpress!
I took a peek at wp-mail.php and discovered that there is some strange formatting of the time stamps. Basically, there is a lot of code used to rip the timestamp from the email apart and recompile it into the format that the Wordpress post database uses. This gets tricky when dealing with servers across different timezones so they use gmdate() instead of date() to create the stamps in GMT time. This timestamp is then converted to your local time and saved in both local time and GMT in the post database.

As you can see here, two tweet digests were posted, however, the local time is wrong on the lower one (this is the post that is 12 hours later than it should be). The GMT time is correct. The post is created at midnight (00:00) CST, which is GMT-6. So, the GMT time would be 06:00. The GMT time on both posts is the same, but the upper is 00:00 local, and the lower is 12:00 local. So what causes this?
On line 16 of wp-mail.php, there is a piece of code that looks like this:
$time_difference = absint(get_option('gmt_offset')) * 3600;
I looked into the absint() function, and found that it is used to always return a positive intiger. The problem with this is that is later on in the file, $time_difference is used to convert the timestamp to your local time. One line 130, you see this code:
$post_date = gmdate('Y-m-d H:i:s', $ddate_U + $time_difference);
Do you see the problem yet? This creates a timestamp and adds in the offset, in seconds, as defined by $time_difference on line 16. However, if you are like me and you are in the United States, your GMT offset is a negative number. This means that when you add $time_difference (a negative value) it is the same as subtracting it. But, since absint() is used to make this a positive value, so it mucks things up. Instead of subtracting the difference (6 hours) it adds the difference, creating a difference of 12 hours (midnight my time is -6 from midnight GMT, and it’s adding 6 MORE hours, totaling a difference of 12).
So, how do you fix it? Well it’s quite easy, actually. A simple edit to line 16 to remove absint() and you’re in business with the proper post times. Just replace the existing line 16 with this one:
$time_difference = get_option('gmt_offset') * 3600;
Save the file, and you’re done! Now all of your posts will have the right times, and you can go back to not the good old days of pre-2.7.1.
Filed under: php, site, tutorial — Tags: code, php, site, wordpress —
- Sunday, February 22nd, 2009 at 12:00 pm
Twitter digest for the last 24 hours:
- 06:30 @richardhenry I always liked red grapes better as a kid, now I like green ones more. #
- 06:31 is eating Cap’n Crunch for breakfast before work. Roads still look pretty shitty. #
- 08:06 @teemus check your options. You can set it to only are replies for people you’re mutual friends with #
- 08:28 @jonathanescapes two great shows back to back! #
- 09:48 is being productive in the office today. Sort of. #
- 12:36 Snow Emergency declared in St Paul. Night plowing begins at 9pm. Day plowing begins at 8am tomorrow. www.stpaul.gov for more info. #
- 14:16 @twinsmvb so do you do the @joemauer twitter too? #
- 17:41 is home. Shoveled the driveway. Looking for something to watch on the tube now. #
- 18:19 @amyjcomedy I wish I had some Girl Scout Cookies :( Hopefully now that we are in Saint Paul again they’ll come around door to door. #
- 19:29 http://twitpic.com/1mezd – mmm chicken veggies and dinner rolls :) #
- 20:08 @mrheadrick its a good flick even if you’ve seen it before! Its where the hackers shut the country down. #
- 20:10 is watching Red Wings @ Wild. Dinner was tasty :) COPS and an old SNL are on the menu tonight. #
- 21:21 Wild win! Great finish. #
- 22:55 is watching American Chopper. SNL is next. #
Follow me on Twitter
Filed under: twitter — Tags: life, twitter —
- Saturday, February 21st, 2009 at 6:56 pm
I decided to finally upgrade my Wordpress install to the lastest version, 2.7.1, today. I was still running 2.6.3 because I got annoyed that even when the dashboard said “Your install is outdated, please upgrade now!”; when I installed Wordpress with Fantastico, it told me to only do updates via Fantastico. Not sure how necessary that is, but that’s how I’ve always done it. Problem is, new versions are released, but Fantastico isn’t updated right away. But I decided to check it today and saw that it finally had 2.7 in there. However, once I updated, there was still a nag message saying I had 2.7.0, and the newest was 2.7.1. So I used the automatic upgrade option which is now built in.
It will take me some time to get used to this new layout and the new look and feel of the dashboard, but it seems more organized and more powerful. And as far as I can tell all of my plugins still work.
So far so good!
Filed under: site — Tags: site, software, wordpress —