https://en.wikipedia.org/wiki/AN/DRC-8_Emergency_Rocket_Comm...
962 karma · joined July 23, 2013
https://en.wikipedia.org/wiki/AN/DRC-8_Emergency_Rocket_Comm...
[Monte Carlo approximation of Pi.
Registers:
u - routine : execute i if sum of squares less than 1
i - routine : increment register x
z - routine : iterator - execute u while n > m++
r - routine : RANDU PRNG
m - variable: number of samples
x - variable: number of samples inside circle
s - variable: seed for r
k - variable: scale for division
n - variable: number of iterations (user input)
]c
[lrx 2^ lrx 2^ + 1>i]su
[lx 1+ sx]si
[lu x lm 1+ d sm ln>z]sz
[0k ls 65539 * 2 31^ % d ss lkk 2 31 ^ /]sr
? sn
5dksk
1 ss
lzx
lx lm / 4*
p
$ dc pi.dc
100000
3.13372(sorry)
"Check me out with CVS!"
For the most part that's true, but /etc/rc.local is run fairly late, so if you have a sufficiently-crazy setup you might have to edit /etc/rc.
For example, before softraid crypto was integrated into the bootloader I modified /etc/rc to prompt for the keyphrase before it tried to mount the disks.
> 000D
It's expecting Unix newlines, and is confused by Windows' \r\n.
If the user typed https://www.mybank.com, show the usual warning for self-signed certificates.
$ du -h /bsd
11.3M /bsd
Interestingly, the ramdisk/recovery kernel with a bunch of shell utilities built in is only 8.7M. I guess it saves more space by omitting fancy graphics drivers than is taken up by the recovery tools.http://img3.wikia.nocookie.net/__cb20080110190718/spacequest...
You need access to the Fossil fileserver console to force a snapshot ``right now'' rather than waiting for the next scheduled time, but since Fossil is a user-space program, you could trivially run your own separate Fossil filesystem against the Venti store without needing any sort of root access.
http://ed-thelen.org/comp-hist/lgp-30.html
The story referenced:
An Acme idiom I use heavily is to create shell scripts in the root of a project's directory to diff, grep for the selected text, rebuild, etc. This essentially gives me a set of IDE buttons that are tailor-made for my current project.
http://www.ironicsans.com/2007/09/idea_color_photos_with_the...
There's a /usr/ports/mystuff directory for building your own ports. Unless I'm missing something, I don't see why you'd need a whole new ports tree?
http://en.wikipedia.org/wiki/Wikipedian_in_Residence http://outreach.wikimedia.org/wiki/Wikipedian_in_Residence
This, along with hardware support, is why I don't run Plan 9 as my only OS. Porting a modern browser to Plan 9 would be incredibly painful, and I believe the codebase of Chromium or Firefox is larger than Plan 9 itself these days!
> vim
Someone actually ported vim, and it's pretty easy to install from contrib.
> symlinks
These are a deliberate omission; the ability to rearrange the filesystem with bind doesn't correspond exactly to symlinks since it's done as a property of the current namespace rather than stored in the filesystem, but with the idioms that are built around bind, I've never missed symlinks at all.
Sorry for going into defensive-weenie mode and attacking your positive post!
Here you go!
http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/l...