Search Results: "jan"

31 December 2005

Antti-Juhani Kaijanaho: Not again!

When you protest political decisions, please – pretty please! – have some perspective! As bad as the new data retention decision is, it is not even in the same ballpark as 1984. There is no thought police, there aren’t thousands of people rewriting history books according to the political leadership’s whims, there is no newspeak whose vocabulary is constantly shrinking. Nobody will take you seriously if you overreact. You only hurt the good cause.

Antti-Juhani Kaijanaho: Phishing Amazon user data

I’ve seen from several sources messages of the following kind:
Subject: Please verify and update your Amazon account !
Dear Amazon    member , 
    It has come to our attention that your Amazon account information records are
out of date. That requires you to update your account information . If you could
please take 5-10 minutes out of your online  experience , and update
your account , you will not run into any future problems with Amazon
online service.                                       
   However, failure to update your records will result in account termination.
Please update your records in maximum 48 hours.  
   Once you have updated records, your Amazon session will not be
interrupted and will continue as normal.
      To update your Amazon account information click on the following link: 
        (link suppressed)
 Best Regards ,
Amazon Security Departament
Disregarding the very sound general rule of thumb telling us to distrust any mails that ask us to “reconfirm” our account details at whatever company, this mail is fairly convincing. The greatest clues that this is a forgery are such that Grandma Pihtipudas will unlikely notice them: the mail has been sent to several addresses I know are not registered with Amazon, and the link uses a well known URI spoofing technique. Beware!

Antti-Juhani Kaijanaho: Unbounded Tic-Tac-Toe

Here is the result of a few nights’ worth of hacking. This project was originally my solution to an exercise I had posed to my functional programming students. Since then, I’ve rewritten it once and redesigned the user interface completely. It’s an idealized implementation of a game we used to play during breaks at school. We would take a sheet of cross-ruled paper and play tic-tac-toe, with the following two changes: the whole sheet was allowed as the board, and we required a sequence of five, not three, marks for a win. The ideal was that the “board” was infinite, or unbounded, though in practice we did take the paper’s edges as the board’s bounds. (We also usually played more than one game on the same sheet of paper; previous games were simply declared “no-man’s land”, effectively creating weirdly shaped “holes” in the game board; I haven’t duplicated that here.) Version 1.1 implements a single-player mode (the other player is simulated) and a demo mode (the program simulates both players). It’s written in Haskell, and requires gtk2hs 0.9.10 (or later) with Cairo enabled, and GTK+ 2.8 (or later). The source is available as release tarballs and as a darcs repository. (Yes, I know that the arrow in the lower-left corner is wrong. That’s not my bug, though.)

Antti-Juhani Kaijanaho: Christmas balance

I calmed down for Christmas on Friday. Calmed down is exactly the right verb, as I ended up sleeping through most of it. I slept though Friday, hacked during the late evening and night, then slept again most of the Christmas eve. My father came around six to drop me his (other) gift. It was a book on European history 1600–1800, nice, what I had asked for, for I have this dream of writing something in the 163x-verse some time (though I doubt it’ll ever happen). I had received (and opened) his other gift earlier, which was Star Wreck’s soundtrack (probably better than the movie, though the movie was very good too). Opened also my mother’s package which I had picked up earlier in the week from the post office’s local agent: a Heidi Hautala scarf, a long scarf made by my mother herself, and some writing material. Thank you! I slept through most of Sunday, too. Advance subscriptions to Jim Baen’s Universe opened also on Christmas eve. Picked up the Titan membership, for even the other membership classes appealed to me (extensive Tuckerization rights, yessss!), they would have posed cash flow problems. So I took the Titan one, hoping that it will help the magazine at least a little. However, I started reading one of the books that came with the advance subscription package, Empire from Ashes by David Weber, and helped me spend most of the time I wasn’t sleeping (of course, I realized later that I already had that book, since it came with the At All Costs hardcover bonus CD). Today’s minus fifteen degrees, along with the threat that it might actually go below twenty today, made me finally look for my long johns. Surprisingly, my current trousers have been warm enough without long johns even slightly below minus ten; but I knew I’d have to look for the long johns eventually, as a Finnish winter at Jyv skyl ’s longitude just isn’t complete without at least a few days of minus 25 degrees. All Celsius, naturally. All in all, it was a most relaxing Christmas :)

Antti-Juhani Kaijanaho: Unbounded 1.2

I’ve just released a new version of my game Unbounded Tic-Tac-Toe (yes, I know, there are other names I could have chosen). This version is now able to handle any n-in-a-row on that same unbounded board (although the user interface only allows one to select n from between one and ten, inclusive). I’ve also improved the documentation. Get it as a tarball or via darcs. Happy holidays, everyone :)

Antti-Juhani Kaijanaho: Upgraded Wordpress

Just upgraded this blog to Wordpress 2.0. It looks everything went quite nicely, I see no major problems and considering how coolly the Finnish blog list service Blogilista took the upgrade, it is likely that Planet Debian will no throw a fit either. First impressions: the admin interface looks cool. The new editor is usable. Update: In the upgrade, I followed the instructions with a twist: I made the following changes to my server config prior to the upgrade so that any transitional problems would not be visible: RewriteEngine on RewriteCond % REMOTE_ADDR !^130\.234\.192\.228$ RewriteCond % REQUEST_URI !^/503.cgi$ RewriteRule ^/newblog /503.cgi The effect of this was that I (having the IP address 130.234.192.228) would see the blog as it is, but others would see the 503 ‘Service unavailable’ error message that my 503.cgi created. Update(2): Argh! The new editor handles pre tags badly. Had to hack around it in the ugly way seen above. Update (3): Fixed the WP2 link above. Update (4): It seems I was wrong about Planet’s sensibilities. However, now I’m blaming Planet, not the upgrade, since Blogilista handled the upgrade without thinking I had made any new posts!

28 December 2005

Antti-Juhani Kaijanaho: Unbounded 1.3

Wrote a GDK version of Unbounded’s drawing. Now it’s compile-time-selectable whether the drawing uses Cairo or GDK (Cairo is used if it is available). The main benefit is that Unbounded compiles on Sarge, though it still requires gtk2hs, which is not in Debian, at build time. Released Unbounded 1.3. Packaged it, too, but only unofficially. Downloads are here. There is no aptable repository. The debs are signed with my Debian key, there is no separate Debian source. The debs require only stuff that is in Debian.

27 December 2005

Joey Hess: all this for a progress bar?

Over the past months we've been working on a big change in the debian installer, removing base-config from the installation process. Doing this has required a great many changes, some of them user-visible. The installer now configures the timezone, users and passwords, and apt all in the first stage instead of after rebooting. Some preseed values have been removed or changed, including base-config/early_command and base-config/late_command. The biggest change of all, the the hardest to get working, has been moving of the selection of tasks and the installation of all packages into the first stage of the installer. Now tasksel pops up a debconf question that looks like any other question d-i asks, and the installation of packages is hidden behind a nice clean progress bar, and if any packages use debconf to ask questions, d-i will display those questions using its frontend too. I'd include a screenshot, but really, it's just another progress bar, how boring is that? By the way, if you maintain a debian package and it prompts without using debconf (when debconf is available), then your package will obviously break this, and it's well past time to fix it. I think that all the packages d-i installs do use debconf except for possibly a few like libc during upgrades. Upgrades are theoretically possible at this step for any packages debootstrap installs, so those will need to be fixed too. This has been a long, long time coming. Some milestones include: So yeah, this has been in er, progress for 8 years, and at least three Debian derived distributions have come up with thier own approaches in between with only the last one being quite similar to the end result, and the other two being rather dead. I don't know whether this is a study in how Debian is slow, or a study in how we do eventually come up with infrastructure that is done right and ends up being used by everyone. Or both.

Matt Brown: Miredo/Toredo Patent Status

Miredo is an implementation of the Teredo - IPv6 over IPv4 tunnelling protocol which I have been playing with lately. I have filed an ITP bug to get Miredo into Debian, however this has been delayed while I try and get a handle on some of the patent issues surrounding the Teredo protocol. While Miredo itself is licensed under the GPLv2 the state of the Toredo protocol is less clear. Teredo was created by Christian Huitema, an architect with Microsoft. It is currently a Proposed Internet Standard waiting for the IETF editor to review it and assign an RFC number for it, IANA will then assign a permanent prefix for use by Teredo clients, servers and relays. According to the IETF IPR disclosure page, Microsoft has filed a statement of claim against the technologies described in the Proposed Standard. Microsoft states that they will provide a Royalty-Free, Reasonable and Non-Discriminatory License to All Implementers in their statement. Specifically the license that they offer the Teredo protocol under is called the Microsoft Royalty Free Protocol License Agreement. This is a catch-all license that Microsoft uses for all client-server protocols used by Windows. The license itself doesn’t make any claims about Microsoft’s IP rights, it simply gives you a license to use any rights Microsoft may have in the specific protocol you are using. For example at the end of the license agreement you select which protocols you wish to have covered under the agreement. Alongside Teredo you can also choose protocols such as IPv4, DNS, 6to4 and lots of other common protocols. The actual patent application for Teredo is incredibly difficult to find, the IETF IPR disclosoure doesn’t link to it, none of the proposed standards link to it and googling for “Teredo Patent Application” isn’t particularly successful either. In the end it turns out that the title is quirkily named “Allowing IPv4 clients to communicate over an IPv6 network when behind a network address translator with reduced server workload” and was published as Patent Application 20040190549 on the 30th September 2004. Incidentally if anyone knows of a nicer way to link to a US Patent Application than the ugly URL above, I would love to know. Half the reason that the Patent Application was hard to find is that it doesn’t actually mention Microsoft anywhere at all, unlike the ~5000 odd other Patent Applications currently filed by Microsoft. From what I can tell it appears that Christian Huitema has filed the application through is own personal attorneys independently of Microsoft. So where does this leave us in terms of getting Miredo into Debian? The short answer is I’m not entirely sure. I can’t seem to find a definitive statement regarding Debian’s position on patents anywhere, the best I’ve been able to come up with is a debian-legal post from Andrew Suffield from Jan 2005 which offhandedly describes the informal Debian patent policy as:
“ignore patents until somebody starts to wave them around, then drop the offending thing like a hot rock”
So maybe I’ve already shot Miredo in the foot, by investigating its Patent Status… :( My take on the situation seems to be that Debian is perfectly happy (and perhaps has no other option but) to ignore patents applicable to software in Debian until it becomes apparent that a particular patent is being enforced or has the potential to be enforced. So the question now becomes whether the Microsoft Royalty Free Patent License is acceptable enough to Debian to allow Miredo to be included in main or non-free, or whether it simply can’t be redistributed at all. The main problem I see with the license is that it does not permit you to sublicense other parties to make use of the Toredo technology used by Miredo. If this were a copyright license then that would most certainly fail to pass the Debian Free Software Guidelines, does Debian treat patents in the same manner? I think it’s time for me to post to debian-legal to seek some “official” guidance on the situation, but hopefully this post has ordered my thoughts enough that I can now write a coherent mail seeking help. If you have any comments or pointers to Debian statements on this sort of situation that I have missed they would be most welcome.

24 December 2005

Aigars Mahinovs: Learning TurboGears now. True MVC separation. Nice...

Learning TurboGears now. True MVC separation. Nice and powerful. Templates are valid XHTML documents (and not a mess of gibberish). Not much magic. I hate magic. Especially when it fails. I look forward to writing a task tracking system for a very special project in this framework. More about the project when it is launched. You're gonna love it ;)

Also I am going to visit my family - they still have no Internet, so I'll be mostly offline 'till the New Year (except for this and this). So I wish you all a Merry Christmas (note: there is absolutely nothing christian about Christmas - it existed like 2000 years before that character from Bible is born according to that book and in Latvian this day is called "Ziemassv tki" - "ziema" = winter, "sv tki" = celebration) and a Happy New Year (if you are really an orthodox christian, why do you count years the new, non-christian way? you should be celebrating New Year on 13th of January like Christ did and the Orthodox church still does, because it uses Julian Calendar more then 420 years after it has been denounced)!

Oh, the fun of touting religious people ... of any religion ... :D Have fun everybody!

Footnote: in October I noted that there have been 11000 spam mails in my GMail spam box at that point (it stores only spam that has arrived in last 30 days). Today I am pleased to say that I can only see 4300 spam mails there today. It could be that GMail has implemented some procedures so that some spam does not even reach that folder, but I shall be very optimistic and say that amount of spam has declined! Maybe spammers are on holidays? If so, I wish they stay there :D

23 December 2005

Davide Viti: GTK DD wanted!

Looking foreward to the G-I meeting scheduled for Jan 18-22 in
Extremadura. Among the attendees we'll have upstream main developers
of the (gtk+) DirectFB project; a unique opportunity to know them,
their plans and to get bugs fixed.

We haven't found yet a (possibly European) DD who can make the perfect
connection between Debian and DirectFB; please get in touch ASAP if
you can come up with a name (my choice was Alastair McKinstry but I
haven't heard anything from him yet and I've been told is very busy)

Edd Dumbill: Paul Graham, XTech and holidays

Just a quick pre-holiday update on the state of XTech 2006. We've had, as usual, some amazing paper submissions so far, so please keep them coming. Don't forget, too, that we're also asking for tutorial submissions. These should be half-day or full-day and, as well as the free conference registration all speakers get, we pay an honorarium to tutors. Deadline is 9 January at the latest. One very exciting bit of news I have is that Paul Graham has agreed to deliver one of the keynote sessions at XTech. I'm very pleased about this, and it follows in the tradition we've established of having interesting and challenging speakers, rather than putting plenary sessions up for sale to sponsors. Amsterdam. 16-19 May 2006. What could be better? As for the holidays, I hope to be spending some time catching up on my open source work, and also carrying on my work with Rails. A busy couple of months at work, combined with no fewer than two bad server hardware issues, has eroded free time considerably. So to anyone waiting on me for something, I do apologise. One final pointer: IBM developerWorks have published the first part of my examination of the future of HTML, focusing on WHATWG. Look out very soon for the second part, looking at the various activities underway at the W3C. I know that my editor at least awaits this eagerly! Thanks to everyone who's read this blog during the year, and for the many interesting and helpful conversations that have come from it. Happy Christmas!

Christian Perrier: DADVSI: see you on Jan 17th

Yesterday evening, the Ministry of Culture has deciced to report the discussion of the DADVSI bill after the reopening of the French Parliament, on January 17th. The debates yesterday have been featuring different representatives from the majority (UMP party) coming to explain that que "global license" amendments, adopted yesterday, are severely critized by the "artists". Indeed, it turns out that the major artists feel themselves in danger with the disposals of the "global license" while artists will a less wider diffusion are mostly OK with it. Who would be surprised? :-) Debates around this will be very hot again on January and we can expect an active lobbying by the "official artists" and the major entertainment companies. About the parts of the bill which were highly criticized by the Free Software community, it seems that all concerns about the copy protection schemes are on their way for being removed. The debates clearly show that the Free Software community has been heard, even by several representatives who are in favor of several other parts of the text. In short, I'm now confident that this bill will in no way be able to lead to an illegal Videolan Client, for instance. The transcription of the debates shows that all representatives are very motivated in trying to limit the influence of the major software companies (Microsoft is explicitely mentioned several times). I'm in no way saying that we shouldn't stop being very careful and stop following what will happen. But, again, all things I have read from the debates shows me that the free software community is heard in France, even by our representatives and even by the current majority parties, which I don't share many things with. I consider this a victory for our community even if "we only won a battle and we now have to win the war".

22 December 2005

Enrico Zini: Custom signals with Ruby-GTK2

How to create a custom signal in Ruby-GTK2 I'm playing with the GTK2 bindings for Ruby. When coding GUI things, I usually like to build my own higher level widgets by subclassing containers and populating them with other widgets. For example, I'm creating an image browser and I like to make an ImageList class that subclasses a Gtk::ScrolledWindow and builds the TreeView inside it:
class ImageList < Gtk::ScrolledWindow
      def initialize
              super
              @files = Gtk::ListStore.new(String, String, Gdk::Pixbuf)
              @fileList = Gtk::TreeView.new(@files)
              renderer = Gtk::CellRendererPixbuf.new
              col = Gtk::TreeViewColumn.new("Thumb", renderer, :pixbuf => 2)
              @fileList.append_column(col)
              renderer = Gtk::CellRendererText.new
              col = Gtk::TreeViewColumn.new("File name", renderer, :text => 1)
              @fileList.append_column(col)
              self.add @fileList
      end
      
      def readDir (root)
              Dir.foreach root do  dir 
                      file = root+'/'+dir
                      if !FileTest.directory?(file) && dir =~ /\.jpe?g$/ && FileTest.readable?(file)
                              thumb = getThumbnail(file)
                              iter = @files.append
                              iter[0] = file
                              iter[1] = dir
                              iter[2] = Gdk::Pixbuf.new thumb
                              File.delete(thumb)
                      end
              end
      end
end
When working like this, I find myself very soon in need of creating custom signals: in this case I want to make a signal that ImageList emits when the user select an image from the TreeView, like this:
fileList.signal_connect("selected") do  filename 
      imageDetails.load(filename)
end
Now, how do I implement that extra 'selected' signal in my ImageList? Ruby documentation is usually very good and easy to find, but this time Google had little to say to me. When the going gets tough, the tough gets to IRC:
enrico> Hi.  http://ruby-gnome2.sourceforge.jp/?News_20031116_1 says that it is
        possible to create custom signals, however I could not find any
        documentation on how to do it.  Anyone has a link or a short explanation?
pterjan> glib/sample in the source IIRC
pterjan>   # define new signal "hoge"
pterjan>   signal_new("hoge",                  # name
pterjan>              GLib::Signal::RUN_FIRST, # flags
pterjan>              nil,                     # accumulator (XXX: not supported yet)
pterjan>              nil,                     # return type (void == nil)
pterjan>              Integer, Integer         # parameter types
pterjan>              )
pterjan> in glib/sample/type-register.rb
enrico> ooh!
enrico> pterjan: thanks!
enrico> I'll blog about it, it might make it easier for others to google this answer
Thanks pterjan, and oh, coolness! So there are nice examples that I was silly enough to miss. Are they included in the Debian packages? Oh, yes! Right in /usr/share/doc/libglib2-ruby/examples/type-register.rb. Here's the ImageList class with the new signal:
class ImageList < Gtk::ScrolledWindow
      type_register
      signal_new("selected",              # name
                 GLib::Signal::RUN_FIRST, # flags
                 nil,                     # accumulator (XXX: not supported yet)
                 nil,                     # return type (void == nil)
                 String                   # parameter types
                 )
      def initialize
              super
              @files = Gtk::ListStore.new(String, String, Gdk::Pixbuf)
              @fileList = Gtk::TreeView.new(@files)
              renderer = Gtk::CellRendererPixbuf.new
              col = Gtk::TreeViewColumn.new("Thumb", renderer, :pixbuf => 2)
              @fileList.append_column(col)
              renderer = Gtk::CellRendererText.new
              col = Gtk::TreeViewColumn.new("File name", renderer, :text => 1)
              @fileList.append_column(col)
              self.add @fileList
              sel = @fileList.selection
              sel.signal_connect("changed") do  sel 
                      if iter = sel.selected
                              puts "Double-clicked row contains name # iter[0] !"
                              self.signal_emit("selected", iter[0])
                      end
              end
      end
      def signal_do_selected(file)
            puts "Selected " + file
            #p caller
      end
      
      def readDir (root)
              Dir.foreach root do  dir 
                      file = root+'/'+dir
                      if !FileTest.directory?(file) && dir =~ /\.jpe?g$/ && FileTest.readable?(file)
                              thumb = getThumbnail(file)
                              iter = @files.append
                              iter[0] = file
                              iter[1] = dir
                              iter[2] = Gdk::Pixbuf.new thumb
                              File.delete(thumb)
                      end
              end
      end
end
And here's the controller code that binds the signal to some effect:
imageList.signal_connect("selected") do  imagelist, filename 
      puts "File # filename  was clicked!"
      image.load(filename)
end
It's quite easy, and (finally!) it does what I want without needing to write thousands of lines of code. YAY! And I finally fulfull my dream of connecting closures instead of callbacks to GTK signals. Yes, I could have done it in Perl. Yes I could have done it in Python. But Ruby is soo cute!

Daniel Stone: [tech/x] x11r7

A big word up to X11R7 being released. The benefits of modularisation are pretty well-documented: distributors can do security updates much more easily, as well as keep better track of upstream sources, users can build drivers easily if need be (and the drivers can get released promptly upon releases of new cards), etc, etc. But for me, the biggest win is that it's finally over: I've been working on it since Jan 2004, and the xlibs and xserver projects basically began in October 2003. I'm really glad that the release didn't, as suggested, get dragged into 2006.

People who deserve a great deal of thanks for this release include, but are absolutely not limited to, Kevin E. Martin, Adam Jackson and Alan Coopersmith as the release cabal, S ren Sandmann Pedersen as a modular partner in crime, Keith Packard and Jim Gettys who basically got modularisation moving, LinuxFund for funding Xizzle and Debrix (the genesis of the modularised X server), Jakub Stachowski and Kristian H gsberg for work on Debrix when I got busy with other commitments (and krh for ongoing modularisation work). I'm sure there are others who I've forgotten here; if you feel you should be on this list, then sorry. The code contributions are too many to mention: Eric Anholt, Ben Herrenschmidt, Billy Biggs, Alan Hourihane, Zack Rusin, Dave Airlie, Aaron Platner, and a cast of thousands.

I've heard the other release parties are rocking along nicely; I plan to make Melbourne's pretty damn good. Cheers!

21 December 2005

Joerg Jaspert: No Job? Good start in a new year. :)

Well, following my resign at my current workplace for end of this year (only about 2 days of work left) I had some not so nice weeks in the past, but now it’s so near to the end that I’m happy that I did it. Ok, I will be without a job from January on, as the stuff I tried all didn’t work out (or maybe will, but much later than expected, but for now I just don’t count on it), but the last few weeks at work did make it clear that I would have resigned even without hoping for them. The only unfortunate thing is that I don’t get any money from the “job center”, but I never had any good experience with them, so well - nothing much lost. I just dont have money. :) Hrm, maybe I should start a “market”? But looking at AJs there isn’t much money out there. :)

20 December 2005

Joerg Jaspert: No Job? Good start in a new year. :)

Well, following my resign at my current workplace for end of this year (only about 2 days of work left) I had some not so nice weeks in the past, but now its so near to the end that I’m happy that I did it. Ok, I will be without a job from January on, as the stuff I tried all didn’t work out (or maybe will, but much later than expected, but for now I just dont count on it), but the last few weeks at work did make it clear that I would have resigned even without hoping for them. The only unfortunate thing is that I dont get any money from the “job center”, but I never had any good experience with them, so well - nothing much lost. I just dont have money. :) Hrm, maybe I should start a “market”? But looking at AJs there isnt much money out there. :)

17 December 2005

John Goerzen: Fire Update

The fire didn't do any significant damage to the building, but it did cut off our power supply because it burned it all up. We have the phone system and a skeleton network back by mid-day Tuesday and a full network back by Wednesday morning. Thursday afternoon, temporary utility power was available which provided enough for the office to return to normal. Our factory was scheduled to shut down for the holidays on Monday. With work, it looks like everything will be back to normal on January 2. So we really will lose only 4 days of production. The company's business interruption insurance will be paying the wages for workers that couldn't work those four days due to fire as well. So, busy week, but it could have been much worse.

14 December 2005

Uwe Hermann: EU adopts Big Brother data retention directive, ignores industry and civil society [update]

Heise (and many other sources) report that the EU parliament has voted for the abysmal data retention directive, simply ignoring objections from the industry and the civil society. The EU has turned into a police state where more than 450 million citizens are treated as criminals by default now! 1984 is a joke compared to this. We're all fucked! Bigtime! Please, someone go out and sue the shit out of the fucking idiots who are responsible for this kindly remind the responsible politicians that this directive is a really bad idea! Update 2005-12-15: OK, so I might have overreacted. My first answer to the accusations would probably be (abusing an unrelated quote from Jonathan McDowell): "I exaggerate for effect". But honestly, while it's not as bad as 1984, I really do think that this law will bring us all a big step nearer to a 1984-type horror scenario. (via netzpolitik.org)

4 December 2005

Antti-Juhani Kaijanaho: On damages

On Jani’s request, a few words on compensation for damages caused by a crime. This mini-essay is part of my Finnish criminal justice series. See the introductory essay for more information and an overview of the Finnish criminal court system. I am not a lawyer, and this is not legal advice.
Read more

Next.

Previous.