Re: [9fans] video of an acme session

2008-02-27 Thread Bruce Ellis
no, skip did most of the work. i just reminded him how neat
plan9 is and, as usual, that most of the work is already done
for you.

brucee

On Wed, Feb 27, 2008 at 8:49 PM, Skip Tavakkolian [EMAIL PROTECTED] wrote:
 here's a screen capture of an acme session that might be useful to
 those who are new to acme.  i've put the tools (mspy script and
 tippi.c) that were used to follow the mouse buttons on sources.  with
 brucee's help it went together quickly and he did the hard bit in mspy
 plumbing.

 i used the windows media encoder (free download from microsoft).

 http://www.rangboom.com/videos/acme_session.wmv


[9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
here's a screen capture of an acme session that might be useful to
those who are new to acme.  i've put the tools (mspy script and
tippi.c) that were used to follow the mouse buttons on sources.  with
brucee's help it went together quickly and he did the hard bit in mspy
plumbing.

i used the windows media encoder (free download from microsoft).

http://www.rangboom.com/videos/acme_session.wmv



Re: [9fans] video of an acme session

2008-02-27 Thread Geoffrey Avila

I cheated and used XP on Parallels. Usually, Flip4Mac works with .wmvs,
but not this time. Is there supposed to be an audio track?

-GBA




  i used the windows media encoder (free download from microsoft).

 that may or may not have been an unfortunate choice;
 on a mac with osx 10.5 (leopard) I'm so far unable to view it.
 (maybe a more experienced mac user can view it?)

 Axel.




Re: [9fans] awk, not utf aware...

2008-02-27 Thread erik quanstrom
 There is split and other functions,
 for example:
 
 toupper(aí)
 gives
 Aí
 
 My guess is that there are many more little (or not) corners where it
 doesn't work.
 We can go on and on looking for crevices and hiding the bugs further
 under the rug
 so that they are not evident and find everyone completely unaware,
 leave awk as it is now or really fix the problem. The first approach
 doesn't work. I am going to take
 the second till I have time to take the third which means use runes or
 at least revise all the
 code so that it is uniformly aware of the existance of non-ascii characters.

i don't understand this approach.  you propose redoing a fundamental
part of awk.   yet at the end you won't have solved the bug that's bothering
you.

ignoring the fact that awk is an ape program and doesn't use runes, the
problem with toupper is independent of the internal representation
of strings. as far as i can tell, ape doesn't even have towupper and towlower.

so if you provide those functions, fixing toupper and tolower could be
a 5 minute fix.  and you know you won't have broken anything else.

/sys/doc/utf.ps is worth a read.  it's not to hard to think of situations
that depend on character boundaries or operate on non-ascii characters.
generally there are few.  for example, rc only bothers with character
boundaries in matching. perhaps you could build a utf testsuite for awk.
make sure to use non-latin1 languages, too.

- erik


Re: [9fans] video of an acme session

2008-02-27 Thread Axel Belinfante
 i used the windows media encoder (free download from microsoft).

that may or may not have been an unfortunate choice;
on a mac with osx 10.5 (leopard) I'm so far unable to view it.
(maybe a more experienced mac user can view it?)

Axel.


Re: [9fans] video of an acme session

2008-02-27 Thread Uriel
Ah, I love how 9fans has become a mac tech support group...

Maybe it is time we offocially rename the list to jobsFans or something.

uriel

On Wed, Feb 27, 2008 at 11:32 AM, Geoffrey Avila [EMAIL PROTECTED] wrote:

  I cheated and used XP on Parallels. Usually, Flip4Mac works with .wmvs,
  but not this time. Is there supposed to be an audio track?

  -GBA






i used the windows media encoder (free download from microsoft).
  
   that may or may not have been an unfortunate choice;
   on a mac with osx 10.5 (leopard) I'm so far unable to view it.
   (maybe a more experienced mac user can view it?)
  
   Axel.
  




Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
 that may or may not have been an unfortunate choice;
 on a mac with osx 10.5 (leopard) I'm so far unable to view it.
 (maybe a more experienced mac user can view it?)

maybe somebody can transcode it to mp4 or flash video.



Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
 I cheated and used XP on Parallels. Usually, Flip4Mac works with .wmvs,
 but not this time. Is there supposed to be an audio track?

if i had a voice like forsyth, there might have been one.

besides, we didn't want to wake up tippi.



Re: [9fans] video of an acme session

2008-02-27 Thread Bruce Ellis
gotta love gmail ads ...

Seattle MacSOS Support - SeattleMacSOS.com - Your Personal Mac
Lifesaver Apple Certified Helpdesk Specialist

give them a call!

brucee

On Wed, Feb 27, 2008 at 9:41 PM, Uriel [EMAIL PROTECTED] wrote:
 Ah, I love how 9fans has become a mac tech support group...

 Maybe it is time we offocially rename the list to jobsFans or something.

 uriel


 On Wed, Feb 27, 2008 at 11:32 AM, Geoffrey Avila [EMAIL PROTECTED] wrote:
 
   I cheated and used XP on Parallels. Usually, Flip4Mac works with .wmvs,
   but not this time. Is there supposed to be an audio track?
 
   -GBA
 
 
 
 
 
 
 i used the windows media encoder (free download from microsoft).
   
that may or may not have been an unfortunate choice;
on a mac with osx 10.5 (leopard) I'm so far unable to view it.
(maybe a more experienced mac user can view it?)
   
Axel.
   
 
 



Re: [9fans] GSoC 2008

2008-02-27 Thread Sergey Zhilkin
Inferno plugin ? :) Again ... :)

2008/2/26, Eric Van Hensbergen [EMAIL PROTECTED]:

 Perhaps this has all been worked out on some super-secret mailing list
 or IRC channel - but what's the plan of record for GSoC 2008?  We've
 got till the 12th of March to work something out.


-eric




-- 
С Уважением
Жилкин Сергей


[9fans] GSOC 2008

2008-02-27 Thread Eric Van Hensbergen
(reposting as my initial post bounced because it had too many recipients)
(Cross-posted into inferno-list, v9fs-developer, plan9-gsoc, and
plan9-gsoc-mentors)

Okay, from the deafening silence outside of students and project
nominations, it sound like we better get cracking.  At the very least
folks should start thinking up project ideas and people should decide
whether or not they will be available to mentor.  For folks unaware of
GSoC (aka Google Summer of Code), here's the link:
http://code.google.com/soc and also a link to last year's Plan 9 GSoC:
http://gsoc.cat-v.org/

I started a toplevel wiki page:
http://plan9.bell-labs.com/wiki/plan9/GSoC2008/index.html for people
to post interest and ideas -- although I think it would be a good idea
to post project ideas in the gsoc mailing list (one message per idea)
to make discussion easier -- vetted ideas can then be transfered to
the wiki.

Its probably also appropriate to start discussing guidelines for
project ideas and rules of engagement for how we are going to manage
project selection, mentor assignment, and student selections this year
as well as discuss volunteers and nominations for project
administrators.

All of this should probably happen in the plan9-gsoc mailing list
(http://groups.google.com/group/plan9-gsoc) to allow folks to opt-in
to the noise, so this will be my last cross-post.  I'm cc:'ing the
inferno list and v9fs-developer list as those projects participated in
the Plan 9 GSoC last year (and will likely do so again this year).

 -eric


Re: [9fans] video of an acme session

2008-02-27 Thread lejatorn
In case anyone's interested, here's a quick and dirty reencode in h264:

http://www.ipgp.jussieu.fr/~lonjaret/acme_session.avi

my encoding skills are rusty and it seems mencoder does not deal well
with .wmv as input, that's why the size is way bigger than the
original :/
but hey, b/w is cheap nowadays...
If requested, I'll try to do a better one later.

Cheers,
Mathieu.

On Wed, Feb 27, 2008 at 02:42:04AM -0800, Skip Tavakkolian wrote:
  that may or may not have been an unfortunate choice;
  on a mac with osx 10.5 (leopard) I'm so far unable to view it.
  (maybe a more experienced mac user can view it?)
 
 maybe somebody can transcode it to mp4 or flash video.
 

-- 
GPG key on subkeys.pgp.net:

KeyID:  | Fingerprint:
683DE5F3 | 4324 5818 39AA 9545 95C6 09AF B0A4 DFEA 683D E5F3
--


Re: [9fans] video of an acme session

2008-02-27 Thread Axel Belinfante
thanks Mathieu, Skip, Brucee; looking at it now.

Axel.

 In case anyone's interested, here's a quick and dirty reencode in h264:
 
 http://www.ipgp.jussieu.fr/~lonjaret/acme_session.avi
 
 my encoding skills are rusty and it seems mencoder does not deal well
 with .wmv as input, that's why the size is way bigger than the
 original :/
 but hey, b/w is cheap nowadays...
 If requested, I'll try to do a better one later.
 
 Cheers,
 Mathieu.
 
 On Wed, Feb 27, 2008 at 02:42:04AM -0800, Skip Tavakkolian wrote:
   that may or may not have been an unfortunate choice;
   on a mac with osx 10.5 (leopard) I'm so far unable to view it.
   (maybe a more experienced mac user can view it?)
  
  maybe somebody can transcode it to mp4 or flash video.
  
 
 -- 
 GPG key on subkeys.pgp.net:
 
 KeyID:| Fingerprint:
 683DE5F3 | 4324 5818 39AA 9545 95C6 09AF B0A4 DFEA 683D E5F3
 --


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-27 Thread Enrico Weigelt
* John Barham [EMAIL PROTECTED] wrote:

 If you just want to serve static content on Unix/FreeBSD, Dan
 Bernstein's HTTP server in his publicfile package
 (http://cr.yp.to/publicfile.html) is one option.  Considering his
 reputation for writing secure software it's probably as good a choice
 as any.

Beware: this reputation is limited to secure - installing and
maintenance of DJB-packages is really ugly ! (actally, I wouldn't
cause this stuff packages, but collections of code fragments).

Did you ever try to building qmail ? 
For some customer, I had to get it built in our automated image
builder (which does evrything from scratch wit an sysroot'ed
cross-toolchain). Required me to completely rewrite all makefiles.

If such things happen in beta versions, okay. But I never would 
call some package stable as long as it doesn't build cleanly
out-of-th-box ;-O


BTW: if you're looking for an lightweight httpd for *nix 
platforms, you might consider lighttpd.


cu
-- 
-
 Enrico Weigelt==   metux IT service - http://www.metux.de/
-
 Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
-


Re: [9fans] troff -man prints poorly

2008-02-27 Thread Russ Cox
 troff -ms bla.ms|lp -dstout| aux/download -H/sys/lib/postscript/font
 -mfontmat|lp -H -d printername
 
 That has the same end result for me as just doing troff -man foo | lp

Yes, it would.  However, if you spell fontmap right, it should work.
Also the -H option is doing anything here -- that directory is already the 
default.

cpu% troff -man /sys/man/1/cat | lp -dstdout | aux/download -mfontmat | wc
8492474   15261
cpu% troff -man /sys/man/1/cat | lp -dstdout | aux/download -mfontmap |wc
   43377366  268301
cpu% 

Russ



Re: [9fans] awk, not utf aware...

2008-02-27 Thread Sape Mullender
 There is split and other functions,
 for example:
 
 toupper(aí)
 gives
 Aí
 
 My guess is that there are many more little (or not) corners where it
 doesn't work.

Yes, and then there is locale: does [a-z] include ij when you run it
in Holland (it should)?  Does it include á, è, ô in France (it should)?
Does it include ø, å in Norway (it should not)?  And what happens when
you evaluate è  o (it depends)?

Fixing awk is much harder than anyone things.  I had a chat about it with
Brian Kernighan and he says he's been thinking about fixing awk for a
long time, but that it really is a hard problem.

Sape



Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
  that may or may not have been an unfortunate choice;
  on a mac with osx 10.5 (leopard) I'm so far unable to view it.
  (maybe a more experienced mac user can view it?)
 
 maybe somebody can transcode it to mp4 or flash video.

for mac users:
http://www.rangboom.com/videos/acme_session.mov

fearing reprisal, the person who created the quicktime version wants
to stay anonymous.  so, on behalf of myself and the entire mac support
team we would like to thank audrey for doing this ☺



Re: [9fans] troff -man prints poorly

2008-02-27 Thread Gorka Guardiola
On Wed, Feb 27, 2008 at 4:54 PM, Russ Cox [EMAIL PROTECTED] wrote:
  troff -ms bla.ms|lp -dstout| aux/download -H/sys/lib/postscript/font
   -mfontmat|lp -H -d printername
  
   That has the same end result for me as just doing troff -man foo | lp

  Yes, it would.  However, if you spell fontmap right, it should work.
  Also the -H option is doing anything here -- that directory is already the 
 default

upps. sorry it was a typo :-). The -H is probably because
my default directory is broken, I am in an schizophrenic
plan B/plan 9/paureas broken namespace/drawterm
limbo where you cannot trust any default anymore.


-- 
- curiosity sKilled the cat


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-27 Thread Steve Simon
fgb pointed me to TDs web server on IRC the other day,
its really aimed at embedded devices but I would trust
his code.

http://www.iq0.com/duffgram/http.c

-Steve


Re: [9fans] Non-stack-based calling conventions

2008-02-27 Thread lucio
 That would be fun, but you'd have to find Exec 8, right?

Well, I suppose, if only because the EXEC subset of the assembler
language was so unfamiliar :-)

But the head of computing at the University of Cape Town used to be an
international expert on Exec 8, so he may still have a copy.

Now that you remind me, load function in channel never really meant
a thing to me, so I think I'll skip being clever.

Oh, as for the drum, at UCT we had frequency fluctuations in the
mains, causing the synchronous motors of the drum to speed up and slow
down, causing parity errors.  Given that the exec code lived on drum,
swapping it in under such conditions caused lock ups.  Took many
months to pin it down to supply problems.

++L



Re: [9fans] GSOC 2008

2008-02-27 Thread hiro
I would love to be a student, especially cause this year I really have
a lot of time to spend until i will do a winter semester.

Why didn't you just use that old list of ideas? I think there was more
than one page already, full with ideas from last year. Fuck, it feels
like i did my last years application like a few weeks ago. I must have
wasted my time in a very stupid way.

--
hiro


Re: [9fans] GSOC 2008

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 11:28 AM, hiro [EMAIL PROTECTED] wrote:

  Why didn't you just use that old list of ideas? I think there was more
  than one page already, full with ideas from last year. Fuck, it feels
  like i did my last years application like a few weeks ago. I must have
  wasted my time in a very stupid way.

clean start is better. We have a better idea of what will and won't
work. But if you had a great idea, just resubmit.

And any US citizens on this list can apply to sandia.gov to work for
me on Plan 9 this summer in california.

foreigners are harder but I am hoping not impossible -- still working on it.
ron


Re: [9fans] awk, not utf aware...

2008-02-27 Thread Uriel
None of those issues are specific to AWK, they apply just as well to
sed(1) or any program dealing with regexps. I think the plan9 tools
demonstrate that it is not so hard to find a 'good enough' solution;
and the lunix locale debacle demonstrate that if you want to get it
'right' you will end up with a nightmare.

The problem with awk is that it is not a native plan9 app, and it
simian nature shows in too many places. For example system() and | are
badly broken:

%  echo |awk '{print |echo $KSH_VERSION}'
@(#)PD KSH v5.2.14 99/07/13.2

Boyd made a native port of awk that fixed most (all?) of this issues,
it can be found somewhere in his contrib dir but I don't think is
production-ready.

uriel

On Wed, Feb 27, 2008 at 4:54 PM, Sape Mullender
[EMAIL PROTECTED] wrote:
  There is split and other functions,
   for example:
  
   toupper(aí)
   gives
   Aí
  
   My guess is that there are many more little (or not) corners where it
   doesn't work.

  Yes, and then there is locale: does [a-z] include ij when you run it
  in Holland (it should)?  Does it include á, è, ô in France (it should)?
  Does it include ø, å in Norway (it should not)?  And what happens when
  you evaluate è  o (it depends)?

  Fixing awk is much harder than anyone things.  I had a chat about it with
  Brian Kernighan and he says he's been thinking about fixing awk for a
  long time, but that it really is a hard problem.

 Sape




Re: [9fans] video of an acme session

2008-02-27 Thread Rob Pike
There's something broken in that video.  The mouse doesn't move to the
selection on a button 3 operation.

-rob


Re: [9fans] GSOC 2008

2008-02-27 Thread don bailey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 And any US citizens on this list can apply to sandia.gov to work for
 me on Plan 9 this summer in california.
 

Seriously? What's the pay look like?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHxchIyWX0NBMJYAcRAlocAJ9/z7IK5Ts5pAqw7yQ4Yuq8G27cmACfae/q
oSODuuyvV5jzCilLUFq1Hbg=
=fP5E
-END PGP SIGNATURE-


[9fans] GSOC 2008 project

2008-02-27 Thread maht

Assembler for Dis in Limbo

I could do with one :)



Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
 There's something broken in that video.  The mouse doesn't move to the
 selection on a button 3 operation.

good eye. yes i noticed it and briefly discussed it with brucee last night. i'm 
looking
at it now.

i fixed the (lack of) redrawing in tippi window after a move or reshape but 
before
any mouse activity.



Re: [9fans] today's quiz

2008-02-27 Thread hiro
What a coincidence. Just today i participated in a Linux Network
Administrator course. I just went there for the heck of it, not to
learn anything. I was surprised though, about the amount i did learn.
For example I learned about how...
 * gcc
 * Kde
 * Bash
 * Suse
 * Gnu in general
 * Linux in general
 * Linux Network Administrators
all suck ass.

One of the biggest highlights was definitely how the mentor tried to
compile gcc.

I was already flooding the machine with ssh login attempts at this
time, because some random PAM feature showed us on the big screen,
that he was changing his root password to a word from the directory.
He did that to prevent us accessing the machine any more, because we
were doing funny stuff with his account after someone got that
password yesterday.

I was waiting for the directory attack to finish for two hours, but
the machine was really slow with that compiler still running.

But I got access to the mentor's ftp in an other lame way and changed plans:
Shortly afterwards I could see him type su, which executed my script in ~/bin/.
He wrote my ssh key to /root/.ssh/authorized_keys with sudo and went
on showing us how to configure the nfs server to be secure.

Everything got really funny. I made a loop containing killall
konsole; sleep 360 and interfered with other kde windows in
interesting ways. That is of course annoying if you are trying to
compile gcc in a konsole.
He sadly started X as root then, forcing me to try that vmsplice exploit.
Of course it compiled in a second or so. I played around a little,
tested how fit the mentor was with faults in X configs and just before
the stupid course ended, I finally froze everything in this worthy
condition to prove that shell dos from the other thread was working.
Strangely csh, zsh, csh, tcsh, and even bash were all not vulnerable.
Only zsh proved itself capable of this great feature.

Conclusions:
Linux is not designed for Network Administration.
This would not have happened with Plan 9 from Bell Labs!

Does anyone know other interesting things to try in the rest of the
week? Or should I rather use my time there to learn more about plan9
and inferno?*g*

--
hiro


Re: [9fans] GSOC 2008

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 12:30 PM, don bailey [EMAIL PROTECTED] wrote:

  Seriously? What's the pay look like?

well it's student pay. It's an intern position.

ron


Re: [9fans] GSOC 2008

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 1:43 PM, hiro [EMAIL PROTECTED] wrote:

  But they will rather want a bit more experienced people, won't they?

well, you can apply and see.

we don't assume students are all 30-years grizzled veterans.

ron


Re: [9fans] GSOC 2008

2008-02-27 Thread andrey mirtchovski
  we don't assume students are all 30-years grizzled veterans.

you just turn them into ones ;)

seriously though, as a former intern of Ron's I can only recommend it!
there's no better way to learn new skills and Ron is a great mentor
and a fine master of the programming sword.

everybody who fits the criteria should consider applying for the job!


Re: [9fans] GSOC 2008

2008-02-27 Thread john
 On Wed, Feb 27, 2008 at 12:30 PM, don bailey [EMAIL PROTECTED] wrote:
 
  Seriously? What's the pay look like?
 
 well it's student pay. It's an intern position.
 
 ron

The pay is pretty good for me, not that I would complain about a raise
or anything.  The student pay scales are based on the number of
credits you have completed with your school.


John



Re: [9fans] GSOC 2008

2008-02-27 Thread Sape Mullender
 we don't assume students are all 30-years grizzled veterans.

I'm not grizzled!

Sape



Re: [9fans] GSOC 2008

2008-02-27 Thread Eric Van Hensbergen
On Wed, Feb 27, 2008 at 4:09 PM, Sape Mullender
[EMAIL PROTECTED] wrote:
  we don't assume students are all 30-years grizzled veterans.

  I'm not grizzled!


we were talking about Gorka.


Re: [9fans] GSOC 2008

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 2:10 PM, Eric Van Hensbergen [EMAIL PROTECTED] wrote:

  we were talking about Gorka.


I added at least 20 years to his age when I fixed his Mac.

ron


Re: [9fans] GSOC 2008

2008-02-27 Thread Eric Van Hensbergen
key word - Fixed

On Wed, Feb 27, 2008 at 4:24 PM, ron minnich [EMAIL PROTECTED] wrote:
 On Wed, Feb 27, 2008 at 2:10 PM, Eric Van Hensbergen [EMAIL PROTECTED] 
 wrote:

we were talking about Gorka.
  

  I added at least 20 years to his age when I fixed his Mac.

  ron



Re: [9fans] GSOC 2008

2008-02-27 Thread erik quanstrom
like a dog?

- erik

 key word - Fixed
 
 On Wed, Feb 27, 2008 at 4:24 PM, ron minnich [EMAIL PROTECTED] wrote:
  On Wed, Feb 27, 2008 at 2:10 PM, Eric Van Hensbergen [EMAIL PROTECTED] 
  wrote:
 
 we were talking about Gorka.
   
 
   I added at least 20 years to his age when I fixed his Mac.
 
   ron


Re: [9fans] GSOC 2008

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 2:36 PM, erik quanstrom [EMAIL PROTECTED] wrote:
 like a dog?

More like a pine box.

ron


Re: [9fans] Soekris 5501s (was kenfs)

2008-02-27 Thread ron minnich
On Wed, Feb 27, 2008 at 3:07 PM, erik quanstrom [EMAIL PROTECTED] wrote:

  does anyone know what gbe chip they're using in the '62?
  i couldn't find any documentation on their website.


I will try to check tonight or tomorrow. I have one at home all cracked open.

ron


Re: [9fans] video of an acme session

2008-02-27 Thread Felipe Bichued
somehow, i was only able to reproduce the bug if i had some selected
text in the tag bar, and tried to click over it with the 3rd button.
i'm not sure if that's the intended behavior, but it seems that it was
triggered by the expand function in /sys/src/cmd/acme/look.c.

/* if in selection, choose selection */
e-jump = TRUE;
if(q1==q0  t-q1t-q0  t-q0=q0  q0=t-q1){
q0 = t-q0;
q1 = t-q1;
if(t-what == Tag)
e-jump = FALSE;
}

removing the if along with it's body fixes it for me.

regards.

felipe

On Wed, Feb 27, 2008 at 6:22 PM, Skip Tavakkolian [EMAIL PROTECTED] wrote:
  There's something broken in that video.  The mouse doesn't move to the
   selection on a button 3 operation.

  good eye. yes i noticed it and briefly discussed it with brucee last night. 
 i'm looking
  at it now.

  i fixed the (lack of) redrawing in tippi window after a move or reshape but 
 before
  any mouse activity.




Re: [9fans] video of an acme session

2008-02-27 Thread Felipe Bichued
 just to be clear, i meant the t-what == Tag check.

On Wed, Feb 27, 2008 at 9:08 PM, Felipe Bichued [EMAIL PROTECTED] wrote:
 somehow, i was only able to reproduce the bug if i had some selected
  text in the tag bar, and tried to click over it with the 3rd button.
  i'm not sure if that's the intended behavior, but it seems that it was
  triggered by the expand function in /sys/src/cmd/acme/look.c.

 /* if in selection, choose selection */
 e-jump = TRUE;
 if(q1==q0  t-q1t-q0  t-q0=q0  q0=t-q1){
 q0 = t-q0;
 q1 = t-q1;
 if(t-what == Tag)
 e-jump = FALSE;
 }

  removing the if along with it's body fixes it for me.

  regards.

  felipe



  On Wed, Feb 27, 2008 at 6:22 PM, Skip Tavakkolian [EMAIL PROTECTED] wrote:
There's something broken in that video.  The mouse doesn't move to the
 selection on a button 3 operation.
  
good eye. yes i noticed it and briefly discussed it with brucee last 
 night. i'm looking
at it now.
  
i fixed the (lack of) redrawing in tippi window after a move or reshape 
 but before
any mouse activity.
  
  



Re: [9fans] video of an acme session

2008-02-27 Thread Russ Cox
  There's something broken in that video.  The mouse doesn't move to the
  selection on a button 3 operation.

 good eye. yes i noticed it and briefly discussed it with brucee last night. 
 i'm looking
 at it now.

this is almost never acme's fault.

probably you were using vnc to connect,
and your vnc client doesn't support being
told by the server to move the mouse cursor.

 somehow, i was only able to reproduce the bug if i had some selected
 text in the tag bar, and tried to click over it with the 3rd button.
 i'm not sure if that's the intended behavior

it is.

russ



Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
  just to be clear, i meant the t-what == Tag check.

that's not the problem. moveto is getting called (/sys/src/cmd/acme/look.c:149)
it also happens if you start rio with mspy. it's deeper.



Re: [9fans] video of an acme session

2008-02-27 Thread Skip Tavakkolian
 this is almost never acme's fault.

that's right.

 probably you were using vnc to connect,
 and your vnc client doesn't support being
 told by the server to move the mouse cursor.

i was using drawterm. without tippi in between, it works as expected, but
the moveto has no effect with it in the mix. just verified that the same thing
happens with term.



Re: [9fans] video of an acme session

2008-02-27 Thread Felipe Bichued
  that's not the problem. moveto is getting called 
 (/sys/src/cmd/acme/look.c:149)
  it also happens if you start rio with mspy. it's deeper.

all good. this is just another fine example of the XY problem.


[9fans] Fwd: Does sam have browse command

2008-02-27 Thread Hongzheng Wang
I checked the upe, and also the document of GNU ed.  It seems that the
`b' command is really a new feature.  Then, when such a browse command
was not here yet, how conveniently did users browse in page to page
manner in ed or sam -d?

Thanks.


-- Forwarded message --
From: Hongzheng Wang [EMAIL PROTECTED]
Date: Wed, Feb 27, 2008 at 11:40 AM
Subject: Does sam have browse command
To: Fans of the OS Plan 9 from Bell Labs 9fans@cse.psu.edu


Hi all,

 I notice that the ed editor shipped by Plan9 has a browse command b,
 which can be used to print a page for each invocation.  And I think it
 is a new feature (? I'm not sure in fact).  I wonder if sam has also
 such a convenient command?  Well, I know it is not necessary in sam
 since sam can use mouse language.  But it will be useful in
 non-download mode.

 Thanks.

-- 
HZ


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-27 Thread John Barham
Enrico Weigelt wrote:

  Beware: this reputation is limited to secure - installing and
  maintenance of DJB-packages is really ugly !

Not in my experience, and I daresay that if you do use his servers
(qmail and djbdns in particular) it's easier than rebuilding your
systems after the BIND and sendmail exploits du jour.

  John


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-27 Thread sqweek
On Thu, Feb 28, 2008 at 12:52 AM, Enrico Weigelt [EMAIL PROTECTED] wrote:
 * John Barham [EMAIL PROTECTED] wrote:

   If you just want to serve static content on Unix/FreeBSD, Dan
   Bernstein's HTTP server in his publicfile package
   (http://cr.yp.to/publicfile.html) is one option.  Considering his
   reputation for writing secure software it's probably as good a choice
   as any.

  Beware: this reputation is limited to secure - installing and
  maintenance of DJB-packages is really ugly ! (actally, I wouldn't
  cause this stuff packages, but collections of code fragments).

  Did you ever try to building qmail ?

 Yes. On linux and netbsd. With and without various patches. Works perfectly.
 The only time in 2 years it has ever required ugly maintenance was
no fault of qmail's - about 2 weeks ago my ip-range got blacklisted by
some spam databases for consisting of dynamic ip assignments, so I had
to route outgoing mail through my ISP's mail server.

  For some customer, I had to get it built in our automated image
  builder (which does evrything from scratch wit an sysroot'ed
  cross-toolchain).

$ uname -p
x86_64
$ echo cc -m32 -O2 -include /usr/include/errno.h conf-cc
$ echo cc -m32 conf-ld
$ make
...
$ objdump -f auto-gid
auto-gid: file format elf32-i386
architecture: i386, flags 0x0112:
...

 Granted, the -include is a bitch and took me awhile to work out. Some
TLS[1] related error which I don't have a good understanding of. Marks
my first qmail build failure - I blame centOS :P
 The sysroot requirement is a little harder to meet, but really just
requires a mount --bind /tmp/sysroot/var/qmail /var/qmail. Or, if
you're running qmail on the host and really can't afford to stop it
for a minute or two, a custom setup rule based on hier.c (or use a
chroot - oh if only lunix had private namespaces...).

[1] /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss
mismatches non-TLS reference in substdio.a(substdo.o)

 Required me to completely rewrite all makefiles.

 Just like you had to fork libixp and rewrite all its makefiles?
 Look, if you have a penchant for reimplementing build systems, go for
it. You can rewrite makefiles in every spare second of your time and I
don't care. However, your apparent inability to grasp any build system
not written by yourself is no excuse to spread FUD about other
packages.
-sqweek