FakeFile

A tiny python library for faking out filesystem operations for tests.

July 2, 2014 路 1 min 路 Ohad Lutzky

Fun with file descriptor leaks

How file descriptor leaks are causing your processes to stick around longer than they should.

June 22, 2014 路 2 min 路 Ohad Lutzky

Social network spoiler prevention

A feature proposal for avoiding spoilers on social networks.

April 26, 2014 路 3 min 路 Ohad Lutzky

Weird permission issues with tvnamer

Distinguishing EPERMvs EACCESS, and how that helps debug file manipulation scripts.

January 5, 2014 路 2 min 路 Ohad Lutzky

Startup times

Starting new java processes in your scripts considered harmful. Let鈥檚 compare 鈥渉ello world鈥 startup times for different languages.

December 11, 2013 路 2 min 路 Ohad Lutzky

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

Translationese

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