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

Channels


#perl

12 November 2007


Total 32 pages. You are browsing page 1/32.

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

--- Log opened Mon Nov 12 00:00:00 2007
--- Day changed Mon Nov 12 2007
00:00 <****> trying to learn sorry
00:03 <****> Leonerd, sorry but that module doesn't work really good
00:03 <****> look the output
00:03 <****> lo0
00:03 <****> stf0
00:03 <****> ??
00:03 <****> en1
00:03 <****> in my shell i see a lot of newlines between lo0 and stf0
00:03 <****> Hey; don't complain at me, I'm nothing to do with it
00:03 <****> i've used it as shown in the manpage
00:04 <****>name,"\n" };
00:07 <****> quesiton: I have a Constant.pm variable called $tbd.. how can I call it from a Object.pm subroutine
00:07 <****> $Constant::tbd
00:07 <****> depends on the package :-P
00:07 <****> A constant variable .. ?
00:08 <****> guys, I seeked help at the suse channel but no one was able to help me.. this is my problem: Ive recently updated to openSuSe 10.3 and now, when I try and install perl modules thru CPAN I get: Undefined subroutine &Compress::Zlib::gzopen called at /usr/lib/perl5/5.8.8/CPAN.pm line 5721.
00:08 <****> that's it?
00:08 <****> co thanks
00:08 <****> donato_home: have you tried reinstalling the Compress::Zlib module?
00:09 <****> (manually, if necessary)
00:09 <****> Botje: yes, thru yasty
00:09 <****> yast
00:09 <****> hmmm..Ill do that
00:09 <****> could somebody help a noob understand why when both dbi and sqlite can be threadsafe why dbi::sqlite isn't thread safe.
00:09 <****> there is no dbi::sqlite
00:09 <****> Probably depends on DBD::sqlite
00:10 <****> And anyway, don't use threads :)
00:10 <****> LeoNerd look at this
00:10 <****> http://search.cpan.org/~bluelines/Sys-HostIP-1.3.1/HostIP.pm
00:10 <****> good for cross platform coding
00:10 <****> Ah well, use that then
00:10 <****> Though that'll still have fun on multi-address machines
00:10 <****> it looks what is your OS, then it execute the proper command (ifconfig or ipconfig) and than parse output to get IP address
00:10 <****> E.g. mine would fail
00:11 <****> LeoNerd: why not use threads?
00:11 <****> ifconfig says 192.168.43.3
00:11 <****> Whereas, 'ip addr' correctly reports both 192.168.42.3 and 62.49.94.187
00:11 * CPAN upload: Config-Hierarchical-0.09 by NKH
00:11 <****> Botje: ok the sqlite driver in DBD (?) that is used by DBI (if i've got that right)
00:12 <****> where does it say it's not threadsafe?
00:12 * ology finds it curious that there are no mtree/diff perl utilities for poor-man's IDS.
00:13 <****> ology: you could write the first and earn the adulation of ... a couple
00:13 <****> Botje: that did it, thanks!
00:13 <****> yay!
00:13 <****> PerlJam: Already on the trail. :)
00:14 <****> Botje: http://search.cpan.org/~timb/DBI-1.601/DBI.pm tells me that although DBI is threadsafe some APIs it uses aren't
00:14 <****> though make test for Compress::Zlib failed because of missing deps...
00:14 <****> rust: well, DBD::sqlite doesn't say that, so try it!
00:14 <****> rust: and is DBD::sqlite specifically mentioned as being not thread safe?
00:14 <****> donato_home: yeah, you best reinstall it with cpan now
00:14 <****> Got snort. Setting it up. Just poking around for different things that aren't Tripwire.
00:15 <****> Botje & perljam: I'll go back through my browser history but basically I've found that it isn't threadsafe
00:16 <****> rust: the source doesn't seem to have any global variables
00:16 <****> so that's a pretty good indicator it's okay
00:16 <****> Botje: hummm.
00:16 <****> Has anyone successfully used Mail::Webmail::Gmail to retrieve a contact list?
00:17 <****> Botje: Then there is a problem with my coding :) (which is possible/probable)
00:18 <****> anyone?
00:22 <****> I have 3 threads, 2 open and use a connection to a sqlite db through DBI. Only 1 writes. Both have individual handles (i.e. im not trying to share 1 handle) created in their respective threads
00:22 <****> rust: what kind of threads are we talking about here?
00:23 <****> ithreads?
00:23 <****> On running the script sometimes it's ok, sometimes one thread fails to join back in and other times I get "thread failed to start: DBI connect('foo.db','',...) failed: unable to open database file(1) at dbdimp.c line 94"
00:23 <****> sorry, just starting out here, but I think so yes.
00:23 <****> "use threads; use Thread::Queue;"
00:26 * CPAN upload: Mail-IMAPClient-2.99_05 (++++ ) by MARKOV
00:26 * CPAN upload: MooseX-Daemonize-0.04 by PERIGRIN
00:41 * CPAN upload: Template-Plugin-Filter-Pipe-0.01 by MARCEL
00:41 * CPAN upload: Bundle-MARCEL-0.03 by MARCEL
01:07 <****> If I BEGIN { $ENV{LANG} = "C" } that's already too late; any error messages that perl creates (e.g. $!) are still in user's locale.
01:07 <****> I want to run a dbi script from a server using a remote database server. When I attempt to install DBD::Pg, it asks me where me pg_config is installed. What should I tell it under these circumstances?
01:08 <****> you still need the binary client libraries available (or at least the -dev package)
01:08 <****> LeoNerd: easy, system() yourself if $ENV{LANG} ne 'C'
01:08 <****> adds considerable overhead, but it will stop errors ;)
01:09 <****> Evil and perverse, but interesting... :)
01:09 <****> ((surely, exec?))
01:09 <****> system will pass over everything, no?
01:09 <****> BEGIN { $ENV{LANG} = "C" and exec( $^X, @ARGV ) if $ENV{LANG} ne "C" }
01:09 <****> :)
01:09 <****> sure
01:10 <****> Hrm.. Fail on Windows?
01:10 <****> probably
01:12 <****> on recommendation from #postgresql I installed postgresql-dev and that resolved the issue.
01:13 <****> which is what I was saying ...
01:13 <****> PerlJam: What would you suggest instead of the directory signature diff that one can do with mtree?
01:14 <****> Tripwire is all that I could find but it was more than impossible to find a link for the "open source" version.
01:14 <****>{id}); and ask them how many bloody lines it would take to do that in Java.
01:14 <****> But that wouldn't be nice :P
01:15 <****> perlmonkey2: Just ask them the question in the abstract without referring to Perlk.
01:15 <****> Perl
01:15 <****> hah
01:15 <****> Then say, "But in Perl all you have to do is X!" :)
01:16 <****> ology: They hate hashmaps and say they should always be abstracted to a class. Which in Java is true, as creating a new class saves about 50% of the key strokes, leaving only 30 lines of code.
01:16 <****> They?
01:16 <****> ##java
01:16 <****> To which they will then ask how many lines of code were in the module that you used to do that on-liner
01:16 <****> cheese et al
01:16 <****> cheeser
01:16 <****> Woosta: Hah, no heavier than the Java object manager.


Total 32 pages. You are browsing page 1/32.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo