#perl
02 November 2007
Total 47 pages. You are browsing page 4/47.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
01:27 <****> mh what group? the group apache is from?
01:27 <****> If apache is the user that needs to write to it, then yes.
01:27 <****> sorry 755 not 744
01:28 <****> gonna try 755 then
01:28 <****> always something you want to hear, "I'm going to try some random permission level and hope it works."
01:29 <****> lol
01:29 <****> it worked DSterling :D
01:29 <****> *cry*
01:29 <****> _abc_: the BDB library uses mlock internally, how it uses it and what it uses it for, that I don't know
01:29 <****> thanks a lot :D
01:29 <****> and just saying "fuck it, 777".
01:30 <****> lol
01:30 <****> that name omitted intrigues me!
01:30 <****> guys this was just for testing purposes
01:30 <****> anyway is 755 secure?
01:30 <****> Somni: noone in here. Someone I know.
01:30 <****> i guess it is :P
01:30 <****> insolit: read/write by user, read/(traverse|execute) by group, read/(traverse|execute) by anyone.
01:31 <****> Insolit: man chmod ... permissions are basic stuff.. please spend a bit of time learning them!
01:31 <****> Insolit: the "just for testing" excuse doesn't hold water; it's never just for testing, it always gets deployed
01:31 <****> afk
01:32 <****> Caelum ok, thanks
01:32 <****> wrt realpath() I just whipped up an example in C and pasted it at http://www.nopaste.com/p/aOWmBE20D I don't get it how a Perl module can duplicate that portably (across systems)
01:35 <****> argh that had a memory leak, fixed: http://www.nopaste.com/p/aeYZPRcY
01:35 <****> _abc_: Cwd claims to do it
01:36 <****> Somni: funny i hear that a lot of times :P
01:36 <****> fucking TT
01:37 <****> insolit: it's because it's true.
01:38 <****> don't you ever do simplistic tests, before going for the final implementation?
01:38 <****> absolutely.
01:38 <****> But you don't plug hacks into code/systems and expect them to be removed before deploy.
01:39 <****> Sometimes i do that
01:39 <****> `Removing the hack' always gets bumped off the list of things to do, because you've run out of time, and hey.. it still works, right? :)
01:39 <****> i put a "shortcut"
01:39 <****> then correct the shortcut when i have more time :P
01:39 <****> Except frequently you run out of time.
01:40 <****> when i use system to run a command
01:41 <****> is there a way to know if the command went ok?
01:41 <****> or to get the output of that command
01:41 <****> perldoc -f system, look for the return value.
01:41 <****> If you want the output, you'll want to use qx.
01:41 <****> system returns the exit status.
01:41 <****> or a piped open
01:41 <****> (anyway, exit status is what you should be using to check for success, not output)
01:42 <****> that "perldoc" is something i should have in my system ?
01:45 <****> perldoc ftw
01:45 <****> ftw?
01:45 <****> hehe yes ftw
01:45 <****> for the win!
01:45 <****> oh
01:46 <****> ok just installed it, i usually use cpan
01:46 <****> perlbot ftw
01:46 <****> FTW is a 1994 film about an ex-con who is a rodeo rider. If you mean 'for the win', please say that.
01:46 <****> lmao
01:47 <****> what's the good way to assign unix $PATH to a scalar ?
01:47 <****> my $path = $ENV{PATH}
01:47 <****> cool, thanks dude
01:47 <****> read 'perldoc perlvar' for %ENV
01:47 <****>catdir( @path ); } vpath( '../foo/bar/../baz/.///.qux/../qux/./././.././quux' )
01:47 <****> pravus: foo/baz/quux
01:48 <****> quite nasty, but i think that gets me where i want to be
01:49 <****> Evening.
01:50 <****>form_name($name); $name should be set to the same value as in the html page "<form name="blah" method="POST..." right?
01:50 <****> puff: hello
01:50 <****> http://pastebin.com/d7a1a0770
01:50 <****> puff: The paste d7a1a0770 has been copied to http://erxz.com/pb/5082
01:50 <****> so... this *appears* to do everything just fine, but the forked/exec'd binary never exits.
01:50 <****> When I run the same command line from the shell, it exits fine.
01:50 <****> There is no form named "DICT" at ./mech_test.pl line 28
01:51 <****> am doing a lil learning trying to use mech against a simple webform
01:51 <****> realpath(3) again: I now have a final C version with readline and history of realpath() for your convenience. Can any1 post a link or code in Perl that duplicates its function *exactly* (on *nix only is good enough). Thanks. Link http://www.nopaste.com/p/aeYZPRcY/repaste
01:52 <****> idiotben: i believe it works with name and maybe id attributes
01:52 <****> argh sorry the link is
01:52 <****> :http://www.nopaste.com/p/agmh7EaSd
01:52 <****> _abc_: there's a realpath() port in File-PathConvert on CPAN
01:52 <****> hrm i must be doing something wrong then
01:52 <****> idiotben: it's been a long time since i've used it :/
01:52 <****> pravus thanks, is it known to be good ?
01:53 <****> no matter, i'll keep pokin at it till i figure it out
01:53 <****> thanks prav
01:53 <****> _abc_: no clue. it has no votes and was last updated in 1998. however, it probably wraps XS around your OS's realpath(), so i'm guessing it'd be ok.
01:53 <****> ugh. 9 years of incertitude. wow. must have been perl 4 ?
01:54 <****> An ybody familiar with Proc::ProcessTable?
01:54 <****> 5.005 was released 9 years ago.
01:54 <****> I've been writing Perl for too long
01:54 <****> jagerman: 9 years ago? would have been, what, 1998?
01:55 <****> eval: 2007-9
01:55 <****> jagerman: 1998
01:55 <****> puff: you are using a system with non numeric pids?
01:56 <****> and if the only thing you need to is whether a particular pid is still running, you don't need Proc::ProcessTable :)
01:57 * CPAN upload: Gungho-0.09001 by DMAKI
01:58 <****> Khisanth: Oh, okay, what should I use instead?
01:59 <****> you can just use kill 0, $pid;
02:00 <****> mh system returned me a status "256"
02:00 <****> is there a way to check what this means?
02:00 <****> Khisanth: What does kill 0 return?
02:00 <****> perldoc -f system :)
02:01 <****> true if it's still alive, false if it isn't
02:01 <****> Ah, cool.
02:01 <****> what is a good pointer on perl internals, esp storage ? like a howto or a tute for writing a module that accesses perl data
Total 47 pages. You are browsing page 4/47.
First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last
