| |
| |
| |
|
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 38
Comments:
<0> lol <1> Perl Over Everything <2> and CGI::application. <3> I do sudo pkg_add ftp://some.mirror.com/path/to/gmake.tgz <1> and CGI::Prototype <1> and my ***-travel. :) <3> and mod_perl, but that's mostly me complaining about DSO's and libperl.so for the past 2 days <3> lol <1> australia, mexico, brazil... <3> need i remind you? <4> what func can I use to format a string >80 chars so that it wraps properly (doesn't break a word) in an 80 char term <1> there's Text::AutoFormat <2> brlancer: look at Text::Wrap <5> damn...i got a huge problem that i have no idea how to solve, god damnit <6> damir: we'll need more explanation than that to help you with it then. <2> brlancer: better yet, Text::Format.
<1> let's just start solving random problems <1> maybe they'll be part of it <2> merlyn: isn't Text::AutoFormat Damian's highly magical module? <1> so - a train leaves chicago at 4:30 in the afternoon, travelling 60 mph... <5> its this unicode crap, i have a chat server with web interface (using ajax and stuff) and its also listening on tcp socket accepting IRC connections <1> damir - are you using POE? <5> i want to allow people to use different nicknames, like in arabic or swedish <5> server is not the problem merlyn <1> apparently it is <5> its converting all this unicode stuff <1> or you wouldn't be asking about it <1> that's why I asked <5> how do i accept utf-8 from web browser and then display that to irc clients? <7> very carefully <5> they just see bunch of **** <6> damir: well first you have to pin point exactly where it's getting converted. <5> mIRC doesnt have unicode support <1> how will the irc clients know it's a UTF8 encoding? <8> stop using mirc then. <1> you can down-convert with Encode <2> damir: can you try it with X-Chat or whatever? <5> its like telling google not to develop website that will work on IE Botje <1> I did it for a column just recently <4> rindolf / merlyn -- I'm reading up on those modules now. thanks <1> oops <5> merlyn, you mean convert utf-8 to "something" and send it to irc clients? <1> ... use Encode qw(encode); <1> ... my $desc = encode('ascii' => $headline->description); <1> that ascii-fies the string as best it can <2> brlancer: you're welcome. <5> how fast is this encoding? I will have to do that for each line i get from some client <5> could be 100's in a second <8> ... <1> why does it matter? <1> it's the right thing, and as fast as it can be <1> if that's not enough, get more CPU <1> you can probably do the wrong thing quicker. :) <5> yea heh <1> so for each TCP connection, you'll have to have some way to know what downconverting to do <1> because some of them *might* want utf8 <1> *and* some of them might be *sending* utf8 <1> so you need to have everyone register what type of encoding they are using <1> others may be sending latin-1 <1> and that's not compatible. :) <5> i can just ***ume that from web browser i am getting and *want* to send utf8 <5> from irc clients ascii <5> from/to <1> be sure you include the right encoding on the page response then <5> i am <5> this will be cool....knowing i am doing it the "right way" heh <5> merlyn, i get bunch of question marks when using encode() <8> ascii kind of ****s for arabic <5> its not arabic, its "" <1> those are the characters that don't have an ASCII <9> what is the difference between a reference and a weak reference? <1> Hmm. I just saw \366\345\344 - are you sending latin-1 here? or utf8? <1> immute - weak references don't get refcounted <8> immute: if something is only reachable by weak references, it may be garbage collected. <1> they let the object go away, and then become undef. <1> you'd use it for A pointing at B pointing back (weakly) at A <1> if the latter wasn't weak, it'd never go away unless you manually broke the link
<5> here in the channel? <5> i have it on my keyboard heh <1> yes, here in the channel. <1> I can send utf8 - Ingy dt Net <1> if you didn't see "Ingy dot Net" with dots over the o, your encoding is messed up <5> i dont, i am using mIRC <8> get a decent irc client then. <1> Ahh. <1> That's why \366\345\344 then - it's probably sending latin-1 <2> merlyn: I didn't see the dots. <2> dt <5> i am pretty sure that string i am encoding is in utf8 <1> I saw the dots there <8> yay dots! <1> o/~ dots the way, uh-huh uh-huh I like it... uh-huh uh-huh <5> merlyn, encode should recognize utf8 automatic or ? <1> Only if you told it that on the read <1> a string has an ***ociated encoding <1> how did you get the bytes into the string? <1> unless otherwise stated, it's just "bytes" <1> Perl doesn't know the encoding <5> it says perl's internal encoding <1> perldoc perluniintro <10> perluniintro - Perl Unicode introduction. To access this perldoc please type, at a command line, 'perldoc perluniintro'. You may also find it at http://perldoc.perl.org/perluniintro.html <1> please to be reading that. :) <5> i have use utf8; <1> please to be reading. <1> I think it's time I jumped into the shower and started doing my laundry <1> in case someone decides to come over, although that's unlikely. <5> ah crap, i have binmode $client, ":utf8"; <11> GumbyBRAIN: clams ... <12> I use only one exec will be done. <13> This channel is _dead_ ! <14> Does its spirit live on? <14> Perhaps in a different universe... or maybe just a different IRC server? <15> not normally <13> Yea, the spirit moved to irc.perl.org <13> but it's trying to move back, I see <13> Let's all talk about nonsense to get the spirit back! <15> it is normally no let this <13> perlbot talk about nothing <13> perlbot be like nothing <16> <nothing> CAN I BORROW SOME OF UR BRAINPOWER PLZ? I DONT WANNA LERN PEARL!@! <13> YEA PERLBOT IVE GOT MORE THAN ENOUGH :P:P:P:P:P <9> perlbot: jerk it <9> hmm <9> workbench: cube it <17> That contained a sentence with fewer than three words. <13> perlbot, jerk it is Jerking it <16> added jerk it to the database <17> It's for this reason that I've started selling TSA ****S! socks and HANDS OFF, LIBERALS! butt plugs. <13> perlbot jerk it <16> Jerking it <13> ^_^ <13> workbench help <13> workbench, help <17> There's no help for topic 'help'. <13> ... <13> Riiight. <9> perlbot: no, jerk it is <rss="http://www.phreeow.net/cgi-bin/jerkme.rss"> <16> added no, jerk it to the database <13> I'm BQSed. <13> :P <9> perlbot jerk it <16> Jerking it <13> perlbot no, jerk it <16> <rss="http://www.phreeow.net/cgi-bin/jerkme.rss"> <9> must not be like purl <14> Thanks for the object lesson <9> perlbot-- purl++ <13> really ;) <13> perlbot, forget jerk it <16> removed jerk it from the database <18> no im weird i just broke my keyboard
Return to
#perl or Go to some related
logs:
celeron-m i586 or i686 apt-get cant find xorg-driver-fglrx query between now and week ago mysql
mandriva military Time syntax of mysql_fetch_rows gentoo xine unsupported audio codec mpeg layer 2/3 #gentoo ksensor suse ubuntu enable root password python list subfolder syntax
|
|