Search Results: "sto"

29 December 2005

Steve Kemp: Edinburgh Meetup

KeySigning
Today I went to meet Paul van Tilbur for coffee hot chocolate and exchange key fingerprints. A nice chat on a nice evening. I was pretty sleepy since I’d been forced to get up and leave the house at 10AM this morning to donate blood samples to the local vampires doctors. Getting home afterwards was a bit challenging as there was a fire river - really a torchlit procession + fireworks. Several of the streets on my route home were closed to traffic, so the busses weren’t running. I walked part way home, stopping of en route to buy some DVDs. Once I did manage to get a bus going in the right direction I stupidly creatively managed to get on the wrong one. It immediately changed direction and left me going away from my house! I guess I was more tired than I’d realised. Anyway I got off the bus, and now I’m going to watch part of one of my new films before having an early night.

Decklin Foster: An Explanation Is Requested

In case anyone only reading the tech feed is wondering why those particular bits of sarcasm (I think I should just stop doing that about holy-war topics) floated to the top of my feed this morning, it was a bunch of stupidity on my part and an occasionally annoying feature of PyBlosxom.

Daniel Stone: [tech] qt: not a gui toolkit

Decklin wonders why Qt has a SQL plugin. The answer is because it's a full development environment (think: MFC), not a GUI toolkit (think: GTK). Hope that helps.

(Last I checked, it also had a full XML parser, full string and array/list handling, socket handling, file handling, etc, etc, ad nauseum.)

Decklin Foster: Ruby Love

Matthew Palmer writes about the goodness that is Ruby. I, too, have just recently been won over, and am stumbling along with the online docs. In fact, this can be done in one line:
STDIN.readlines.sort_by   rand  .each    line  puts line  
But this is slow, as sort_by needs to be at least O(n lg n), and probably not perfectly random (I suppose you could do rand <=> 0.5, but that s not perfect either). What to do? We can implement a proper Fisher-Yates shuffle in a function, but that takes a couple lines. Can we still perform the actual read-and-print in one? Yesterday, why wrote something that really made me stop and go wow . We can attack the random sort problem in a similar (if more boring, as there are no lambdas to pass in) way, by simply adding another method to Array:
class Array
    def swap!(a, b)
        self[a], self[b] = self[b], self[a]
        self
    end
    def shuffle!
        each_index do  i 
            j = i + rand(length - i)
            swap!(i, j)
        end
        self
    end
end
STDIN.readlines.shuffle!.each    line  puts line  
Now that is cool.

Daniel Stone: [tech/x] not to be left out

Since all the cool kids are doing it:
daniels@ephemera:~/x/xorg/xserver% diff -urN xorg ,.xkb /xkb diffstat tail -1
 27 files changed, 1437 insertions(+), 7439 deletions(-)


Hacking on XKB as recreation. Whoohoo.

(Oh yeah, and that removal of 6000 lines of code actually adds some really cool new features to the server, including some which make it significantly more complex -- XML parsing, i18n, you name it. How's that?)

Joachim Breitner: Tad Williams' Otherland - Part II

Just before Christmas, I finished reading the second volume of Tad Williams’ “Otherland” quadrilogy, “The river of blue fire”. Most of what I said about the first part still holds, especially what I said about the similarty to “games” like Second World, and how Williams forsees where stuff like Telepresence leads us.

By now, some of the story lines have crossed or merged, others are still independant and a few new ones have begun. The largest part of this volume consists of helplessly stumbling through virtual worlds. By doing so, Williams has all freedoms to create strange and interesting settings. At quite a few spots I thought: Wow, that would make a great movie szene. I hope some visually gifted will someday make a (or better: a few) Otherland movies.A few of these worlds are perverted versions of famous literature, notably H.G. Well’s “War of the Worlds” and “The wizard of Oz”. Oddly, I have only heard of these stories before, but just about the time I read about them in Otherland, they somehow re-appeared somewhere around me: The recent “War of the Worlds” movie (which I actually haven’t seen) and the old “Wizard of Oz” movie being shown at a small local theater in Karlsruhe.I’m looking forward to reading the next volume, but I have to wait for my brother to finish it, so I’ll probably squeeze another book in between.

28 December 2005

Andrew Pollock: [life] Back online

Our DSL modem finally arrived today. Well, it kind of involved accosting the UPS guy in an adjacent street whilst walking back home from 7-Eleven acquiring ice cream, but hey, we got the thing in the end. I went with Sonic on advice from guys from work, and I have to say I've been totally impressed with their customer service to date. Today I got an email from them because I'd reached my activation date, but they hadn't seen any ADSL traffic from me yet, and they just wanted to check that everything was okay. We had a free dialup account for use while we waited for the ADSL to be provisioned (and the delay was with receiving the modem over the holiday season, not the ADSL provisioning itself). Also, their account management website allows an impressive amount of self-control over aspects such as spam filtering and firewalling. I'm a very satisfied customer so far.

Jonathan McDowell: Linux WMDs

So, the delightful Kathy bought me a Marks & Spencer USB Missile Launcher (unfortunately out of stock at present or I'd have linked directly to it. Try searching on eBay / Google to see what I mean.) Problem. WinXP/2k only drivers. That's no fun. Plugged it in to my laptop (as you do). dmesg reports:
input: Tenx Nonstandard Devic as /class/input/input6
input: USB HID v1.10 Device [Tenx Nonstandard Devic] on usb-0000:00:1d.1-2
input: Tenx Nonstandard Devic as /class/input/input7
input: USB HID v1.10 Device [Tenx Nonstandard Devic] on usb-0000:00:1d.1-2
lsusb says:
Bus 002 Device 004: ID 1130:0202 Tenx Technology, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1130 Tenx Technology, Inc.
  idProduct          0x0202 
  bcdDevice            1.00
  iManufacturer           0 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      43
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      23
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
The Windows software appears to consist of TenxHID.dll (24k) and Missile_Launcher.exe (908k). TenxHID only exports DeviceIni, ReadBuffer and WriteBuffer AFAICT. Which implies the higher level stuff is done in the exe to me. I think it's a job for USBSnoop and a Windows box, but that'll have to wait for a few days until I get back to a WinXP box I can use to fiddle. Unless someone else manages to write a driver in the meantime. :)

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.

Daniel Stone: [tech/x] sgi ftw

PERHAPS BONG HITS WILL FIX MY KEYBOARD EXTENSION

Eric Dorland: contrary to popular opinion, we do actually fix bugs

A recent post by Ingo Juergensmann lamenting m68k not making the cut in this round of architecture qualifications. While it is a shame I think, I don't think it's necessarily the end of the world and his complaint that developers will now stop fixing bugs is crazy. Just because they're suddenly not release critical doesn't mean (good) maintainers will be unwilling to fix them. Most architecture bugs are toolchain bugs (ie not the package maintainer's fault), general types of architecture bugs (eg endianess, int size) that affect more than one architecture and tend to get fixed quickly and easily and really freaking hard problems that most package maintainers don't have the skill to fix on their own (eg #343687, help!). But if someone submits a bug that's trivial to fix, or gives me a patch, that bug will get fixed. I don't like bugs in my packages and probably most other developers don't either.

26 December 2005

Christine Spang: Aftermath!

My parents are buying me a professional French horn! (The one I use currently is owned by the school.) Like this. Also, I think I have six months worth of new books to read, combining Christmas with my birthday last month. <boggle> Plus, I have one gift certificate to Borders and one to Barnes and Noble (from birthday). And the special edition DVD of Monty Python and the Holy Grail. Thank you, I felt the need to share that with the world.

Adam Rosi-Kessel: Verizon Does Not Have Enough Phone Lines

I’ve complained about Verizon twice before, and still haven’t gotten around to my omnibus Verizon entry. The latest issue is that I cancelled my Verizon DSL over two months ago, having switched to Speakeasy, which, although much more expensive, provides so much better service (both by way of connectivity/throughput and customer support) that it’s actually worth it. I called Verizon at the time, and asked them to cancel the DSL, which they said they would do immediately. The next month, DSL was still on my bill, but I figured it was probably a billing cycle issue. The following month, the DSL charges were still on my bill, so I called to find out what happened. They had no record at all of my prior request to cancel service, but said they would happily cancel it now and refund both months. I asked them if there should have been a paper trail for the earlier request, and they said there wouldn’t be. I asked them if I could have some sort of paper or email acknowledgment of my current request, and the representative insisted it wasn’t necessary (and apparently just “not done.”). Now again this month, I still have the charge on my bill, and the last two months have not been refunded. When I try to call today, however, after maneuvering through several menus to get to a human, I am informed that not only are all representatives currently serving other customers, but there are no available phone lines for holding, and I should call back later. Click. How is it that this country’s largest phone company doesn’t have enough phone lines? (I suppose another question is how is it that they manage to retain so many customers. But that’s a question for another day.) (Any Verizon folks out there who could comment on this entry and provide some illumination?)

Julien Danjou: I am a "not so bad" maintainer :)

I just fixed some RC bugs in my packages to get my ass not kicked.
I uploaded a small update for apt-build. I tried to use it, and it seems to be totally dead. Trying to build blackbox (my reference test, this is historical), make died with a segfault, and at the end, apt-build died with a segfaults. Yee-pee ! And I don't know why, this is weird. I also asked the removal of torsmo (superseded by conky) and orphaned manderlbot, since I have no skill in Erlang. I also find out why I could not fix the f****** FTBFS on svnmailer. And it was because the -I.svn option of dpkg-buildpackage I used, skipped the svnmailer.conf.example file, obviously... Raaahhh, bad shell alias configuration => headache !

Andrew Pollock: [life] First Christmas abroad

(I love the term "abroad". It sounds so English.) Well that happened. We had Michael and another Andrew from work who started two weeks before us and his wife come over for what Michael was calling "linner" (the inverse of "brunch"). Sarah cooked up an absolute storm. We had roast turkey, roast potato, pumpkin and sweet potato, steamed broccoli, cauliflower and asparagus, and Yorkshire puddings. We had so many types of gravy we completely forgot about the cranberry sauce. Michael managed to track down a plum pudding (this country seems obsessed with pumpkin pie) and we had something approximating custard (something else this country doesn't seem to do) with it. A very good feast was had by all, and six hours later we were done. Back to unpacking boxes. Brought to you by some kind neighbour's open access point.

Matthew Palmer: The Documentation Conundrum

Several times over the last few months, I've had a common experience: I write documentation (gasp!), and then nobody reads the damn stuff. This offends me primarily because (like most geeks) I despise writing documentation. However, I write it because I despise having to explain myself a dozen times over. Better to write it down, and then I never have to worry about it ever again. Then, after I've taken the effort to actually document something, nobody reads the stuff, and they just ask me directly -- and then get offended when I grunt "RTFM" at them and go back to my code. But you start to think: "why am I wasting my time reading these docs, when I could just save myself a few hours of my life and answer their questions as they appear?" Now that I've gotten into the documentation habit, lack of documentation elsewhere also offends me. I want to know something, so I go looking for some form of written expression related to the topic at hand (Google Is Your Friend) and come up completely dry. For free software, I can more-or-less live with it -- I follow TechnoYoda's advice, and Read The Source, Luke (and then document it). For other stuff, though (lock-in software, social processes) I've got no hope. I'm reduced to pouting in IRC channels until someone tells me what I need to know (and then I document it). But you start to think: "why do I waste my time looking for documentation, when it never exists anyway, and I could save myself some time by just asking directly in IRC or on a mailing list?" As we all know, there are two documentation-related universal truths in IT:
  1. Nobody ever writes documentation.
  2. Nobody ever reads documentation.
I got to thinking -- is there a causal relationship here somewhere? Did people write documentation in the olden days, but gave up because nobody ever read it, or did people originally always read the manuals, but stopped looking for documentation because it never existed (or when it did, it was content-free and useless)? Or did both of these truths appear independently, or are they both aspects of a single truth: "Everybody Hates Documentation"?

25 December 2005

Enrico Zini: drezza - Get a picture collection ready for publishing

I've been having three wishes since some time:
  1. Lean Ruby
  2. Find an easy and fast way to find digital camera shoots that need an invocation of exiftran, and invoke it
  3. Find a comfy way to code user interfaces. In particular, I've always dreamed of sticking closures into event handlers.
I've recently managed to fulfill these three wishes in a single shot by coding dr zza, a minimal picture browser with quick links to invoke exiftran. If anyone is wondering, "dr zza" means "make it straight" in Bolognese. It is simple, it is easy, it does all I need: you invoke it and it will show all the pictures in the current directory. If you invoke it with a directory as commandline argument, it will show all the pictures in that directory. It will display the pictures in a list together with their thumbnail. The thumbnail is taken from the EXIF thumbnail. If a JPEG file has no EXIF thumbnail, it invokes exiftran to generate it. Clicking on an image in the list shows it in detail. In the toolbar there are buttons to rotate the image with exiftran, which uses a lossless transform and respects exif data. The tool comes in a single file, no need to install. The source code is clean and commented, and is also a nice demo of various Ruby/GTK2 and Ruby/Gnome2 features and programming tricks, including:
  • subclassing GTK widgets
  • creating custom signals
  • reacting to widget resize
  • processing GTK events during long computations
  • updating the Gnome status bar
  • embedding pixmaps in the source code
  • using custom pixmaps for the toolbar
You can get it from here. If you play with it, let me know and I'll keep it up to date.

Enrico Zini: Including inline images in Ruby GTK2

Including inline images in Ruby GTK2 I'm making a simple application and I'd like to keep it self-contained into a single file; however, I'd like to use some custom icons in it. I tried storing a pixbuf in a string:
ICON = <<EOT
/* XPM */
[...]
 ;
EOT
icon = Gdk::Pixbuf.new ICON
but it tried to open a file called "/* XPM */\n....". I tried with an array:
icon = Gdk::Pixbuf.new ICON.split("\n")
But I kept getting GdkPixbuf-WARNING **:Inline XPM data is broken: Invalid XPM header. Note that trying to write that data to a file and loading the file, worked. This worked:
icon = Gdk::Pixbuf.new "pippo.xpm"
This didn't:
tmp = IO.readlines "pippo.xpm"
icon = Gdk::Pixbuf.new tmp
I finally managed using csource:
  1. gdk-pixbuf-csource --raw --name=antani image.png > /tmp/antani

  2. insert /tmp/antani in the Ruby source code, strip away the comments, concat the various strings:

    ICON = ""+
      "GdkP"+
      "\0\0\4\30"+
      "\1\1\0\2"+
      "\0\0\0@"+
      "\0\0\0\20"+
      "\0\0\0\20"+
      "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"+
    [...]
    
  3. load the data with icon = Gdk::Pixbuf.new ICON.unpack("C*"), true

A possible improvement could be using --rle in gdk-pixbuf-csource: raw is good for avoiding to copy the image data, but I don't feel comfortable in doing it since the image data is an integer array temporarily generated by unpack. As usual, if you know of better ways please send me a mail and I'll update the blog entry.

24 December 2005

Adam Heath: Merry ChristmasHappy Holidays

Artist: Mr. Garrison Lyrics
Song: Merry Fucking Christmas Lyrics
Mr. Garrison: I heard there is no Christmas
In the silly Middle East
No trees, no snow, no Santa Claus
They have different religious beliefs They believe in Muhammad
And not in our holiday
And so every December
I go to the Middle East and say… “Hey there Mr. Muslim
Merry fucking Christmas
Put down that book the Koran
And hear some holiday wishes. In case you haven’t noticed
It’s Jesus’s birthday.
So get off your heathen Muslim ass
and fucking celebrate. There is no holiday season in India I’ve heard
They don’t hang up their stockings
And that is just absurd! They’ve never read a Christmas story.
They don’t know what Rudolph is about
And that is why in December
I’ll go to India and shout… Hey there Mr. Hinduist
Merry fucking Christmas
Drink eggnog and eat some beef
And pass it to the missus. In case you haven’t noticed
It’s Jesus’s birthday
So get off your heathen Hindu ass
and fucking celebrate! Now I heard that in Japan
Everyone just lives in sin
They pray to several gods
And put needles in their skin. On December 25th
All they do is eat a cake
And that is why I go to Japan
And walk around and say… Hey there Mr. Shintoist
Merry fucking Christmas
God is going to kick your ass
You infidelic pagan scum. In case you haven’t noticed
There’s festive things to do
So lets all rejoice for Jesus
And Merry fucking Christmas to you. On Christmas day I travel round the world and say,
Taoists, Krishnas, Buddhists, and all you atheists too,
Merry Fucking Christmas, To You! (Clapping) Thank you Mr. hat

Erich Schubert: Merry Christmas

... and stop that annoying "Xmas" thing. Oh, and I hate all the red santa claus (shouldn't he be caled X-man?) stuff everywhere. Christmas used to be something very different than it is now, you know. Merry christmas, and enjoy what used to be the 'quiet time' of the year: Electronic christmas greeting card

Next.

Previous.