Commit Graph

1015 Commits

Author SHA1 Message Date
Doug Barton
c670f97a6b For the now-infamous Rumsfeld quote:
Change "there're" to "there are" which is consistent with the vast
majority of on line references.

Remove a spurious trailing "

Update the citation text with a suggestion from des.
2010-01-07 23:30:10 +00:00
Xin LI
64c50c6403 Fix build: getopt() returns int so use an integer to get the value. 2010-01-06 00:20:37 +00:00
Stanislav Sedov
e851fd040e - Move potentially offensive quotes I committed recently to fortunes-o.
- Reference date.
- Be more clear on context.

Suggested by:	dougb
2010-01-05 23:35:43 +00:00
Edwin Groothuis
6846bee277 Be able to specify a certain date and/or time for which to calculate
the phase of the moon.
While not worlds best improvements, it will help calendar(1) later on.
2010-01-05 21:14:48 +00:00
Doug Barton
a573c11cf5 Remove more duplicates
Minor reformatting on a few
2010-01-05 19:40:32 +00:00
Stanislav Sedov
8d7446f925 - Add two particulary interesting quotes from the past decade. 2010-01-04 09:16:35 +00:00
Ed Schouten
e6281cf106 Use ANSI C function declarations. 2009-12-29 08:43:32 +00:00
Ed Schouten
f29b2b9bef Use ANSI C function declarations. 2009-12-29 08:42:58 +00:00
Tony Finch
38281fea3e Fix a performance bug in factor(6).
Check if large factor is prime before applying Pollard's algorithm;
fixes "factor 2147483647111311".  Increase base if p-1 algorithm
reaches 1; fixes "factor 99999999999991".

Testcases from David A Bagley <bagleyd@tux.org>.
Fixes from Joseph Myers <jsm@NetBSD.org>.
Problem rediscovered by an attempt to factor my phone number.

A few other incidental fixes: correct a couple of factually incorrect
comments; use ident string macros; move from 4-clause to 3-clause
BSD licence (University of California copyright).

Obtained from:	NetBSD
2009-11-26 00:38:13 +00:00
Doug Barton
79b871ac8a Properly sort a math fortune after the changes in r193486
Properly sort fortunes added in r174879 and r174959
2009-11-07 22:13:29 +00:00
Doug Barton
152f5570db Move Warner's very funny comparison of VCS to anal sex into fortunes-o 2009-11-07 21:28:21 +00:00
Doug Barton
355179569c Remove the svn:executable property from this file 2009-11-07 21:02:40 +00:00
Doug Barton
4c061eaa53 Fix not only the grammar, but also the formatting that makes the gag 2009-11-04 18:40:05 +00:00
Ed Schouten
2e76e4c9b5 Make number(6) build with WARNS=6. 2009-10-13 06:25:53 +00:00
Doug Barton
0f3d628ce3 "Potluck Pogo" was a collection of Walt Kelly's "Pogo" cartoons
first published in 1955. "Putluck Pogo" seems to be a typo.
2009-10-06 02:13:32 +00:00
Doug Barton
10dc5fab2e Fix several instances of spaces before commas, and one of a space
before a ).

PR:		docs/136723
Submitted by:	Ulrich Sporlein <uqs@spoerlein.net>
Approved by:	re (kib)
2009-07-16 20:29:36 +00:00
Edwin Groothuis
ca67260eba Misc fixed to fortunes
PR:		conf/112024
Submitted by:	Niclas Zeising <niclas.zeising@gmail.com>
MFC after:	2 days
2009-06-05 07:57:10 +00:00
Edwin Groothuis
b962a0d6e0 [patch] fortune(6): George Bernard Shaw quote fix
From the original PR:

    s/milestones/millstones/
    and less important..
    s/man/Man/
    Not every source I've seen capitalizes 'Man', but it seems
    right. Uncapitalized 'man' would usually be preceded by
    an 'a'. But I haven't seen any reference cite the orignal
    source yet, so I can't say for sure.

http://quotationsbook.com/quote/31568/

PR:		conf/131469
Submitted by:	John Hein <jhein@timing.com>
MFC after:	2 days
2009-06-04 22:01:50 +00:00
Edwin Groothuis
d0e67068f4 [patch] fortune(6): file not Y2.01K compliant
Update the time in the fortune to make the joke a little bit more
realistic again: Bump year from 2009 to 2039.

PR:		conf/129860
Submitted by:	Alan Amesbury <amesbury@umn.edu>
MFC after:	2 days
2009-06-04 21:55:07 +00:00
Poul-Henning Kamp
4b3b785fc8 Too good to pass. 2009-03-06 13:24:54 +00:00
Simon L. B. Nielsen
8efe053612 netcat is "now" in base, so point people at nc(1) instead of the port.
MFC after:	1 week
2009-01-12 19:17:43 +00:00
Poul-Henning Kamp
2df20601a8 Another good day for historical quotes, Oliver Wendell Holmes brought to
you by Thomas L. Friedman.

 (http://www.nytimes.com/2008/10/08/opinion/08friedman.html?ref=opinion)
2008-10-08 19:39:22 +00:00
Poul-Henning Kamp
7fd08dc0f9 A Wittgenstein quote according to David Ignatius
http://voices.washingtonpost.com/postpartisan/2008/10/the_town_hall_debate_in_praise.html
2008-10-08 06:39:05 +00:00
Andrey A. Chernov
d77b331074 Suggections from bde@
1) Split too long source lines
2) Portable code should not assume that null pointer == all-bits-0,
so back out prev. calloc() change.

Submitted by:   bde
2008-08-11 23:24:42 +00:00
Andrey A. Chernov
2a3fabc4d3 All cosmetic.
1) Rename RANDOM_MAX to RANDOM_MAX_PLUS1 to not confuse with random()'s max
2) Use calloc() instead of zeroing fields explicitly
3) "too many lines" -> "too many delimiters" for err()
2008-08-10 11:31:56 +00:00
Andrey A. Chernov
2c38883d2a 1) Fix longstanding math bug with denominator > 1 (wrong probability).
Test case:
	random -f some_small_file 10000
(in most cases must be no output)
2) Prevent number of lines > RANDOM_MAX (overflow or nothing may be
choosed) with EFBIG err()
3) After line is found, terminate list loop for -U case too,
since nothing to do in the rest of the loop left.
2008-08-08 02:46:47 +00:00
Andrey A. Chernov
67cc8dbb1a I was confused a bit by the wrong construction with RAND_MAX
used in randomize_fd.c.
Although the max value is the same currently, RAND_MAX is for rand(),
not for random().
So move RANDOM_MAX const to the common file now, make it UL and
use in randomize_fd.c too.
(in any case its old value was 1 less then must be, as noted in
the prev. commit)
2008-08-08 01:42:17 +00:00
Andrey A. Chernov
5b6bf07632 1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be)
value with ((double)RAND_MAX + 1)
2) For exit code increase valid denominator upper range from 255 to 256
since returned value is [0 .. denom - 1]
2008-08-08 01:02:30 +00:00
Andrey A. Chernov
921651bdd3 Use __FreeBSD_version check since it is bootstrap tool 2008-08-07 21:36:09 +00:00
Andrey A. Chernov
b3dfe39b3a Add reference to arc4random_uniform(3) 2008-08-07 20:07:30 +00:00
Andrey A. Chernov
dc5fe8845b Use arc4random_uniform(3) 2008-08-07 20:05:51 +00:00
Andrey A. Chernov
808463a45f Use arc4random_uniform(3)
Obtained from:  OpenBSD
2008-08-07 20:02:42 +00:00
Poul-Henning Kamp
7daafceb67 Add a quote too good to miss from:
http://www.schneier.com/blog/archives/2008/08/schneier_misquo.html

(and reorder one I appearantly didn't get in the right place last time.)
2008-08-02 20:11:56 +00:00
Maxim Konovalov
e647cc3dba o Alan Shepard was first American in the space; fix attribution.
o Correct Alan's surname.

PR:		bin/125812
Submitted by:	Derek Taylor [1], gavin [2]
MFC after:	1 week
2008-07-22 14:21:56 +00:00
Poul-Henning Kamp
189af44216 Unmangle an E.W.Dijkstra quote. 2008-07-14 18:45:06 +00:00
Poul-Henning Kamp
69301d4c17 Apply learning from RAIEC (Redundant Array of Independeng English Courses)
kindly provided by four different correspondents since my last commit.
2008-07-07 10:04:16 +00:00
Poul-Henning Kamp
e1747bd4de Two quotes too good to miss. 2008-07-05 08:54:58 +00:00
Garrett Wollman
603609c7f4 Months in English are capitalized (even when abbreviated). 2008-06-25 04:56:08 +00:00
Poul-Henning Kamp
a2c7567159 +Computers can't cruise. Meandering is a foreign concept to them.
+The computer assumes that all behavior is in pursuit of an ultimate
+goal.  Whenever a motorist changes his or her mind and veers off
+course, the GPS lady issues that snippy announcement: "Recalculating!"
+               -- Joel Achenbach (www.slate.com, 20 jun 2008)
2008-06-23 20:27:37 +00:00
Sean Farley
35ed5c4e48 Fixed the output grammar to properly speak non-terminal dits.
Updated Lyndon Nerenberg's radio callsign and E-mail address.

PR:		bin/7868
Submitted by:	Lyndon Nerenberg <lyndon@orthanc.ca>
MFC after:	1 week
2008-06-08 19:35:47 +00:00
Remko Lodder
6ef67a1ead Remove a quote about the instant-workstation, this port
has been removed ages ago.

PR:		docs/124166
Submitted by:	keramida
Prodded by:	novel,keramida
2008-05-31 18:07:16 +00:00
Poul-Henning Kamp
f3344cb58f This bloke has his priorities straight:
+"Can you be more stupid than aggravating the judge AND your lawyer?
+No? Oh yes you can: You can aggravate the whole kernel community."
+               -- Alexander Lyamin (about Hans Reisers murder trial)

Found at: http://www.news.com/8301-10784_3-9925607-7.html?tag=nefd.top
2008-04-29 13:02:21 +00:00
Yaroslav Tykhiy
891c55ab8d Add a missing quote symbol. 2008-04-26 22:15:03 +00:00
Yaroslav Tykhiy
80a48bc576 Just met Kurt Vonnegut's quote remarkably relevant
to open software development (as well as to the other
kinds of human activity.)
2008-04-26 22:12:31 +00:00
Yaroslav Tykhiy
61f3d0ccf7 Put back the quote from Chinggis Khan removed in rev. 1.259.
The quote predated rev. 1.232, which rev. 1.259 was to correct;
therefore it was protected by the "Don't remove fortunes" rule.

Noticed by:	ceri
Pointy hat to:	yar
2008-04-03 10:22:56 +00:00
Ganbold Tsagaankhuu
bc04791c82 Improve some quotes of Chinggis Khan.
Remove militant and moralized quotes of Chinggis Khan.
Add one more quote of Chinggis Khan.

Reviewed by: yar
Approved by: keramida(mentor)
2008-03-31 10:28:09 +00:00
Diomidis Spinellis
c707731ce1 Fix typo. 2008-03-03 10:06:52 +00:00
Yaroslav Tykhiy
dbf772aca8 Add another very relevant quote from "The Elements of Programming Style"
by Kernighan and Plauger.
2008-02-28 15:16:24 +00:00
Yaroslav Tykhiy
bc0ed67225 It was Plauger, not Ritchie, who co-authored both editions
of "The Elements of Programming Style".  Also spell the name
of the book properly.
2008-02-28 15:12:05 +00:00
Ruslan Ermilov
b7498df286 getopt(3) returns -1, not EOF. 2008-02-19 07:09:19 +00:00