Search Results: "otto"

20 May 2008

Jeff Bailey: Three month medical update

We just came back from my three-month visit with the surgeon. Everything is pretty much going well: The x-rays looks good - the hardware hasn't shifted, screws haven't come loose (They need a CT scan to tell how well the bone fusion is happening. Too much hardware in the way in the meantime). The biggest concern he has is that because I spent 2 weeks throwing up and lost something like 15kg, most of my movement restrictions haven't changed, nor has the diet emphasis. So still no lifting, twisting or bending. I can, however, now reach out with both hands. So I can help chop veggies for dinner and such.

I also got some clarification on the photo.
(Warning, 1.7megs. (c) 2008 Dr. P Mummaneni, All Rights Reserved, posted with permission. Lots of blood and meat, you've been warned!)

It's the same one as before, but now I've actually gotten a chance to ask questions about it. I was pleased to know that most of my guesses had been right. =) I'll try to answer the questions people had:

I'm face down in the picture, my head is to the left. The yellow around the incision really is my skin, covered with iodine and such to minimize infection. The black bits are cauterised to minimize blood loss and such. The thick white cord down the middle is the spinal cord itself. The white covering is the dura.

To do this operation, they take away the bone on top, then take out the surrounding tissue, then take out the bone on the bottom. As someone guessed in the comments, the spinal cord sits in front of the titanium cage.

The medal bits on the bottom of the picture are the places where the second rod got bolted in.

Neat the leftmost metal thing, you can see a nerve coming out of the cord. In the middle of the picture there isn't any, which is why I have some sensation loss through my armpits and such.

Dr. Mummaneni said that he'll try to put the rest of the pictures onto a CD for me, so I'll probably get them at my next appointment in 3 months. In the meantime, I'm cleared to fly, and I'm cleared to return to work at the beginning of next month. Yay!

Oh, and it turns out that I might set off modern metal detectors. So I now have a doctor's note to travel with. I'll find out later this week. =)

In other news, Leif is doing much better. So far it looks like the inhaler was needed just to him over this cold. I'll post more on that another time. This post is getting long.

9 May 2008

Daniel Kahn Gillmor: GNOME and libpam-mount

So i've been struggling with an Ubuntu 8.04 networked workstation. It uses libpam-mount to mount the user's homedir (actually, the mountpoint is one level up from the homedir) automatically at login over CIFS. One of the problems i ran into with this arrangement happened because i was following the pam_mount configuration instructions too literally. In particular, README.Debian.gz says:
For every application used for logging in, there is a file of the form /etc/pam.d/xyz, add the following line at the end of the file:
@include common-pammount
In particular, ubuntu's /etc/pam.d/gdm defaults to:
#%PAM-1.0                                                                                                                                                               
auth    requisite       pam_nologin.so
auth    required        pam_env.so readenv=1
auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
@include common-auth
auth    optional        pam_gnome_keyring.so
@include common-account
session required        pam_limits.so
@include common-session
session optional        pam_gnome_keyring.so auto_start
@include common-password
When i added the @include common-pammount directive to the bottom of this file when using pam_mount, new GNOME sessions failed badly: the gnome-panel didn't appear (which means that the user couldn't log out conveniently), and two error messages popped up at each login with nasty details like:
No database available to save your configuration: Unable to store a value at [...], as the configuration server has no writable databases.
The problem seems to be that libpam-gnome-keyring actually kicks off gconfd-2 during its PAM session invocation. If that comes before libpam-mount's PAM session invocation, then the home directory isn't mounted for the keyring, and gconfd-2 decides that it is unable to save any settings. Since gconfd then persists for the rest of the session, further GNOME session components try to talk to it and it refuses, even though the gconf db is now available (via the mounted homedir). Since the order of the lines in a /etc/pam.d/* are semantically relevant, i'm usually very reluctant to tamper with the defaults. However, i think the correct /etc/pam.d/gdm for this scenario (or any pam-mount scenario using GNOME where the homedir might not be present at all before the session) is actually:
#%PAM-1.0                                                                                                                                                               
auth    requisite       pam_nologin.so
auth    required        pam_env.so readenv=1
auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
@include common-auth
@include common-account
session required        pam_limits.so
@include common-session
@include common-password
@include common-pammount
auth    optional        pam_gnome_keyring.so
session optional        pam_gnome_keyring.so auto_start
With this configuration in place, i can successfully log in with a test user, anyway (and move on to the next problem, which appears to be SQLite over CIFS, ugh). These sorts of problems are tough to nail down: Or maybe it's just a configuration detail that i should have known about and expected to deal with in the first place. Ah, well.

7 May 2008

Gintautas Miliauskas: Europanto

This made my day! Here's an excerpt if you're too lazy to click on the link: "Als humanos, tambien nations, after seine geborn, become bambinos und grow adult. Aber als humanos, sommige nations never become adult und necessite psychiatrico help", dixit once Sigmund Freud aan Herr Kanzelier Otto Von Bismarck attemptante de le convince que Germania eine tumultuosa puberty was traversante.
Otto Von Bismarck ignored die wise parolas des fader des psychanalyse und wat happened aan Germania next, wir know mucho well.
Die freudiana diagnose noch todag applicable und validissima est, by exemplo, por wat Grosse Britannia betreft. Eine nation die encore play mit kleine soldatos und make carnaval parades out des season, mature est suremente nicht.
Wat pushe flegmaticos aged britannicos de dresse in hooliganicos costumes und parade mit tambouros und trompettes in der nordirlandico landscape? Sicheremente eine mucho neglected mentale desease.
Eine people waar hombres can wel dress in skirts, waar animals habe more rights dann mensen, waar man drive op de wronge side des strada, must echtemente seriose problemas van personnality habe. Eine people die nicht only play cricket und darts, aber les regarde tambien op TV, bastante insane must definitamente esse.
(...)
There are more texts in this, er, language, on the Europanto main site. Edit: fixed link

26 April 2008

Wouter Verhelst: Working in the appartment...

Lessons learned today: Anyway, the bottom half of the kitchen is now assembled. Sortof. The upper half, we'll probably do tomorrow. Or, er, well, "today", since 5 minutes ago... Other than that, there's still much work to be done: Do something about the holes in one of the walls, treat another one of the walls for water damage, finish the paint job. Next tuesday and wednesday, a plumber will be connecting the kitchen sink and most of the plumbery in the bath room—hence the need for the assembly of the kitchen before that time. After that, I'll probably need to finish off some other things as well... Oh, well, and I'll also need to move, of course. In case you've been wondering, yes, this is why I haven't been very active on the Debian front lately. I've been signing my buildd mails (although not usually as prompt as one would expect), but that's about it. As a result, I got NMU'ed for the first time in my career as a Debian Developer—by two people at the same time, no less. Feels rather strange, I must say.

25 April 2008

Dirk Eddelbuettel: Google Summer of Code 2008 projects assigned

As mentioned a few weeks ago, I had submitted two entries as possible topics for this year's version of the Google Summer of Code. And lo and behold, the response was very, very good and both applications were slotted! For the topic 'create a PostgreSQL package for R that uses the standard DBI interface', a number of interested students contacted me, and a total of three applications were submitted. And while the R Foundation was only able to allocate four topics among a number of really good applications, Sameer Prayaga was our pick for this topic. It would be nice to fill this gap among the existing database connection methods for R, and I feel that Sameer can pull this off. For the second topic of 'create a cran2deb tool for converting CRAN sources into Debian package' which I had submitted within Debian, Charles Blundell wrote an excellent application. In a way, this topic is a '2.0' version of our previous attempts of a 'top-down' set of tools in the pkg-bioc project on Alioth. This time, we will try something smaller, maybe more modular and lighter and see how far we get there if we try it 'bottom-up'. And as we are currently in the community bonding phase, say Hi to Sameer or Charles when you come across them these days. Lastly, I'd like to thank everybody who submitted an entry at Debian or R, or who contacted me about one of the topics I posted. The respone was very humbling, many of you were imminently qualified and seemingly very motivated -- but even Google's pockets can only pay for a finite number of projects. Sorry if yours did not get picked.

21 April 2008

Tore S. Bekkedal: GNU Screen/vim love

When I code, one of the tools I use which I like the most is GNU screen. My current project involves the editing of a bunch of different source files, and often jumping frequently between them. I was spawning windows and trying to edit files that I had already opened in a previous screen, and often ending up with a bunch of windows with files I wasn’t using much at the time. So I did some research on how to optimize use of vim and screen together. The first thing I came up with was getting screen to display a nice bar at the bottom by adding this to my .screenrc: (Thanks, Red Hat Magazine!) hardstatus alwayslastline
hardstatus string '% = kG [ % G %H % g ][%= % = kw %?%-Lw%?% r (% W %n*%f %t%?(%u)%?% r )% w %?%+Lw%?%?%= % g ][% B %Y-%m-%d % W %c % g ]'
This gives you a neat and coloured (mmmm… colours…) status bar at the bottom of your screen display, including some info on whether other terminals are attached to that window and such. One thing which would vastly improve the usefulness of this would be if I could get vim to set the screen window title. The escape sequence for doing this is the same as for other terminals, but vim’s terminal information database does not include the relevant entry for the “screen” termtype. So (with help from “frogonwheels” and “godlygeek” in #vim) I put an entry in my .vimrc specifying the escape codes for setting screen’s window title. In addition, I abbreviated the window title string to contain only the file. Here is the relevant snippet from my .vimrc: if $TERM=='screen'
exe "set title titlestring=vim:%f"
exe "set title t_ts=\<ESC>k t_fs=\<ESC>\\"
endif
A casual glance at my school grades chart will immediately reveal that I am not a structured learner; I’m not the type of user who will, when adopting a tool, begin by reading the manuals. I’m more of a gradual, ad-hoc learner, and I tend to prefer to stick to the defaults whenever possible. Since vim and screen are probably my primary tools for doing work, I should probably do some more research on things like this. These suggestions may be somewhat trivial, but I’ve found them to be quite useful, so I thought it might be useful to someone. Please leave a comment if it was, or if you have any comments (duh!) or suggestions.

13 April 2008

Joey Hess: secret code

I'm still following The Lost Ring, but it got a little too intense today when someone who was not very familiar with what was going on was recruited to pick up an envolope hidden in an umbrella stand at a gallery in Hong Kong became disturbed by the contents and destroyed it. All we're left with is some fuzzy pictures. blur This fragment contains a code. If we can figure out enough of the code, it can be used to download a digital copy of the paper that got torn up. It's a kind of checksum, was written with a typewriter (that writes capital letters a bit higher than the rest of the line, and tends to fade bottoms of numbers), and will look something like "SS71/124P/84JH/HFGS/CEAS". After playing with the gimp, I'm fairly sure that the code starts out "C??L/T4GA/L". enhanced In the movies, this is easy, you just zoom in on the blurry picture until you can see fingerprints. In the "real" world, it's gonna be tricky.

27 March 2008

Andrew Pollock: [tech] Mutt configuration find of the year

I switched from Pine to Mutt as my primary email client around the time I decided to become a Debian developer, because Pine's PGP support was abysmal (it also beat building Pine packages by hand all the time). The other bonus feature was it threaded emails, which made it easier to follow mailing lists. It's been a very gradual learning process since I switched, and I certainly don't consider myself to be a Mutt power user. I initially really hated it, I think largely because of the concept of "old, unseen" messages, versus "new" messages, and the behaviour of the Tab key. Once I unset the mark_old variable, it got a lot more tolerable. I think at some point I either plagiarised someone's .muttrc from the Internet, or sat down with the manual (or possibly a bit of both) and came up with a config that I could live with, and it's been workable ever since. One problem I (more recently) started having was that when I had 200-odd unread emails in my inbox, which has been pretty common occurrence in the last couple of years, and someone replied to an email in an old thread, because I wasn't necessary scrolling through all 200-odd emails (as new, unthreaded emails usually sorted chronologically at the bottom of my inbox), I'd miss the fact that the email had arrived, often for extended periods of time. I was lamenting this problem to Sarah over dinner last night, and saying how I preferred Gmail's behaviour, where the position of a thread in the inbox was determined by the date of the most recent email in the thread. I figured Mutt must have a sort option to be able to deal with this, and so I went rummaging in the manual last night, and discovered the sort_aux configuration variable. I've set that to last-date-received, and now I'm very pleased. I should never miss an email again. Of course, I should really try practising Inbox Zero, then it wouldn't be an issue.

16 March 2008

Jeff Bailey: Engineering Challenge

The challenge:

* You're tired of eating the stuff you can reach, but you see that there's brown sugar on the bottom shelf under some things, which would make some Cheerios more edible.

You are:

* Going through steroid withdrawal
* Still somewhat stoned from the last hit of oxycodone
* Hungry
* Under movement restrictions, can't lift bend or twist in anyway. Including from the hips.
* In a rush because you poured the soymilk into the Cheerios already, thinking that there must be some sugar within reach *somewhere*

The solution:

* Knock the couscous and rice containers that are on top of the brown sugar onto the floor.
* Gently kick the laundry basket into the kitchen.
* Very carefully, holding the laundry basket in place with one leg, use the other one to soccer kick the brown sugar container into the laundry basket.
* Wedge the laundry basket against the opposite wall
* Standing in the laundry basket, gently use legs and ankles to roll the brown sugar to the highest point of the clothing.
* Walk a chair into the kitchen, sit on the chair.
* Use monkey-length arms to discover that brown sugar is now within reach. Barely. But we're not looking for sugar with honours, here. We're just looking for sugar.

All of which explains why there's containers of stuff, the laundry basket, and a chair in the middle of the kitchen floor: none of which I can return to their original locations because of the movement restrictions (can't really drag across carpet).

But the sugar never tasted sweeter. =) (It's a good thing Angie loves me...)

15 March 2008

David Moreno Garza: Places I've lived in

Recently, chatting with some folks on the TextMotion IRC channel, I started thinking on the places I ve lived my whole life. From the bottom of my mind, this is a rough list: Such is life :)

William Pitcock: A look at SCO Unixware 7.1.3

So, you know, SCO has been suing various people in the Linux community for the last few years, claiming that some code in Linux was stolen from them. So, I’m willing to bet that a lot of people were wondering: what exactly is SCO UnixWare? Well. Have I got a treat for you. Thanks to this wonderful thing called the Internet, you too, can experience SCO UnixWare in it’s full glory. Right, so! I wouldn’t want to stop you from experiencing perhaps, the most enterprisy OS ever. Lets get it on. Installing the OS — the most enterprisy installer ever. The SCO installer is the most ass-backwards convoluted thing someone could have ever invented. It’s downright bloody insane. But, a picture is worth a thousand words, or something like that. This is the boot splash screen. You’ll see it a lot. The release 7.1.3 text goes back and forth a lot, kinda like the Windows XP startup screen except with less artistic talent. After a little while, you boot into a language selection screen. SCO UnixWare Installer Language Selection Screen You choose English, and it presents you with: Welcome to the SCO installer !!!1111one+1 You press F10 to continue. Pressing F10 is kinda like rolling a 2d6, except it’s more enterprisy. You’ll be pressing F10 a lot. It asks you to enter a license key. But, SCO doesn’t really care about licensing it seems. You press F8 to tell it that “you don’t have a license”, and it gives you the option to use an “evaluation license which expires in 60 days”. Licensing You choose yes, you anti-capitalist pirate. Don’t worry, at this point, the SCO installer has probably phoned home and told them to add you to their SCOsource litigation. It starts unpacking drivers, and asks you if you would like to use the driver configuration utility. Driver installation You exit out of the driver configuration utility. It asks you for the system hostname, and installation method. Nodename? Select install method Time to partition your hard drive. Finally. This is what it’s all about. fdisk step 1 fdisk step 2 fdisk step 3 Wow, that was easy wasn’t it. You press enter three times, kinda like the free software OS we know and love. It asks you what packages you would like to install. Package selection You choose the default. Mostly because I couldn’t be assed. Now you go back to setting up the network??? You think back, and recall vaguely that you set up the network already. Apparently you didn’t, as it now wants you to manually configure your ethernet adaptor, despite the fact that it autoconfigured itself moments ago. Network configuration, part 2 Network configuration, part 3 You enter in some information to make it happy. It asks you to set the clock. Time configuration You enter in some data and press F10. It asks you to set up a user, set the root password and set the system security level. User configuration Security level? It asks you to accept the license agreement, in a very enterprisy way. Infact, it’s so enterprisy you don’t have to read the actual license. License Agreement You choose “display licenses”; because you’re curious. You see the following copyleft licenses: SCO uses GPLv2 software SCO uses Artistic-Licensed software. It asks to be sure you really want to install this enterprisy OS. Are you sure?! You hit F10, acknowledging your willingness to sell your soul to satan SCO. Installation begins, you wait about 20 minutes, and the thing is finally installed. File Installation, part 1 File Installation, part 2 You look up and see it installing netscape. You sigh, as you know what that means. It installs documentation. You nearly fall asleep. File Installation, part 5 Wasn’t that percentage meter more a little while ago? You go back to whatever you were doing. Finally, it “sets up UnixWare”, and tells you that it has finished. You hit Enter. But, you forgot to eject your CD. Ok, you reboot finally. It boots back into unixware, and you get presented with the bootsplash: It boots up for the first time. It asks if you would like to install anything off of CD2 or CD3. You choose no, and it spams you about some update support contract thing. It decides to rebuild your kernel for some random reason. By rebuild, I mean, “relink using binary blobs”. But, I digress. The system reboots, because it rebuilt the kernel. The system boots, you’re presented with even more advertising. This concludes our look at SCO UnixWare. I hope you’ve found it fun. There’s more fun images in this directory, including a mollyguarded shutdown and much more.

14 March 2008

MJ Ray: Your Pics / Save Our Post Office March

I'm back from the protest march from Kewstoke Post Office to Milton Post Office with some pictures (click through to full post to see them).

The first photo shows about 50 of us setting off from Kewstoke Post Office at 1230. Monks Hill was pretty busy with traffic, scattering the walkers at various times, like shown in the second picture.  Most people walked up the 25% gradient road instead of the (even steeper) footpath because the footpath steps are very wet and slippery just now, as shown in the third photo - top left shows the steps up the wall, which looked lethal. I walked up the main steps to see what state they were in: green and slippy with moss (top right), some of them washed away (bottom left) and others had animal poo on them (bottom right).

About 1310, 24 walkers arrived at Milton Post Office, shown in the last picture (District Councillor Ian Porter (Con) in the centre there).  So, that's 40 minutes for 50% of people, which means a round trip for a simple transaction will take about an hour and a half and only the able will do it in that.  It wasn't even particularly bad weather today, so that just isn't a reasonable journey for most people and even less so for those who rely on the Kewstoke village Post Office for financial services and parcels.  Closing it will clearly make it take much more time or make people poorer from using buses or cars to get to the alternatives, or paying parcel companies to collect.  Shame on Royal Mail!

I got a lift home in an LPG vehicle with three others. I have to go to Milton again now, as the shop I needed was closed for lunch.  (I visit it about once a quarter, so not as often as the Post Office, no.  Travelling to Milton for something once a quarter is tolerable.)

9 March 2008

Vincent Fourmond: ctioga's non-linear axes

Much as been done on ctioga since the last release, not even two weeks ago: small bug fixes, tangents improvements, the rebirth of a --subplot option, a saner framework for plot styles... But the most significant improvement in my opinion is the possibility to make non-linear axes: you just need to provide a two-ways transformation between the standard coordinates and the axis coordinates, and ctioga does the rest:
ctioga -N --xpdf --math --math-xrange 2:8 \
  'sin(x)' --xaxis bottom --new-axis biniou top \
  --axis-function biniou 1/x 1/x \
  --lines-color biniou Gray --no-title
As you can see, I did profit to add the possibility of background lines corresponding to the axes' major ticks. The only real trick that is left is to find a decent way to partition the target segment so that they ticks are "natural" (not 0.34759, for instance) and reasonably equally spaced. I thought other plotting programs had dealt with this, but in fact, that doesn't seem to be the case: I'll have to do that myself.

1 March 2008

Adam Rosi-Kessel: The Best Movie to Start at 11pm at the End of a Long Trial

Anatomy of a Murder. David Denby put it best:
Otto Preminger s Anatomy of a Murder, from 1959, is still the best courtroom drama ever made in this country, and, in its occasional forays out of the court, among the finest evocations of place an Upper Peninsula Michigan resort area in the off-season, leafless, underpopulated, alcoholic, and forlorn. James Stewart, in one of his wonderful melancholy late performances, plays a former county prosecutor named Biegler, a lifelong bachelor who now spends his time with a non-practicing lawyer (Arthur O Connell) and an unpaid secretary (Eve Arden), who sticks around for the wisecracks. The movie is leisurely, detailed, realistic, intensely companionable; you get a sense of how people exist at the margins of a profession without losing their dignity.
Although there are some distinctions between a murder defense in the 1950’s in the Upper Peninsula of Michigan and modern-day patent litigation, the essence of trial technique is really not all that different. Highly recommended.
Prosecutor: Lieutenant Manion, wasn’t your action against Barney Quill much the same thing as your action against Miller or the Lieutenant you slapped at the cocktail party — all done in the heat of anger, with a willful, conscious desire to hurt or kill?
Defendant: I don’t remember my action against Quill.
Prosecutor: How long had you known your wife was stepping out with Quill?
Defendant: I never knew anything like that. I trust my wife.
Prosecutor: You just occasionally beat her up for the fun of it, I suppose?
Defense Counsel: There has been nothing established to permit a question like that. He keeps trying to insinuate without ever coming to the point. Let him ask the Lieutenant, did he ever beat his wife.
Judge: I will sustain the objection. Do you want to re-phrase your question, Mr. Dancer?
Prosecutor: No thank you, Your Honor. I’ve finished.
Technorati Tags: , ,

28 February 2008

MJ Ray: South-West MP Promotes Credit Unions as Reasonable Universal Credit

John Penrose said:
"[...] the credit union movement in this country is exactly the kind of excellent initiative that [...] fulfils many of the necessary and vital functions that she has mentioned and is aimed at those at the bottom of the income scale."
Source I've emailed him a thank-you and been told that ABCUL will explain to Fiona Mactaggart how they're working to increase coverage and capacity. I've noticed credit unions in the south-west expanding their areas, or merging in order to serve more members. I think we've also got a credit union rep on the board of Cooperatives-SW again. Yay. Now, back to coding.

15 February 2008

Andrew Pollock: [life] Worst. Recovery. Ever.

I wonder if things could go any worse if we actively tried? So despite going back to see the cardiologist on Monday afternoon, concerned about there possibly being still some sort of infection, and being told there wasn't, on Thursday morning, the top part of the incision was looking swollen. It looked even more so by the evening when I got home from work, and Sarah emailed a photo to the cardiologist, and he agreed it didn't look too crash hot, so he phoned a prescription for another, longer course of antibiotics through to the pharmacy, but too late to get filled last night. By bedtime it was looking even more ready to blow, and sure enough, around 1am (it's always 1am) it erupted everywhere. Fortunately (for me), I missed all the gory details, but I think there was a fair bit of fluid built up in there. So we went back to the clinic this morning, and they decided that they needed to open up part of the incision to let it drain and heal properly. They took another swab to run another culture, and then got a physician's assistant to take to her with a scalpel. I've seen my poor wife go through too many painful things in the last six months. Today's was no better. Most of the problem was the local anaesthetic injections, but watching them open up the incision again wasn't much fun either. No one should have to go through as much shit in a short time as what Sarah has had to. It's just not fair. She now has a gaping hole in her chest with some gauze packed in it, which has to be changed twice a day (by lucky old me). The idea is to let it heal from the bottom up, rather than the top down, as it seems an abscess had formed in the wound, and that was were all the trouble was. So by leaving it all open, it can drain properly, and heal from the bottom up. $DEITY only knows what sort of mess it's going to make of the incision area, but we can deal with that later. They reckon it'll take another 4-6 weeks to heal. I'm really hoping now that with it draining, and another course of antibiotics, Sarah will be in much less pain. I just did the evening gauze change. Fun. The opening in the incision is longer than I remembered them making this morning. It's about an inch long, and a centimetre deep, and there's a small hole in the bottom that presumably leads to the "interior". It's not as bad looking as I thought it might be. Packing the gauze in didn't seem to hurt Sarah too much, which is just as well. This really is the pits. I really hope this is the end of this, and the infection goes away for good, and the incision heals quickly. In terms of recovery, this is a pretty major setback in my opinion. From now on, we won't be relying on the cardiologist for surgical opinions, we'll be insisting a member of the surgical team checks Sarah out.

Benjamin Mako Hill: Free Culture Elections

Recently, Students for Free Culture -- a non-profit organization dear to my heart -- elected its new board. Several months ago, the group voted to hold its elections using the same preferential election method system that Debian uses. To help make their election easier I agreed to support them with a new set of features in Selectricity aimed at more structured organizational decision-making. Currently Selectricity is more geared toward more informal QuickVotes. From a democratic and voting technology perspective, the election was a huge success. With 16 voters and 13 candidates, a traditional plurality or "first past the post" election would have been a poor match for their group -- the 16 first-place votes were very split among the candidates. The results also show one very polarizing candidate who won the plurality but was in the bottom third of most preferential rankings! The use of Selectricity helped SFC select a board who better represented the preference of their group than they would have otherwise. Exciting stuff! You can read more on the Free Culture website or on the Selectricity blog. Thanks are due both to the previous SFC board who took the risk on the technology and to all of the candidates and voters! I'm currently integrating feedback and improvements based on the SFC election and will open the feature up the public in the next couple weeks. If you want hear about this when it happens, you should subscribe to the Selectricity Blog or drop an email to team@selectricity.org.

7 February 2008

Alastair McKinstry: Climate Challenge

So its the holidays. Have you played Climate Challenge yet? (via Micheal Bernstein at antipope.org). Tags ,

6 February 2008

David Welton: Remote Android Application Shell with Hecl

The latest component of Android Hecl that I have been working on is a simple shell server that lets you interact with Hecl remotely, in order to be able to telnet in, run commands and see what they do. In order to give it a whirl, fetch Hecl from svn:
svn co http://hecl.svn.sourceforge.net/svnroot/hecl/trunk/hecl hecl
Then install the Hecl.apk:
adb install android/bin/Hecl.apk
Select the Hecl Server demo, at the bottom of the list: Hecl Server You also need to make sure that port forwarding is set up:
adb forward tcp:7405 tcp:7405
At this point, you can telnet to port 7405 on localhost, and run Hecl commands:
> puts hi
hi
> androidlog "hello world"
> java android.os.SystemProperties sysprops
sysprops
> java android.telephony.TelephonyProperties telprops
telprops
>     set number [sysprops get [telprops -field PROPERTY_LINE1_NUMBER]]
15555218135
Since this simple server runs in its own thread/interpreter, you can't control the GUI from it. To do that, there is a 'maineval' function that sends code back to the main interpreter:
> maineval  set layout [linearlayout -new [activity] 
1
>  maineval  set layout  [linearlayout -new [activity]] 
1
> maineval  $layout setorientation VERTICAL 
1
> maineval  set layoutparams [linearlayoutparams -new  FILL_PARENT WRAP_CONTENT ] 
1
> maineval  $layout addview [textview -new [activity] -text "Hi!" -layoutparams $layoutparams] 
1
> maineval  [activity] setcontentview $layout 
1
Gets us this very, very simple screen: Hecl Hi Hecl's Java reflection support is still fairly alphaish, but you can use it to query classes about their methods and constructors, and call them most of the time; errors should be sent to me or the mailing list. I found this little server particularly useful when fiddling around with some of the undocumented android classes, as a way to experiment in a running system.

26 January 2008

Matthew Palmer: Dear Lazyweb: Where Are Those Borders Coming From?

CSS is a lovely principle, but between browser bugs and an insanely complex standard in practice, it's not nearly so fun. Today's case in point: I want three images stuck right next to each other. I've got an example of the sort of thing I want to do -- in that example, I want the three coloured squares to be adjacent, not separated by several pixels of whitespace, and for there to be no white between the boxes and the bottom border. In order to make this happen, at the moment, I've got to set negative right and bottom margins, which to me is just completely screwed up -- negative margins, to me, means overlap, not adjacency. What makes it even worse is that different browsers need different pixel counts. So far I've tested on IE6 and Firefox 1.5. The thing that really does my head in, though, is that fact if I change the font size the gap changes. So somewhere inside of both IE6 and Firefox 1.5, there's some relative size getting in the way of just sticking pictures next to each other. Update: I've been given the solution. Thanks to the 50 or so people who responded; it's great to know there's so many helpful people out there.

Next.

Previous.