| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> And store A really strange Character. <1> prwlr: If you can clearly articulate what is giving you problems, we can help more. <0> How can I do that? <0> $text =~ /(.+) (is|are) (.*)/i <0> I've got that. <2> Uh oh <3> prwlr: or, as PerlJam mention, ask a "real" question and maybe get a useful answer :) <4> Yay, data mining from IRC <5> hobbs: Yow. <3> Masque: bigger than a blackberry or whatever. <5> g0st: Learn about \b <3> Masque: my main machine is out of commission <6> PerlJam, hobbs, thanks guys, i'll try to work on it more and come back here with something concrete <3> when I was in high school, my teacher did one of those students-teach bits as an excuse to sit back for a week <3> my presentation was on transforming between iterative and recursive solutions to problems <7> hobbs: you must have gotten laid all the time ;)
<3> stu: like a madman. <7> hobbs: what were some of the problems you discussed, given it was to a highschool audience <3> stu: I don't remember 100%. Started with factorial and fib and moved on to something a bit more fun. <8> Recursion is painful to learn. <8> I said that some minutes ago. <3> stu: the point was to try to get them to overcome that first mental hurdle to using recursion <2> Also painful to unlearn later. <3> stu: only worked on a couple though ;) <8> I used recursion once in writing my own file browser in Tcl. I was happy that I knew how to do that. The only problem was that... I was wasting my time writing a file browser in Tcl. <7> Peyomp_: haha <7> recursion in ***embly is so intuitive to me (well, recursion in general is aswell) <8> Although later the experience helped me dive into Perl/Tk, so it wasn't a total loss. <7> i remember learning it in college, its just goto statements <7> the fact that its recursive is basically completely hidden <9> how about the Towers of Hanoi? <7> i dunno why people have a hard time with it <3> mjl69: that's a bit too deep for high school. then you get into HOP-cl*** recursion removal :) <8> Today my dog swam 10 laps with me. <10> ??? <3> mjl69: besides which, that entire problem is unintuitive, to me anyway :) <9> that's what I thought. So why does MJD put it in the first few pages of his book? He acts like it's trivial. <9> thank you. I do not feel like such an idiot now. <8> Pavlov, she follows me when I swim laps. <8> She did 10 in a row. <9> not that I didn't get it after much thought. but I just ***umed if it's on page 6 or 7, it should be relatively easy. <3> mjl69: haha. yeah, organization was slightly odd on that book <9> hobbs: definitel <9> y <1> I thought towers of hanoi was trivial. <1> It was one of the first recursion things I ever learned anyway. <3> PerlJam: you're obviously a native hanoian ;) <1> heh <6> im stupid, i didn't check that my filter for . and .. didn't work <6> now it works heh <3> prwlr: that'll cause a few issues <6> hobbs, like a never ending recurse heh <3> prwlr: In any case, for future reference, if you come here, pastebot some code and say "why the hell does this spin forever and do nothing? I can't find it" we'll probably deal with you. But if you say "I have ***ignment X and I don't know what I'm doing" we'll say "that's nice." ;) <8> Instead of homework, perhaps watch Dr. Moreau on The Movie Channel? <6> hobbs, ah yes, thanks, next time :) <5> Dammit. <8> Its kinda like Lost, but old <8> Pausing... <8> :) <5> I need a two word phrase that communicates "This is the number of times this item is linked to an account" <5> For a column heading. <6> Peyomp_, the one with brando? <8> I think so, lemme hit info <3> Masque: is it acceptable to use german? <6> Peyomp_, and the young fairuza balk <8> Burt Lancaster, Michael York, Barbara Carrera <6> Peyomp_, ah the old one <3> Masque: you can write a novel in two words in german :) <2> Masque what does "item is linked to an account" mean? <3> Masque: just go with "item multiplicity" <2> hobbs: Are the words like four hundred syllables long? <2> "acCount" <3> Brend: of course <1> "link count" :-) <2> aclinkount! <5> Brend: I'm reporting a count of how many thingies this thingy is ***ociated with. <3> Brend: the having-been-under-the-ocean-in-a-dangerous-explosion-formerly-green-gem :)
<0> Who the hell gave me that **** before about matching the command argument? <0> Who was that? <11> PerlJam: lnkcnt <0> /^!resolve(\s+(.+))?$/i <0> Does not store what I want in $1. <11> of course not, it's in $2 <5> g0st: It's doing what you tell it to. SURPRISE! <0> yeah, that's what I thought <0> Masque, NOOOOOOOO <11> but only if it matche <12> /^!resolve(?:\s+(.+))?$/ <2> hobbs: Script to superman 5? <5> I already told him to use ?:, I think. <13> Hi <13> I tried sorting a dir with sort "sort readdir(DIR)" and it sorts the filenames alphabetically, but is there a way to sort by filetype? <8> Actually I need to use fetchall_arrayref, since fetchall_hashref is normally used only where the key fields values for each row are unique. <11> damn it! <1> nerdzyboy: sure ... if you know the filetype, you can probably sort on that <13> k, but there is no built in function or arg for sort to do it automatically? <8> $tbl_ary_ref = $sth->fetchall_arrayref({}); that is my start <12> nerdzyboy: uh, no <13> k <1> nerdzyboy: given that "file type" isn't very well defined, no. <13> by extension... <13> all the zip files together, all the jpg files together, etc <12> nerdzyboy: sorting by file type is not common enough to warrant adding a feature to sort that does it automatically; thankfully, sort, when called correctly, will sort a list however you please, with whatever criteria you want <14> extensions are imprecise... lots of unix files have no extensions <1> nerdzyboy: you can certainly split the filename up and sort on just the pieces you want. <2> perl -wle 'print for sort { (reverse $a) cmp (reverse $b) } qw(one.jpg two.gif three.jpg four.gif five.pdf)' <14> Brend: brilliant <1> Brend: heh <2> Gives you the filetypes in the wrong order though :) <14> that has some odd side-effects (the user is probably expecting it to be sorted by extension, and then the main filename in the correct order), but that's still brilliant <1> Brend: well, who says it's wrong? I think it's just right :) <13> k thanks <0> Masque <1> nerdzyboy: you likely want a Schwartzian Transform <0> You said to use \b but it does not help at all. <8> Wait, no <0> Masque: what were you suggesting? <3> hahaha <1> g0st: I haven't been paying too close attention to your problem, but you seem to be lacking a key ingredient in your code: thought. You have to think about what you're doing and know what the syntax means <3> I just opened this package, expecting to find the replacement fan that I need for my laptop <0> Yeah, regex ****s. <0> I barely know it. <3> and found instead The Klein Four - Musical Fruitcake. <3> g0st: you **** too. I barely know you. <15> I'm stoked. Tomorrow, I shall be at Brewfest. <16> why doesnt this match the domains listed? ^[^.]+\.(?:(?:(?:Xvoice|Xgroup|Xmessaging|Xpress|Xmessanger)\.com)|(?:X2voice\.net) <16> because i ****. <16> nm <2> nerdzyboy, I guess the right way would be something like perl -wle 'print for map { $_->[1] } sort { $a->[0] cmp $b->[0] or $a->[1] cmp $b->[1] } map { [(split /\./)[1], $_] } qw(one.jpg two.gif three.jpg four.gif five.pdf)' <2> (enough Schwartz to seriously maim you!) <17> failed to resolve handler HTML::Mason.. any idea what cause this in apache? <12> (split /\./)[-1] <5> Inssomniak: This isn't #mason, or #apache. <2> As Somni says. <8> Masque, I have a first attempt... <2> Masque, or even #html! <8> but it fails because I can't push an arrey reference onto a hash reference... thing a ma bobber. One sec, lemme paste t. <8> s/t/it <18> "Peyomp_" at 67.33.170.80 pasted "First attempt using proper DBI ****s" (20 lines, 681B) at http://sial.org/pbot/18673 <12> hm, or (split /\./, $_, 2)[1] <12> .tar.gz should be lumped together <1> Somni: "extension" needs to be defined clearer. <3> GumbyBRAIN: He's a prfect stranger, like a cross of himself and a fox. He's a feeling arranger and a changer of the ways he talks. <19> Well... Stranger things have gone for oscon lightning talks?
Return to
#perl or Go to some related
logs:
yast eciadsl pppoe #centos #kde python datetime arithmetic #css gtk error gtk_container_propagate_expose ktorrent 2gb elmar cogan #debian undefined symbol: _PyArg_NoKeywords mod_python
|
|