Search Results: "tim"

22 January 2007

John Goerzen: We're Home

We had some wonderful weather yesterday. I've always said that I like snow. It can completely change the landscape in an instant. And it looks so beautiful.

Yesterday we had a nice snowstorm all day. Large, wet flakes. It was the most snow we've had at once in a few years right around here. It was beautiful just like always. It started early in the morning before we got up and continued until almost midnight. This morning, I went out into a big open area and measured the snow -- 7.5".

There are two problems with snow. One is that it's difficult to get anywhere. The other is that it blows into everything.

And guess what -- yesterday was our moving day.

Fortunately, on Friday evening, most of the furniture that needed to go in a pickup did. But we still had to wrap some things in plastic on Saturday. We didn't get everything moved that we wanted to. Between icy ground outside, travel at less than half the usual speed on the roads, and snow blowing everywhere, things were slow. But that's fine; we'll get the rest later.

This was the scene during the move:



Not long after that picture was taken, it was announced that church was canceled today. We kept moving things though.

Although we didn't get everything moved that we had hoped to, we got enough moved to consider ourselves moved in. We have one fully-functional bathroom. Jacob's bedroom and our bedroom are done. The kitchen will get its floor Monday and we'll get appliances Thursday. The only big thing left is guttering, plus there are still a few doorknobs and light fixtures pending. But it was enough that the three of us spent our first night here last night!

We're very appreciative of the help we got from family & friends, who helped us move and brought us food (since we don't have a fridge for the next few days).

Jacob doesn't like change very much (he cried when he noticed that some clutter in our apartment living room was gone). But he likes to learn about his environment. So today, he woke up at 6AM (and got us up at 6AM), spent an hour happily looking around, then promptly started fussing. That's how the day has been for him -- interest and crying.

At about 7:30AM, we were shocked to see a road maintainer plowing our road. Why shocked? Well, nobody else lives on this road for a couple of miles. It's not exactly a popular spot. And it hadn't been in all that great of shape before winter.

Later in the day, I went out to take some pictures. Here's one of our driveway:



Doesn't it look fun?

I decided to see if we could get out. The short answer is yes. The long answer is "yes, if you have patience." After rocking the car back and forth to get it turned around in the yard, I was able to keep up enough speed to get to the road and back. So Terah and I had lunch with my parents, then went into town to get another carload of stuff. There were children out playing everywhere, and well-worn sledding paths down hillsides. Too bad Jacob isn't old enough to enjoy this!

It was last April when we first started thinking about this. By June we had bought the property out here, and in October we moved to the apartment. It's been a long time feeling like we were living somewhere temporarily.

And, right now, it is great to be home.

21 January 2007

Sven Mueller: ATmega16 controller and DOG-M LCD module - can t get it to work right

Well, today I worked on a new little hardware project. It’s supposed to become open source (both schematics/PCB layout and software), but I want to work on it together with a close friend more or less exclusively for now. Anyway what it is going to become is a small controller board with a 2×16 character LCD module (DOG-M162 from lcd-module.de, an Atmel ATmega16, a small serial EEPROM, an IR transceiver, a USB port (featured by an FTDI USB2serial chip) and two relais outputs. The software will use the board as an external controller for Canon EOS* cameras (one output controlling the autofocus trigger, one the shutter trigger) with several “programs” which take a photo every X seconds or opens the shutter for a given amount of time (up to several minutes for night time photos). Anyway, today we worked on the first prototype board and tried to get the LCD to work. First we tried a 3.3V setup for the board - our initial goal - and several software versions later, we used an oscilator and found rather disgusting signal edges, so we switched to 5V (all components used were 5V and 3.3V capable, except that the display needed a slightly different circuit with a capacitor replaced by bare wire and another removed). Now the signal edges looked fine and we tripple checked that all connections were as expected. But even after trying two different initialization routines from the web and writing an own one from the controller specs, we were not successfull. This is quite frustrating, so if anyone would be able to help here, please leave a comment or contact me by email.

Steve McIntyre: Why do you work on Debian?

That's a question I've been asked (by myself and others) lots of times over the years I've been involved. Especially over the last few months while I've been wandering around Europe on the BSP and party trail, I've also been asking other people to explain their motivations too. For myself, I must admit that I'm selfish: Obviously, there's also the fun of hacking on a variety of Free software programs. But that's something I could do on my own, or within a multitude of projects out there. But in very few of those would I be able to materially affect how I use my own computers every day. So, my question for the other Debian people: what gets you working on Debian?

Enrico Zini: avoid-flamewars

Fourteen ways in which you can avoid starting a flame war on a Debian mailing list On an IRC brainstorming on what talk I should give at FOSDEM, liw suggested:
"Fourteen ways in which you can avoid starting a flame war on a Debian mailing list".
In the end I went for something more technical, but I've never stopped thinking about liw's challenge. I ended up writing talk notes about such a potential talk. Here they are. The classics The radicals The radicals, applied selectively The From tricks The naggers The conscience ticklers The subtle The subtle, 1 week later

Christian Perrier: 99,51%

This is the current translation ratio for French in unstable, after 4 days of "blitz l10n NMU". Many other languages did benefit from this as well, as shown here (for instance, Czech went over 90% for the first time as far as I can tell). All remaining packages with incomplete or missing French translations have prepared NMUs and we can expect reaching the Grail in the next week. If I have enough courage, I'll probably continue this blitz NMU campaign to kill as many debconf l10n bugs as possible. Of course, if maintainers do it themselves as sugegsted by Javier, it will be quicker.

Andreas Metzler: subpixel rendering

Following up on my previous entry there is still no snow. On the bright side it looks like I have managed to find readable settings for the new TFT. XP looked ok after enabling Cleartype however I had some problems on the Debian side. I have stepped through dpkg-reconfigure fontconfig-config a dozen times without much luck. Removing -dpi 100 from /etc/X11/xinit/xserverrc to let the Xserver calculate the real resolution by using info from DDC (i.e. 99 dpi) finally seems to have improved things.

Enrico Zini: python-module-commands

Python "commands" module The standard python library has a module called commands with three nice simple functions to run a command and get its output and its status. The first one is called commands.getstatusoutput(cmd), it runs the given command and returns its exit status and its output. The second one is called commands.getoutput(cmd), it runs the given command and returns its output, ignoring the exit status. The third one is called commands.getstatus(cmd), it runs the given command and returns its exit status, ignoring the output. Actually, no. The third one is called getstatus(file), it runs the command ls -ld file (with proper shell escaping) and returns its output. Seriously.
>>> commands.getstatusoutput("echo ciao")
(0, 'ciao')
>>> commands.getoutput("echo ciao")
'ciao'
>>> commands.getstatus("echo ciao")
'ls: echo ciao: No such file or directory'
>>> commands.getstatus("/bin/echo")
'-rwxr-xr-x 1 root root 19304 2006-08-31 14:25 /bin/echo'
Every time I think of this getstatus, I quickly convince myself that I misread the documentation. Then I rerun the example above.

Andrew Pollock: [debian] Whoops, it seems I dropped the ball

Hi Christian, It seems I haven't uploaded a new version of the argus-server package that I prepared back in December some time, which addresses the l10n bugs you speak of. I'll rebuild it today and upload it. Sorry about that. Love, Andrew

Adam Rosi-Kessel: Near-Death Experiences

Via the Frontal Cortex (my favorite recently and accidentally discovered blog1), on the cultural relativity of near-death experiences:
Many Africans interpret near-death experiences as somewhat evil, a bad omen or a sign that they were somehow “bewitched.” Among 400 Japanese NDErs that participated in a study, many reported seeing long, dark rivers and beautiful flowers, two common symbols that frequently appear as images in Japanese art. East Indians sometimes see Heaven as a giant bureaucracy, and frequently report being sent back because of clerical errors. Americans and Brits often say they are sent back for love or in order to perform a job or task. Natives of Micronesia often visualize Heaven as a large, brightly lit American city with loud, noisy cars and tall buildings.
I’m not sure what’s worse — returning from death to rectify the inadvertent omission of a certificate of service on a motion for leave to file a reply brief in excess of the ten-page limit (maybe I should have picked a different profession) or getting additional time on Earth because the powers-that-be failed to complete a 27B/6. I really prefer the beautiful flowers, but it’s probably too late for that. 1Is there a term of art for such blogs? E.g., a blog discovered from an unrelated Google search that turns out to be worth adding to the blogroll.

Jan Wagner: Music and Debian

Today I found a way to combine consuming my favorite Radio Station and using my favorite System Distribution.

On working hours and most of the time at home I’m listening to Frisky Radio, founded by Faisal Sultan. But I’m missing it the 3 hours per day, when I’m traveling between work and home town. I did realize, Frisky Radios provides podcasts, but only one per week and the download history isn’t such long. Some days later, I thought stream ripping could be nice. So I did run:
$ apt-cache search stream ripper
goobox - CD player and ripper for GNOME
kstreamripper - kde frontend for streamripper
streamripper - download online streams into audio files
tunapie - Lists audio and video streams from Shoutcast and Icecast
My decision was to use streamripper in combination with screen.
Streamripper can provide a relay server, where you can listen to and save bandwidth and decide, what should happen with already existing tracks. This all seems very nice and I’ll see how lovely it will work together with my player, which name I will not mention in this context. ,

Steve Kemp: Turn another page at the animal bar

When I moved to Edinburgh and lived in a student flat we decided we needed pets. Gerbils were chosen as they were small, cute, and easy to hide. (Because we weren’t actually allowed to keep pets ..) After a few years of gerbils we graduated to rats. The king of the rodent world. Rats rock: They are small, cute, agile, incredibly soft, very non-bity and highly intelligent. Time passed and I moved out to live alone and then started to move up the food-chain with my own pet cat. (Tigger). Badnesstm happened, and Tigger was “replaced” by Six. I got hit with a year of illness, mostly, and so I decided to do the decent thing and return Six to somewhere where he could be loved and get the attention he deserved. Since then I’ve been petless, and basically afraid to commit to looking after a cat/dog for the 10+ years that they would (hopefully) live. I want to have a cat. I would love to own a Dog, and after talking about things in a circular fashion for many weeks with my girlfriend we decided to compromise. So … tada .. I have rats again. Two beautiful females. Here is a picture of one of them upon my girl’s shoulder.


Click to see full-size. So two rats, Basil for me, and Moptop for Meg. All being well they will live for the next couple of years, and then we might return to the bigger pets.

Daniel Burrows: How to Breathe, Functionally (part 2)

In a previous post, I pointed out some ways that you can acheive the "compute this, now save it and compute this, ..." style of coding in a functional language such as Haskell without going mad. This is a continuation of that post.

There's one other purely syntactic feature of Haskell that I rather like for readability: Haskell lets you define variables after you use them.


GoToTheNextTrickyBit someVal
where someVal = DoThisAndThisAndThat...


Although it isn't always appropriate to do this, there are times when I find it extremely intuitive to define my variables after they're used. For instance, to take a "practical" example, compare


mailTo customer =
let customerName = getCustomerName customer
customerAddr = getCustomerAddr customer
in
makeMailingTo customerName customerAddr


with


mailTo customer = makeMailingTo customerName customerAddr
where
customerName = getCustomerName customer
customerAddr = getCustomerAddr customer


I don't know about anyone else, but when I read the first definition I mentally go "huh. Why are we extracting the customer name?", then skip down to where the name gets used, and finally re-parse the name in that context. The "where" form lets me write the code in the same order that I would read it, giving the code a natural flow. It's very important, of course, to keep the number of auxiliary definitions small; otherwise you leave too many "open questions" for the reader of your code to carry around as she works her way down to the definitions.

But it isn't all roses at the low syntactic level. IMO, the biggest practical problem with writing Haskell code is the syntactically significant indentation.

Python, of course, also has significant whitespace -- but it works mainly because it's extremely simple. Any line ending in a ":" introduces a new block, and statements within a block have the same amount of indentation. In contrast, Haskell's rule...well, just read that link above. You can write code that has the same meaning under any indentation, but it's not idiomatic to do so -- and worse, since the statement terminators are not obligatory, a missed terminator might work fine, might change the meaning of your code, or might fail to compile in an obscure way.

A side effect of the complicated indentation rules in Haskell is that the Emacs Haskell mode doesn't work very well at indenting my code. It usually chooses an indentation that I don't want, and often one that doesn't even compile. I'm sure Emacs could do better, but I would be willing to live with a little more punctuation if it meant that the code was easier for programming tools to process correctly. Functional coding advocates assert, correctly IMO, that side-effects are problematic because even smart programmers will write more bugs in their presence. I think the same logic should apply to syntax: making the language harder for humans and machines to parse has negative overall effects, even if it is possible with sufficient effort to parse it correctly.

I think that conceptually, Haskell is a great language -- the problems I see with it are issues of syntax, tool support, libraries and speed (laziness has a high price). Oh, and also the fact that, as with most programming languages that are pleasant to use, you can't get a real paying job writing in it unless you have a PhD. :-(

Daniel Burrows: How to Breathe, Functionally (part 1)

David Welton writes that the problem with functional languages is that you don't get to mentally "catch your breath" between computations; piling function invocations on function invocations makes it hard to understand what's actually being calculated. He has an amusing summary of how functional code can become unreadable:


Do this with the result of this with what this produces when given this input that is derived from this function which takes the result of this other thing after calculating the result of something that is derived from the output of a function that ...


Indeed, I've seen functional code like this (much of it written by myself). Here's a particular gem:


f splitPoints = map fst $ tail $ scanl (flip ($) . snd) ([], toSplit) $
map splitAt splitPoints


I wrote this code a year ago, and I don't know what it does! It's hard to read and hard to understand. So, however, is imperative code that says


Add 5 to A, now if B is not zero we jump to where we subtract one from B and if C is less than 3 we add 4 to C otherwise we divide C by 2 and then add it to A, then we ...


The reason both pieces of pseudocode are hard to understand is that they don't use the abstraction features built into the language. Good imperative code uses meaningful variable names, uses the structured-programming primitives the language provides, and abstracts complex operations into functions.

My rule of thumb (which is, heh, not always religiously followed) is that a piece of program structure that does more than about 3-6 things is probably too complicated; it seems like that's about as much local context as I can hold in my head comfortably (and the number is more 3 than 6 these days, if you get my drift). As David puts it,


If you'll bear with a poor comparison, sometimes programming is like a song. You do the tricky section, then you go back to an easier section and catch your breath for a bit.


The problem seems to be that people trained on imperative languages, when they're tossed into the ocean of functional coding, can't find the guideposts and landmarks that would help them impose some structure on the water. Should I put this complicated expression inside a "let", or break it out into another function? When do I use a higher-order function to unify two dissimilar pieces of code? Should I write this code in terms of higher-order library functions or directly? It's easy to wander off down a chain of nested invocations of anonymous higher-order functions, or composed partially applied library functions, just "because you can" and end up forgetting what you were trying to do in the first place.

Luckily, some of the basic rules of keeping your code readable remain more or less the same: assign intermediate results to variables with meaningful names, and abstract complicated operations into separate functions. To tackle David's example:


You get sections with DoThisAndThisAndThatWithTheResultsOfSelectThisFromTableXYZ that you have to slow down to think through.

...

GoToTheNextTrickyBit where ManyThingsHappen.

All in all, you wind up with a sort of ebb and flow that works out pretty well if you're in tune with the code being written, going from intense calculations, to a line or two where you do no more than store things in a variable, take a breather, and prepare for the next important stanza.


The way to "take a breath" in a functional language is generally to assign an intermediate result to a variable, or to extract a complicated operation into a function and give it a meaningful name. One Haskell approximation to David's example is


do DoThis
AndThis
results - SelectThisFromTableXYZ
someVal - AndThat results
GoToTheNextTrickyBit someval


If you're writing pure functional code, you might write


let
results = SelectThisFromTableXYZ
someVal = AndThat results
in
GoToTheNextTrickyBit someVal


Of course, this will become unreadable if you write a huge complicated nested "let" expression in place of "AndThat". For a truly dreadful example of this kind of coding, check out the Gnucash Scheme code that generates the "Cash Flow" report (warning: read this in short bursts, or you WILL go blind). This is exactly analogous to writing too many nested loops and conditionals in imperative code, and the fix is the same: find logically distinct bits of code and extract them into separate functions.

I have a few more thoughts, but this post is getting too long, so I'll inflict them on the world in another post. The rule that short things are easier to understand applies to blog posts as well as code. :-)

Daniel Burrows: Via C7: it goes fast AND slow!

The low-powered system I assembled recently is based on a Via Epia board and a C7 CPU. I spent quite a bit of time when I was setting it up trying to get the C7's speed stepping to work. I loaded a number of cpufreq modules without luck; crawling around on the Web only led me to discussions about how the C7 couldn't be speed-stepped in Linux and maybe the centrino cpufreq driver would work.

Well, yesterday I randomly searched again -- and poof! There was a discussion from early January about how maybe the ACPI cpufreq driver would work. I loaded it, set up powernowd, and was rewarded with


daniel@jeeves:~$ cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 10
model name : VIA Esther processor 1200MHz
stepping : 9
cpu MHz : 400.000


Sweet. Now all I need is for the Debian kernel folks to package a version with a vt1211 lmsensors driver so I can shut down or slow the fans, and I'll be all set. (I could probably hack it in myself, but according to what I've read on the Web, the next kernel release will have a working driver)

[UPDATE: I disabled cpufreq after only a day or so, because Linux got horribly crashy with CPU scaling turned on. Hopefully the kernel will be fixed sometime in the future :-/ ]

20 January 2007

Erich Schubert: The end of the world 2.0 is near.

I'm convinced the Web 2.0 bubble will impact soon. Granted, some will survive, some will struggle - but some will just blow up. Time to sell for these. There are several reasons why I believe this will happen "soon": Many people have been keeping an hungry eye on YouTube, Rapidshare and others. It's just a matter of time until some of these predators goes for the kill. My predictions for the post-web2.0-bubble time:

Julien Blache: Once again, XFS saves the day

The server hosting this blog just suffered what can only be described as catastrophic hardware failure, thanks to the crap that are Maxtor hard drives, Dell CERC 1.5 RAID controllers and the Linux driver for those (aacraid). So, the machine got shut down for a moment on thursday night, just the time to move the rack around in the datacenter, and one of the disks did not come back in one piece. But it did come back online after a reboot, prompting an array rebuild by the controller which took 12.5 hours for 250 GB (RAID 1). And the drive failed again 10 minutes after the rebuild was completed, confusing both the controller and the driver. At that point I could still log into the machine, but any command would trigger nice I/O errors all over the place. Fortunately, the FS got shut down by XFS automatically on I/O errors and I haven’t lost a single bit of data. The machine came back just fine with the faulty drive removed. And you thought a RAID controller would help in this case. Obviously this one doesn’t. I need to mention that we’ve observed this behaviour on another machine before this incident, we have another machine suffering from a faulty drive in just the same way, so this isn’t an isolated case and it’s reproducible.

Evan Prodromou: 30 Niv se CCXV

I just got the Free Your Phone announcement from the OpenMoKo announce list. Looks like they'll have preview versions of the new Linux-based, Open Source phone platform available Feb 11, generally available March 11, and ready for public distribution September 11 (!). FIC is under a lot of pressure to make this product the Open Source answer to the iPhone, and I think they have a very good story. At this point I think the success of the platform is going to depend on three things. First, FIC's execution in getting developer versions out the door and ready to use. If the OpenMoKo platform stays vapourware for much past the first part of 2007, it won't be able to capitalize on the iPhone hype and current excitement. Second, FIC is going to have to resist the temptation to hold back parts of the OS or the application stack as proprietary software. Credibility in the Free Software fanatic community is going to be key for its first wave of usage, and "free enough" isn't going to be good enough for this product. A good cautionary case would be Trolltech's Qtopia. Trolltech's reputation for holding back parts of its stack has probably been the main reason this platform hasn't been taken up by Linux aficionados. Third, and perhaps most importantly, support from more hardware vendors. "Open Source" is sometimes a synonym for "second source" -- it gives customers and developers the security of knowing that the success of a platform is not tied to the success of a particular company. OpenMoKo can take the Free Software niche in the smartphone OS market -- making a place among Symbian, Pocket PC, and Palm OS that appeals to hackers. I think if they can get the hackers, they can get the kind of UI quality and application availability that will get the rest of the population interested. Firefox is an example of an Open Source project that has done this recently. All in all, I think FIC has a lot of challenges ahead -- mostly internal. But I also think that if this is played right, OpenMoKo or something like it could change smartphones the way Linux and the *BSD family have changed servers. tags:

Hillary's In News bulletin: Hillary's In. She's in to win. She's in to win the Big Spin. She's in up to her chin. She's in and so is her twin. She's in with a grin and a tin of aspirin. Hillary's in by the skin of her shin. She's in with the thin fin of an elfin dolphin. So it begins. tags:

MJ Ray: Tipping point

Cutting Free: An interview with gNewSense founders Paul O'Malley and Brian Brazil
"if your hardware reacts badly to gNewSense, is it time for you to examine what the vendor is doing to you? If they offer some piece of hardware in exchange for your freedom and then they don't trust you to run that hardware correctly. They don't trust you, why should you trust them? As you don't have the specifications could it be the case that they are pretending that commodity is really something luxurious? How can you know that?" [note: bad site for the visually-impaired, bad colours and a graphical eyetest for comments]
Chip and SPIN! Examining the technology behind the "Chip and PIN" initiative...
"The purpose of this site is not to provide totally balanced comment on the move, but to give proper airing to the drawbacks. It's a always a tough job for onlookers to assess the truth behind anything controversial, but the greater the quantity of information, and the greater the variety of sources the better."
The Huffington Post: James Love: WIPO and the global consolidation of rights in audiovisual works
"This makes it more difficult, risky and expensive to copy, republish, remix or reuse works, for any purpose. This is a bad idea in general, but an insane idea at the very moment when we are witnessing such an explosion of new ways of creating, using, sharing and re-purposing information."
OPENSOURCE petition to the Prime Minister
"We the undersigned petition the Prime Minister to Improve Open Source use in govenment and local govenment work places."

Martin F. Krafft: No-fly list to be scrubbed?

Nori points me to this article by Bruce Schneier, which seems like good news for me. Does it mean I'll be able to visit the US again sometime in the future? I don't think so; travel to the US is among the most unattractive things I can currently think of. I might reconsider when the US stops treating visitors like terrorists, taking their fingerprints and requiring so-called "Passenger Name Records" to be made available by the airline companies transporting passengers into the US, with the sole purpose to build a criminal file for everyone entering the country, just in case they become a threat to national security or an obstacle in the path of the neo-conservatives to forge ahead. In addition, I'd fear for my laptop, which US immigration officers can now seize without reasons and scrutinise; I do not own a laptop because I can do without one for weeks on end. Furthermore, all my data are encrypted for good reasons. As the old saying goes: "only the guilty have something to hide", I'd surely make it into their prisons as a suspected terrorist (which has happened to people before). What the US doesn't understand is that even though I may be guilty and therefore hiding something, it doesn't mean I am hiding it from them. So no, I don't think I'll enter the US anytime soon. NP: I Love You but I've Chosen Darkness / Fear Is on Our Side

Bernhard R. Link: please add mime-types

Enrico blogged about translating the mime-types of file to a debtags, stating "I&aposm not sure it&aposs a good idea to encode mime types in debtags".

I just want to throw my two cent in here and state that I only once looked into debtooks and gave up because it does not list mime-types but some obscure other specification.

Getting suggested programs that support formats which have the same type of content like the one I want to show, to convert or to create does not help me. I most of the time do not want to edit "a video" or "a spreadsheet", but I first of all have a very specific file I want to do something with, or a specific set of formats I want to create something in. If I have a AbiWord file, Openoffice.org will not help me, and with video or audio formats it is even worse.

So after turning away disappointetly from debtags, I had to do a full mirror scan for /usr/lib/mime/packages/ files and their contents. Having that data cached in debtags would be something that really makes debtags usefull in my eyes. (And the more direct and verbatim the mime-type is encoded, the more useful it would be for me).

Next.

Previous.