@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22



Comments:

<0> go debian!
<1> debian > * :)
<2> *cough* gentoo
<1> I'm beginning to think bash is not the proper language for doing statistical analysis in.
<0> just got done spending quite a while talking to a bot author (the one that monitors for bots in #idlerpg) ... it's truly amazing know what lengths some people go to just to keep their channel bot-free.
<3> randyg: use something like practical extraction and reporting language perl
<3> randyg: its made for that
<1> cancel: I really hate perl. I really, really do.
<4> randyg, dont' the statistics people have some specialised language for that, called R or similar?
<3> randyg: then you have ruby, python, etc
<3> lots of choises
<3> choices
<1> perl is, by far, THE ugliest, slowest, most context-sensistive language on the planet. It's almost as bad as basic, although for different reasons.
<4> randyg, your credibility dropped with that last statement.
<1> perl encourages really awful coding



<3> then use something else
<3> and really if you want to write it in C knock yourself out
<3> John_Dow_: he did ont hat
<1> it's possible to write readable perl code, but the language seems designed to make it as difficult as possible. :P
<3> him even bothering to compare perl and c in the same sentence for this is silly
<3> use whatever the heck you want
<1> bbl, I smell food
<3> why visit your displeasure on us
<4> What kind of channel is this? The other day some wacko was saying Linux was so easy to use - and he then went on to complain on how much time it took him to get his <whatever>-card working. Now people are stating that Perl is hard to write maintainable code in, and then they choose C instead.
<4> Cancel, ENOPARSE. he did what, on what?
<1> C is good and perfect and pretty. :P
<4> randyg, Dawson Engler has some slides on his website. One statement is along the lines of "LALR rule: if it can be parsed, it will be written".
<1> and underneeth it, does he have a note "See PERL"? :P
<5> underneeth?
<4> For some reason Coverity is needed for C applications, not perl.
<0> Interex ; That's in the dictionary next to arownd. :D
<5> lol!
<1> bah, next you'll complain I spell colour with a u.
<5> Google Fight!!! Battle is underneeth vs underneath and looks like underneath has WON with a score of 43600000. (underneeth loses with 15700 results)
<4> randyg, isn't that prefectly ok in english?
<6> bleh.
<0> great.... some moron locked up my windows term server...
<6> Can't you put that on a web page, or let people play with it by sending you a private message?
<1> in english, yes... in americanish, no.
<4> Who wants to be american anyways?
<0> Me!
<5> heh
<0> jblack : Did you see that I made the requested change to Msg? :)
<7> simmy loves me. :D
<5> does not contain MSG
<5> :(
<8> you gave him the ability to speak?
<6> Nope
<1> you should make it change its ident when it rejoins.
<9> Good luck on that one.
<6> simmy: Huh?
<6> simmy: Oh, you're talking about your bot. I thought you were taling about interex
<5> uh
<1> penguin: my identd is about 4 lines of C code... would still be 4 lines if I made it return a random string. :P
<5> my identd is 18 lines of perl code
<5> but it works on both ipv4 and ipv6
<6> Simmy: Looks nice
<1> mine just returns whatever the request was with an ident of "****ident" appended to it. heh.
<1> it never actually parses the request, just echos it back.
<0> randyg: I'd have to talk to the BNC admin to get the ident to change.
<1> ah, didn't know it was a bnc.
<0> when I put a dedicated server up, the bot gets a new home... where I can control just about everything. ;)
<0> yep.
<0> it's up about 143 hours a week. Can't complain about that.
<1> fgets(buf, 990, stdin); ; strtok(buf, "\r\n"); ; fprintf(stdout, "%s : USERID : ****IDENTOS : ****ident\n", buf); :)
<1> (extra semicolons showing where I put newlines; it's not one big long line. :)
<9> Since it's on Charter.net you're lucky it's up that much.
<5> anyone here good with regex?
<8> yeah
<1> somewhat.
<5> i cant figure out how to cut out html, i know i know how but i cant get this to work it keeps locking up xchat
<1> cut out html, as in, delete everything contained within <>'s?
<5> right..
<1> s/<[^>]*//g
<1> grr



<8> hah
<1> s/<[^>]*>//g
<1> try that. :P
<5> hold on
<5> that worked
<1> it matches a <, any number of characters which are not a >, and a closing >, replacing it with nothing.
<5> right
<10> remember to run that in the full text, not in a line-based context
<1> and, of course, remember that if(x < 5 && x > 2) will be matched by that, so only run it on actual html. :P
<3> InitHello: what exactly are you trying to cut out and for why?
<1> depending on the context, s/</&lt;/g and s/>/&gt;/g might be better.
<5> Cancel: :)
<3> since its in xchat it sounds
<3> Interex: tell me more
<5> Cancel: <3
<1> yeah, why does an irc client need to parse html? :P
<5> lol, shhh let me finish playing with myself!
<5> with it*
<5> i knew what i was doing, i just had something wrong ;)
<8> thank christ you corrected that typo before saying that
<4> randyg, same reason a mail client does it. Might be convenient.
<5> far2: lol
<1> john: mail clients are better without html. :P
<0> <5> lol, shhh let me finish playing with myself!
<1> interex: hrmm, html, playing with yourself... automatic porn fetcher?
<5> haha, nah
<4> randyg, soon you want the administration to stop sending word documents as well.
<5> trying to make something big, small
<5> damn why does all that sound bad
<5> pfft
<1> john: people know not to send me word documents. :P
<5> i'm trying to make a perl script that is 41 lines less than 20
<4> People are free to send me whatever they want, I just dont' read it.
<1> heh, that works, but yelling at them is more fun.
<11> wtf http://www.dialog05.com/main.html#
<4> randyg, I doubt they would make an exception for you though. Plenty of people here who don't run Windows, and the word documents always contain some stupid infromation that could have been written in the body of the mail.
<1> heh. this is what a clue-by-four (or your favorite LART) is for.
<5> randyg: what is this? ([^<]+)
<4> Interex, several (not <).
<5> ooh
<5> ok yea
<1> depending on your regex program, the parens may be literal or may mark a sub-match.
<5> its matching
<1> I never remember which programs just use () for grouping and which, like sed, need \( and \) for grouping.
<4> randyg, isn't it just that your shell eats the ()'s if you don't esacpe them?
<5> :)
<1> john: not inside of quotes, which most regexps are... trying to use parens unquoted and unescaped probably is a syntax error in most shells anyway, stuck in the middle of a regex.
<4> Figures. I just drag and drop. :-)
<1> drag and drop regexs? :P
<4> Mostly clouds, but I can write regexps in those clouds.
<5> how do i go about removing &nbsp
<5> any &nbsp and the words connected to it before and aftrer
<4> Interex, there are programs that dehmtlize text, so you don't have to do it yourself.
<5> i didnt ask that did i?
<4> And the perl modules for it makes it really convenient to just get the text contents.
<5> this isnt about perl modules either
<5> so i need to make a script require 10 modules just so people can use it?
<1> s/[^ \n]*&nbsp;[^ \n]*//g - your regexps may have a [[SPACE]] or something to match all whitespace instead of having to define it explicitly.
<5> i dont think so
<5> randyg: thanks
<5> randyg: that helped a lot!
<1> these are all easy; when you asked if anyone was good with them, I thought you'd have something interesting. :P
<5> but i dont know half anything about regex
<1> well, then think about how that one works... match any sequence of characters which are not a space or a newline, followed by &nbsp;, followed by another sequence of characters not containing a space or a newline.
<5> ok what about matching Hell.*? |
<1> by "word", I ***umed "a sequence of characters not containing a space or a newline" was a good definition... you may want to explicitly use [A-Za-z0-9] (or [[ALPHA]] if you have it) instead.
<5> err Hell*? |
<1> eh, what are you trying to match?
<5> from Hell to |
<5> well as an example
<1> Hell[^|]*| (you may have to use \| if your regexps use it for alternation)
<5> i was trying /Hell*?|/i


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #linux
or
Go to some related logs:

gaymakati
#allnitecafe
#chat-world
milton friedman-jokes
Devanraj
babye tamil
#allnitecafe
#kl
#linux
onu istiyom



Home  |  disclaimer  |  contact  |  submit quotes