Other articles


  1. Please Help to Port python-debianbts to Python3

    Dear Lazyweb,

    I'm currently trying to find a way to port python-debianbts to Python3. Debian's standard bugreport tool reportbug depends on python-debianbts and can thus not convert to Python3 if python-debianbts does not as well. Unfortunately python-debianbts depends on SoapPy for parsing the Debian bugtracker's responses, and that library is not ported to Python3 yet, and probably never will.

    I'm planning to replace SoapPy with pysimplesoap which is available for Python2 and Python3. Unfortunately debbugs does not support WSDL which makes parsing of the replies extremely painful and error-prone. I wonder if there is a  SOAP/Python expert out there who'd be willing to give some assistance in porting python-reportbug to pysimplesoap? python-reportbug's repository is on GitHub and patches are very welcome.

    Since SOAP is quite a beast and debbugs uses it for read-only purposes only, another attractive solution would be to replace/augment ...

    read more
  2. What are the most popular .vimrc options?

    Hi always wondered what the most popular options are, you usually find in .vimrc files. So I downloaded 155 .vimrc files from the net (mostly from dotfiles.org and github.com), and wrote a little script which counts the number of times an option has been set. Since most options come in normal- and shortcut form, I mapped the shortcuts to the long version whenever I recognized them.

    So without further ado, here are the most popular .vimrc options (without values!). The number specifies the number of times this option has been set. The most popular option is on the bottom:

    10 tselect
    10 dictionary
    10 runtimepath
    11 mousehide
    11 t_vb
    11 foldlevel
    11 foldopen
    12 suffixes
    12 matchtime
    12 fileencoding
    13 modelines
    13 wrap
    14 sidescrolloff
    14 clipboard
    14 lines
    14 novisualbell
    15 linebreak
    15 cursorline
    15 fileformats
    15 columns
    15 cindent
    16 undolevels
    16 shiftround
    16 lazyredraw
    16 ...

    read more
  3. How to get the most precise time, comparable between processes in Python?

    Let's consider the following scenario: I have two Python processes receiving the same events and I have to measure the delay between when process A received the event and when process B received it, as precisely as possible (i.e. less than 1ms).

    Using Python 2.7 and a Unix system you can use the time.time method which provides the time in seconds since Epoch and has a typical resolution of a fraction of a ms on Unix. You can use it on different processes and still compare the results, since both processes receive the time since Epoch, a defined and fixed time in the past.

    On Windows time.time also provides the time since Epoch, but the resolution is in the range of 10ms, which is not suitable for my application.

    There is also time.clock which is super precise on Windows, and much less precise on ...

    read more
  4. Introducing python-ardrone

    Flying
AR.Drone{.alignright .size-medium .wp-image-170 width="300" height="225"}

    The last weeks I spend quite a lot of time hacking on a Python library for the AR.Drone. The AR.Drone is a nice toy for nerds. You connect to it via WIFI and soon you'll realize that it has 4 ports open. Reading the specs you'll find, that on one port it listens for AT-Commands with which you can remote control the drone, on the other two ports it waits for an incoming package which will trigger the drone to send the navdata (speed, angles, battery status, etc) and the video stream. Heck, you can even telnet into the drone...

    Unfortunately it comes without a proper software to control the drone, only an iPhone app (w/o iPhone of course). But given ...

    read more
  5. Summer School: Advanced Scientific Programming in Python

    Once again, there will be another round of the Summer School "Advanced Scientific Programming in Python". This year in St. Andrews, UK.

    Quoting from the official announcement:

    Scientists spend more and more time writing, maintaining, and debugging software. While techniques for doing this efficiently have evolved, only few scientists actually use them. As a result, instead of doing their research, they spend far too much time writing deficient code and reinventing the wheel. In this course we will present a selection of advanced programming techniques, incorporating theoretical lectures and practical exercises tailored to the needs of a programming scientist. New skills will be tested in a real programming project: we will team up to develop an entertaining scientific computer game.

    We use the Python programming language for the entire course. Python works as a simple programming language for beginners, but more importantly, it also works great in scientific simulations and ...

    read more
  6. Query Google Scholar using Python

    In desperate need to organize my collection of scientific papers, I had a look at various tools which could help me organizing them. Probably one of the best out there is Mendeley. Mendeley seems to be a very good tool to keep your massive collection of pdfs under control. Unfortunately a very basic function, namely looking up a newly imported paper in Google Scholar to get attributes like: Authors, Year, etc. right, is bundled with a Mendeley account. I guess that's their way of forcing the user to participate to their community stuff, since without the Google Scholar lookup Mendeley is pretty useless unless you want to fill all the attributes manually.

    So I decided to write my own tool to make the lookup. Unfortunately Google does not really want to give away that precious data: they don't provide an API and even block certain User-Agents from accessing ...

    read more
  7. The sorry state of Python in Debian

    Looking at the sorry state of Python in Debian, makes me wonder if we shouldn't enforce team maintainance of packages above a certain popularity/importance/whatever threshold. People worked hard in the last months to fix any bugs that would prevent Python2.6 to land in unstable and yet nothing happens. Time passes by and we will eventually end up with Squeeze having a horribly outdated Python version.

    read more
  8. reportbug-ng has localization support again

    After having ported reportbug-ng from PyQt3 to PyQt4 over a year ago, reportbug-ng lost it's localization, since the gettext based translations where incompatible with Qt4's translation system.

    This weekend I finally had the time to have a closer look at this problem. To make a long story short: I have ported the gettext based system to Qt4's system. All the old .po files where converted to .ts files, but almost all strings are marked as "obsolete" so that they don't appear in the translated program. But since they are still available in the .ts file, it is easy to get the translations up-to-date. So far only English and German are complete, but eventually other translations will be added.

    PyQt4 makes it by the way really hard to get non-Qt strings translated.

    read more

Page 1 / 2 »

blogroll

social