Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #357590 > unrolled thread

OT: Steve Carroll, how would you fix this minor blunder?

Started byDFS <nospam@dfs.com>
First post2016-05-28 11:24 -0400
Last post2016-05-31 17:48 -0400
Articles 20 on this page of 43 — 8 participants

Back to article view | Back to comp.os.linux.advocacy


Contents

  OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-28 11:24 -0400
    Re: OT: Steve Carroll, how would you fix this minor blunder? Sandman <mr@sandman.net> - 2016-05-28 16:19 +0000
      Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-28 12:40 -0400
        Re: OT: Steve Carroll, how would you fix this minor blunder? Sandman <mr@sandman.net> - 2016-05-28 19:17 +0000
          Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-28 12:43 -0700
        Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-28 12:49 -0700
    Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-30 09:53 -0700
      Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-30 13:11 -0400
        Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-30 10:22 -0700
          Re: OT: Steve Carroll, how would you fix this minor blunder? "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-05-30 21:09 +0000
            Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-30 14:32 -0700
              Re: OT: Steve Carroll, how would you fix this minor blunder? "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-05-30 21:48 +0000
          Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-30 17:34 -0400
            Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-30 14:57 -0700
              Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-31 13:57 -0400
                Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-31 11:21 -0700
                  Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-01 10:05 -0400
                    Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-01 08:48 -0700
                      Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-01 13:12 -0400
                        Re: OT: Steve Carroll, how would you fix this minor blunder? "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-06-01 17:19 +0000
                          Re: OT: Steve Carroll, how would you fix this minor blunder? vallor <vallor@cultnix.org> - 2016-06-01 17:32 +0000
                            Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-01 10:45 -0700
                            Re: OT: Steve Carroll, how would you fix this minor blunder? "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-06-01 18:07 +0000
                        Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-01 10:41 -0700
                          Re: OT: Steve Carroll, how would you fix this minor blunder? tmelmosfire <tmelmosfire@gmail.com> - 2016-06-01 15:40 -0700
                          Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-01 23:58 -0400
                            Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-02 09:21 -0700
                              Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-02 20:22 -0400
                                Re: OT: Steve Carroll, how would you fix this minor blunder? tmelmosfire <tmelmosfire@gmail.com> - 2016-06-02 17:32 -0700
                                Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-03 10:03 -0700
                Re: OT: Steve Carroll, how would you fix this minor blunder? Snit <usenet@gallopinginsanity.com> - 2016-05-31 11:34 -0700
                  Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-31 11:45 -0700
                    Re: OT: Steve Carroll, how would you fix this minor blunder? tmelmosfire <tmelmosfire@gmail.com> - 2016-05-31 19:29 -0700
      Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-05-31 13:44 -0400
        Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-05-31 11:22 -0700
          Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-01 11:14 -0700
            Re: OT: Steve Carroll, how would you fix this minor blunder? "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-06-01 18:21 +0000
            Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-01 14:26 -0400
              Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-01 11:46 -0700
            Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-02 20:49 -0400
              Re: OT: Steve Carroll, how would you fix this minor blunder? Steve Carroll <fretwizzer@gmail.com> - 2016-06-04 07:55 -0700
                Re: OT: Steve Carroll, how would you fix this minor blunder? DFS <nospam@dfs.com> - 2016-06-04 17:49 -0400
        Re: OT: Steve Carroll, how would you fix this minor blunder? flatfish+++ <flatfish4real@gmail.com> - 2016-05-31 17:48 -0400

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#358082

Fromvallor <vallor@cultnix.org>
Date2016-06-01 17:32 +0000
Message-ID<dr8kggFn96iU12@mid.individual.net>
In reply to#358080
On Wed, 01 Jun 2016 17:19:30 +0000, Octavian W. Lagrange wrote:

> DFS <nospam@dfs.com> wrote:
>> On 6/1/2016 11:48 AM, Steve Carroll wrote:
> 
> 
>> 
>>> The question is: How good are your regex chops and replacement
>>> 'logic'?
>> 
>> My "regex chops" begin and end at: '[^a-zA-Z]'
>> 
>> 
> http://shop.oreilly.com/product/9780596528126.do

Or, to use some freely-available documentation:

man perlretut
man perlrequick
man perlre

Perl regular expressions are only slightly different than "standard" -- 
and in fact, a lot of times a program that uses regexes will link with 
the perl library.

-- 
 -v
"Desktops, workstations and servers are and Microsoft
is doing very well. AS well as Linux." -"Slimer"
"I do not see desktop Linux as a failure." -"Snit"

[toc] | [prev] | [next] | [standalone]


#358085

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-01 10:45 -0700
Message-ID<8ca826e4-a78a-4857-8660-ba0eae733607@googlegroups.com>
In reply to#358082
On Wednesday, June 1, 2016 at 11:32:03 AM UTC-6, vallor wrote:
> On Wed, 01 Jun 2016 17:19:30 +0000, Octavian W. Lagrange wrote:
> 
> > DFS <nospam@dfs.com> wrote:
> >> On 6/1/2016 11:48 AM, Steve Carroll wrote:
> > 
> > 
> >> 
> >>> The question is: How good are your regex chops and replacement
> >>> 'logic'?
> >> 
> >> My "regex chops" begin and end at: '[^a-zA-Z]'
> >> 
> >> 
> > http://shop.oreilly.com/product/9780596528126.do
> 
> Or, to use some freely-available documentation:
> 
> man perlretut
> man perlrequick
> man perlre
> 
> Perl regular expressions are only slightly different than "standard" -- 
> and in fact, a lot of times a program that uses regexes will link with 
> the perl library.

You can probably get that book online for free. A ton of them are available if you know where to look (i.e. <http://www.it-ebooks.info/>).

As a matter of fact:
<http://it-ebooks.info/book/341/>

Download link:
<http://filepi.com/i/8Y3rvaz>

[toc] | [prev] | [next] | [standalone]


#358086

From"Octavian W. Lagrange" <olagrang@perch.invalid>
Date2016-06-01 18:07 +0000
Message-ID<fhjaov03.a09gae@perch.invalid>
In reply to#358082
vallor <vallor@cultnix.org> wrote:
> On Wed, 01 Jun 2016 17:19:30 +0000, Octavian W. Lagrange wrote:
> 
>> DFS <nospam@dfs.com> wrote:
>>> On 6/1/2016 11:48 AM, Steve Carroll wrote:
>> 
>> 
>>> 
>>>> The question is: How good are your regex chops and replacement
>>>> 'logic'?
>>> 
>>> My "regex chops" begin and end at: '[^a-zA-Z]'
>>> 
>>> 
>> http://shop.oreilly.com/product/9780596528126.do
> 
> Or, to use some freely-available documentation:
> 
> man perlretut
> man perlrequick
> man perlre
> 

also perlreref
and can use pcregrep to play with perl regexes.

pcregrep is cool for multiline matching.

anon@lowtide:~$ cat laa
one
two
one
  two
one
 two
one two
anon@lowtide:~$ pcregrep -M 'one\n  two' laa
one
  two
anon@lowtide:~$ 


> Perl regular expressions are only slightly different than "standard" -- 
> and in fact, a lot of times a program that uses regexes will link with 
> the perl library.
> 

[toc] | [prev] | [next] | [standalone]


#358083

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-01 10:41 -0700
Message-ID<befae297-7e23-4586-be11-7b54eb33bdfd@googlegroups.com>
In reply to#358078
On Wednesday, June 1, 2016 at 11:12:44 AM UTC-6, DFS wrote:
> On 6/1/2016 11:48 AM, Steve Carroll wrote:
> > On Wednesday, June 1, 2016 at 8:05:16 AM UTC-6, DFS wrote:
> >> On 5/31/2016 2:21 PM, Steve Carroll wrote:
> >>> On Tuesday, May 31, 2016 at 11:57:31 AM UTC-6, DFS wrote:
> >>>> On 5/30/2016 5:57 PM, Steve Carroll wrote:
> >>>>
> >>>>
> >>>>> You're probably want to (if you haven't already) use something like CherryPy.
> >>>>
> >>>>
> >>>> Looks useful.
> >>>>
> >>>>
> >>>>
> >>>>> Here's another little challenge, from crackhead's 'non-database' of stuff about PK:
> >>>>>
> >>>>> <https://vid.me/ACaW>
> >>>>>
> >>>>> I created the file from here:
> >>>>>
> >>>>> <https://groups.google.com/forum/#!original/comp.os.linux.advocacy/Qu7kcCjtOaw/6oQASY5dCwAJ>
> >>>>
> >>>>
> >>>> Is the 'challenge' to use python to create an HTML page of Snit's
> >>>> Kohlmann quotes?
> >>>>
> >>>> How did you do it?
> >>>
> >>> How else... using generous helpings of:
> >>>
> >>> <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace>
> >>
> >>
> >> Code please.
> >
> > Cheating?!
> 
> Never.
> 
> 
> > I wasn't kidding, it's mostly simple statements using regex that replace his markings with elements and such, for example:
> >
> > data = data.replace(/----/g,"<p class = \"my-class\" >");
> >
> > The regex is in between the slashes and the replacement is after the comma. Should be easy, right?
> 
> In theory.  In reality, you curse the day you were born.

I was born at night... under a full moon (seriously).


> > One problem with separating out the quotes was his inconsistency, I was unable to get a 100% error free result wrt being able to italicize the quoted material from PK... it was mostly good but had issues, here's one (I think there were 2?):
> >
> > <http://imgur.com/MHxU7uQ>
> >
> > Maybe you can get a better result. This exercise is more dependent on regex and statement ordering than anything else (and I suck at regex). Maybe the stuff below is the part you're missing for web, it'll bring your text file in as an object, then just use it in javascript s I just showed, or tweak the file the way you want in Python on the server ahead of time. If you really wanna cheat you can bring it into the target div with:
> >
> > document.getElementById('targetDiv').innerHTML = data;
> >
> > That's a reference to the element shown in the HTML doc below and the javascript property used to replace the text currently in between the opening and closing tags: "This was the element you referenced above". As for getting the data from the text file, in between script tags, paste this:
> >
> > 'use strict';
> > var obj = new XMLHttpRequest(), fixed,data;
> > obj.onreadystatechange = function () {
> >     if (obj.readyState === 4) {
> >         data = obj.responseText;
> >     }
> >   };
> > obj.open('GET', 'data.txt');
> > function sendAJAX() {
> >         obj.send( );
> >     }
> > sendAJAX();
> >
> > The above requires that the data.txt file be on the same hierarchical level as the your.html file that references it with script tags (and it won't handle errors very gracefully). The HTML document requires a target element with the CSS ID selector I specified above ("targetDiv"), so the entire HTML could be as simple as:
> >
> > <!DOCTYPE html>
> > <html lang="en">
> > <head>
> > 	<meta charset="utf-8" />
> > 	<title>Challenge</title>
> > </head>
> > <body>
> > 	<div id="targetDiv">This was the element you referenced above</div>
> > </body>
> > <script>Place the above script here</script>
> > </html>
> >
> > And the CSS as easy as:
> >
> > #targetDiv {
> >   background-color# #efefef;
> >   border-left: 5px dashed #ccc;
> > }
> >
> > Be careful using that CSS, though... crackhead may sue you for copyright infringement ;)
> 
> 
> It looks very complex...
> 
> 
> 
> > I cut out pretty much any legwork you'd have to do to get it into a web page.
> 
> Why?

Cuz I figured if you weren't used to doing that for an HTML page I'd give you what it took to get you there so you can display some of your Python processed data in a medium you're going to want to learn more about.

> I didn't care about the mechanics.  I just wanted to see how much code 
> was required to do the conversion.

I used the replace() method 11 times. Stuff like this is good regex practice and you definitely do want to know some for dealing with certain kinds of data.

> Last night I looked at some of the python HTML libs, but I'm sure it 
> won't be quite as easy as they make it look.

That's why I pointed you to CherryPy, looks like it makes things pretty easy. But the example I just gave you will let you bring a file in via javascript so you can avoid all that here. Just process the file in Python and output it into a xxx.txt file and reference it using what I gave you. Can't hurt to know how to do simple stuff like this without having to deal with a Python backend, right? This will quickly let you marry some of the things you're working on to a medium that serves the widest audience possible. And we all know how you like an audience ;)
 
> > The question is: How good are your regex chops and replacement 'logic'?
> 
> My "regex chops" begin and end at:
> '[^a-zA-Z]'
> 
> 
> 
> 
>  > Don't overlook the simple stuff, Fabian is watching ;)
> 
> As am I watching that simple-simon numbnut for any new weaknesses to 
> exploit (on top of the many he already revealed).

Yes, I sure your wife is glad to have a different name (than 'Snit') moaned at night now ;)

[toc] | [prev] | [next] | [standalone]


#358114

Fromtmelmosfire <tmelmosfire@gmail.com>
Date2016-06-01 15:40 -0700
Message-ID<a272eca2-842d-4250-8a66-677fbef26f2d@googlegroups.com>
In reply to#358083
On Wednesday, 1 June 2016 17:41:07 UTC, Steve Carroll  wrote:

> > > I wasn't kidding, it's mostly simple statements using regex that replace his markings with elements and such, for example:
> > >
> > > data = data.replace(/----/g,"<p class = \"my-class\" >");
> > >
> > > The regex is in between the slashes and the replacement is after the comma. Should be easy, right?
> > 
> > In theory.  In reality, you curse the day you were born.
> 
> I was born at night... under a full moon (seriously).

You have not stopped being howling mad yet.

> >  > Don't overlook the simple stuff, Fabian is watching ;)
> > 
> > As am I watching that simple-simon numbnut for any new weaknesses to 
> > exploit (on top of the many he already revealed).
> 
> Yes, I sure your wife is glad to have a different name (than 'Snit') moaned at night now ;)

You truly long to fuck Snit. You have since before your wife tossed you to the curb for your cheating.

[toc] | [prev] | [next] | [standalone]


#358181

FromDFS <nospam@dfs.com>
Date2016-06-01 23:58 -0400
Message-ID<nioatk$hqc$1@dont-email.me>
In reply to#358083
On 6/1/2016 1:41 PM, Steve Carroll wrote:


> I was born at night... under a full moon (seriously).

Out in a pot field in Tijuana.



> I used the replace() method 11 times. Stuff like this is good regex practice and you definitely do want to know some for dealing with certain kinds of data.

Yeah.  It's powerful stuff, but grisly to write.


>> Last night I looked at some of the python HTML libs, but I'm sure it
>> won't be quite as easy as they make it look.
>
> That's why I pointed you to CherryPy, looks like it makes things pretty easy.

python itself has some excellent features that make life easy.  I'm 
really glad I chose to delve into it.  Been using python and SQLite, 
rather than VBA and Access - but with Access it's easy to build nice GUI 
database systems.  That's a lot more trouble in python - not even worth 
doing probably.

My goal is to get some paying python work at some point - maybe db 
stuff, or web development.



> Yes, I sure your wife is glad to have a different name (than 'Snit') moaned at night now ;)

Now you're losing your tenuous grip on reality.

Don't make me query the freshly-built USENET.sqlite - containing all 
cola posts since late Oct 2010 - and find out exactly how many times 
you've said 'people are not as stupid as you need them to be'.

It's a very 'leet db: small, fast (for some searches anyway), normalized 
with no repeating rows, flexible enough to handle any server and any 
newsgroup with aplomb.

As of a couple days ago:
SERVER         eternal-september
GROUP          cola
POSTS          376881
NYMS           3783
SUBJECTS       60462
NEWSREADERS    1106
MESSAGE LINES  16610838

[toc] | [prev] | [next] | [standalone]


#358248

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-02 09:21 -0700
Message-ID<39cc1f2b-8c7b-40c6-9386-54d2c69746c6@googlegroups.com>
In reply to#358181
On Wednesday, June 1, 2016 at 9:58:46 PM UTC-6, DFS wrote:
> On 6/1/2016 1:41 PM, Steve Carroll wrote:
> 
> 
> > I was born at night... under a full moon (seriously).
> 
> Out in a pot field in Tijuana.
> 
> 
> 
> > I used the replace() method 11 times. Stuff like this is good regex practice and you definitely do want to know some for dealing with certain kinds of data.
> 
> Yeah.  It's powerful stuff, but grisly to write.
> 
> 
> >> Last night I looked at some of the python HTML libs, but I'm sure it
> >> won't be quite as easy as they make it look.
> >
> > That's why I pointed you to CherryPy, looks like it makes things pretty easy.
> 
> python itself has some excellent features that make life easy.  I'm 
> really glad I chose to delve into it.  Been using python and SQLite, 
> rather than VBA and Access - but with Access it's easy to build nice GUI 
> database systems.  That's a lot more trouble in python - not even worth 
> doing probably.
> 
> My goal is to get some paying python work at some point - maybe db 
> stuff, or web development.
> 
> 
> 
> > Yes, I sure your wife is glad to have a different name (than 'Snit') moaned at night now ;)
> 
> Now you're losing your tenuous grip on reality.
> 
> Don't make me query the freshly-built USENET.sqlite - containing all 
> cola posts since late Oct 2010 - and find out exactly how many times 
> you've said 'people are not as stupid as you need them to be'.
> 
> It's a very 'leet db: small, fast (for some searches anyway), normalized 
> with no repeating rows, flexible enough to handle any server and any 
> newsgroup with aplomb.
> 
> As of a couple days ago:
> SERVER         eternal-september
> GROUP          cola
> POSTS          376881
> NYMS           3783
> SUBJECTS       60462
> NEWSREADERS    1106
> MESSAGE LINES  16610838

I tried to run yours but El Capitan has an issue with the proper loading of 'lxml' for some reason. This is one of the things about Apple, they change things with respect to where files go too often in my opinion.

[toc] | [prev] | [next] | [standalone]


#358315

FromDFS <nospam@dfs.com>
Date2016-06-02 20:22 -0400
Message-ID<niqijp$s0g$1@dont-email.me>
In reply to#358248
On 6/2/2016 12:21 PM, Steve Carroll wrote:
> On Wednesday, June 1, 2016 at 9:58:46 PM UTC-6, DFS wrote:


> I tried to run yours but El Capitan has an issue with the proper loading of 'lxml' for some reason. This is one of the things about Apple, they change things with respect to where files go too often in my opinion.


Did you install lxml?

pip install lxml



[toc] | [prev] | [next] | [standalone]


#358316

Fromtmelmosfire <tmelmosfire@gmail.com>
Date2016-06-02 17:32 -0700
Message-ID<0d97732d-9826-4a3e-8200-2917f0e6255a@googlegroups.com>
In reply to#358315
On Friday, 3 June 2016 00:22:19 UTC, DFS  wrote:
> On 6/2/2016 12:21 PM, Steve Carroll wrote:
> > On Wednesday, June 1, 2016 at 9:58:46 PM UTC-6, DFS wrote:
> 
> 
> > I tried to run yours but El Capitan has an issue with the proper loading of 'lxml' for some reason. This is one of the things about Apple, they change things with respect to where files go too often in my opinion.
> 
> 
> Did you install lxml?
> 
> pip install lxml

Steve "Steven Petruzzellis" Carroll wants to "install" his pip in Snit's ass.

Don't worry, Snit, it won't hurt much. There is a reason his ex-girlfriend used to call him Tater Tot. 

That was seriously her nick name for him. I bet he never says why. :-)

[toc] | [prev] | [next] | [standalone]


#358381

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-03 10:03 -0700
Message-ID<974fdc24-10b4-4a1c-942c-2733c2efdde7@googlegroups.com>
In reply to#358315
On Thursday, June 2, 2016 at 6:22:19 PM UTC-6, DFS wrote:
> On 6/2/2016 12:21 PM, Steve Carroll wrote:
> > On Wednesday, June 1, 2016 at 9:58:46 PM UTC-6, DFS wrote:
> 
> 
> > I tried to run yours but El Capitan has an issue with the proper loading of 'lxml' for some reason. This is one of the things about Apple, they change things with respect to where files go too often in my opinion.
> 
> 
> Did you install lxml?
> 
> pip install lxml

I've tried that and a bunch of things. I'll keep working on it as time allows.

[toc] | [prev] | [next] | [standalone]


#357900

FromSnit <usenet@gallopinginsanity.com>
Date2016-05-31 11:34 -0700
Message-ID<D373272C.74305%usenet@gallopinginsanity.com>
In reply to#357890
On 5/31/16, 10:57 AM, in article nikja8$7c5$1@dont-email.me, "DFS"
<nospam@dfs.com> wrote:

> On 5/30/2016 5:57 PM, Steve Carroll wrote:
> 
> 
>> You're probably want to (if you haven't already) use something like CherryPy.
> 
> 
> Looks useful.
> 
> 
> 
>> Here's another little challenge, from crackhead's 'non-database' of stuff
>> about PK:
>> 
>> <https://vid.me/ACaW>
>> 
>> I created the file from here:
>> 
>> <https://groups.google.com/forum/#!original/comp.os.linux.advocacy/Qu7kcCjtOa
>> w/6oQASY5dCwAJ>
> 
> 
> Is the 'challenge' to use python to create an HTML page of Snit's
> Kohlmann quotes?
> 
> How did you do it?

Good grief... even his challenges involve me. Still, pretty cool, I suppose,
that he is focusing on tasks. I do have a task that the EXAMPLE tied to
something dealing with Sandman, but the specific data has nothing to do with
him.

But if Carroll can challenge his obsession with me to be a programming task
involving data I shared directly to COLA I am cool with that. Sure, pull my
text into a database or convert it to HTML. I am fine with that.


-- 
* OS X / Linux: What is a file?     <http://youtu.be/_dMbXGLW9PI>
* Mint MATE Trash, Panel, Menu:     <http://youtu.be/C0y74FIf7uE>
* Mint KDE working with folders:    <http://youtu.be/7C9nvniOoE0>
* Mint KDE creating files:          <http://youtu.be/N7-fZJaJUv8>
* Mint KDE help:                    <http://youtu.be/3ikizUd3sa8>
* Mint KDE general navigation:      <http://youtu.be/t9y14yZtQuI>
* Mint KDE bugs or Easter eggs?     <http://youtu.be/CU-whJQvtfA>
* Easy on OS X / Hard on Linux:     <http://youtu.be/D3BPWANQoIk>
* OS / Word Processor Comparison:   <http://youtu.be/w6Qcl-w7s5c>

[toc] | [prev] | [next] | [standalone]


#357902

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-05-31 11:45 -0700
Message-ID<9d3a5e17-a8ce-496e-abb4-0cea354b7346@googlegroups.com>
In reply to#357900
On Tuesday, May 31, 2016 at 12:34:12 PM UTC-6, Snit wrote:
> On 5/31/16, 10:57 AM, in article nikja8$7c5$1@dont-email.me, "DFS"
> <nospam@dfs.com> wrote:
> 
> > On 5/30/2016 5:57 PM, Steve Carroll wrote:
> > 
> > 
> >> You're probably want to (if you haven't already) use something like CherryPy.
> > 
> > 
> > Looks useful.
> > 
> > 
> > 
> >> Here's another little challenge, from crackhead's 'non-database' of stuff
> >> about PK:
> >> 
> >> <https://vid.me/ACaW>
> >> 
> >> I created the file from here:
> >> 
> >> <https://groups.google.com/forum/#!original/comp.os.linux.advocacy/Qu7kcCjtOa
> >> w/6oQASY5dCwAJ>
> > 
> > 
> > Is the 'challenge' to use python to create an HTML page of Snit's
> > Kohlmann quotes?
> > 
> > How did you do it?

(snip gum bumping)

> Sure, pull my text into a database or convert it to HTML.

Put down your pipe already, crackhead, your goofy "text file" already is a database (albeit a sh*tty one),   that was my original point.

[toc] | [prev] | [next] | [standalone]


#357962

Fromtmelmosfire <tmelmosfire@gmail.com>
Date2016-05-31 19:29 -0700
Message-ID<3e1ad313-9949-468e-a648-bd7dd01e4178@googlegroups.com>
In reply to#357902
Steve "Steven Petruzzellis" Carroll is a nearly 60 year old guy who is single, broke and has no skills. He blames Snit for his loss of his wife and girlfriend. Steven is jealous of what Snit has and in a narcissistic rage repeatedly works to take it away from him. For over 10 years he has failed at even this. Steve "Steven Petruzzellis" Carroll is an utter failure in life.

Of his online life Steven says

    I've been booted off by past providers before because people
    complain about me and all my bullshit. I don't want to lose my ISP
    *again* but I still need my army of sock puppets so I continually
    search usenet for whatever servers I haven't yet been booted
    from.
    
Some examples where Steven has been booted

X10 Hosting booted Steven for inappropriate activity
http://tinyurl.com/z92qmz4

Comcast booted Steven for inappropriate activity 
http://tinyurl.com/h75nh9l

FreeHostingEU booted Steven for copyright infringement http://devsite.eu.pn

AwardSpace (atwebpages.com) booted Steven for breaking terms of service
http://demsites.atwebpages.com/pokeman

Imgur took down an image for breaking terms of service http://imgur.com/yv2XppE

Had a GigaNews account which was removed for harassing Snit

Stopped posting from his fretwizzen Google account since shortly after I complained. Seems he lost that too.

His wife booted Steven to the curb for cheating on her


    
Only site Steven Petruzzellis has pointed to that is still available
http://www.oldneighborhoodrestaurant.net
http://tinyurl.com/zgby6mp

Made by the Go Daddy Website builder and is utter crap. Later he denied he said he was merely taking credit for someone else's work but Steven is the contact person http://tinyurl.com/hcw6dul http://tinyurl.com/hc7ee9q

He likely went to the Go Daddy Website Builder after he failed to get WordPress installed.

https://mu.wordpress.org/forums/topic/13879


This is why Steve "Steven Petruzzellis" Carroll attacks Snit. 


Steven Petruzzellis was is divorced because his wife caught him screwing another woman.

Snit is married and by all appearances happily so. 
He never complains about his wife in COLA.


Steven Petruzzellis is living on charity of a friend in a single room.

Snit does not live in a mansion or even a high end home but has a house and a yard.


Steven Petruzzellis has two kids but no respect. He repeatedly called Ryan his "little screwup" and refers to his son Steve as a "dick" and worse. He says at least one of them likely hacked his computer and is a "mentally deficient child." He mocks his possible future daughter-in-law as someone who takes too many selfies and is focused only on herself

Snit has two kids (or more) and never speaks poorly of them in public. 
No reason to think they are not a happy family.


Steven Petruzzellis claims to be a stay at home dad who pays thousands of dollars for day care. Steven has no job and no purpose in life. Steven has given up and now seeks a mother-figure to date. 

Snit has his own business doing technical work and also teaches. 
Snit offers a true contribution to society. 
Teachers are truly under appreciated.

[toc] | [prev] | [next] | [standalone]


#357886

FromDFS <nospam@dfs.com>
Date2016-05-31 13:44 -0400
Message-ID<nikiht$4im$1@dont-email.me>
In reply to#357773
On 5/30/2016 12:53 PM, Steve Carroll wrote:
> On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
>> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
>>
>>
>> See how the columns in their table are narrow, and the labels at top
>>
>> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
>>
>>
>> are separated from the table?
>>
>> Confusing and looks bad.
>>
>>
>> You might suggest a fix to them and get a little job out of it!
>
> Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
>
> <http://imgur.com/P5pjSFt>
>
> ... to markup you were given (I changed venue names) that looked sorta like this:


$ python carroll_scrape.py

Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)

Date                Venue                    Status
---------------------------------------------------------------------------------------
Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
Sat, Feb 13, 2016   Quax                     Carroll was drunk
Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
Thu, May 26, 2016   20 Mile House            Carroll was on fire!
Fri, May 27, 2016   Halfway House            Carroll puked on someone!
Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost: 
LiagraUpcoming gig!
Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
---------------------------------------------------------------------------------------

[toc] | [prev] | [next] | [standalone]


#357897

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-05-31 11:22 -0700
Message-ID<ca58e516-d8a6-4ea9-b68a-b0444311232c@googlegroups.com>
In reply to#357886
On Tuesday, May 31, 2016 at 11:44:31 AM UTC-6, DFS wrote:
> On 5/30/2016 12:53 PM, Steve Carroll wrote:
> > On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
> >> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
> >>
> >>
> >> See how the columns in their table are narrow, and the labels at top
> >>
> >> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
> >>
> >>
> >> are separated from the table?
> >>
> >> Confusing and looks bad.
> >>
> >>
> >> You might suggest a fix to them and get a little job out of it!
> >
> > Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
> >
> > <http://imgur.com/P5pjSFt>
> >
> > ... to markup you were given (I changed venue names) that looked sorta like this:
> 
> 
> $ python carroll_scrape.py
> 
> Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)
> 
> Date                Venue                    Status
> ---------------------------------------------------------------------------------------
> Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
> Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
> Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
> Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
> Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
> Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
> Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
> Sat, Feb 13, 2016   Quax                     Carroll was drunk
> Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
> Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
> Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
> Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
> Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
> Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
> Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
> Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
> Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
> Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
> Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
> Thu, May 26, 2016   20 Mile House            Carroll was on fire!
> Fri, May 27, 2016   Halfway House            Carroll puked on someone!
> Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
> Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
> Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
> Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
> Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
> Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost: 
> LiagraUpcoming gig!
> Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
> ---------------------------------------------------------------------------------------

LOL! If that's actual output you're half way there.

[toc] | [prev] | [next] | [standalone]


#358087

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-01 11:14 -0700
Message-ID<06d388ca-5433-427e-98e9-0962da299c5a@googlegroups.com>
In reply to#357897
On Tuesday, May 31, 2016 at 12:23:02 PM UTC-6, Steve Carroll wrote:
> On Tuesday, May 31, 2016 at 11:44:31 AM UTC-6, DFS wrote:
> > On 5/30/2016 12:53 PM, Steve Carroll wrote:
> > > On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
> > >> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
> > >>
> > >>
> > >> See how the columns in their table are narrow, and the labels at top
> > >>
> > >> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
> > >>
> > >>
> > >> are separated from the table?
> > >>
> > >> Confusing and looks bad.
> > >>
> > >>
> > >> You might suggest a fix to them and get a little job out of it!
> > >
> > > Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
> > >
> > > <http://imgur.com/P5pjSFt>
> > >
> > > ... to markup you were given (I changed venue names) that looked sorta like this:
> > 
> > 
> > $ python carroll_scrape.py
> > 
> > Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)
> > 
> > Date                Venue                    Status
> > ---------------------------------------------------------------------------------------
> > Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
> > Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
> > Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
> > Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
> > Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
> > Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
> > Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
> > Sat, Feb 13, 2016   Quax                     Carroll was drunk
> > Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
> > Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
> > Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
> > Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
> > Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
> > Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
> > Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
> > Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
> > Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
> > Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
> > Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
> > Thu, May 26, 2016   20 Mile House            Carroll was on fire!
> > Fri, May 27, 2016   Halfway House            Carroll puked on someone!
> > Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
> > Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
> > Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
> > Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
> > Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
> > Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost: 
> > LiagraUpcoming gig!
> > Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
> > ---------------------------------------------------------------------------------------
> 
> LOL! If that's actual output you're half way there.

Hey, was this actual output, or no (and why do you assume I'd stink up the place)?

Should I give the ol' DFS reply? You know the one: 'No code or it didn't happen!' 

;)

[toc] | [prev] | [next] | [standalone]


#358089

From"Octavian W. Lagrange" <olagrang@perch.invalid>
Date2016-06-01 18:21 +0000
Message-ID<fhjads03f.ajie@perch.invalid>
In reply to#358087
Steve Carroll <fretwizzer@gmail.com> wrote:
> On Tuesday, May 31, 2016 at 12:23:02 PM UTC-6, Steve Carroll wrote:
>> On Tuesday, May 31, 2016 at 11:44:31 AM UTC-6, DFS wrote:
>> > On 5/30/2016 12:53 PM, Steve Carroll wrote:
>> > > On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
>> > >> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
>> > >>
>> > >>
>> > >> See how the columns in their table are narrow, and the labels at top
>> > >>
>> > >> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
>> > >>
>> > >>
>> > >> are separated from the table?
>> > >>
>> > >> Confusing and looks bad.
>> > >>
>> > >>
>> > >> You might suggest a fix to them and get a little job out of it!
>> > >
>> > > Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
>> > >
>> > > <http://imgur.com/P5pjSFt>
>> > >
>> > > ... to markup you were given (I changed venue names) that looked sorta like this:
>> > 
>> > 
>> > $ python carroll_scrape.py
>> > 
>> > Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)
>> > 
>> > Date                Venue                    Status
>> > ---------------------------------------------------------------------------------------
>> > Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
>> > Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
>> > Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
>> > Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
>> > Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
>> > Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
>> > Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
>> > Sat, Feb 13, 2016   Quax                     Carroll was drunk
>> > Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
>> > Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
>> > Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
>> > Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
>> > Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
>> > Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
>> > Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
>> > Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
>> > Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
>> > Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
>> > Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
>> > Thu, May 26, 2016   20 Mile House            Carroll was on fire!
>> > Fri, May 27, 2016   Halfway House            Carroll puked on someone!
>> > Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
>> > Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
>> > Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
>> > Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
>> > Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
>> > Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost: 
>> > LiagraUpcoming gig!
>> > Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
>> > ---------------------------------------------------------------------------------------
>> 
>> LOL! If that's actual output you're half way there.
> 
> Hey, was this actual output, or no (and why do you assume I'd stink up the place)?
> 
> Should I give the ol' DFS reply? You know the one: 'No code or it didn't happen!' 
> 
> ;)

It didn't happen.

[toc] | [prev] | [next] | [standalone]


#358090

FromDFS <nospam@dfs.com>
Date2016-06-01 14:26 -0400
Message-ID<nin9dc$9h5$1@dont-email.me>
In reply to#358087
On 6/1/2016 2:14 PM, Steve Carroll wrote:
> On Tuesday, May 31, 2016 at 12:23:02 PM UTC-6, Steve Carroll wrote:
>> On Tuesday, May 31, 2016 at 11:44:31 AM UTC-6, DFS wrote:
>>> On 5/30/2016 12:53 PM, Steve Carroll wrote:
>>>> On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
>>>>> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
>>>>>
>>>>>
>>>>> See how the columns in their table are narrow, and the labels at top
>>>>>
>>>>> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
>>>>>
>>>>>
>>>>> are separated from the table?
>>>>>
>>>>> Confusing and looks bad.
>>>>>
>>>>>
>>>>> You might suggest a fix to them and get a little job out of it!
>>>>
>>>> Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
>>>>
>>>> <http://imgur.com/P5pjSFt>
>>>>
>>>> ... to markup you were given (I changed venue names) that looked sorta like this:
>>>
>>>
>>> $ python carroll_scrape.py
>>>
>>> Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)
>>>
>>> Date                Venue                    Status
>>> ---------------------------------------------------------------------------------------
>>> Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
>>> Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
>>> Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
>>> Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
>>> Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
>>> Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
>>> Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
>>> Sat, Feb 13, 2016   Quax                     Carroll was drunk
>>> Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
>>> Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
>>> Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
>>> Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
>>> Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
>>> Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
>>> Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
>>> Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
>>> Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
>>> Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
>>> Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
>>> Thu, May 26, 2016   20 Mile House            Carroll was on fire!
>>> Fri, May 27, 2016   Halfway House            Carroll puked on someone!
>>> Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
>>> Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
>>> Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
>>> Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
>>> Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
>>> Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost:
>>> LiagraUpcoming gig!
>>> Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
>>> ---------------------------------------------------------------------------------------
>>
>> LOL! If that's actual output you're half way there.
>
> Hey, was this actual output, or no (and why do you assume I'd stink up the place)?


Yes it was actual output.

You /did/ stink up the place - I was there, but you were too drunk to 
remember.   :)



> Should I give the ol' DFS reply? You know the one: 'No code or it didn't happen!'
>
> ;)


Indeed you should.



import datetime, random
from lxml import html
from dateutil import parser
print
today = str(datetime.date.today().strftime("%Y%m%d"))
statuslist = ['Carroll stunk up the place','Carroll was on 
fire!','Carroll was drunk','Carroll puked on someone!']
cal = "carroll.html"
tree = html.parse(cal)
gigs = [gig.text_content() for gig in tree.xpath('//td')]
for i in xrange(0,len(gigs),3):
	gigdate=gigs[i]; gigvenue=gigs[i+1]; gigtime=gigs[i+2]
	gigdt = str(parser.parse(gigs[i]).strftime('%Y%m%d'))
	if gigdt > today:
		print "Next gig is %s at %s (%s)" % 
(gigdate.replace(',',''),gigvenue,gigtime)
		break
print
gigdt,gigstatus='',''
print "Date                Venue                    Status"
print 
"---------------------------------------------------------------------------------------"
for i in xrange(0,len(gigs),3):
	gigdate=gigs[i]; gigvenue=gigs[i+1]; gigtime=gigs[i+2]
	gigdt = str(parser.parse(gigs[i]).strftime('%Y%m%d'))
	if gigdt < today:    gigstatus = random.choice(statuslist)
	elif gigdt == today: gigstatus = 'Next gig tonight!'
	else:                gigstatus = 'Upcoming gig!  (' + str(gigtime) + ')'
	print gigdate.ljust(20) + gigvenue.ljust(25) + gigstatus.ljust(1)
print 
"---------------------------------------------------------------------------------------"




'carroll.html' (line 7) is a file with the HTML/gig data you posted 
earlier in the thread.

[toc] | [prev] | [next] | [standalone]


#358094

FromSteve Carroll <fretwizzer@gmail.com>
Date2016-06-01 11:46 -0700
Message-ID<1b661c03-8101-4258-9fca-e234b7359607@googlegroups.com>
In reply to#358090
On Wednesday, June 1, 2016 at 12:26:55 PM UTC-6, DFS wrote:
> On 6/1/2016 2:14 PM, Steve Carroll wrote:
> > On Tuesday, May 31, 2016 at 12:23:02 PM UTC-6, Steve Carroll wrote:
> >> On Tuesday, May 31, 2016 at 11:44:31 AM UTC-6, DFS wrote:
> >>> On 5/30/2016 12:53 PM, Steve Carroll wrote:
> >>>> On Saturday, May 28, 2016 at 9:24:35 AM UTC-6, DFS wrote:
> >>>>> https://www.navicat.com/products/navicat-for-sqlite-feature-matrix
> >>>>>
> >>>>>
> >>>>> See how the columns in their table are narrow, and the labels at top
> >>>>>
> >>>>> Win^Win#Win*Mac^Mac#Mac*Linux^Linux#Linux*
> >>>>>
> >>>>>
> >>>>> are separated from the table?
> >>>>>
> >>>>> Confusing and looks bad.
> >>>>>
> >>>>>
> >>>>> You might suggest a fix to them and get a little job out of it!
> >>>>
> >>>> Challenge for you... styling aside, (which is mainly there to help visually indicate functionality) how would you do this using Python...
> >>>>
> >>>> <http://imgur.com/P5pjSFt>
> >>>>
> >>>> ... to markup you were given (I changed venue names) that looked sorta like this:
> >>>
> >>>
> >>> $ python carroll_scrape.py
> >>>
> >>> Next gig is Fri Jun 10 2016 at wHoleway House (8:30p - 12:30a)
> >>>
> >>> Date                Venue                    Status
> >>> ---------------------------------------------------------------------------------------
> >>> Wed, Dec 30, 2015   Toasty's                 Carroll puked on someone!
> >>> Fri, Jan 8, 2016    The Glue Tavern          Carroll puked on someone!
> >>> Sat, Jan 9, 2016    Denial Den               Carroll stunk up the place
> >>> Fri, Jan 15, 2016   Advocate Alley           Carroll stunk up the place
> >>> Sat, Jan 30, 2016   Spud's Spurtz Bar        Carroll puked on someone!
> >>> Fri, Feb 05, 2016   Flatty's Flophouse       Carroll stunk up the place
> >>> Sat, Feb 06, 2016   Crackhead Casino         Carroll stunk up the place
> >>> Sat, Feb 13, 2016   Quax                     Carroll was drunk
> >>> Sat, Feb 20, 2016   Godhe's Ghetto           Carroll was drunk
> >>> Fri, Feb 26, 2016   The Rusty Bucket         Carroll stunk up the place
> >>> Fri, Mar 11, 2016   Lady Luck                Carroll stunk up the place
> >>> Sat, Mar 19, 2016   Johnny G's               Carroll was drunk
> >>> Sat, Mar 26, 2016   Barf 'n' Bake            Carroll puked on someone!
> >>> Sat, Apr 09, 2016   Advocate Alley           Carroll stunk up the place
> >>> Fri, Apr 22, 2016   Salty's Sh*thouse        Carroll stunk up the place
> >>> Fri, Apr 29, 2016   The Snake Room           Carroll puked on someone!
> >>> Sat, Apr 30, 2016   Goblin Manor             Carroll stunk up the place
> >>> Thu, May 12, 2016   Cowboy Cove              Carroll was drunk
> >>> Sat, May 21, 2016   Snotley's Fungal Palace  Carroll was drunk
> >>> Thu, May 26, 2016   20 Mile House            Carroll was on fire!
> >>> Fri, May 27, 2016   Halfway House            Carroll puked on someone!
> >>> Fri, Jun 10, 2016   wHoleway House           Upcoming gig!
> >>> Sat, Jun 11, 2016   Puke Park Benefit        Upcoming gig!
> >>> Sat, Jun 25, 2016   Prescott Medicine Show   Upcoming gig!
> >>> Fri, Sep 2, 2016    Slimer's Joint           Upcoming gig!
> >>> Sat, Sep 24, 2016   DFS Lounge               Upcoming gig!
> >>> Sun, Sep 25, 2016   ED (excessive dishonesty) benefit - Cohost:
> >>> LiagraUpcoming gig!
> >>> Monday, Jan 2, 2017 Hangover Party           Upcoming gig!
> >>> ---------------------------------------------------------------------------------------
> >>
> >> LOL! If that's actual output you're half way there.
> >
> > Hey, was this actual output, or no (and why do you assume I'd stink up the place)?
> 
> 
> Yes it was actual output.
> 
> You /did/ stink up the place - I was there, but you were too drunk to 
> remember.   :)

Somewhere, someone has a video of me falling asleep (for a few seconds) during a guitar solo (that I was taking!) and, reportedly, I came back in perfectly. I was sick as hell that night (shouldn't have been on stage) and took some NyQuil, which helped but made me *really* sleepy. All I remember is slightly banging my head against the wall behind me... which is probably what woke me up.

 
> > Should I give the ol' DFS reply? You know the one: 'No code or it didn't happen!'
> >
> > ;)
> 
> 
> Indeed you should.
> 
> 
> 
> import datetime, random
> from lxml import html
> from dateutil import parser
> print
> today = str(datetime.date.today().strftime("%Y%m%d"))
> statuslist = ['Carroll stunk up the place','Carroll was on 
> fire!','Carroll was drunk','Carroll puked on someone!']
> cal = "carroll.html"
> tree = html.parse(cal)
> gigs = [gig.text_content() for gig in tree.xpath('//td')]
> for i in xrange(0,len(gigs),3):
> 	gigdate=gigs[i]; gigvenue=gigs[i+1]; gigtime=gigs[i+2]
> 	gigdt = str(parser.parse(gigs[i]).strftime('%Y%m%d'))
> 	if gigdt > today:
> 		print "Next gig is %s at %s (%s)" % 
> (gigdate.replace(',',''),gigvenue,gigtime)
> 		break
> print
> gigdt,gigstatus='',''
> print "Date                Venue                    Status"
> print 
> "---------------------------------------------------------------------------------------"
> for i in xrange(0,len(gigs),3):
> 	gigdate=gigs[i]; gigvenue=gigs[i+1]; gigtime=gigs[i+2]
> 	gigdt = str(parser.parse(gigs[i]).strftime('%Y%m%d'))
> 	if gigdt < today:    gigstatus = random.choice(statuslist)
> 	elif gigdt == today: gigstatus = 'Next gig tonight!'
> 	else:                gigstatus = 'Upcoming gig!  (' + str(gigtime) + ')'
> 	print gigdate.ljust(20) + gigvenue.ljust(25) + gigstatus.ljust(1)
> print 
> "---------------------------------------------------------------------------------------"
> 
> 
> 
> 
> 'carroll.html' (line 7) is a file with the HTML/gig data you posted 
> earlier in the thread.


This'll get it into the DOM:


;(function() {
    'use strict';
    var dateObj, today, row, eventDate, eventTime, eventVenue,
    message = document.getElementById('message'),
    dates = document.querySelectorAll('td:nth-child(1)'),
    links = document.querySelectorAll('td:nth-child(2)'),
    times = document.querySelectorAll('td:nth-child(3)');
    today = new Date().setHours(-1);

    function addClass() {
        for (var i = 0; i < dates.length; i += 1) {
            dateObj = new Date(dates[i].innerHTML);
            dates[i].className = 'date';
            links[i].className = 'link';
            times[i].className = 'time';
            if (today > dateObj) {
                dates[i].parentNode.className = 'past';
            } else if (today < dateObj) {
                dates[i].className += ' future';
            } else {
                dates[i].className = '';
            }
        }
    }

    function addMessage() {
        row = document.querySelector('.future').parentNode;
        row.className += 'today';
        eventDate = row.firstElementChild.innerHTML;
        eventVenue = row.firstElementChild.nextElementSibling.innerHTML;
        eventTime = row.lastElementChild.innerHTML;
        message.innerHTML = 'Next Gig: ' + eventDate + ' - ' + eventVenue + ' - ' + eventTime;
    }
    addClass();
    addMessage();
})();

[toc] | [prev] | [next] | [standalone]


#358318

FromDFS <nospam@dfs.com>
Date2016-06-02 20:49 -0400
Message-ID<niqk5u$ven$1@dont-email.me>
In reply to#358087
On 6/1/2016 2:14 PM, Steve Carroll wrote:

> Should I give the ol' DFS reply? You know the one: 'No code or it didn't happen!'
>
> ;)


The request is actually 'Code or it didn't happen'

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | comp.os.linux.advocacy


csiph-web