Re: [9fans] threads vs forks
That's a fact. If you have access to The ACM Queue, check out p16-cantrill-concurrency.pdf (Cantrill and Bonwich on concurrency). Or you can rely on one of the hackish attempts at email attachment management or whatever conceptual error lead to this : https://agora.cs.illinois.edu/download/attachments/18744240/p16-cantrill.pdf?version=1 courtesy of a google datacentre near you
Re: [9fans] my /dev/time for Linux
nice one. Getting it upstream would be great. Another you know Y that's in Linux now, it's from Plan9, but if you want Plan9 you know where to find it (unless it's down today).
[9fans] pdf2txt anyone??
hi all!! seeking existing solutions to PDF -- txt extraction before i dive to rewriting xpdf to C. i hope that [page /|| gs] must be capable of it ... best regards, ++pac
[9fans] (no subject)
-Original Message- From: 9fans-boun...@9fans.net on behalf of mattmob...@proweb.co.uk Sent: Mon 2/23/2009 1:13 AM To: 9fans@9fans.net Subject: [9fans] actionfs Hi, this one was an experiment /n/sources/contrib/maht/actionfs.c invoked with a regex like actionfs (file.mpg).([0-9]+).(ppm) if you then cat /n/actionfs/file.mpg.100.ppm actionfs responds with the output from executing /bin/action-read $fd file.mpg.100.ppm file.mpg 100 ppm where $fd will be an fd to write to i.e. trivially action-read would be something like #!/bin/rc fd = $1 shift echo $* /fd/$fd - The coresponding action-write also works #!/bin/rc fd = $1 shift cat /fd/$fd /dev/null # or whatever - I wrote it specifically to extract individual frames from video files using ffmpeg on Linux and bring them into Plan9 for processing but generalized the arguments in case I thought of something interesting later. My first round of experiment went like this cpu% cat /bin/action-read #!/bin/rc # expect fd fullname videoname frameno fname = `{echo -n $3 | tr ! '/'} { ssh storm single_frame $fname $4 } /fd/$1 cpu% cat /n/storm/home/maht/bin/single_frame #!/usr/local/plan9/bin/rc # expect filename frameno timer = `{echo $2 | awk ' { printf %d.%02d\n, $1/ 25, 4 * ($1 % 25) }'} { ffmpeg -i $1 -t 00.001 -ss $timer /tmp/frame_$pid ^_%d.ppm cat /tmp/frame_$pid ^_1.ppm rm -f frame_$pid ^_1.ppm rm -f frame_$pid ^_2.ppm # stupid ffmpeg outputs 2 frames (sometimes) } [2] /dev/null I was then using imgfs to calculate the average rgb value to look for black frames but (unsurprisingly) it was taking too long (4 secs per frame) esp. as the Plan9 I was using is in Qemu, cue installing Plan 9 on my terminal. The ffmpeg part on the Linux side (2Ghz Opteron) was taking 1 second on its own so I have to come up with some sort of look ahead cache which is contrary to the idea, I may as well just convert the whole file to ppms at the start! I've not looked if it is I/O or CPU - perhaps a bit of both. I've not got round to doing it on my fresh terminal yet. I've got a new 3.2Ghz Dual Xeon server to migrate to and a Quad Core terminal to play with so we'll see how that works out. I was hoping to get Xcpu in there but I couldn't see how to get the Plan9 part working though I have the Linux bits up. I have a couple of decent OSX boxes available too (one PPC one Intel) but I gave up getting it to compile :) too many projects . matt winmail.dat
Re: [9fans] GSoC 2009
Search Google groups for Plan9-gsoc :) 2009/3/5 hugo rivera uai...@gmail.com Well, I asked about GSoC 2009 some weeks ago and I got no reply here. I certainly would like to apply as a student, but I am no sure if I qualify (in one hand I am kind of a student, and on the other I probably need to learn a lot more about plan 9). In any case, I would like to see how this evolves. Saludos 2009/3/4, Anthony Sorace ano...@gmail.com: So, the web site's up, program is announced, and so on. Was anyone planning on doing a Plan 9 application? I'm willing to help, if anyone was planning on it, or lead, if not. In the later case, I'd appreciate help (any of advice, materials, or labor) from people who were involved in our last two applications. Anthony -- Hugo -- С наилучшими пожеланиями Жилкин Сергей With best regards Zhilkin Sergey
Re: [9fans] GSoC 2009
2009/3/4 Anthony Sorace ano...@gmail.com: So, the web site's up, program is announced, and so on. Was anyone planning on doing a Plan 9 application? I'm willing to help, if anyone was planning on it, or lead, if not. In the later case, I'd appreciate help (any of advice, materials, or labor) from people who were involved in our last two applications. Anthony Anthony, Let's catch up off-list to discuss this. There's a bunch of stuff to do. --dho
Re: [9fans] mounting plumber from p9p to 9vx
Can you also write to 9vx's plumber? Sure; it's just a question of which you are trying to get to. Russ
Re: [9fans] mounting plumber from p9p to 9vx
2009/3/5 Russ Cox r...@swtch.com: Can you also write to 9vx's plumber? Sure; it's just a question of which you are trying to get to. Is it in how I start the plumber in 9vx, or how I serve it? I've been trying to serve it with exportfs and use p9p 9p to poke around to find it. I'm just man page surfing, though, as I've never really done networking with Plan 9 before, just read some papers. -- Tom Lieber http://AllTom.com/
Re: [9fans] GSoC 2009
As Sergey pointed out, there is a google groups for discussing this topics (there is also one only for mentors if you like, where I think both of you are members). http://groups.google.com/group/plan9-gsoc I have started to work on bringing http://gsoc.cat-v.org up to date... uriel On Thu, Mar 5, 2009 at 3:49 PM, Devon H. O'Dell devon.od...@gmail.com wrote: 2009/3/4 Anthony Sorace ano...@gmail.com: So, the web site's up, program is announced, and so on. Was anyone planning on doing a Plan 9 application? I'm willing to help, if anyone was planning on it, or lead, if not. In the later case, I'd appreciate help (any of advice, materials, or labor) from people who were involved in our last two applications. Anthony Anthony, Let's catch up off-list to discuss this. There's a bunch of stuff to do. --dho
Re: [9fans] pdf2txt anyone??
This may work for you but your mileage may vary. /n/sources/contrib/steve/rc/ps2txt -Steve
Re: [9fans] Porter-Duff alpha blending
ok, i think i am close, but i can go no further. here's what i did: - view all images through ppm instead of png. what that means is that i can do toppm $i $i.ppm in 9vx and then see them on the hosting Linux. since ppm is rather simple (doesn't do any draw ops but just dumps the bytes) it is good for viewing both inside Plan9 and outside (eog, in this case, which apparently stands for eye of gnome) - use libmemdraw with the default drawop (SoverD) with no libdraw conversions, i.e. don't display anything on screen. as soon as it was established that libmemdraw-ed images exhibit the same issue it was obvious that libmemdraw is the culprit - confirm that rgba2img and img2rgba are not the culprits (that's accomplished by testing that memimagefill(), which uses only rgba2img() works fine. then i dug deep into libmemdraw/draw.c, especially alphadraw(). it turned out after a lot of looking that the offending code is in alphacalc11(). with debugging turned on and a few extra print() statements it turned out that writebyte() was getting completely messed destination values. it turned out that a source 0x with mask 0xFF/0xFF will be turned by alphacalc11() into: 0xFEFE, or, in memdraw debugging terms (the last debugging statement is right underneath calc() in alphadraw()): src rFF gFF bFF αFF mask kFF αFF dst r00 g00 b00 αFF dst after calc rFE gFE bFF αFF what's worse, the error is much more pronounced when drawing single colors (here red is turned into yellow): src rFF g00 b00 αFF mask kFF αFF dst r00 g00 b00 αFF dst after calc rFE gFE b00 α00 things become weird down the road: src rCC g00 b00 αCC mask kFF αFF dst r00 g00 b00 αFF dst after calc rCB gCB b00 α33 the change below _seems_ to avoid the problem and results in correct images being generated, although those familiar with the code should be able to better figure out what breaks when q=1. % diff draw.c /n/sources/plan9/sys/src/libmemdraw/draw.c 996c996 q = 0;//bsrc.delta == 4 bdst.delta == 4; --- q = bsrc.delta == 4 bdst.delta == 4; %
Re: [9fans] pdf2txt anyone??
Thanks, Steve! Have a great day, ++pac -Original Message- From: 9fans-boun...@9fans.net on behalf of Steve Simon Sent: Thu 3/5/2009 10:18 PM To: 9fans@9fans.net Subject: Re: [9fans] pdf2txt anyone?? This may work for you but your mileage may vary. /n/sources/contrib/steve/rc/ps2txt -Steve winmail.dat