We got a new Xerox network printer at work a few months back. I haven’t had that much use for it, so I never bothered setting it up on my computer. People around me, using Macs and Windows, were complaining that it was hard getting it to work, and some never managed to get it to work.
Knowing that Macs use the same printing system as Ubuntu, I assumed that this would be complicated as well, so I had postponed it for some time.
When I’m travelling, I often visit the kiosks at the airport, to see what they have of intresting magazines, specially Linux and Digital Photography magazines. I was visiting Trondheim last weekend, and on the way back, while I were waiting for my plane back to Bergen, I was looking on the shelves at Narvesen at Trondheim airport, Værnes. There were actually a quite good choice of Linux magazines, and one specially catched my eye.
During the last week there has been a couple of great releases in the software I use every day.
First out was Python 3.1. It was released June 27th and features
An ordered dictionary type Various optimizations to the int type New unittest features including test skipping and new assert methods. A much faster io module Tile support for Tkinter A pure Python reference implementation of the import statement New syntax for nested with statements Next out was Mozilla Firefox 3.
Ok. It has been a while since my last post, and quite a few things have happened since then, some of which I will get back to in some later posts.
One of the things that have happened is that I attended the “Skolelinux developer summit” or Debian Edu developer summit here in Bergen, with the goal to do some real contribution to free software. I didn’t end up contributing any code at that event.
Lets say you have two lists, one of them containing the values [1,2,3] and the other one containing the values [4,5,6], and you want to combine these two lists into one list, like this one: [1,2,3,4,5,6].
Let’s see how this can be done in different (high level) programming (or scripting or templating) languages.
Java Java has multiple list implementations, lets start with the most basic one, the builtin array.
As a programmer and linux geek I often need, or at least want to write about code, scripts and commands on my blog, but as many of you know, displaying raw code in HTML is setting yourself up for failure. The simplest part of the problem is the fact that line breaks and whitespace might be significant, this is simply solved by putting the code inside a block. The more tricky part is that code often is full of characters like &, > and <.