Count the number of lines of code of your projects After having finished a project, I always like to know its actual size. It does not give any value to my work, but it is always fun to see :) I found this simple command that will pop out the number of lines of code for a given file extension. cat
Insert urls into a Latex document A really simple tip today, that helped me a lot some time ago. If you use LaTeX [http://fr.wikipedia.org/wiki/LaTeX]to create your reports, you may want to include weblinks or urls. The process is quite simple, simply include the url package in the header of your
Easily change file separator You may already have found yourself in front of a huge csv file to be processed. Five minutes after having started working, you realize that you want spaces instead of commas in your file. Only problem, the file is 500 megabytes big. Do you run Linux ? In this case, your
Sonar images segmentation and classification fusion Today's article will present one of my former experience that led to two publications in european conventions. It dealt with automatic segmentation [http://en.wikipedia.org/wiki/Segmentation_(image_processing)]and classification [http://en.wikipedia.org/wiki/Classification_in_machine_learning]of sonar images. It has become really
Efficiently handle knowledge as a Computer Scientist I love to learn. Each day. A bit more of what the world has to offer. I read a lot of technical stuff. I spend a lot of time reading about all kind of subjects, most of it being computer science / computer vision related. I also have a really bad
Profiling a Python Script Here are some simple ways to profile Python scripts.I heavily use this to check my Project Euler solutions [http://github.com/jlengrand/project_euler]. SOLUTION 1: The main common option would be to use the profile [http://docs.python.org/library/profile.html?highlight=profile#cProfile](or cprofile [http:
A (small but growing) list of computer vision companies Here is something I wanted to do for a long time. Some time ago, I left France to go international. Since my 6 internship in The Hague, English had become a need and I absolutely wanted to work abroad. As a computer vision engineer, find a job is both really
Execute a function given its name as a string! Well, interesting problem. . . if you are not working with Lua. Some time ago, I developed a web interface that would interface with the camera I was working with [http://www.advansee.com/mipsee.html]. Being a fully autonomous system, Mipsee has limited ressources and PHP and databases were surely not
Run for your life fellow developers ... till the inspiration comes ! If you stare at your computer screen for the last two hours, trying to figure out a software issue. If you keep swapping between Facebook, G+ and Stack Overflow waiting for the solution to comu up; then put your sport shoes on and have a run
How to spend nights on the computer Hi everyone, As you may already know, I love solving problems. And what I love most is to use KISS principle [http://en.wikipedia.org/wiki/KISS_principle], and reduce those problems into items so small that they all seem trivial. Some time ago, as I was searching for a
Relocating to the Netherlands Hi all, Long time no see ! I stayed silent those last days for the simple reason that I relocated to the Netherlands. Two years ago, I spent some months working at TNO [http://www.tno.nl/index.cfm?Taal=2] in underwater mine recognition. The internship took place in The
My minimalist dark Pluxml theme Not so long ago, this blog was powered by PluXml [http://www.pluxml.org/], a complete CMS that has the great advantage of running without any database. You can learn a bit more about my experience of Pluxml in one of my last posts. [http://www.lengrand.fr/2012/01/
A lightweight dynamic CMS, database free! Before choosing Wordpress [http://wordpress.org/] as a CMS [http://en.wikipedia.org/wiki/Content_management_system], I searched for a minimalist way to both learn web development and get a nice looking blog. My choice went To Pluxml [http://www.pluxml.org/], which is a french initiative to run
Multiprocessing using Python Some time ago, I worked with real time processing of sonar images. My job was to detect mines on both sides of an UUV [http://www.globalsecurity.org/intell/systems/uuv.htm] equipped with Side-Scan sonars [http://en.wikipedia.org/wiki/Side-scan_sonar]. My algorithm had to run as fast
The Programming Tips page is back Hi all, I am currently working on reducing the number of technologies used on my website. After having removed loads of plugins ( I just kept the essential database backup and cache enhancement), I also chose to switch to a full english blog. The next step is the removal of the
Simply print current function name Hi all, When developing, I hate having to search in which portion of my code I am. For Tippy, I searched for a way to always display the function name in case of an error. Hopefully, Python offers a simple (but curious) way to perform this. Here is how to
A simple way to watermark a batch of images Hi all, Some time ago, I was searching for a way to simply watermark images to put them on my gallery [http://www.flickr.com/photos/49365498@N03/]. I knew digikam [http://www.digikam.org/] could do this, but the package in debian was an old version and the feature
A simple way to get a multilingual blog Hi all,Some time ago, I searched for a way to have a blog as simple as possible (and avoid wordpress or joomla monsters). I ended up using Pluxml [http://www.pluxml.org/] for a while, and you can find the result here [http://www.lengrand.fr/pluxml/513/]. [http:
Syntax Highlighting issue Hi all, Sorry but all the syntax highlighting of my blog seems to be broken. I think it comes from my plugin,SyntaxHighlighter Evolved, and I'm working to find the issue. Sorry for the inconvenience, I hope to find a solution soon ! EDIT : Problem is (half) solved. I
Python/Unittest : assertRaises raises Error Ran 1 test in 0.000s OK {% endhighlight %} Perfect ! Note : For the purpose of this article, I did not work "backwards" (created test before the function). I think this would have been counter productive for the effect I wanted to highlight.
A simple region growing implementation in Python Hi all, Here is a simple example of (simple) Region Growing algorithm [http://en.wikipedia.org/wiki/Region_growing] in Python. It is part of my current project [http://github.com/jlengrand/Tippy], called Tippy. Tippy tries to implement use the power of OpenCV [http://opencv.willowgarage.com/wiki/] and
Compiling OpenCV for Linux (Debian) I am sure that most of you know OpenCV [http://en.wikipedia.org/wiki/OpenCV], the open-source Computer Vision library initially developed by Intel. Synaptic, the packages manager of all Debian based distributions do contain opencv packages (namely libcv, libcvaux and libhighgui). But they are seriously outdated (2.1 in
Cool Computer Vision project : Shredded documents Hi all, Today I just wanted you to know about the DARPA Shredder Challenge [http://www.shredderchallenge.com/]. This challenge aims at reconstructing shredded documents, and the contest run till the 5th December. You may use whatever technique you want to reconstruct the original message, but of course Image Processing
Errors on Linux boot with a Radeon HD Hi all, For the past months, I had a huge issue with My debian based system. I got a Radeon 5770 graphical card and here are some more information: {% highlight bash %} [airballman@crunchbang:~]$ lspci | grep VGA 01:00.0 VGA compatible controller: ATI Technologies Inc Juniper [Radeon HD 5700 Series]
Get the power of Matlab in command line Hi all, I got a small hint for you if you use Matlab [http://www.mathworks.fr/] on a daily basis but still love your command line! I am really not a IDE [http://en.wikipedia.org/wiki/Integrated_development_environment] kinda guy and always try to avoid using a