Re: [9fans] Adding a new user on 9-Front

2013-12-24 Thread Daode
Kurt H Maier k...@sciops.net wrote:
 |This is why harmful.cat-v.org is so important, and it's why I don't have

These pages contain indeed several of the most stupid things
i have read in a very long time.

 |macrocultures in the bud; otherwise we wind up with POSIX everywhere, and
 |an entire generation of computer users who can't even conceive of a world
 |without it.

Never has there been a more versatile freely accessible
environment than today, both, systems and languages.
And cheap, energy efficient computers for poor kids, which is
a good thing, though indeed wasting resources is per se not a good
thing, which intelligent tribes with highly sophisticated cultures
knew several thousand years ago already.  That is why we have
superseeded them.  And that is why harmful is harmful, imho.
Not that it matters.

--steffen
---BeginMessage---

Quoting erik quanstrom quans...@quanstro.net:


On Mon Dec 23 17:10:13 EST 2013, s...@9front.org wrote:



isn't this a false dichotomy?  rudeness doesn't preserve value.


Neither does gladhanding.


it's easy to point out past mistakes.  do you think these were obvious
at the time they were made?


Whether they were obvious is too subjective to determine.  They were
(often very loudly) recognized as mistakes.  The problem, as usual,
is that a well-funded mistake is far more likely to succeed than an
impoverished masterpiece.

Obvious?  I'll never know.  But people I respect decried lots of these
decisions at the time they were made.  Without getting into the chicken-
and-egg problem of how I came to respect some of these people, in a lot
of cases, stumbling across an angry netnews missive from a usenet address
I trusted was catalytic in my process of coming to grips with some
understanding of correct software design.

The Unix Hater's Handbook is a collection of articles in this vein; there
are systems eulogized therein which were displaced by the rise of unix,
and whose passing makes me truly sad to have missed out on an era of
computing with real diversity in system design.

This is why harmful.cat-v.org is so important, and it's why I don't have
any interest in suffering fools on internet mailing lists.  If community
is important in guiding software trends, it's important to nip encroaching
macrocultures in the bud; otherwise we wind up with POSIX everywhere, and
an entire generation of computer users who can't even conceive of a world
without it.

People like Blake can present me with bullshit about 'living in a cave' all
day long -- but the surest way to prevent mistakes is to cause people to
defend proposed change within an inch of their lives.  That's the original
point of a thesis defense, and the principal is no less valid on a mail
list.  Most people seem to take such challenges personally;  this is just
because they're not used to being challenged.  It will pass.

khm


---End Message---


Re: [9fans] Adding a new user on 9-Front

2013-12-24 Thread Daode
lu...@proxima.alt.za wrote:
 | And cheap, energy efficient computers for poor kids, which is
 | a good thing,
 |
 |I have access to a few thousands poor kids, age 0 to 18.  Could I
 |please have some of these cheap, energy efficient computers for
 |them?

I can't help you there -- not from me.

 |Thank you from the bottom of my heart.

I can't say anything about Africa, though let me doubt wether all
african chiefs would agree with you.  Nor wether those which don't
possibly would be right or not.

Since it's Christmas today, one of the most interesting and likely
true things i've ever read from a Christian is quoted in Peter
Scholl-Latour's «Mord am großen Fluß. Ein Vierteljahrhundert
afrikanische Unabhängigkeit» («Murder at the big river. A quarter
of a century of African Independence»), somewhen in the 60s
a (black) african Bishop stated something like «In the year 2700
the white people will have wasted all resources.  Then the era of
the black people will begin».

Anyway: no real kind of starvation over here, on my side.

--steffen
---BeginMessage---
 And cheap, energy efficient computers for poor kids, which is
 a good thing,

I have access to a few thousands poor kids, age 0 to 18.  Could I
please have some of these cheap, energy efficient computers for
them?

Thank you from the bottom of my heart.

Lucio.



---End Message---


Re: [9fans] 9Front network (driver?) issue

2013-12-23 Thread Daode
Blake McBride bl...@mcbride.name wrote:
 |I don't know what console is.  I don't see anything at my Plan-9 Shell
 |(RC) or on the screen in general.

Note that Francisco J. Ballesteros has written an excellent book
on operating systems [1] that i also should read in total:

 «Introduction to Operating Systems Abstractions.
  Using Plan 9 from Bell Labs.

  http://lsub.org/who/nemo/
  http://lsub.org/who/nemo/papers.html
  [1] http://lsub.org/who/nemo/9.intro.pdf

--steffen
---BeginMessage---
On Sun, Dec 22, 2013 at 6:03 PM, cinap_len...@felloff.net wrote:

 thats strange. when you plug in the drive, the nusbrc script
 started the usb disk filesystem and run that fdisk command to
 register the partitions. for some reason, the partitions
 step failed. but when you run it manually later it wored.


I don't get the last two words it worked (I presume).  After I execute
your command, I still don't see it under /shr/sdU*


 the drive might be sensitive to the timing?

 can you pull and replug the drive and see if there are any
 error messages on the console?


I don't know what console is.  I don't see anything at my Plan-9 Shell
(RC) or on the screen in general.



 as a work arround for now, you can try doing this manually:

 diskparts /dev/sdU6.0

dossrv


 mount -c /srv/dos /n/usb /dev/sdU6.0/dos

cd /n/usb


Worked.  Thanks!




 the dos filesystem does not do write buffering so there is
 no need to flush. (see dossrv(4))

 mounts are local to the namespace. you can remove something
 from the namespace with the unmount command (see bind(1))
 or you just close the whole namespace (close the rio window).

 for documentation on formating and partitioning disks see prep(8).

 --
 cinap


---End Message---


Re: [9fans] 9Front network (driver?) issue

2013-12-23 Thread Daode
andrey mirtchovski mirtchov...@gmail.com wrote:
 |both 9␦Front and 9␦Atom use U+180E, Mongolian Vowel Separator, to
 |stand between the digit and the letters. it is a zero-length space
 |signifying the major departure from the original canon.

No, no longer -- it has become a control character in Unicode 6.3.0.

--steffen
---BeginMessage---
 While you're at it; is it 9-Front (as Andrey said above) and 9-Atom?
 So, space with Plan 9 and dash with the other two?

both 9᠎Front and 9᠎Atom use U+180E, Mongolian Vowel Separator, to
stand between the digit and the letters. it is a zero-length space
signifying the major departure from the original canon.

---End Message---


Re: [9fans] mk time-check/slice issue

2013-12-19 Thread Daode
Blake McBride bl...@mcbride.name wrote:
 |On Thu, Dec 19, 2013 at 8:55 AM, erik quanstrom quanstro@\
 |quanstro.netwrote:
 |
 | I was thinking about the problem and actually, at least in all
 | circumstances I can think of, changing that one operation from = to 
 | would fix the problem.  If the times are on the same second, I would
 |
 | i thought this idea might come up.  i think the reason not to do this
 | is a very fundamental principle: correctness.  never give up on
 | correctness.
 |
 |I for one favor practical usefulness over theoretical correctness.  An

I think on FAT filesystems even giving up correctness won't help
you with it's two second resolution.

--steffen
---BeginMessage---
On Thu, Dec 19, 2013 at 8:55 AM, erik quanstrom quans...@quanstro.netwrote:

  I was thinking about the problem and actually, at least in all
  circumstances I can think of, changing that one operation from = to 
  would fix the problem.  If the times are on the same second, I would
 never
  have had time to change it.  This would fix the problem.  Perhaps this
  functionality can be controlled by an environment variable like NPROC.

 i thought this idea might come up.  i think the reason not to do this
 is a very fundamental principle: correctness.  never give up on
 correctness.


I for one favor practical usefulness over theoretical correctness.  An
environment variable option would trivially satisfy both groups. It could
operate as-is so nothing pre-existing would be affected.

Blake
---End Message---


Re: [9fans] ca.pem

2013-12-03 Thread Daode
Skip Tavakkolian skip.tavakkol...@gmail.com wrote:
 |root CA certificates. David's reply jogged my memory; if i recall, i cat'ed
 |/etc/ssl/certs/*.pem of the ubuntu box and it was so i could go get.

I've not really followed it but there was a thread on
OpenSSL-users which mentioned an issue ([1]).
That thread mentioned a go(1) program [2] which was later also
suggested as good by Christian Heimes (in [1]).

  [1] http://article.gmane.org/gmane.comp.encryption.openssl.user/50237
  [2] https://github.com/agl/extract-nss-root-certs

I'm using curl-ca-bundle from curl(1), but that's perl(1).

--steffen
---BeginMessage---
root CA certificates. David's reply jogged my memory; if i recall, i cat'ed
/etc/ssl/certs/*.pem of the ubuntu box and it was so i could go get.



On Tue, Dec 3, 2013 at 9:44 AM, Jeff Sickel j...@corpus-callosum.com wrote:

 What do people use for /sys/lib/tls/ca.pem?

 I noticed that David added it as the default for Go’s
 crypt/x509, but do you use a blank, self-signed template,
 or an actual trusted CA chain?




---End Message---


Re: [9fans] [sources] applied patch: /n/atom/patch/applied/termrcnodhcp

2013-10-15 Thread Daode
Hello,

erik quanstrom quans...@labs.coraid.com wrote:
 |email
 | quans...@quanstro.net
 |readme
 | don't dhcp by default.  it looks like a hang.
 [.]
 |+ #if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
 |+ #   ip/ipconfig /dev/null [2=1]
 [.]

after looking into the ipconfig source and placing some fprint()
the actual hang is caused by a faulty length of the sleep.
If i add

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -469,6 +469,12 @@ main(int argc, char **argv)
int retry, action;
Ctl *cp;
 
+   for (retry = 0; retry  10; ++retry) {
+   long t = time(nil);
+   fprint(2, retry %d, time %ld\n, retry, t);
+   sleep(1000);
+   }
+
init();
retry = 0;
ARGBEGIN {

then each tick sleeps ~1 second (sometimes a tick needed 3 in the
tests i've done).  But if i add

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -621,10 +621,13 @@ doadd(int retry)
if(dodhcp){
mkclientid();
for(tries = 0; tries  30; tries++){
+   long t;
dhcpquery(!noconfig, Sselecting);
if(conf.state == Sbound)
break;
sleep(1000);
+   t = time(nil);
+   fprint(2, retry %d, time %ld\n, tries, t);
}
}

then that sleep takes reproducably 12 seconds.  Without having any
ideas what this could be about (VirtualBox?), i nonetheless wonder
wether something like this would be imaginable, since a time
difference is used later on in the code, too:

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -619,12 +619,15 @@ doadd(int retry)
 
/* run dhcp if we need something */
if(dodhcp){
+   long start = time(nil);
mkclientid();
for(tries = 0; tries  30; tries++){
dhcpquery(!noconfig, Sselecting);
if(conf.state == Sbound)
break;
sleep(1000);
+   if (tries  1  time(nil) - start  30)
+   break;
}
}

Apologies for the patch format (it's all half-baked here).

--steffen
---BeginMessage---
email
quans...@quanstro.net
readme
don't dhcp by default.  it looks like a hang.
set sysname, even if ndb not cooperative
use diskparts instead of inline code
removed

files
/rc/bin/termrc  termrc

/rc/bin/termrc  termrc
termrc.orig:10,18 - termrc:10,22
  mntgen -s slashn  chmod 666 /srv/slashn
  ndb/cs -f $ndbfile
  sysname=`{cat /dev/sysname}
+ if(~ $#sysname 0){
+   sysname = gnot
+   echo -n $sysname /dev/sysname
+ }
  
- if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
-   ip/ipconfig /dev/null [2=1]
+ #if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
+ # ip/ipconfig /dev/null [2=1]
  if(test -e /net/ipifc/0/ctl)
ndb/dns -rf $ndbfile
  for(i in /net/ether?)
termrc.orig:30,41 - termrc:34,44
  
  for(i in A w f t m u v L '$' Ι Σ κ æ ©)
/bin/bind -a '#'^$i /dev /dev/null [2=1]
- for(disk in /dev/sd??) {
-   if(test -f $disk/data  test -f $disk/ctl)
-   disk/fdisk -p $disk/data $disk/ctl [2]/dev/null
-   for(part in $disk/plan9*)
-   if(test -f $part)
-   disk/prep -p $part $disk/ctl [2]/dev/null
+ diskparts
+ sysname=`{cat /dev/sysname}
+ if (~ $#sysname 0 || ~ $sysname '') {
+   sysname = gnot
+   echo -n $sysname /dev/sysname
  }
  
  # hacks
--
merge...backup...copy...
cpfile termrc /n/dist/rc/bin/termrc
# remove these files if you want. I will not remove them for you
# (apatch/undo will not restore them)
done

---End Message---


Re: [9fans] [sources] applied patch: /n/atom/patch/applied/termrcnodhcp

2013-10-15 Thread Daode
hmm, i'm braindead.
And that made it especially hard to deal with ipconfig(8):

  by default, ipconfig exits after trying DHCP for 15 seconds
  with no answer

--steffen
---BeginMessage---
Hello,

erik quanstrom quans...@labs.coraid.com wrote:
 |email
 | quans...@quanstro.net
 |readme
 | don't dhcp by default.  it looks like a hang.
 [.]
 |+ #if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
 |+ #   ip/ipconfig /dev/null [2=1]
 [.]

after looking into the ipconfig source and placing some fprint()
the actual hang is caused by a faulty length of the sleep.
If i add

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -469,6 +469,12 @@ main(int argc, char **argv)
int retry, action;
Ctl *cp;
 
+   for (retry = 0; retry  10; ++retry) {
+   long t = time(nil);
+   fprint(2, retry %d, time %ld\n, retry, t);
+   sleep(1000);
+   }
+
init();
retry = 0;
ARGBEGIN {

then each tick sleeps ~1 second (sometimes a tick needed 3 in the
tests i've done).  But if i add

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -621,10 +621,13 @@ doadd(int retry)
if(dodhcp){
mkclientid();
for(tries = 0; tries  30; tries++){
+   long t;
dhcpquery(!noconfig, Sselecting);
if(conf.state == Sbound)
break;
sleep(1000);
+   t = time(nil);
+   fprint(2, retry %d, time %ld\n, tries, t);
}
}

then that sleep takes reproducably 12 seconds.  Without having any
ideas what this could be about (VirtualBox?), i nonetheless wonder
wether something like this would be imaginable, since a time
difference is used later on in the code, too:

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -619,12 +619,15 @@ doadd(int retry)
 
/* run dhcp if we need something */
if(dodhcp){
+   long start = time(nil);
mkclientid();
for(tries = 0; tries  30; tries++){
dhcpquery(!noconfig, Sselecting);
if(conf.state == Sbound)
break;
sleep(1000);
+   if (tries  1  time(nil) - start  30)
+   break;
}
}

Apologies for the patch format (it's all half-baked here).

--steffen
---BeginMessage---
email
quans...@quanstro.net
readme
don't dhcp by default.  it looks like a hang.
set sysname, even if ndb not cooperative
use diskparts instead of inline code
removed

files
/rc/bin/termrc  termrc

/rc/bin/termrc  termrc
termrc.orig:10,18 - termrc:10,22
  mntgen -s slashn  chmod 666 /srv/slashn
  ndb/cs -f $ndbfile
  sysname=`{cat /dev/sysname}
+ if(~ $#sysname 0){
+   sysname = gnot
+   echo -n $sysname /dev/sysname
+ }
  
- if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
-   ip/ipconfig /dev/null [2=1]
+ #if(! test -e /net/ipifc/0/ctl || ~ 127.0.0.1 `{cat /net/ipifc/0/local})
+ # ip/ipconfig /dev/null [2=1]
  if(test -e /net/ipifc/0/ctl)
ndb/dns -rf $ndbfile
  for(i in /net/ether?)
termrc.orig:30,41 - termrc:34,44
  
  for(i in A w f t m u v L '$' Ι Σ κ æ ©)
/bin/bind -a '#'^$i /dev /dev/null [2=1]
- for(disk in /dev/sd??) {
-   if(test -f $disk/data  test -f $disk/ctl)
-   disk/fdisk -p $disk/data $disk/ctl [2]/dev/null
-   for(part in $disk/plan9*)
-   if(test -f $part)
-   disk/prep -p $part $disk/ctl [2]/dev/null
+ diskparts
+ sysname=`{cat /dev/sysname}
+ if (~ $#sysname 0 || ~ $sysname '') {
+   sysname = gnot
+   echo -n $sysname /dev/sysname
  }
  
  # hacks
--
merge...backup...copy...
cpfile termrc /n/dist/rc/bin/termrc
# remove these files if you want. I will not remove them for you
# (apatch/undo will not restore them)
done

---End Message---
---End Message---


Re: [9fans] [sources] applied patch: /n/atom/patch/applied/termrcnodhcp

2013-10-15 Thread Daode
erik quanstrom quans...@labs.coraid.com wrote:
 |- 9fans
 |
 |thanks for the interest!

no, i'm just totally brain dead.



Re: [9fans] VMware and 9atom

2013-10-10 Thread Daode
Richard Miller 9f...@hamnavoe.com wrote:
 | If you want to run Plan 9 on VirtualBox, you have to use either
 | the 4.1 branch (for example 4.1.26) or 4.2.14 and later.
 |
 |I can confirm that standard Plan 9 runs on virtualbox 4.2.18 on MacOSX
 |(tried it just now)

I have (had) no issue(s) with stock 9atom and 9front
(2941.ddc4d868272b) ISOs on VirtualBox 4.2.16, Mac OS
X SnowLeopard.  (This is no production use, though.)

Fool that i am i did not trust that it really should be Intel
PRO/1000 MT Server (82545 EM), but life would be too boring
without some desperation.

Aram Hăvărneanu ara...@mgk.ro wrote:
 |Why waste anyone's time instead of always denouncing VirtualBox...

When using qemu from MacPorts (v1.6.0), then

  ?0[steffen@sherwood src]$ plaw
   
  USER   PID  %CPU %MEM  VSZRSS   TT  STAT STARTED  TIME COMMAND
  steffen  73506  11.8  4.5  2990016  94728 s002  S+9:56pm   0:43.57 
/opt/local/bin/qemu-system-i386 -hda VirtualBox VMs/9front/9front.qcow -boot d
  steffen  73505   6.7  4.8  1113192 100228   ??  R 9:54pm   1:00.34 
/Applications/VirtualBox.app/Contents/MacOS/../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM
 --comment 9front --startvm 44dfa628-d2be-4391-8553-23436299f705 
--no-startvm-errormsgbox

And i need to do

  ; aux/vga -m vga -l

(But it's rather due to faulty initial settings; however, it's
nonetheless fine in VirtualBox.  I yet need to work on my qemu
setup.  Don't mind.)

--steffen



Re: [9fans] cifs fails on nodes named aux

2013-08-28 Thread Daode
Ingo Krabbe ikrabbe@gmail.com wrote:
 |Hey,
 |
 |I found a quite strange effect with cifs (plan9 bell labs edition). \
 |I use cifs to mount werc installations from p9p linux servers. \
 |Cifs is needed here, as the virtual hosted machine does not \
 |support nfs. Maybe I should switch to another userspace filesystem,\
 | but for now its cifs.

cifs is Windows, i think.
If this is the case, then you may run into the issue of implicit
filenames.  Search «aux tale», or browse
heirloom.sourceforge.net/mailx_aux_c.html.

 [.]
 |Any hints for debugging this might help.

Maybe.
Ciao

 |cheers
 |
 |ingo krabbe

--steffen



Re: [9fans] cifs fails on nodes named aux

2013-08-28 Thread Daode
erik quanstrom quans...@quanstro.net wrote:
 |  cifs is Windows, i think.
 |  If this is the case, then you may run into the issue of implicit
 |  filenames.  Search «aux tale», or browse
 |  heirloom.sourceforge.net/mailx_aux_c.html.
 |
 |as entertaining as this is, is isn't true for dos.  there
 |are no device files on dos in *any* directory.  they
 |are a fiction of the executive.  now the effect may
 |be the same if you're using command.com, but
 |explorer should be able to deal with that file name.

Oh, sorry, my last Windows was 95B...  I still have this old
Cyrix around, but .. it's been a long time.
Likely you are right -- but i guess Gunnar Ritter is just trying
to make it what he thinks is a haptic experience for Windows
users.

 |- erik

--steffen
---BeginMessage---
  cifs is Windows, i think.
  If this is the case, then you may run into the issue of implicit
  filenames.  Search «aux tale», or browse
  heirloom.sourceforge.net/mailx_aux_c.html.

as entertaining as this is, is isn't true for dos.  there
are no device files on dos in *any* directory.  they
are a fiction of the executive.  now the effect may
be the same if you're using command.com, but
explorer should be able to deal with that file name.

- erik

---End Message---


Re: [9fans] cifs fails on nodes named aux

2013-08-28 Thread Daode
dexen deVries dexen.devr...@gmail.com wrote:
 |On Wednesday 28 of August 2013 10:26:01 Erik Quanstrom wrote:
 | the claim that the devices are in the directories and thus the file system
 | is still false.  even if explorer has some unnecessary code.  and plan 9 is
 | not immune from unnecessary weird bits e.g. the export protocol.
 |
 |a somewhat official specification confirms that -- by not listing those magic 
 |files as implied:
 |http://msdn.microsoft.com/en-us/windows/hardware/gg463084
 |
 |some more info:
 
|http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#file_and_directory_names

I've searched for something official for inclusion in my first
reply, but failed.  So..  Hey.

 |dexen deVries

--steffen
---BeginMessage---
On Wednesday 28 of August 2013 10:26:01 Erik Quanstrom wrote:
 the claim that the devices are in the directories and thus the file system
 is still false.  even if explorer has some unnecessary code.  and plan 9 is
 not immune from unnecessary weird bits e.g. the export protocol.



a somewhat official specification confirms that -- by not listing those magic 
files as implied:
http://msdn.microsoft.com/en-us/windows/hardware/gg463084

some more info:
http://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#file_and_directory_names


-- 
dexen deVries

[[[↓][→]]]

Take care of the luxuries and the necessities will take care of themselves.
-- L. Long


---End Message---


[9fans] How to mount 9atom

2013-08-27 Thread Daode
Jens Staal wrote:
 How can i mount 9atom?

erik quanstrom quans...@quanstro.net wrote:
 |On Wed Jul  3 12:35:16 EDT 2013, quans...@quanstro.net wrote:
 |if you're interested in the details on patches applied to 9atom
 |
 |echo subscribe | mail sources-ow...@9atom.org
 |
 |cf. mlmgr(8) http://www.9atom.org/magic/man2html/1/mlmgr
 |
 |and should you wish to submit patch, the *experimental*
 |patch system may be installed with the following on any plan 9 system.
 |
 |9fs atom 
 |disk/mkfs -bkv -s /n/atom/plan9/rc/bin -d . {echo apatch - -; echo ' +'}
 |
 |you may need to copy bits from /n/atom/plan9/rc/bin/9fs for this to work.

-
  case atom
  # import -E ssl atom.9atom.org /n/atom /n/atom
  srv $nflag -q tcp!atom.9atom.org atom 
  mount $nflag /srv/atom /n/atom atom

 |- erik

--steffen



Re: [9fans] off topic: full unicode support isn't easy

2013-07-24 Thread Daode
Kurt H Maier kh...@intma.in wrote:
 |On Wed, Jul 24, 2013 at 05:59:32AM +0300, Aharon Robbins wrote:
 | FYI
 | 
 | Creative usernames and Spotify account hijacking
 | http://labs.spotify.com/2013/06/18/creative-usernames/
 | 
 | Arnold
 |
 |Seems the thrust of this article is more like writing secure
 |public-facing authentication mechanisms relying on unvetted clownsourced
 |code isn't easy.

I thought more in the direction you-are-fucked-up-if-you-trust-
anyone-but-yourself-if-not-today-then-tomorrow.
(It's Python...)

 |khm

--steffen



Re: [9fans] 9atom installation fails due to missing files

2013-07-18 Thread Daode
erik quanstrom quans...@quanstro.net wrote:
 |if you have plan 9, or 9p working (say on linux or osx), then you can

Hello!
I now have a running 9atom system!!  :-))

 |9fs 9atom.  for plan 9 the incantation would be

I've spend the last two weeks adding command line editing to the
mailer i maintain, and am in the process of implementing basic
editing without having editline(3)/readline(3) available.  Harder
than i thought due to multibyte and visual width issues...

I hope to spend some time with 9atom next week.  My current
Unicode working status (S-CText:tools/make-ucd.c) also takes
PropList.txt into account, which extends the sets of alphabetics
and whitespace, for example -- i'll send patches if i can enhance
anything and already today, and would love to see that accepted.

P.S.: http://www.9atom.org/magic/man2html/2/toalpharune leads to
nowhere.

 |- erik

--steffen



Re: [9fans] 9atom installation fails due to missing files

2013-07-08 Thread Daode
erik quanstrom quans...@quanstro.net wrote:
 | But then, unfortunately, there were quite some copy errors which
 | caused the installation to fail.
 | 
 |   /n/[newfs - dist]/68020/lib/{ape,libc.a}
 |   /n/[newfs - dist]/alpha/lib/{ape,libc.a}
 |   /n/newfs/sys/src/pcpae/{archacpi,audioac97{,m},audiohd}.c
 |   (because /n/newfs/sys/src/pcpae doesn't exist)
 |
 |that's unfortunate.  but those files aren't required.

So i tried again and over-installation continued after the error
and therefore just worked.

Now i only fail to get it working in VirtualBox; both of 4.2.14
(June 21th, 86644) and 4.2.16 (86992) hang after init: starting
/bin/rc with 100% CPU time (Live CD: ~28%).  I hope i find some
time to try it on an old but physical Athlon system on some
weekend... :(

And since neither i do have a running 9atom nor are there 9atom
sources available for non-9atom runners (i think) i just don't
know yet how it feels or which awk is running and wether it has
the bug or not.  _Soy_.
But many thanks for answering the mail.
I think this system rocks.

--steffen



Re: [9fans] 9atom installation fails due to missing files

2013-07-08 Thread Daode
Carl Phillips cphill...@setcc.com wrote:
 |On 08/07/13 13:06, Steffen Daode Nurpmeso wrote:
 | Now i only fail to get it working in VirtualBox; both of 4.2.14
 | (June 21th, 86644) and 4.2.16 (86992) hang after init: starting
 | /bin/rc with 100% CPU time (Live CD: ~28%).  I hope i find some
 | time to try it on an old but physical Athlon system on some
 | weekend...:(
 |
 |Is the storage controller set to IDE? 9atom doesn't seem to like 

Yes.  It's PIIX3(chipset; ICH9: southbridge not found) / no I/O
APIC / PAE/NX / PIIX3( / 82540EM / USB / no serial bus.

The only thing which comes to my (user-space only) attention is
`igbe: unusable PciCLS: 0, using 8 longs'.  Otherwise anything
looks good to me, except that, whatever i do, we loop hanging
after `init: starting /bin/rc'.

 |VirtualBox SATA as the hard disk/cdrom type. Also disable the Enable 
 |absolute pointing device option if set and you might need the VirtualBox 

Never set.

 |Extension Pack installed.

This i don't have.  I'm using the freeware version.

 |Most of the other VirtualBox options don't seem to influence things too 
 |badly (on a quick trial).

--steffen



Re: [9fans] 9atom installation fails due to missing files [solved]

2013-07-08 Thread Daode
Yapadapad!
While biking i became enlightened.
Just disabled the network and it boots (VirtualBox 4.2.16, OS X).
It seems the system hangs around trying to get some IP address via
DHCP??  I don't know why it does so long (minutes) and requires
such a lot of CPU time (though of the VM) doing so, ... but it's
working just fine!  Just some more years 'till i know what i'm
talking about!!

--steffen



[9fans] 9atom installation fails due to missing files

2013-07-06 Thread Daode
Hello,
today i finally made it to one of the things i was looking forward
to, installing 9atom.  It was a truly smooth experience.  (Some
`cannot set [gu]id on xy' messages, mostly for a `bootes' user in
/usr and /cron, and also for secstore{,/store,/who}.)

But then, unfortunately, there were quite some copy errors which
caused the installation to fail.

  /n/[newfs - dist]/68020/lib/{ape,libc.a}
  /n/[newfs - dist]/alpha/lib/{ape,libc.a}
  /n/newfs/sys/src/pcpae/{archacpi,audioac97{,m},audiohd}.c
  (because /n/newfs/sys/src/pcpae doesn't exist)

Oh, what a shame!  Is there anything i can do about that?  (The
9atom.iso has been downloaded on 2013-06-25.)  Any help on Monday
would bee appreciated!

P.S.: Does the Plan9/9atom awk(1) has the same bug that i ran into
this week?  It is present in all awk(1)s i've tested, including
GNU awk(1) ($TAWK is simply awk, and UnicodeData.txt is 6.2.0):

  ## Input producers

  io_unicode_data() {
 unicode/UnicodeData.txt ${TAWK} '
  BEGIN {FS = ; ; OFS = ;}
  # There are no comments in this, but..
  /^[[:space:]]*[^#]+$/ {
i = $2
# Ranges must become unrolled, otherwise step on
if (i !~ /, First/) {
  $2 = 
  print
  next
}

r1 = sprintf(%d, 0x $1)
getline
r2 = sprintf(%d, 0x $1)
$2 = 
# Note: this gets around bugs in all tested awk(1)s: the range
# F-D, and only that one, will *not* be evaluated unless we to
# force integerfication
r1 = r1 + 0
r2 = r2 + 0
while (r1 = r2) {
  $1 = sprintf(%X, r1)
  printf %s\n, $0
  ++r1
}
  }
'
  }

Thanks and ciao!

--steffen



Re: [9fans] Character case mappings

2013-06-25 Thread Daode
erik quanstrom quans...@quanstro.net wrote:
 | uuh, ok, 9atom seems to have seen a lot of progress compared to
 | what i have yet looked at.
 |
 |just a few tables.  and a bit of time spent applying them.  ;-) 
 |if you have plan 9 installed and can 
 |
 |  nflag=-n srv $nflag -q tcp!atom.9atom.org atom 
 |  mount $nflag /srv/atom /n/atom atom

Unfortunately not yet; but i have the distribution since
yesterday.  (The git(1) pack is 121 MB.  And what i've seen before
belonged to go, yet i wrote Plan9 since it seemed to have a common
origin.)

 |then the tables, c. are in /n/atom/plan9/sys/src/libc/port.
 |the awk code to generate them, and the supporting functions
 |are in /n/atom/plan9/sys/src/cmd/runetype.
 |
 |a particularlly nifty (if straightforward) application is grep -I, which is \
 |like
 |grep -i, but translates its input with tolowerrune(tobaserune(r))
 |rather than tolower(c).  also straightforward is rune/case, which is
 |like tr 'A-Z' 'a-z', except generalized for unicode.

May be worth taking a deeper look into a system that works for
non-english.

Btw. i thought i was so smart due to my Ctx objects for bracket
expressions, format string conversions etc. -- and even said so --
only to find out that on Plan9 there existed something rather
similar years before!  Pretty awkward.

 |see also,
 |http://www.9atom.org/magic/man2html/1/rune
 |http://www.9atom.org/magic/man2html/2/isalpharune
 |http://www.9atom.org/magic/man2html/2/runeclass

yea yea, maybe: i'm not familiar with something that just works,
i'm using BSD for such a long time.
Looking into upas doesn't make me much happier, too.  Sigh.

 |- erik

--steffen



[9fans] Character case mappings

2013-06-24 Thread Daode
'Thing is; i'm writing a Unicode aware library for ISO C99 aware
environments (*earliest* alpha state) and at the moment i use
binary searches (i only have display-widths and simple case
mappings right now).  For combined upper/lower case mappings i do
end up with

  static struct _casemap {
uint32_t start;  /* First code point */
uint32_t accu  : 16; /* Relative distance to mapping */
_Bool isneg: 1;  /* Accu must be subtracted */
_Bool isup : 1;  /* Code point is uppercase */
_Bool islull   : 1;  /* Is Lu/Ll range (.accu = range start  1) */
_Bool isemap   : 1;  /* Has a one-to-many mapping */
uint32_t count : 12; /* Number of entries in this range */
  } const _casemaps[] = {
{0x41,32, 0,1,0,0, 26},
...
{0x010428,40, 1,0,0,0, 40},
  }; /* 250 entries */

that can be accessed via

  static struct _casemap const *
  _find_casemap(uint32_t codep)
  {
struct _casemap const *cme = _casemaps, *dp;
uint32_t min = 0, max = ARRAYCOUNT(_casemaps) - 1;

if (codep = cme[min].start  codep  cme[max].start + cme[max].count)
  do {
uint32_t mid = (min + max)  1,
  s = (dp = cme + mid)-start;
if (codep  s)
  max = --mid;
else if (codep = s + dp-count)
  min = ++mid;
else {
  cme += mid;
  goto jleave;
}
  } while (max = min);
cme = NULL;
  jleave:
return cme;
  }

  uint32_t
  sud_simple_tolower(uint32_t codep)
  {
struct _casemap const *cme = _find_casemap(codep);

if (cme == NULL)
  ;
else if (! cme-islull) {
  if (cme-isup)
codep = cme-isneg ? codep - cme-accu : codep + cme-accu;
} else if ((codep  1) == cme-accu)
  ++codep;
return codep;
  }

  uint32_t
  sud_simple_toupper(uint32_t codep)
  {
struct _casemap const *cme = _find_casemap(codep);

if (cme == NULL)
  ;
else if (! cme-islull) {
  if (! cme-isup)
codep = cme-isneg ? codep - cme-accu : codep + cme-accu;
} else if ((codep  1) != cme-accu)
  --codep;
return codep;
  }

My S-CText (on sourceforge DOT net SLASH p SLASH s-ctext SLASH
code SLASH) tests all 0x10 code points correct with the
above.  Now when i look at the sys/src/libc/port/runetype.c (of
plan9front) then i think this one is generated, but i cannot find
the creating script or program, which would be of interest to me.
And maybe Plan9 would be interested to see the above patched into
that, at some later time. ?
Thank you and ciao,

--steffen



Re: [9fans] ANTS: Better in every single way than standard plan 9. Stop using p9p.

2013-03-16 Thread Daode
I can't comment on the software.

 |THAT EASY

Bhutan may be worth thinking of.

 |Ben Kidwell
 |mycroftiv

--steffen



Re: [9fans] Solicited VirtualBox submission (negative)

2013-03-14 Thread Daode
Aram Hăvărneanu ara...@mgk.ro wrote:
 | Does QEMU run on Mac OS X at all?
 |
 |Sure.

I never got it compiled; i tried again and failed even after light
configure hacking.  But really, i'm happy with VirtualBox and even
got Plan9 installed in the meanwhile; first made the big too disk
(DOS partition that is), the second try failed to install -- at
75% i switched off and went online on the host, when i switched
back i got an endless I/O errors read failed loop still at 75%,
but when i reinstalled on top of that failed one turned out to be
an installation-continuation instead (only hitted RETURN and yet
installed data was recognized), and this time it finished just
fine!

 |Aram Hăvărneanu

--steffen



[9fans] 9front Acme unresponsive to key presses

2013-03-14 Thread Daode
Kurt H Maier kh...@intma.in wrote:
 |I don't think hiro was criticizing 9front as much as the fact that 9fans
 |seems to discuss p9p and vbox on osx more than any other software.

I also installed 9front in the meanwhile (python, pfff), and
learned that the (broken) hostname setup can be skipped during
installation, and how easy it is to set the german keyboard
layout!  That is really great (and it would be so easy to adjust
it as necessary!) design!

Acme in 9front doesn't respond to keypresses and starts hanging
around; i'd have a (rather useless though) 13997 bytes screenshot
of what happens on the controlling tty during this, in case noone
else has seen this and the behaviour is of interest -- it's just
that you place the cursor, hold down a key, and nothing visual
happens, but at times something comes back and then it seems as if
something has been queued somewhere, but not necessarily the key
that has been pressed (in fact the screenshot shows bad character
in filename, which *definitely* not happened).  But maybe it's VM
related anyway, which might be true since i had to turn to VESA
which is not needed for Plan9 from Bell Lapps, which also doesn't
show the mentioned behaviour.

 |khm

--steffen



[9fans] Solicited VirtualBox submission (negative)

2013-03-13 Thread Daode
Hello,
VirtualBox 4.2.6 on Mac OS X does *not* work with
  plan9.iso: ISO 9660 CD-ROM filesystem data \
  'PLAN 9 - DEC 8 2012 04:00  '

Memory ranges: 128 - 1024 MB.
Chipset: PII3X with/out I/O APIC; ICH9.
With/out PAE/NX.  With/out hw-virt-acceleration.
Video memory: 8 - 128 MB with/out 3D acceleration.
Storage controller: PIIX[34], ICH6; with/out host cache.

It always enters an endless loop after the 'Plan 9' message
appears.

--steffen



[9fans] Yes, 4.1.24 works (Was: Re: Solicited VirtualBox submission (negative))

2013-03-13 Thread Daode
David du Colombier 0in...@gmail.com wrote:
 | Hello,
 | VirtualBox 4.2.6 on Mac OS X does *not* work with
 |
 |As said earlier, Plan 9 is already known not to work
 |in VirtualBox 4.2. You should try VirtualBox 4.1.

Indeed, and i reinstalled 4.1.24 in favour of 4.2.6 and booted the
live ISO just a moment ago successfully.

 |-- 
 |David du Colombier

--steffen



Re: [9fans] Solicited VirtualBox submission (negative)

2013-03-13 Thread Daode
Aram Hăvărneanu ara...@mgk.ro wrote:
 |No, really. You should try QEMU. I understand that newcomers might be
 |tempted to use VirtualBox because it worked well for them in the past,
 |but I see zero reason for us to recommend anything but QEMU while
 |actively discouraging VirtualBox.

Does QEMU run on Mac OS X at all?
And.. not really newcomer, i'm a BSD/vim/keyboard guy... but was
pointed to and am interested in the Unicode/Text capabilities of
Plan9, and stumbled over a rather impressive Acme video tutorial
when looking around for more background on that (and also found
mk-with-libs).
glenda is sweet!
And of course, everything is a file(system) etc., sounds Unix.

 |-- 
 |Aram Hăvărneanu

--steffen