Archive for the ‘work’ Category

Relaxing Saturday morning with CSS, coffee and Halo

Saturday, February 20th, 2010

It’s almost 1pm and I thought I’d be to the gym by now. Kinda waiting for people to wake up around here. Killing time playing around with my site, enjoying the rare cup of coffee, and less rare round of Halo.

Blog design update

If it’s around February 2010, and the site doesn’t look like this, hit your Refresh button.

blog css update - feb 2010

Visible changes are minor; enhancing readability, hopefully.

  • larger titles
  • narrower copy column
  • less copy contrast
  • sidebar archives
  • sidebar subscribe link
  • sidebar underlined titles

Behind the scenes it was a code refactoring project.

  • merged two CSS files into one
  • sorted out what had become an abuse of the cascading nature of CSS

All painless with CSSEditTextMateFirebug, and Cyberduck.

Shifting hobbies

I’ve been blogging a lot about my health lately. First weight loss, now weight lifting. The blog started out about web design stuff, and that’s what I still do for a living. Seems just my hobbies have shifted. Used to do web work non-stop. Now I’m doing a healthy mix up.

That doesn’t change the fact that I relax by twiddling with web pages. It’s kind of like doing art, how I relaxed as a kid. Change little things here and there until it looks better.

Happy hobbying involves highly usable tools. CSSEdit is a rocking program for building CSS files. Without Firebug on Firefox (and Chrome, too, I see) and CSSEdit, it would less enjoyable, I’m sure.

i love cssedit

Other lazy morning elements

The rare cup of coffee.

the rare cup of coffee

Still playing Halo. Yep. It’s been years, I know.

still playing halo. i know. it's been years.

New jQuery 1.4 is out!

Thursday, January 14th, 2010

I love these guys.  The best just got better.

Learn the new stuff.

Get it.

Found a wholesale protein store

Thursday, January 14th, 2010

Two great things: 1)  good prices and 2) good advice. Found both at Nutrition Zone last night.

I was running low on protein powder and had done a little research on other proteins I might try. I thought I’d go for Muscle Milk or something more muscley than my basic protein powder. Found out they had that at Walmart so I went there after work.

At Walmart I was checking out the muscle powders, reading the usage instructions and whatnot, when a stranger comes up to me a says “don’t do it”. I smile and he says, “Don’t do it. That stuff tastes bad. Go to Nutrizone by 7-Eleven and get the more natural stuff that tastes way better.”

Of course it was unusual that a stranger would come up to me and do that. I was inclined to take it as I didn’t want to offend him by seeing me leaving the store with the “bad tasting” stuff.  So I departed empty handed for the place by the 7-Eleven.

Found it. It was packed with different protein powders.  Jackpot.

The guy at the register greeted me. I told him I needed advice.  He was very proficient in nutrition practice and muscle building.  He even gave me a meal plan (!) and told me they were a wholesaler so the prices were cheaper than GNC or whatever retailer.  Plus those places don’t have fitness experts, I’m betting.

His name is Luke.  Smart guy.  How rare to get good help like that these days.  That’s how you get customers!  I will certainly be returning there for my protein needs.  And next time I see a guy at Walmart pondering the Muscle Milk, you can imagine my intention.

Twitter feed on my homepage

Wednesday, November 4th, 2009

Went at it again with my cron-powered PHP jobs, this time for putting my Twitter timeline on my homepage. Complete with little bird.

Twitter on the homepage

This is replacing the Friendfeed blog+twitter entries that appeared previously because:

  1. I love playing with new APIs. The T one will be my third personal API integration. Did FF and Flickr prior.
  2. I’ll tweet the better blog entries, so I don’t need a merged blog+twitter feed. Just Twitter is fine.
  3. FF is a second-hand tweet, why not get it first-hand?
  4. FF has great features, but I feel closer to T.  When I had FF on a bunch of different social services it was more worthwhile for the merging of the feed.  But I’ve since whittled it way down.

My PHP cron job is aided by TwitterLibPHP by Justin Poliey.

Flickr photos on my website

Monday, October 19th, 2009

It’s been on my mind for a while, got it partially implemented a couple weeks back, and today I finally finished it: my Flickr pics on my homepage.

I recently decided to make Flickr the primary place I upload personal photos. Facebook used to be the primary place to upload, but frankly, I’d rather have people going to my website than Facebook for my activity, and I’m not interested in being in front of people constantly, if much at all.  Where better to not be noticed than on your own site.

One day I got a wild hair to start a picture-a-day project on Flickr called “365″. That restarted my interest in showing the pictures on my site.  And I just enjoy playing with API’s.  Especially well-done ones like Flickr’s.

To get the pics showing, a cron job runs every night that uses the Flickr API to build a javascript file that my homepage calls whenever people visit. The response from the API takes too long to tie it directly to my website; best to have a little static file just ready to go whenever. So there’s a javascript data file made every night, then a javascript controller and CSS for the web page that puts it all together. And the jQuery library eases the javascript code as usual.

27. Flickr on my homepage

I’d imagine this is the most sensible approach. If you have a better way, please tell me in the comments here.

It would be nice to incorporate a “Set” selector someday.  Good enough for now. :)