@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> RiXtEr: RiXtEr: you want something vaguely resembling map { $_->[3] } sort { $a->[0] <=> $b->[0] || $b->[1] cmp $a->[1] } map { /(\d+)_(\w+).jpg/, [$1, $2, $_] } @things
<1> I'd never want something vaguely resembling that
<1> and that use of $1, $2 is dangerous
<1> you're not validating the match
<0> RiXtEr: it's not the only way to do it, but it gives you an idea of the logic on the sort sub
<2> i am glad i am not the only one afraid of that !!!
<1> NEVER use $1 unless you verify the match succeeds
<1> otherwise, you get the "stale" $1
<0> merlyn: I'm aware of these things. But unnecessarily long code examples on IRC only muddies the issue and distracts from the point at hand
<0> merlyn: I'm sure he knows how to make a match
<1> well - if he's asking how, then he's probably not an expert
<1> so you as an expert have now shown him a bad way to do it
<2> hobbs, are you talking about me???? how can you be SURE?
<2> ;)
<3> where's tybalt89 and the other crazy golf guys when you want them
<0> merlyn: besides, a general, slightly dangerous code example is still a decent middle ground between handholding that I'm not getting paid for, and the complete stonewall rtfm technique. Provided it's taken with a grain of common sense. Those without common sense can't be helped anyway :)



<0> I would like to mention that a comma, which will remain nameless, should have been a semicolon :)
<0> but the dot fell off when I was loading the packets
<4> "lkj1" at 68.92.33.147 pasted This works, but how do I add a filter for the string wlan.fc.type_subtype == 12 ? at http://dragon.cbi.tamucc.edu:8080/25
<5> I am able to succesfully capture packets with the Net::Pcap module, but I am having trouble getting a filter set.
<6> eval qq,\$b =~ tr/$a/$b/c,; $b eq $a
<6> for anagrams.
<0> lkj1: All the time you've been here asking for help at every term and you haven't yet considered the idea of learning perl or reading the documentation with an eye to understanding it?
<1> why are you converting a dollar to a dollar
<1> oh... eval
<1> of course, if $a or $b have \ or /, bad news.
<5> That is an incorrect ***umption, hobbs.
<5> And not very helpful at that.
<0> lkj1: I'm just going on the evidence I've got
<0> but I'm tired, as you can tell by the fact that I'm typing words that sound vaguely similar to the ones I mean, instead of the words themselves
<5> And did you mean, "every turn"? "Every term" doesn't make a whole lot of since.
<5> ok
<5> np :)
<6> merlyn - anagrams deal in [a-z]
<0> lkj1: okay, so you've got the filter string... twice... in two variables that you're not doing anything with. The thinking behind this was?
<1> anagrams - short for ANAmal GRAM crackers.
<5> I thought they were Graham Crackers, not Gram Crackers.
<7> hey all! i have a code that has $host=$ARGV[0]; and my $sock = new IO::Socket::INET(PeerAddr=>$host,PeerPort=>'2006',Proto=>'udp'); . What do i have to add to use "$port" instead of 2006 ?
<1> where is $port coming from?
<7> user
<1> psychic powers?
<7> :D
<3> its 2006, baby
<1> user how?
<1> thinking very very hard?
<5> just define: my $port = 2006;
<0> Billy Graham crackers?
<7> i want the user to chose it :)
<5> hmm, how about my $port = STDIN;
<5> or something
<1> and then how?
<7> i guess i have to add $port =$ARGV something like that
<1> from the command line?
<8> be careful what you wish for,
<5> like that
<1> $ARGV[1] ?
<7> this code is used ./a.out hostname
<1> make it random. $port = int rand 65535;
<7> i want it to be ./a.out honstmae port !
<5> lol
<0> lkj1: your advice license is revoked :)
<1> nknwd - you should learn Perl
<1> it'd be useful for you
<1> or hire a perl program
<1> programmer
<5> lol, hire buubot
<7> hey, can you help or stfu :/
<7> c`mon.. it`s not that hard
<5> sorry, :|
<1> nknwd - neither is brain surgery
<1> when you know what you're doing
<9> hm....free channel...free help...telling us to shut up...
<8> nknwd: perhaps you have confused this channel with a free support desk.
<1> if you want to hire someone, hire someone



<1> if you want to learn perl, do that
<1> but don't tell us to stfu
<5> C'mon, this isn't rocket surgery or brain science, guys!
<8> lkj1: apparently it is.
<10> Why is it that http://korthrun.net/cgi-bin/get.cgi sees teh form data but http://korthrun.net/cgi-bin/post.cgi doesn't? (source->http://pastebin.com/628231)
<5> for me
<1> rocket surgery!
<11> The paste 628231 has been moved to http://erxz.com/pb/853
<5> it is
<0> lkj1: No, it's computer technology and information science!
<1> Korthrun - underpants gnomes
<5> ?
<10> merlyn: damn gnomes
<1> step 2 - ????
<7> hey can someone help or not ?
<1> step 3 - profit!
<5> step 3 - profit!!!
<9> merlyn, I tried the step 1, step 2 (???) step 3: profit thing with my bank
<9> needless to say
<9> I didn't get the loan
<5> lol same post same time
<1> they wanted you at step 3
<1> "don't talk to me about step 2!"
<8> PROFIT!
<10> merlyn:What is the best way to get rid of underpants gnomes?
<1> too long since I've seen that
<5> pkill underpants_gnomes
<5> you have to be root, though
<0> lkj1: okay, so you're looking at perldoc Net::Pcap, and _one_ of the methods says that it takes a filter string. Which one would that be?
<10> I'll give it a try
<9> haven't seen it since the day it came out
<1> ... http://en.wikipedia.org/wiki/Gnomes_%28South_Park_episode%29
<12> merlyn's url is at http://xrl.us/kmiw
<13> I am looking at an example script that uses LWP::Simple. How do I find documentation on LWP::Simple
<1> perldoc LWP::Simple
<3> perldoc that shizzle
<5> Net::Pcap::compile($pcap, \$filter, $filter_str, $optimize, $netmask), hobbs. But I don't know why the hell I should have to put a netmask there, or two $filter strings
<1> perldoc is your friend
<1> ljk1 - go learn some perl
<1> or learn to read "perldoc Net::Pcap"
<1> or hire a programmer
<0> lkj1: there aren't two filter strings there
<1> Time to go to work! Work all night!
<1> Search for underpants hey!
<0> lkj1: one of them is a "return value", so to speak, because some moron decided to translate a C interface literally
<1> We won't stop until we have underpants!
<1> ynm tum yummy tumhey!
<5> What is the difference between \$filter and $filter_str
<5> ?
<1> nothing, since you're not a perl programmer
<1> go read a perl book
<14> lkj1: 00:47 <1> or learn to read "perldoc Net::Pcap"
<13> merlyn: thanks, no documentation is found for LWP::Simple
<1> diesel - then you don't have it installed
<0> lkj1: one is the filter string, one is the filter object that you're calling the function to get in the first place. The documentation _does_ say that in the very first sentence
<13> merlyn: probably a CPAN module?
<1> search.cpan.org - type "LWP::Simple"
<1> then you can preview it
<1> but you should install it to use it
<0> lkj1: As to the netmask, well I don't know why it's required, but the doc specifically tells you that it is, and how to get it, so why do you need to ask us about it?
<1> "put the netmask on, now!"
<5> Because, I am doing p***ive wi-fi monitoring, and I am not on a network
<5> so no netmask
<1> Oh geez
<1> so full of it.
<1> you don't deserve to be sniffing.
<1> EVERY NET HAS A NETMASK
<0> lkj1: whatever. use the return value that you get from lookupnet anyway. If that fails to work, _then_ start worrying about it
<1> and if you're not on a network, you wouldn't be talking to us!
<0> merlyn: not if you're grabbing l2 frames
<1> then the netmask is /32
<0> lkj1: but actually, if you're in that position, you probably can't use BPF


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

can't find gorky 17 torrent
#css
#linux
#debian
error The connection was reset apache php
Assertion __pthread_mutex_lock
irc color codes to html php
#php
#javascript
comcast error 11



Home  |  disclaimer  |  contact  |  submit quotes