Commit Graph

1048 Commits

Author SHA1 Message Date
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
Dag-Erling Smørgrav
8c18f0d537 A real gem from freebsd-current@ 2008-01-10 14:51:24 +00:00
Jens Schweikhardt
e6d47492d8 Typo; s/relied/replied 2008-01-07 10:31:17 +00:00
Doug Barton
94e72e54a1 Fix a few small typos, and remove one duplicate.
I'm intentionally not sorting this file since it won't be added to.
(Although, if it were sorted the duplicate would have been easier to see.)

:)
2007-12-31 18:38:32 +00:00
Wilko Bulte
e57d031181 Aussie New Years wish 2007-12-28 17:57:25 +00:00
Jens Schweikhardt
6862d27ecd Typos corrected. 2007-12-25 16:36:52 +00:00
Wilko Bulte
487807e269 On Christmas lights. 2007-12-23 16:31:05 +00:00
Julian Elischer
91b222676b Warner lets a good one out.. 2007-12-21 00:56:16 +00:00
Dag-Erling Smørgrav
7a72da78f6 Typo 2007-12-14 21:58:58 +00:00
Wes Peters
2d03638679 Add my all-time favorite quote, from one of my all-time favorite people. 2007-12-14 01:47:11 +00:00
Doug Barton
1ff1baa60e A few more cleanups. 2007-12-09 01:00:11 +00:00
Doug Barton
8817a867df The ../tools/do_sort script could not differentiate between
a few very slightly diffrent versions of tcsh prompts, so
restore the 2 that were lost, and consolidate them all in
a way that will prevent them from being lost again.
2007-12-08 00:20:33 +00:00
Doug Barton
db7de88380 Combine the fortunes-o.real and the fortunes2-o file, as was done
with fortunes and fortunes2 2 years and 2 days ago. The fortunes2-o
file was brought in with the original import of the 4.4 Lite games
directory, but has always consisted in large part of fortunes
duplicated from other files.

The combined size of the two files is still only 631K, or less
than 1/3rd of the size of the fortunes file.

Combining them has the added benefit of making the fortunes from
fortunes2-o visibile to fortune(6)'s -m option.

This change should probably not be MFC'ed beyond RELENG_7.
2007-12-07 22:56:10 +00:00
Doug Barton
319a098a8f Sort these files using: sh ../tools/do_sort < $file > $file.sorted
This greatly aids in detecting duplicates, among other things.
2007-12-07 22:41:39 +00:00
Doug Barton
2c7bf96d02 This is a massive cleanup of the fortune files, including removal
of many duplicates, formatting/whitespace fixes, spelling fixes,
and a host of others. Note: No fortunes were intentionally removed
(other than duplicates) as part of this cleanup. In removing dupes
I tried to be generous in not removing similarly worded fortunes
that had even slightly different punch lines.

Duplicates were resolved as follows (in this order):
* + limerick		-> limerick
* + fortunes-o.real	-> fortunes-o.real
* + fortunes2-o		-> fortunes2-o
* + zippy		-> zippy
murphy + fortunes	-> fortunes

In correcting spelling I've tried to leave colloquial variations
(especially British'isms) intact, as well as to not "correct"
errors that are part of the joke.

In fortunes and fortunes2-o I combined a couple of fortunes that
were adjacent to each other that seemed like they should have
originally been combined, and split a couple that seemed like they
should have originally been split.

Miscellaneous:
1. Fixed underlining
2. Capitalized proper names
3. Removed quotation marks from "freestanding" quotes for consistency
4. Added quotation marks to QOTD fortunes that needed them
5. Corrected or added many attributions
6. Removed apostrophes from trailing 's' that are plural, not possessive
7. Updated the path to fortune stuff included in some of the jokes
8. Updated several fortunes to their original version, and added attribution
9. Split up compound words that ispell tripped over
2007-12-07 22:28:08 +00:00
Doug Barton
babace2e8e Add speller files for fortune files that did not have them,
and update the ones that already existed.
2007-12-07 22:27:04 +00:00
Doug Barton
282d2f2136 Add some quotes from the television show "Buffy the Vampire Slayer" 2007-12-07 22:22:35 +00:00
Doug Barton
9f5203687a Add the text of a sign that I've seen on other desks, and
always wanted to put on mine.
2007-12-07 22:21:37 +00:00
Ruslan Ermilov
b76be7efbf Revise the markup. 2007-11-07 12:08:03 +00:00
Edwin Groothuis
e46d677790 After discussions with grog@ (mentor):
- When none of the directories in FORTUNE_PATH exist, abort instead
  of using the default FORTDIR.
- Little stylify changes.
- Add documentation about the FORTUNE_PATH variable.

MFC after:	1 week
2007-11-07 01:14:28 +00:00
Edwin Groothuis
3f1d492610 Another typo in the previous commited fix. That makes four typos
in one fortune of only 32 words. Based on that single ratio, there
are 50453 more typos in the rest of the fortunes file....

Noticed by:	Nate Lawson <nate@root.org>
MFC after:	1 week
2007-11-06 22:40:16 +00:00
Edwin Groothuis
664c060ef3 games/fortune: add FORTUNE_PATH env var, so ports of fortunes can work sanely
This patch adds an environment variable FORTUNE_PATH, which
	works like PATH for fortune files.

PR:		bin/36867
Submitted by:	Alan Eldridge <ports@geeksrus.net>

[patch] fortune -e implementation bug

	Fix the behaviour of "-e file1 file2" to equally pick them
	instead of only picking the first one.

PR:		bin/70182
Submitted by:	Martin Kulas <coolaz@web.de>

MFC after:	1 week
Approved by:	grog (mentor)
2007-11-06 22:03:24 +00:00
Edwin Groothuis
d21d8773c4 [patch] Fortune typos, around line 57346 of fortunes datfile
Small typos -- saw in a fortune today that 'equipped' is
	spelled 'equpped'. Also, 'vacuum' is spelled 'vaccuum'.
	Corrected diff provided below.

PR:		misc/112049
Submitted by:	Seth Hieronymus <shieronymus@speakeasy.net>
MFC after:	1 week
2007-11-06 21:55:56 +00:00
Doug Barton
e23452dbca Correct, add or improve attributions for, and add to quotations from
"The Wizard of Oz"

One duplicate was also removed that wasn't the right quote anyway
2007-10-28 07:02:10 +00:00
Doug Barton
0a6f9396b3 Fix a couple of small typos, and remove a duplicate 2007-10-21 05:16:52 +00:00
Doug Barton
a956c7304b Change to the original version of the poem titled "The Guy in the Glass,"
and add the proper attribution. Also add an explanation for the Middle
English word used in the first line.
2007-10-21 05:15:02 +00:00
Philip Paeps
26bc1aebe9 Remove duplicate. Was that a bug? :-) 2007-06-12 09:20:31 +00:00
Ceri Davies
478018f0ad Correct typo. 2007-06-06 11:12:56 +00:00
Doug Barton
2577a38eb3 Correct two small typos 2007-05-31 20:16:46 +00:00
Kris Kennaway
a6c4457396 Line wrap previous entry
Submitted by:	des
2007-03-30 04:31:53 +00:00
Kris Kennaway
76ddc8179b Add some more random offensive quotes. 2007-03-29 08:08:34 +00:00
Kris Kennaway
314d29caae A note from Peter Wemm about how to tell the difference between amd64 and
ia64.
2007-03-29 07:49:59 +00:00
Kris Kennaway
9a88eeec45 Dialogue gem from Deadwood 2007-03-29 07:40:49 +00:00
Gabor Kovesdan
ff75233a7a - Fix typo
PR:		bin/110648
Submitted by:	Seth Hieronymus <shieronymus@speakeasy.net>
Approved by:	keramida (mentor)
MFC after:	3 days
2007-03-26 11:44:46 +00:00
Philip Paeps
3fdbb5f071 Add Wise Words from Colin on irregular verbs and code quality. :-)
Submitted by:	cperciva
2007-01-11 15:19:53 +00:00
Doug Barton
1e11060f37 More minor cleanups:
1. Fix small typo "retorted ." -> "retorted."
2. Remove from fortunes a story that is duplicated in fortunes2-o
3. Remove from fortunes and fortunes2-o Zippy the Pinhead quotes
that are already in the zippy file.
4. ... therefore remove zippy from fortunes.sp.ok
5. Remove a duplicate in the zippy file.
2007-01-06 22:04:46 +00:00
Doug Barton
574c45c445 Add the fortunes from the PR that were not already present.
Delete some duplicates found while double checking the new ones,
and fix a typo.

These haven't been sorted yet, but will be in a future commit.

PR:		ports/40273
Submitted by:	Achim Patzner <ap@proxon.bnc.net>
2006-12-30 21:54:41 +00:00
Greg Lehey
e29e66e0c3 Wisdom of Chinggis (Genghis) Khan.
Submitted by: Ganbold <ganbold@micom.mng.net>
2006-12-13 00:33:39 +00:00
Maxim Konovalov
576be2064b o Fix typo: manger -> manager.
PR:		misc/106253
Submitted by:	Niclas Zeising
MFC after:	1 week
2006-12-03 15:25:55 +00:00
Maxim Konovalov
7300fd9b5e o /stand/sysinstall -> /usr/sbin/sysinstall.
PR:		conf/106254
Submitted by:	Simon Olofsson
MFC after:	1 week
2006-12-03 15:22:45 +00:00
Giorgos Keramidas
b133abd183 Squash a typo.
Submitted by:	Miltiadis Margaronis <mmargaron@gmail.com>
2006-10-30 12:01:57 +00:00
Poul-Henning Kamp
bc968064a9 It so happens that everything that is stupid is not unconstitutional.
-- Supreme Court Justice Antonio Scalia
2006-10-23 13:25:17 +00:00
Poul-Henning Kamp
b9a3a80ddc Voltaire again. 2006-10-20 18:12:25 +00:00
Chin-San Huang
8118616431 Add a tip on "how to strip UTF-8 BOM"
Approved by:	delphij (mentor)
2006-10-09 04:11:34 +00:00
Poul-Henning Kamp
7954042f27 Add a delightful typographic gem I discovered on page 143 in Edward
Tuftes book "The Visual Display of Quantitative Information"

The constant width font does not quite do the typeset original justice,
but it is is good enough for a fortune.
2006-10-07 08:29:20 +00:00
Jens Schweikhardt
1a0ba4525f Correct typo. 2006-09-27 19:20:43 +00:00
Poul-Henning Kamp
807ee6099c Too many good quotes flying by these days. 2006-09-17 21:36:16 +00:00
Wilko Bulte
0dc7ac73d8 visionary thoughts..
MFC after: 1 week
2006-08-27 14:29:10 +00:00
Yaroslav Tykhiy
776fc0e90e Commit the results of the typo hunt by Darren Pilgrim.
This change affects documentation and comments only,
no real code involved.

PR:		misc/101245
Submitted by:	Darren Pilgrim <darren pilgrim bitfreak org>
Tested by:	md5(1)
MFC after:	1 week
2006-08-04 07:56:35 +00:00
Poul-Henning Kamp
b4442b2c80 And now without typo. 2006-07-10 16:53:32 +00:00
Poul-Henning Kamp
2c2ec0b614 Add a good quote that gets used a lot in the debate about global
warming right now:

It is difficult to get a man to understand something when his salary
depends upon his not understanding it.
                -- Upton Sinclir
2006-07-10 16:30:46 +00:00
Mark Murray
7c92769c19 More stale maintainer. 2006-07-09 20:26:36 +00:00
Poul-Henning Kamp
cef2c44390 +To create quality software, the ability to say no is usually far
+more important than the ability to say yes.
+               -- Michi Henning
+%
2006-06-20 08:34:36 +00:00
Greg Lehey
7748dfd4c0 Burying UNIX--a quote by Rob Pike,
Seen on The UNIX Heritage Society mailing list.
2006-06-12 23:28:52 +00:00
Philip Paeps
0b3691a359 Add two little nuggets of wisdom I picked up at work today:
The three most dangerous things in the world are a programmer with a
  soldering iron, a hardware type with a program patch and a user with
  an idea. -- The Wizardry Compiled by Rick Cook

  and

  Debugging is anticipated with distaste, performed with reluctance, and
  bragged about forever. -- Button at the Boston Computer Museum

I wonder why people call me a cynic. ;-)
2006-06-12 21:02:19 +00:00
Wilko Bulte
e6f719c1d2 Who am I to correct the native speakers... anyway, s/council/counsel/
Noted by: des
2006-06-12 13:44:17 +00:00
Wilko Bulte
2a01134cc9 Any sufficiently simple directive can be obfuscated beyond reason
given proper legal council.

- Alfred Perlstein
2006-06-12 07:56:33 +00:00
Diomidis Spinellis
fd6f84b1df Layers are for cakes, not for software.
-- Bart Smaalders

From Performance Anti-patterns. ACM Queue 4(1):44-50. February 2006.
(Author confirmed via email that the quote is his own).
2006-05-28 06:16:15 +00:00
Poul-Henning Kamp
9c7560167d In our system there's no intermediate step between a definitive Supreme
Court decision and violent revolution.
                -- Al Gore (New York Magazine, May 29 2006)
2006-05-25 11:21:40 +00:00
Poul-Henning Kamp
e267a10bc3 To save you all the trouble with CVSWEB:
Peter Fellgett's wildcard recipe:
       Into a clean dish, place the dry ingredients and add the
       liquids until the right consistency is obtained. Turn out
       into suitable containers and cook until done.
2006-05-17 11:00:49 +00:00
Wilko Bulte
63654e38ab Go figure this error...
Submitted by: Thomas Beha
2006-05-09 08:28:16 +00:00
Diomidis Spinellis
148baf2e02 Add attribution: the quote comes from Perlis's Paradigms of AI Programming
p. 348.  See http://www.norvig.com/Lisp-retro.html
2006-04-24 12:13:02 +00:00
Jens Schweikhardt
a8b9bc3be4 Remove a corrupted fortune ending in line noise. Even googling did not
turn up a non-corrupted version, else I would have restored it.
(No, it's not the one that uses line noise intentionally.)
2006-04-17 12:14:46 +00:00
Maxim Konovalov
26ca704dbd o s/you health/your health/.
PR:		conf/95810
Submitted by:	Gavin Atkinson
2006-04-15 17:07:32 +00:00
Andrey A. Chernov
1107d0af30 1) Fix hang at the end of line buffer (PR 95715)
2) Localize

PR:             95715
Submitted by:   Li-Lun Wang <llwang@infor.org> (slightly edited by me)
2006-04-14 17:32:27 +00:00
Ruslan Ermilov
e1fe3dba5c Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
Wilko Bulte
6362a01f31 Her name was Anne Frank, not Ann Frank.
MFC after: 1 month
2006-02-19 21:46:29 +00:00
Greg Lehey
cddfe5e9f6 Wisdom about the Open Source ecosystem.
Submitted by: Mårten Mickos
2006-02-16 09:30:12 +00:00