If you like this site, I would appreciate a gift from my wishlist.

Freenode #perl Conversations - (Fortunes Cookies) Shlomi Fish’s Collection

The Freenode #perl Fortunes collection

The Fortunes Themselves

Documentation for BL

Display

rindolf buu: do you have a working manual of BL?
rindolf s/working/up-to-date/
buu It's kind of sort of up to date
perlygatekeeper he means NO
buu I've got some docs!
rindolf buu: do you have a functional spec? An architecture document? An interface whitepaper? A developer's guide? A user manual? A "The BL-Book" and "BL - The Program"?
buu rindolf: no, no, no no and no
Channel #perl
Network Freenode
Tagline Discussing the merits of documenting one's pet languages on #perl

Did anybody see my newline at Freenode's #perl channel.

Display

rindolf sleeper: why are people obsessed with one-liners?
rindolf It takes 3 lines - OMG what a disaster!
Botje rindolf: newline prices went up again
rindolf Botje: I buy my newlines in the black market
dabreegster Botje: again? drat.
* Botje reports rindolf to the newline police
dabreegster Botje: I know about an... (underground) operation going on to pirate newlines.
rindolf Botje: I bribed a few cops in the newline police, but nice try.
dabreegster Botje: Some crazy guys are trying to free newlines from patents! They want to rid the market!
* cursor gets called up to serve in the newline jury
rindolf I think we need to start a campaign to lift all restrictions off newlines.
dabreegster rindolf: La Resistance lives on!\n
Botje I already stockpiled millions of newlines
dabreegster Botje: We can have the one-liners destroyed by sundown
dabreegster Not destroyed, but... TURNED INTO TWO-LINERS! Mwuhahaha!
Channel #perl
Network Freenode
Tagline The Cost of Newlines

Verbing the verb on Freenode's #perl

Display

* buu Stevie[FP] with a plunger.
* Stevie[FP] looks for the verb in that sentence
sili i think you're missing a verb
Stevie[FP] I think he's missing a brain.
sili unless Stevie[FP] is a verb i don't know
sili Stevie[FP]: v. see Stevie[FP]
Stevie[FP] I am not a verb!
sili you've been verbatized
* rindolf Stevie[FP]'s Chris62vw
Stevie[FP] verbalized?
rindolf Stevie[FP]: verbalized is a different thing.
rindolf Stevie[FP]: it comes from "verbal".
Stevie[FP] Verbified.
Stevie[FP] Verbiated.
rindolf stefan: verbificated.
Botje verbed.
Stevie[FP] Verberated.
rindolf Stevie[FP]: verberation is overrated.
Channel #perl
Network Freenode
Tagline Verbing the Verb

Human XML

Display

BarnacleBob i hate xml.....
mcrawfor <response to="BarnacleBob">indeed</response>
rindolf mcrawfor: :-)
rindolf mcrawfor++ # Nice joke
Botje ehm. ouch.
Botje rindolf: no!
Botje <postincrement comment="Nice joke">mcrawfor</postincrement>
rindolf Botje: LOL.
rindolf <postincrement comment="As you wish">Botje</postincrement>
Channel #perl
Network Freenode
Tagline Human XML

/me (or I, you or we) is finding it amusing on Freenode's #perl.

Display

* __you fart
* __you say "oops"
rindolf __you: heh
* __you kick rindolf
__you (rindolf, you're now being kicked by 435 people)
squeeks __you need to go outside.
kspath __you: Who owns you?
* __you go outside
* __you are pwned by dazjorz
* __you is now known as we
* we are having a useless off-topic conversation right now
rindolf we: hahah
* we we is now known as __you
* __you decide this channel is now useless and decide to leave
* simcop2387 is now known as we
* we are not amused
* __you and I are together simcop2387
* squeeks is now known as _I_
* _I_ need to tell __you something
* __you listen
* simcop2387 is now known as we
* we need help
* _I_ think we are getting a bit sick of the shenanigans
rindolf I'm so making a fortune out of it.
* we want to be on bash.org
Channel #perl
Network Freenode
Tagline /me (or I, you or we) is finding it amusing

Multi-linguality

Display

spyro_boy Oh! I fixed it :D
spyro_boy Yay :D
rindolf spyro_boy: congrats!
spyro_boy Thanks for your help, everyone. :)
rindolf spyro_boy: now you should translate this script to O'Caml, Haskell, Perl 6.
spyro_boy rindolf, huh?
rindolf spyro_boy: Smalltalk, C, C++, Visual Basic...
spyro_boy rindolf, translate to what?
rindolf spyro_boy: to all these programming languages.
spyro_boy haha
spyro_boy rindolf, yeah.
rindolf Because a script in perl is Not Enough<tm>.
rindolf spyro_boy: but see the Great Computer Language Shootout.
spyro_boy rindolf, I tried learning C,C++, and Java, but I couldn't catch on.
Channel #perl
Network Freenode
Tagline Mulit-linguality

Chuck Norris and Perl 6

Display

rindolf wankit
buubot Perl 6, unlike most people, is able to breathe in the vacuum of space. In fact, anything else would damage its respiratory system. Because of this, whenever it's visiting Earth, it wears a respirator, which resembles a kickass beard.
rindolf Heh heh.
rindolf Are all of buubot's wankit factoids about Perl 6?
rindolf He should have some about Chuck Norris, too.
merlyn fictional factoids about a partially designed, partially implemented, partially wanted language. :)
rindolf merlyn: yeah.
merlyn Heh - those are all Chuck Norris quotes with s/Chuck/P6/
dabreegster rindolf: It's written in Chuck Norris, right
merlyn Chuck Norris writes code in Perl 6. Before Larry's done. And it works.
rindolf merlyn: Chuck Norris wrote Perl 6 in a day but then destroyed all evidence with his bare hands, so no one will know his secrets.
Channel #perl
Network Freenode
Tagline Chuck Norris and Perl 6

Is a Life Ready for Prime Time?

Display

rindolf LeoNerd: I need to get a life.
LeoNerd They can be quite useful, but they do have a crazy amount of dependencies..
LeoNerd And sometimes they can be a bit unstable - I think they're still beta-testing
Channel #perl
Network Freenode
Tagline Is a Life Ready for Prime Time

#perl for Elisabeth

Display

simcop2387 Daveman: i use a ZED PEE EM to power my computer, its the ultimate YOU PEE ES
* Daveman throws an Elisabeth at Simcop
rindolf Me catches the Elisabeth in mid-air.
SubStack with an s, excellent choice
Daveman :o
Daveman Interception!
rindolf Daveman: when my friend and I played Frisbee, we had an intra-tree move.
* SubStack pirates Elisabeth and seeds a torrent
rindolf Which was unintended.
rindolf Elisabeth: are you here?
Daveman HAHAHAHHA
Daveman Substack++
* SubStack wins at life.
rindolf An Elisabeth for all! And all for an Elisabeth.
Channel #perl
Network Freenode
Tagline #perl for Elisabeth

Books for Learning Perl

Display

Alexi5 what is a good book for getting up to speed with perl?
merlyn learning perl!
merlyn intermediate perl!
nachos_ the camel is the _only book_
nachos_ :-P
* merlyn bats nachos silly
nachos_ :-(
rindolf Alexi5: there's also Beginning Perl, which is available online.
* f00li5h saw that coming
rindolf You should learn Perl from "Learning Perl in 24 minutes Unleashed!"
f00li5h rindolf: ``Learning perl in 24 minutes Unleashed, in a nutshell for dummies'' is the one i have
rindolf f00li5h: that's even better.
Channel #perl
Network Freenode
Tagline Books for Learning Perl

Discussing Vintage Hypertext on Freenode's #perl

Display

rindolf Are you using Firefox?
Imaginativeone yeah...
rindolf Interesting...
rindolf Don't know.
[x86] use a real browser... you know... like IE!
* [x86] runs
infi IE 3 > *
rindolf IE 2 > *
infi gopher!
infi firefox can actually do gopher URLs
rindolf GNU info!
infi feh.
Channel #perl
Network Freenode
Tagline Vintage Hypertext

Free as in what?

Display

rindolf ofer0: what's up?
ofer0 rindolf, nothing much. what's with you?
rindolf ofer0: I restored my fonts to my nouveau-enabled X server.
jagerman What is nouveau?
ofer0 jagerman, "new" in french ?
jagerman Yes, I know it's a word, but what is the nouveau rindolf is talking about?
ofer0 I have no idea. rindolf ?
rindolf jagerman, ofer0: it's the free-as-in-speech Nvidia drivers.
dmq jagerman++ (Yes i know its a word).
pkrumins free as in freedom
nainef free as in richard stallman?
ofer0 free as in free Microsoft Windows Vista CDs
nainef lol
pkrumins vista--
ofer0 "What do you mean? Windows XP isn't free?" -- My neighbour.
Ikarus ofer0: sounds familiar
ofer0 (when telling him that I can't format his hard-drive and re-install XP because he doesn't own a license)
Channel #perl
Network Freenode
Tagline Free as in what?

The Only Programming Language

Display

rindolf This reminds me of a fun discussion I had with my co-worker.
rindolf He had a Firefox window open with an ActiveState page and I read "Perl, PHP, Python, Tcl, XSLT".
rindolf So he said: "Heresy! C is the only language."
rindolf So I thought for a moment and said "Intercal is the only language."
nanonyme lol
rindolf And then "Real men write in Intercal."
rindolf "COME FROM" anyone?
Channel #perl
Network Freenode
Tagline The Only Programming Language

Misleading Textbooks about Perl

Display

rindolf mortal5: you need to print the header.
rindolf mortal5: print header()
mortal5 rindolf, ...I absolutely love it when my textbook leads me wrong..
rindolf mortal5: what is your textbook?
mortal5 "web wizards guide to perl and cgi"
mortal5 lol
mortal5 only the finest for the students at my university
buu Hahaha
buu That's awesome.
cfedde Is this what we're teacing these days? Oh my.
somian Blows the mind, doesn't it cfedde!
cfedde somian: it does.
cfedde I suppose that I'm commenting out of context. but why the mix and match.
f3ew What mind?
cfedde yours, with this .48
* somian sends in CSI las vegas to clean up
rindolf mortal5: what is your university?
mortal5 rindolf, I'm too ashamed to tell :p
rindolf mortal5: heh.
rindolf mortal5: is it bad?
mortal5 rindolf, no not really, we have a fairly well known cs dept
somian Just so long as it isn't SUNY@BUFFALO
mortal5 it's just the teacher i'm using, she's a total flake
Channel #perl
Network Freenode
Tagline Misleading Textbooks about Perl

Perl, dongs and everything between on Freenode's #perl

Display

* CPAN rating: Net-DNS-Check rated 4 stars by Ævar Arnfjörð Bjarmason
rindolf Oooh! avar has rated a module.
somian^{} avar! WHAT ARE YOU DOING rating CPAN modules!?! Do you really think you are QUALIFIED to be doing that!?! ;-P
* avar dongs somian^{}
* somian^{} laughs
avar somian^{}: I'M A PROFESSIONAL PERL PROGRAMMER
avar I know PERL
somian^{} But can u mAke teh weB with teh PERL!?
Earle_Martin avar: I know DONGS
avar Earle_Martin: SHOW ME
avar Earle_Martin: Don't you mean DONG foo?
* somian^{} has a silly grin on his face as he decends the stairs to make some fresh coffee
avar somian^{}: I maek teh web really well with PERL
Earle_Martin /DCC MATRIX avar
avar Earle_Martin: IT'S SO LARGE AND HARD!
Earle_Martin avar: You think that's milk you're drinking?
f3ew heh]
avar I was wondering why it was so delcicious
avar "I can't belive it's not jizz"
f3ew Take the red pill
rfordinal_ blue!
Earle_Martin I know PERL: Programmer's Elite Robotic Language
* avar goes back to work
Shadow42 I wonder what would happen if Neo was colorblind and took the wrong pill.
Earle_Martin 10 DO ROBOT DANCE
Earle_Martin 20 GOTO 10
avar which doesn't involving discussing dongs in great detail, unfortunately
Earle_Martin avar: the real world sucks
Channel #perl
Network Freenode
Tagline Perl and Dongs on Freenode's #perl

N-uple negative on Freenode's #perl

Display

polak mauke: so how does that "translate" into eng
merlyn "eng"?
mauke I spe eng goo
rindolf mauke: I spe eng wel
rindolf I spe goo eng
sts just a short question. besides personal preference is there any difference if you use if(! or unless(?
rindolf sts: no.
rindolf sts: they do the same thing.
Botje sts: pfft. Real Men(tm) use unless(!...)
rindolf Botje: heh.
sts lol unless(! makes sense. thanks Botje, i'll rather use this one. =D
LeoNerd For me it's a readability thing - I express what seems more likely
rindolf Botje: File::HomeDir used to have a triple or quadruple negative in one of its test files.
Botje unless(! $str !~ /(?!foo)/)
rindolf Botje: heh
merlyn whoa
merlyn unless (!) makes no sense to me at all
Botje of course not.
sts Botje: wow!
Botje it's still cool to confuse people with :]
LeoNerd Heh.. Should just use !!! in there anywa y:)
merlyn it's 7 characters too many
xand some people don't understand double negatives
merlyn I don't want no complaints!
Botje xand: you mean don't not understnad?
LeoNerd We don't know nobody who don't want no double-negatives
sts Botje: what does (?!foo) do?
nanonyme lol
xand Botje: don't not misunderstand
mauke Botje: that always executes the block
merlyn there's an argument that can be successfully made that "I don't want no complaints" doesn't necessarily work logically
Botje xand: oh, I don't not think I didn't not misunderstand you.
Botje mauke: I know. it just looks cool.
mauke and you want !($str !~ /.../)
xand don't you?#
merlyn so it might actually mean what people think they're meaning
Channel #perl
Network Freenode
Tagline N-uple negative on Freenode's #perl

My operating system is better than yours on Freenode's #perl

Display

Yaakov LINUX < WINDOWS XP
rindolf Yaakov: Linux ">" x Inf Windows XP
rindolf Yaakov: DOS > Linux
rindolf Yaakov: CTSS > Linux
rindolf Yaakov: TOPS-10 > Linux
rindolf Multics > Linux
rindolf Multics > *
rindolf I think I'll stop.
Supaplex I think I'll /clear
Kobaz CP/M > *
rindolf Kobaz: heh!
rindolf Kobaz++
Kobaz Heh.
Kobaz CP/M was teh sexy.
Kobaz How much more of an OS do you really need?
Kobaz I still have my Apple II sitting in the corner.
Channel #perl
Network Freenode
Tagline My Operating System is Better than Yours

Freenode's #perl on the many types of Wheels.

Display

rindolf Mahmoud: what's up?
Mahmoud rindolf, writing a CMS from scratch with perl.. really cool, making my own template engine
rindolf Mahmoud: why???
rindolf Mahmoud: use TT2.
rindolf Or whatever.
Mahmoud rindolf, i dislike other CMS engines.. they are bloated and i don't trust them
rindolf Mahmoud: TT2 is pure perl.
* Mahmoud looks for TT2
rindolf Mahmoud: a CMS doesn't stay simple forever.
rindolf Mahmoud: and a CMS != Templating system.
Mahmoud rindolf, the template engine is quite simple, it's similar to how SimpleMachines forum does its templates
Mahmoud rindolf, just an external file with print 'foo'; commands
amnesiac Mahmoud, TT2 is very powerful
amnesiac Mahmoud, there are more templating systems, why not use any ofo the existing ones?
rindolf Mahmoud: please don't re-invent square wheels.
Mahmoud heh..
NOTevil oval!
* amnesiac likes hexagonal wheels
NOTevil very small octagon wheels aren't too bad.
rindolf amnesiac: triangular wheels are the best!
Shaine i like star shaped wheels :/
Channel #perl
Network Freenode
Tagline On the Many Types of Wheels

The Pyramid of Code Golf on Freenode's #perl

Display

ferret LeoNerd: That was one of the first blobs of Java I wrote, it's allowed to be even more verbose and convoluted than Java normally is. ;P
rindolf ferret: link?
ferret /las Cat.java
rindolf ferret: an implementation of the UNIX "cat" program in Java??
ferret Actually, specifically the GNU cat program, and only a subset thereof.
rindolf ferret: oh.
rindolf ferret: how many lines did it take?
* f00li5h heads off to #codegolf and tries to convince them to allow java submissions
ferret rindolf: It's mostly argument parser.
rindolf ferret: I once implemented a parser for a subset of the Bourne Shell args, in really hideous ANSI C.
rindolf f00li5h: good luck.
rindolf f00li5h: Java Golf...
f00li5h yeah, for sure!
rindolf Java Golf would be longer than a non-Golfed Perl program.
f00li5h rindolf: this is true
rindolf f00li5h: COBOL Golf!
Channel #perl
Network Freenode
Tagline The Pyramid of Code Golf

Scary Perl Expertise on Freenode's #perl

Display

pasteling "struggling intern" at 129.162.1.31 pasted "Here it is.." (220 lines, 5.7K) at http://sial.org/pbot/25279
strugglingintern woohoo
strugglingintern there it goes...
rindolf strugglingintern: oh my god!
rindolf strugglingintern: this code looks really bad.
strugglingintern heh...
rindolf strugglingintern: if ($records eq 0 ) - don't you want ($records == 0)?
rindolf strugglingintern: do you have unit tests?
rindolf strugglingintern: and you should factor it better.
rindolf strugglingintern: and possibly use Template Toolkit or something.
rindolf strugglingintern: and you may have some HTML-injection (or XSS) problems.
Ani-_ rindolf: and probably SQL injection problems.
rindolf Ani-_: indeed!
strugglingintern :-/
Ani-_ strugglingintern: really, ask them to review that code when they get back.
strugglingintern alright
strugglingintern I appreciate it anyway
rindolf strugglingintern: how long have you been programming perl?
strugglingintern hah, about 3 months
strugglingintern This isn't all my code ;)
strugglingintern I'll look into it
strugglingintern Thanks guys (and gals).
rindolf strugglingintern: you're welcome.
strugglingintern not my choice ;)
strugglingintern it's my 3rd week here :)
rindolf Amazing how much more experienced programmers can tell a code is bad from a quick glance.
rindolf It's a bit scary.
Ani-_ nothing amazing about it. It's called skill. :)
The_SB yeh even I can tell it by a look
ology It's not scary or amazing at all.
ology It is called experience!
Ani-_ rindolf: what do you find scary?
Ani-_ rindolf: that experienced programmers can tell it? Or the code itself?
Ani-_ I would disagree on the first one but agree on the later! :)
rindolf Ani-_: no, that I'm so experienced.
rindolf Ani-_: I hope I don't sound out as a snob.
ology narcissism is fun
rindolf I should get a life.
rindolf Get a girlfriend, go to movies.
rindolf Instead all I do is write Perl.
rindolf And chat about writing Perl.
Ikarus a life, tried that, didn't mix with me
Channel #perl
Network Freenode
Tagline Scary Perl Expertise

(Human) Language Fun on Freenode's #perl

Display

rindolf Let me wikipedia it.
f00li5h so now wikipedia is a verb?
rindolf f00li5h: it's gonna enter the OED.
rindolf f00li5h: in English every verb can be nounified and every noun can be verbed.
rindolf f00li5h: google is now a verb too.
f00li5h rindolf: q{ just one second and i'll "computer" it up for you"}
rindolf f00li5h: LOL.
rindolf f00li5h++
* rindolf f00li5hes jql
rindolf I'm rindolfed
* f00li5h finds it odd that irssi hilighted half of that word
rindolf f00li5h: it's much harder to do it in Hebrew.
jql computer is from the verb compute already
rindolf jql: there's computerise though.
f00li5h jql: but to computer something is different than computing it
f00li5h COMPUTIFY!
rindolf jql: I once thought that the study of Objectivity is Objectivism.
f00li5h "configurated"
jql you shouldn't noun up a verb that's been nouned already
rindolf And the study of Objectivism is Objectivistalism.
Caelum heh
rindolf And that study of that is Objectvisitalistalism.
rindolf And to infinity it's Objectivist-elementalism!
f00li5h eval: object .((ism)x100)
buubot f00li5h: objectismismismismismismismismismismismismismismismismismismismism ismismismismismismismismismismismismismismismismismismismismismism ismismismismismismismismismismismismismismismismismismismi
rindolf With apologies to the 4 people who ever spoke Latin correctly.
jql I can't help but read that as smi smi smi
Caelum me too
rindolf jql: reminds me of Peter Pan.
Channel #perl
Network Freenode
Tagline (Human) Language Fun on Freenode's #perl

How many clicks must a one man do, before he selects what he wants on Freenode's #perl.

Display

dkr I use nedit, the only app with a quadruple-click feature
naquad wtf is quadruple-click??? %-/
dkr double-click selects a word, triple-click selects a line, quadruple-click select the whole document. heh :)
Patterner quintuple-click selects the whole harddisk
rindolf hexuple-click selects the entire Intranet.
rindolf And septapable-click selects the entire Internet
Patterner How many for the multiverse?
naquad people, who uses what editor?
arw octaple click selects the known universe and nonaple the rest too.
rindolf arw: how long does it takes these clicks to run?
rindolf I think it's super-exponential complexity.
arw rindolf: no matter, the universe is finite :)
arw rindolf: only problem is, the information about your clicking will never reach the entire universe as it expands ;)
Channel #perl
Network Freenode
Tagline How many clicks must a one man do, before he selects what he wants?

The meaning of "I" on Freenode's #perl.

Display

* reflexive huzzahs. His Perl books just arrived.
apeiron reflexive, Which?
reflexive apeiron: IP and PBP. A couple others are still in transit.
apeiron reflexive, Nice. :)
reflexive :)
rindolf reflexive: what is IP?
reflexive Intermediate Perl.
rindolf reflexive: oh, OK.
rindolf Intellectual Perl.
rindolf Internet Perl.
kojiro Invasive Perl
kspath Idiot Perl
rindolf Interactive Perl.
rindolf I, Perl.
kojiro Implementing Pies
kojiro mmm, pie
rindolf Improbably Perl
kspath Ignoble Perl
kojiro Probably Inverted
rindolf kojiro: :-)
kspath Improper Perl
reflexive Insidious Perl?
mst ALL PERL IS IMPROPER
kojiro API?
rindolf In Soviet Russia all improper is Perl.
rindolf APII.
qrck impudent perl
kojiro no, you never count words like "is"
kspath Incoherent Perl
kojiro ALL PERL IS INCOHERENT
reflexive So true.
Channel #perl
Network Freenode
Tagline The Meaning of "I".

Got the Slashdot? on Freenode's #perl.

Display

dkr which is that ACME:: filter that obfusctaes all your source into whitespace? :)
preaction Acme::Bleach
rindolf dkr: as preaction said it is Acme::Bleach.
dkr moderation -1 Redundant
* dkr smirks
nws get out you slashdotter
nws jk
dkr I got moderated overrated yesterday. I felt so loved
dkr GumbyGumby: how often do you post to /.?
GumbyGumby dkr: do it to system() a ssh command. Is doing that often.
rindolf GumbyBRAIN: how often do you post dkr to Slashdot?
GumbyBRAIN do it to list.
Channel #perl
Network Freenode
Tagline Got the Slashdot?

What's in a variable-name? on Freenode's #perl.

Display

WebDragon y'all should spell it in uppercase it being an acronym and all
reaction Yes, but we're *lazy*!
* WebDragon *so* noticed ;)
dkr WebDragon: people that use CamelCase have no right to criticize about capitalization. :)
WebDragon dkr: I hate underscores
* dkr contemplates a source code filter that does lets you use spaces in var names by switch them to underscores at compile time
preaction black magic
mst dkr: source filters are evil.
mst dkr: in a bad way.
mst dkr: hacking the compiler is much more fun, and evil in a useful way :)
mst WebDragon: recommended perl style is $var_name
mst WebDragon: it's also more readable than $varName or $VarName
mst WebDragon: I'd recommend trying it for at least a month
mst WebDragon: also note that it'll make life easier because you'll be consistent with the rest of perl code
WebDragon mst: I was thinking more along the lines of filenames and irc nicknames than perl variables
mst WebDragon: ah. fair enough :)
* WebDragon doesn't use camelcase for perlvars
mst WebDragon: then I shall cease complaining :)
avar ${"Insert a descriptive essay about the variable here"}
WebDragon rofl
rindolf avar: that won't work with 'use strict 'refs''
WebDragon avar: I've seen things like that in RL and had recurring nightmares about them when I saw similar and sometimes worse things on thedailywtf.com
mst rindolf: ${main::}{"Insert a descriptive essay about the variable here"} would :)
mst rindolf: or you could just use %_ :)
dkr my boss still occasionally uses vars like $x. still trying to beat that behavior out of him
* WebDragon only uses x|y|z for cartesian coordinate math
WebDragon which, since I hardly ever do any of that, means the obvious
Channel #perl
Network Freenode
Tagline What's in a variable name?

Watched the fountain on Freenode's #perlcafe

Display

mofino watched the Fountain
mofino pretty cool'
q[ender] yep
sili what?
sili you think The Fountain was cool?
sili it was pretty artsy.
sili I don't understand the necessity of repeating that same scene 50k times, though.
mofino then you didn't get the movie
rindolf sili: if you repeat a scene 50k times, then the movie will have less entropy and will compress better.
Channel #perl
Network Freenode
Tagline Watched the fountain on Freenode's #perlcafe

Commiting yourself to a programming language on Freenode's #perl.

Display

convivial high-rez, but I don't know enough to help you because I am a newbie to perl programming and although I am in deep luv with perl and planning on marrying perl, I still have a lot to learn.
rindolf convivial: you can only marry Perl if polygamy is legal where you live.
rindolf convivial: because Perl and I are already married. :-D
convivial why is that? i'm single :)
rindolf convivial: but Perl isn't.
convivial oh crap !
convivial all the good languages are already married :(
rindolf convivial: COBOL is still single.
rindolf convivial: but I heard she's a total bitch.
convivial ewwwwwwwwwwww, so is JCL and no one is knocking down either of their doors
convivial rindolf, janet reno is single!
rindolf convivial: what kind of programming language is "Janet Reno"?
convivial :)
convivial she is a person
rindolf convivial: I'm not interested in people, I'm only interested in programming languages.
shaldannon rindolf: you should try Ada
rindolf shaldannon: Ada 95?
shaldannon yeah
shaldannon the syntax of Pascal, the power of Basic and the friendliness of Java
Channel #perl
Network Freenode
Tagline Commiting yourself to a programming language on Freenode's #perl.

Making use of Encyclopedias at FreeNode's #perl

Display

* shaldannon beats iank over the head with an encyclopedia
rindolf shaldannon: all volumes of an encyclopedia?
dwu rindolf: ha
shaldannon rindolf: every last one of 'em
rindolf shaldannon: or perhaps a printout of the Wikipedia?
iank rindolf: the whole bookcase
rindolf shaldannon: which Encyclopedia?
iank rindolf: naw, just get the DVD :)
shaldannon rindolf: I couldn't lift that
shaldannon rindolf: Britanica
iank You could lift the DVD!
dwu shaldannon: Start. Working. Out.
shaldannon dwu: oh?
dwu shaldannon: Dude, being able to lift the Britannica is hot.
* iank -> the internet
shaldannon :-}
dwu Seriously.
dwu "I can hold the accepted knowledge of a percentage of the human race in my arms!" "Oh, god, that is so sexy."
shaldannon hahahaha
dwu Seriously. Smart is hot. Smart and funny... well.
* shaldannon is hillarious ;)
dwu Uhm. kay.
rindolf If you start reading the wikipedia lexicographically, will you ever finish at the rate articles are added there?
tarrybone rindolf: yes (citation needed)
dwu ha
shaldannon lol @ tarrybone
dwu tarrybone++
rindolf This reminds me of James Bond 1, where the girl there read an encyclopedia, instead of going to school.
yrlnry Does anyone near Philadelphia want to come to my house and take away my 1920 Britannica?
shaldannon rindolf: hey...when I was in elementary school, I used to read the World Book encyclopedia instead of doing my homework
Channel #perl
Network Freenode
Tagline Commiting yourself to a programming language on Freenode's #perl.

Production WTF Code on #perl

Display

dwave anyone envy me? i'm refactoring production code that uses the fact that "" is defined, as a hash key.
dwave if (ref $ref->{""} ne "ARRAY") {
dwave $ref->{""} = [$ref->{""},$_];
dwave } else {
dwave $ref->{""} = [@{$ref->{""}},$_];
dwave }
dwave :(
iank hey, that looks like fun.
integral Has the author been lynched yet?
* integral would have used "\0" :-P
dwave the best of it all, is that it's an XML parser
mauke $ref->{""} = [ref $ref->{""} eq "ARRAY" ? @{$ref->{""}} : $ref->{""}, $_]; # fixed
rindolf dwave: does this XML parser makes use of an existing XML parser from CPAN?
rindolf dwave: or does it do everything from scratch?
dwave rindolf: everything from scratch :)
rindolf dwave: nice!
dwave i'm trying to get rid of it
rindolf dwave: re-inventing square wheels.
dwave there's a home made unicode lib too
dwave !
rindolf dwave: ouch!
shaldannon nice
iank Brilliant!
shaldannon dwave: I suggest a dailywtf.com submission
rindolf dwave: yeah, I second shaldannon
Channel #perl
Network Freenode
Tagline Production WTF Code on #perl

Versions of Software on FreeNode's #perl

Display

bp31416 rindolf: I command you both, to uninstall it, and install SuSE10.2 =P
jagerman "versions" are so annoying.
jagerman "I use Linux 10.2!"
iank jagerman: I had a friend who insisted the answer to the question "What version of the kernel are you running?" was "gnome".
jagerman eval: $POE::Kernel::VERSION
buubot jagerman: 1.2173
jagerman \o/
Terminus heh, a friend of mine only remembers me running ximian a few years ago and he keeps on asking me, "why don't you run ximian again?" where ximian == OS for him.
bp31416 jagerman: could be worse lingo-wise, in tech-support many folks asking on Q about 'THEIR internet' isn't working, or 'does it have internet installed?', I .....like.... sir.... when did you manage to buy the internet in whole? ....... ahhhh... the internet is not a socket you plug in any of the ports sir
Channel #perl
Network Freenode
Tagline Versions of Software

The Holy Extreme Programming in Freenode's #perl

Display

rindolf "We're doing XP [= Extreme Programming] here, so you need to know Ruby, you need to know Design Patterns and you need to know Refactoring."
rindolf XP may have become a religion.
ew73 I Refactored yesterday!
rindolf ew73: using which refactoring pattern?
ew73 Leviticus 13:22
Somni well you will keep refactoring until you get it right!
* rindolf extracts the ew73 method.
rindolf ew73: this is one of my favourite refactoring patterns.
* ew73 idly looks up said passage, just to see if it's any good.
integral What do you have to know to claim you know refactoring?
integral How to click buttons in the right Eclipse menu?
rindolf integral: the code is in Ruby.
integral Ruby is too cool to be in Eclipse?
ew73 integral: One time, I moved all this stuff to another subroutine!
ew73 Lev. 13:22. And if it spread, he shall judge him to have the leprosy:
rindolf integral: no, but you cannot refactor Ruby code automatically using Eclipse.
integral One time I wrote all this code, but when I was about to go home I found I'd left my brain at home! LOLZ
integral ew73: good butter advert in that
Channel #perl
Network Freenode
Tagline Extreme Programming as a Religion

To be here or not to be here on Freenode's #perl

Display

rindolf Hi all.
rindolf LeoNerd: here?
LeoNerd rindolf: Maybe
rindolf LeoNerd: "be here or be not here - there is no maybe"
LeoNerd :)
rindolf LeoNerd: a.k.a the law of the exclusion of the middle.
dwu I think Yoda phrased that one best.
Channel #perl
Network Freenode
Tagline To be here or not to be here on Freenode's #perl

Monkey Business at Freenode's #perl

Display

perlmonkey thats just...mental
rindolf perlmonkey2: still here?
perlmonkey2 rindolf: hi
rindolf perlmonkey2: hi.
perlmonkey phew
rindolf perlmonkey2: now we have two Perl monkeys.
perlmonkey2 hah
perlmonkey2 good stuff
perlmonkey2 You can never have too many.
PeaceNLove To produce good stuff like Shakespeare's works, we need an infinite number of monkeys
perlmonkey we're starting a monkey clan
rindolf PeaceNLove: heh.
rindolf PeaceNLove: and to write like a monkey we need a million Shakespeares.
PeaceNLove perlmonkey, reproduce and multiply, God be with you
perlmonkey2 PeaceNLove: You can, of course, do anything with an infinite number of perl monkeys.
perlmonkey2 PeaceNLove: Actually a million monkeys on a million typewriters would most probably have not created Hamlet if they started at the beginning of the Universe.
PeaceNLove perlmonkey2, that's fine, the Universe has not ended yet, they have time
Channel #perl
Network Freenode
Tagline Monkey Business at Freenode's #perl

Who you're gonna call on Freenode's #perl

Display

rindolf Hmmm... xchat-perl is gone.
f00li5h OH NOES! ## what's that for then?
rindolf Who you're gonna call? Bug-busters!!
Khisanth rindolf: never existed, unless you are using an rpm based system
rindolf Khisanth: I am.
f00li5h I AINT AFRAID OF NO BUG!
rindolf f00li5h: heh.
f00li5h when there's something wierd and in your code base, who you gonna call?
railbait f00li5h: The police?
f00li5h railbait: BUG BUSTERS!
f00li5h we test it with science then blow it up
f00li5h ... or is that someone else
Channel #perl
Network Freenode
Tagline Who you're gonna call?

Tribute to the Prisoner on Freenode's #perl

Display

Hazard How do I look up @- in the perldocs?
rindolf Hazard: perldoc perlvar
Hazard rindolf: Thanks.
Daveman perldoc rindolf
Hazard I don't know what I'd do without IRC.
rindolf Daveman: I am not a pragma! I'm a free man!
Hazard I couldn't even google that.
rindolf use Daveman (qw(silliness));
* jetscreamer sends rindolf back to the village
rindolf jetscreamer: is it a Perlisoner village where everyone becomes a pragma?
jetscreamer and lots of perlBalloons
Daveman gumbybrain, how do i make teh web wit shlomi!?
rindolf jetscreamer: Perloons.
rindolf jetscreamer: Perlunatics.
apeiron Perlarks.
Daveman perlaugh
Channel #perl
Network Freenode
Tagline Tribute to the Prisoner

The Messiah of Perl on Freenode's #perl

Display

ubajas Technically, my first language was Turbo Pascal, but I started over with Perl 10 years later (not having programmed in the meantime). I'm obviously damaged goods.
iank ubajas: heh, I read that as "I started with (perl 10) (years later)" instead of "I started with perl (10 years later)" :)
rindolf Perl 10!
rindolf Perl for the Fourth Millenium.
jagerman I thought Perl 6 was supposed to be timeless
ubajas iank: Maybe I should have added a comma. :-]
jagerman Perl ∞
iank perl6 has existed since the beginning of time, or at least it will have existed since then once $Larry finds a time machine.
simcop2387 iank: i'm sorry but larry is the prophet i am the messanger! i will be the one to take it back!
iank WHAT.
simcop2387 iank: its MY TIME MACHINE!
* iank smacks simcop2387 around
jagerman iank: So it'll be like that Star Trek episode, where they say that the development of computers are caused by time travel from the future?
jagerman Except that they were too stupid (like most Voyager writers) to get their facts right, and thought computers started in the 70s
Channel #perl
Network Freenode
Tagline The Messiah of Perl

One rindolf Each on Freenode's #perl

Display

milardovich with strict it say me this:
milardovich Global symbol "$lorem" requires explicit package name at split.pl line 3.
rindolf milardovich: use "my $lorem = "
rindolf milardovich: my is your friend.
rindolf pun not intended.
rindolf my is my friend.
dwu Preferably with a real value after "= " ^.^
rindolf dwu: he already has that.
milardovich that works with my rindolf
milardovich thaks you!!!
rindolf milardovich: you're welcome.
milardovich :)
ubajas I wish I had a rindolf too. :-\
milardovich people here are "nicer" than on #php :P
rindolf ubajas: I'm mass-produced at Chines sweat-shops.
ubajas hehe
rindolf ubajas: they sell me for 30 bucks a piece.
rindolf milardovich: I've heard some horrible stories about ##php.
milardovich perl rulz x)
rindolf milardovich: what brings you to Perl?
simcop2387 rindolf: #php apparantly
rindolf simcop2387: heh.
rindolf simcop2387++
Channel #perl
Network Freenode
Tagline One rindolf Each on Freenode's #perl

Are you being verbed on Freenode's #perl

Display

rindolf cl1: what do you do at work?
cl1 i write code :D
rindolf cl1: naturally.
rindolf cl1: to do what?
cl1 right now at this contract, i'm working with .net, c#, asp.net and pl/sql
rindolf cl1: sounds enterprisey.
BinGOs please don't turn enterprise into a verb.
rindolf BinGOs: enterprisey is an adjective, not a verb.
LeoNerd Enterprizationaliseation?
BinGOs okay.
cl1 lol @ enterprisey
rindolf GumbyBRAIN: BinGOs me!
GumbyBRAIN i tend to be good, it doesn't want me to buy an island utopia (you'll get used to bother me.
BinGOs But it is a noun and no more.
BinGOs mmmkay.
dwu BinGOs: Actually, it's also an adjective. Even without "y".
BinGOs I HATE YOU ALL.
* dwu grin
BinGOs CRITIQUE IS DEFINITELY A FUCKING NOUN.
dwu It's also a verb.
BinGOs NO IT ISN'T
simcop2387 BinGOs: i shall critique your use of critique
BinGOs JUST BECAUSE SOME DAMNED YANKEE SCUM DECIDE IT IS, DOES NOT MAKE IT SO.
dwu It's been used since the 18th century.
rindolf BinGOs: dwued!
BinGOs I refer you to my earlier hate.
dwu I refer you to your fail.
icke not earlier than 18th century
dwu I really shouldn't. It's mean. But I will.
dwu Because I'm mean.
dwu icke: Hence "since".
dwu 'criticises'.
BinGOs My fail-gun appears to firing backwards. Damn thing.
dwu Your fail gun is... failing?
Channel #perl
Network Freenode
Tagline Are you being verbed on Freenode's #perl

How much Perl do you need at Freenode's #perl

Display

shishirm1 is pop3 module avaliable only in perl 5?
jernster are you saying you use something other than 5?
icke perl 4 didn't even have modules
jernster heh
rindolf shishirm1: do you want to use it with Perl 4?
shishirm1 oh ok sorry i am comlete nooob!! so i am just asking you guys
shishirm1 nope is perl 5 a standard now?
jernster yes
shishirm1 ok great...
jernster :)
rindolf shishirm1: Perl 4 is unmaintained, unloved, deprecated, not recommended, and dead - D. E. D. - DEAD!
simcop2387-lap perl 4 is an EXPERL!
simcop2387-lap all statements that perl4 is a going concern are thus inoperative.
Channel #perl
Network Freenode
Tagline How much Perl do you need at Freenode's #perl

Conditional-to-Inheritance Refactoring on Freenode's #perl

Display

edeca Hrm. More infernal questions, mainly because I am trying to make my perl prettier and contain less nasty if's. I have $foo and $bar which are obtained from split(/ /, 'kitten loving'). But I don't want undef if the split fails, I'd rather '' for $bar or both. What's the nicest way to do that?
Khisanth ($foo, $bar) = map { $_ // "" } split / /, $str; # 5.10 version :)
edeca Noo 5.10! :)
Khisanth ($foo, $bar) = map { defined $_ ? $_ : "" } split / /, $str; # probably some other shorter ways too
rindolf edeca: [bad idea] you can also try using the conditional->inheritance refactoring.
rindolf :-)
* Khisanth pours boiling coffee on rindolf
rindolf Khisanth: I hate coffee, but I guess I deserved it.
rindolf That was a joke, of course.
Khisanth you weren't really supposed to like having boiling anything poured on you but I guess you are into the kinkier stuff
Channel #perl
Network Freenode
Tagline Conditional-to-Inheritance Refactoring on Freenode's #perl

Geek love on Freenode's #perl

Display

rindolf rbastic: QBasic was the sh*t!
rindolf rbastic: well, not really.
rbastic rindolf: yup, that language is responsible for me having gotten into programming to begin with.
rbastic 8 yrs old and writing qbasic scripts with QBasic for Dummies by my side
rindolf rbastic: I started when I was 10.
rindolf rbastic: I know some people who started much later.
talexb Late bloomer .. didn't start till I was 15.
Zoffix heh, I started at 14... I could not have a computer before that
rindolf rbastic: but I know a girl who started programming when she was 6.
rindolf Or was it 8?
Zoffix rindolf, CAN HAS PHONE NUMBER?!
rbastic lol
rindolf Zoffix: NO CAN!
Zoffix :(
rindolf Zoffix: only have her MSN.
Zoffix gimmegimmegimme
talexb Heh.
Zoffix :)
rindolf Zoffix: LOL.
Channel #perl
Network Freenode
Tagline Geek Love

The Grand Unified Programming Language

Display

rbastic Juerd: eh in today's world of heavy JS on the clientside, i think it makes a little more sense to use the same lang. everywhere
Juerd rbastic: JS on the client side is because often it's the only option the universe provides.
rbastic Juerd: from a business perspective, you reduce the complexity and potential difficulties in finding new hires with the same skillset
rindolf rbastic: have you heard of RJS?
Juerd rbastic: On the server side, however, you have great freedom.
rbastic rindolf: no, what's that?
Caelum larry wants perl6 to run on javascript :)
rindolf rbastic: "One Language; and One Sayings".
Juerd rbastic: Exactly. I would never hire a server side programmer who knows *only* Javascript, and is too stupid to learn whatever we're using on the server side.
rindolf rbastic: my translation to a sentence from the Tower of Babel myth.
rbastic Juerd: i'll agree with that also. any real programmer knows or has at least coded in half a dozen languages before
Juerd From a business perspective, you should avoid crap coders at all cost.
Juerd Knows *or* has coded... Hmmm...!
rindolf rbastic: though according to what most scholars believe it was not about using one language but rather thinking the same.
Juerd I hope they haven't coded in half a dozen languages without knowing them.
Juerd That'd be scary.
zshzn Reality is scary, Juerd
talexb Hmm, BASIC, FORTRAN, COBOL, assembler, C, more assembler, C, Pascal ... Perl!
Channel #perl
Network Freenode
Tagline The Grand Unified Programming Language

Can I haz a fast compiler on Freenode's #perl

Display

rindolf rbastic: now I'm working with C++.
rindolf rbastic: I found out that my project compiles really quickly.
rindolf rbastic: under 5 or 10 minutes on a P4-2.4GHz with 1 GB of RAM.
rindolf rbastic: maybe KDE is making g++ look bad.
rbastic rindolf: yeah, i'm not a big KDE fan
rindolf rbastic: actually I'm using KDE-3.5.8 here.
rindolf rbastic: I was talking about the compilation speed of KDE apps and KDE itself.
rindolf rbastic: possibly because each file has half-a-gazillion headers.
rindolf My C++ code is a server one, so we don't have too many deps.
rbastic yeah, isn't there a way to cache header files? ie. in their "compiled" form?
rbastic or is that something I'm remembering from some other programming language that purported to build on top of C?
rindolf rbastic: MSVC has that.
rbastic ahh, nods
rindolf rbastic: no, Visual C++ has precompiled headers.
rindolf rbastic: I remember that I kept deleting them.
rbastic yeah, couldn't remember
rbastic lol
rindolf Pascal compiles very quickly.
rindolf That's one of the things I enjoyed in Delphi.
rbastic ugh, the app i'm been maintaining in Java was originally a fat client/server desktop app, written in Delphi
rindolf rbastic: ah.
rbastic i remember booting up the old app for the first time, and being amazed at how slow it was
rbastic eventually, i had to duplicate a feature in the Java code and i wasn't sure how it was implemented before
rindolf rbastic: you mean the Java app is faster? :S
rbastic so being as i had no Delphi experience, and the newer Delphi environments made NO sense to me at all, i just opened up the SQL Server query analyzer
rbastic rindolf: yes, but only b/c the Delphi programmer was an idiot, issuing queries over and over again needlessly
rbastic rindolf: if you could've seen the MSSQL Performance Analyzer or whatever, it was basically just.. Query1, Query2, Query3, Query1, Query2, Query3, repeat.
rbastic it was probably the worst ive ever seen in my life.. belongs on www.thedailywtf.com
Channel #perl
Network Freenode
Tagline Can I haz a fast compiler

I think too much - therefore I blog too much on Freenode's #perl

Display

rindolf scrottie: hi.
scrottie hi rindolf!
rindolf scrottie: are you the scrottie from use.perl.org?
scrottie yeah.
rindolf scrottie: ah, nice to meet you.
rindolf Well, chat with you on IRC at least.
* scrottie cowers from the swinging fist probably coming his way
rindolf scrottie: I'm "Shlomi%20Fish"
scrottie oh, heh, thanks
rindolf It's a curse.
scrottie hmm. i vaguely remember interesting stuff from you but can't honestly place what.
scrottie I know I've seen you around here before too.
rindolf Yeah, my use.perl.org blog is mostly technical and perl-related.
scrottie I post on use.perl.org entirely too much.
rindolf So it may be a bit boring.
rindolf Sometimes it's a bit philosophical.
rindolf scrottie: yes.
scrottie heh. and mine is offensively off-topic.
rindolf scrottie: I have other blogs.
scrottie I've posted to livejournal twice!
Channel #perl
Network Freenode
Tagline I think too much - therefore I blog too much

"How intrusive do you want your text to be?" on Freenode's #perl

Display

rindolf Can we add styles like <b>, <i>, etc.?
rindolf Or colours?
rindolf Or blink?
rindolf Or images?
rindolf Or flash applets?
scrottie <banner>!
alanhaggai rindolf: No I think. Google's Web Application does not allow them. It is just a <textarea>.
Channel #perl
Network Freenode
Tagline How intrusive do you want your text to be?

Freenode's #pearl

Display

rindolf scrottie: you are a native English speaker right?
rindolf scrottie: do you know #linguistics ?
scrottie not familiar with #linguistics, yes, I am a native English speaker, but my spelling is atr... my spelling is terrible.
rindolf atrocious?
scrottie yeah, that
scrottie I have an xterm dedicated to dict/spell
rindolf scrottie: spelling is probably easy to fix using aspell.
rindolf scrottie: heh.
rindolf scrottie: I'm using xchat which has an red-line for spelling mistakes.
rindolf Very useful.
rindolf Too bad I'm using British spelling where it sometimes misbehaves.
rindolf aspell, I mean.
Channel #perl
Network Freenode
Tagline Freenode's #pearl

"Lame even" on Freenode's #perl

Display

rindolf A lot of ise's [in Aspell's British Spelling checker] are false positivies.
rindolf positives even.
rindolf People who say $minor_spelling_correction even, are lam.
rindolf lame even.
rindolf I never get tired of these self-referential jokes.
Channel #perl
Network Freenode
Tagline Lame even

The Third #perl Reich (on Freenode #perl).

Display

scrottie The tech side was there... but I was stuck with my fucking graphics I did in crayon. I kid you not. Crayon.
scrottie It was a cry for help.
scrottie Programmers will work with each other on fun projects, but graphic designers never get involved in stuff like that.
rindolf scrottie: ah.
scrottie then there's kingdomofloathing.com... stick figures.
rindolf scrottie: there are some graphic designers who contribute to KDE, GNOME, etc.
scrottie fuck graphic artists. we should round them all up and burn them.
rindolf scrottie: heh.
scrottie okay, they can live.
rindolf scrottie: scrotitler!
scrottie the rest get burnt though.
rindolf "He who starts by burning graphics desginers will end up burning programmers."
scrottie only the ASP and PHP programmers... then we'll see where things are at and re-evaluate the plan.
rindolf First they came to the graphics designers...
Khisanth then they came for more graphics designers
rindolf scrottie: I knew some very nice PHP programmers.
rindolf And VB ones.
scrottie yeah, me too. real shame.
rindolf scrottie: I still know some PHP programmers.
Channel #perl
Network Freenode
Tagline The Third #perl Reich (on Freenode #perl).

The Name "Bunny"

Display

→B-rabbit has joined #perl
rindolf B-rabbit? I know a B-rat on #linguistics.
B-rabbit rindolf, cool =]
rindolf B-rabbit: ok.
B-rabbit my full name is bunny rabbit bt w :)
B-rabbit hehe
rindolf B-rabbit: ah.
rindolf B-rabbit: "bunny" is a female name.
B-rabbit lol
pippijn rindolf: correct
pippijn I know a bunny
rindolf Or a Playboy bunny.
ik rindolf: bunny is a stripper name
pippijn friends call her bun
ik pippijn: is she a stripper?
B-rabbit rindolf, i am a male lol x sorry to disappoint u
rindolf "IRC: Where men are men, women are men, and the kids are FBI agents."
rindolf B-rabbit: ok, no problem.
ik pippijn: she should change her name
pippijn ik: it doesn't hurt her
ik pippijn: right, but she's violating a fundamental law
ik pippijn: she either needs to change her name or become a stripper
rindolf ik: I think the other option is better.
pippijn ik: she'd probably become a stripper rather than changing her name
rindolf pippijn: LOL.
ik rindolf: yeah, but you're creepy
rindolf I think I'll make a fortune out of it.
Channel #perl
Network Freenode
Tagline The Name "Bunny"

The Anti-School nazi

Display

dazjorz Hi rindolf :)
rindolf Hi dazjorz
rindolf dazjorz: what's up?
rindolf dazjorz: No Tests for You?
rindolf No *more
dazjorz No more tests :)
rindolf dazjorz: No more tests for you!!! For three months!
rindolf dazjorz: nice!
dazjorz :D
dazjorz Two, I think
Channel #perl
Network Freenode
Tagline The anti-School nazi

Emulating a Newbie on Perl

Display

yrlnry Hi, I heard that Perl is just HTML with some sort of macro preprocessor attached. So I thought you would be the right people to ask about whether there is a way to make the submitted value on an <input type=submit> different from the visible label on the button.
yrlnry Thanks in advance.
* Roderick tars and feathers yrlnry.
yrlnry Hi, Roderick! How's the kid?
Somni you have been misinformed, sir; Perl is just a regex engine with named variables
ne2k__ yrlnry: that is possibly one of the oddest questions I have ever heard
yrlnry ne2k__: What's odd about "How's the kid?"
yrlnry You need to get out more, seriously.
ne2k__ yrlnry: I meant the original question
Roderick Congratulations, I hope it's going well.
yrlnry Do you know that Jewish folktale about the man who lives in a tiny hut with his wife and kids and they can't stand the crowding any more, so they go to the rabbi for advice, and the rabbit suggests that they bring the chickens, goat, and cow into the house too?
ne2k__ yrlnry: not that it has anything to do with perl, but the <input> tag in HTML has both "name" and "value" attributes. the value is what gets shown in the browser typically.
yrlnry ne2k__: yes, and the value is also what is submitted when someone presses the button, but I want the displayed label to be different from what it submitted, as it is say with <option ...>
Channel #perl
Network Freenode
Tagline yrlnry as a Perl newbie

Which Prefix do You Want Today?

Display

mMish hi rind
rindolf Hi mMish
rindolf mMish: now you're mMish ?
rindolf mMish: are you eMish, oMish, aMish , etc?
mMish yes
rindolf mMish: ah, nice.
mMish depends on the mood
rindolf GumbyBRAIN: how many nicks must a one IRCer have?
GumbyBRAIN Oh, i lie, now it's stuck on posting things to do it. You said you couldn't have one of many.
rindolf mMish: ah OK.
rindolf xMish
rindolf iMish
rindolf zMish
rindolf Like the IBM computers.
rindolf pMish
mMish ppszMish <--- HUngarian
rindolf mMish: LOL.
rindolf lpstrMish
dazjorz is lpstr a function?
dazjorz get_magic_quotes_gpcMish
rindolf dazjorz: no, Long Pointer to string.
dazjorz PHP++ :')
rindolf dazjorz: why?
rindolf perlbot: karma PHP
perlbot Karma for PHP: -147
LeoNerd It takes some nerve to say "PHP++" in #perl :P
dazjorz rindolf: because they have get_magic_quotes_gpc!
dazjorz don't we all love get_magic_quotes_gpc!
rindolf dazjorz: oh.
dazjorz it's a function
rindolf dazjorz: love, hate - what's the difference.
rindolf dazjorz: that does what?
dazjorz to get the value of magic_quotes_gpc in the config file.
rindolf dazjorz: ah.
dazjorz so they have get_magic_quotes_gpc for get_ini('magic_quotes_gpc')
rindolf dazjorz: LOL.
dazjorz plus, there's the magic_quotes_gpc to escape all input a script gets via POST, GET and COOKIE.
rindolf dazjorz: yes, sounds Evil.
rindolf Just use placeholders.
Channel #perl
Network Freenode
Tagline Which Prefix do you Want today?

Sextalk according to the cult of Perl

Display

krang Hey all, what's the best way to call one perl script from another? I was thinking I'd just use 'system("script.pl");'
dazjorz krang: yeah, that, or do "script.pl"
dazjorz krang: depends on how seperated you want them to be
krang dazjorz: you mean just a line that has "script.pl"; written on it?
Khisanth you need the do as well
dazjorz krang: no, exactly this: do "script.pl";
rindolf krang: system is usually what you want.
rindolf krang: normally require or use are preferable to do
dazjorz rindolf: that's for modules, isn't it ?
rindolf dazjorz: yes.
dazjorz wait, I think require "script.pl" would work too
rindolf dazjorz: and doing code is not such a good idea.
dazjorz rindolf: hmm?
krang rindolf: what is doing anyway?
rindolf dazjorz: I mean "perldoc -f do"-ing code.
rindolf krang: do()-ing
rindolf krang: it reads the file and evaluates it.
rindolf krang: perldoc -f do.
dazjorz rindolf: ah
dazjorz rindolf: do {}
* rindolf would rather be doing hot models than doing code. :-)
dazjorz rindolf: yeah, do BLOCK is quite useless
dazjorz heh
rindolf dazjorz: you can do my $var = do { ... }
* dazjorz would rather be doing GumbyBRAIN than doing code
GumbyBRAIN and doing code is not be in the days of immortality!
rindolf dazjorz: or eval { ... }
rindolf dazjorz: heh.
rindolf It's hard to do code.
dazjorz do $model;
dazjorz eh.. sorry, do $hotmodel;
rindolf "Are you into my brother?"
rindolf "No I'm totally into Perl."
krang ah ok, I see. Thanks guys!
rindolf krang: yw.
dazjorz heh :-)
rindolf If you want a configuration file, you should be using something like INI, YAML, etc.
rindolf XML perhaps.
rindolf Something.
rindolf Apache-like config.
dazjorz Apache-like is very strong but hard to parse, right ?
dazjorz Loading and saving configuration never looks good, especially when it's XML
dazjorz the code to load and save is ugly.
Channel #perl
Network Freenode
Tagline Sextalk among Perl cultists

f00li5h inviting rindolf to Australia

Display

f00li5h rindolf: are you coming out this way on tour some time?
rindolf f00li5h: to .au?
f00li5h yes!
rindolf f00li5h: don't think so.
f00li5h you can pay some of my rent for a bit ^_^
rindolf f00li5h: I'm out of job too.
f00li5h perfect timing!
f00li5h no commitments
* f00li5h is very good at constructing circular arguments due to his skill in constructing circular arguments
Channel #perl
Network Freenode
Tagline Will rindolf come to Australia?

The Love Life of Cats

Display

Anon today my kitty gave a birth to two kitties!
rindolf Anon: ah, nice.
Anon one of them died :(
Anon during birth
rindolf Anon: oh. :-(
simcop2387 Anon: were you expecting it to happen?
simcop2387 :(
Anon simcop2387, i was expecting this week
rindolf Anon: do you know who the father is?
simcop2387 ah
Anon rindolf, some cat
simcop2387 rindolf: hopefully not him
Anon rindolf, remember my kitty ran away
rindolf Anon: ah.
Anon for a week
rindolf Anon: no I don't remember that.
Anon well, she ran away for a week
rindolf Anon: ah.
Anon and came back
Anon and during that time she got pregnant.
rindolf Anon: ah.
freehaha they don't seem to have safe sex
rindolf Anon: she eloped.
simcop2387 Anon: sounds like she had fun
Anon simcop2387, sounds like that :)
simcop2387 Anon: you should have the talk with her about birth control then (i wonder do they even make birth control for kitties)
Channel #perl
Network Freenode
Tagline The Love Life of Cats

Black Beer

Display

* rindolf is listening to
rindolf Oh crud.
rindolf I should support Kaffeine too.
Tanktalus rindolf is apparently deaf... ;-)
* rindolf is listening to Metallica - Nothing Else Matters
ubajas NOTHING ELSE MATTERS, DUDE
tkr rindolf: thats nice :)
tkr rindolf: how about guns 'n roses?
* rindolf is listening to Guns and Runs - don't cry
rindolf tkr: you read my mind.
rindolf tkr: I now placed some of their songs.
rindolf Now it's November Rain.
tkr rindolf: next time youll come to finland Ill buy you a beer (with no alcohol)! :)
tkr rindolf++
rindolf tkr: OK.
rindolf tkr: we have something called "Black Beer" in Israel.
rindolf Which is a non-alcoholic beer.
simcop2387 rindolf: THATS RACIST! IT SHOULD BE AFRICAN AMERICAN ISREALI BEER!
edenc rindolf: is it any good?
rindolf simcop2387: heh .
Channel #perl
Network Freenode
Tagline Beer, Perlers and Song

Assign Named $foo and $bar

Display

LeoNerd I feel there must be a way to do this... given func( foo => 1, bar => 2 ); how to write my ( $foo, $bar ) = .... inside the function?
LeoNerd My current attempt is my ( $foo, $bar ) = @{{@_}}{qw( foo bar )}; which is messy as sin
icke LeoNerd: what's the problem? readability?
LeoNerd Yah
dazjorz LeoNerd: I'd change specs to be func({ foo => 1, bar => 2})
dazjorz then my ($foo, $bar) = ($_[0]{foo}, $_[0]{bar});
ton Leonerd: If you insist on doing it on one line, that's about as good as it gets. But why not use a temporary hash ? Should be just as fast and as readable
LeoNerd Hrm.. :/ Then it's only marginally nicer as my ( $foo, $bar ) = @{$_[0]}{qw( foo bar )};
LeoNerd my %args = @_; my ( $foo, $bar ) = @args{qw( foo bar )}; ya... that works
mst LeoNerd: my ($foo, $bar) = do { my %a = @_; @a{qw(foo bar)} };
ton if you combine it with a delete you can then check if %args is empty and catch typos or unexpected arguments....
LeoNerd Oooh.. a do block
vincent or use padwalker
LeoNerd Oh, args won't be empty... this is a wrapper function that pulls a few named args off and sends the rest to a nested inner function
LeoNerd Now.. I want to call a function "foreach" but that breaks things... suggestions?
icke a method could be named 'foreach'
LeoNerd Ya.. but this is a plain function
icke tough
LeoNerd I suppose "iterate" is about as best as I'll get
icke for_each
ton LeoNerd: forall ?
LeoNerd I'll think on it overnight maybe.. I guess it's home time now
icke foreachandeverysingleone
ton forever, forfun, forlorn...
vincent FOREACH
icke boo
LeoNerd one_for $all and $all for @one;
rindolf forevery?
rindolf <LeoNerd> one_for $all and $all for @one; - heh
rindolf $one for @all and @all for @one
rindolf $one for @all and @all for @$one
rindolf $one for @all and @all for $one
rindolf Works too.
LeoNerd Hrm.. it does?
LeoNerd deparse: $one for @all and @all for $one
buubot LeoNerd: Error: syntax error at (eval 107195) line 1, near "@all for "
LeoNerd You can't use two postmod fors in a single statement
Channel #perl
Network Freenode
Tagline Syntax Fun

The func

Display

as841 Hi, i am doing a print $drh->func('createdb',$database,"localhost","root",$password,'admin'); but getting this Can't call method "func" on an undefined value
as841 could anyone point me in the right direction ?
Yaakov o/~ Ow we want the func / Give up the func / Ow we need the func / We gotta have that func o/~ </drforr>
rindolf We got the func!
rindolf Forget the fee func, we've got the see func!
as841 wtf?
as841 did i launch a movement or what ?
Yaakov What the func?!
Channel #perl
Network Freenode
Tagline The func

More Than One Way for a Cat to Paw

Display

* f00li5h paws at dazjorz
dazjorz f00li5h! :)
f00li5h how goes it?
dazjorz it goes very fine. :)
* pkrumins f00s at pawlish
* f00li5h pkrums at pawkrumins
pkrumins f00li5h, thank you sir! =^_^=
f00li5h dazjorz: I am quite well
* dazjorz li5hes at f00paw
* dazjorz rins at pawdolf... man, I could go on forever.
pkrumins haha
pkrumins pawdolf
* pkrumins dazes at pawjorz
* dazjorz gumbys at .. oh well
* pkrumins paws at GumbyBRAIN
GumbyBRAIN Ik paws at gumbybrain.
Channel #perl
Network Freenode
Tagline More Than One Way for a Cat to Paw

Bit by bit

Display

Similian is there a smart way to read a file to a certain string bit by bit ?
Similian which loop to use?
rindolf Similian: you can read it byte by byte.
rindolf Similian: do you want to read the whole thing?
Similian no
Similian too big 200 MB
simcop2387-lab reading bit by bit is usually not supported by most operating systems
rindolf Similian: then do you want to read one byte at a time?
ik or one line at a time?
Similian guess a line would be better
rindolf simcop2387-lab: it is on my rindolfOS running on Intel 1001.
rindolf Which was a 1-bit processor.
ik heh
ik I had a half-bit processor
ik it just stored ones
danieldg ik: that would be a zero-bit processor then
ik no no
danieldg half-bit processor stores 0's or sqrt(2)'s
ik sqrt(2) may as well be 1
simcop2387-lab rindolf: a 1 bit processor would be a hell of a thing to work with
danieldg not if you can't test it unless it's one
ik We're not talking about numbers, we're talking about on and off, true and false, whatever you want to call it
ik sqrt(2) is nonzero, so it's one.
rindolf danieldg: not 1/sqrt(2)?
danieldg hmm it would probably be that, yes
simcop2387-lab my proc uses sqrt[-1]!
ik may as well
danieldg ik: think quantum computers. It tests true with probability 1/sqrt(2)
ik I'm not talking about a quantum computer..
danieldg well a 1/2 bit computer clearly can't be classical
Channel #perl
Network Freenode
Tagline Bit by bit

Log Analyser in Haskell

Display

rindolf whoppix: what's up?
whoppix rindolf, haskelling through the night.
rindolf whoppix: ah.
whoppix rindolf, im pretty much a beginner, tho.
rindolf whoppix: yes, I learned Haskell back at the time.
rindolf whoppix: I tried to write a log analyser in Haskell once.
rindolf whoppix: it segfaulted.
rindolf whoppix: a CL-one was much better.
Caelum rindolf: haha
whoppix sadness
rindolf whoppix: then people showed me how to write it better.
rindolf whoppix: but it segfaulted too.
whoppix haha
Caelum hahaha
Zoffix lol
rindolf whoppix: I gave up on using Haskell for production.
Caelum rindolf: I've submitted your story to bash.org
Channel #perl
Network Freenode
Tagline Log Analyser in Haskell

Best Kind of Bugs

Display

rindolf perlmonkey2: I've ran into a strange problem with CMake. It's some kind of bug that disappears after running a few commands.
perlmonkey2 rindolf: heh, the best kind of bugs are intermittant and only happen under load :P
rindolf perlmonkey2: it's not load.
daemon The best kind of bugs are the ones that do not happen at all :)
rindolf daemon: heh.
rindolf daemon++
Altreus The best kind of bugs are the ones that only happen to people you hate.
perlmonkey2 hahahaha
Altreus Those aren't usually bugs
Altreus >:)
daemon Altreus, you mean the ones you coded to happen to that said person ;)
daemon hehe
Altreus Not being able to reproduce strange behaviour is fine too
Channel #perl
Network Freenode
Tagline Best kind of bugs

The IRC-Based UNIX Shell

Display

* Zoffix &
^Quiddity Zoffix: fg
apeiron ^Quiddity, no
apeiron kill %1
rindolf kill -9 apeiron
apeiron rindolf, EPERM
^Quiddity kill: apeiron: arguments must be process or job IDs
rindolf apeiron: sudo kill -9 apeiron
^Quiddity killall -9 apeiron
rindolf pkill -9 apeiron
apeiron rindolf, user rindolf is not in the sudoers file, this event will be reported
* apeiron wonders what it says about him that he has that error message pretty much memorized
^Quiddity apeiron: that you don't spend enough time issuing commands correctly
Channel #perl
Network Freenode
Tagline The IRC-Based UNIX Shell

Retardedness

Display

rindolf mst: sorry for that - that was not my intention.
mst rindolf: I know it wasn't. you aren't that retarded. but the way your comment came across was :)
rindolf mst: yes.
rindolf mst++
rindolf mst: "you aren't that retarded." - you shouldn't insult my retardedness (sp?). I worked all my life to be so retarded.
Altreus I think you can spell made-up words like 'retardedness' however you like
carpftb if you're a retard.
Botje heh
Botje working hard is the exact opposite of retardedness :]
Altreus hardly working
Channel #perl
Network Freenode
Tagline Retardedness

How to name a new Flickr-module

Display

jfroebe trying to come up with a replacement name for my Flickr::Simple2.. (it is based off of XML::Simple rather than XML::Parser::Lite::Tree) - Net::Flickr, Flickr::API, Flickr::Simple are already taken. Any ideas? I'm coming up blank for a name
jfroebe It is a Perl interface to Flickr
mofino wait
rindolf jfroebe: ah, I saw your message on Chicago.pm
rindolf jfroebe: maybe WWW::Flickr
mofino you found others and decided you needed to make ANOTHER perl interface to flickr?
jfroebe the other ones have been broken for a long time (either because of use of the abandoned XML::Parser::Lite::Tree module or because the authentication method was never correctly implemented)
buu jfroebe: Please no more names involving ::Simple
rindolf buu: ::Tiny
jfroebe WWW::Flickr is a good possibility
buu Thanks rindolf.
mofino hah tiny is the new simple
rindolf ::Minimal.
buu ::SeriouslyfuckingSmall
rindolf ::NotEnough
rindolf ::GargantuanlySmall
rindolf ::Minuscule
apeiron ::Warning::Uses::XML::Simple::And::Thus::Has:: Terrible::Performance::And::Memory::Usage
Fah ::Deficient
mofino stay in the Flickr:: space
rindolf apeiron++
mofino if there already is one
jfroebe mofino.. that's the problem what to name it
nadim ::Nano
nadim that should be small enough and it sounds serious
mofino jfroebe, something in Flickr:: ;)
rindolf ::Femto
jfroebe lol - understood
mofino jfroebe, ::Improved ::Modern ::Lite ::Tiny ::FUCKYEAH
rindolf jfroebe: a Rose by any other name...
mofino IS A DUCK
rindolf I think half the posts to module-authors are about "How shall I name this module?"
mofino haha
ik I use perlmonks for that ^_^
rindolf jfroebe: I'm not a fan of XML::Simple either.
mofino XML::Simple is teh awesome
ik 1;
ik XML::Simple is teh sux
mofino whatever
ik "this could be an arrayref or a hashref or a nothingref depending on how many thingies were in your doo-dad"
mofino force it
ik yes
mofino but yeah, that is a bit annoying
rindolf ik++ - my thoughts exactly.
mofino OH SUDDEN HASHREF
apeiron XML::Simple is the MySQL of XML parsers.
mofino haha
mofino ahh mysql, DOOOMED
rindolf Haha # apeiron++
kent\n lol @ > apeiron
drforr There's a reason it's called "Simple." You'll find out about 3 days after you start using it.
kent\n would it be anything releated to being feature-incomplete
drforr That would be be why it's "simple".
jfroebe but for simple XML data (i.e. Flickr's REST API), it is more than sufficient
kent\n define "simple" XML
kent\n $xml = '<' # already too complex
jfroebe kent - lol
jfroebe :)
jfroebe thoughts on Flickr::YA::API ?
jfroebe for a name
mofino jfroebe, YA?
jfroebe yet another
mofino ...
mofino just pick a name
mofino Flickr::API
mofino oh, nevermind
jfroebe mofino - now you see.. all the good ones are taken ;-)
mofino maybe you had it at Flickr::Simple2
kent\n Flickr::API:: something
kent\n or something
mofino kent\n, namespace already in use
rindolf Flickr::Two
mofino jfroebe, since your API is an improvement over Simple
nadim mst: lol
kent\n Flickr::API::SucksLess
rindolf jfroebe: you can call it Flickr::Jfroebey
jfroebe mofino, I think you might be right.
kent\n Flicker::API::FAFINAFA
jfroebe rindolf - lol ... my head is already big enough lol
mofino jfroebe, i mean, if that's what it is, it shows a clear progression from Simple
kent\n ( Flicker::API::FAFINAFA is not a flickr api )
nadim Flicker::rekcilF
rindolf jfroebe: I have released Spork::Shlomify with some random changes to Spork that I needed.
rindolf Well, I use subclassing to implement them.
jfroebe lmao
apeiron You forked that spork!
rindolf apeiron: it's not a fork! It's an improved spork!
rindolf Flickr::Bettr
kent\n Flickr::Strobe
kent\n ( its a bit brighter )
kent\n Flickr::OnAndOff
nadim Flickr::FullBeam
nadim Flickr::FullLights
kent\n Flickr::2009
mofino Flickr::Meat
kent\n that way somebody will be able to invent something better next year
kent\n and call it Flickr::2010
mofino Flickr::rkcilF
mofino Flickr::Barbie::Edition
mofino Flickr::Nuts
nadim Flickr::3b0f3a25d07e5d9dbdf98db15ee70410 (and no, it is not random)
mofino Flickr::911wasaninsidejob
nadim hehe
mofino haha
jfroebe thanks guys :) I've requested the Flickr::Simple2 namespace via pause
Channel #perl
Network Freenode
Tagline "A rose by any other name…" (and a little on XML::Simple)

Whatever

Display

Mel|work Yaakov: icke==troll?
rindolf Mel|work: no, he's not a troll.
Yaakov Mel|work: No, icke is just... enthusiastic about "channel purity"
Mel|work k....
* rindolf hates when people abuse the == operator in English for "contained in"
apeiron rindolf, "icke contained in troll"? That's not what Mel|work meant.
tarbo sure he did, if you make troll a set of users
rindolf apeiron: what he meant by icke == troll is that icke belongs to the set of trolls.
rindolf apeiron: not that every troll in the world is icke.
apeiron rindolf, No, he was asking if icke is a troll.
icke $icke->isa('Troll');
icke (false)
rindolf apeiron: is-a means "contained in the set of objects with the property of"
rindolf apeiron: mathematically speaking.
apeiron rindolf, Okay, so you're assigning the mathematical meaning of == to its usage in a *perl* channel?
apeiron rindolf, Now who's fiddling with meanings, eh?
rindolf apeiron: whatever.
apeiron 'whatever' is what those who have lost their argument say.
rindolf apeiron: whatever.
apeiron ^ QED
rindolf apeiron: whatever.
PerlJam apeiron: I thought that's what people who don't care say.
apeiron PerlJam, If one doesn't care, they wouldn't respond.
PerlJam apeiron: whatever
PerlJam ;-)
rindolf LOL.
Channel #perl
Network Freenode
Tagline Whatever

Dishsort

Display

rindolf My father and I joked about sorting the dishes in the dishwasher.
rindolf My father said: "If you won't sort the dishwasher, the dishwasher won't be sorted."
Loci64 rindolf: bubble sort *g*
icke dishsort
rindolf Then I said "No, it won't be sorted by me."
rindolf So he said "No, it won't be sorted at all. We will throw the dishwasher."
rindolf "Along with all the dishes."
rindolf Loci64: bubble sort is inefficient.
rindolf Loci64: you should use quicksort or mergesort.
whoppix or bashsort, or heapsort!
icke yeah, but thorough.
rindolf Loci64: or for small values of "N" - insertion sort.
whoppix although I can't remember if those were stable.
rindolf whoppix: what is bashsort?
icke that matters for a dishwasher
EvanCarroll /bin/sort
EvanCarroll duh
Loci64 hehe, but dishwashers usually have medium to large numbers of N ;-) maybe trashsort solves the problem
rindolf EvanCarroll: perldoc -f sort is more portable.
whoppix rindolf, shellsort, not bashsort, sorry :)
rindolf But I'll need to build a robot to use it with the dishes.
icke cshsort
EvanCarroll here must be a trillion sorting algos
EvanCarroll and 9/10 of them are total shit
EvanCarroll and inferior in every way.
EvanCarroll This sorting algorithem is coveted if you KNOW that only one value is out of perfect order and it sits in the second to last position of the input.
Channel #perl
Network Freenode
Tagline dishsort

Good scalar localtime()

Display

rindolf Good localtime(), #perl!
sproingie rindolf: good scalar localtime to you
rindolf sproingie: oooh! scalar context.
sproingie well i didn't want to make ya parse it
rindolf sproingie: it is implied however.
sproingie (er unparse it)
rindolf Good strftime($format, localtime()).
rindolf But better use DateTime.
rindolf Or something.
icke sub good ($$$) { ... }
rindolf icke: yes.
rindolf eval: good localtime(), #perl!
buubot3 rindolf: ERROR: syntax error at (eval 21) line 1, near "good localtime"
Altreus eval: 'hi rindolf how is your '.scalar localtime.'?'
buubot3 Altreus: hi rindolf how is your Tue Mar 10 15:43:13 2009?
rindolf Altreus: how is my Tuesday, 10-March-2009?
rindolf Altreus: or do you mean down right to that exact second.
Altreus rindolf: I gave you as much information as I could for you to use as you see fit.
Altreus If you don't need it all you can just take the date
Channel #perl
Network Freenode
Tagline Good scalar localtime()

The Module::Build Saga

Display

rindolf The Module::Build saga goes on!
mst Module::Build isn't a saga, it's a fucking horror series
Channel #perl
Network Freenode
Tagline Module::Build

How to say IP?

Display

Altreus Hmm I should have checked the licence on Inline::Lua
dwu orochi_: licence it and people will steal it anyway :)
Yaakov Well, you can try to steal that, but it would be like a mouse stealing a battle tank.
dwu Altreus: you mean acronym?
Altreus Perl license
Altreus dwu: n
Altreus IP is not pronounced as a word so it is not an acronym.
Altreus At least not in the original meaning of the word: which is the only meaning given by a majority of dictionaries
Yaakov Yes, it's not a true acronym, though the word now has that baggage.
orochi_ Ip Ip Ip!
Altreus ni!
* orochi_ runs away
dwu Altreus: i say ip... :)
Yaakov IP would be an abbreviation.
dwu also, initials? but isms are cool.
rindolf I see Eye.Pea.
dwu oooh yes.
dwu and dead people?
* rindolf is listening to Sesame Street - Yip Yip Martians
Altreus dwu: Intent is involved; just because you say it as a word does not mean it was meant to be said as a word ;)
Altreus wikipedia knows about it, and has like a million sauces cited
Altreus mostly dictionaries
Yaakov YAPC is an acronymic moniker! BE THERE
dwu Altreus: well absolutement :) also, yumy, i like bernaise.
rindolf I say* Eye.Pea.
dwu hrrrm, the oxford cream dictionary. *nomnomnom*
dwu rindolf: awww.
ne2k__ Eye.Pea.Freely
rindolf dwu: heh
ne2k__ no-one says "ip", everyone says "Eye Pea"
Altreus Ip address
dwu rindolf: can you just -say- dead people, for the heck of it?
rindolf Yip address
dwu ne2k__: provably false. i need an ip address, stat!
Altreus yiff address?
rindolf dwu: I say dead people.
dwu <3 rindolf
rindolf dwu: I say.
dwu you do :)
Altreus I say I say I say
rindolf dwu: :-)
ne2k__ dwu: you can't stat an ip address, only a file
Channel #perl
Network Freenode
Tagline How to say IP?

And you coll yourself a programmer

Display

rindolf Su-Shee: it's VBA, not VB.
rindolf Su-Shee: completely different beast.
rindolf Su-Shee: and much saner.
rindolf Su-Shee: I don't know VB.
rindolf Never had the need.
c0bra _Fauchi95_: alright
fuzzix rindolf: And you coll yourself a programmer...
rindolf And hopefully will never have the need.
rindolf fuzzix: call
fuzzix rindolf: Good coll. Dvorak's tough after spending the day on qwerty :)
rindolf fuzzix: coll again?
rindolf Hmm... there is such a word called "coll".
fuzzix rindolf: That one was a joke :)
c0bra why stop now? he's on a roll
rindolf Wonder what it means.
rindolf fuzzix: ah.
simcop2387 c0bra: a rick roll?
rindolf rall
c0bra a coll roll
rindolf roll the ball.
rindolf rall the boll.
rindolf And go to the Super-bowl.
c0bra Coll\, v. t. [OF. coler, fr. L. collum neck.] To embrace.
rindolf "Rolling is hard. Let's go to the mall."
Channel #perl
Network Freenode
Tagline You coll yourself a programmer

Chuck Norris as a Refactorer

Display

Su-Shee 2010 is planned more or less as a refactoring year.
DrForr_ A whole *year*? What physical plane of existence do you reside on?
Su-Shee DrForr_: there's also bugs to fix and systems to care for and things like that. it's not that we're locked into the closet and a year later a new, shiny product is released. ;)
DrForr_ Closet optional.
Su-Shee I'm not a wonderwoman refactoring half a million lines of perl in a week, sorry. :)
rindolf Su-Shee: Chuck Norris refactors 10 millions lines of perl before lunch.
Su-Shee rindolf: hm. that's the reason.. I'm not as hairy as chuck norris and I don't have a beard...
rindolf Su-Shee: ah.
rindolf Su-Shee: Chuck Norris also wrote a complete Perl 6 implementation.
Su-Shee rindolf: I heard, he already wrote Perl 7.
rindolf Su-Shee: yes.
* rindolf wants to be as awesome as Chuck when he grows up.
Su-Shee rindolf: I envy you. I'll never be as awesome without a beard.
rindolf Su-Shee: heh.
rindolf Su-Shee: it doesn't matter if you're rigid on the outside as long as you're rigid on the inside.
Su-Shee chuck norris doesn't make mistakes.
rindolf Su-Shee: Chuck Norris corrects God.
Su-Shee rindolf: I'll apply as his secretary.
rindolf Su-Shee: as Chuck's?
Su-Shee rindolf: yes.
rindolf Su-Shee: OK.
rindolf Chuck Norris doesn't code. When he sits next to a computer, it just does whatever he wants.
Su-Shee I'll tell my boss tomorrow. Chuck is who he wants.
rindolf Su-Shee: Chuck Norris is his own boss.
rindolf Su-Shee: if you hire him, he'll tell your boss what to do.
Su-Shee good point.
Channel #perl
Network Freenode
Tagline Becoming as awesome as Chuck Norris is

The Voices Tell Me So.

Display

integral hi perly!
perlygatekeeper hey Chris, hey integral
perlygatekeeper dabreegster, don't know you do I but HEY anyway
perlygatekeeper what's been up?
dabreegster Ignore me, fine.
* dabreegster goes in a corner
Chris62vw dabreegster is the man, man
dabreegster Ah, that's better.
rindolf perlygatekeeper: yo, yo, yo, dude!
perlygatekeeper rindolf!!
rindolf perlygatekeeper: what's up?
perlygatekeeper hmmm
perlygatekeeper not much
perlygatekeeper you?
rindolf perlygatekeeper: fine. Let me recall what I said to ezra.
rindolf perlygatekeeper: I'm fine. Got into a few flamewars, and escaped alive to tell the tale.
rindolf perlygatekeeper: worked a bit on my story "The Human Hacking Field Guide".
rindolf perlygatekeeper: (which, BTW, you appear there (as your IRC nick at least)
rindolf perlygatekeeper: and now working on the Computer Graphics section of my homepage.
perlygatekeeper rindolf, what the hell?
rindolf perlygatekeeper: excuse me?
perlygatekeeper rindolf was that someone pretending to be me?
perlygatekeeper I never said those things
rindolf perlygatekeeper: it's a fictitious story.
rindolf perlygatekeeper: relax.
dabreegster perlygatekeeper: or you could be the imposter right now... or maybe just schizophrenic.
rindolf dabreegster: MPDed not schizophrenic.
rindolf dabreegster: schizophrenia is not Multi-Persona-Disordered.
b0at perlygatekeeper: It's fan fiction from your fan!
dabreegster rindolf: what's the difference?
rindolf dabreegster: MPD is when there are several personalities living inside your brain.
rindolf dabreegster: in schizophrenia, you have one I-ness, but hear voices, hallucinate and stuff.
dabreegster rindolf: Ah. Why is it considered a disorder? MPD could be quite useful... One would have different perspectives on a subject.
perlygatekeeper where's beth, she'll know it's me
integral But how will we know it's beth?!
dabreegster rindolf: Oh, I have MPD then, not schizophrenia. I don't hallucinate.
dabreegster integral: WE DON'T!
b0at I don't hallucinate, but my other personality does.
dabreegster How do I know all of you exist? Am I just a figment of my own imagination?
dabreegster b0at: Interesting...
rindolf dabreegster: Julian Jaynes describes schizophrenia very well in his "The Origins of Consciousness during the Breakdown of the Bicameral Mind book".
integral nono, you're all just figments of _lilo_'s imagination
dabreegster rindolf: I'll check it out
b0at he wishes
dabreegster integral: and you?
perlygatekeeper the voices tell me if it's really beth or not
dabreegster perlygatekeeper: The voices tell me everything.
dabreegster Wait, I do have the Voices. Maybe I have MPD _and_ schizophrenia.
b0at Ah, but the question is: do the Voices have voices?
rindolf dabreegster: http://en.wikipedia.org/wiki/The_Origin_of_Consciousness_in_the_Breakdown_of_the_Bicameral_Mind
b0at And if so, is it your own voice?
dabreegster b0at: And do the voices of the voices have voices?
b0at That's just going too far.
dkr don't worry, those are angels, invest in tarot cards and you will be able to understand them
dabreegster b0at: and if it's not, then could it be the voice of........ integral? rindolf? or.... buu!
b0at buu has other plans for our empty skulls
dabreegster b0at: and if they do, then what do the voices of the voices of the voices of the Voices sound like?
integral *sob* it's the cabbages. The cabbages keep telling me to do things
Botje really? most of the time it's the socks that tell me stuff
dabreegster integral: The lawn gnomes tell me. They're........everywhere...*sniffle*
integral *blubber* the socks are worse, there's moths living in them
dabreegster The lawn gnomes tell me to stay away from Life. They force me to write poetry.
dabreegster integral: *whispering* are the _moths_ the Voices? or the voices of the Voices? or the voices of the voices of the Voices?
* dabreegster goes back to reading
integral *looks furtively around for moths*
Channel #perl
Network Freenode
Tagline The voices told me so.

Hacking someone into a hacker

Display

rindolf Su-Shee: I'm not good in detecting sarcasm over IRC.
rindolf But naturally sometimes say sarcastic things myself.
* Patterner cuts his Nerd Membership Card in small pieces
Su-Shee rindolf: that's why god gave us the ;) smiley ;)
rindolf Su-Shee: not God, but a Russian enterpreneur who trademarked it.
* rindolf wishes we were all speaking in XML.
rindolf J/K.
rindolf Even Perl is not good enough for human communication.
Su-Shee rindolf: are you really still that nerdy in your age?
rindolf Su-Shee: I guess.
rindolf Su-Shee: nerdy or geeky?
rindolf Su-Shee: I.e: technologically inclined or having no social life?
* rindolf is both though.
Su-Shee rindolf: so let's called it nerky. ;)
rindolf But hopefully once I get a gf, I'll be less of a Nerd.
Su-Shee rindolf: what makes you think that?
rindolf Su-Shee: I'll go out.
rindolf Su-Shee: and stuff.
rindolf Su-Shee: I also consider to start studying in Tel Aviv Uni.
Su-Shee rindolf: and why does that require a girl friend?
rindolf English/Hebrew/etc. or something.
rindolf Lots of girls there. :-)
rindolf Su-Shee: going out?
Su-Shee those are language-skills humanities-department girls. ;)
Su-Shee rindolf: yes.
rindolf Su-Shee: I like language geeks.
rindolf Thing is I think my knowledge of English and Hebrew is too superficial.
rindolf And I lack the discipline to correct it on my own.
Su-Shee rindolf: language departments like English are usually exactly _not_ geek-ish departments.
rindolf Su-Shee: you mean they are not tech-savvy?
rindolf But you can be an English geek.
Su-Shee rindolf: they're not even language geeks usually.
rindolf Or a hacker of English.
rindolf Su-Shee: really?
rindolf How sad.
Su-Shee rindolf: you know some people just want to have good language skills and read books and communicate.
peterrooney a good hacker will know at least three languages.
rindolf Well, maybe it's different in Israel.
rindolf peterrooney: human ones, right?
peterrooney rindolf: at least one of them should be human
rindolf I know English, Hebrew, studied Literary Arabic for 6 years and forgot most of it, and have some rudimentary French.
rindolf peterrooney: ok.
rindolf peterrooney: I think ever hacker should know Perl, Python, Haskell, C, Scheme/Lisp and Bash.
rindolf And HTML/XHTML+CSS+etc.
Su-Shee thank god I'm no hacker. ;)
* rindolf hacks Su-Shee into a hacker.
Su-Shee rindolf: no you won't. one can perfectly well do nice tech stuff without degrading into someone he/she's not.
rindolf Su-Shee: don't you like programming ? Didn't you contribute to FOSS?
Su-Shee rindolf: aaand? I can do that without declaring myself as hacker, nerd, geek or whatever.
rindolf Su-Shee: OK.
rindolf Su-Shee: but it still makes you a hacker.
Su-Shee rindolf: trust me, I'm very much not a hacker. really. honest to god not.
* rindolf gives a blue badge of honour saying "Hacker" to Su-Shee
rindolf Su-Shee: too late, you're one of us now! ;-)
rindolf "Resistance is futile."
Channel #perl
Network Freenode
Tagline Hacking someone into a hacker

Selling Perl Documentation at Bargain Prices

Display

FreakGuard icke, how to start REPL?
icke FreakGuard: looked in the docs?
FreakGuard icke, no.
icke you got to load it from CPAN
FreakGuard icke, yeah, I've installed it.
* Altreus sells FreakGuard perl docs at a reasonable price only $9.99 each
icke perldoc Devel::REPL is the direct way to info then
* Altreus wrings his hands and cackles
FreakGuard icke, thanks :P
* rindolf bests Altreus' bargain by 1 cent.
rindolf Reminds me of what I learned in Game Theory.
* Altreus offers free delivery
* rindolf allows free download
rindolf Of course quality > price.
* rindolf offers a deluxe edition of the Perl documentation for 1,000 USD plus shipping and handling.
huf diamond-encrusted?
rindolf See http://perldoc.perl.org/ for a preview.
rindolf huf: natural diamonds, too.
rindolf huf: Canadian diamonds.
huf well, if <> is natural... :)
rindolf huf: heh.
rindolf huf: not this kind of diamond.
* Altreus compresses if () under several million tonnes of rock for a few aeons
rindolf I also give free spaceships - <=>
infrared heh
rindolf Diamonds are heresy! We need PEARLs!
rindolf /usr/bin/PEARL
Altreus f00li5h: Seems like it!
FreakGuard I prefer other gems :-)
Altreus I suggested to Think Geek that they should do Perl necklaces but they didn't
rindolf FreakGuard: Ruby gems?
FreakGuard rindolf, correct.
Altreus The rare PHP
Altreus Darling I got you a PHP wedding ring
Altreus oh it broke
rindolf Altreus: as PHP tends to.
* rindolf laughts maniacally.
Altreus you maniac!
Channel #perl
Network Freenode
Tagline Given enough suckers, all profits become shallow

The ApeironPhone

Display

Enl apeiron: because I write client side (Provider) which sends push messages to the phone and checks for new mail in perl
rindolf Enl: a cellphone?
apeiron No, a rotary POTS phone that's capable of receiving email, rindolf.
Enl rindolf: iphone, yep
rindolf apeiron: :-) apeiron++
rindolf apeiron: I want a phone like that!
rindolf apeiron: do you sell them?
apeiron rindolf, Yes, and I have some oceanfront property for you, too.
rindolf apeiron: would you accept some of my copious gold bars in return?
apeiron rindolf, No. I only deal in Latinum!
rindolf apeiron: Latinum.
rindolf apeiron: gold-pressed Latinum?
apeiron yes.
rindolf apeiron: I only have silver-pressed Latinum.
Enl rindolf: get an iPhone, lol
rindolf apeiron: would you accept LeoNerd and nanonyme as substitutes ? You can sell them for mucho Latinum.
apeiron heh
rindolf Enl: iPhones are worthless.
* rindolf conspires to steal the ApeironPhones.
rindolf I didn't say I was honest.
* apeiron jealously guards his G1
Enl rindolf: now really
rindolf Enl: you should get an ApeironPhone too.
rindolf Enl: chicks love it.
apeiron what
Enl rindolf: pff, chicks dont matter
rindolf I would kill for an ApeironPhone!
Su-Shee ahaem?
* rindolf kills Su-Shee and takes her ApeironPhone.
apeiron ...
apeiron wtf.
go|dfish hahaha
* rindolf uses his RindolfMindReading™ to see who else has an ApeironPhone.
apeiron Put down the acid, Shlomi. o.o
huf like that'll help
huf he's still got ~8 hrs on it
Su-Shee rindolf: I have an apeiron-phone?
Su-Shee where did buu go anyway?
rindolf Su-Shee: you had one.
rindolf Su-Shee: before you died.
Channel #perl
Network Freenode
Tagline The ApeironPhone - you know you want it

use Zaba

Display

rindolf Su-Shee: "I always wonder why the people I hang out with are so pedantic. And then I remember: because they are so pedantic." -- a Perl-ILer. ;-)
Zaba rindolf, because they use warnings
* rindolf adds "use Zaba;" to his code.
Zaba oh no, I'm being used!
* rindolf adds "abuse Zaba;" to his code.
rindolf Next: "misuse Zaba;"
Zaba ouch!
Channel #perl
Network Freenode
Tagline use Zaba

She can smoke…

Display

rindolf She's a hot chick.
rindolf But she smokes.
go|dfish She can smoke as long as she's smokin'.
Channel #perlcafe
Network Freenode
Tagline She can smoke…

iCanHazPad?

Display

→johnjohn01 has joined #perl
johnjohn101 when will I be able to write a perl gui that will work on the ipad?
rindolf johnjohn101: iPad?
rindolf johnjohn101: was it released yet?
rindolf johnjohn101: I think there are Perl bindings for Cocoa/Carbon/etc.
johnjohn101 today.. Just getting sucked by the hype
rindolf johnjohn101: ah.
rindolf johnjohn101: I'm incredibly suspicious of Apple.
johnjohn101 why's that?
* Caelum will wait for the cheap ipad knockoff that runs Android and can multitask
rindolf johnjohn101: http://www.shlomifish.org/open-source/anti/apple/
rindolf 133 links and going strong.
* rindolf thinks he has a link on his homepage or blogs for every occasion.
johnjohn101 they definitely know how to hype their new products. I get so suspicious of the hype. Nothing ever lives up to that type of billing
rindolf johnjohn101: yes, I'm suspicious of hype too.
gooshie rindolf the new apple maxipad is out today.. leave it to apple to create a new device with all the cost of a high end laptop.. the performance of a netbook and the interface of a cellphone
Caelum gooshie: and no multitasking
rindolf gooshie: heh.
rindolf gooshie++
johnjohn101 will google be able to match it?
johnjohn101 anytime soon?
rindolf Some technologies were not hyped and yet became very popular - UNIX, C, HTML.
Caelum there's no amazingly complicated technology involved
Caelum it's just a big iphone
claes_ nicely packaged
johnjohn101 drop it once and it's unusable?
gooshie ...if they just made a cover to protect the screen.. and then maybe because they had like a cover the inside could be the screen and the other part could then be a keyboard!.. that would be cool!
johnjohn101 gooshie: good thing you have an open mind about the product!!
* gooshie d:-/
gooshie ..the new apple maxipad... when your laptop is too big.. your iphone is too small and your wallet is too full.
Channel #perl
Network Freenode
Tagline iCanHazPad?

Web Development Frameworks

Display

markl_ so while i'm on the subject, is there a good perl HTML framework similar to what CakePHP is to PHP ?
markl_ like an MVC style environment
markl_ so i'm wondering if mason is "state of the art" or if there are other tools to consider these days :)
DrForr Catalyst.
markl_ catalyst ok, cool ty
rindolf markl_: there are plenty of other web-devel frameworks.
rindolf perlbot: web frameworks
perlbot rindolf: CGI-Application (and Titanium), CGI-Application-Plus, CGI-Builder, CGI-Prototype, Jifty, Catalyst (and Reaction), Mojo, SweetPea, Dancer, Gantry, AxKit, WebGUI
markl_ rindolf: hmm, way too many it would appear :)
rindolf markl_: yeah.
markl_ what are the easiest ones for people good with perl but not HTML/CSS/AJAX experts ?
rindolf markl_: not that Ruby or PHP have fewer.
markl_ or the most widely adopted one ?
rindolf markl_: the most popular appears to be Catalyst.
markl_ catalyst seems to at least have a book :)
rindolf markl_: it has several books.
rindolf markl_: I worked a bit with Mojolicious, and it wasn't too bad, but it reinvents a lot of wheels.
rindolf Due to its philosophy.
rindolf markl_: I also did some Catalyst projects.
rindolf Catalyst is a bit complicated.
rindolf sawyer: can you comment about Dancer?
sawyer Dancer is a lightweight web framework, it aims to make website development easy and rapid
Su-Shee like all the other web frameworks :)
sawyer for complex or extensive websites, i recommend Catalyst
sawyer but for smaller or not-as-complex website, Dancer is what i use
markl_ ok ty
* Su-Shee wants the one which makes it hard, complicated and difficult ;)
sawyer Su-Shee, true :)
Channel #perl
Network Freenode
Tagline Web Development Frameworks

Slippers and Perl

Display

mst frikinz: but you're welcome to ignore us, just come back for your "I told you so" when the penny finally drops :D
rindolf buu: define penny finally drops
rindolf buubot: define penny finally drops
buubot rindolf: penny n 1: a fractional monetary unit of Ireland and the United Kingdom; equal to one hundredth of a pound 2: a coin worth one-hundredth of the value of the basic unit [syn: {cent}, {centime}] [also: {pence} (pl)]
dngor frikinz: Reflex is still pretty raw, but it's eventy without so much loopy.
rindolf In Hebrew we say "The phone token has fallen" instead of "the penny finally drops".
dngor Is that related to "the other shoe has dropped"?
rindolf dngor: well, it means the same thing as the English expression - "I finally got to the bottom of it."
rindolf Or understood it.
dngor Oh, they're completely different idioms.
* mst beats dngor with a slipper
rindolf mst: :-D
Su-Shee kinky.
mst Su-Shee: wrt the topic ["Su-Shee wants the web-development framework that makes web-development hard, difficult and complicated"], it's called Maypole :)
rindolf mst: heh.
rindolf mst: yes, I can imagine that about Maypole.
Su-Shee mst, avar: thank you so much. ;)
Su-Shee please mail the sourcecode to rindolf who put it in the topic ;)
rindolf Su-Shee: I can CPAN it.
Su-Shee the topic?
mutewit I have a string and am looking for a quick way to extract all 5-character slices out of it.
rindolf Su-Shee: :-)
rindolf IRC-Freenode-Perl-Topic-SuShee-WebDevelFrameworks-v0.0.1.tar.gz
mutewit For eg. 'abcdef' returns 'abcde', 'bcdef'
mutewit Any suggestions?
rindolf mutewit: use subst
rindolf mutewit: use substr
rindolf mutewit: with a map
rindolf eval: my $long_str = "0123456789abcdefgh"; [map { substr($long_s, $_, $_+5 } (0 .. length($long_s)-5)]
buubot rindolf: ERROR: syntax error at (eval 36) line 1, at EOF
rindolf eval: my $long_str = "0123456789abcdefgh"; [map { substr($long_s, $_, $_+5) } (0 .. length($long_s)-5)]
buubot rindolf: []
mutewit rindolf: Awesome.
rindolf eval: my $long_s = "0123456789abcdefgh"; [map { substr($long_s, $_, $_+5) } (0 .. length($long_s)-5)]
buubot rindolf: ["01234",123456,2345678,"3456789a","456789abc","56789abcde","6789abcdefg","789abcdefgh","89abcdefgh","9abcdefgh","abcdefgh","bcdefgh","cdefgh","defgh"]
rindolf Thrid time the charm!
mst ... thrid
* rindolf hits buubot with a big strict pragma.
* mst turns the slipper on rindolf
rindolf mst: yes, my typing sucks today.
rindolf But f**k it! IRC is not exactly the declaration of independence.
pragma_ ow!
rindolf pragma_: pardon?
* rindolf hits pragma_ with mst's slipper so it will really hurt.
pragma_ why are you hitting buubot with me?
rindolf pragma_: the strict pragma.
rindolf pragma_: not you.
rindolf perlbot: strict
perlbot rindolf: Perl strictures - http://perldoc.perl.org/strict.html
rindolf pragma_: ^^^
rindolf pragma_: we call the lowercase modules pragmata (sp?) in Perl.
rindolf http://en.wiktionary.org/wiki/Special:Search?search=pragmata - hmm....
rindolf I thought pragmata was a valid plural of pragma.
dngor ow? ow!
mutewit rindolf: Are you sure that generates only strings of length 5?
rindolf mutewit: well, you need to watch from fencepost errors.
mst mutewit: hey, he got you half way there
rindolf mutewit: oh wait.
mst mutewit: how about you read p3rl.org/substr and p3rl.org/map and have a go yourself
rindolf mutewit: yes , you need substr($long_s, $_, 5)
mst mutewit: this is a help-you-to-learn channel
mst mutewit: not a "write your code for you" channel
rindolf mutewit: and beware from fencepost errors.
rindolf like substr($long_s , 1000, 5)
rindolf Because that will be ""
rindolf Or a 4 chars length.
mutewit rindolf: I wanted the length argument to be 5 :p
mutewit mst: I understand, I just missed the $_ + 5 issue.
mst mutewit: right. what I'm saying is, you should have experimented
rindolf mutewit: yes, I know.
mst mutewit: then shown us the experiment and said "I can't work out why this is still wrong, here's what I've worked out so far"
mst mutewit: then we can help you learn
mst mutewit: assuming learning to write stuff yourself is what you're aiming for
* rindolf waits for tybalt89 to come up with a funky regex to do it.
mst (if it isn't, please just throw yourself off a cliff or something, kthx ;)
rindolf mst: I think that's the case, no need to preach to mutewit about it.
mutewit mutewit: I did, and figured out the soln. when switching windows.
mst mutewit: aye. I'm just trying to explain how to get the most learning out of us as well as the most working code.
* rindolf sometimes thinks we spend much more IRC volume discussing netiquette than actually suffering from the bad netiquette.
mutewit But by the time I came back to the channel there was a whole page of "preaching".
mutewit I was using a split method with array indexing and it felt too much like a C-approach.
rindolf mutewit: oh, you split the string into chars?
mst yeah, by the time you've done map, join, split, ...
mst you've basically just reimplemented substr badly :)
mutewit rindolf: That's what I was doing, but the map/substr approach is a lot cleaner.
rindolf mutewit: yeah/
rindolf mutewit: split into chars sometimes has some uses.
rindolf mutewit: but this reminds me too much of SICP.
rindolf perlbot: sicp
perlbot rindolf: http://mitpress.mit.edu/sicp/ - "Structure and Interpretation of Computer Programs" - A Classical Text on Programming
rindolf mutewit: see - http://www.shlomifish.org/lecture/Perl/Lightning/Too-Many-Ways/slides/slide13.html
rindolf mutewit: this is how an SICP programmer will implement a simple text processing task.
mutewit SICP, love the book.
mutewit and all the OCaml work this year has given rise to a functional bent of mind
mutewit which is kinda screwing around with my perl code.
rindolf mutewit: yeah.
rindolf mutewit: http://www.shlomifish.org/lecture/Perl/Lightning/Too-Many-Ways/slides/slide12.html - this is the fastest Perl solution.
rindolf At least in speed.
rindolf It can be a little shorter with a regex lookahead, but it's less elegant and slower.
rindolf http://www.shlomifish.org/lecture/Perl/Lightning/Too-Many-Ways/slides/slide9.html - there you go.
rindolf mutewit: did you know how to program before reading SICP?
rindolf I think it's not a good introductory book.
rindolf MIT are going to ditch it in favour of some Python/Robotics curriculum.
mst I think it's only a good introductory book if you know some math and have the brain to follow it
mst it teaches a lot of hard concepts very quickly
Su-Shee mst: from a "I'm from the humanities department" point of view it's managable. it's not easy, but everyone can work with it.
tybalt89 eval: $_ = "0123456789abcdefgh"; [ /(?=(.{5}))/g ]
buubot tybalt89: ["01234",12345,23456,34567,45678,56789,"6789a","789ab","89abc","9abcd","abcde","bcdef","cdefg","defgh"]
mutewit rindolf: Yes.
rindolf mutewit: ah. Using what?
rindolf tybalt89++ # Up for the challenge.
mutewit and yes, MIT ditched SICP in favor of a Python-based intro course.
tybalt89 rindolf: I was off in other windows :(
tybalt89 mutewit: ^^ for 5 char slices
rindolf mutewit: don't use it if you want future generations to understand it.
* rindolf slaps tybalt89 with mst's slipper for golfing mutewit's solution and telling him it's a good idea.
tybalt89 rindolf: that's not golfing, just common simple regex :)
rindolf tybalt89: sigh.
rindolf tybalt89: simple.
rindolf irregular regular expression.
rindolf Maybe use Regexp::Common
mutewit I added in tybalt89's code but commented it for future reference.
mst I'd definitely use the substr approach for real code
mst tybalt89's code is cleverness to prove it can be done; I don't believe he was recommending it
tybalt89 mst: sigh, yes, I am recommending it. It's the clearest solution.
mst tybalt89: I respectfully disagree.
mst I find the substr approach far more obvious
Chazz rindolf, ty. :)
mst but then, I mostly write applications perl rather than scripts, so I only engage in regexp cleverness when actively useful
rindolf tybalt89: look-aheads and look-behinds are dark corners of the Perl not-so-reg-regexes
Yaakov In the context of this particular problem, it's pretty straightforward, but, knowledge of the development/maintenance team(s) would push my choce one way or another.
tybalt89 mst: note it took rindolf three tries, and even then he got it wrong.
rindolf tybalt89: well, I'm not focused now.
mst tybalt89: map substr($str, $_, 5), 0 .. length($str)-5; ?
mst maybe -6
* tybalt89 turns the lens, trying to focus rindolf
rindolf mst: -5
mst but it's hardly difficult; rindolf's just having a day of silly mistakes
rindolf Unit tests!
mst I'd expect him to get it right first time when on form too :)
rindolf Some clear code is hard to get right.
rindolf Doesn't make it less clear.
mst yeah
rindolf Most people will not write a correct binary search at first try.
tybalt89 "maybe -6" is proof of unclearness :)
rindolf But the correct binary search is easy to digest.
mst tybalt89: no, it's proof it's 8pm on a sunday and I'm not particularly awake either
mst but your code just made me go "hang on, WHAT?!"
mst then I had to stop and dissect it
mst -then- I saw what you were doing
rindolf mst++
mst also, the substr approach displays the semantics and the reasoning
mst whereas the regex approach displays, well, line noise, frankly
rindolf mst: why don't we agree to disagree with tybalt89 ?
rindolf mst: so how's the weather? ;-)
Channel #perl
Network Freenode
Tagline Slippers and Perl

Worst Perl Programmer in the World

Display

papertigers is there just a way of importing the global variables in the module from the main script?
anno no
nadim yes
rindolf anno: you can using Exporter
anno depends
nadim but I hope no one will teach you
rindolf nadim: sorry. :-(
anno from the main script?
nadim for what?
rindolf nadim: about the Exporter.
nadim bad boy!
tm604 papertigers: yes. but definitely don't do this: { no strict 'refs'; *{"main::$_"} = sub () { $constant{$_} } foreach keys %constant; }
rindolf nadim: :-(
rindolf papertigers: please design a good API using subroutines and objects.
nadim OK I get it you are all working towards the same goal. making the worst perl developer in the universe
rindolf nadim: yes, someone has to outcompete me.
Khisanth that would be hard
rindolf nadim: I'm tired of being the worst Perl hacker for 5 years straight.
simcop2387 heh
rindolf nadim: it's not easy.
nadim .me hands the black camel to rindolf
rindolf nadim: it involves many commitments.
nadim rindolf: lol, true
Khisanth but at least it explains all the advice you have been giving
nadim hehe
rindolf Khisanth: true. :-)
rindolf LOL.
simcop2387 rindolf: i dunno if anyone actually read the code to Language::Farnsworth they might think otherwise
Khisanth and I am not joking
nadim http://search.cpan.org/dist/Lingua-tlhInganHol-yIghun/ all!
nadim rindolf: when you can program perl like that it will be a good day to die
rindolf nadim: Klingon?
nadim right
simcop2387 nadim++
rindolf nadim: heh, nice.
squeeks klingon? http://search.cpan.org/~jwalt/Acme-Lingua-NIGERIAN-1.0.0/NIGERIAN.pm blah.
shorten squeeks's url is at http://xrl.us/bhg9bo
rindolf nadim: I'll recommend it to someone so he can outcompete me.
* rindolf rubs his hands with an evil grin on his face.
Khisanth nadim: that doesn't seem to be using the correct font
nadim the module is impressing (Damian is no joke) even the documentation is great
rindolf nadim: we've got a plan!
* nadim hides
* mst dearly loves Damian's code
mst but I really do wish it was all in the Acme:: namespace where it belongs
rindolf mst: heh.
nadim I like his API's. very difficult to find something that is not complete and well thought
rindolf nadim: yes, but he tends to neglect them and then they accumulate bugs.
nadim I could list ten other names here
nadim Ingy!
rindolf nadim: heh.
nadim oops, I tried not to :)
mst nadim: IO::All
mst nadim: not *everything* ingy writes needs to be Acme
mst though, yes, quite a bit of it :D
nadim mst: I didn't mean acme. I think Ingy has a lot of great ideas.
mst oh, you're talking about maintainership
nadim yes
mst yeah, why do you think I got so good at giving my modules away?
nadim what's your secret?
tm604 ingy was responsible for jemplate, I think - still one of my favourites.
mst nadim: first you give 'em commit bits, then you give 'em co-maint, then when they're not looking you make a run for it.
* nadim makes a mental note
Channel #perl
Network Freenode
Tagline World's Worst Perl Programmer (5 years straight)

One Moose Per Child

Display

rindolf My Moose-based modules emit strange errors when ran under Devel::Cover . /me is a sad kitten.
buu When my moose emit things I begin to worry.
Su-Shee I don't even have a moose.
Su-Shee but I go to Ikea sometimes!
rindolf "I want a Moose!"
* rindolf buys a Moose for Su-Shee
rindolf One Moose Per Child.
buu A moose in every.. editor?
Su-Shee I'll have to put it in the living room.
rindolf If we perldoc -f fork a Moose-based program do we get two Meese.
rindolf Su-Shee: what if it's a Chocolate Moose?
Su-Shee now it's not the elephant in the room noone's talking about, it's the moose.
Su-Shee rindolf: real size? living room.
anno Tycho de Brahe had a moose free running in his castle Unraniborg. he found a vat of beer, drank it, fell down a stair and had to be killed.
Su-Shee hm, I could make a nice shower gel with moose milk powder and sell it exclusively to perl programmers.
rindolf anno: the astronomer?
anno yes
rindolf anno: ah, really?
Su-Shee anno: I don't have a castle.
anno few do
Su-Shee indeed.
Su-Shee wise anno.
rindolf One Castle Per Child!
Su-Shee when I do my moose presentation, I'll rename myself to Moo-Shee.
rindolf Su-Shee: and rent a Castle.
Su-Shee good idea. on company's expenses. ;)
rindolf Su-Shee: heh.
Su-Shee anno: wanna come? I own Schloss Charlottenburg now. ;)
rindolf http://en.wikipedia.org/wiki/Charlottenburg_Palace - hmmm....
* rindolf contemplates what to do now.
* Su-Shee RESTs.
rindolf Maybe I'll watch more of Red vs. Blue.
rindolf Or I'll rent Schloss Charlottenburg .
rindolf Or something.
rindolf I may want to refactor the other parts of XML-Grammar-Fiction/Screenplay. I can live without testcover.
rindolf But I need my Moose.
Channel #perl
Network Freenode
Tagline One Moose Per Child

Do we have any doctors?

Display

dxtr Do we have any doctors in here?
rindolf dxtr: with Ph.D. or M.D.?
munik I have a PhD in Linguistics!
munik ^ lie
munik :]
dxtr rindolf: I don't care as long as they can treat patients
rindolf dxtr: heh.
munik :o
munik webmd.com
munik might be better than #perl
dxtr rindolf: That question would be fun in combat. "WE NEED A DOCTOR HERE!" - "PH.D OR M.D!?"
Channel #perl
Network Freenode
Tagline Do we have any doctors in here?

It's slower

Display

tm604 eval: my $txt = "this is a test"; my $rslt = substr($txt, 4, length($txt) - 4, undef); [ $txt, $rslt ];
buubot tm604: ["this"," is a test"]
tm604 ^ can anyone suggest a neater way of writing that? thought undef for the 3rd substr parameter would work instead of explicitly giving a length.
rindolf eval: my $txt = "this is a test"; my $rslt = substr($txt, 4, - 4, q{}); [ $txt, $rslt ];
buubot rindolf: ["thistest"," is a "]
tm604 Just surprised that omitting the length for substr isn't the same as passing undef.
anno tm604: sometimes perl makes a difference between "not specified" and undef
ishi tm604: wouldn't regexpr be shorted? I'm not sure what passes as 'neat' in perl :)
ishi shorter, even...
rindolf eval: @s = ("Long string this is a test" =~ m{\A(.{0,6})(.*?)\z}ms); [@s]
buubot rindolf: ["Long s","tring this is a test"]
rindolf tm604: will that work?
tm604 rindolf: thanks, that may be a better option.
rindolf tm604: nice. :-)
Khisanth that would definitely not be "better" ...
ishi it's slower ;)
tm604 hmm, since I'm passing this through SOAP::Lite through a vpn on the other side of the world maybe three times a day, I think I'll have to rewrite this part in highly-efficient x64 assembler with fallback to GPU if available.
sacx nah you need an FPGA
Channel #perl
Network Freenode
Tagline Mission critical fast

Surviving without "a"'s

Display

anno may be neat, but hard to follow
anno not fore real code
Botje qubit: cute.
Botje *anno
Su-Shee how did you get.. ah. ;)
Su-Shee Botje: clean your a so you don't slide to the q ;)
Botje Su-Shee: switch from qwerty to azerty :p
Su-Shee :)
Botje ant i'm distracted
* Su-Shee steals Botje's a while he's distracted anyway...
Botje give th.t b.ck!!
Su-Shee lAlAlAlaaaaah! :)
Botje how will i cope without .n . key!
DrForr "h".chr(ord('b')-1)."t"...
anno 4in't th4t good enough
Su-Shee *hehe* ;)
Su-Shee take anno's. ;)
mst time for 4n 4cme module!
Su-Shee god what have I done.. ;)
DrForr lipogrammatical perl.
Su-Shee is that the opposite of lowfat c?
DrForr (lipograms are works with one letter not used...)
Su-Shee ah. of course. it's leipogramm in german..
anno hmm... lipos - fat, lipein - lack
anno ah, leipein
Channel #perl
Network Freenode
Tagline Surviving without the letter "a".

What would your nickname imply

Display

fedoragirl wait, people use binary packages in freebsd?
asarch fedoragirl, pkg_add -rv <package_name>
fedoragirl I thought everyone compiled from source manually or from ports
fedoragirl :(
asarch No, not any more
fedoragirl I knew it was possible
fedoragirl I just didn't realize anyone would actually do that
fedoragirl I thought it was a gimmick
EdwardIII those wacky devil worshipers over at freebsd
fedoragirl it's funny because my roomate is into demonology
fedoragirl and she actually uses fedora
fedoragirl while I, for the most part, use freebsd or debian
EdwardIII yet your nickname would imply otherwise
fedoragirl my nickname implies a lot of things
EdwardIII bsdgirl would just attract far too much attention
Su-Shee EdwardIII: thanking you for pointing out the obvious. I think, noone would have noticed otherwise.
EdwardIII come to mention it maybe i'll take that nickname arf arf
fedoragirl bsdgirl is actually taken
fedoragirl and I really should find a new one
MorgyN hats <3
rindolf -NickServ- debiangirl is not registered.
Su-Shee man, lucky for us women, there more distributions out there than women in computing. we can ALL have our own nick!
mst Su-Shee++ # roflmao
rindolf Su-Shee: heh.
Su-Shee yggdrasilgirl, slackgirl, fromscratchgirl .. imagine the possibilities.
EdwardIII slackboy sounds pretty sexy
Channel #perl
Network Freenode
Tagline What would your nickname imply

The browser for the social web

Display

rindolf LumberCartel: hi, what's up? Long time.
LumberCartel Hi rindolf. Yeah, it has been quite some time. I've been very busy setting up and supporting networks, and creating interactive web sites (written in Perl, using PostgreSQL for the database; good stuff like that). How are you?
rindolf LumberCartel: I have a job.
LumberCartel rindolf: Congratulations! What are you doing for work?
rindolf LumberCartel: I'm doing Perl+Catlayst work for a Tel Aviv based startup.
LumberCartel rindolf: Very nice!
rindolf LumberCartel: and been working on Freecell Solver ( http://fc-solve.berlios.de/ ) and http://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/
rindolf I converted the Black Hole Solitaire solver to C and it is now running faster, so I ran it on the first 1 million PySolFC deals.
rindolf About 86% of them are solvable.
LumberCartel Freecell solver? What are you trying to do? Make employees feel even more bored at their already-so-boring-that-they-play-Freecell jobs? Heheh.
rindolf LumberCartel: they should learn programming and help me with Freecell Solver. Then they won't be bored.
LumberCartel heheh.
* rindolf is going to delete ~/.flock/ - useless piece of sh*t.
LumberCartel Isn't Flock that thing that spun off from Netscape?
rindolf LumberCartel: Flock is the browser for the social web.
LumberCartel Yeah, that's the one.
rindolf LumberCartel: only I found it to be the unsocial browser .
[vlad] social web?
LumberCartel A handful of my customers still use Netscape 9. They tried Flock, and hated it.
LumberCartel Or is it Netscape 8? Ah, I don't care.
LumberCartel Most of my clients use Opera or Firefox these days.
rindolf LumberCartel: Netscape 9...
* LumberCartel laughs in appreciation for the version of Netscape.
Channel #perl
Network Freenode
Tagline The browser for the social web

Revision Numbers

Display

rindolf jawnsy: no version numbers of what?
jawnsy rindolf: version numbers for your documentation stuff. like a way to download the web site as a tarball, with a version number (maybe even a date)
rindolf jawnsy: ah.
rindolf jawnsy: I'm using Subversion for it.
rindolf jawnsy: I can start making releases with version numbers.
tag subversion revision numbers are not the same as version numbers, and typically shouldn't be used to source version numbers.
tag unless you don't care that the version number is totally meaningless. In that case, you might as well use a date so it can atleast mean *something*
buu tag: Let's use UUIDS!
tag oh, like git?
tag yeah it's the same
buu "Dude, version 91239213912ASD!@#ASDASDADS!@#!@!" is totally superiour to "124912312ASD1242412FF232"
tag They have no real value, other than the ability to uniquely identify a something
rindolf buu: LOL.
Botje well, git's sha1 sum at least identify a point in time
rindolf tag: I won't use subversion rev numbers.
tag without telling you jack shit about what that something is
buu To be fair, svn numbers increase..
rindolf buu: yes, but an earlier branch can have a later rev number.
rindolf buu: I think Config-IniFiles used CVS revisions as version numbers.
buu rindolf: Uh oh
buu rindolf: I feel the world around me collapsing.
Channel #perl
Network Freenode
Tagline Discussing revision numbers

SOAP

Display

Glanzmann Hello; Is there a perl module that can all a routine with complex typed defined in a wsdl file?
Debolaz Glanzmann: You mean a SOAP client with WSDL support?
Su-Shee wsdl as in soap and wsdl? then there is SOAP::WSDL.
Glanzmann Debolaz: Yes, but I need to write a server as well. :-)
Glanzmann Su-Shee: Okay. I'll try that one.
Debolaz Glanzmann: Didn't your mother ever tell you to not use SOAP? :)
Glanzmann Yes, she did. I'm unlucky. I'm forced to use it.
Su-Shee SOAP - you still feel dirty afterwards.
* f00li5h keeps scrubbing but doesn't feel clean
Su-Shee f00li5h: let me send you one of my handmade hemp-sheabutter-almond oil-babassu soaps. ;)
f00li5h sheabutter!
Su-Shee we're disabling our SOAP stuff. it only gets more complicated every day.
Channel #perl
Network Freenode
Tagline SOAP

Eclipsed

Display

kleanchap Is there an IDE for Perl? I need to debug some of my code.
Altreus kleanchap: well there's Padre, but you'll spend as long trying to install it ...
Zaba kleanchap, perl has a debugger: perl -d
Cipher-0 There's always Komodo.
Cipher-0 I use Notepad++, but as people here will attest, I suck.
rindolf perlbot: ide
perlbot rindolf: Padre - padre.perlide.org, Komodo, Eclipse (with EPIC), KDevelop, X/GNU Emacs, gvim, TextMate; see also http://perl.net.au/wiki/Perl_developer_tools and definitely not Xcode
rindolf kleanchap: ^^^
rindolf kleanchap: and it's in the FAQ for crying out loud.
rindolf anno: yes.
kleanchap Zaba, rindolf and Altreus Thnx!
squeeks definitely not Xcode? but.. but... but... I went to all the effort to make http://github.com/squeeks/Xcode-Perl-File-Templates
rindolf kleanchap: I can recommend perl -d as well.
Altreus is perl+eclipse any good?
Altreus oh right I remember
Altreus I wanted a vim plugin for $IDE and none of them worked
squeeks "is...eclipse any good" what
Altreus squeeks: valid question >:(
kent\n eclipse seems to be one of those platforms which make me wonder what processor development has really acheived in the last 20 years.
Altreus it means you can do more shit really really slowly
kent\n "Gosh, I can still type faster than this, something is very wrong in the universe"
thrig "Gosh, eclipse killed the devo database through sheer numbers of DB connections"
kent\n I'd rather spend time programming, not sitting on my hands while eclipse decides it might work today
kent\n If I wanted to sit on my hands, I'd be using C++ ;)
LeoNerd "I hear eclipse is really nice, but I'm still waiting for it to load"
rokoteko "Gosh, eclipse's spell checker got confused between cvs and csv."
Altreus kent\n: swordfights
squeeks kent\n: so you could effectively hit your head against the keyboard
kent\n eclipse: What your momma causes when she stands up
rokoteko written using eclipse's help: sub look_mom_I_can_parse_HTML_with_regex { $_[0] =~ /HTML/ }
squeeks What was that comment that went something along the lines of "I'm a grown up now, I can eat raw cookie dough and parse HTML with regular expressions"
* kent\n thinks he should compile a list of things to bash and make it a factoid. PHP, Eclipse, Microsoft, # there's a start
Channel #perl
Network Freenode
Tagline Eclipsed

Paint of the Bikeshed

Display

rindolf Regarding perlipc.pod : in the beginning of the sentence should I write "N.B. If the signal is fired, something bad happens." or "N.B.: if the signal is fired, something bad happens." ?
talexb With the colon, plz. :)
rindolf talexb: I see.
rindolf talexb: and a lowercase "if"?
talexb No, I think that could be upper case ..
rindolf talexb: I thought so too, but the original was the other way.
talexb it's a sentence unto itself.
rindolf talexb: but it's after a colon.
rindolf talexb: a colon does not start a new sentence.
talexb I dunno. My degree's in Engineering, not English. :(
talexb For me, the colon says, "Thing to the left is the title, thing to the right is the content.
rindolf talexb: OK, thanks anyway.
PerlJam rindolf: I'd capitalize "If"
sdgvf rindolf: how about just 'Note:'
* talexb \o/
PerlJam sdgvf: because he wants to "Note Well:" not just "Note:" :)
Zaba http://en.wikipedia.org/wiki/Colon_(punctuation), 'Use of capitals'
anno Note well: ...
sdgvf most people, even if they know what N.B. stands for, aren't going to note it a whole lot harder than if it just says Note:
rindolf Bikeshedding.
rindolf PerlJam: according to Zaba's wikipedia link, it should not be capitalised.
Su-Shee what it's for nota bene?
PerlJam rindolf: My reading of the article is inconclusive as to what it "should" be. It seems to all depend on who's manual of style you subscribe to.
^Mike\b Su-Shee: yes
Su-Shee if a real sentence which could stand for its own follows, I start with a capital letter. if not, I don't.
talexb By the way: Don't forget what colour you'd like the bike shed painted.
PerlJam talexb: "color" ;->
talexb Pffffffft. ;)
LeoNerd Wait.. we're -painting- the bikeshed now? Nobody ever mentioned paint before...
talexb LeoNerd And you're head of the committee to choose the new COLOUR.
Su-Shee "first we choose the color, then we choose the paint." (from my english teacher at school.. :)
LeoNerd $ perl -MConvert::Color -E'say Convert::Color->new("bikeshed")->as_rgb->rgb' => Unable to parse color name bikeshed at -e line 1
kent\n doesn't the paint type preclude the colour choice? and paint manufacturer?
LeoNerd Hehe.. Now we're arguing about the process of bikeshedding.. Go meta :)
kent\n LeoNerd: you read my mind
kent\n and now I mention that, were' metameta something
talexb Taking things a *little* too literally.
Su-Shee kent\n: it's a lesson to illustrate that color and paint are two different things...
LeoNerd Colour is very complex problem...
LeoNerd A lot of computer-type techies think it's just an RGB triplet, or maybe a triplet in some other space...
talexb And anyway, Google's just patented the primary colours in their logo. But mauve is still available. For good reason.
Su-Shee LeoNerd: luckily, I've learned "color" by actual "paint". ;)
kent\n Yeah, it matters about whats in the proximity of the bikeshed, perceptual colour :(
anno German uses the same word for color and paint, so we need to be taught the difference
anno same with shadow and shade
* LeoNerd takes anno out back to "teach him a lesson"
Su-Shee anno: excellent example. same with freedom and liberty.
* kent\n wonders if the bikeshed has to be colourblind safe
* talexb wonders what colour a duck blind is. Oh. Camoflage. Never mind.
Su-Shee camouflage. you've just introduced french into the discussion ;)
kent\n talexb: what colours are blind ducks painted though?
kent\n wait till we start painting our words, bikeshed synaesthesia sounds like a win.
Channel #perl
Network Freenode
Tagline Which paint do you want your bikeshed?

COBOL and Slices

Display

BinGOs it was someone asking for help with *python* man-in-the-middle script in a Perl channel.
BinGOs persistently
rcsheets why can't they figure out we're all about cobol in here? :(
BinGOs Nah, metallica
dngor rcsheets: They seem to be skipping the IDENTIFICATION DIVISON.
rcsheets dngor: kids these days, always skimming
pcard rcsheets: LOL
dngor I would give him the cliffs notes to the channel, but I'm from a very flat region.
pcard rcsheets: I remember someone once coming in to this channel asking how to port a Perl program into Cobol
rcsheets D:
Mimisbrunnr bwahahaha
Mimisbrunnr really?
pcard yes
rcsheets that's... that's... horrid
rcsheets maybe they were off their medication
pcard heh
Mimisbrunnr that's like asking to port a GUI to an adding machine
BinGOs I am so glad all the drugs, alcohol and therapy have managed to destroy all my memories of COBOL
rcsheets i need to implement a restful web app on my abacus
pcard Mimisbrunnr: lol
Mimisbrunnr rcsheets: it could be done - but we will need a lot of booze
Mimisbrunnr get me drunk enough, I'll program on anything
Mimisbrunnr including your cat
rcsheets Mimisbrunnr: can we do the booze part without the cobol/abacus/etc?
pcard BinGOs: indeed.... I did Cobol way back, and it's not something I care to go back to
BinGOs Though I do still shudder subconsciously whilst watching BSG
pcard BinGOs: the original or the newer one?
Mimisbrunnr rcsheets - deal
BinGOs Whenever they go on about the Gods of COBOL.
Mimisbrunnr Ya R’lyeh! COBOL fhtagn!
ZadYree Huh? what does @array[$arg] mean in p5?
pcard it's an array slice
pcard or a slice of pie
pcard one of those
rcsheets mmm
anno a warnable offence
rcsheets array slice, a la mode
pcard for pie?
pcard warn if pie; ?
ZadYree heh
pcard oh I see
pcard warn "Pie's done!" if defined $pie;
Mimisbrunnr pcard: never warn if pie; rejoice if pie
pcard ah
szr say "mmmmm, pie!"
rcsheets well, warning when it's done could make sense, inasmuch as you don't want to burn it
pcard rcsheets: yeah, like bell/beeper on an oven
rcsheets yes
rcsheets then the rejoice would be triggered when it's cool enough to eat
Mimisbrunnr sleep until ( $pie eq 'done' );
pcard it's still up to the baker to actually turn off the oven and remove the pie
Mimisbrunnr hrmm, wait no, I would never wake up
pcard Mimisbrunnr: there you go
pcard aww
pcard doh
Channel #perl
Network Freenode
Tagline COBOL and Slices

Who is Spartacus?

Display

Su-Shee (I'm not huskypaw. I swear... :)
dngor Me neither. I'm also not Spartacus.
* rindolf is Spartacus.
* rindolf just is.
rindolf I have E-mail again, too.
fizztpok I think you're a figment of my imagination.
rindolf fizztpok: I'm still Spartacus.
mst fizztpok: out of all the possible people that could exist you imagined *rindolf* ?!
rindolf mst: LOL.
rindolf mst++
stunix yay, I found my Perl-tshirt.
rindolf stunix: pics, please.
stunix #!/usr/bin/perl -w
stunix use strict;
rindolf stunix: don't flood.
stunix with the camel on the back.
stunix rindolf: I'm not flooding.
mst stunix: -w is out of date.
mst stunix: you need a new T-shirt :)
Khisanth fizztpok: now I have to go and kill you ...
anno t-shirt update
rindolf Khisanth: :-)
stunix mst: I don't use "-w" myself, but I use strict;
stunix :)
mst stunix: use strict; use warnings;
* rindolf is a figment of #perl's collective imagination.
Khisanth rindolf was too far away but you seem to be on the same continent at least
mst rindolf: now that I could believe.
fizztpok haha
fizztpok there's a name for this
fizztpok I saw a wikipedia article on it
fizztpok the belief that the universe is your mind's creation
mauke solipsism
anno can't be disproved
Channel #perl
Network Freenode
Tagline Spartacus and T-shirts

VXZ Trolling on #perl

Display

VXZ Greeting all. How do I get this script working with mirc? I want it to take over the network and serve warez. I found it in some random dark corner of the web from 1998 and I don't want to learn perl to fix it. Also, why aren't my php regexes working on html? Oh crap my parents are home.
Altreus :3
Altreus you've been here before, I can tell
f00li5h VXZ: I want to ban you, but it's too grand a troll ... i have to admire it for a time
Channel #perl
Network Freenode
Tagline VXZ Trolling on #perl

The Evil Overlords of #perl

Display

nanonyme bamccaig_, yeah. Then you can look at Try::Tiny like preaction said and treat DBI's deaths as exceptions. Or use eval {}. preaction said Try::Tiny is cleaner and I guess I'm gonna trust him on that.
preaction HA HA HA THAT WAS YOUR FIRST MISTAKE!
nanonyme ;)
nanonyme preaction, the second is not noticing you completely rewrite Try::Tiny so my computer blows up? :P
preaction nanonyme: no, it's letting me build my atomic supermen so that i can win at basketball against the jesters of dunk, the Harlem Globetrotters
preaction i am no comic-book supervillian, my plans are even more convoluted! that means they're better and are sure to work! like George Clooney in Ocean's Eleven
* apeiron distributes copies of the evil overlord list
preaction what? where am i on this list? I demand a reissue!
preaction oh, wait, here i am. in the footnote "slightly less-evil overlords".
nanonyme preaction, underlords? :p
preaction #lessambitiousperlprogrammers
rindolf wonderlords.
pkrumins press button. get perl.
Channel #perl
Network Freenode
Tagline The evil overlords of #perl

Perl Ninjas, Pirates and Zombies

Display

alyx /w/w 55
alyx ..fail
* apeiron gives alyx an award for failing that so much
alyx \o/
* alyx hangs it up in the almighty fail closet
rindolf alyx: :-)
alyx rindolf: :D
Su-Shee 55 chat windows are too much. ;)
Botje amen!
Botje I keep my irssi trimmed to < 30
Su-Shee I have 3. ;)
alyx Botje: o_o
alyx I have 56 windows atm, before I cleaned up a bit, I was at ~150. ._.
woldrich One friend in each window, and you have 56 times more friends than me.
Su-Shee bah. I like to have real conversations and to really follow a handful of channels and that's it..
rindolf alyx: wow.
perlsyntax Is there away i can look up my modules with cpan that i have installed?
perlsyntax if i am right.
Su-Shee wow. facebook has a chat too.
DrForr perldoc -q installed
rindolf Su-Shee: you can use a Jabber client for that.
rindolf DrForr++
* pragma_ gets annoyed when he exceeds 19 windows.
rindolf We should create a #perl <-> StackOverflowish interface.
Su-Shee after gotten angry, I don't use my jabber stuff anymore as well ;)
apeiron rindolf, Feel free to make a shitoverflow interface. Just don't put it here.
rindolf apeiron: :-)
apeiron no, not :-)
apeiron more like /ban *!*@*
Su-Shee who needs all those chats...
apeiron People with very empty lives.
Su-Shee well it fills empty windows.. ;)
Su-Shee or, there's recently chat rockstars and chat ninjas.. ;)
Botje but you don't /see/ chat ninjas!
Su-Shee that's why I have so few channels.. no ninja chatting with me..
DrForr Not that you *know* of.
Botje http://www.nichtlustig.de/toondb/100701.html # relevant
candide Title of Botje's link: NICHTLUSTIG
Su-Shee damn. what if a ninja is asking me out and I don't get it because it's an invisible conversation?
Su-Shee Botje: harhar ;)
Botje Su-Shee: if dinner suddenly appears you just married a ninja
Su-Shee in a secret, hidden ceremony?
Su-Shee Botje: was I there? how was I? ;)
pragma_ Su-Shee: your inner ninja will detect it and go on the date, if you have one.
Su-Shee pragma_: ah. interesting. so I'll find myself suddenly in some ninja-restaurant and don't remember how I got there?
Caelum DrForr: mintty seems nice
Caelum DrForr: there's also puttycyg
DrForr It is, but 3 days ina row I've hit that same key combo, and I can't reset it in the dialog box.
pragma_ Su-Shee: no, your ninja will be there while your you remains oblivious
rindolf Ninjas. :-)
pragma_ This is why ninjas engage in rigorous 24/7 training of their ninjistu; so that they may be more in touch with their inner ninjas and be more aware of what it is doing.
Su-Shee pragma_: so I stay an idiot no matter what. ;)
pragma_ your idiot remains an idiot forever, but you can train your non-idiot to overpower your idiot.
DrForr But... shouldn't your inner ninja be hidden?
Caelum DrForr: KiTTy also has the PuttyCyg patch, and only needs the cthelper.exe from PuttyCyg
pragma_ When you have attained true enlightenment of the ninja, then you too will become like the hidden tiger and will enjoy the pleasures of the crouching dragon.
DrForr www.askainnerninja.com
Su-Shee I better not google pleasures of the crouching dragon..
Su-Shee DrForr: No match for "ASKAINNERNINJA.COM".
Su-Shee DrForr: go ahead ;)
mst whould be ask -an- inner ninja.
Su-Shee also no match ;)
Su-Shee *lol* askdrninja.com is taken ;)
Botje there's also drmcninja
Su-Shee well we could always chose to go down the rockstar path...
Su-Shee choose.
rindolf We should become Perl pirates. Arrrrrrrrrr!
* alyx hands rindolf an eyepatch
rindolf Unleash your inner bucaneer.
rindolf "I'm Guybrush Threepwood. Mighty Pirate."
apeiron Yeah, I've been doing that for ages.
Su-Shee .oO(johnny depp.. hm.. ;)
rindolf And Keira Knightly.
woldrich What does '.oO' mean?
rindolf woldrich: saying something.
rindolf Like a talk balloon.
rindolf Maybe a thought balloon?
pragma_ . o ( This is a thought balloon. )
woldrich oh. I'm too old for this shit
rindolf woldrich: it doesn't matter as long as you're young at heart.
rindolf And there are no young Perl programmers. ;-)
* pragma_ prefers his heart matured and fortified.
rindolf As "Perl is dead."
* Caelum prefers his hearts barbecued
rindolf Well, that wasn't very funny.
Su-Shee I wouldn't really call mst "old" ;)
BinGOs zombie perl
rindolf Su-Shee: I know a Perl programmer who's now a university freshman.
* apeiron sends zombie kindergarteners after rindolf
Su-Shee well dr dobbs agrees.
rindolf Knew him since he was in Junior high.
rindolf apeiron: :-)
BinGOs perl eats your brains.
* rindolf trains the zombie kindergarteners to be mighty Perl zombie pirates!
pragma_ I've always been annoyed by the lack of zombie children running around in Left4Dead, et al.
rindolf mighty*
Botje pragma_: shooting kids is bad mmkay
pragma_ At least Dead Space 2 has mutant baby toddlers you can stomp like fattened mosquitos.
Khisanth but these would be dead kids
apeiron undead
apeiron very important distinction!
Khisanth hmm well really neither, just bags of disease
rindolf Perl vampires!
* pragma_ would rather be a werewolf.
apeiron Khisanth, every source I've read says zombies are undead. so there.
* rindolf shoots pragma_ with the silver bullet.
Khisanth the l4d ones aren't really zombies :)
Botje they're more like 28 days later-style zombies
apeiron eh, modern games get everything wrong.
woldrich That girl in Resident Evil is cute.
* Su-Shee recommends "the walking dead"
pragma_ L4D, Resident Evil, Dead Space -- these are all "zombies" despite however they came to be such!
Botje yes, walking dead is <3
Caelum I haven't seen the new resident evil movie yet, was it good?
woldrich oh yes
Botje it had milla shooting stuff
Botje what more do you want?
pragma_ I was thinking of the Resident Evil 5 video game actually
Khisanth Botje: multiple millas shooting stuff?
pragma_ System Shock
apeiron plot. thought-provoking themes.
woldrich khisanth++
Botje pragma_++ # yes!
pragma_ System Shock 2
Botje my first-born for a system shock movie
Botje (done decently, that is)
* f00li5h nuzzles Botje
Su-Shee Botje: since when do you have a firstborn?
Botje aagh! zomb.. oh. hi kit!
Botje Su-Shee: i will have!
Khisanth Botje: probably won't be done nicely :P
Channel #perl
Network Freenode
Tagline Perl Ninjas, Pirates and Zombies

Digits in Variable Names

Display

jim which perldoc for doin stuff with arrays? want to copy all but first of one array to another
DrForr perldoc perldsc
DrForr Or just (undef,@new) = @old;
rindolf Also $old[1..$#old]
DrForr Of course TIMTOWTDI...
rindolf Well, @old[1..$#old]
rindolf I think in perl 6 you can do @old[1..*-1]
jim @a2 = @a1[1..$#a1]?
jim not perl6in yet
rindolf jim: yes, but with different names.
rindolf jim: else you want an array or a hash of arrays.
rindolf perlbot: varvarname
perlbot rindolf: Why it's stupid to `use a variable as a variable name' - http://perl.plover.com/varvarname.html
jim wait, are you sure mine is wrong?
rindolf jim: it's not wrong per-ce, just a red flag.
jim what's the flag?
rindolf jim: varvarname.
jim note I said @a->2<- = ...
rindolf jim: well, it's like doing my ($x1,$x2,$x3,$x4...) - better use an array.
rindolf Assuming you want that.
rindolf Yes, what is the difference between @a2 and @a1? What is their significance?
jim @a1 is a complete list of phone numbers, @a2 is a list of phone numbers not yet uploaded to the phone
thrig @phone_numbers!
jim it's like that in the code
thrig oh, okay
jim I'm just not typin that crap into the irc window as irc isn't the most wonderful medium for posting code
jim believe me, my variable names from 20 years ago tell me what they are for
thrig var_name_from_20_years_ago_you_re_still_not_taking_out_the_damn_trash
jim I'm not necessarily at liberty to specify exactly what I'm doing
jim even tho I did so in this case
thrig otherwise the mafia arranges a boaking accident?
mfontani worse; nobody expects the spanish inquisition!
rindolf I'm going crazy without buubot.
rindolf Where is he and buu?
jim well the way you're acting doesn't exactly induce the greatest amount of openness
rindolf jim: I apologise.
rindolf jim: we may have erred in this.
jim ohman, buubot is gone>?
rindolf jim: yes!
rindolf jim: for the time being.
rindolf Don't know where buu is.
jim that's been one useful bot
mfontani eval: @a=1..4; (undef,@b)=@a; \@b
perlbot mfontani: [2,3,4]
DrForr jim: You've got several answers already. Do they not satisfy?
rindolf perlbot: define boaking
perlbot rindolf: No factoid found. Did you mean one of these: [debian perldoc] [define vrby : vrby]
rindolf jim: I think simcop has put the buubot code on github or something like that.
rindolf Well, good night @everyone.
rindolf An array .
jim DrForr: they do... it's all this stuff afterwards that has me closing, "spanish inquisition", "mafia breakaleg"... it's just unnecessary
jim rindolf: thanks
rindolf jim: well, we sometimes enjoy having fun.
DrForr Shrug. You're the one that brought up "may not be at liberty..."
rindolf jim: seems like thrig's main function, aside from being the benevolent dictator of #perl, is to interject short jokes.
thrig I make jokes about tall people, too
simcop2387 rindolf: yea i have
rindolf thrig: :-)
simcop2387 perlbot: source
perlbot simcop2387: check out my insides (i'm based off buubot, so ask him for his source if you really want to start); http://github.com/simcop2387/perlbuut/ or go to http://github.com/simcop2387/buubot/
rindolf We can have notbuubot or buubot2 or something.
rindolf Well, buubot2 is varvarname.
rindolf ;-)
thrig it's not going to be @buubot
rindolf thrig: LOL.
Channel #perl
Network Freenode
Tagline Digits in Variable Names

When to use XML and Popcorn?

Display

designerjean http://scsys.co.uk:8002/87521
designerjean i know i'm not supposed to be using XML::Simple
designerjean but it's only one statement in the program
rindolf designerjean: is it causing problems?
mst yes, and it's the one that makes the $config you can't work out how to use
designerjean maybe
rindolf mst: :-)
mst your exact problem is "unable to use the results of XML::Simple"
mst because you're stupid and XML::Simple is shit
mst please switch to XML::Twig
designerjean ok thanks
dhoss people still use xml?
rindolf dhoss: it's a dirty job, but it pays.
dhoss i guess there's that
designerjean another case of stupid youth
dhoss designerjean: how old are you
rindolf dhoss: well, I'm using XML for some stuff willingly.
rindolf dhoss: JSON wouldn't have been usable.
dhoss rindolf: i guess that's a legit reason
rindolf Because I use them for text and stuff like that.
rindolf And it's hard to do something like <p>Hello <b>dhoss</b>!</p> in JSON.
rokoteko I think its mainly amongst web programmers where JSON is appreciated the most.
rindolf rokoteko: JSON has many valid uses.
DuClare XML has none
LeoNerd XML is for putting attribute markup within a stream of text.
dhoss rindolf: yea i can see that. json is more useful in a cross language barrier bit where markup isn't needed
LeoNerd (mostly because it came out of SGML)
rindolf DuClare: not true.
rokoteko XML is very widely used. that's like saying "I dont need to know Java, because the language sucks" ..
Su-Shee rindolf: you're mixing semantics with style here anyways. that would be bad xml.
rindolf Su-Shee: I was giving an illustrative example.
Su-Shee rindolf: then give a proper one. that was exactly how NOT to XML.
rindolf Su-Shee: besides , I think that <b> has some valid, semantic meaning.
rindolf And it's also shorter than <strong></strong>
rindolf Su-Shee: ok.
Su-Shee rindolf: no. bold doesn't mean "be bold and courageous here". it means "print this shit in bold typeface"
rindolf <p>Hello <name>Su-Shee</name>!</p>
rindolf XML is useful for wrapping and annotating text.
Dorward XML is only useful for wrapping and annotating text if you use a properly designed application of XML and everyone reading the document agrees on what the meaning is.
rokoteko XTML vs XDML could derive from XML. (text and data respectively). then of course you should be able to embed XDML in XTML.
rokoteko oh wait. Im thinkin aloud.
rindolf rokoteko: I've recently played with an XML-specific compression tool.
rindolf rokoteko: it achieved better compression than xz -9 --extreme but OTOH mishandled some «"» not inside attributes - converting them to &quot;
rokoteko rindolf: what requirements are you trying to meet by compressing xml?
PerlJam smaller XML docs :)
rindolf rokoteko: well, to reduce the size.
rokoteko well, doh. but why?
rindolf rokoteko: like over the Net, etc.
rindolf rokoteko: it's like gzip compression/decompression.
rokoteko rindolf: I yet fail to see the point. :(
rindolf Only domain-specific.
rokoteko why?
rindolf And if you have a lot of it it occupies less on the hard disk.
rokoteko Ah. you have like SHITLOADS of XML ?
rindolf It could happen.
rindolf Java...
PerlJam anyone who deals with XML probably has that much ;)
rokoteko Well, disk is pretty cheap.
rindolf I don't have too much XML.
rindolf Well, maybe a lot of XHTML.
rokoteko I was just curious about rindolf's use case.
rokoteko I was afraid that he was storing some binary data in XML. :)
mst I think he was just experimenting with technology
rindolf Yes, I probably have more disk wasted on .mp3's and .flv's.
rindolf rokoteko: I have some interest in compression methods.
rindolf rokoteko: back from high school.
rokoteko rindolf: :)
Su-Shee if you're the company who's transferring 120 years of documents of a car company into something flexible - THEN you have a shitload of XML.
rindolf There have been some recent advancements.
rokoteko So just out of curiousity, that's fine with me. :) Im just nosy sometimes.
rindolf rokoteko: I think the wikipedia XML dump is pretty large.
mst I find it's usually safe to assume that whatver rindolf's doing, there isn't a good reason for it.
rindolf rokoteko: there was some stuff about processing it quickly using Perl, etc.
rindolf mst: :-)
rindolf mst++ # Nice burn.
Su-Shee popcorn anyone? ;)
rindolf mst: but it has a huge grain of truth in it I admit.
rindolf Su-Shee: microwave popcorn?
Su-Shee I don't have a microwave and I was being sarcastic...
Su-Shee I need a smiley for that.
rindolf Su-Shee: ah.
Su-Shee rindolf-shaped, obviously.
rindolf Su-Shee: yes, I was playing along.
petn-randall why not an XML-conform </sarcasm> ?
* rindolf prepares some popcorn and shares it with Su-Shee using the Popcorn-over-IRC protocol.
DrForr What's this about burnt popcorn?
rindolf Popcorn-over-IRC also preserves the butter taste.
burnedcelery you're getting my keyboard all greasy
apeiron ew, butter
rindolf And it also supports multicasting popcorn.
PerlJam butter++
PerlJam though not so much butter that it makest he popcorn soggy. I hate that.
Channel #perl
Network Freenode
Tagline XML and Popcorn

The Ultimate Goal of One's Programming

Display

rp21 i think i'm too critical to be a programmer ...
rindolf rp21: do you mean you're too perfectionist?
Su-Shee yeah sure. there's something like "too good code".
rindolf Su-Shee: print "Hello World!\n"; - that's good code.
rindolf Or maybe say "Hello World!";
rindolf Can't be improved.
rp21 hey, why did my nick change?
rp2 yes it may be perfectionism
rindolf rp2: ah, sucks.
rp2 eg i want to get all columns from a database table in Perl
rp2 now my problem is that i want to write code that works wuith a variety of databases and both on windows and linux
rp2 it seems that as soon as i have found a way to overcome a particular restriction, i mentally add another and spend my time trying to overcome that too, sometimes losing track of the reason i started the script
rindolf rp2: heh.
rp2 if i were a better programmer i'd get through the hurdles quicker and end up with solvesworldhunger.pl
rp2 except that i'd probably finish Perl 7 to write it in first
rindolf rp2: well, some of my programs outgrow their original purpose too.
rindolf rp2: :-D
rp2 except that it'd never get finished because i'd first fix the OSes it's supposed to run on,
rp2 etc etc
rp2 raaaah!
rindolf rp2: you should hire Chuck Norris.
rp2 yes
rindolf Chuck Norris can end world hunger, but he thinks that hungry people make humanity a more challenging adversary.
rindolf If everyone had enough to eat, it would be too easy for him.
rindolf ;-)
mino Chuck Norris also writes understandable perl code... *scnr*
rindolf mino: LOL.
rindolf mino: Chuck Norris can read Perl code that was RSA encrypted.
mino rindolf: is there any difference to unencrypted one? :P
rindolf mino: not to Chuck.
Channel #perl
Network Freenode
Tagline Solving World Hunger using Perl

CPAN Module Namer in Distress

Display

LeoNerd Su-Shee: http://scsys.co.uk:8002/91935 <== see if that runs
LeoNerd That's my "static" demo
rindolf LeoNerd: what is Tickit?
LeoNerd Heh...
LeoNerd Terminal Interface Construction KIT
Su-Shee rindolf: a terminal application's widget set
LeoNerd Think "GTK" for terminals
rindolf Su-Shee: ah.
rindolf LeoNerd: like Curses::UI?
rindolf Only better, perhaps?
LeoNerd Sortof, only not using Curses. :)
rindolf LeoNerd: ah.
Su-Shee ok, first I need food.
rindolf Interesting.
LeoNerd Also, I'm not that familiar with Curses::UI but I didn't think it was widget-based..?
Su-Shee LeoNerd: I have this example open.
rindolf I think Tickit is not too good a name either.
LeoNerd Well. *shrug*
* rindolf emails some Shawarma to Su-Shee.
Su-Shee rindolf: did we ask to judge the name? ;)
LeoNerd rindolf: If you want to judge all my naming you can respond to all my blog posts tagged "module naming"
rindolf Make sure you uncompress it or you won't be able to eat it. :-)
LeoNerd And then if people complain I'll send them your way
rindolf LeoNerd: ah, my blogs aggregator is off.
LeoNerd http://leonerds-code.blogspot.com/search/label/module%20naming
rindolf LeoNerd: so we can form the "People unhappy with LeoNerd's names support group"?
LeoNerd You can if you like.. I'm not. :)
rindolf "Hi! My name is rindolf and I think LeoNerd picks up awful names for his modules." "Hello rindolf! We all love you!"
rindolf LOL.
Su-Shee JESUS WHO CARES HOW A WIDGET SET IS CALLED?!
LeoNerd Indeed..
Su-Shee LeoNerd: name the next one pink fluffy bunny.
rindolf Su-Shee: THE NAME IS THE MOST IMPORTANT THING!111
LeoNerd Hell, we have a popular OO framework named after a large Swedish animal with antlers on
rindolf Would you use Linux if it was called 386BSD?
rindolf OK, it could be much worse.
Su-Shee LeoNerd: well so the name of a Moose based (there already was a Moose before Perl's Moose by Smalltalk, btw..) widget set will be Ikea.
* __sri only uses operating systems that have been named after big cats
rindolf Su-Shee: that may infringe on a trademark.
Channel #perl
Network Freenode
Tagline What's in a name?

How Much Infinity do you need?

Display

Altreus rindolf: you can make a processor in minecraft yes
rindolf Altreus: ah, OK.
Altreus a computer in a computer
rindolf Let's write a Perl->Mincraft compiler.
Altreus very meta
rindolf Implementing a Turing complete interpreter inside a VM is not hard.
rindolf vi keystrokes (not vimscript) are also Turing complete.
rindolf As is the Game of Life and infinite Minesweeper
jettero rindolf: I can almost imagine GoL, but how is minesweeper going to be turing complete?
Altreus nuts
Altreus that always worked for me
Altreus maybe you have to log in at least once
woldrich bah
rindolf jettero: http://web.mat.bham.ac.uk/R.W.Kaye/minesw/
rindolf jettero: I have not read the paper.
rindolf jettero: of course, true Turing completeness is only possible with infinite memory.
LeoNerd Ah OK
* f00li5h hands rindolf an infinite hotel, and books every even room
rindolf f00li5h: :-)
* rindolf books every odd room that is divided by three.
rindolf f00li5h: is it א_0, א_1 or something more infinite?
f00li5h it's as infinite as it can be!
rindolf f00li5h: ah, good.
rindolf f00li5h: then I can book room pi.
rindolf Or sqrt(2).
f00li5h you sure can.
rindolf Nice.
f00li5h but you might like something a little more spacious
rindolf Ah.
f00li5h like the rooms between 1 and 2
rindolf Which room do you recommend?
rindolf Ah.
j_wright what about sqrt(-1)?
f00li5h plenty of space there
f00li5h j_wright: that room's popular, i'd imagine it's booked
f00li5h the biggest problem is aloting extensions on the room phones
Altreus my infinite hotel's rooms have two numbers each, being a point on the complex plane
Altreus it increases address lookup time
Altreus also the hotel happens to be all one floor so that helps
j_wright so they get two sets of addresses?
j_wright polar too
f00li5h take the ⧜th left, and then head down ∞th right
Altreus no just one
Altreus each room is unique
j_wright or turn n degrees and go m forward
Altreus oh yes I suppose you could map their addresses to a new coordinate space but that's true of any plane with a landmark
Altreus the car park is at 0,i fyi
Channel #perl
Network Freenode
Tagline The Inifinite Hotel

Perl Shrinks

Display

Su-Shee mst: would you like to talk about your problems now too? PerlJam? How's your marriage? Anyone recently went alcoholic? Also, would you all like to know how about my father? ;)
mauke use less qw(acid);
* PerlJam hugs Su-Shee ... a little too tightly.
tm604 less acid | more perl
Su-Shee PerlJam: for sarcasm? ;) that's new :)
PerlJam Su-Shee: It's the #perl6 in me. ETOOMANYHUGS :)
Su-Shee PerlJam: HARHAR :)
rindolf Su-Shee: heh.
rindolf Su-Shee++ # good burn.
rindolf Su-Shrink.
rindolf Su-Shee: your nick has multiple hidden meanings.
rindolf Su-Shee: will you sell it for 3 oz. of gold?
Channel #perl
Network Freenode
Tagline Su-Shrink

How Can I Switch off the T.V. - #perl style

Display

(This bit was posted anonymously to a pastebot on 23 March, 2011. It is placed her for posterity after some editing.)

Question: how can I switch off my TV?

What he wants to hear? For example: Locate on/off button your TV remote a press it. The button is usually red and located at the topmost line on the remote.

The #perl expert's answer: First, what do you mean with "switch off"? Define it first. Nopaste your TV, TV remote and the living room too.

After a nopaste:

Your room is ugly. And the TV looks terrible. Use Mr. Clean on the screen and clean your living room first. Use three cleaning mops instead of two. Use HDMI and never use scart (?) connectors, unless you really want to. Your TV remote has unreadable buttons, clean up first. You're a beginner, so read:

IRC guest: But, i don't want be a TV expert.

Answer: Why do you want to switch the TV on then?!

Author Anonymous
Work Pastebin Paste

Cats in Soviet Russia

Display

rindolf Mithaldu: I think most contemporary T.V. kinda sucks.
rindolf Mithaldu: it seems very phony.
Mithaldu rindolf: same, i haven't actually switched on my tv in five years
rindolf I prefer a YouTube video of a kitten riding on a turtle.
rindolf Mithaldu: :-)
Mithaldu :D
rindolf Mithaldu: yes.
rindolf Mithaldu: there is one, BTW.
Mithaldu oh i do not doubt that
rindolf Don't know if it's authentic.
rindolf I saw a friendly cat today, and he purred after I scratched his head.
rindolf I like Friendly cats.
rindolf I think lolcats are very subversive.
rindolf Or were.
rindolf "Ceiling cat is watching you"
Mithaldu cats are the definition of subversive
Mithaldu they adopt you
rindolf Mithaldu: heh.
rindolf In Soviet Russia, cats own you!
rindolf In Soviet Russia, cats are your master!
rindolf Well, in Soviet Russia and everywhere.
kent\n rindolf: you got it backwards.
kent\n In soviet russia, cats are actually your pets.
Mithaldu hahaha
rindolf kent\n: heh.
rindolf kent\n++
rindolf I feel better now.
rindolf Empowered but calm.
rindolf Thanks to the cats jokes.
Mithaldu world healing by cat jokes
rindolf Hopefully, I'll sleep well tonight.
kent\n Next on the agenda. DICK JOKES!
rindolf Mithaldu: cats are good for healing I think.
rindolf kent\n: NO!!!!!
kent\n ( don't worry, this won't take long )
Mithaldu yes, as long as you do not own cables
Mithaldu kent\n: you mean it won't BE very long
Mithaldu hurr hurr
rindolf kent\n: I've got 99 problems but kent\n ain't one.
kent\n ;)
Channel #perl-cats
Network Freenode
Tagline Cats in Soviet Russia

Violent Cats and Astrology

Display

* f00li5h paws at apeiron
* WinstonSmith hisses at f00li5h
* f00li5h pounces on that WinstonSmith critter
* WinstonSmith scratches that f00li5h and hides under the sofa
* Su-Shee gets a bucket of cold water.
* WinstonSmith meows at f00li5h quickly before Su-Shee comes with that water
* Khisanth blasts WinstonSmith with a firehose
WinstonSmith garbl grbl garblll
* apeiron shakes fist at 'variable length lookbehind not supported'
* apeiron also shakes fist at $CLIENT speccing against a regex a stupid jquery dev wrote instead of the well-tested module
Khisanth you can change it into (?: | | | ) in at least some cases
* WinstonSmith jumps on top of the wardrobe, dries himself and glares menacingly at Khisanth
apeiron THIS IS WHY WE USE THE MODULES, DAMNIT, BECAUSE APEIRON SUCKS AT REGEX
apeiron THIS IS ALSO WHY APEIRON SUCKS AT REGEX
LeoNerd IS THIS WHY WE ARE SHOUTING?
* Khisanth grabs an apeiron and throws it at WinstonSmith
apeiron I get shouty when $CLIENTs spec stupidity.
apeiron @CLIENT? $CLIENTs?
Khisanth got shout at client then :)
* WinstonSmith nuzzles apeiron to calm him down
apeiron WinstonSmith, that doesn't remove the stupidity from the spec.=\
WinstonSmith apeiron, maybe the stupidity is in $CLIENT ?
apeiron yes, I know that.
* WinstonSmith considers the nuzzling having effect - he disabled the caps key ; -)
* apeiron just shouts into loudbot
rindolf Cat violence!
rindolf Felix Felini Lupus est!
WinstonSmith felix perlus aggressivus!
rindolf WinstonSmith: Latin!
WinstonSmith rindolf, pseudo!
rindolf WinstonSmith: yes, true. Mock-Latin.
WinstonSmith ah so you have pseudo in english?
rindolf How do you say "A cat to a cat is a wolf" in Latin?
rindolf WinstonSmith: there is pseudo there.
SpiceWork leo ripanus !
rindolf SpiceWork: what does that mean?
rindolf Leo is lion, right?
WinstonSmith leo is the king
SpiceWork no idea. a wine I loved, but year that followed sucked.
rindolf LeoNerd.
ne2k leonidas
SpiceWork *the year that
LeoNerd Correct
rindolf /nick TauNerd
rindolf /nick TaurusNerd
SpiceWork european wine quality varies too much :\
LeoNerd Hehe.. I could go through all the zodiac signs :)
LeoNerd /nick CapricornNerd
apeiron LeoNerd, /nick FishNerd?
apeiron Somehow that doesn't have the same ring to it...
LeoNerd Pices surely?
apeiron Pisces.
LeoNerd Er, yes.. them :)
rindolf I don't believe in Astrology because I'm a Taurus and Tauri never believe in Astrology.
rindolf </old-joke>
Simplicity ...Lol.
* Su-Shee is a Leo-Shee.
rindolf Su-Shee: ah, you're a Leo too?
Simplicity I don't exactly /follow/ Astrology, but I believe some horoscopes hit spot on.
apeiron They're vague enough to apply to anyone.
rindolf Simplicity: there was something about a survey where people read the Astrological forecast either before or after the week, and those that read it aferwards said it did not happen to them.
Su-Shee well I choose only the good one and manipulate the day accordingly ;)
Simplicity Heh
WinstonSmith Su-Shee++
SpiceWork I was really dissapointed on how superstitious japanese people are at first. then I stopped idiolzing them :p
Su-Shee but I'm a firm believer in compenent manipulation anyways ;)
Simplicity apeiron: I didn't want to go there as to not offend any possible believers.
LeoNerd I find them interesting. Usually they're completely off the mark, but just occasionally they give me something interesting to think about, something to focus my mind on.. reminding me something I sortof knew anyway
apeiron Simplicity, If people can't tolerate the truth, they shouldn't be on the internet. :)
WinstonSmith apeiron, omg there is truth on the internetz?
apeiron yes!
Simplicity WinstonSmith: Everything you read on the Internet is true!
* WinstonSmith double-facepalms
WinstonSmith i knew all that stuff about the lizard people could'nt be a lie
* WinstonSmith notches the paranoia up
Simplicity WinstonSmith: The only "lizard people" I have ever heard about is the Illuminati.
WinstonSmith Simplicity, well Cheney was on of them ;-)
Channel #perl
Network Freenode
Tagline Nobody heard of Perlian cats

Paid version of CPAN

Display

elb0w` Let’s start a paid version of cpan
elb0w` same exact modules
elb0w` but charge for them
elb0w` add Pro:: namespace
apeiron no, Enterprise::
elb0w` haha yes
jdv79 the longer the better
mauke 402 Payment required
elb0w` more offical
winmutt Drmauke
DrForr That site just sets off alarm bells here.
rindolf CPAY
winmutt the fact that any code is obfuscated greately bring into question the quality of it
winmutt base64 or otherwise
elb0w` the funny thing is that if this was real I bet some firms would use it
Channel #perl
Network Freenode
Tagline There's no such thing as a free download.

Whitespace in Python

Display

sizz whitespace in python is not a problem, just lay out all the whitespace first, then add the code around it
Channel #perl
Network Freenode
Tagline Whitespace in Python

Interesting vs. Successful

Display

There's a negative correlation between “interesting” and “successful”.

Author Anno on Freenode's #perl

Sweat

Display

cl0ud glorious meeting this morning
rindolf cl0ud: hi.
* rindolf cl0ud
* cl0ud rindolf
rindolf cl0ud: sup?
cl0ud chillin
rindolf cl0ud: yes, it is chilly here.
* rindolf moves his services to the cl0ud
cl0ud we live in a cloud world
railbait_lite So, loudbot has 10k tweets
railbait_lite Pratty sweat
rindolf railbait_lite: sweet?
railbait_lite Yeah
rindolf Gotta make you sweat.
railbait_lite haha
railbait_lite Yeah meant to make it sound weird
railbait_lite Thus the "pretty" misspelling as well
rindolf Sweat Beat.
rindolf Like Lemon Demon.
railbait_lite haha
rindolf loudbot: TWITTER ALL THE WAY UP!
loudbot rindolf: GOOGLE BROKE YOUTUBE, EVERYONE REJOICE
Channel #perlcafe
Network Freenode
Tagline Sweat

Round Numbers

Display

hemanth meow!
rindolf hemanth: meow.
rindolf hemanth: still no IRC at work?
hemanth nope :/
rindolf hemanth: did you talk with the sys-admins?
hemanth rindolf: it seems more like freenode have blocked the IP
hemanth hang on
hemanth "You are banned from this server- Temporary K-line 6000 min. - Please do not harass users on freenode. If in error, please contact mailto:kline@freenode.net. Thanks! (2011/11/1 06.24)"
rindolf hemanth: ah.
simcop2387 hemanth: what did you do?
LeoNerd 6000 minutes. 100 hours.
LeoNerd 4 days 4 hours. A weird number
simcop2387 farnsworth: 6000 minutes -> days
farnsworth simcop2387: (25/6 /* apx (4.16666666666666) */)
hemanth heh heh
simcop2387 LeoNerd: i think it was entirely because 100 hours is a "round number"
Altreus 0, 6, 8, 9 are round numbers
Altreus The rest are a bit pointy
Altreus maybe sometimes a 3 depending on font
Altreus but it still has a pointy bit
rindolf Altreus: heh.
rindolf Altreus: actually, they are round digits.
Altreus bah, you win
simcop2387 1 isn't round
Channel #perl-cats
Network Freenode
Tagline Round Numbers

Negative Lookbehinds

Display

GordonFreeman hi
rindolf Hi GordonFreeman
GordonFreeman grep -Po '(?<=<a )(?<! href=)(?<= href=["]*)[^">]+' <<< '<a gfasg href=asdf>'
GordonFreeman grep: lookbehind assertion is not fixed length
rindolf GordonFreeman: grep is PCRE - it's not Perl.
rindolf perlbot: pcre
Altreus GordonFreeman: don't use regex for HTML
perlbot rindolf: PCRE is not Perl. It lacks several features of Perl regexes. Don't bother asking for help with a PCRE pattern in a Perl channel as the answers will not be relevant. Try #regex, or the channel for your language. See also http://en.wikipedia.org/wiki/PCRE#Differences_from_Perl and LPBD.
GordonFreeman but this should work i think.
mauke no, it shouldn't
GordonFreeman though it fails at the second lookbehind ...
mauke no, it doesn't
GordonFreeman and fails at "* too
GordonFreeman (grep -Po '<a +.* +href="*[^" >]+' | grep -Po '(?=<a ).*' | grep -Po '(?<= href=)["]*[^" >]+') <<< '<a gfasg href=asdf><a fgfgg="hi> " href="link" >'
GordonFreeman this works.
mauke GordonFreeman: dude.
anno don't paste!
GordonFreeman hi mauke
apeiron where's mauke's car?
rindolf apeiron: :-)
mauke it's a cdr
Altreus I watched that the other day
rindolf pkrumins: what's up?
Altreus I don't really know why
mauke GordonFreeman: go to a channel where that is on-topic
GordonFreeman mauke<< like?
mauke no idea
Altreus where on earth is parsing HTML with regexes on topic?
GordonFreeman aham ok
Altreus except ##php lolol
GordonFreeman well i think one can see its logical and it works like this
rindolf GordonFreeman: http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
shorten rindolf's url is at http://xrl.us/bf4jh6
apeiron GordonFreeman, also, -P isn't perl.
thrig Altreus: some special level of hell, between the angry ghosts and the hungry ghosts
rindolf perlbot: html
apeiron the grep docs lie to you.
perlbot rindolf: Don't parse or modify html with regular expressions! See one of HTML::Parser's subclasses: HTML::TokeParser, HTML::TokeParser::Simple, HTML::TreeBuilder(::Xpath)?, HTML::TableExtract etc. If your response begins "that's overkill. i only want to..." you are wrong. http://en.wikipedia.org/wiki/Chomsky_hierarchy and http://xrl.us/bf4jh6 for why not to use regex on HTML
LeoNerd Altreus: Why, surely in #html-parsing-by-regexp
Altreus if you want perl regex use ack
Altreus surely
rindolf LeoNerd: sounds like programmers' hell.
anno perl regex doesn't support variable-length lookbehind either
Altreus apeiron: actually it says it's highly experimental and hence not working
Altreus it could well be Perl and not PCRE when finished :)
Altreus not that "perl regex" is a defined term, the speed Perl is moving
yrlnry That's why you should never use Perl's builtin regexes. Just write your own package, it's sure to be more reliable.
rindolf yrlnry: :-)
talexb Heh.
LeoNerd use re::engine::vim;
rindolf yrlnry++
Altreus LeoNerd: is it core?
yrlnry HOP has a nice implementation. It works by generating a list of every string matched by the regex, and looking to see if your target string is in the list.
LeoNerd I can't help thinking that may not be optimal in terms of CPU or memory usage
talexb yrlnry, no doubt they have a Cray working on generating the list ..
yrlnry LeoNerd: Depends; unlike Perl regexes, it has no trouble handling languages higher up the Chomsky hierarchy
yrlnry It is guaranteed to return the right answer for any recursive language, and guaranteed to return correct 'matched' answers for any recursively enumerable language.
LeoNerd Ohsure...
LeoNerd In terms of CS guarantees it's very nice
yrlnry So if you are in a big hurry to get the wrong answer...
LeoNerd But I live in the practical pragmatic world
LeoNerd E.g. Parser::MGC is horribly slow at backtracking and whatnot, but I write parsers in it because those are still fast for "reasonably" sized inputs, parsers are fast to write, and I like having lots of side-effects and dynamic logic -in- Perl
Altreus Unfortunately my universe doesn't have infinite processing speeds and data storage
anno a universe with infinite processing speed would have processed you by now
Altreus and
Altreus would have processed my grandchildren too
yrlnry This algorithm doesn' t need infinite speed or storage.
yrlnry It works slowly, but finitely.
Altreus what
yrlnry The infinite list is lazily generated and you never have more than one of its elements in memory at any time.
rindolf yrlnry: is it sorted by length?
yrlnry You will learn this sort of technique after you have been programming in Perl for eight months or so.
Altreus how do you know when it doesn't match
Altreus yrlnry: :D
yrlnry rindolf: it is sorted by length, and lexicographically among strings of the same length.
rindolf yrlnry: ah.
yrlnry Of course, you cannot do the length-sorting thing for arbitrary languages, but for regex languages there is no trouble.
yrlnry http://hop.perl.plover.com/book/pdf/06InfiniteStreams.pdf
LeoNerd Eh..
LeoNerd I dunno. I just dislike purely RE-based parsing
LeoNerd I much prefer code doing it
GordonFreeman why can't perl regexp do variable length lookbehind matching?
Altreus See originally I ignored you because it sounded like you were talking shit
LeoNerd Limit of the implementation
Altreus mainly because it is possible to construct a regex with an infinite range that nevertheless won't match a particular string
anno GordonFreeman: who knows? looks like it's hard to implement with the given engine
mauke GordonFreeman: unclear semantics and no one's bothered to write the code
GordonFreeman i see
Altreus Plus, there's a fucking lot of unicode to create strings out of
LeoNerd It's not "hard" to implement. It's impossible given the algorithm being used
mauke LeoNerd: why impossible?
yrlnry LeoNerd: I don't think that's true. It could be done using a recursive call to the regex engine now that that is possible.
GordonFreeman but lookbehind is cool
LeoNerd Oooh.. yes.. I suppose it could do that now
GordonFreeman its like a reverse regexp that can be excluded
anno vim re's do it
LeoNerd vim uses a different type of engine
anno right
yrlnry Altreus: I was talking shit. After eight months you get a license to do that.
mauke really?
Altreus yrlnry: but there's a pdf
yrlnry where's a PDF?
Altreus 17:10 < yrlnry> http://hop.perl.plover.com/book/pdf/06InfiniteStreams.pdf
yrlnry Yes.
Altreus I didn't open it or anything
mauke no one opens pdfs
yrlnry PDFs are for cowards and Slavs.
Altreus but it lent enough credence to your words that I decided to believe your spurious claims
Altreus Actually someone did a test the other day
yrlnry Oh, does "talking shit" mean "making up nonsense"? Then I was not talking shit.
Altreus He linked someone to articles supporting his viewpoint and they changed their mind
yrlnry It is in section 6.5, "regex string generation".
Altreus but one of the articles was an argument against himself
Altreus Showing that it is enough to cite your sources to be believed; not many people will actually bother to check them
Altreus yrlnry: what do you normally think "talking shit" means?
Altreus are you confusing it with shooting the shit
yrlnry I'm not sure.
Altreus are you foreign
yrlnry Yes.
Altreus ok then
mauke hahaha
Channel #perl
Network Freenode
Tagline Negative Lookbehind Regexes for matching HTML

Foreign Birds

Display

mocramis though i installed IPC::RUN, i still get the Can't locate from perl
Botje it's called IPC::Run, not IPC::RUN
rindolf mocramis: perl is case-sensitive.
mocramis arf ><
Altreus meow
DrForr *chirp*
Su-Shee tschilp in german, btw.
DrForr Could be handy when talking with foreign birds :)
Su-Shee DrForr: absolutely. also: a german dog barks "wau" and a cat meows "miau"
rindolf Su-Shee: German animals are true German patriots.
DrForr No relation to Miaowara Tomokato, I take it.
Su-Shee DrForr: no, although germany and japan of course had some relations ;)
Botje Su-Shee: oh. that explains 'dr waumiau'
Altreus foreign birds speak the same as local birds
Su-Shee Botje: what's that? ;)
Botje Su-Shee: german mash-up artist
Su-Shee Botje: now you know what his names means.
DrForr Altreus: Mine didn't :)
Altreus speaking a foreign language is culturally insensitive
DrForr (she grew up speaking English and Japanese - Her new host family is coping well, all things considered)
Su-Shee DrForr: now I'm confused.. she -> bird, dog, ex-girlfriend, daughter?
DrForr Bird with a multilingual daddy.
Altreus see I was disallowing DrForr the use of 'bird' as 'girl'
Altreus for comic effect
Channel #perl
Network Freenode
Tagline What do foreign birds speak?

Brogramming

Display

jozefk anybody with suggestion how can I clean up the code in the way as this tool is doing it temporarily in browser? http://www.howtogeek.com/howto/7188/clean-up-webpages-for-note-taking-or-printing-the-easy-way/
rindolf jozefk: you can define a print stylesheet.
jozefk I want to clean the page from everything. not only to see it like that on screen but to really modify the code
rindolf jozefk: well, you can read what the bookmarklet is doing and emulate it.
jozefk I see the javascript code from bookmarklet but I think I can't modify real files on hard disk with javacript codes
jozefk and the code is more than 300 lines :)
tm604 sure you can, js runs serverside happily enough, but it'd be just as easy to convert the JS logic to perl.
jozefk that sounds like programing. I thought there is some tool like that bookmarklet which I can use to modify files on HDD
Altreus tm604: except the JS runs on a DOM in a browser, with a browser context
tm604 yes, it does sound a bit like programming, doesn't it? good thing this is a programming channel, so it's hopefully still on-topic.
Altreus I don't think there's a node module that will load an HTML file and create a browser context in which to then run JS on that HTML's DOM and output the result
jozefk :)
jozefk DOM is not so important here I think. because JS is removing everything from code and just applying another CSS
jozefk so the page looks different
tm604 huh, thought there was. the script itself should be trivial to convert to perl either way.
Altreus probably a better idea :)
jozefk yeah, better. one day when I become a programmer :) I will do it.
pkrumins I want to become a brogrammer
jozefk why?
Altreus taking pictures of bros
pkrumins So I can do some awesome brogramming, jozefk!
jozefk :))
rindolf pkrumins: yo bro! I hurd you like brogramming so we put your bro in your brogram so you can brogram while you bro!
nate_h rofl
rindolf nate_h: :-)
nate_h should it be brozefk ?
rindolf rinbrolf
rindolf pk-bro-mins
pkrumins rindolf: i put a browser in your browser
pkrumins rindolf: so you can browse while yo browse
rindolf pkrumins: bro, a browser is so 90s.
fizztpok broser?
PerlJam bowser
nate_h mushroom?
rindolf pkrumins: KDE-4.8.x-beta-something is coming to Mageia Linux 2/Cauldron. \o/
fizztpok I search on duckduckbro!
nate_h co-co-coommmboo breaker
rindolf pkrumins: I'll see how much it fixes and how much it breaks.
rindolf pkrumins: and fix what it breaks and break what it fixes.
rindolf To preserve the balance in the force.
Channel #perl
Network Freenode
Tagline I want to become a brogrammer.

Count von Counter

Display

ncow rindolf: is not { my $c=0; sub getNext { $c++ } } a perfectly good way to do a closure on a variable (that should not be seen by anything other than that sub, sort of like that PHP example with the "static" var <http://www.phpsadness.com/sad/18> and I think similar to static vars in C++ and Java) ?
rindolf ncow: yes, it is.
uri ncow: you can use state vars in recent perls too
ncow but I keep thinking there was a way of doing it with outer and inner subs too, or no
rindolf ncow: thing is in sub outer { my $c = 0 ; .... } the $c is temporary.
ncow uri: yeah I just saw that in perlfaq7 just before you said that, thanks though :)
rindolf ncow: which causes weird side-effects with a package-scope inner sub.
ncow rindolf: but shouldn't the inner sub have a closure over $c though?
rindolf ncow: it will.
rindolf ncow: but every time you call outer() you get a different $c.
apeiron Windows also accepts a sledgehammer to the harddrive.
ncow rindolf: I'm talking about calling the inner one
ncow rindolf: could be interesting to call the outter one to re-prime or something (just kind of thinking aloud, I could be completely wrong)
ncow (please let me know if I am)
cj Botje: that's not the point. Some systems don't :)
rindolf apeiron: Windows requiring doing a SOAP request to a .NET service (that is very picky about its scope) to call an OLE component for writing an Excel macro to do that.
apeiron And for those we have File::Spec.
rindolf apeiron: it's not as straightforward as in UNIX.
ncow I think I found a mis-type in perlfaq7 <http://perldoc.perl.org/perlfaq7.html#How-do-I-create-a-static-variable%3f>, under "How do I create a static variable?"
ncow It says: sub counter { state $count = 1; $counter++ }
ncow I think that should be $count++ not $counter++
rindolf apeiron: http://www.shlomifish.org/humour/fortunes/show.cgi?id=joel-forum-unix-shooting-in-the-foot
rindolf ncow: yes, it should.
rindolf ncow: or "$state $counter = 1;".
ncow rindolf: oh shit, that is so true. I hate ActiveX like the mf-ing plauge
ncow rindolf: yes, though counter is the sub's name, I think the var was meant to be called $count
ncow as in the count that the counter counts :)
rindolf ncow++
rindolf ncow: it still exists in my github fork of the perl-doc-cats repo.
ncow a counter doesn't counter counters unless it is in fact a counter counter :)
uri ncow: go back to sesame street!
ncow lol
uri it seems to be where you learned your perl!
uri use Big::Bird;
ncow but does a counter counter count it self as a counter counter?
uri that is counterproductive thinking
ncow (or does it just consider itself a cunt and thus only count it self as a cunt counter since it only counts cunts?)
ncow ok I think I'm done with that one...
ncow sorry, when ever someone mentions ActiveX it makes me all twichy, and if there is no one around to choke into submition, I tend to write odd things, like a ram memory discharge
Khisanth a CounterCounterFactoryCounter
szr ActiveX will do that
rindolf ncow: heh.
rindolf ncow++
ncow ooooh now we're talking
rindolf ncow: anyway, how do you want to be credited in the commit log?
uri rindolf: call him the miscount
rindolf uri: heh.
ncow you don't have to do that, but if you really want to, ncow is fine. Necrocow may be me old moniker (and freenode account name) but ncow is what I've been going by for quite a while now
rindolf uri: Count von Counter
ncow so I'm the count of miscountistu?
rindolf ncow: pushed.
ncow cool
ncow glad I could help.
rindolf ncow: you're welcome.
rindolf “One Perl One-Liner, Two Perl One-Liners, Three Perl One-Liners. <Thunder and Lightning> Ha ha ha ha ha ha.”
rindolf -- Count von Counter
ncow rindolf: haha
ncow rindolf: god I still remember that from when I was a kid watching PBS
rindolf ncow: I remember it from the Israeli Sesame Street.
ncow Israeli? didn't know they had their own version
rindolf ncow: they call him there "Mar Soffer." - "Mr. Counting"
rindolf ncow: we actually had two at two different times.
Channel #perl
Network Freenode
Tagline How many counts will a counter count if a counter could count counts?

Using your Experience Points

Display

federated_life holy fucking shnikes mst was right
mst federated_life: you'll find that happens a lot.
mst federated_life: every time I level, I put all my XP (= experience points) into "being right" rather than boring things like "tact" ;)
LeoNerd mst: Not ranged weapons?
komodo haha
LeoNerd Gain enough XP and you actually -can- stab people over the Internet
komodo sweet
komodo I wouldn't recommend stabbing PHP people though, I hear they bleed acid
anno bring a blotter
komodo gotta take 'em out from a distance
komodo ah
Khisanth LeoNerd: do nukes count as ranged weapons? :)
LeoNerd I don't see why not
LeoNerd If it's ballistically launched
Khisanth well it's a bit more ... hmm how should I put it
tm604 I'd stand well clear of anyone classing a nuke as a melee weapon.
mst LeoNerd: "no, gunner, your target is <here>" / "oh, of course it is" *BLAM*
mst LeoNerd: aka, being right allows you to -control- ranged weapons :)
Channel #perl
Network Freenode
Tagline Using Your Experience Points

Hurting People

Display

buu PKRUMINS
rindolf pKrumins
pkrumins BYY
rindolf pkrumins: BUU
rindolf pkrumins: buu is back.
pkrumins rindolf: i know
rindolf pkrumins: he said he was close to disappearing.
pkrumins WHAT
pkrumins buu, is that true
rindolf pkrumins: he was sick.
pkrumins HE WASNT
buu =[
buu I was
pkrumins HOW
buu Genetic defects!
pkrumins OH NO
pkrumins OH NO NO NO
mauke substance abuuse
buu Owch
buu That joke almost qualifies as abuse
mauke now that I've hurt mst and buu, my work for today is done
pkrumins you still havent hurt me
rindolf mauke: hold on! You haven't hurt me yet.
buu haha
* rindolf is hurt that mauke didn't hurt him.
rindolf Oh wait.
mauke just as keikaku.
rindolf mauke: OK, now your work for today is done.
pkrumins NO
Channel #perl
Network Freenode
Tagline Are you being hurt?

The Shouting Su-Shee

Display

rindolf pkrumins: have you seen http://weblibs.herokuapp.com/ ?
pkrumins i haven't
pkrumins looking at it now
pkrumins haha
pkrumins hipster wannabe-programmer nonsense
rindolf pkrumins: yes.
rindolf pkrumins: Su-Shee had told us about it.
rindolf pkrumins: a while ago.
pkrumins where did she disappear btw
pkrumins oh there she is!
pkrumins i thought she left
mst nah, she's just been quiet recently
pkrumins right.
Su-Shee NO IM NOT. ;)
* mst confiscates Su-Shee's megaphone and hugs her
Su-Shee I can yell naturally!
mst then you won't need this megaphone back, will you? :D
anno .oO(1000000 phones)
Su-Shee *haha* :)
Channel #perl
Network Freenode
Tagline Alive and yelling

A Natural Stupidity Carbon-based Bot

Display

Altreus I made a new bot running on a carbon-based AI system
apeiron carbon-based? So it's written in C for a Mac?
Altreus no it's me
rindolf Altreus: you're a natural stupidity system - not an artificial intelligence one.
rindolf Altreus: or maybe natural intelligence.
Altreus well you're a poo poo head
Altreus :)
apeiron perlbot, altreus is also six years old
perlbot apeiron: Stored altreus is a small cat (see: http://avatars.plurk.com/3405142-big.jpg) | six years old
Altreus That's generous
rindolf Altreus: calling someone a "poo poo head" proves that this person has natural stupidity.
Altreus rindolf: But the natural stupidity was postulated before the use of the phrase; hence you can't discount the fact that using the phrase was in response to, rather than proof of, the assertion.
rindolf Altreus: yes, but it still proved it after the fact.
rindolf Altreus: Q.E.D.
Altreus rindolf: Except it is possible for an intelligent system to act stupid
Altreus hence it is not, in fact, proof.
rindolf Altreus: that's right - it has the right to in fact.
Altreus Indeed. So given that it has the ability, the right, and the motivation to do so, it is reasonable to assume that in fact that is what happened
rindolf Altreus: OK.
Altreus You would have to gather further data on the system to determine it.
rindolf Altreus: in that case, calling someone a "poo poo head" has the property of having natural stupidity.
rindolf Or acting under the influence of natural stupidity.
rindolf Possibly artificial natural stupidity.
Altreus rindolf: artificial natural stupidity ._.
Altreus I think your sentence is at odds with itself
Altreus Well, your fragment
rindolf Altreus: it's an oxymoron.
Altreus correct
rindolf Oxymorons are indicative of natural stupidity.
Altreus I gave the artificial impression of natural stupidity!
Altreus Stupid phrases are an indication of a) stupidity or b) intelligence
rindolf Hence stupid phrases are not indicative.
Altreus Quite so
rindolf Only intelligent phrases can be indicative of something.
Altreus Stupidity is an absence, and you cannot prove an absence without first proving an exhaustive set.
rindolf Wise men know they are stupid.
Altreus :)
rindolf Whereas foolish people think they are not.
rindolf The earliest Greek philosophers tried to philosophise in verse.
rindolf Which didn't work too well.
Altreus Maybe they should have chosen a different meter
Channel #perl
Network Freenode
Tagline Detecting natural stupidity

Negative Numbers

Display

tziOm what is the most efficient way to do: floor($foo/600)*600
ChibaPet um
Altreus floor $foo
Altreus :P
DrForr Premature microoptimization detected at line 0.
Altreus I think that /is/ the most efficient way to do it
ChibaPet what about int $foo?
ChibaPet or is floor more efficient?
Altreus I think this is rounding to the nearest 600
Altreus er, the lowest 600
Altreus int truncates towards 0
ChibaPet doesn't floor do that as well?
DrForr You're looking at microoptimization in *math*. Surely there are bigger fish to fry?
Altreus ChibaPet: consider negatives
ChibaPet Oh! Negatives. Slipped right by me. Thanks.
Altreus the difference in most operations is evident in negatives, except the various rounding techniques
fizzie Negative numbers, brr, they're just not natural.
Altreus :)
rindolf fizzie: :-)
rindolf fizzie: but they are real.
rindolf fizzie: and they aren't imaginary or complex.
Altreus they're not /that/ real
rindolf fizzie: though they can be irrational.
rindolf Heh.
DrForr -5 ∈ ℝ
antox I think tziOm wanted to round down to 10 minutes. Maybe s/.:..$/0:00/ is an option? :D
* Altreus smacks antox with a bin
* rindolf smacks antox with a larger bin.
Altreus this one http://www.suasnews.com/wp-content/uploads/2010/12/dusty1.gif
* ChibaPet hands antox a fish.
shorten Altreus's url is at http://xrl.us/bmpbt6
rindolf My bin is bigger than Altreus'.
DrForr Rainbow trout all 'round!
Altreus was that a pun
antox Anyway guys, I haven't got if I should be proud of getting smacked by a bin.
Altreus no
Altreus it's pain-based learning
rindolf antox: you were smacked by two bins - one smaller, one larger.
Cipher-0 You made a mistake???!one!!! Clean out your desk at once!!!!!!eleven!!!!!
antox And no supper today!
Channel #perl
Network Freenode
Tagline Don't be so negative.

Laziness

Display

shadowpaste "thrig" at 72.14.189.113 pasted "countcounterdecountersville for morissette" (22 lines) at http://scsys.co.uk:8002/176933
rindolf thrig: why are you using qx... in void-context? You should use system.
thrig because it's a quick example and I'm lazy
rindolf thrig: laziness!
rindolf thrig: laziness will be the fall of mankind but I cannot be arsed to do anything about it.
mst I tried, but last week's meeting of the apathy society was cancelled due to lack of interest
thrig ~~ Mr. Wiggles-san!
apeiron apathy society? couldn't care less myself.
thrig the Something or the Other re. Pirates Act
LeoNerd "What do you think are the major causes of ignorance and apathy in today's voting public?" "Hrm.. don't know. Don't care, really.."
Invis :D
thrig back in the day, one would get smited for lazing the day away watching Aramaic Idol
rindolf thrig: when I was younger, I watched Sumerian Idol.
thrig it's in estivation now, I hear
cfedde rindolf: gilgamesh was such a bastard on that show.
Channel #perl
Network Freenode
Tagline I don't care about my apathy

Complex Math

Display

Teratogen eval: 1+1
perlbot Teratogen: 2
Teratogen it works!
Teratogen eval: e**(pi*i)
perlbot Teratogen: 1
Teratogen oh dear =(
vreg eval: 1/0
perlbot vreg: ERROR: Illegal division by zero at (eval 1702) line 1.
Teratogen eval: sqrt(-1)
perlbot Teratogen: ERROR: Can't take sqrt of -1 at (eval 1702) line 1.
Teratogen what the
tm604 http://search.cpan.org/perldoc?Math::Complex
vreg eval: use Math::Complex; sqrt(-1)
perlbot vreg: ERROR: Can't locate Math/Complex.pm in @INC (@INC contains:) at (eval 1702) line 1. BEGIN failed--compilation aborted at (eval 1702) line 1.
LeoNerd Math::Complex? Why not Math::Simple?
rindolf LeoNerd: heh.
rindolf Simple Numbers.
rindolf Math::Tiny
rindolf Math::Tiny::ButMaintained
LeoNerd Hehe.. Math::Tiny. Only copes with the range [0,1)
rindolf LeoNerd: sounds more like fuzzy logic.
rindolf LeoNerd: this [0,1) thing reminds me of this joke of mine - http://www.shlomifish.org/humour/fortunes/show.cgi?id=jewish-deduction
LeoNerd Hehe
rindolf Math::Jewish.
Channel #perl
Network Freenode
Tagline Making Complex Math Simple

Jumping Off a Bridge

Display

PerlJam m4rcu5: you need a newer perl to use the /r modifier to tr///
mauke also, why are you reading 5.14's perlop?
apeiron "because that's what I found online"
m4rcu5 mauke: too old? i tought that de default install of gentoo came shiped with a bit more up2date version of perl :P
apeiron snrk
m4rcu5 mauke: because thats what perldoc.perl.org served me ;-)
mauke and why are you going to perldoc.perl.org?
alnewkirk if perldoc told you to jump off of a bridge, would you?
rindolf alnewkirk: if Chuck Norris told me to do that, I would.
PerlJam rindolf: Chuck Norris wouldn't tell you … he'd just round-house kick you off of the bridge.
rindolf PerlJam: heh.
rindolf PerlJam: what if he's nowhere near the bridge?
alnewkirk rindolf: chuck norris is everywhere yet nowhere in particular
alnewkirk … like the wind
Channel #perl
Network Freenode
Tagline I’ll jump off the bridge when I get there.

Deprecation

Display

Su-Shee SO I TURNED TO YOU FOR HELP IN TIMES OF DESPERATION…
Botje desperation is for wimps
anno prosperation?
Altreus deprecation is an outdated concept and we prefer not to do it
Su-Shee let’s deprecate deprecation.
alpha-- agreed.
alpha-- oh wait.
Su-Shee that would be a deprecation
rindolf Who will watch the watcher?
rindolf Who will deprecate deprecation?
Su-Shee shouldn’t someone deprecate the deprecator in that case?
* rindolf deprecates the deprecator who is deprecating deprecation.
Altreus that's OK, it's not deprecated yet
Channel #perl
Network Freenode
Tagline To deprecate deprecation, we first need to stop deprecating.

Ampersand’s Many Friends

Display

el_seano is there ever a good reason to omit ampersands from subroutine invocations?
* el_seano <- noob
mauke wrong question
archon- always
mauke is there ever a good reason to add ampersands to subroutine calls?
archon- almost never
el_seano it seems like a nice touch to include the sigil so there's no ambiguity
rindolf el_seano: http://perl-begin.org/tutorials/bad-elements/#ampersand-in-subroutine-calls
Yaakov Ampersands are among the coolest punctuation marks & add their coolness to everything they are used for.
mauke el_seano: what ambiguity?
apeiron foo() # pretty umambiguous
archon- &Yaakov&
* rindolf prefers ampersors.
rindolf Or ampernots.
Yaakov AmperSnot
archon- amberbuts
archon- amber?
archon- amperbuts!
el_seano :D
Yaakov ampersif
tybalt89 ampersand followed by amperbuff and amperpolish...
Yaakov amperbeadblast
Channel #perl
Network Freenode
Tagline If you like ampersands, you’ll also love…

Chuck Norris and Perl

Display

RiXtEr-Work thanks perl people! Sorry I am a newbie!
apeiron Don't apologize for being a newbie
DrForr RiXtEr-Work: We all were at one time. Well, except maybe Larry.
apeiron Apologize for being stupid and then fix it
RiXtEr-Work drforr, I wrote a bunch of perl back in about 2003-2005 era, but if you don't use it you lose it I guess..
rindolf DrForr: Chuck Norris was never a newbie!
rindolf Chuck Norris will kill anyone who implies otherwise.
RiXtEr-Work rindolf, chuck norris is the perl interpereter...
rindolf RiXtEr-Work: heh.
rindolf Only perl and Chuck Norris can parse Perl.
RiXtEr-Work haha
DrForr Naw, all Chuck Norris has to do is *look* at perl and it interprets itself out of fear and respect.
RiXtEr-Work Chuck Norris doesn't need to program, his computer does what he says when he says it.
rindolf Chuck Norris taught God how to create the universe.
DrForr Insert Higgs joke here.
Channel #perl
Network Freenode
Tagline I was a newbiew once. Chuck Norris wasn’t.