My show downloading stack

I love watching TV, and hate it. Regular show schedules are horrible, commercial breaks are annoying, and the ability to rewind is very important. I love Hot’s VOD service (and happily pay to watch the shows I enjoy), but my true favorite for getting my entertainment is everyone’s favorite not-a-dumptruck, the internet. In this post, I will describe how I do it. Everything I describe in this post can be done using miro....

September 5, 2009 · 4 min · Ohad Lutzky

Timezones are fickle

Creating a manual “always-daylight-savings” timezone is hard. Let’s peek at just how messy timezone logic gets.

April 18, 2009 · 4 min · Ohad Lutzky

Using git for code review

At my workplace, I’ve recently been using git for code review purposes. I work on code in my own git clone, and ask a peer to review it. It works somewhat like this: master branch is same code as currently in upstream. Working to resolve issue #1234 pertaining to “Performance for gizmo”, I work on a branch 1234-gizmo-performance. I mail a peer, John, with this information, as well as my repository location....

April 4, 2009 · 1 min · Ohad Lutzky

Hardware doesn't like me

Whenever I try messing with hardware at home, inexplicable failures ensue. Especially when trying to help others; no good deed goes unpunished.

February 26, 2009 · 2 min · Ohad Lutzky

Whatever happened to black & white LCDs?

I had a Game Boy once. I could play it just about anywhere, and battery life - for the time - was great. I lost it at one point, and replaced it with a Game Gear, which sucked the life out of 6 AA batteries rather quickly. The Game Boy Color was actually decent on battery life, but since it didn’t have a backlight, you had to play it at very specific angles....

November 22, 2008 · 2 min · Ohad Lutzky

Another SSH trick

Ever have a machine you can only ssh into through another machine? It’s a very common situation in the Technion. Here’s one way to get around it: Assume you can directly ssh into alpha, and from alpha you can ssh into beta. Have the following code in your ~/.ssh/config: Host beta Hostname 1.2.3.4 # IP Address of beta ProxyCommand ssh alpha nc -w 1 %h %p This requires you to have nc (netcat) installed on alpha....

November 10, 2008 · 1 min · Ohad Lutzky

Automatically starting rtorrent within screen

These days I don’t stay at home often, but I do have an RSS/BitTorrent combo fetching me all kinds of neat stuff for me, so I can have it ready for me on the weekend. I love rtorrent, especially due to the fact that I can run it in screen, ssh home and see how things are doing (or add more torrent to the download). However, sometimes my net connection breaks down, computers gets shut off, or things like that....

November 4, 2008 · 1 min · Ohad Lutzky

Quick time tracking hack

Gnome 2.24 adds a new Time Tracking feature, which I would have found useful. I don’t have Gnome 2.24 at work, but I do have a Unix-based operating system… Here’s my new ~/bin/track: #!/bin/bash date >> ~/time_tracking vim ~/time_tracking + Now, if I could only get vim to automatically hit “A” and space for me afterwards… (I’m betting there’s a way to do it, but AFAIK vim can only receive ex-mode commands as parameters)....

October 26, 2008 · 1 min · Ohad Lutzky

Delegating methods in Ruby

Sometimes, when constructing a compound object, we are interested in exporting functionality while retaining encapsulation. For example, suppose we have a Secretary class: class Secretary def send_fax(destination, fax_contents) puts 'Sending fax "%s" to %s' % [fax_contents, destination] end def answer_call(call) # ... end # ... end Our Secretary provides a lot of useful functionality, that our Boss class would like to have. Boss would like to be able to say that he can send a fax, without having the user explicitly request his Secretary beforehand....

October 18, 2008 · 1 min · Ohad Lutzky

Tracking TTime

Ditz was lost in the mists of time, and I guess if ttime were maintained, issues would be tracked using Github. I’ve added issue tracking for ttime using the fantastic ditz. I’ve also added ttime’s rdoc documentation. (Note: Version 0.8.5 is out)

July 30, 2008 · 1 min · Ohad Lutzky