#perl
27 October 2007
Total 23 pages. You are browsing page 1/23.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sat Oct 27 00:00:17 2007
--- Day changed Sat Oct 27 2007
00:00 <****> Caelum, what's your systeM?
00:01 <****> Linux looks like this:
00:01 <****> 32262 0.0 0.0 4152 1164 pts/1 SN 17:04 0:00 /usr/bin/perl ./test.pl
00:03 <****> GumbyBRAIN: hysterical raisins
00:03 <****> how is it even more, but perhaps for the best way for historical raisins.
00:03 <****> GumbyBRAIN, dongs
00:03 <****> What somni mentioned earlier in #perl gumbybrain gumbygumby dongs dongs gumbybrain dongs gumbygumby dongs.
00:03 <****> That doesn't seem in-character at all.
00:04 <****> bilbo1507: hmm, I don't remember the details, but when I changed a program to use env, it couldn't be looked up with ps -C anymore... even though when I look now the ps output looks pretty much the same
00:05 <****> bilbo1507: yeah... try doing a ps -C foo with env and with perl
00:05 <****> use pgrep :)
00:05 <****> Caelum, on what OS?
00:05 <****> linux
00:05 <****> content of $^X changes accordingly
00:06 <****> o rmodify $0 to change it to whatever you like
00:06 <****> s/it/the process name/
00:07 <****> The ability to modify $0 is platform-specific.
00:07 <****> Well, rather, the propagation of said modifications.
00:08 <****> ministry of modification propaganda
00:09 <****> Caelum, wow weird:
00:09 <****> bilbo 32417 0.0 0.0 4052 1168 pts/1 SN 17:11 0:00 perl ./test.pl
00:09 <****> bilbo 32433 0.0 0.0 4672 1168 pts/1 SN 17:12 0:00 /usr/bin/perl ./test.pl
00:09 <****> and you're right. ps -C catches the first but not the second
00:09 <****> er other way
00:31 <****> I am actually learning JavaScript and it *hurts*.
00:32 <****> it's not that bad, unless you are referring to the browser incompatibility stuff
00:39 <****> "Half zine. Half blog. Half not good with fractions."
00:40 <****> thesneeze ?
00:40 <****> yup
00:40 <****> i'm trying to use FormBuilder with catalyst and it *hurts*
00:41 * CPAN upload: App-Smbxfer-0.01 by KERISMAN
00:46 <****> bennymack: is that with or without the Catalyst::Controller::FormBuilder ?
00:55 <****> I wish List::MoreUtils worked with array refs, not just arrays :(
00:57 <****> Caelum: override the prototype
00:58 <****> ...or even give it an array: @$aref
01:00 <****> neat, that works!
01:00 <****> perl -MList::MoreUtils=pairwise -le 'print join " ", pairwise { $a + $b } @{[1..5]}, @{[6..10]}'
01:00 <****> anno-++
01:03 <****> perl -MList::MoreUtils=pairwise -le 'print join " ", &pairwise( sub { $a + $b }, [1..5], [6..10])'
01:03 <****> that too
01:04 <****> cool :)
01:07 <****> perl -mList::MoreUtils -wle 'sub pairwise { goto &List::MoreUtils::pairwise; }; print join " ", pairwise sub { $a + $b }, [1..5], [6..10]'
01:07 <****> ah
01:08 <****> avoidance of ugliness
01:08 <****> goto or ampersand ... HMMM
01:09 <****> hehe
01:09 <****> yeah, but only once :)
01:09 <****> goto & considered harmless
01:20 <****> Khisanth: w/Catalyst::Controller::FormBuilder
01:27 * CPAN upload: Data-Serializer-0.42 (+++++) by NEELY
01:27 * CPAN upload: Pod-Multi-0.07 by JKEENAN
01:27 * CPAN upload: Net-SCP-0.08 by IVAN
01:28 <****> I have a call to Storable's freeze that's dieing with a "Can't store CODE items" error, but when I use Data::Dumper I don't see any code stuff in it, any ideas for what I can do to find where it thinks my subref is?
01:29 <****> if it's any help, I'm pulling the data out of DBIx::Recordset, but I'm pretty sure I'm getting plain hashrefs out, and not tied variables
01:31 <****> StoneToad: do you have any references to subroutines there?
01:33 <****> (since that's not something that freeze can store without using B::Deparse or similar)
01:33 <****> nothing that shows up from using Datat::Dumper
01:33 <****> StoneToad: give us example output from Data::Dumper of a recordset which fails
01:34 <****> StoneToad: rebuild the structure from the Dumper string and see what Storable says to that
01:35 <****> eval(Dumper($blah)); should work?
01:35 <****> StoneToad: ''ERROR: syntax error at (eval 238) line 2, at EOF
01:35 <****> yes
01:36 <****> something's fishy
01:36 <****> I'm wondering if it's DBIx::Recordset tieing stuff somewhere...
01:37 <****> hmm, eval(Dumper($var)) didnt work
01:40 <****> "StoneToad" at 216.246.247.125 pasted "output of Dumper()" (12 lines, 510B) at http://sial.org/pbot/28281
01:43 <****> declare $VAR1
01:44 <****> that worked!
01:44 <****> didnt' die
01:46 <****> hard to see what could possibly throw storable
01:46 <****> nothing is even blessed
01:46 <****> but tied() returns undef when I check the hashes I'm getting from DBIx::Recordset
01:46 <****> s/but//
01:46 <****> yea.. that's what has me stumped
01:48 <****> what's the diff between vanilla and strawberry?
01:48 <****> o_O I fixed it
01:48 <****> push @users, {%$_};
01:49 <****> used to be just push @users, $_;
01:49 <****> lalalabsd: strawberry comes with mingw and such, so you can use cpan without installing anything else
01:49 <****> so i should get strabery?
01:50 <****> DBIx::Recordset does do tying, it has a several tie calls in the code
01:50 <****> perhaps you weren't calling tied on the right value
01:50 <****> variable, rather
01:50 <****> thx anno-
01:51 <****> Hi
01:51 <****> hi
01:51 <****> lalalabsd: yes
01:51 <****> I've re-noticed the same problems with POE::Wheel::ReadWrite / POE::Wheel::SocketFactory - when I close both of them, the ports stay open for a minute or so
01:51 <****> I've written a test case and I'm about to pastebin it and the output
01:52 <****> {%$_} would drop an overloaded %{}, for better or worse
01:52 <****> They're in TIME_WAIT?
01:52 <****> damn it I really need a YUILoader module
01:53 <****> dngor: Yes
01:53 <****> http://paster.dazjorz.com/?p=1227
01:53 <****> they're supposed to be in TIME_WAIT, that's what happens to a listening socket after it's shutdown
01:54 <****> That's normal for TCP.
01:54 <****> Is there a way to prevent them from going into TIME_WAIT? I'm having problems restarting a program using the wheels, since I need to wait until all sockets are gone
01:55 <****> Your OS may have knobs to tweak that. apache.org talks about it in the FAQ, I think.
Total 23 pages. You are browsing page 1/23.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
