Asserting string equality

When comparing long strings in unit tests, make sure your assertion failures give you useful output.

December 2, 2013 路 3 min 路 Ohad Lutzky

Test-driven procrastination

How being lazy and procrastinating led me to adopt test-driven development before I realized it.

December 1, 2013 路 3 min 路 Ohad Lutzky

Multiple library versions

Working with vendor code in C can get very tricky, especially when you except breaking changes to occur. Especially when you have multiple binaries depending on that vendor code, updating at different times, necessitating different live versions. Let鈥檚 explore. Introduction Assume you鈥檙e working with an external vendor, who is providing you with code for a wonderful function getFoo: // foo.h version 1.2.3 int getFoo(); // foo.c version 1.2.3 int getFoo() { sleep(1000); // TODO improve performance return 42 } You use this function in many of your products - for example, in your best-selling barApp application:...

May 15, 2013 路 3 min 路 Ohad Lutzky

Reading, writing and vacations

Vacations are a great time for doing that problematic category of things every management course teaches you about: important, but not urgent. For some people, it鈥檚 housework or schoolwork which gets drowned out by day-to-day life. For others it鈥檚 keeping up with friends and family. Myself, I also like to read and write. Writing, for me, is usually about practical stuff. Sometimes it鈥檚 simply code (most of those projects were written on vacations)....

March 27, 2013 路 2 min 路 Ohad Lutzky


As part of my M.Sc. studies, I鈥檝e recently completed a small laboratory project in natural language processing. I鈥檝e learned quite a bit from it, and had a chance to use a few of my favorite technologies. The project was coded in Python, which is not my favorite programming language - Ruby is. However, since Python is more popular at my workplace, and seems to have a richer ecosystem around it (sometimes, at any rate), I鈥檝e grown to love it almost as much over the years....

March 24, 2013 路 4 min 路 Ohad Lutzky

The show downloading stack - part n+1

I鈥檝e already mentioned my show downloading stack on this blog. It鈥檚 changed a bit since - I now use Transmission rather than rtorrent, as it has the excellent transmission-daemon package which has it acting exactly the way I like (without using screen). Also, it now E-mails me when a torrent is done downloading. So while this may be how TV works for you: Notice that a new episode is out Torrent it Wait for the download to finish Watch it 鈥his is how TV works for me now:...

December 15, 2011 路 2 min 路 Ohad Lutzky

Developing TransportDroidIL for Android

Here are a few words on developing TransportDroidIL, a small utility to query Israeli public transportation sites more easily using an Android phone. Source control is super important. Mistakes will be made, other coders will want to join in, and experimental features will want to be in their own branches. Git is awesome; it does source control right, gives me powerful tools, and isn鈥檛 a hassle to set up - even for a small project like this....

October 8, 2011 路 3 min 路 Ohad Lutzky

Home network wiring

I don鈥檛 like wireless connections; they鈥檙e always second-best, be it in terms of security, speed, or reliability. Here鈥檚 how my apartment looks (very approximately): ...

September 4, 2011 路 2 min 路 Ohad Lutzky

Upcoming features in TransportDroidIL

Hello everyone, TransportDroidIL 1.0 will be released this month. It has quite a few new features: Separate 鈥淪ource鈥, 鈥淒estination鈥 and 鈥淭ime鈥 fields. This is much better for auto-completion as well. Automatic location-based detection of 鈥淪ource鈥. Hopefully you鈥檒l find the interface for this unobtrusive. Quick reversal of 鈥淪ource鈥 and 鈥淒estination鈥, for your return trip. A new settings screen, with: Provider selection (currently Egged or MOT) A small attempt at right-to-left fixes for non-supporting devices....

September 2, 2011 路 1 min 路 Ohad Lutzky

SMS and why it annoys me

Don鈥檛 get me wrong. I love being able to communicate textually with friends, coworkers and family. It鈥檚 ideal for a noisy pub; a somewhat-private conversation on a crowded bus; telling something to someone who may be asleep, so they see it first thing when they wake up; making quick responses while in a meeting without being rude (well, at least at my workplace it鈥檚 considered perfectly acceptable). It鈥檚 also very handy when you want to tell someone something they ought to write down, such as a phone number or something they should remember to buy....

April 25, 2011 路 4 min 路 Ohad Lutzky