Back in my routine – daily running, RSS+flow, and dev

Latest run results… Almost to my goal of < 7:00 pace…

Today is special… It marks the first day of getting back in to my preferred routine. Here it is:

  • Get up early and hit a good run.
  • Read RSS (and now some flow) over breakfast.
  • Drive to the office (while continuing to read RSS).
  • Have a productive day of dev.
  • Get home and enjoy some afternoon/evening time with family.
  • Read more, code more, free time before bed…

For the last few months my routine has been thrashed. Very productive, but insane…

  • Wake up just in time leave for the office.
  • Have a productive day of dev.
  • Get home and follow up with emails and later dev projects.
  • Do demolition/remodeling/construction with my wife.
  • Fall in to bed, catch 15 minutes of news.

The latter routine has accomplished a remodeled home, most recently the bathroom, but hasn’t allowed for much mental expansion or physical fitness.

SnapTweet – a Twitter photo service review

To date I have tried three services. Twitxr, TwitPic, and now SnapTweet

SnapTweet Logo

The exploring of Twitter integrated photo services continues… Today’s post is on SnapTweet, a service working towards announcing Flickr image uploads via Twitter updates.

Before continuing, here’s my philosophy on how a perfect Flickr/Twitter integration works:

  1. Images posted to Flickr are optionally announced on Twitter.
  2. No additional account required – either Twitter or Flickr is used for authentication.
  3. Do not attempt to own the content. It’s ok to own distribution. Images on Flickr. Tweets on Twitter. Render wherever. That’s how consumers what their content.

Summary

For the most part, SnapTweet fits my requirements. There are bugs and gotchas with their implementation, but this is an ideal service for many folks. SnapTweet is tailored for the person who spends time in Flickr and wants announcements sent via Twitter. It is not for the person who Twitters all day and uses Flickr as a repository (me). A pretty neat feature is the direct message to send a link to the latest image on Flickr.Continue Reading

Teaching class classes for PHP development – Rock Band Example

PHP classes

Object-Oriented Programming (OO or OOP) is the best way to have re-usable, sharable, less-bug-ridden, easily readable, easier to debug, and easier-to-pick-up-later professionally written software.

“Learning classes” is the functional way to describe learning object-oriented programming. One skill begets the other. When in college my professor played a video of a band playing music. The band represented a program, and each musician represented a class.

I hope that’s not how it’s described nowadays for comp-sci peeps because it’s a completely backwards way to learn it. It is backwards because you’re already looking at a finished product. To understand OO and classes, think in terms of small portions. Then grow from there.

To give an example of how to build out a class, let’s build a musician or rocker since we’ve been on a Rock Band kick.

Before continuing, this assumes you’ve written some PHP – including at least making a function or two…

.

Now, what does a rocker have?

  • Name
  • Gender (probably)
  • Instrument
  • Talent Level

These will be the variables we put in our Rocker class, here’s the code to support us…

<?php

class Rocker {
// OOP classes are usually capitalized. Good form.
var $name;
var $gender;
var $instrument;
var $talentLevel;
}
?>


Continue Reading

How to post images to Twitter and Flickr at the same time from an iPhone

Sweet - TwitPic + http://flick.com/photos/solyoung works great from the iPhone.

How to is after the jump

With all the web services and photo sharing systems, I’m amazed an integration of Flickr and Twitter hasn’t already happened. Twitxr came out and claimed compatibility in Dave Winer’s scripting.com comments, but it never actually worked. I’ve wanted a way to post a pic to Flickr and have it announced on Twitter right away. Nada.

I love to shoot pics on my iPhone and post them immediately. Live photo streams are terrific! Flickr makes it easy by allowing you send to an email to a pre-defined email address. All you do is send an email with a photo as an attachment to your Flickr upload email address.

Now TwitPic is offering a service for Twitter users just like Flickr’s service, but they store the photo and send an announcement to Twitter with a link. Whatever you put in the subject line of the email is set as your update in Twitter.

Combining these two services is easy. Just send an email to both services at the same time and the pic will be posted in both places. The subject line of the email will be set as your update in Twitter and as the title of the pic in Flickr.

If the above didn’t already give you the ‘Ah HA!’ feeling, here are the precise instructions (iPhone specific, but works with any email capable phone):Continue Reading

Back to running – Nike+ to track progress

After a long time off I’m finally back to running. My wife gave me a Nike+ at Christmas and it’s been gathering dust for the most part.

Why? We’ve been remodeling and we’re finally wrapping things up (photo stream on Flickr). I can feel the all-our-spare-time-sucked-out-of-us-and-put-in-to-construction-duties coming back like the warmth of Spring. Now there will be time for visiting family, coding, and running.

I’ll be adding a static about page to solyoung.com and a Nike+ badge will be a small part of it. The Philadelphia Broad Street 10-miler is coming up in May and I’ve got to get back in runners shape. One huge advantage of working at iofy is our office is right at the finish line. It’s going to be a great, great run!