April 2010
1 post
5 tags
(Computer) keyboard is my piano
When exercising enough you can teach your fingers to perform certain complex actions in a way that, if you’re really good at it, you don’t feel any complexity anymore when executing them - you don’t even need to think about the movement of your fingers at all. As an example let’s take a guitar play. You don’t need to be an ultra skilled jazzman to play the guitar while enjoying the music...
Apr 2nd
September 2009
1 post
Ruby Float vs. Fixnum gotcha
Be careful when doing some computation with integers (Fixnum in Ruby). If what you want as a result is supposed to be a float (Float) at least one of the operands has to be float as well. irb> 1/2 => 0 irb> 1.to_f/2 => 0.5 irb> 1/2.to_f => 0.5
Sep 24th
January 2009
2 posts
4 tags
Resize images on the command line
Today, I needed to copy a large set of images from one of our servers to another. Beside of that, I wanted all of them to be converted - resized to fit my needs. It would be rather painful if I tried to download the whole thing to my local machine first, batch convert the files with some desktop application and then upload it to another server, since just the downloading part would last for at...
Jan 26th
4 tags
Seinfeld Calendar in Google Spreadsheets
The New Year is not that new anymore and the New Year resolutions are slowly but certainly fading out in minds of more and more people, day by day. If you’re not motivated enough or your will is just weak, there are more than enough mind “hacks” to keep yourself motivated or remind you of the goals you have set for yourself to achieve. One of them is a Seinfield Calendar which is...
Jan 9th
3 notes
December 2008
1 post
4 tags
How to start writing tests, instantly
I wrote this post as a motivation for anybody trying to start with writing tests for their code but feels some kind of resistance or fear from doing the first steps. Both of these feelings are natural and reasonable. Doing testing right is not an easy task. The whole testing thing with all its terminology, tools, styles, philosophies, metrics etc. can feel a bit overwhelming, at first. And it...
Dec 30th