3 years of work on Pipenv in Gentoo come to a happy end

2023-10-28
tagged: python, gentoo, foss

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.

Using IPython Notebook on Linux Machines in the Enterprise Corp.

2021-11-24
tagged: linux, ssh, python

A short guide for using IPython and Jupyter Notebook on remote Linux machine in the Enterprise Corp, where you don't have root rights.

Visualize almost anything with Grafana and Python

2019-06-16

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).

blogit - new release

2018-09-21
tagged: python, news

After a long development hiatus I am releasing a new version of blogit

Submitting patches to Python

2017-07-11
tagged: python, news

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.

coverage reporting and logging without a webservice

2017-02-28
tagged: python, testing, git

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.

On learning Ruby coming from Python ...

2016-08-23
tagged: python, ruby

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.

Morse fun with Python

2016-03-29
tagged: python

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.

Yet another case of Python vs. Regular Expressions

2016-03-26
tagged: 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.

Python's regex is not always the best option

2016-03-15
tagged: python

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.

AJAX with bottle.py

2015-08-17
tagged: python, web, jquery

A working example of AJAX with JQuery and Bottle

Introducing psutil in Munich Python Users

2015-07-16
tagged: python

I gave a quick talk in Python Munich User Group about one of my favourite. Here is a link to the presentation about psutil.

New version of Pwman3 released

2015-03-22
tagged: python, pwman3

I finally managed to release a new version of pwman3, the console and network password manager. Read more about it here.

Simple Multiprocessing Task Queue in Python

2015-02-25
tagged: python, linux

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.

Farewell PyCharm! Going VIM again

2015-01-20
tagged: python, vim, git

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.

Poor man's Read-The-Docs

2015-01-16
tagged: python, git, bash

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.

Localizing applications with gettext

2013-08-04

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

PyGTK CD Ripper Tutorial - Part 7

2013-06-02

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

PyGTK CD Ripper Tutorial - Part 6

2013-02-27

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.

PyGTK CD Ripper Tutorial - Part 5

2013-02-11

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.

PyGTK CD Ripper Tutorial - Part 4

2013-01-21

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.

PyGTK CD Ripper Tutorial - Part 3

2013-01-09

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...

PyGTK CD Ripper Tutorial - Part 2

2013-01-05

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 ...

A Complete PyGTK CD Ripper Tutorial

2013-01-03

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 ...

Releasing PWMAN3 v.0.2.1

2012-12-17

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 ...

Extending Python's Popen

2012-12-03

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 ...

Back to blogging

2012-11-25
tagged: python, foss, blog

Well, I am back to actively writing ... look inside if you want to know why and how

Working With Binary Data in Python

2012-07-28

Working with binary data puzzled me for quite a time, so here is a post explaining some of my findings

Good Bye Latex ? Hello WeasyPrint

2012-03-20

Latex, is my main way of producing reports and scientific works. Usually these are formed as PDF before being actually printed. Latex is AWESOME.

VIM Quicky - set tabs and spaces behaviour for different files

2012-02-24
tagged: programming, vim, c, python

Never really bothered me before, because I only used Python and C, so I always replaces tabs with spaces.

When friends spit FUD

2011-10-19

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.

A Usefull PyGTK Example

2011-08-03

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.

One more python learning resource

2011-06-19

This one is pretty cool. It is a learning environment, which allows you also to create more learning environments. I

2 Cool Python Learning resources

2011-05-26

Another cool one liner to remove all development packages to clean your Debian.

oh, Yesterday I was a bad programmer

2011-02-25

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

Installing python-matplotlib from source in Debian

2010-09-15

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.

Tiny Python script to convert Fortran comments to "!"

2010-05-29

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.

Easy Python debugging

2010-05-28

Just a quicky post ... Python has the excellent pdb module to debug your programs.

Evalution of a Tracer Test with Python scipy.optimize

2009-10-10

Sometimes, installation of Debian packages is too easy, but then configuration can be quite confusing.

MoinMoin wiki on Debian, Installation and configuration

2009-08-27
tagged: linux, python, wiki

Sometimes, installation of Debian packages is too easy, but then configuration can be quite confusing.

3D plots with matplotlib

2009-05-17

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 !

A matplotlib tutorial

2009-01-05

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?

Crazy Matplotlib tutorial

2008-07-26

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.

Data analysis with Programming

2008-06-23

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.

Data analysis with spreadsheets vs. programming

2008-06-14

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.

Subscribe to all posts tagged with python