Thursday, April 22, 2010

Kicad - crossplatform suite of programs for EDA

Working in a place where people do projects on electronics using different platforms (windows and linux) certainly leads us to look for some tool which enables us to exchange our schematics and layouts through all this platforms. There is where Kicad came to help us.

And, to help us to use it, here is a short tutorial on how to do simple things with Kicad:
Other interesting link on GNU/Linux and Electronics:
And on electronics:

Tuesday, April 20, 2010

Convert Scanned PDF Documents to Text without having to wait for google bots

Working supporting old scientific hardware sometimes brings me some challenges. Usually, the manuals are only on paper and when there is a digital version it was digitized (scanned) .

Googling a little, came to me an article which relies on waiting for the google to index your files and OCR them. But there is an open source alternative.

Looking a little further, I did find another two articles at and at, on which I've found the tesseract-ocr. So to solve my issue, I had to first convert my PDF file to a bunch of TIF images, and so OCR them with tesseract. This way:

gs -dNOPAUSE -sDEVICE=tiffg4 -r300x300 -sOutputFile=page%03d.tif -- 1850_operators_manual.pdf

ls -1 *.tif | cut -d e -f 2 | while read line ; do tesseract "page"$line "page"$line -l eng; done

Hope this helps somebody...

Recursively Adding files to CVS

I'm still running a couple of projects which rely on CVS for version control. But adding more folders recursively is very painful. So I use this line as many times as there still being files/folders to be added.

cvs update -R -P -d | grep "?" | cut -d " " -f 2 | while read line ; do cvs add $line ; done

Monday, April 12, 2010

New boy in town...

My son (Gustavo) was born last Saturday (April 10th 2010), with 2.790kg (6.15 pounds) and 48cm (1.57 feet).
Here is a picture to share the most amazing moment in my life.