geeky
Status after one month with the kinesis advantage keyboard
2

For the last 3 years, I was using a “happy hacking” keyboard. This keyboard is really small and looks
like a laptop keyboard. I really liked it and was able type really fast with it. Unfortunately, after spending too
much time behind a keyboard I started to feel wrist pain. This keyboard is comfortable, but on the long run I realized that I was typing with my left hand turned to the outside.
I finally decided to try the kinesis advantage keyboard. I’m now using it for a month and here is my first feelings about it.

- I’m using the qwerty mapping
- I found it really hard to use at the beginning. I switched to it in one week, and as recommended in the guide, I didn’t use any other keyboard the first week. The hardest is the frustration of not being able to type as fast as before…
- I started to do the exercises given with the keyboard but quickly stopped the second day… I used http://www.goodtyping.com/which was really really useful
- The default mapping was not optimal for me, I had to remap some of the keys.
- The arrows are at a very bad location… but I’m started to get used to it.
- The {, }, [ and ] are really are to type… which can be a problem when coding.
- I’m still slower than with my previous keyboard
- I really found this keyboard comfortable, and it’s true that it’s hard to get back to a classic keyboard once you are used to this one.
- Since I’m using it, I don’t have pain anymore
Next status in one month… hopefully I will get back to my full typing speed
Some links:
Cisco introduces ‘Entertainment operating system’
0Another operating systems for cisco….
» Cisco introduces ‘Entertainment operating system’ | Between the Lines | ZDNet.com
My Alphabet question for interview
2Part of my job is to sometimes give interviews for people we want to hire. One of my favorite question is to ask the person to write a problem that will print the alphabet on the console. So let’s say I have a c file my_program.c, I want to be able to compile it, execute, and get the alphabet on the console. Something like: $./my_program
a
b
c
...
z
I really like this question as I think it’s easy enough to know if the person is able to write a simple program in C. I will post here the several code I got… and sometimes it’s really surprising.
What do you think about the question? Do you think it’s a dumb question? Is it too hard/easy?
Bulk replace with perl
0There is a very cool set of options in perl that allows you to replace a string in a file.
perl -pi -e ‘s/str1/str2/g’ file
and when you need it for a full directory, it becomes even more powerful
for i in *; do perl -pi -e ‘s/str1/str2/g’ $i; done
And the ultimate option, perl -pi.bak [...] which backup the old version of the file with the extension “.bak”.
I knew this option since a while, but I never remember it… so when I need it, I always have to look right and left to find it again… Now it’s blogged!
Read Line ‘n’ of a file with sed
0sed has some options that are not really known, but that are so useful
Print line 10 of a file:
sed -n 10p file
Print last line of a file:
sed -n \$p /etc/passwd
Print every other lines:
sed -n 1~2p /etc/passwd
And much more… So sometimes it’s interesting to RTFM
#include tree dependency
0I just found a set of cool options in gcc.
gcc -E -H -dI …foo.c
It gives you the tree of #include done from foo.c
