Author Archives: Thomas Cokelaer

Python header

This post is about what to put on top of your Python script. You may have seen Python script starting with something like: #!/usr/local/bin/python # coding: latin-1#!/usr/local/bin/python # coding: latin-1 and wonder what it is useful for or do you … Continue reading

Posted in Python | Tagged | Leave a comment

R language: object oriented programming

I’m used to object oriented programming in languages such as C++ and Python and I should say that the R syntax is not the most intuitive I’ve seen. Besides, it is quite difficult to find a good documentation about it. … Continue reading

Posted in Computer Science | Tagged | Leave a comment

Configuring wireless under RaspberryPi xbmc

Here are the instructions to configure a wireless (belkin). Most of the instructions were found in the reference [1] but I got some issues with the wicd-curses installation, for which there is a solution later in this post. First, follow … Continue reading

Posted in raspberryPi | Tagged , | Leave a comment

raspberryPi: installing xbmc

Here is the procedure I followed to install raspbmc (reference) Let us say that you want to install the raspbmc distribution on a new sd card. Be aware that the content of the sd card may be overwritten.. First insert … Continue reading

Posted in raspberryPi | Tagged , | 1 Comment

Setup a server on your raspberryPi

This is a summary of what I did to setup a server on my raspberry Pi. This is based on previous post on the same topic and this link: http://www.instructables.com/id/Raspberry-Pi-Web-Server/ Before starting, make sure that your raspberry software are updated … Continue reading

Posted in raspberryPi | Tagged , , | 1 Comment

Web Services in Biology

There are quite a lot of web services in biology that provides various information about genes, pathways, ontology and so on. I found it quite difficult to look for the relevant services. There is a nice portal though, which is … Continue reading

Posted in Life Science | Tagged | Leave a comment

Solving a Linear Programming problem with Python (Pulp)

Linear Programming is a type of optimisation where an objective function should be maximised given some constraints. Let us consider the following simple problem (from The GNU Linear Programming Kit, Part 1). Let us say that you want to maximize … Continue reading

Posted in Data analysis | Tagged , | 7 Comments

Raspberry pi: first steps

My first raspberry pi arrived !! I pluged in a USB mouse and keyboard, the SD card I bought at the same time (it has already a linux system on it), a hdmi cable to the first screen I found … Continue reading

Posted in raspberryPi | Tagged | Leave a comment

How use R to build permutation or combination

In a previous post, I used itertools in Python to create combination and permutation using the standard module itertools. What about using R language to perform the same task. The permutation function allows you to get permutation of N values … Continue reading

Posted in Python, R | Tagged , | Leave a comment

Fly with Python

References: http://xkcd.com/353/

Posted in Python | Tagged | Leave a comment