Search Results: "jak"

24 April 2008

Julian Andres Klode: April Updates


This is a summary of most of my activities since end of march. BTW, I’m still at the T&S step in NM since January (I completed P&P in about 3 days). Also, thank you Tolimar for being the second DD signing my key! GNOME 2.22 (Python) / Updated Packages At the end of march, I updated some GNOME packages. These packages were gnome-python and gnome-python-desktop. The upload of gnome-python-desktop was really important, because the old version depended on libtotem-plparser7, which was not available anymore, and FTBFS because the metacity API changed. This upload made other packages building and running again! That time, I also uploaded new releases of dir2ogg and ndisgtk, which fixed some bugs. On the first of April, I updated aufs to a new upstream snapshot, which fixed linux-modules-extra-2.6’s FTBFS on armel, removed bashism in shell scripts, added a hack for limited splice support, and enabled building on -rt kernel (if the required functions are exported). Packages To-Do In the next week, I will upload a new aufs snapshot with support for kernel 2.6.25 and re-added support for kernels < 2.6.23. I will also update app-install-data to the current state of the archive. Other stuff includes my ITA upload of gimmie and the upload of jockey, a tool to install drivers. Jockey will also be modified to provide the functionality from ndisgtk, which development has been discontinued as it is feature-complete (bug fixes will still be provided). Another package will be, of course, debimg 0.1 once it’s released and of course the python-libisofs bindings. Ubuntu packages I requested syncs for dir2ogg and ndisgtk (after I uploaded sync’able versions to Debian) and for aria2, which was not installable before. I have also reported some bugs and used 8.04 for some time. debimg stuff I released debimg 0.0.3 on 4th April. This is the first release to require Python 2.5 and also the first release which uses the new media module, which provides a generic interface to disk creation. I actually have not worked on debimg since that day, mainly because I did not have enough time. In May, I hope to add support for more architectures (at least theoretically, by providing a generic way of handling bootloaders and other non-packages and non-dists files) and release 0.1. debimg 0.1 will not contain any features related to python-libisofs, because the focus is getting the basic functionality. I have also not uploaded any new netinst build on jak-linux.org, since March. debimg and the Debian Project News Debimg will appear in the second issue of the Debian Project News, I’m currently working on the text for it. (BTW, I have also fixed one link in the first issue of the DPN) debimg and Ubuntu I have suggested to switch Ubuntu’s image building to debimg, and offered to do everything needed to do this. Given the speed of debimg and that the current features almost match the requirements of Ubuntu, this seems to be a great idea. python-libisofs As you may know, I released a first preview of the python-libisofs bindings some days ago, with almost complete support for creating image files. The next steps will be reading and growing images and of course, the bindings for libburn and libisoburn. Switching from Ubuntu 8.04 to Debian unstable I am currently working on migrating my laptop from Ubuntu 8.04 to Debian unstable, in order to be able to work better on my packages. Since most of my packages are sync’able now, this enables more efficient development. Another reason is to help the lenny release. This does not mean that I will be less active on the Ubuntu side, at least not much. Let’s make Debian Lenny and Ubuntu Intrepid the best releases ever.

17 April 2008

Julian Andres Klode: python-libisofs 0.0.1 available


A first preview of the python-libisofs bindings is available now. It’s currently located in a git branch at git.debian.org, but this may change at a later point. The bindings support the creation of ISO Images and (almost) all options libisofs supports, like Rockridge, Joliet, and much more. Reading and Modifying existing images is not supported yet. The code is written in Cython and you need cython installed for building from the git branch. It can be installed just like any other Python module/extension/package, using a setup.py. Browse: http://git.debian.org/?p=users/jak-guest/python-libisofs.git
Get: git clone git://git.debian.org/git/users/jak-guest/python-libisofs.git I’ll package it for Debian within the next weeks after some further tests.

13 April 2008

Clint Adams: Right between the eyes

Sometimes creepy shit happens, like a gay black man eating quiche and talking on the phone about The Prestige or a British man sending me a box of strozzapreti and a colander almost a year after I wrote this, then turning out to be the same man who is rumored to buy Laranejeira Prateada because of the suffusion of e's.

4 April 2008

Julian Andres Klode: debimg 0.0.3 - the checksum - released


Dear readers, The third release of debimg is available now: 0.0.3 Get the tarball: http://alioth.debian.org/~jak-guest/debimg_0.0.3.tar.gz
Verify it: http://alioth.debian.org/~jak-guest/debimg_0.0.3.tar.gz.asc
The ChangeLog: http://alioth.debian.org/~jak-guest/ChangeLog-0.0.3 Clone git repo: git://git.debian.org/git/users/jak-guest/debimg.git
Browse the repo: http://git.debian.org/?p=users/jak-guest/debimg.git More Information: http://wiki.debian.org/DebImg
Daily images: http://jak-linux.org/cdimage/daily-builds/testing/
    About debimg debimg is a software designed to replace debian-cd, written in Python, and
    supporting the creation of single disks for the i386 and amd64 architectures. debimg is of course free software and licensed under the terms of the GNU
    General Public License 3 or (at your option) any later version. About “the checksum” This release is called “the checksum”, because the software knows
    the MD5SUM, SHA1SUM and SHA256SUM of every file on the disk. News
    • Introduction of the media module
      • Add md5sum.txt and sha1sum.txt to the image
      • NEW OPTION: JigdoMap, see the config file
      • Lot of code cleanup
    • Support for custom installer images
      • Modify InstallerImages to an url supported by apt
    • Renamed most options in the configuration file for better
      readability
    • debimg requires Python 2.5, as it uses the with statement.
    Description of the Release This release of debimg introduces the media module with its classes
    MediaFile, BaseMedia and DebianMedia. The MediaFile class contains information about a file.
    It contains the absolute path to the file on the filesystem,
    the path on the media, its size, md5sum, sha1sum and sha256sum. The BaseMedia class provides methods to add files to the
    image, open files on it, and creating the final image. It also
    provides methods to create the files md5sum.txt and sha1sum.txt,
    and methods to support Jigdo file creation. The DebianMedia class provides methods to add packages to
    the image, creating Release and Packages files for dists. Quick start To get started with debimg, get the tarball and extract it to
    some directory. Now, open the file debimg.cfg and change the option Mirror to the URL
    of your preferred mirror. This mirror may be any kind of mirror supported by
    apt, but if you use file:/ they have to be on the same mountpoint, as the files
    are hardlinked. (use copy:/ to get them copied). Now, run ./debimg debimg.cfg. This will create an ISO image named
    debian-lenny-i386-netinst.iso. This image is a normal netinst (except for
    missing documentation and some other small things), and contains the Lenny d-i. To change more settings, take a look at debimg.cfg. Future
    • Cleanup of the configuration format (almost finished)
    • Support for splitting disks
      • Introduction of MediaSet class
      • Changes to the lists required
    • Add documentation to the disks
    • Support for PowerPC
    • Create Debian package (almost finished)
    Another interesting feature will be the libisofs [0] support provided by
    the python-libisofs extension, which is currently under development. [1] Previous release announcements Links

    21 March 2008

    Julian Andres Klode: 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. It knows the space which is free, the size of each file and the md5sum of each file. It also writes all data inside dists/ The MediaSet class contains one or more Media instances. It has the functionality to split the packages into the disks. MediaSet knows the dependencies of all packages and tries to add it to the disk with smallest number (e.g. 1) if there is enough space left for the package and all dependencies. If a dependency is on disk2, the package will be added to disk 2 or later. (If one dependency is on the last disk, we don’t check where the others are, instead, we put it on the same disk [faster]) The MediaSetCollection class contains multiple MediaSet instances (e.g. for DVDs and CDs), and calls their functions. This makes it possible to build multiple MediaTypes at the same time in an efficient way, because we don’t need to call debimg multiple times or run in multiple loops. This means that many methods of libdebimg.packages.MirrorBuilder move into the new module. For example, the writePackagesFiles() and writeReleaseFiles() will be part of media.Media. (and can be called from MediaSet [for every Media] and MediaSetCollection [for every MediaSet], too) From boot, run_genisoimage() will be removed. It is replaced by the createImage() method of media.Media. In future, debimg will be able to run in three modes: simple, set and sets. The simple mode only creates one disk and is used for netinst and businesscard images. The set is used when only one MediaType has to be generated. The recommended mode for building e.g. weekly-builds is sets, as it has support for multiple MediaTypes. Another change is the change to the format of data/*.list. I remove the keys called Priority and Tasks. Instead of these, I will add support for these directly into Depends. This means that you will be able to use “Priority:standard” just like “pkgname”. This makes sorted lists possible, which are needed for disk splitting. I will also rename the package list to match the names used in debian-cd (mostly) and add a new field called Single-Disk: yes, which disables sorting of the list, and is a bit faster than the other one. This feature code is unreleased at the moment, but will hopefully be ready next week. Please note that I will never build complete sets with debimg. Therefore, I added a mode to create a list of all packages and build the image without them. (I have no local mirror) Next week will also be the start of the first daily-builds of PowerPC images and businesscard images available from jak-linux.org/cdimage. If you want to use the current release (0.0.2), a good point to start is a mail I wrote: http://lists.debian.org/debian-cd/2008/03/msg00116.html

    20 March 2008

    Julian Andres Klode: 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.org/cdimage/daily-builds/testing/. For more information, see http://lists.debian.org/debian-cd/2008/03/msg00114.html

    6 March 2008

    Julian Andres Klode: 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. I will also add support for more architectures. debimg homepage at jak-linux.org

    11 February 2008

    Julian Andres Klode: 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. (If you know one, please let me know). If you have never heard of ikiwiki: ikiwiki is a wiki system used and developed by Debian Developer Joey Hess and many contributors. In contrast to ftpsync, a python script I wrote in 2007, it has an active upstream with multiple contributors, and supports multiple markup languages (e.g. Markdown). This switch to ikiwiki is also a switch back to the design used at mentors.debian.net, which had been replaced in December 2007 with a (CC-licensed) design created by styleshout.com. This template just looks better and has the better license (GPL-2). In the next days, I will cleanup and extend the website and the template and release both under the terms of the GNU GPL version 2. I will alsoI will also try to write a plugin for directory indexes, write a plugin to create directory indexes (although I have almost no experience with perl), and will release it under the GPL 2. Thank you, Joey and all contributors for creating this software.

    4 February 2008

    Julian Andres Klode: Experiences with git and pristine-tar


    In the last days, I used git very often. It was almost the first time I really used it, but I quickly understand the basic commands. As some of you may know, the readahead-list package is now maintained in a git repo in the collab-maint project. I decided to use git instead of bzr (which I used for everything before), because of its speed and because I wanted to learn more about git, how it works. I used git-import-dsc to import the first revision, and used debdiffs from 1 to 2 and from 2 to 3 to import the next revisions. Afterwards, I run git-import-orig on the new upstream tarball, which I downloaded and recompressed. Then, I did the packaging changes, added them using ‘git add changed-file‘ and committed them using git commit. After I had done this, I read Planet Debian and saw Joey Hess’s post about the new features of pristine-tar 0.5, i.e. the integration with git. Running Ubuntu at the moment, I fetched the source package, built it and installed it. I then opened a shell in my git repo and ran pristine-tar commit path-to-orig upstream/0.20050517.0220 to import the delta for the first tarball. Afterwards I did it for the second tarball. Because I use git-buildpackage to build the package and Joey said he would like to see support for pristine-tar in git-buildpackage, I then wrote a patch for the programs in git-buildpackage to import and export the orig.tar.gz when needed. The patch can be seen in gitweb, and the maintainer responded in Bug#463580 will integrate the patch with some minor modifications.
    Both git and pristine-tar are great works, and it makes it so easy to maintain the readahead-list package. The combination of git, git-buildpackage and pristine-tar is the most powerful I ever used to maintain a Debian package, especially when you are not upstream.

    22 January 2008

    Clint Adams: Right between the eyes

    Sometimes creepy shit happens, like a gay black man eating quiche and talking on the phone about The Prestige or a British man sending me a box of strozzapreti and a colander almost a year after I wrote this, then turning out to be the same man who is rumored to buy Laranejeira Prateada because of the suffusion of e's.

    Clint Adams: Right between the eyes

    Sometimes creepy shit happens, like a gay black man eating quiche and talking on the phone about The Prestige or a British man sending me a box of strozzapreti and a colander almost a year after I wrote this, then turning out to be the same man who is rumored to buy Laranejeira Prateada because of the suffusion of e's.

    25 December 2007

    Frans Pop: Visually beautiful music

    Most audio players offer visualizations. Unfortunately most of them either are just plain boring or don't really visualize the music very well. KDE's amarok has one that is really excellent: jakdaw. Jakdaw does a good job of both following and representing the intensity of the music. And it generates an amazing display of colors. But even with a good visualization a lot of music is not all that interesting to watch. Over the last month or so I've occasionally been "looking" through my music collection. The visualizations are surprisingly varied for different artists. And though a lot of them are nice to watch, some artists consistently produce much more varied and artistic displays than others. To some degree it is predictable, but not always. Quite often the visualization is a lot less interesting than you'd expect and especially some slower or quieter songs produce much more interesting displays than you'd expect. A blanket of sound does not produce a very interesting display, but strong accents and mood changes do. As is often the case in art, the real challenge in composing music seems to be leaving things out and to have individual instruments play their own tune instead of having everything move together. The two artists that really stand out so far are Björk and Faithless. Both consistently produce visualizations that are at times stunningly beautiful and also show a lot more detail in the music than others. For Björk It's Oh So Quiet (from Post) and Violently Happy (from Debut) are very nice, but two songs that really stand out are Hunter (from Homogenic) and Hyper Balad (from Post). For Faithless songs like We Come 1 and Tarantula (from Outrospective), and Salva Mea and Insomnia (from Reverence) are truly worth watching.

    14 November 2007

    Ross Burton: Calibrated At Last

    Today I finally got a Spyder2 Express monitor calibration kit, and calibrated my ThinkPad's laptop. I've known it to be shockingly badly calibrated (although it is an improvement over the X20), but was curious as to how much it can be corrected. One word: wow. Thanks to Graeme Gill et al of ArgyllCMS fame for reverse-engineering how the Spyder2 works, and making calibrating displays reasonably easy to do. I'll probably write up what I did at some point, because if you are like me and don't read the documentation there are a number of stumbling points. I also blame Jakub entirely for making me think ArgyllCMS was broken by picking slightly warm grey tones for Darkilouche. My freshly calibrated screen looked a little warm instead of the usual very cool, and it took me a good ten minutes to think about checking that the theme is actually pure grey. NP: Blue Skied An' Clear - A Morr Music Compilation

    23 August 2007

    Joachim Breitner: The trustworthy stranger

    Some friends and I are considering to set up something similar to Steve s xen-hosting.org. One issue that came up was: Who get s to be the main admin and how can we trust him? At first I found this an odd issue I ve never heard anyone considering this when using one of those anonymous virtual server hosting offers.After all, when you have something valuable to store somewhere, e.g. your family store of gold coins, you d rather ask your good friends instead of some random stranger. But it seems to be different for information: Imagine you have some valuable piece of information (e.g. your dirty secret from ten years ago) and you had to share it with someone suddenly the completely anonymous stranger seems to be a better choice than the persons that know you...I think this effect is also the reason why people are so little troubled by known and unknown facts such asThis is just a small part of the list of situations where people give information to some unknown stranger that they would probably not give their friends.Is this way of thought valid? If not, what are good arguments to convince people to be more careful? And under what circumstances would you trust your friend to manage the host machine for your Xen server instance?

    6 August 2007

    Ross Burton: Wanted: Black and White Icons

    As people who have seen my laptop know, I use the wonder Darkilouche theme by Jakub. To complement it I'm after some decent black and white (ideally #F5F5F5 as the primary colour) icons for Network Manager, seahorse-agent and so on. I just tried redrawing the NM status icons in Inkscape, and basically it's obvious that I should never attempt to draw an icon ever again. I thought that the High Contrast icon theme would have what I want, but it doens't cover Network Manager yet. Does anyone know any suitable icons? NP: Backup 01, TRS-80

    28 July 2007

    John Goerzen: OSCon and Portland Wrap-Up

    I really enjoyed OSCon. This was the first conference I've been to in years where I've felt a bit sad that it's over. I met a lot of interesting people, enjoyed most of the talks I attended (and especially this morning's keynotes), and also enjoyed Portland. I recommend OSCon. Last year, I went to Usenix ATC. Compared to Usenix, OSCon had more talks that were relevant to things I'm interested in, more people that I met with similar interests, more people that I knew online and met in person, and a more broad program. The one criticism I would level at OSCon is that it has a disproportionately high number of web-related talks.

    On to other items...

    Portland

    Probably the friendliest "big city" I've ever seen. Everyone from cab drivers to bus drivers seems to go out of their way to be helpful and friendly. Somewhat different from, say, Chicago or Los Angeles.

    The climate is very nice and the transit system is excellent as well. While it doesn't move as fast as below-ground systems, since it has to work within traffic, one nice thing for visitors is that you actually get to see the city and see potential places to stop. Last year, we went from Boston to Cambridge on the T, but you don't see much except a whole lot of concrete along the way.

    The Japanese Gardens are wonderful and deserve a visit.

    Compared to Indianapolis, where we lived for awhile, Portland has some nicer parks, and a better transit system. I think that Indianapolis had a nicer walking path. Portland had a lot of friendly people, including many that worked for TriMet. MAX was very nice, with frequent departures. The TriMet system had scattered electronic signs about the MAX lines, streetcar stops, and even some bus stops I think. These listed how many minutes until the next departure in each direction, and were very helpful. Stations were announced audibly and on signs on-board. There was helpful information at stops and platforms.

    Indianapolis has a really quite awful transit system, which consists of, let's see, regular buses and small buses. These run infrequently, are known for not being on-time, and a former co-worker had trouble with them just not showing up at times. They also all seemed to run between downtown and the outskirts. So if you wanted to go from one area towards the outskirts to another area there, you'd have to go towards downtown and back out.

    Because of all this, I never rode IndyGo, and wouldn't ever encourage visitors to. TriMet was very different, and if I lived in Portland, I'd want to live close to MAX.

    Hotel

    The DoubleTree Lloyd Center is a nice, friendly hotel. Everyone here has noticed that the elevators inexplicably stop on the 2nd floor every time they go down, but other than that, we have had no real problems (other than some water dripping onto the desk when we first were here, but maintenance fixed that). It's annoying that they charge for in-room Internet access, but that is unfortunately typical for hotels of this class.

    The room is also a bit small, but has worked out OK. The hotel is very close to a MAX stop, and fairly close to the Lloyd Center mall, which is convenient. The staff is very friendly and helpful as well, especially the concierge staff, which are great and helping visitors find their way around the city and the transit system.

    They give you cookies on check-in, but Terah was disappointed that they didn't offer any without nuts.

    Restaurants

    I had opportunities to eat with various people from OSCon, some Portland area people, and of course, Terah and Jacob.

    Portland has some good restaurants, and a few more iffy ones...

    The Multnomah Grill in our hotel was one of the iffy ones. I had the ribs, which were not at all good. The prices were about in line with other Portland restaurants, which is too bad because the food wasn't. Because of all that, I just couldn't bring myself to try the other restaurant in the hotel, Eduardo's Mexican/American Cantina.

    I had heard about Jake's Famous Crawfish from a passenger on the train. It was also listed on the OSCon wiki restaurants page. It's a historic century-old restaurant, with excellent seafood. I had parmesean-crusted Alaskan Halibut, which was very good.

    I also went to the Newport Seafood Grill, which is within walking distance of the hotel, just on the other side of the Lloyd Center mall. It was also good; I had a tuna dish served rare, with a sauce that complimented it well.

    Blossoming Lotus Cafe is a vegan cafe in the Pearl District. I hadn't ever been to one of those before. It was OK, but not all that great.

    Across the street was Sweet Masterpiece, a chocolate and coffee house. Excellent chocolate made in-house, all sorts of desserts, and good coffee.

    Rock Bottom in downtown has some surprisingly good food options. I was there with a group of local and OSCon Haskellers, and it was a little bit hard to follow conversation all the time due to the background noise, but that's to be expected in this sort of place. I'm not into beer, but those that were enjoyed their selection, I think.

    I also went to a couple of chains: Quizno's and Ben and Jerry's. Both were about what you'd expect from those chains. Good ice cream of course at Ben & Jerry's.

    OSCon provided breakfast and lunch free to paid attendees. Breakfast consisted of a selection of various fruits, slightly stale pastries, and bagels. On the tutorial days, lunch was pre-made boxed lunch. For what it was, it was OK. On Wednesday and Thursday, lunch was served hot in buffet lines. They had chicken both days, which looked identical. I had tried it Wednesday so knew not to bother Thursday. Wednesday they also had salmon with cranberries, which was good. Their salads, breads, etc. were OK.

    Oregon Convention Center

    This is where OSCon was held. A very nice, but incredibly huge, building. They say it covers the equivalent of 13 square city blocks, and if you look on a map, you can see that it is indeed quite large. There was a lot of walking to get to everything, even though OSCon took up only one part of this huge place. Restrooms in particular were not in very convenient locations to just about anything. But it was a nice place and I wouldn't mind being there again next year.

    2 July 2007

    Evan Prodromou: 13 Messidor CCXV

    More weekend stories: on Friday, we had a Geek Lunch at La ka to welcome Tara Hunt to Montreal. She's in town for a few days for Montreal Jazz Fest, and she asked to meet some people in the local Web/BarCamp/hacker scene. Lunch was good and interesting people came. Austin Hill made it, as well as Patrick Tanguay, Fred Ngo and Ben Yoskovitz, and Niko. I was especially glad to see Seb Paquet, who I don't get enough time with. All in all a good time was had. tags:

    Rest of the weekend Friday night John Usher came over for our weekly Pizza Night and we had beers until very late indeed. Saturday I got a nice glass desk for my office, and we got a big square wooden coffee table off of Montreal Craigslist. We went down to the Pont Jacques Cartier to see the fireworks on Saturday night, part of the International Fireworks Competition. Except there weren't any fireworks on Saturday night. Doh! Long walk home. Yesterday, Canada Day, we had our new neighbours Jake and Magda over for a get-to-know-you brunch. Jake is a structural engineer, and Magda is a professor of history at UQ M. They're expecting a baby any day now, so we figured it was a good idea to hang out with them before the madness begins. I made a couple of quiches, a big green salad, and some banana bread. It was a good meal. tags:

    25 June 2007

    MJ Ray: Blogging from debconf7: 4. Sleepin ur BoF, hijakin ur sesh, climbin ur volkano

    This has been delayed for a few days, for reasons I explain in another post, so my remaining debconf posts will be published quite quickly, every few hours. Monday started with me nearly asleep in the back of the Debian-Med session. Interesting stuff and I'm starting to get involved in supplying web apps to the health sector, but I must watch the session back. Then bureado's excellent debian in venezuela talk and a big shock for me when I got called out. The afternoon and evening were mentioned in the last post. Tuesday opened with me confused in the Xen session and then I went to a good-looking session on combining the debian-installer, ubuntu OEM bits, backuppc and openvpn but lkcl didn't show. (His diary suggests he was around. Wonder what happened.) I kicked the session along a bit and learned stuff from others about preseeding, FAI, backuppc, bacula, amanda and so on, but it didn't seem like anyone had plugged these together in quite the same way. At the end of the session, I bumped into Eddie Bleasdale who it seems is working with Phil Hands and lkcl on a very interesting project. He spoke more about it in a meeting the afternoon, hoping that Phil would arrive to handle the technical side. Phil timed his entry to perfection, about 30 minutes after the end of the talk. In between the hijacked talks, I went for a walk up to the top of Arthur's Seat and back with jumpula and someone else whose name I've forgotten - sorry! Oh, and what is it with all the loldebian posts this week?

    15 June 2007

    Michal &#268;iha&#345;: Gammu stable version 1.12.0

    I just released new version of Gammu. There are no big changes since last stable release: For stable users, there are quite a lot of changes, especially for developers, conversion to new API will probably hurt. There is porting documentation included in sources and if it does not help you, feel free to ask! Stay tuned, release evening will continue ;-).

    28 January 2007

    David Pashley: Lazy Class Infrastructure

    Do you ever feel you should implement equals(), hashCode() and toString, but just can't be bothered to do it for every class? Well, if you aren't bothered by speed, you can use Jakarta Commons Lang to do it for you. Just add this to your class:
    import org.apache.commons.lang.builder.ToStringBuilder;
    import org.apache.commons.lang.builder.EqualsBuilder;
    import org.apache.commons.lang.builder.HashCodeBuilder;
    class Foo  
       public int hashCode()  
          return HashCodeBuilder.reflectionHashCode(this);
        
       public boolean equals(Object other)  
          return EqualsBuilder.reflectionEquals(this,other);
        
       public String toString()  
          return ToStringBuilder.reflectionToString(this);
        
     
    And that's it. Your class will just do the right thing. As you can probably guess from the function names, it uses reflection, so may be suboptimal. If you need performance, you can use tell it to use particular members, but I think I'll leave that up to a future article. I also recommend you don't use this technique if you are using something like Hibernate, which does things behind the scenes on member access; you may find it does undesirable things. :)

    Next.

    Previous.