Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ralph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
ralph
14y ago
Re-formatted for reading, #include <math.h> int main() { int v, i, z, n, u, t; for (v = -1;;) { for (n = pow(1.05946309, "CWG[Cgcg[eYcb^bV^eW^be^bVecb^"[++v & 31] + (v & 64) / 21), i =
92.
▲
by
ralph
14y ago
PDF is provided on the book's page I gave above. You're correct, small mark-up changes are needed to make use of the PDF-linking macros now available that weren't then.
93.
▲
by
ralph
14y ago
Yes, sure I would. Doesn't sound like a glossy DTP kind of document. The document size wouldn't be a problem. Ask on the groff list with more of a description of the kind of content and what you might be worried about. Books like _The C Pro
94.
▲
by
ralph
14y ago
Scanning his submissions, I think http://www.dreamincode.net/forums/blog/48/entry-4298-lessons... is relevant.
95.
▲
by
ralph
14y ago
You'd do well to ask these on the https://lists.gnu.org/mailman/listinfo/groff list for a wider set of opinions. It depends on the style and complexity of the document. -ms is simple enough that people like W. Richard Stevens would tweak
96.
▲
by
ralph
14y ago
I've read _The TexBook_ and other material but just find the TeX mark-up so noisy to parse compared with the troff style of `.cmd' at the start of the line, cmd is often short, with the odd bit of \s+2 embedded within the line, depending on
97.
▲
by
ralph
14y ago
I think TrueType fonts with groff is fairly painless; the topic comes up on the groff@gnu.org list now and again but I don't pay much attention. The list is low volume and very friendly, with some real old Unix hands on there; feel free t
98.
▲
by
ralph
14y ago
That's a good point. Back when it was created, doing that with the toolchain wasn't so straightforward as I understand it is now; I'll raise it on the groff@gnu.org list.
99.
▲
by
ralph
14y ago
The sed and dc combo are perhaps not as readable, but there was a time before the dawn of the One True Awk. :-) sed '1s/.*/0/; s/;[^;]*$//; s///; s/.*;// s/00$//; s/:..$/+1++/; s/:$/++/; s/:/ 60*/; $s/$/p/' | dc
100.
▲
by
ralph
14y ago
It's awkward to embed Python in a pipeline and the awk can be quicker to write if the problem suits its domain. Execution speed may be slower than Python, depends on the work needed and the awk used; gawk, mawk, Kernighan's One True awk, ..
101.
▲
by
ralph
14y ago
Another way would be all awk. awk -F\; ' $7 != "Duration" { split($7, t, ":") s += t[1] * 60 + t[2] + (t[3] != 0) } END {print s + 0} ' Note the handling of s == "" in END.
102.
▲
by
ralph
14y ago
I still regularly use groff; letters, invoices, ad hoc formatting of one-off tasks. tbl(1) is nice and the overall speed makes it handy for producing PDF in the back-end.
103.
▲
by
ralph
14y ago
groff does it with the help of its preconv(1), also invoked with groff's -k option. $ printf 'Hello ①②③\n' | preconv .lf 1 - Hello \[u2460]\[u2461]\[u2462] $ printf 'Hello ①②③\n' | groff -k -Tutf8 | grep . Hello ①②③
104.
▲
by
ralph
14y ago
The book has been re-typed, as troff, just like the original. See my comment elsewhere on this post.
105.
▲
by
ralph
14y ago
I sought permission from Tim O'Reilly, he co-wrote this back when he was an author, to re-enter the text of the book as troff source, the original being lost. He kindly gave it and volunteers from the groff@gnu.org mailing list split the ch
106.
▲
by
ralph
14y ago
"couldn't let" is odd. Do you mean "get", IOW persuade Google to add Python.
107.
▲
by
ralph
14y ago
How does one flag the comment as spam or the user as a spammer?
108.
▲
by
ralph
14y ago
I'm complaining his example doesn't work in the more general case and that he should warn of this or give a better more general solution. I'm aware of why it doesn't work.
109.
▲
by
ralph
14y ago
He writes (head -5; tail -5) <data but that's a bit misleading. These don't work. seq 20 | (head -5; tail -5) (head -5; tail -5) < <(seq 20) Both giving just the first five lines.
110.
▲
by
ralph
14y ago
I'd like Gmail to do better as an email client confirming to standards. If someone sends me an email with the Resent-{From,To,...} headers then I want them shown to me. How can I forward an email as a message/rfc822 MIME content-type rather
111.
▲
Google's Alan Noble on Audit/Admit/Adapt for Start-up Execution
(techchomp.blogspot.co.uk)
2 points
by
ralph
14y ago
|
0 comments
112.
▲
by
ralph
14y ago
Your memory's going, I'm afraid. The original version, the BBC Model B one, used a novel split-screen technique. The upper larger portion showing space was Mode 4, 1bpp at 320 × 256 if it was the whole screen, the bottom flight-deck portion
113.
▲
by
ralph
14y ago
If you used the OS-provided SWIs to get the base address of the screen memory, OS_ReadVduVariables for 148 IIRC, and similarly use SWIs to wait for the VSync and switch buffers then I'd have thought it works just fine. The Archimedes had AR
114.
▲
by
ralph
14y ago
I didn't read the grandparent as meaning "the past ten years" but "ten years at some point in the past".
115.
▲
by
ralph
14y ago
Oh, we do, e.g. Plan 9, but that doesn't mean the better ways can overcome the popularity of the incumbent that's "good enough".
116.
▲
by
ralph
14y ago
Plan 9 did leave Bell Labs, http://www.york.ac.uk/ used it for one, and it was released under a more free licence in time.
117.
▲
by
ralph
14y ago
Telling the server of the new root instead, which needs the relevant permissions as the author points out, would remove the symlink traversal on every access?
118.
▲
by
ralph
14y ago
#golang had Limbo in its ancestry, another CSP language, this time for the Inferno register-based VM from Bell Labs. Target Go at a browser VM?
119.
▲
by
ralph
14y ago
And with my browser, Firefox, they break Page Up/Down, and therefore Space (also pages down). Instead of the slight overlap for context that Firefox normally gives, there's now a gap so it's Space, cursor-up a bit to continue reading, Space
120.
▲
by
ralph
14y ago
I've lived somewhere like that. It works well but then the streets were designed with that in mind; often narrow with lots of bends and poor visibility far ahead, a car driver has no choice but to go relatively slowly.
More ›