Search Results: "ag"

8 February 2009

Joey Hess: focusing on the screen

Biella asks if I can read novels from a screen. Yes, I've read what has to be getting close to a thousand novels that way, over the past 8+ years. I was thinking about this just the other day as I read The once and future e-book: on reading in the digital age. That article does a good job arguing against many of the common complaints about ebooks, such as "I can't read an ebook in the bathtub".
my pile of paper
Right now, I have a pile of paper books I want to read or am in the middle of reading. But if I want something new to read, I don't reach for that pile, but for my (much larger) directory of ebooks. The pile of paper is reserved for special occasions: plane trips, camping, etc. I started reading ebooks in circumstances where it was too hard to get access to paper ones. Traveling in the third world, hauling along a lot of paper books wasn't practical. Living rural, where every book had to be backpacked in. I've stuck with it because it works for me and because I've enjoyed stretching my muscles of concentration on the screen. To me, the focus required to read an ebook from the screen is similar to the focus required to work on a program. And completly different than skimming through a web page. The best example of this that I have right now is Real World Haskell, which I've almost finished (hurrah!) reading in a combination of paper and web editions. I was only able to stick with reading this book when I got the paper version. I use the web version for reference, or for looking for help on a challenging part of the book. For reading, it's just too much a web page; too easy to skim, or be distracted by the comments that can be attached to every paragraph, or jump off to Wikipedia.
screenshot of my ebook reader
Just as most programmers tune their development environment so that it uniquely suites them, I've put a lot of thought, trial, and error into tuning my ebook reading environment. The most important thing seemed to be getting rid of anything that interfered with focusing on the text. Since I wasn't (easily) able to use that environment for reading Real World Haskell, I wasn't able to read it from the screen.

Biella Coleman: People of the screen

Geeks are creatures of the screen. Many, I have found, are also great lovers of books. I have peered into the homes and apartment of many and books usually adorn the walls and the tables. The exist in abundance. Though I am more or less paid to read for a living but these days, I don t seem to the time to do extra reading and I often mourn the fact that I spend so much time getting scraps of stories and information from the net as opposed to delving into a great book, over the course of weeks and weeks (and as opposed to reading, often hurriedly but totally intensely, for class).
I do manage to get in some good articles and last night, I pushed through the heaviness of sleepiness to read a pretty interesting article People of the Screen by Christine Rosen. Though a bit too alarmist for my taste, I enjoyed reading it, largely because it was written well and also brought some interesting questions and points to the table about the transition from a print culture to a digital one. One point, that I was not surprised to read, is the most avid of screen users (programmers, the digerati), are also avid readers. But among the less (economically) privileged, who have different educational relationships to books and who also may not have the time to read, reading in the traditional sense, is may soon be a more or less historical fact. What I also enjoyed reading about and contemplating are the different material properties of the screen vs print book and the ways in which these affordances might create a different user/intellectual (almost existential, the author would argue) experience. For example, she argues that the emotional relationship to treeware books are more profound, or that reading a long novel (vs playing a video game) is about submitting your will at least for a while to the narrative and the story. I don t agree with all of her assessments but I certainly agree that there are phenomenological differences between reading words on sheets of paper and the pages of a compact book, and then reading from the blue hue of a screen, often sitting upright, and whose text, at least for me, does not seem quite alive as it is when imprinted on bounded paper. But I don t think this necessarily has anything to do with some inherent properties of the screen. For example, writing on the screen does nothing but enliven text for me. When it comes to writing, I cannot imagine doing it any way but via the screen and the keyboard. I can play around with some words and erase with impunity. I can move around a whole paragraph here and there, split it into two or three and as such it feels dynamic and quite alive. I am sure I have lost, or there is something to lose, by not going straight from brain to pen but I never did all that much serious writing without the keyboard and so perhaps there was nothing to lose, no bodily transitional for me to undergo, and thus nothing to really mourn. So, I suspect many readers of this blog are voracious writers and readers, on screen and off screen. Do you, can you read novels on the screen? If you love the printed book, why? Are you concerned about the loss of this medium? Or is there nothing to really worry about since technologists will eventually create a new digital medium that will surpass, in terms of a good user experience, the printed book?

Biella Coleman: People of the screen

Geeks are creatures of the screen. Many, I have found, are also great lovers of books. I have peered into the homes and apartment of many and books usually adorn the walls and the tables. The exist in abundance. Though I am more or less paid to read for a living but these days, I don t seem to the time to do extra reading and I often mourn the fact that I spend so much time getting scraps of stories and information from the net as opposed to delving into a great book, over the course of weeks and weeks (and as opposed to reading, often hurriedly but totally intensely, for class).
I do manage to get in some good articles and last night, I pushed through the heaviness of sleepiness to read a pretty interesting article People of the Screen by Christine Rosen. Though a bit too alarmist for my taste, I enjoyed reading it, largely because it was written well and also brought some interesting questions and points to the table about the transition from a print culture to a digital one. One point, that I was not surprised to read, is the most avid of screen users (programmers, the digerati), are also avid readers. But among the less (economically) privileged, who have different educational relationships to books and who also may not have the time to read, reading in the traditional sense, is may soon be a more or less historical fact. What I also enjoyed reading about and contemplating are the different material properties of the screen vs print book and the ways in which these affordances might create a different user/intellectual (almost existential, the author would argue) experience. For example, she argues that the emotional relationship to treeware books are more profound, or that reading a long novel (vs playing a video game) is about submitting your will at least for a while to the narrative and the story. I don t agree with all of her assessments but I certainly agree that there are phenomenological differences between reading words on sheets of paper and the pages of a compact book, and then reading from the blue hue of a screen, often sitting upright, and whose text, at least for me, does not seem quite alive as it is when imprinted on bounded paper. But I don t think this necessarily has anything to do with some inherent properties of the screen. For example, writing on the screen does nothing but enliven text for me. When it comes to writing, I cannot imagine doing it any way but via the screen and the keyboard. I can play around with some words and erase with impunity. I can move around a whole paragraph here and there, split it into two or three and as such it feels dynamic and quite alive. I am sure I have lost, or there is something to lose, by not going straight from brain to pen but I never did all that much serious writing without the keyboard and so perhaps there was nothing to lose, no bodily transitional for me to undergo, and thus nothing to really mourn. So, I suspect many readers of this blog are voracious writers and readers, on screen and off screen. Do you, can you read novels on the screen? If you love the printed book, why? Are you concerned about the loss of this medium? Or is there nothing to really worry about since technologists will eventually create a new digital medium that will surpass, in terms of a good user experience, the printed book?

Peter Van Eynde: @ fosdem but also not really

This year I managed to go to fosdem every day, even at the beer event. Not that I attended many talks: I was quite busy getting the network to work. We got wireless in almost all locations in the end. Setting up and fixing the problems took most of Saturday. On Sunday we added the final 'experimental' room via a wireless bridge link across the square, with the beam over the heads of the people in the queue for Belgian fries.

In the end it all worked and we had only a few configuration and many cable problems. I must say it was more for to 'work' at fosdem then to just be there. May thanks to Jerome Paquay who actually arranged to lend the equipment from our employer (Cisco) and to configure it. Thanks for AY for ... well being AY.

Next year n-mode? serious uplinks?


Uwe Hermann: List of my Creative Commons licensed photos being used elsewhere

As you may know I maintain a Creative Commons licensed photoblog at my website. I'm also cross-posting some of the better photos to my flickr page. Even with my humble, and not really widely-known little photoblog, you can already see the Creative Commons license's effects on media sharing and remixing/reusing kick in. Quite a number of my photos have already been used by other people for various different purposes (blogs posts, articles, even album covers), including some of the "bigger" sites such as the Wall Street Journal Blog or Cult of Mac... Here's the list of places I know of where my photos are used. Please leave a comment if you spot more of them in the wild. I intend to keep this list updated as more of my photos appear elsewhere. (Oh, and I have no idea why people seem to be so obsessed with my "Sugar" photo...) Sugar Sugar
Clock Clock
Autumn Leaf Autumn Leaf
Scissors Scrissors
Soccer World Championship 2006 Soccer World Championship 2006
Organized Organized
Dandelion Dandelion II
Intel Celeron CPU Intel Celeron CPU
Smoke Smoke
Sun and trees Sun and Trees
POSIX.1g Posix.1g

Matthew Palmer: English Comprehension Skills

The phrase "Total Fire Ban" is bandied around a lot these days -- mostly on days with high temperatures, low humidity, and high winds. To me, it isn't a particularly hard concept to understand, either: in the immortal words of Metallica, "Fire bad, Aircon goood!". And yet, some people just don't seem to get it. This afternoon, my brigade got a page for a fire call to a reported "smoking log" behind town. When we got to where the log was, indeed, smoking, it was obvious that a group of people had had a large party around a bonfire last night. Given the prevalence of large-scale fire incidents at the moment, anyone who feels that lighting up a bonfire, cracking open a large quantity of alcohol, and then leaving the damn fire going in the morning, is a good idea, really needs to have their head examined. In other firefighting-related news, despite being the on-call brigade for our district this week, we've not been called to assist at any of the fires currently burning both to our north and south. It's frustrating that having been trained to fight bushfires, and with so many areas currently needing some serious firefighting, my district isn't getting asked to help out. On the other hand, they don't appear to be hurting for resources at these fires (with several hundred RFS personnel, not to mention NSWFB and NPWS people, at the Peats Ridge fire; also, some 200 RFS personnel have been dispatched to Victoria), so it's good to know that there's plenty of bush firefighting volunteers around if things get bad around here.

Wouter Verhelst: Tartan theme

Debian so needs a Debian Tartan theme. For reference, my .Xresources file contains these xtartan configuration items:
XTartan.colorCode.EB: rgb:09FF/21FF/48FF
XTartan.colorCode.DR: rgb:57FF/0000/0AFF
XTartan.colorCode.DY: rgb:E4FF/A8FF/48FF
XTartan.Mine.nextTartan: Debian
XTartan.Debian.sett: %a EB16 DY2 EB16 DR16 BK2 DR16 W6 BK2 W2 BK2 W2 DR6 W2 DR6 W6 BK2 W2 BK2 W2 BK2 W2 DR6 W2 BK2 W2 DR6 W2 BK2 W6 DR6 W6 BK2 W2 DR16 BK2 DR16
Which (when calling xtartan -r -t Debian) provides for a nice Tartan background; but it's not a theme. I'd do it myself, but I'm not a graphical guy; but I would so love such a theme. Someone with graphical skills please make it!

Russell Coker: Bridging and Redundancy

I ve been working on a redundant wireless network for a client. The network has two sites that have pairs of links (primary and backup) which have dedicated wireless hardware (not 802.11 and some proprietary controller in the device - it s not an interface for a Linux box). When I first started work the devices were configured in a fully bridged mode, so I decided to use Linux Bridging (with brctl) to bridge an Ethernet port connected to the LAN with only one of the two wireless devices. The remote end had a Linux box that would bridge both the wireless devices at it s end (there were four separate end-points as the primary and backup links were entirely independent). This meant of course that packets would go over the active link and then return via the inactive link, but needless data transfer on the unused link didn t cause any problems. The wireless devices claimed to implement bridging but didn t implement STP (Spanning Tree Protocol) and they munged every packet to have the MAC address of the wireless device (unlike a Linux bridge which preserves the MAC address). The lack of STP meant that the devices couldn t be connected at both ends. They also only forwarded IP packets so I couldn t use STP implementations in Linux hosts or switches to prevent loops. Below (in the part of this post which shouldn t be in the RSS feed) I have included the script I wrote to manage a failover bridge. It pings the router at the other end when the primary link is in use, if it can t reach it then it removes the Ethernet device that corresponds to the primary link and adds the device related to the secondary link. I had an hourly cron job that would flip it back to the primary link if it was on the secondary. I ended up not using this in production because there were other some routers on the network which couldn t cope with a MAC address changing and needed a reboot after such changes (even waiting 15 minutes didn t result in the new MAC being reliably detected). So I m posting it here for the benefit of anyone who is interested.
#!/usr/bin/perl -w use strict;
use Sys::Syslog;
use POSIX; my $cfg_file = "/etc/bridged.cfg";
my $daemon = 1; openlog("bridged", "pid cons", "local1") or die "openlog"; if($ARGV[0] and $ARGV[0] eq "-d")

$daemon = 0;
open(CFG, "<" . $cfg_file) or die "Can't read \"$cfg_file\".";
my %cfg = ( SLEEP => '30',
PING_INTERVAL => '3',
PING_COUNT => '3',

);
while(<CFG>)

chomp;
if($_ =~ /^#/ or length($_) == 0) next;
my ($name, $val) = split(/ *= */);
$name =~ s/ \t*$//;
$val =~ s/^ \t*//;
$cfg $name = $val;

close(CFG); system("ifconfig $cfg IF1 up");
system("brctl addif $cfg BRIDGE $cfg IF1 ");
system("brctl setpathcost $cfg BRIDGE $cfg IF1 25");
system("brctl delif $cfg BRIDGE $cfg IF2 ");
system("ifconfig $cfg IF2 down"); my $route1 = 1; if($daemon == 1)

my $rc = fork();
if($rc > 0)

# parent
exit(0);
if($rc != 0)

error("Can't fork.");
POSIX::setsid();
my $pidfile = "/var/run/bridged.pid";
open(PID, ">" . $pidfile) or error("Can't open $pidfile.");
print PID getpid() . "\n" or error("Can't write to $pidfile.");
close(PID); open(STDIN, "</dev/null") or error("Can't open /dev/null.");
open(STDOUT, ">/dev/null") or error("Can't open /dev/null.");
open(STDERR, ">/dev/null") or error("Can't open /dev/null.");

syslog("info", "starting up, 60 second delay");
sleep(60);
syslog("info", "now running"); sub ping_host

my $ip = shift;
open(CMD, "ping -i $cfg PING_INTERVAL -c $cfg PING_COUNT $ip sed -n \"/transmitted/s/^.*\\([0-9].*\\).received.*\$/\\1/p\" ");
my $count = <CMD>;
close(CMD);
if($count == 0)

syslog("err", "Host $ip can't be pinged");

return $count;
while(sleep($cfg SLEEP ))

if($route1)

unlink("$cfg SIGNAL ");
if(ping_host($cfg PING1 ) == 0)

system("ifconfig $cfg IF2 up");
system("brctl addif $cfg BRIDGE $cfg IF2 ");
system("brctl setpathcost $cfg BRIDGE $cfg IF2 50");
system("brctl delif $cfg BRIDGE $cfg IF1 ");
system("ifconfig $cfg IF1 down");
syslog("warning", "Interface $cfg IF1 is broken, using interface $cfg IF2 ");
$route1 = 0;


else

if(stat("$cfg SIGNAL "))

unlink("$cfg SIGNAL ");
system("ifconfig $cfg IF1 up");
system("brctl addif $cfg BRIDGE $cfg IF1 ");
system("brctl setpathcost $cfg BRIDGE $cfg IF1 25");
system("brctl delif $cfg BRIDGE $cfg IF2 ");
system("ifconfig $cfg IF2 down");
syslog("warning", "Interface $cfg IF1 is considered to be fixed");
sleep(60);
$route1 = 1;


MJ Ray: The Phone Co-op AGM 2009

Yesterday I phoned into The Phone Co-op AGM 2009 and heard the reports, most of which you can read in the PDF annual report from the AGM website. There were also various questions from members, which I scribbled down as follows:-
What does ADSL mean?
Asymmetric Digital Subscriber Line. Essentially, what we sell as broadband.
How many day-equivalents of training did part-time employees get on average? (I think this was the question, but I got a bit lost.)
Information not immediately available. ThePhoneCoop will research and reply later. The number of part-time employees is an asterisk footnote in the non-financial performance indicators.
Where are the Phone Co-op s investments?
Most of the share capital is for investment in TPC, but surpluses arise for various reasons and are invested outside. Current locations include 40k in long-term investments, including 10k in the Co-operative Group, 20k in Westmill wind farm, 5k in a hydro power project; 60k is in the ICOF share account, 1.4m in the Co-operative Group, [...I missed some. I was struggling to keep up. Some of this may be wrong anyway...] 486k in Midcounties Cooperative share account, 20k in Chelmsford Star; total of about 2.9m.
Is ICOF deciding recipients of the sustainability fund or The Phone Co-op?
The arrangement with ICOF is now ending for various reasons and now TPC will partner with Black Country Reinvestment Society. Don t want to manage the fund directly because it s not a core task for a phone company.
The increase in turnover is described as mainly to existing customers. Has there been an increase in the number of customers?
The Phone Co-op is recruiting 150-200pcm residential and 30 business customers, but losing a similar number. Have recruited new staff to try to improve this.
Is share account interest being cut in line with banking interest?
Just cut to 3%, but there has been a net inflow of investment. Current interest receipts from TPC cover it due to long-term investments, but they will mature, so the interest rate will be cut gradually to keep it sustainable.
Purchase from other cooperatives is 11% and falling. What is being done to increase it?
[I missed the answer to this.]
What is happening about getting a new office?
The Phone Co-op still has an option on a site in Chipping Norton, but no planning permission. An alternative commercial building which was being discussed with its owner was lost to housing (planning permission granted there!). There is a general lack of suitable sites available and things are happening cautiously in the current climate.
If we re trying to save paper, why did members receive two envelopes in the post for this AGM?
The report was sent from Calverts directly, to save time, postage, staff and report miles
Is the description of non-white in the performance indicators a problem for mixed white+non-white people?
Will look into this.
How many affinity schemes are there?
There are currently 300 and they are being reviewed for the best way to work better with them.
Are acquisitions likely?
Expect the credit crisis to being opportunities. There are benefits from more traffic and so on. TPC has been contacting potential suppliers and intermediaries asking after other providers in difficulties.
What is the deferred income shown in the financial statements?
Pre-billed broadband and similar products.
Is the investment in the Co-operative Group risky?
TCG holds around 4bn in assets under and is one of the longest continuously-traded companies in the UK.
Are ThePhoneCo-op s 0845 numbers advantageous to TPC or the caller?
Still yes for TPC, paying 1p/min at peak; probably not advantageous to caller these days.
There are 15% sales to cooperatives shown. What s the largest cooperative and what % of that is it?
Shown in the annual report. [The numbers in report work out to about 15% of all sales I think. So, nearly all sales to cooperatives are sales to Midcounties?]
All errors and omissions in the above are mine. I heard the allocation approved, then I had to leave before the special meeting and the presentations. If anyone has links to them or coverage, please leave me a comment. Other comments welcome, too.

Chris Lawrence: Repurposed content

Herein I present a rant on one-tailed tests in the social sciences; feedback welcome:
Unless you have a directional hypothesis for every coefficient before your model ever makes contact with the data, you have no business doing a one-tailed statistical test. Besides if your hypotheses are solid and you have a decent n, the tailedness shouldn t determine significance/lack thereof. Thought experiment: assume you present a test in a paper that comes out p=.06, one-tailed. That means you have a hypothesis that doesn t really work to begin with (sorry, approaches conventional levels of statistical significance ). More importantly, if you just made up the tailedness hypothesis post facto to put a little dagger (or heaven forbid a star) next to the coefficient, you really did a two-tailed test with p=.12 and then post-hoc justified it to make the finding sound better than it really was. Now here s the center of the rant: I really don t believe you actually knew the directionality of your hypothesis before you ran the test and were willing to stick with it through thick and thin, since I know that you d be figuratively jumping up and down with excitement and report a significant result if the sign was not as expected and it came out p=.003 two-tailed (p=.0015 one-tailed, opposite directionality), rather than lamenting how it turned out with p=.9985 on your original one-tailed test. I dare say nobody has ever published an article claiming the latter (although I might give it a positive review just for kicks). And I really don t feel the need to have these discussions with sophomores and juniors, hence why I prefer books that just talk about two-tailed tests (aka not Pollock [a textbook I really like otherwise]) so I don t feel the need to rant.
See also: this FAQ from UCLA, which is a little more lenient but not much.

Russ Allbery: Lintian 2.2.3

Time for the weekly Lintian release. I wasn't sure if I was going to have time to commit another substantial bunch of work, but I got on a roll last night and found some more time today. The main infrastructure changes in this release are the beginnings of a rewrite of the handling of relationship fields and support for generating indices of source packages (needed for several other checks). The latter is sadly going to make Lintian a bit slower. Among the more minor changes are a few new checks, some of them pedantic. One of particular note is a new info-level tag recommending +dfsg instead of .dfsg in version numbers. 1.0.dfsg1 > 1.0.1, which usually isn't what's desired, but 1.0 < 1.0+dfsg1 < 1.0.1. Thanks to Paul Wise for the bug report. I've been bitten by this one in the past. Hopefully for the next release I'll get a chance to convert all of the check scripts over to using the new relation interface of Lintian::Collect, which will also mean more caching of data and less duplicate work for each package. I'm working on the bits from the Lintian maintainers post. Raphael Geissert had some good ideas for additional information, so I need to find some more time to expand it.

Ian Wienand: Converting DICOM images

If you go for an ultrasound or some other imaging procedure, they may give you a CD with the images that requires some overly complicated and under-featured Windows viewer. Chances are these images are in DICOM format, which is like the AVI of the medical world. Your first clue will be that file might report the file as an unoptimised QuickTime movie, e.g.
$ file ./QMAG0001
./QMAG0001: Apple QuickTime movie (unoptimized)
After figuring out the file type wasn't actually anything to do with QuickTime, I tried some of the many different tools and methods to convert this to something viewable. Unfortunatley, the DICOM viewer in GIMP and ImageMagick (probably the same thing?) didn't like the files at all, and neither did a range of other tools. I finally managed to do it with the dcm2pnm tool from the Debian dcmtk package -- just point it at the file and it spits out a PNM which is easily converted by all graphics tools. You can also encapsulate a series of images in a DICOM file, like a little movie. dcm2pnm extracts these easily, but requires the --all-frames options. An ffmpeg recipe to turn these extracted files into a more easily viewable movie is:
$ ffmpeg -qscale 5 -r 20 -b 9600 -i foo.%d.ppm movie.mp4
I certainly can't guarantee this will actually work for you, as DICOM appears to be an extremely complicated format with many possible vendor extensions. But hopefully it's a starting point!

Daniel Burrows: Dear Lazyweb, does anyone understand job control?

I've been banging my head against this all day and it doesn't make any more sense than it did when I started. I have a need to write some code that can manage job control on a terminal. More specifically, I need to run a single process and stuff it into the background at will, so that it gets suspended when it tries to read from the terminal. So, there's a controller process and a subprocess process.
 controller  ----------> subprocess
               manages
The man-pages and glibc info documentation make this look simple: disable TOSTOP if it's enabled via tcsetattr() so that the subprocess can write to the terminal, then start the subprocess in a new process group (by fork()ing and calling setpgid()). Once it's going, you can put it in the foreground or background by calling tcsetpgrp() to set the terminal's foreground process group to the subprocess (to put it in the foreground), or to the controller process (to put the subprocess in the background). Whenever the subprocess is in the background, it will be sent SIGTTIN if it tries to read from the terminal. I have everything working -- except for the very last sentence of that last paragraph. I can see my processes being put into the right process group, and I can see them going into the foreground and the background. For instance, here the first line is the controller process and the rest of the lines are the process group of the subprocess (this one started a few other processes).
STAT CMD                           PID  PGID TPGID  PPID   SID
Ss+  ./src/aptitude              26989 26989 26989 26980 26989
S    ./src/aptitude              26991 26991 26989 26989 26989
S    /bin/sh -c /usr/sbin/dpkg-p 27027 26991 26989 26991 26989
S    /usr/bin/perl -w /usr/sbin/ 27028 26991 26989 27027 26989
Z    [dpkg-preconfigu] <defunct> 27034 26991 26989 27028 26989
S    /bin/sh -e /tmp/lynx-cur.co 27039 26991 26989 27028 26989
S    whiptail --backtitle Packag 27043 26991 26989 27028 26989
If I try to move the background process into the foreground, it is marked as the foreground process in this session:
STAT CMD                           PID  PGID TPGID  PPID   SID
Ss   ./src/aptitude              26989 26989 26991 26980 26989
S+   ./src/aptitude              26991 26991 26991 26989 26989
S+   /bin/sh -c /usr/sbin/dpkg-p 27027 26991 26991 26991 26989
S+   /usr/bin/perl -w /usr/sbin/ 27028 26991 26991 27027 26989
Z+   [dpkg-preconfigu] <defunct> 27034 26991 26991 27028 26989
S+   /bin/sh -e /tmp/lynx-cur.co 27039 26991 26991 27028 26989
S+   whiptail --backtitle Packag 27043 26991 26991 27028 26989
Note that the background process is not suspended, even though it's busy reading from the tty. If I manually suspend the process group with kill -TTIN -26991, it stops as expected:
STAT CMD                           PID  PGID TPGID  PPID   SID
Ss   ./src/aptitude              26989 26989 26991 26980 26989
T+   ./src/aptitude              26991 26991 26991 26989 26989
T+   /bin/sh -c /usr/sbin/dpkg-p 27027 26991 26991 26991 26989
T+   /usr/bin/perl -w /usr/sbin/ 27028 26991 26991 27027 26989
Z+   [dpkg-preconfigu] <defunct> 27034 26991 26991 27028 26989
T+   /bin/sh -e /tmp/lynx-cur.co 27039 26991 26991 27028 26989
T+   whiptail --backtitle Packag 27043 26991 26991 27028 26989
So the signal isn't being blocked or ignored. I can also run programs in a normal shell, outside my harness (e.g., links &) and watch them auto-suspend, but the same thing doesn't happen when I start them directly under my controller process. It's not even that they're starting as foreground processes: I start them in the background, and they never see a SIGTTIN. Does anyone have a clue what's going on? Hopefully it's as simple as a flag I have to set somewhere... Oh, and for extra fun, this is all happening inside a VTE terminal widget. That shouldn't make a difference (after all, it's what gnome-terminal uses, and SIGTTIN behaved as expected when I tested it there), but who knows, it might be relevant. [UPDATE] I did a little more testing: I was bringing the subprocess into the foreground whenever the terminal was active, so I couldn't try typing into the terminal while the subprocess was in the background. If I do that, it does get SIGTTIN and it suspends. So it looks like select() doesn't count as a read for the purposes of job control. I doubt there's much I can do to get around that. :-(

Vincent Fourmond: Emacs mode for machine-readable copyright files !

Quite a fair amount of time has flown since my decision to implement an emacs mode for the proposed machine-readable format for debian/copyright files. A have to admit that I had left that sleeping for quite a long while. But I took my courage, and rewrote nearly everything I had done so far. I'm quite happy with the results, to be truthful. The debian-mr-copyright-mode features: The aim of this mode is to provide a quick check for uncovered files in a package, and also means to verify if the license of a file is not misrepresented. The code can be downloaded from the git repository, accessible using
git clone git://git.debian.org/git/users/fourmond/debian-mr-copyright-mode.git
No debian package is available for the time being, although that could definitely change after lenny is out. I hope this emacs mode will help the new format to be widely adopted.

7 February 2009

Junichi Uekawa: Offline qemubuilder hacking.

Offline qemubuilder hacking. I am on airplane for 6 or so hours, and found that approx has an offline mode. Nice. With '$offline true' configuration on /etc/approx/approx.conf, approx will try to serve the outdated Packages.gz etc files to the client. It only works when you have previously already downloaded the required packages once, but that was good enough to debug the problem of qemubuilder not running for mipsel and armel. I broke it sometime ago, I have git head running locally now which seems to be running.

Romain Francoise: Notes on the ASUS Eee Box b202

In case anyone's interested, here are some notes on the ASUS Eee Box, more specifically the b202 model, Linux edition:All in all I'm pretty happy with the Eee Box. If you have any questions, feel free to email me or leave a comment below.

Joost Yervante Damad: openMSX 0.7.0

A new version of openMSX has been released!

Important new feature is save-states. This gave me the means to finally finish the very first game I bought as a kid: Konami's Nemesis 2 for the MSX computer.

In these times games were usually hard. Nemesis 2 is even harder. The only way to play it without save-states is not dying all 15 levels. Given that Nemesis 2 is a shooter this is VERY hard :)

nemesis2_stage_24_2.png

Each one of those red bullets and grey stones is fatal :)

But save-states wasn't enough. I also enabled "old-people" mode, meaning running the emulator at 75% speed of the original MSX computer.

After more then an hour of hard labour playing using alot of save-states I finally managed to finish the game.

Only 22 years late ;-)

P.S.: I checked with my MSX friends and no-one was able to finish this game without some form of cheating....

Julien Valroff: My new xorg.conf

~$ [ -s /etc/X11/xorg.conf ] ; echo $?
1
Yes, it is an empty file! I have just upgraded xorg to the experimental packages. hal does its job, and all devices are automatically detected and configured.
This is actually a great improvement, especially for those who had to fight against the XFree86 configuration file just to get a graphical session working, back in the late 90 s.

The only thing I had to do is creating an /etc/hal/fdi/policy/10-keymap.fdi file with the following contents, so that GDM has a correct keyboard layout (French in my case):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
 
    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">base</merge>
 
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>
 
      <merge key="input.xkb.layout" type="string">fr</merge>
      <merge key="input.xkb.variant" type="string">latin9</merge>
      <merge key="input.xkb.options" type="string">compose:lwin</merge>
  </match>
  </device>
</deviceinfo>

Pablo Lorenzzoni: Alright! I surrender: Git rules!

Everybody seems to be using git these days I am not very found of hypes , as I told you before, but there s been some time I ve been evaluating git. I was happy with svk for quite a long time Lately, though, I ve been developing and extending a lot of ruby libraries, and all of them seem to be hosted at GitHub and using git So, why not give it a serious try? I chose a simple task on my TODO-list: to extend xmpp4r-simple to support XMPP PubSub, so I could use it in an internal project at my company. So I cloned its git repo and started developing. Not a really hard task, since all I had to do was use the underlying library (xmpp4r not surprisingly also in GitHub) and mimic what Blaine s done for the callbacks and it was ready (and working although I still need to put more time on the test suite). I am still exploring It will take some time to migrate my stuff (and maybe a lot will remain in my company s Subversion), but that s what git-svn is for, isn t it? Right now I am looking for ways to work with git-buildpackage and Debian git tools Do you have some advice on that?

MJ Ray: Top 8 J2ME MIDP Applications

Well, in line with the Do Not Drive from the local police (and one from Gloucestershire), I ll be phoning in to ThePhoneCoop AGM today and doing a bit of work from home. While preparing for the journey that never was, I realised that I ve mentioned some of these phone tools in articles like Connecting from the k608i with SSL, but not all of them. So, here s my favourite Java phone applications:-
  1. MidpSSH: this is my main workhorse, as long as I have a stable data connection (even 3G seems to freak sometimes above 120mph). I ll be connected to a screen session in our server (TERM=linux) using lynx, irssi, mailx and other tools I learnt back at UEA;
  2. MujMail: if I don t have a stable network connection, this seems a good way to download email from SSL in bursts for offline reading;
  3. Mobile RSS Reader: downloads RSS in bursts for offline reading;
  4. anyRemote: this is my main workhourse at home, replacing the above three applications. My phone doesn t do WiFi, so I use bluetooth to run shell commands on my workstation, read RSS feeds and email and view web pages. Combined with a video-sender, it also acts as a remote control when playing internet video feeds on the TV. At a push, it can control the workstation s full GUI, but that s a bit slow and awkward;
  5. JabberMixClient: I m having a few problems controlling this in version 2, but 1.x uses the basic GUI and works mostly fine. I guess I ought to fix its bugs, but I m terrible at Java;
  6. MicroCalc2: a cool lisp-driven spreadsheet, handy for sums you want to keep and it went GPL about two years ago;
  7. ReadManiac: much better than the built-in browser for text files and went GPL about a year ago. If only I could work out how to sign it with my local TTLLP certificate authority and get rid of the security prompts;
  8. MFRadio: useful when the built-in FM RDS radio can t find anything interesting. The interface is a bit clunky and it really racks up data transfer charges, but it seems worth keeping around.
All of those are free and open source software, mostly under the GNU GPL. The only thing I feel I m really missing now is a free and open source FTP client, for uploading photos to my preferred photo-sharing site. Any suggestions?

Next.

Previous.