Python Speed: Getting the first part of a string

If you want to get the first part of a string (in the following example a), you should use the partition method of the string, as it is the fastest way (and it also gives you the delimiter in [1] and the other part of the string in [2]): In [1]: a = ‘a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z’ In [2]: timeit a.partition(‘/’)[0] 1000000 loops, best of 3: 362 ns per loop In [3]: timeit a[:a. Read On →

debimg news: disk splitting, new data lists, PowerPC

The next release of debimg (0.0.3) will be the first release supporting splitting packages over multiple disks. I worked a lot on the base technology today, and the basics are working. In order to get support for disk splitting, I introduce three new classes: Media, MediaSet and MediaSetCollection (all in libdebimg.media). The Media class is responsible for adding files to an image (incl. copying/linking), generating extra files (like MD5SUMS or documentation) and for building the image. Read On →

debimg 0.0.2 builds netinst in less than 4 seconds

debimg 0.0.2 has a new high speed dependency resolver and support for local repositories. With these new features, debimg is now able to produce netinst images in less than 4 seconds. BTW, you can easily build your own disk. Simply unpack the tarball, change the mirror to your one, and run ./debimg debimg.cfg. This should give you an i386 netinst disk. Get debimg 0.0.2 from http://users.alioth.debian.org/~jak-guest/debimg_0.0.2.tar.gz Fetch daily-built images at http://jak-linux. Read On →

Ubuntu stuff: gnash 0.8.2 for gutsy, ndisgtk, aufs

A backport of gnash 0.8.2 is available in my PPA at deb <a href="http://ppa.launchpad.net/juliank/ubuntu">http://ppa.launchpad.net/juliank/ubuntu</a> <span>gutsy</span> main I wanted to try it, but I had no time to compile it, so I uploaded it to the PPA. The next day, I had a compiled backport. I don’t use it actively because it does not support some sites I visit. Another news is the recent addition of ndisgtk to the ship and ship-live seeds, which means it will be available on the disk. Read On →

cdimage for debimg is online now!

debimg’s cdimage is now online at http://jak-linux.org/cdimage/, and contains daily-builds of Debian testing netinst disks for i386 and amd64 architectures. debimg is a new software which aims to replace debian-cd. No code has been released yet, but will be in the next days. Please note that I can only provide jigdo images, because of bandwith and storage. I will soon add build logs, and files listing the differences compared to original netinst images. Read On →

gimmie (ITA) and the new menu policy + building with pristine-tar

While working on Bug#460620: ITA: gimmie – elegant desktop organizer, I noticed that I need to upgrade debian/menu to the new policy. Currently, gimmie uses Apps/Tools, but what should I use now? It does not fit into the other sections. Recommendations? Other important changes: I am the new maintainer Gmenu and sexy extensions are not built, instead the python-gmenu and python-sexy packages are used Gimmie’s extensions are compiled for Python 2. Read On →

pristine-deb - git-buildpackage's pristine-tar support

Reading about the idea of pristine-deb, I actually noticed that using ar -rc file.deb debian-binary control.tar.gz data.tar.gz does not work, due to timestamps and other differences. I am currently working on a pristine-deb program which will workaround all these issues. It will be able to work with git repositories like pristine-tar and uses pristine-tar for control.tar.gz and data.tar.gz. I may also add a function to decompress all compressed files (like changelog. Read On →

debimg - debian-cd in Python

I’m currently working on a rewrite of debian-cd in Python. Although there is already deb-imgs-gen, I decided to start from scratch, because deb-imgs-gen is more than 1 year old. debimg’s main features are Speed debimg should be able to build netinst disks in less than 20 seconds Free Software This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Read On →

Ubuntu: aufs with casper 1.118 / ndisgtk 0.8.1 / ndisgtk in main?

Colin Watson today uploaded casper 1.118, now supporting aufs. To use aufs in future Ubuntu disks built with casper 1.118 or newer, use union=aufs. Please test it. Another upload today was ndisgtk 0.8.1-1ubuntu1, bringing Ubuntu up-to-date with Debian and closing 3 bugs. BTW, I requested to include ndisgtk in main, see https://wiki.ubuntu.com/MainInclusionReportNdisgtk. Having ndisgtk on the Ubuntu disks would be very useful for users without linux network drivers available and without enough experiences to use ndiswrapper from the commandline. Read On →

JAK LINUX website now powered by ikiwiki

I’m glad to announce that finally, after being powered by ftpsync for more than six months, the JAK LINUX website now uses ikiwiki. I currently have some small issues with the website: After using –rebuild, tarballs have a different modification time and are therefore reuploaded everytime, though the content is actually the same. I would also need a plugin to create directory indexes with sha1sums, but I haven’t found one yet. Read On →