Obey Arthur Liu: FOSDEM09 and my Summer of Code at Debian slides
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.
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:-
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.
$ file ./QMAG0001 ./QMAG0001: Apple QuickTime movie (unoptimized)
$ ffmpeg -qscale 5 -r 20 -b 9600 -i foo.%d.ppm movie.mp4
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 controllerprocess and a
subprocessprocess.
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 foregroundor
backgroundby 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
readfor the purposes of job control. I doubt there's much I can do to get around that.
A new version of openMSX has been released!
In short, every application I and our Labs tester tried iMovie, Pinnacle Studio, Ulead Video Studio, Sony Vegas and Avid Liquid at best could open but barely play some clips, and more often simply hung or crashed.So what we have here is a whole culture of mediocrity. Everybody advertises that they work with AVCHD, yet nobody actually WORKS with AVCHD. And this is the format that the industry is rapidly moving to for HD HDV s days are quite numbered.
Since late 2008 WebKit/GTK+ has been advancing in a better pace than earlier that year. Patches are being reviewed and committed actively, mostly by Holger Freyther (zecke). This last month, among other goodies such as better keyword searching for the WooHoo bar in Epiphany and enabling WebKit s Soup backend to upload files, I have been working on getting download support into WebKit/GTK+ so that we can use that API in Epiphany.
Most of the heavy work was done by Marco Barisione and Pierre-Luc Beaudoin early last year. I brought the patch up-to-date and modified it with input from various people into something simpler and handling some more use cases. Tonight I finally reached a milestone, being able to download a Debian ISO with Epiphany/WebKit:
Its getting close to valentines day again so I thought some of you geeks out there would appreciate a post I made last november about a hack that was inspired by an XKCD comic.
Anyhow here is a link to the original post titled Roses are #ff0000 , hope you enjoy it as much as I did.
Its getting close to valentines day again so I thought some of you geeks out there would appreciate a post I made last november about a hack that was inspired by an XKCD comic.
Anyhow here is a link to the original post titled Roses are #ff0000 , hope you enjoy it as much as I did.
Bruce Schneier is very sceptical about the new hard drive encryption standards released by a group composed of virtually all major storage vendors. He points out that the established software solutions have worked just fine, while this new standards adds complexity (and probably flaws, too) at the hardware level. I'm not so sure myself in which direction the balance goes:
On Saturday (7 February), I should be attending both The Phone Co-op AGM and The Phone Co-op Members Workshop before it. I ll be asking a question at the AGM, if we can get the wording nailed down in time.
Sadly, travel from Bristol to Chipping Norton by train is totally screwed by engineering works near Didcot and the usual poor connections from the cross-country line, so I ll be making a 2 hour car journey instead of a 5 hour train+bus combination. If you re travelling from the Bristol area and can car-share, please get in touch.
Next Tuesday/Wednesday is Voice09 in Birmingham and I should be there if things come together in time. This is the Social Enterprise Coalition s annual conference. Conservative Party leader David Cameron MP will open as keynote speaker, with Liam Byrne MP, Minister for the Cabinet Office, opening on Wednesday. Would live-blogging or similar be interesting to people reading this?
If you d like to meet up at either event, get in touch somehow - comments here, instant message, email, or phone. If you ve something you d like to send to either, also get in touch.
join is a strange beast.
Let's say you have two files, which are textual records using TAB
as separator, containing different columns beside the first one,
which is the record key. Using join you can do cool stuff like
join file1 file2 to obtain a join in the relations
sense, by default on the first column.
The join manpage states that
the two fields must be sorted on the join field. This is of course
to avoid complexity explosion. The annoying thing is that if you
forget to do that, you will miss tuples, without any warning, which
is not good (and can actually be at least spotted avoiding
complexity explosion ...). So yeah, if I'm here it's because
after having been hit by this, I finally read the fine manpage
But how to sort on the join field? Turns out that dear old
sort -u file sponge
file is not enough. Why? Because by default it will
use all keys to sort and then you will end up sorting also
on data values; needless to say that such sorting methods is not
stable among the two different files you want to sort in turn.
OK then, let's try with sort -u -k 1 file sponge
file. Not even, but close. ... because sort with this syntax will
start sorting at key 1 (which is the default), but then
continue sorting with the other keys, in the hope of doing you a
favour.
The magic line is then sort -u -k 1,1 file sponge
file, which tells sort to (damn) sort using
only the first (damned) key and stopping there. Thank you
sort. Have a nice day.
Next.