Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #375257 > unrolled thread
| Started by | DFS <nospam@dfs.com> |
|---|---|
| First post | 2016-10-06 11:42 -0400 |
| Last post | 2016-10-07 11:10 -0700 |
| Articles | 20 on this page of 109 — 20 participants |
Back to article view | Back to comp.os.linux.advocacy
Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-06 11:42 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Adlbifhr Mjduhgfks <am@random.us> - 2016-10-06 20:00 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-06 19:31 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 00:20 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-06 20:55 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 01:04 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-06 22:11 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 02:19 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-06 23:20 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 03:33 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 00:02 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 04:22 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children fr314159@gmail.com - 2016-10-07 08:08 -0700
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-07 10:42 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-08 03:13 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-08 03:19 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-10-08 05:37 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 07:09 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <mel@zzzzz.com> - 2016-10-10 14:11 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 07:37 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-10 16:56 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Silver Slimer <.m@nsn.s> - 2016-10-08 10:26 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-08 10:48 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Steve Carroll <fretwizzer@gmail.com> - 2016-10-08 07:58 -0700
Re: Ping sbd: another programming challenge for your developmentally challenged children Silver Slimer <.m@nsn.s> - 2016-10-08 15:04 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-09 10:24 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-08 15:28 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-10-08 15:41 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-08 19:57 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Silver Slimer <.m@nsn.s> - 2016-10-08 17:23 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Silver Slimer <.m@nsn.s> - 2016-10-08 10:24 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-08 10:44 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-08 17:11 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-08 13:46 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-08 20:01 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children ronb <ronb02NOSPAM@gmail.com> - 2016-10-08 23:23 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-10-08 20:43 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 01:15 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 01:13 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children ronb <ronb02NOSPAM@gmail.com> - 2016-10-09 02:08 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 02:13 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-10-09 08:15 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 07:27 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children ronb <ronb02NOSPAM@gmail.com> - 2016-10-08 23:22 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-08 22:54 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 15:13 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-10-09 18:14 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 16:19 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-10-09 18:25 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 07:21 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 10:50 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children Snit <usenet@gallopinginsanity.com> - 2016-11-01 10:09 -0700
Re: Ping sbd: another programming challenge for your developmentally challenged children William Poaster <wp@dev.null> - 2016-10-09 22:29 +0100
Re: Ping sbd: another programming challenge for your developmentally challenged children Marek Novotny <marek.novotny@marspolar.com> - 2016-10-09 13:38 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-09 23:58 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 07:29 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children William Poaster <wp@dev.null> - 2016-10-10 13:41 +0100
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 12:25 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-10 13:33 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 10:51 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children chrisv <chrisv@nospam.invalid> - 2016-10-10 12:45 -0500
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 16:35 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children Silver Slimer <.m@nsn.s> - 2016-10-10 18:54 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 21:56 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-10 22:48 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Jim Polaski <jpolaski@linuxmail.org> - 2016-10-11 00:02 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 21:58 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children GreyCloud <Cumulus@mist.com> - 2016-10-10 21:58 -0600
Re: Ping sbd: another programming challenge for your developmentally challenged children Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-10-07 17:56 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 13:25 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Adlbifhr Mjduhgfks <am@random.us> - 2016-10-08 00:12 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-08 10:40 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-10 13:34 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-07 04:15 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 16:37 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Peter Köhlmann <peter-koehlmann@t-online.de> - 2016-10-07 20:34 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children Steve Carroll <frelwizzen@gmail.com> - 2016-10-07 11:10 -0700
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-20 11:20 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-21 08:53 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <mel@zzzzz.com> - 2016-10-21 13:19 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-21 10:45 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-22 01:06 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <Melzzzzz@zzzzz.com> - 2016-10-22 02:15 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-22 02:40 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <mel@zzzzz.com> - 2016-10-22 05:00 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-22 16:34 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <mel@zzzzz.com> - 2016-10-22 23:14 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children Chris Ahlstrom <OFeem1987@teleworm.us> - 2016-10-22 18:24 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-25 23:20 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-26 05:22 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-26 11:26 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-26 20:42 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Melzzzzz <mel@zzzzz.com> - 2016-10-27 01:45 +0200
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-27 01:21 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-22 09:33 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children deplorable owl <owl@rooftop.invalid> - 2016-10-22 16:50 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-10-06 21:25 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 16:30 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Steve Carroll <fretwizzer@gmail.com> - 2016-10-07 09:44 -0700
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 17:20 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 15:24 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 20:01 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 16:50 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 21:37 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 17:54 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 22:11 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children DFS <nospam@dfs.com> - 2016-10-07 13:51 -0400
Re: Ping sbd: another programming challenge for your developmentally challenged children Sandman <mr@sandman.net> - 2016-10-07 18:13 +0000
Re: Ping sbd: another programming challenge for your developmentally challenged children Steve Carroll <frelwizzen@gmail.com> - 2016-10-07 11:10 -0700
Page 1 of 6 [1] 2 3 4 5 6 Next page →
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-06 11:42 -0400 |
| Subject | Ping sbd: another programming challenge for your developmentally challenged children |
| Message-ID | <nt5rdf$35m$2@dont-email.me> |
And it's another 12-line python program! How about that?!
Same as before, the challenge is to replicate the functionality in
another programming language.
Even though it's a tiny bit of code, I know all 3 of y'all will whine a
LOT, so this time I'll give you more hints.
--------------------------------------------------------
def splitByLength(t,n,m):
w=str(t).split()
s,q=0,''
if w[0][0]=='>':
q=w[0]+' '
w.pop(0)
for e in range(1,len(w)-1):
if w[e][-1:]=='.':w[e]+=' '
if len(q)+len(' '.join(w[s:e+1]))>=m:
print n,q+' '.join(w[s:e])
n+=1; s=e
print n,q+' '.join(w[s:len(w)])
--------------------------------------------------------
t = input text
n = starting number
m = max length of lines
w = list object
s = integer to keep track of position
q = quoter character >
e = integer to keep track of position
Example input:
txt = "> Intel doesn't have to write a kernel from scratch. Nor does
Android. They can use Linux. And if they need to make modifications for
their own benefit, that's fine, just share that back. They benefited by
not having to develop from scratch. But they need to give something back
in return. Like the work they added. Both parties are give and take
something from each other. I'll take that over the BSD license any day
of the week."
Output of splitByLength(txt,1,60):
1 > Intel doesn't have to write a kernel from scratch. Nor
2 > does Android. They can use Linux. And if they need to
3 > make modifications for their own benefit, that's fine,
4 > just share that back. They benefited by not having to
5 > develop from scratch. But they need to give something
6 > back in return. Like the work they added. Both parties
7 > are give and take something from each other. I'll take
8 > that over the BSD license any day of the week.
Output of splitByLength(txt,100,40):
100 > Intel doesn't have to write a kernel
101 > from scratch. Nor does Android.
102 > They can use Linux. And if they need
103 > to make modifications for their own
104 > benefit, that's fine, just share that
105 > back. They benefited by not having
106 > to develop from scratch. But they
107 > need to give something back in
108 > return. Like the work they added.
109 > Both parties are give and take
110 > something from each other. I'll take
111 > that over the BSD license any day of
112 > the week.
Now wake those little dummies of yours and tell them there's work to do!
[toc] | [next] | [standalone]
| From | Adlbifhr Mjduhgfks <am@random.us> |
|---|---|
| Date | 2016-10-06 20:00 +0000 |
| Message-ID | <nt6ah6024gd@news3.newsguy.com> |
| In reply to | #375257 |
On Thu, 06 Oct 2016 11:42:50 -0400, DFS wrote: > it's another 12-line python program! > > > -------------------------------------------------------- > def splitByLength(t,n,m): > w=str(t).split() > > [snip rest of pathetic stupidity] > Let us recount the MANY idiocies within this pure shit code. In the first place, the dumb-fuck shill is quite impressed by his 12 lines of code, as if the paucity of lines implies an extreme cleverness and efficiency. The dumb doesn't realize that there is a SHIT LOAD of work going on behind the scenes. A humongous SHIT LOAD. Furthermore, the dumb fuck is actually manipulating strings, which always is a computationally very expensive undertaking. The whole thing SHOULD be written in C using pointers. In that way there would be NO string manipulation whatsoever and only a few lines would really, truly be necessary. I will not waste my time writing actual code but the outline is simple: For each iteration, define pointers for the start and end of a string section. A few tests (integer comparisons) to determine how the string section would be terminated are then added. Then the string section is output. When the next iteration involves a section that extends beyond the original string terminus, then output the remainder and exit. It's very simple. Just pointers and a few integer comparisons in a loop. Compare that to the dumb fuck's humongous string manipulation operations which are disguised as "12-line program." The dumb fuck demonstrates his incompetence yet again. Is it any wonder that he is a Microshit supporter? Ha, ha, ha, ha, ha, ha, ha, ha, ha, ha, ha!
[toc] | [prev] | [next] | [standalone]
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-06 19:31 -0400 |
| Message-ID | <nt6mra$a4u$1@dont-email.me> |
| In reply to | #375308 |
On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote: > I will not waste my time writing actual code Of course you won't, because you'll fuck it up and your incompetence will once again be on full display.
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-07 00:20 +0000 |
| Message-ID | <ahjdug0g.akogi@perch.invalid> |
| In reply to | #375353 |
DFS <nospam@dfs.com> wrote:
> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>
>
>> I will not waste my time writing actual code
>
>
> Of course you won't, because you'll fuck it up and your incompetence
> will once again be on full display.
>
bash one-liner. pwned.
fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
[toc] | [prev] | [next] | [standalone]
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-06 20:55 -0400 |
| Message-ID | <nt6rq4$n88$1@dont-email.me> |
| In reply to | #375359 |
On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
> DFS <nospam@dfs.com> wrote:
>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>
>>
>>> I will not waste my time writing actual code
>>
>>
>> Of course you won't, because you'll fuck it up and your incompetence
>> will once again be on full display.
>>
>
> bash one-liner. pwned.
> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
nah.
You cheated with fmt and nl.
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-07 01:04 +0000 |
| Message-ID | <ahjgi03.agvo4@perch.invalid> |
| In reply to | #375362 |
DFS <nospam@dfs.com> wrote:
> On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
>> DFS <nospam@dfs.com> wrote:
>>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>>
>>>
>>>> I will not waste my time writing actual code
>>>
>>>
>>> Of course you won't, because you'll fuck it up and your incompetence
>>> will once again be on full display.
>>>
>>
>> bash one-liner. pwned.
>> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
>
>
> nah.
>
> You cheated with fmt and nl.
>
You cheated with python.
[toc] | [prev] | [next] | [standalone]
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-06 22:11 -0400 |
| Message-ID | <nt707q$o7h$2@dont-email.me> |
| In reply to | #375364 |
On 10/6/2016 9:04 PM, Octavian W. Lagrange wrote:
> DFS <nospam@dfs.com> wrote:
>> On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
>>> DFS <nospam@dfs.com> wrote:
>>>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>>>
>>>>
>>>>> I will not waste my time writing actual code
>>>>
>>>>
>>>> Of course you won't, because you'll fuck it up and your incompetence
>>>> will once again be on full display.
>>>>
>>>
>>> bash one-liner. pwned.
>>> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
>>
>>
>> nah.
>>
>> You cheated with fmt and nl.
>>
>
> You cheated with python.
You sat there in your EZ-Boy recliner eating popcorn and let fmt do all
the work. And then you couldn't even be bothered to increment a line
number counter!?
boo! hiss!
DFS FTW
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-07 02:19 +0000 |
| Message-ID | <ahjgud03.agui4@perch.invalid> |
| In reply to | #375378 |
DFS <nospam@dfs.com> wrote:
> On 10/6/2016 9:04 PM, Octavian W. Lagrange wrote:
>> DFS <nospam@dfs.com> wrote:
>>> On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
>>>> DFS <nospam@dfs.com> wrote:
>>>>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>>>>
>>>>>
>>>>>> I will not waste my time writing actual code
>>>>>
>>>>>
>>>>> Of course you won't, because you'll fuck it up and your incompetence
>>>>> will once again be on full display.
>>>>>
>>>>
>>>> bash one-liner. pwned.
>>>> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
>>>
>>>
>>> nah.
>>>
>>> You cheated with fmt and nl.
>>>
>>
>> You cheated with python.
>
>
> You sat there in your EZ-Boy recliner eating popcorn and let fmt do all
> the work. And then you couldn't even be bothered to increment a line
> number counter!?
>
> boo! hiss!
>
>
> DFS FTW
>
What are you talking about? My awesome one-liner does exactly what your
bloated python does. The line number counter increments by one. It
can have a custom increment with -i. RTFM.
DFS FTL
Here's a wrapper for the lazy:
anon@lowtide:~/code/blah$ cat kah
#!/bin/bash
function fah () {
fmt -w ${3} ${1}|nl -v ${2} -n ln|awk '{printf $1;$1=""; print " >" $0}'
}
if [ ${#} -ne 3 ];then echo "$0 <file> <startnum> <width>"; exit;fi
data=${1}
fah ${data} ${2} ${3}
anon@lowtide:~/code/blah$
anon@lowtide:~/code/blah$ ./kah
./kah <file> <startnum> <width>
anon@lowtide:~/code/blah$ ./kah data 100 40
100 > Intel doesn't have to write a kernel
101 > from scratch. Nor does Android.
102 > They can use Linux. And if they need
103 > to make modifications for their own
104 > benefit, that's fine, just share that
105 > back. They benefited by not having to
106 > develop from scratch. But they need
107 > to give something back in return.
108 > Like the work they added. Both parties
109 > are give and take something from each
110 > other. I'll take that over the BSD
111 > license any day of the week.
anon@lowtide:~/code/blah$ ./kah data 15 70
15 > Intel doesn't have to write a kernel from scratch. Nor does Android.
16 > They can use Linux. And if they need to make modifications for their
17 > own benefit, that's fine, just share that back. They benefited by
18 > not having to develop from scratch. But they need to give something
19 > back in return. Like the work they added. Both parties are give
20 > and take something from each other. I'll take that over the BSD
21 > license any day of the week.
anon@lowtide:~/code/blah$
[toc] | [prev] | [next] | [standalone]
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-06 23:20 -0400 |
| Message-ID | <nt74aa$2uj$2@dont-email.me> |
| In reply to | #375383 |
On 10/6/2016 10:19 PM, Octavian W. Lagrange wrote:
> DFS <nospam@dfs.com> wrote:
>> On 10/6/2016 9:04 PM, Octavian W. Lagrange wrote:
>>> DFS <nospam@dfs.com> wrote:
>>>> On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
>>>>> DFS <nospam@dfs.com> wrote:
>>>>>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>>>>>
>>>>>>
>>>>>>> I will not waste my time writing actual code
>>>>>>
>>>>>>
>>>>>> Of course you won't, because you'll fuck it up and your incompetence
>>>>>> will once again be on full display.
>>>>>>
>>>>>
>>>>> bash one-liner. pwned.
>>>>> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
>>>>
>>>>
>>>> nah.
>>>>
>>>> You cheated with fmt and nl.
>>>>
>>>
>>> You cheated with python.
>>
>>
>> You sat there in your EZ-Boy recliner eating popcorn and let fmt do all
>> the work. And then you couldn't even be bothered to increment a line
>> number counter!?
>>
>> boo! hiss!
>>
>>
>> DFS FTW
>>
>
> What are you talking about? My awesome one-liner does exactly what your
> bloated python does.
fmt by itself does most of it.
Calling fmt is a huge CHEAT!
You did no looping, counting, incrementing, or comparisons. Write a
real program, why don'tcha?
Also, I notice your fmt output doesn't retain the 2 spaces after a
period. That seems strange.
My code forces 2 spaces after a period, even if there was originally
only one.
> The line number counter increments by one.
> It can have a custom increment with -i. RTFM.
>
> DFS FTL
>
> Here's a wrapper for the lazy:
>
> anon@lowtide:~/code/blah$ cat kah
> #!/bin/bash
> function fah () {
> fmt -w ${3} ${1}|nl -v ${2} -n ln|awk '{printf $1;$1=""; print " >" $0}'
> }
> if [ ${#} -ne 3 ];then echo "$0 <file> <startnum> <width>"; exit;fi
> data=${1}
> fah ${data} ${2} ${3}
>
> anon@lowtide:~/code/blah$
>
> anon@lowtide:~/code/blah$ ./kah
> ./kah <file> <startnum> <width>
> anon@lowtide:~/code/blah$ ./kah data 100 40
> 100 > Intel doesn't have to write a kernel
> 101 > from scratch. Nor does Android.
> 102 > They can use Linux. And if they need
> 103 > to make modifications for their own
> 104 > benefit, that's fine, just share that
> 105 > back. They benefited by not having to
> 106 > develop from scratch. But they need
> 107 > to give something back in return.
> 108 > Like the work they added. Both parties
> 109 > are give and take something from each
> 110 > other. I'll take that over the BSD
> 111 > license any day of the week.
> anon@lowtide:~/code/blah$ ./kah data 15 70
> 15 > Intel doesn't have to write a kernel from scratch. Nor does Android.
> 16 > They can use Linux. And if they need to make modifications for their
> 17 > own benefit, that's fine, just share that back. They benefited by
> 18 > not having to develop from scratch. But they need to give something
> 19 > back in return. Like the work they added. Both parties are give
> 20 > and take something from each other. I'll take that over the BSD
> 21 > license any day of the week.
> anon@lowtide:~/code/blah$
>
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-07 03:33 +0000 |
| Message-ID | <hjagu00ga.4@perch.invalid> |
| In reply to | #375388 |
DFS <nospam@dfs.com> wrote:
> On 10/6/2016 10:19 PM, Octavian W. Lagrange wrote:
>> DFS <nospam@dfs.com> wrote:
>>> On 10/6/2016 9:04 PM, Octavian W. Lagrange wrote:
>>>> DFS <nospam@dfs.com> wrote:
>>>>> On 10/6/2016 8:20 PM, Octavian W. Lagrange wrote:
>>>>>> DFS <nospam@dfs.com> wrote:
>>>>>>> On 10/6/2016 4:00 PM, Adlbifhr Mjduhgfks wrote:
>>>>>>>
>>>>>>>
>>>>>>>> I will not waste my time writing actual code
>>>>>>>
>>>>>>>
>>>>>>> Of course you won't, because you'll fuck it up and your incompetence
>>>>>>> will once again be on full display.
>>>>>>>
>>>>>>
>>>>>> bash one-liner. pwned.
>>>>>> fmt -w <width> <file>|nl -v <start> -n ln|awk '{printf $1;$1=""; print " >" $0}'
>>>>>
>>>>>
>>>>> nah.
>>>>>
>>>>> You cheated with fmt and nl.
>>>>>
>>>>
>>>> You cheated with python.
>>>
>>>
>>> You sat there in your EZ-Boy recliner eating popcorn and let fmt do all
>>> the work. And then you couldn't even be bothered to increment a line
>>> number counter!?
>>>
>>> boo! hiss!
>>>
>>>
>>> DFS FTW
>>>
>>
>> What are you talking about? My awesome one-liner does exactly what your
>> bloated python does.
>
>
> fmt by itself does most of it.
>
So? That's what it's there for. Why reinvent the wheel. You realize
that shell scripts are all composed of commands, right? Anything
available in the shell becomes just another function I get to use.
You know, like the various python libraries...
> Calling fmt is a huge CHEAT!
>
No, it's not. LOL.
> You did no looping, counting, incrementing, or comparisons. Write a
> real program, why don'tcha?
>
That is a real program.
> Also, I notice your fmt output doesn't retain the 2 spaces after a
> period. That seems strange.
>
fmt has a -u option that is supposed to handle that, but it does
not seem to work. You may have uncovered a bug.
-u, --uniform-spacing
one space between words, two after sentences
> My code forces 2 spaces after a period, even if there was originally
> only one.
>
Awesome.
[toc] | [prev] | [next] | [standalone]
| From | DFS <nospam@dfs.com> |
|---|---|
| Date | 2016-10-07 00:02 -0400 |
| Message-ID | <nt76o5$8ff$1@dont-email.me> |
| In reply to | #375389 |
On 10/6/2016 11:33 PM, Octavian W. Lagrange wrote: > DFS <nospam@dfs.com> wrote: >> Also, I notice your fmt output doesn't retain the 2 spaces after a >> period. That seems strange. >> > > fmt has a -u option that is supposed to handle that, but it does > not seem to work. You may have uncovered a bug. > > -u, --uniform-spacing > one space between words, two after sentences I can't imagine I'm the first to spot that, if it is a bug. http://lingrok.org/xref/coreutils/src/fmt.c Lines 700-701. Looks right. >> My code forces 2 spaces after a period, even if there was originally >> only one. >> > > Awesome. I didn't mean it as a brag, just a note that my program also changed the input. But do let the butthurt flow.
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-07 04:22 +0000 |
| Message-ID | <ahgjado03.fg@perch.invalid> |
| In reply to | #375390 |
DFS <nospam@dfs.com> wrote: > On 10/6/2016 11:33 PM, Octavian W. Lagrange wrote: >> DFS <nospam@dfs.com> wrote: > > >>> Also, I notice your fmt output doesn't retain the 2 spaces after a >>> period. That seems strange. >>> >> >> fmt has a -u option that is supposed to handle that, but it does >> not seem to work. You may have uncovered a bug. >> >> -u, --uniform-spacing >> one space between words, two after sentences > > > I can't imagine I'm the first to spot that, if it is a bug. > > http://lingrok.org/xref/coreutils/src/fmt.c > > Lines 700-701. Looks right. > > It only spaces down, not up. It's retarded. > > >>> My code forces 2 spaces after a period, even if there was originally >>> only one. >>> >> >> Awesome. > > > I didn't mean it as a brag, just a note that my program also changed the > input. > > But do let the butthurt flow. > lol
[toc] | [prev] | [next] | [standalone]
| From | fr314159@gmail.com |
|---|---|
| Date | 2016-10-07 08:08 -0700 |
| Message-ID | <53f6c38c-b10b-4c25-89e7-48eb2f3f40b4@googlegroups.com> |
| In reply to | #375392 |
On Friday, October 7, 2016 at 12:22:17 AM UTC-4, Octavian W. Lagrange wrote: > > It only spaces down, not up. It's retarded. > Why are you being so chummy with this contemptible idiot? He is the friggin' enemy! Anyone who supports Microshit, in even a minuscule way, should be drawn and quartered. Their tongues should be cut out and their bodies crucified under the torrid sun with crows to peck out their eyes. That's the problem with you deadbeat loafers. You all have no spirit. You are not a GNU/Linux advocate, so get out and stay out.
[toc] | [prev] | [next] | [standalone]
| From | chrisv <chrisv@nospam.invalid> |
|---|---|
| Date | 2016-10-07 10:42 -0500 |
| Message-ID | <8nffvblmg7ptopdoehssdpd4je0camtv31@4ax.com> |
| In reply to | #375428 |
"Fabian" wrote: > "owl" wrote: >> >> It only spaces down, not up. It's retarded. > > Why are you being so chummy with this contemptible idiot? "owl" is one of these guys who will have a friendly chit-chat with someone, no matter how vile and shitty they are. "Snit", "DFS", you name it. I don't get it, either. -- "Now we know why you could not find the EXIF data on your images until I pointed it out. :)" - some thing, lying shamelessly (but no one can quote it lying)
[toc] | [prev] | [next] | [standalone]
| From | "Octavian W. Lagrange" <olagrang@perch.invalid> |
|---|---|
| Date | 2016-10-08 03:13 +0000 |
| Message-ID | <hjadjao03.axx8@perch.invalid> |
| In reply to | #375430 |
chrisv <chrisv@nospam.invalid> wrote: > "Fabian" wrote: > >> "owl" wrote: >>> >>> It only spaces down, not up. It's retarded. >> >> Why are you being so chummy with this contemptible idiot? > > "owl" is one of these guys who will have a friendly chit-chat with > someone, no matter how vile and shitty they are. "Snit", "DFS", you > name it. I don't get it, either. > You sure worry a lot about who I talk to for some reason. How about you mind your own business.
[toc] | [prev] | [next] | [standalone]
| From | Jim Polaski <jpolaski@linuxmail.org> |
|---|---|
| Date | 2016-10-08 03:19 +0000 |
| Message-ID | <e5r6t9FsoapU1@mid.individual.net> |
| In reply to | #375527 |
On 2016-10-08, Octavian W. Lagrange <olagrang@perch.invalid> wrote: > chrisv <chrisv@nospam.invalid> wrote: >> "Fabian" wrote: >> >>> "owl" wrote: >>>> >>>> It only spaces down, not up. It's retarded. >>> >>> Why are you being so chummy with this contemptible idiot? >> >> "owl" is one of these guys who will have a friendly chit-chat with >> someone, no matter how vile and shitty they are. "Snit", "DFS", you >> name it. I don't get it, either. >> > > You sure worry a lot about who I talk to for some reason. How about > you mind your own business. > I notice the same thing. Say everything people want to hear and you get +1,. Disagree and you are the devil and they KF you. Very strange.
[toc] | [prev] | [next] | [standalone]
| From | Chris Ahlstrom <OFeem1987@teleworm.us> |
|---|---|
| Date | 2016-10-08 05:37 -0400 |
| Message-ID | <ntaf7m$p34$3@dont-email.me> |
| In reply to | #375528 |
Jim Polaski wrote this copyrighted missive and expects royalties: > On 2016-10-08, Octavian W. Lagrange <olagrang@perch.invalid> wrote: >> chrisv <chrisv@nospam.invalid> wrote: >>> "Fabian" wrote: >>> >>>> "owl" wrote: >>>>> >>>>> It only spaces down, not up. It's retarded. >>>> >>>> Why are you being so chummy with this contemptible idiot? >>> >>> "owl" is one of these guys who will have a friendly chit-chat with >>> someone, no matter how vile and shitty they are. "Snit", "DFS", you >>> name it. I don't get it, either. >> >> You sure worry a lot about who I talk to for some reason. How about >> you mind your own business. >> > I notice the same thing. > Say everything people want to hear and you get +1,. > Disagree and you are the devil and they KF you. > Very strange. Amazing. They all eventually slowly draw off the cloak and asymptote to troll status. -- Awash with unfocused desire, Everett twisted the lobe of his one remaining ear and felt the presence of somebody else behind him, which caused terror to push through his nervous system like a flash flood roaring down the mid-fork of the Feather River before the completion of the Oroville Dam in 1959. -- Grand Panjandrum's Special Award, 1984 Bulwer-Lytton bad fiction contest.
[toc] | [prev] | [next] | [standalone]
| From | chrisv <chrisv@nospam.invalid> |
|---|---|
| Date | 2016-10-10 07:09 -0500 |
| Message-ID | <tt0nvb1epokekdlolm4kcb6ahqsnsonjrc@4ax.com> |
| In reply to | #375538 |
Chris Ahlstrom wrote: > Jim Polaski wrote: >> >> I notice the same thing. >> Say everything people want to hear and you get +1,. >> Disagree and you are the devil and they KF you. >> Very strange. It is very strange that you think that anyone would be fooled by your lies, "Jim". >Amazing. They all eventually slowly draw off the cloak and >asymptote to troll status. I plonked the idiot on day one, for being a "Snit" promoter. -- "A strange bunch, ain't they." - some piece of shit that calls itself "GreyCloud", joining with filthy trolls to attack the cola advocates
[toc] | [prev] | [next] | [standalone]
| From | Melzzzzz <mel@zzzzz.com> |
|---|---|
| Date | 2016-10-10 14:11 +0200 |
| Message-ID | <20161010141133.4544840f@maxa-pc.cpe.bvcom.net> |
| In reply to | #375770 |
On Mon, 10 Oct 2016 07:09:46 -0500 chrisv <chrisv@nospam.invalid> wrote: > Chris Ahlstrom wrote: > > > Jim Polaski wrote: > >> > >> I notice the same thing. > >> Say everything people want to hear and you get +1,. > >> Disagree and you are the devil and they KF you. > >> Very strange. > > It is very strange that you think that anyone would be fooled by your > lies, "Jim". > > >Amazing. They all eventually slowly draw off the cloak and > >asymptote to troll status. > > I plonked the idiot on day one, for being a "Snit" promoter. > Ahahahhaa, yeah Jim certainly likes to talk about Snit ;))))))))))))) -- press any key to continue or any other to quit
[toc] | [prev] | [next] | [standalone]
| From | chrisv <chrisv@nospam.invalid> |
|---|---|
| Date | 2016-10-10 07:37 -0500 |
| Message-ID | <ad2nvbdckhleo65l8eifqeg6palg8rr5mr@4ax.com> |
| In reply to | #375538 |
>> "owl" wrote: >>> >>> chrisv wrote: >>>> >>>> "owl" is one of these guys who will have a friendly chit-chat with >>>> someone, no matter how vile and shitty they are. "Snit", "DFS", you >>>> name it. I don't get it, either. >>> >>> You sure worry a lot about who I talk to for some reason. I think you know the reason, "owl". I believe that being a total shit should be discouraged, and that ignoring them is that only way to do that. I realize that some trolling, and some troll feeding, is necessary, but some of these shitbags have went *way* "over the line". -- 'You (the lame Linux "community") have always decided on one "best distro".' - DumFSck, lying shamelessly
[toc] | [prev] | [next] | [standalone]
Page 1 of 6 [1] 2 3 4 5 6 Next page →
Back to top | Article view | comp.os.linux.advocacy
csiph-web