mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2008-12-14, 22:11   #1
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default Head versus tail

Quote:
Originally Posted by Xyzzy View Post
Just "type" the file (and minimize the window) and you will get the last few lines after a few seconds.

Code:
A:\>type file

…

120933182,3355025:14c7c5b1,8245,19A206F,2BDFEC7,3390671,52C8515,64D,55ED117:102510bb,13c8ef99,CFD1F,D6C69
124826014,62740379:f68a7df,447c5dfb,30F95,37EAD,1C9357,3C4007,35E2893,3023,55ED117:728d4cf,1E83F,261F7,169163,1591
182682652,22959945:111168b5,22E95B,240421,8FC093,EB24C3,3AEEF7D,509,827,55ED117:306e28d,2a7146b,E6EC91,E2F
-25879015,2548877:73f353c1,217111,37FD69,53744F,1750FF9,1543,9C7,42D,55ED117:1bf1283,1e017b9d,19A47,76D
-148670359,26803369:1db6cebf,d94322b,1A55B,1C837,60341,F212B,464D6AD,141B,55ED117:1103B,11D83,3BC7D,CDA885,EFD9AF
117048533,39705389:757913ab,C575,EEF1,1C09F,58A1D,DAD19,279A5D,43171A5,155F,55ED117:f3cb573,181376f,2E807,1FA43D,139D
78954229,70082455:2ba24ed5,5BA3,222DF,EF20F,18A8AF,2C561B,AAD0AD,6AD,8E1,D79,55ED117:1d5873c7,11edcff5,3A0D5,3161,1979
97532069,86733113:69c981b,F79F,48899,689DD,3752EF,84468D,4D7F6FD,E27,55ED117:43e270b,2571A1,4AEB2F
41433465,142858733:1468e047,56a63031,3BB151,C5E8AF,1B71C9F,1EB4439,2CA17B9,55ED117:4273,6631,112B1,5600F,50B,92F,94D
-252612999,3873955:1063e5db,4F9C3,175501,31508B,387D37,17F1683,235052B,6AD,55ED117:cdfbd25,2a176d7,132F23,26AD,1DA7,11EF

A:\>
Obviously, tail is more elegant, and is easily added to the system.
Yep. Both tail and head are nice things to have.
R.D. Silverman is offline   Reply With Quote
Old 2008-12-14, 23:09   #2
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

32·7·163 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Yep. Both tail and head are nice things to have.
Agreed, and the whole MinGW, too. Cygwin, maybe... I've even started writing to that regard when texpad was mentioned, and then I didn't send it... It was too ranty*.

But even then,
you can lead a file's tail to knowledge, but can you make him resume?

/couldn't resist, no offense, just humor/

On a serious note, importantly, move the partial file away, so you wouldn't overwrite it accidentally. The siever doesn't warn you ever. It is a very spartan program. Also, if you can, add an empty line to the end of the partial file (I think deleting the last partial line is harder without a good editor). It helps when the files are later concatenated (some lines if stick together may create an ostensibly valid but poisonous relation ...with an infitisimal probability, of course). The rest of the good advices are already given.

P.S. I'll try to "hack in" the resume option and commit it to the GGNFS. (Because I can, and while not very good at deep things, but small things I can do.)The assembly secret source holders, please, merge that with the other source and post the binaries at will.

_____
*e.g. obvious perils of using shareware and not paying for it, "because I use it only once and the I'll delete it"... That's a slippery road. Anyway I think everyone will chose for themselves no matter how many moralizations will be recited... and I am not fit to cast stones anyway, heh, heh.
Batalov is offline   Reply With Quote
Old 2008-12-15, 00:19   #3
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by Batalov View Post
Agreed, and the whole MinGW, too. Cygwin, maybe... I've even started writing to that regard when texpad was mentioned, and then I didn't send it... It was too ranty*.

But even then,
you can lead a file's tail to knowledge, but can you make him resume?

/couldn't resist, no offense, just humor/

On a serious note, importantly, move the partial file away, so you wouldn't overwrite it accidentally. The siever doesn't warn you ever. It is a very spartan program. Also, if you can, add an empty line to the end of the partial file (I think deleting the last partial line is harder without a good editor). It helps when the files are later concatenated (some lines if stick together may create an ostensibly valid but poisonous relation ...with an infitisimal probability, of course). The rest of the good advices are already given.

P.S. I'll try to "hack in" the resume option and commit it to the GGNFS. (Because I can, and while not very good at deep things, but small things I can do.)The assembly secret source holders, please, merge that with the other source and post the binaries at will.

_____
*e.g. obvious perils of using shareware and not paying for it, "because I use it only once and the I'll delete it"... That's a slippery road. Anyway I think everyone will chose for themselves no matter how many moralizations will be recited... and I am not fit to cast stones anyway, heh, heh.
Was my joke too subtle?
R.D. Silverman is offline   Reply With Quote
Old 2008-12-15, 01:25   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

1026910 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Obviously, tail is more elegant, and is easily added to the system.
Eeyore would agree.

Yes, it was too subtle. Sorry
Batalov is offline   Reply With Quote
Old 2008-12-15, 01:37   #5
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

21D216 Posts
Default

Quote:
Eeyore would agree.
We sure miss Ernst's old avatar. What is the scoop on his new one? Is that DH and Gary Coleman?

Xyzzy is offline   Reply With Quote
Old 2008-12-15, 22:42   #6
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

1D8D16 Posts
Default

Quote:
Originally Posted by J.F. View Post
other annoyances such as the lack of head&tail

Yep. It's tough when you're not getting any.
R.D. Silverman is offline   Reply With Quote
Old 2008-12-15, 23:06   #7
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3×5×251 Posts
Default

% more .?* | head
*** ..: directory ***
::::::::::::::
.YES_THANKS
::::::::::::::

%

Last fiddled with by bsquared on 2008-12-15 at 23:07 Reason: removed quote
bsquared is offline   Reply With Quote
Old 2008-12-16, 04:21   #8
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

32·7·163 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
We sure miss Ernst's old avatar. What is the scoop on his new one? Is that DH and Gary Coleman?

By George, you're right - http://www.80srewind.net/david-hasse...leman-and-kit/
The DH cult in this community had gone too far.
_________

P.S. I've never known the origin of the phrase "what'chu talkin' 'bout, Willis?" only from the late 80s on a PC XT playing LSL, the original one (16-color EGA resolution )... and now I know! Thanks, wikipedia!
Attached Thumbnails
Click image for larger version

Name:	larry1-004.png
Views:	216
Size:	3.7 KB
ID:	3028  

Last fiddled with by Batalov on 2008-12-16 at 04:49 Reason: (memory lane)
Batalov is offline   Reply With Quote
Old 2008-12-16, 13:22   #9
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

246710 Posts
Default

Quote:
Originally Posted by Batalov View Post
Shouldn't that be "Kitt," with a double-t? After all it's an abbreviation for "Knight Industries Two Thousand." Yes, that's from memory.

Alex

Edit: guess we'll need another thread split soon...

Last fiddled with by akruppa on 2008-12-16 at 13:22
akruppa is offline   Reply With Quote
Old 2008-12-16, 14:28   #10
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31·67 Posts
Default

Quote:
Originally Posted by Batalov View Post
Gary isn't grinning; that's pain. His thumb is on fire.

edit: I just noticed how close my avatar is to Bob's! (It's a damp hamster in a tea towel.) I'll have to choose another pet.

Last fiddled with by Flatlander on 2008-12-16 at 15:03
Flatlander is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUDALucas versus Mfaktc/o Brain GPU Computing 26 2011-12-06 08:48
Hitting 100M digits on the head davieddy Lounge 1 2008-10-18 10:40
Bunny with pancake on his head t-shirts? jasong jasong 4 2007-04-16 13:05
Head, meet wall fivemack Factoring 13 2007-04-13 23:26
My off the top of my head sequence. Uncwilly Puzzles 16 2004-08-13 16:38

All times are UTC. The time now is 15:13.


Fri Jul 7 15:13:20 UTC 2023 up 323 days, 12:41, 0 users, load averages: 1.20, 1.10, 1.11

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔