0 minutes, 8 seconds
Here’s some photos I took of tonight’s meal. I love it when the sweets cooks for me, but I also enjoy honing my ad hoc stir fry skills.
0 minutes, 8 seconds
Here’s some photos I took of tonight’s meal. I love it when the sweets cooks for me, but I also enjoy honing my ad hoc stir fry skills.
0 minutes, 21 seconds
I’m a lucky man. Not only do I get to learn about a new comfort foods from my partner, she’s a phenomenal cook too. Last night we had fishcakes, mac and cheese and green beans. Admittedly the mac and cheese was from a box, but it at least it was organic. We got a new camera, so I’ve been a bit trigger happy with it. Enjoy some macros of the three dishes all plated up!
0 minutes, 14 seconds
My sweetie and I were on our way out to the California Academy of Sciences and took the good ol’ wiggle up to Fell to get to the pan handle. Just before Divisadero on Fell there was the well known ‘bike lane’ symbol. But someone had added a smile and antlers. It made my day.
0 minutes, 22 seconds
Flipping through a recent blog post, I clicked through to Lenovo’s new media center PC, the Q700. Ho hum, another small form factor desktop. Wait…those icons on the features page look familure. Hey! Those are the iTunes (slight color tweak) and iMovie icons (verbatim)!
Here’s the two icons followed by a screenshot with blow up of the icons on the page:
![]()
![]()
I’m not getting into any sort of “Apple is better than Windows” or “Linus Rulez”. However, this is just sloppy!
1 minute, 33 seconds
If you’re a developer, you probably use a revision control software. For both work and personal projects, I use SVN, which is great. At work we use SVN as a way of releasing new features and bug fixes to our web site. We can push a specific a revision as well as roll back to a previous revision, thus leveraging revision control to be our release software for a 4 server load balanced site. SVN + rsync + shell scripting = : )
Recently at work we were doing a bunch of little changes all over the site, including having the designers do a bunch of css and DOM tweak as well. The time came to commit all of the changes. Instead of doing the commit at the root of the repository and stuff all the changed files in at once, I enforced a multiple granular commits of the functionally changed files. Each commit had a relevant comment.
Enter a week later. We hadn’t done sufficient regression testing and a visual element was broken in ie6. Which of the thousands of new lines we committed and pushed was the culprit? Had we done one massive commit we would have been screwed. However, we were able to cull over the commites via our trac instance (awesome!) and review the comments. In this case we couldn’t actually find the exact commit that caused ie6 to break, but we were able to step through our dev instance of the site, slowly adding each revision to it until it broke in ie6.
The moral of the story is that, much like backup, revision software is only as good as it’s end user. Think of every commit as chunk of functional related code. Think of every comment for these commits needing to solve the problem for another developer who has no idea what the code was and they’re up at 2am trying to figure WTF is up with the site. For every commit, where possible, you should also site a bug number so that should the bug crop up again, it’s easy to cross reference the “fix” with the code.
Happy revising!
1 minute, 6 seconds
I still have what most would call an unfounded fear of privacy when it comes to Google. They may receive a copy of every email I send to my friends who use gmail, they may place every call to me via Google Voice, they may server every ad from Double Click (which I then block) and I sure as heck never stray from their bad-ass search on google.com, but I don’t host anything with them directly.
I’ve run my share of web analizer tools, but some times I wanna know, right now, “how many people subscribe to my blog feed?”. Now, I probably should be using FeedBurner (No shit – I did not know, ’til just this second, that they too are now owned by Google. Oh, the irony!), but my site, despite its claims, is still a bit of the cobbler’s child when it comes to analytics. Heck, I still don’t have mod_usertrack on!
Enter tail, cut, sort, uniq and wc!
tail -10000 access_log|grep /blog|cut -d" " -f 1|sort|uniq|wc
In layman’s term’s that’s “get the last 10000 lines of my access log, cut each line into fields separated by the space character, grab the first field (the IP address in this case), sort the resulting lines of now just an IP address per line, remove the duplicates and count the number resuling lines (or IP addresses)”. Presto! 388 of you out there, including all the bots, spiders, crawlers, trolls and goblins. Thanks for the interest!
2 minutes, 2 seconds
At work we’ve been working on a good way to roll our own videos. We initially started with the generic off the shelf swf player + flv to make our videos go. This was OK, but was lacking some key features folks were used to, primarily full screen play back and the ability to seek to a specific spot in a video. Additionally, for videos that were over 20 minutes being viewed over slower connections, precious apache children would be chewed up potentially causing a slow down for the web head doing the serving.
Enter JWPlayer! This is a great, easy to configure, free for non-commercial use, flv player that offers the features we’re looking for. Further, we could offload the flv’s to our image server, lighttpd . (By the way lighttpd is extremely awesome; I can not recommend it enough. I first learned about from my friend over at WikiSpaces where they had dropped apache entirely in favor or lighttpd. Noteworthy is that lighttpd was first concieved as an attempted answer to the c10k problem. I’ve personally seen it handle over 2000 connections per minute and the server load didn’t go above 0.5 (though the full meaning of load average is a curious one (sorry for the double, now triple parenthetical statements )).) Simply add a little flv streaming foo to lighttpd, and you’re good to go.
At this point, we hit a stumbling block. In order for JWPlayer to seek, it would send a request for the FLV to the web server and give it a starting point, like so:
10.1.6.221 lighttpd.domain.dom - [29/Jul/2009:12:46:37 -0700] "GET /web_assets/video/your.flv?start=17038076 HTTP/1.1" 200 17765145 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1"
However, if the flv you were serving didn’t have key frames then the web server would simply ignore the query string, and indeed, the click all together.
We do most of our development and video authoring on a mac and then serve our files off a load balanced linux server. At first, we used flvtool2 on linux to embed the key frames on our flvs. This kinda works, but it’d be easier to have the video author be able to add them himself with out needing to download and install ruby and rails and all that crazy server scripting foo. As his flv creator/codec/authoring app/chumpy wasn’t playing nice, I was given the task to find a simple solution.
Now, finally, we get to the point of the post. If you’ve gotten this far and wanna know how to embed keyframes with out ruby, get thee to the multi-platform, command line tool called flvmeta and go home happy!
Update: This post would not be complete without mentioned our use of swfobject to render the flash HTML.
0 minutes, 23 seconds
If you ride off road, you’re always looking for new ways to get from point A to point B and stay on the dirt. Today is Thursday which means that it’s leave work early and ride day! H and K and I were exploring off of Tunnel and found a full on hidden BMX track. I never road BMX as a kid, which makes my MTB skills a bit lacking. BMX skills or no, none of actually road this track. 4′ tall jumps with a 5′ gap? No thanks!
0 minutes, 17 seconds
I will be the first to confess that I love the ritual around coffee as much as I love the the actual drinking of coffee. Today, joining my pal from twtitw, I went to the wonderful Cento Cafe. It was sunny, the two macchiatos looked lovely and I was as happy as, well, as a me drinking phenomenal coffee with a good friend in the sun!