Home Page   #javascript  #perl  #c  #openmoko  #php  #ruby-lang  #apache  #cisco  #java  #mysql   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

13 November 2007


Total 35 pages. You are browsing page 3/35.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

01:28 <****> mst: Google hasn't been much help, and the psql shell let's me insert it with or without quotes. Yeah I already upgraded DBIx::Class, DBI, and DBD::Pg
01:28 <****> mst: oops I only did DBI and DBD::Pg, I'll see if a DBIx::Class upgrade fixes it
01:29 <****>execute
01:29 <****> jjore-w: and that is either a error in documentation or implementation since the documentation says it's a byte
01:29 <****> fwiles: so unless DBD::Pg needs an explicit typed bind for numeric ...
01:29 <****> mst: ok well then that isn't going to help
01:29 <****> fwiles: (in which case it'd need a DBIC patch)
01:29 <****> fwiles: I'd try and repro in plain DBI
01:29 <****> mst: will do
01:33 <****> Khisanth: it is a documentation bug.
01:33 <****> pack/unpack are not obvious enough when it comes to interactions with unicode strings.
01:34 <****> there are long threads on p5p which also detail how many ways they are just implemented incorrectly in the face of unicode.
01:34 <****> mst: I get it with straight DBI also... hmmm
01:34 <****> mst: when using a bind parameters
01:36 <****> mst: er I mean place holders... sorry too little sleep! :)
01:51 <****> mst: yup it's a bug in DBD::Pg, fixed in the soon to be released version
01:56 <****> How can I get a string length and how can I work on a string character by character, please? I am trying to find this in the documentation with no success
01:56 <****> hi
01:57 <****> hi
01:57 <****> GionnyBoss: perldoc -f length
01:58 <****> GionnyBoss length() :|
01:58 <****> And if you want to loop over it char-by-char, you can split it.
01:58 <****> iank, bp31416 , thank you.
01:58 <****> for (split //,"lulz") { print $_++ };
01:58 <****> eval: for (split //,"lulz") { print $_++ };
01:58 <****> iank: lulz''
01:58 * iank fails
01:59 <****> iank: uhm, what does it mean? Do you have to use a regular expression for split? Probably I can just read "split" manual :P
01:59 <****> I meant to preincrement -_-.
01:59 <****> GionnyBoss: yes, but if you want to do it char-by-char, just use //. That'll split overy char.
01:59 <****> *every
01:59 <****> .
02:00 <****> GionnyBoss not necessarily, but a regex will be handy :P
02:00 <****> and just a while() at scalar context will do
02:00 <****> I am starting to be used to perl regular expressions and they are so powerful :)
02:01 <****> iank: why did you use $_ ? What does it mean, please?
02:01 <****> can't I use something like: for my $char (split //,"my string that I have to split") { ...
02:02 <****> yep
02:02 <****> iank: ok, got it, thanks
02:02 <****> You can.
02:02 <****> For conciseness in irc, it is sometimes nice to omit the "my $char" part and let $_ be the variable.
02:02 <****> eval: while ("my string"=~/./g) { print "$_ at " . pos($_) }
02:02 <****> bp31416: HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at HASH(0xa617968) at ''
02:03 <****> :'D
02:03 <****> .. not the pos() I expected lol
02:03 <****> heheh
02:03 * bp31416 slaps $self
02:03 <****> pos( $& ) perhaps.
02:03 <****> heheh.
02:03 <****> TIMTOWTDIW
02:03 <****> HASH HASH HASH HASH
02:03 <****> buubot: HASH IT
02:04 <****> bp31416: while doesn't set $_ !
02:04 <****> ....k /me rewrites mental note
02:07 <****> eval: $_
02:07 <****> 'eval'}
02:07 <****> ^_^
02:07 <****> ..
02:07 <****> o_O
02:07 <****> =[
02:07 <****> eval: @_
02:07 <****> iank: 0
02:08 <****> Fail it.
02:08 <****> noes
02:08 <****> no u
02:08 <****> eval: $^_^$
02:08 <****> MooingLemur: ''ERROR: syntax error at (eval 216) line 2, at EOF
02:08 <****> eval: $^_^$;;;
02:08 <****> MooingLemur: ''
02:09 <****> Oh dear, more creative kitty operators?
02:09 <****> deparse: $^_^$;;;
02:09 <****> iank: ($^_ ^ $;);
02:09 <****> mrow.
02:09 <****> :)
02:10 <****> \x1c
02:10 <****> really_deparse: $^_^$;;;
02:10 <****> buu: ($^_ ^ $;);
02:10 <****> USeless bot.
02:10 <****> hehh
02:11 <****> I thought you wuvved your bot.
02:11 <****> eval: use less bot
02:11 <****> iank: ''ERROR: 17703: 17703: Can't locate less.pm in @INC (@INC contains:) at (eval 216) line 2.BEGIN failed--compilation aborted at (eval 216) line 2.
02:12 <****> dwu: I hit because I love.
02:12 <****> I SWEAR BABY
02:12 <****> IT'LL BE DIFFERENT THIS TIME
02:12 <****> JUST COME BACK
02:23 <****> mst: ok nevermind, I'm a complete moron... I had an undef value I was passing through, which wasn't getting automatically set to zero... grrr.... it's always the stupid little errors that take up the most time!
02:24 <****> facebook is written in PHP !
02:24 <****> ... big deal?
02:24 <****> And that matters why?
02:24 <****> aye
02:25 <****> cuddles: that's probably why facebook has so many problems :P
02:26 <****> bace fook
02:27 <****> I was unaware facebook has so many problems.
02:28 <****> It has more than most websites, less than some websites.
02:28 <****> I guess it does have so many problems.
02:29 <****> I liked it better with less features :-\
02:30 <****> The apps/etc. were inevitable once there was an API... the ads I could do without.
02:30 <****> But anyways. *bamf*
02:42 <****> I am writing to a log file that I open it at the beginning of my script and closing it at the end. I noticed that it doesn't write immediately to the file, and I guess that it is normal, because I guess that there is a buffer. How long is this buffer? Should I expect that when this buffer will be full, the file will be written, even if I don't close it?


Total 35 pages. You are browsing page 3/35.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo