3 years and 3 months ago, I signed up for maintaining Pipenv in Gentoo. This work made me co-maintainer of pipenv. I finally closed a long standing bug in Gentoo's pipenv. Due to this work, pipenv now ships less vendored packages, and is about 20% smaller in size.
A short guide for using IPython and Jupyter Notebook on remote Linux machine in the Enterprise Corp, where you don't have root rights.
This is a short tutorial on how to build a data source for Grafana using Python Bottle micro-framework. Eventually, you can use this code to connect to any database (including SQLite).
After a long development hiatus I am releasing a new version of blogit
This is not my typical blog post style. So no "how to" or opinnions. Just some reflections on how I submitted a patch to Python's standard library.
For quite a while now I wanted to have a cheap replacement for collecting and tracking coverage of codes I work on. Finally, I found a nice way to record and track coverage reporting inside git itself in a semi-automatic or completely automatic way.
I am learning Ruby, and coming from Python it's not a an easy thing. Ruby is confusing, it has a weird syntax, and things are not really simple as in Python. There is still tons of stuff which seem like dark magic. There's `nil`, there are `gems` and `bundler`. And there is _Rails, which isn't Ruby_. Ruby is good for so many people out there, and I am sure you can do amazing things in it. I already know it's never going to be my weapon of choice, but it's not bad knowing my way around it. I'd like to know how to set up a simple project, read and debug code, install gems and package ruby projects. I have been ignoring Ruby for too long.
Creating morse code or translating it to ASCII text is fun, even more fun is making your laptop beep morse code. Here how you can do it with Python.
Regular Expressions are really awesome, and If you read the last post you might got the wrong impression I am totally against their use. I love using regular expressions, but sometimes, knowing Python is more than enough.
When programming in Python, regex are not always your best tool. This has a few reasons, regex can be computationally expensive, unreadable and unmaintainble, and finally, sometimes there is a better pythonic way without them. Here are a few examples.
I gave a quick talk in Python Munich User Group about one of my favourite. Here is a link to the presentation about psutil.
I finally managed to release a new version of pwman3, the console and network password manager. Read more about it here.
Yet another tutorial about Python's multiprocessing. What make this one different? Well, it's based on a real life example and shows what is going on behind the sceanes on your Linux host.
A few months ago we migrated from PyDev to PyCharm. After a 3 months time where I lead the migration from PyDev to PyCharm and SVN to GIT, I am back again to work with VIM. Here are my thoughts about PyCharm.
Here is how to build sphinx documentation on multiple branches in your Python project. If you want to have Sphinx documentation for your project without having to install the whole complicated readthedocs.org image.
I was always interested in how I can add translations to pwman3 or to my little PyGTK tutorial, these are summerizing of my gettext experiences
Part 6 of this tutorial completed the Preferences dialog and introduced gtk.Frames and gtk.Expanders. This part of the tutorial will add some more polish to th UI, introducing icons and completing the About Dialog
Part 5 of this tutorial added a gtk.Notebook and other widgets to the Preferences dialog. This part of the tutorial introduces the gtk.Frame and gtk.Expander widgets and completes the Preferences dialog.
The last part of this tutorial added some polish to the main window of the CD Ripper, and showed how to create an empty Preferences dialog. This part of the tutorial will complete the Presences exploring gtk.Notebook and other widgets.
The last part of this tutorial added the complete song list. However, the UI is still not complete. This part will add the polish to the UI.
In part 1 of this tutorial, the most basic GUI form of a CD ripper application, was created. Part 2 then continued and expanded this tutorial with GTK ListView to create the song list. This part will add some polish and varnish to the UI as well as some more functionality...
In part 1 of this tutorial, the most basic GUI form of a CD ripper application, was created. This part will expand this GUI and will add some more functionality ...
Most tutorials on GTK, create partial UIs, and thus leave the reader to connect the rest by himself. Some others create an almost complete application, but usually, this application is useless. This tutorial, will lead (eventually, I hope...) to a functional application, that rips CD and converts them to MP3 using cdparanoia and lame. In addition to writing this tutorial in blog posts with code, the code will be highly verbose and commented thoroughly ...
pwman3 is a command line password manager written in Python. Pwman3 was originally started by Ivan Kelly, and published on github. I recenty became the maintainer, and now version 0.2 is released. Read more about it ...
I use Python's Popen quite often, and sometimes, I need to debug scripts using it. Here is how I extended Popen, to include a verbose debug mode ...
Well, I am back to actively writing ... look inside if you want to know why and how
Working with binary data puzzled me for quite a time, so here is a post explaining some of my findings
Latex, is my main way of producing reports and scientific works. Usually these are formed as PDF before being actually printed. Latex is AWESOME.
Never really bothered me before, because I only used Python and C, so I always replaces tabs with spaces.
Warning: This is not a technical post, rather just a boring rant and a call for advice. A friend of mine asked me what programming language he should learn.
I have been looking for a good pygtk tutorial for a very long time. I have found a few tutorials which where an overkill, so I don't link to them.
This one is pretty cool. It is a learning environment, which allows you also to create more learning environments. I
Another cool one liner to remove all development packages to clean your Debian.
Forgetting my first lesson in programming, I looked for a solution to convert IP addresses to country. I found out tables, and SQL files, and went on and on trying to figure how to use them, and do SQL in python
Hoora Debian ! I love how every past experience of developers brings something useful ! If you need to build python matplotlib from sources you need to install quite a lot dependencies. Luckily for me in Debian it's quite easy.
I work on a very old Fortran code, which is Fixed form Fortran 77 mixed with some Fortran 95. Geany IDE, had problem displaying lines starting with "c" as comments.
Just a quicky post ... Python has the excellent pdb module to debug your programs.
Sometimes, installation of Debian packages is too easy, but then configuration can be quite confusing.
Sometimes, installation of Debian packages is too easy, but then configuration can be quite confusing.
Today I built matplotlib from svn. The answer why I did it is in the post's title. 3D plots are back to this wonderful tool !
Most people that find my blog in the end of the internet arrive here while looking for python matplotlib tutorial. That's thanks to the crazy matplotlib tutorial I already have in my blog. However, this tutorial is not very useful. And since I'm using matplotlib to do some of my homeworks, I been wanting to post some real life tutorial. After all why not give the audience what it wants?
I started using python's matplotlib to plot graphs in my Oceanography courses. Matplotlib is pretty easy to understand if you already know some python. However it's documentation is somewhat frustrating, even though it comes with a plethora of examples.
Last time I wrote about the disadventages of using a spreadsheet program to analyze large amounts of data, espcially when it comes to important data.
In many cases people use programs like Excel, Gnumeric or Openoffice.org spreadsheet to analyze large amounts of data. I always hated Excel, and when I switched to Linux about 3 years ago I learned about Gnumeric, but I always found it a little bit limited because I couldn't use macros.