Name: Joey Hess
Member since: 2000-03-06 23:42:41
Last Login: 2007-08-10 02:38:55
Homepage: http://kitenet.net/~joey
lazyweb: git cia hooks
Dear LazyWeb,
I use the standard ciabot.pl script in a git post-receive hook. This
works ok, except in the case where changes are made in a published branch,
and then that branch is merged into a second published branch.
In that case, ciabot.pl reports all the changes twice, once when they're
committed to the published branch, and again when the branch is merged.
This is worst when I sync up two branches; if there were a lot of changes
made on either branch, they all flood into the irc channel again.
Am I using the ciabot.pl script wrong, or is there a better script I should
use? Or maybe there's a CIA alternative that is smarter about git commits,
so it will filter out duplicates?
Here, FWIW, is how I currently use it in my post-receive hook.
while read oldrev newrev refname; do
refname=${refname#refs/heads/}
[ "$refname" = "master" ] && refname=
for merged in $(git rev-list --reverse $newrev ^$oldrev); do
ciabot_git.pl $merged $refname
done
done
random media
Just some stuff I've been rotting my mind with late at night lately..
The British reality series Shipwrecked (of all things!!) is the only reality TV I've ever really enjoyed beyond the first few seasons of the Amazing Race. I enjoy it for many low reasons, plus it tickles a sociological interest, without being real enough for that to be anything but an idle entertainment. But the best parts are that many of the people don't treat it as a game (especially the thirdies after 3 months), and that they seem to have come up with a format this season that can never be done again. So, mind rotting entertainment with a built-in expiration date, and a pesudo-intellectual tang. What's not to like?
David Gerrold's Jumping Off The Planet channels Heinlein basically perfectly, modulo being written for a comtemporary audience. Sorry, Spider, I know you tried, but I could actually hear RAH talking in the pages of this juvenile.
The Website Is Down is both the funniest and the most depressing web video ever. Meanwhile, the mini-documentary Possessed explores a trap that's hardwired into us -- I wish that other human foibles could be highlighted like this does, because if you identify with the people in it at all, you'll change. (If you still can.)
there can be only one
Yay! Thanks to Lennart people are actually talking about how VCS diversity is a problem.
And Lennart thinks that maybe, instead of the slow drift toward VCS convergence and interoperability that I've been expecting, we might instead reach a point where everyone decides that there can be only one.
I'm reminded of 1993. Using the internet at that time involved using a mishmash of stuff -- Telnet, FTP, Gopher, strange things called Archie and Veronica. Or maybe this CERN "web" thing that Tim Berners-Lee had just invented a few years before, but that mostly was useful to particle physicists.
Then in 1994 a few more people put up web sites, then more and more, and suddenly there was an inflection point. Suddenly we were all browsing the web and all that other stuff seemed much more specialised and marginalised.
You can argue that this was essentially a popularity contest, that Worse Is Better suggests we didn't pick the best solution; that the web/git, at its core, sucks, or that gopher/svn rulez. Heck, I've espoused most of these positions myself.
But the reality of network effects can be very strong, and reality can trump all these ideal-world arguments whether we like it or not.
Previously: The New Portability Nightmare
delayed gratification
I got a mail today from someone who wrote a game in the early 90's, and then forgot about it. Meanwhile, his game was one of the first packages I put in Debian in 1996, and it remained in the distribution for the intervening decade, accumulating various bugfixes and improvements from users.
Finally, in 2008, he typed the name of his old game into google, and found the package, and mailed me
So thank you for maintaining that little bit of history as much as you did, it put a smile on my face.
Ditto!
fujitsu p7120 laptop keyboard replacement
Can't find any documentation about this on the web, and it's a PITA, so here goes.
Note: No pictures. I was too scared to take time out to take pictures.
Disassembly is not hard at first. Three screws hidden over the battery pack allow removing the cover over the power button and wireless switch, which then frees 4 tabs that lock the top of the keyboard down.
My keyboard was also taped down with double-sided tape, and glued down. This is the part I hate, both because I still haven't accepted that the common way to put together consumer electorinics is tape and glue, and because it's never possible to get it apart undamaged. I pried the keyboard up from the top, pushing under to untape/glue, and taking care of the cable. There was also a flap of plastic stuck down over the cable, which had to be peeled away. Many clips on the bottom of the keyboard hold it in place and have to be slipped out. I ended up slightly bending the arrow keys of the keyboard in yanking it out, though I think they'd still be ok-ish. Luckily I was putting in a new one.
Removing the keyboard cable was strange. Its socket is not the typical kind you can life to unlock. The socket is one piece and does not move at all. I eventually just pulled the cable out of it. This is where I started to get very nervous.
Replacing the cable was a PITA. You have to bend its end at a 90 degree angle, and then just line it up and press it down into the socket. Hard. And rub along it and do whatever you can to get enough force exerted down the thin cable strip to make it slip far enough into the socket to work.
I booted up the laptop several times while doing this, to test if I had managed to get it working. Eventually I had.
Then I very carefully reseated the keyboard, and replaced the cover and screws.
Unfortunatly, the tape and glue was doing something. The new keyboard is very springy in the middle, where that held it down before. So I will have to take it apart again and put on some new double-sided tape or something eventually.
Conclusions:
joey certified others as follows:
Others have certified joey as follows:
[ Certification disabled because you're not logged in. ]
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!