@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37



Comments:

<0> Hrmph.
<1> that's not what I wanted
<0> m4n: I can't seem to get 3 matches out of it though
<2> buu: what exactly is the meaning if I use a*?
<2> 0 or 1 a, right ?
<0> m4n: Yes.
<2> then it makes sense
<2> (i guess) :)
<3> I must say that my expectations for the Aeon Flux Movie were not low enough. GumbyBRAIN could have written a better script.
<2> is there a perl equivalent of sed & ?
<4> m4n: well, a* really means 0 or more; in your first case, that's 0 or 1, yes (just for clarification)
<2> or should I use grouping and then $1 ?
<2> kulp: okay
<0> cfedde: Aeon Flux was actively painful. I couldn't make it through more than 10 minutes or so
<0> m4n: Probably the latter.
<2> okay



<5> HELLO BUU
<2> i cant use that method
<5> PEOPLE HAVE HATED ME INTO NOT USING MANGLE
<6> Shouting--
<6> perlbot: karma Shouting
<7> Karma for Shouting: -1
<8> shouting++
<2> may be the caps lock has got some problem there :-P
<4> does casing matter for karma counts?
<6> perlbot: karma Shouting
<7> Karma for Shouting: 1
<8> ok, so I have a problem.
<4> should have thought of that, thanks
<6> Shouting++ # So people who have bad hearing will hear you.
<6> Actually I have a deaf friend.
<9> Shouting++ # So foreigners can understand you
<6> He's also an old-timer. Says he's been the first computer kid in Israel.
<2> buu: I understood that - thanks :)
<0> Well that's good.
<0> Yaakov: MANGLE WILL LIFE ON.
<6> peterS: are you deaf?
<2> buu: perl -e '$var=a; $var =~ s/(a*?)/ $1#$1 /g; print "$var\n"; ' explains better :)
<10> Good Mornin' #PERL!
<11> i am speshul
<6> perlygatekeeper!!!
<10> rindolf
<6> perlygatekeeper: morning.
<10> blondie?
<12> rindolf: no. that was just a really dumb meme a year or two ago when friendster type networks were suddenly cool
<13> merlyn: turns out Std{io,err}Filter was breaking things. By using Std{in,out,err}Filter separated it's started working
<6> peterS: I see.
<11> O.O
<2> okay guyz am outta here. thanks for all the help.. thanks buu
<6> peterS: is friendster something like MySpace or Orkut?
<12> rindolf: yes
<6> peterS: I see.
<14> How can I trap errors when `use lib "..."' fails to find the module being imported?
<15> rindolf: yes, but way gayer
<6> jpeg: I see.
<11> jpeg: better then?
<12> rindolf: I don't know which of those sites invented the term 'defriend' for removing someone from your friends list, but the term caught on
<6> peterS: I see.
<6> peterS: so it's a pun?
<12> yes
<15> blondie: in the 'lame' sense of 'gay'
<11> jpeg: there is no such sense
<6> Live Journal has friends, etc. So does Advogato.org (which gets really bad spam lately).
<8> I'm retrieving data from Mysql. Booo. Anyway, it's all utf8 encoded. I need to convert it to latin1 before displaying it. Is there some way to do this, other than iterating over every result record and, because the utf8 flag isn't set, decoding to utf8 then encoding to latin1?
<6> peterS: someone once de-certified me on Advogato.
<12> rindolf: advogato has friends now? not just certifications?
<6> peterS: certs are sort of like friends. In a way.
<6> peterS: but no, it only has certs.
<6> peterS: use.perl.org has friends and also foes.
<6> I didn't put any foes there. (I think it's anti-social).
<6> http://www.advogato.org/person/shlomif/ #I've been certified as a Master by a bootload of spammers.
<12> I listed several friends on slashdot long, long ago. no foes, I believe. that's the only "social network" to which I've ever belonged
<8> anyone?
<6> But I'm still a Journeyer.
<8> ****



<6> q[ender]: Well, you can do it in MySQL or in Perl.
<6> q[ender]: Perl has the Encode module.
<12> rindolf: I have always viewed the advogato cross-certification system as a m***ive wankfest. but perhaps that's just me.
<16> Hi guys
<6> peterS: what is "wank" in this context?
<16> hi guys
<8> rindolf, it would be nice if DBI could do it
<16> How can you suppress error messages coming from DBI ?
<12> rindolf: wankfest is a sort of group orgy that feels really good to all the participants but doesn't accomplish anything externally visible
<16> I want to catch the error myself and print it at the end.
<6> peterS: I belong to use.perl.org, livejournal.com, advogato.org. But it's mostly because I blog there.
<6> peterS: I see.
<12> having multiple places to blog doesn't seem all that useful either. but maybe that, too, is just me.
<6> peterS: I'm considering to stop cross-posting my main journal to Advogato.
<6> I'd like to meta-blog about it.
<16> I get the error string with $DBI::errstr, but it prints the error "DBD::mysql::st execute failed:" as soon as the error occurs
<8> rindolf, there's got to be a better way to do this
<6> peterS: these are my blogs: http://www.shlomifish.org/me/blogs/
<0> candyban: That is the behaviour with raise error
<6> peterS: I might also start a blog at oreilly.com soon, too.
<8> rindolf, since the utf8 flag is off, it does not "mix" with other utf8 encoded text correctly.
<16> buu: I have { RaiseError => 0}
<6> peterS: I have two entries with updates regarding two articles I wrote there.
<0> candyban: You might need the one about No warnings, I believe there is a second option
<6> q[ender]: hmmm...
<6> q[ender]: you mean in MySQL?
<6> q[ender]: doesn't mysql has encoding-related functions?
<8> rindolf, as it is now, I'm building the whole result in utf8, and converting the whole document at once at the end. but the bits of data i'm grabbing from mysql are causing trouble.
<6> q[ender]: I see.
<8> rindolf, yeah, I suppose it does, but that's beside the point.
<17> hey all, if one has a string '"12345-A, 54321-B", 10' i can get the 10 with /[0-9]*$/ but how could I grab the 12345-A and 54321-B in an array?
<8> rindolf, the data in the db is utf8-encoded. that's fine. but when i retrieve the data, the utf8 flag is OFF in all the result sets.
<6> q[ender]: then use Encode::decode
<6> perldoc Encode
<18> Type 'perldoc Encode' in your shell or go to http://perldoc.perl.org/Encode.html
<8> rindolf, but then i have to iterate over the whole result set JUST to flip the utf8 flag on. That's... ****ING ugly.
<8> rindolf, as it is, I'm retrieving the data, and p***ing it to TT for processing.
<6> q[ender]: maybe DBI has an option for that, but I doubt it.
<8> rindolf, yeah, I can't find anything.
<6> q[ender]: DBI predates perl 5.6.x
<4> dizzutch, are you trying to get the 12345-A and 54321-B as separate elements or as one (since they're quoted)?
<10> dizzutch: @array = split(/,\s/,$string);
<0> dizzutch: split, match quotes
<0> dizzutch: Alternatively, match quotes, split =]
<17> i'm trying to get items as separate elements, i can use plit to grab the quotes
<17> but if there's only one element, '12345-A, 5' i just want the first one
<16> buu: $dbh = DBI->connect( $data_source, $username, $p***word, { RaiseError => 0}) ... seems I misunderstood what RaiseError did ... It has nothing to do with warnings :/ ...
<17> i could split twice..:)
<17> i always forget about split
<17> i always want to do it with regex..:)
<19> $bananna
<0> candyban: RaiseError causes DBI to die on errors
<0> candyban: There's another Raise I think for warnings.
<19> unless you keep it in eval :)
<0> Supaplex: Well, no, it'll still die
<16> buu: k ... I'll go back to google then ... thanks
<19> it will, but you can trap it. true.
<0> candyban: Why? It's clearly documented.
<6> http://perl-begin.berlios.de/wikis/ - comments, corrections, suggestions - flame away!
<10> rindolf, you're an IDIOT
<10> what? you just want some abuse today?
<8> perlygatekeeper, hello you complete ***MUNCH
<20> sigh
<20> php really needs some lexical scoping
<20> it pisses me off
<6> perlygatekeeper: I'm an idiot? Cool! What's an idiot, BTW?
<20> at the very least...
<21> shut up with PHP
<21> :p
<20> shup, biatch
<16> buu: where? http://search.cpan.org/~timb/DBI/DBI.pm#WARNING_AND_ERROR_MESSAGES ... doesn't help me (perhaps I'm an idiot and I don't understand the docs?)
<22> candyban's url is at http://xrl.us/o3j7


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

WMware Ubuntu
GConf-CRITICAL ** gconf_value_get_string: assertion
real programmers write assembly
installing ubuntu on a secondary hard drive
#web
hda: packet command error: error=0x54 { Ab ...: 2 Time(s)
+ubuntu +how do i restart the network
#bash
#ubuntu
Qmail scanner problems encountered



Home  |  disclaimer  |  contact  |  submit quotes