| |
| |
| |
|
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> GumbyBRAIN: mom::simple <1> simcop2387-zauru: Feyd, even though it doesn't mean it's simple, it just wouldn't spool the document. <2> someone fed GumbyBRAIN Dune? <2> buu: ***uming it's 60606 or close enough, there are two on this site that you could have for $40 shipped <2> buu: well, $40.48 <3> whats the best way to switch the first and last 5 characters in a 10 char string? like aaaaabbbbb = bbbbbaaaaa <2> substr($foo, 0, 0) = substr($foo, 5, 5, ''); works, but with any luck it can be made cleaner :) <4> Why not use reverse() ? <2> because we can ***ume that the first and last five characters are usually not all the _same_ <2> oh, btw, $foo .= substr($foo, 0, 5, '') should be a bit more sane :) <2> more obvious what it does, and there's only one substr call :) <2> but if you might have more than 10 characters in the string, the first one wins :) <5> eval: $foo = "aaaaabbbbb"; $foo .= substr($foo, 0, 5, ''); print $foo <6> Botje: bbbbbaaaaaReturn: 1
<5> ehm. <5> wtf <5> dries@kaa ~ $ perl -le '$foo = "aaaaabbbbb"; $foo .= substr($foo, 0, 5, ''); print $foo' <5> aaaaabbbbbaaaaa <2> Botje: you're using '' inside single quotes <5> oh <2> Botje: so it evals to nothing and perl is seeing substr($foo, 0, 5,) <5> :( <2> Botje: I did the same thing ;) <5> :p <7> Ahah <8> ehh, how to get vi to use perl syntax? i've installed the vi perl thingy <2> sdakota: :syntax on, ***uming that it's recognized the file as perl <5> :set syntax=perl <9> :syntax enable <9> :set ft=perl <8> thanks <2> sdakota: also useful to put into vimrc are "filetype plugin indent on" and "let perl_extended_vars=1" -- unless you don't like either of those <2> and "colo elflord" because anything else is heresy <7> elflord is ****ing blinding. <7> Hrm. Anyone on a reasonable fast connection want to send me the starcraft iso? <8> wow cool <4> buu is a software p1r8!!!1 <5> OMG PIRACY <7> ew73: Naw, I can't be a pirate <7> I own starcraft <7> Thus making it impossible fo rme to pirate it. <4> That's what YOU think. <7> Pssh. <7> Now shut up and send. <10> sup guys <5> /dcc send buu hello.jpg <7> Botje: Boring. <10> anything good been happnin lately <5> ah, i forgot. buu is a platinum member of the Goatse Appreciation Syndicate <7> No <7> Send me sc <11> dammit, will someone make perl fast. <7> integral: perl6! <2> buu: so is $40.48 too much? :) <4> buu: IF you can't find SC in some random torrent, you ****ing ****. <11> buu: Pugs *****S* <7> hobbs: No, I'm just too lazy to wait <7> ew73: They're slow and stuff =[ <7> I found a ****ing bw iso too <4> Lurkers pwn. <7> Yeah, they do. <8> how to capture a ctrl+c and use it? (or capture signals) <11> did people use perl for CGI scripts before multi-gigahertz computers? <11> sdakota: $SIG{INT} <2> sdakota: perldoc perlipc , the very beginning <12> The perldoc for perlipc is at http://perldoc.perl.org/perlipc.html <5> integral: writing gigantic security holes a la Matt really doesn't take much (brain|cpu)power <8> integral: what to do with $SIG{INT}? Where to use it? Do I need to make that a reference to a sub or something? <11> Botje: ah, they just didn't use modules <2> buu: I'd send you this one for a twenty, but it's not really mine ;) <11> sdakota: perlvar would seem kind of obvious... <13> buu++ # perldoc bot works! <2> perlipc is slightly less obvious, but more informative :) <8> integral, ok
<11> oh dear, I predict that buubot will be banned soon for that one. <11> oh, lovely, the idiot uses /amsg <4> People used perl for cgi! Mostly it was mod_perl though. <2> nah, mostly it was CGI <11> like back in '98 <11> but I never remember using DBI in a cgi, just DB_File. Maybe DB_File is m***ively faster <2> stupid mediawiki title inadequacy. The closest it can come to "mod_perl" is "Mod perl" because timwi is a little bit dense <4> Back then, the general strategy was something along the lines of making a dbm full of "parsed" data and running a cron to keep the dbm updated. <11> it's amazing they haven't fixed that <2> and to me that means something altogether different. :) <11> ah, DBI is about 0.173s but DBI_File is about 0.098 <2> integral: they could have years ago if they had any sense, but if they did now everything would break <11> I guess that makes all the difference <11> they wrote mediawiki from scratch dammit <2> yeah. Awful PHP scratch with the most disgusting parser ever <11> it's not like it took them long to get rid of WikiWords for the majority of linking, going back to good old original hypertext linking <4> Hey now. <4> There are children present. <11> Best to start cursing perl asap... <2> integral: see, the sensible thing would be to change it over to a "case insensitive / case preserving" system (with the obvious extension to certain-punctuation-insensitivity) <11> *nod* <2> integral: but if they did that they would suddenly have a million clashes because for example both "eBay" and "ebay" exist <11> ugh, why?! <2> one is a redirect to the other of course <11> ugh, idiots <5> ONE TRUE CAPITALIZATION(tm) <4> That's an easy solution! <4> Just append all articles to each other and let the users sort it out. <11> IF YOU USE ALL UPPERCASE IN YOUR URL, JUST TRANSLATE EVERYTHING TO UPPERCASE <5> I LIKE THAT IDEA <14> CLEVER! <7> NO, I THINK IT IS UNHAPPINESS MADE MANIFEST <11> ew73: no, no think Web 2.0. Make the site one page which is a big XML document of *everything*, and then add javascript, CSS and XSLT to implement the links <4> Horray! <7> integral: Dude, brilliant. <14> NO, CAPITALS ARE TEH CORE OF WEB 3.0! <7> Wikipedia as one page. <14> ALL YOUR LOWERCASE LETTERS ARE BELONG TO US!!!!111ONETHOUSANDONEHUNDREDELEVEN <4> Articles can come up in a 200x600 box! <14> alright i'm done. <11> tiddlypedia <7> ew73: Reasonable. <4> And on the right side of the browser, you can see a scrolling list of WHAT OTHER PEOPLE ARE READING <2> integral: and the first-character-caps and underscore thing is done with a down-mapping, which is why the system is completely incapable of storing a name with an underscore or a lowercase first letter <8> can I use exit() to jump out of an eval too? like die() but without any message? <10> what message do i put at the beggining of every perl program again... #! usr/bin/perl? <11> urk <5> #!/usr/bin/perl <5> actually. <11> qwerty_: don't use a relative path like that <4> Sometimes #!c:\perl\perl too. <11> sdakota: exit exits the program. goto will jump out of an eval{} <7> sdakota: What happens when you try? <7> ew73: #!/perl/perl <2> integral: because "mod_perl" maps to database key "Mod_perl", and "Mod perl" maps to database key "Mod_perl" <7> hobbs: Hilarious. <2> integral: but "mod_PeRl" maps to "Mod_PeRl" <8> ok, thanks, integral <11> "database" <2> integral: because it's only case-insensitive on that one letter. To make it nice for people who want to make a link the first word of a sentence <11> good to know that mysql supports columns though <2> integral: _that's_ the excuse <10> integral: why shouldnt i use that? <11> qwerty_: because it's STUPID, and you will SMELL <2> qwerty_: and it mostly won't work <10> truthfully... <11> unless running stupidix <10> so what should i put? <7> qwerty_: They told you
Return to
#perl or Go to some related
logs:
#linux getting mediawiki installed in ubuntu tutorial jbdubbs #awk #gentoo get serial number motherboard #oe #linux #lisp Build of the package nvidia-kernel-source failed! How do you wish to proceed?
|
|