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

Channels


#perl

21 October 2007


Total 33 pages. You are browsing page 4/33.

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

04:43 <****> simcop2387: ''
04:43 <****> eval: [$truth;$realty];
04:43 <****> TrueFX: ''ERROR: syntax error at (eval 238) line 1, at EOFsyntax error at (eval 238) line 1, near "$realty]"
04:43 <****> alester: no, just no
04:43 <****> eval: [$truth,$realty];
04:43 <****> TrueFX: [undef,undef]
04:44 <****> alester: talk about infection...
04:44 <****> eval: $macrobiology
04:44 <****> TrueFX: undef
04:44 <****> oh the tapeworm one is good too
04:45 <****> the one in the guy's belly? that was medicated gauze inside a swollen spider bite
04:46 <****> Hi, i store httpd logs in a sql-db. to find uniq urls i use md5sum. atm. i think ive md5sum collisions, so i want to try sha512_bas64. first question: how long (max.) is the resulting string of base64_sha512?, second question: any other idea to handle uniq data (of a unkown length) without checksums?
04:46 <****> eval: [$agnostiscm,$words,$jargon,$technical_bullshit,$do_hickey,$whatever,$neural_networks,$high_level_transformations,$image_recognition,$light_speed,$theories,$big_bang,$humanity,$ape_descendants,$God_created_creatures,$wars,$violence,$superiority,$inferiority,$fuzzy_logic,$i_just_wanna_cry]
04:46 <****> TrueFX: [undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef]
04:46 <****> TrueFX: ENOUGH
04:46 <****> for fuck's sake
04:47 <****> ralf__: use two hashing algorithms, your collision chance should go to nil
04:47 <****> as for your question, I'm sure the SHA-512 algorithm spec is documented
04:48 <****> Somni, hm, yes, it should - somewhere. ok - two checksums are a good idea, thanks
04:49 <****> although I'm not sure why you're using a hashing algorithm, wouldn't it be simpler and easier to just store the URLs in a seen hash?
04:49 <****> "once" == checksum exists)
04:49 <****> TrueFX: what the hell are you doing? knock it off
04:50 <****> thinking
04:50 <****> ralf__: ok, so index the URL column, and give it a unique constraint
04:50 <****> or, if you're updating, use the URL as the column to base your update on
04:51 <****> TrueFX: think inside your head like other sane people or, if you must tell someone who don't care, /msg it to buubot
04:51 <****> can someone help me with this code:
04:51 <****> http://pastebin.com/m182d7c44
04:51 <****> slango: The paste m182d7c44 has been copied to http://erxz.com/pb/4876
04:52 <****> thanks buubot
04:52 <****> slango: you forgot use strict; add it, fix the problems, then paste your code again
04:52 <****> perlbot, paste
04:52 <****> Paste your code to http://sial.org/pbot/perl http://erxz.com/pb or http://p3m.org/paste/fn/perl and #Perl will be able to view it.
04:52 <****> length bytes)
04:52 <****> sounds like premature optimization
04:53 <****>= 3, my loops never end
04:53 <****> Somni, fixing that now
04:53 <****> ralf__: hm, you might want to compare the speed of doing an update based on a slow field vs. taking two hashes of a string and updating based on that
04:54 <****> hmhm, hm!
04:55 <****> Somni, I assume you want me to fix all of these new strict errors, too, huh? ;-)
04:55 <****> slango: that'd be the idea
04:55 <****> NO STRICTY, NO LOOKY
04:56 <****> slango: if you use warnings; and use diagnostics; , perl will give you (hopefully) helpful and descriptive error msgs.
04:57 * CPAN upload: Parse-Marpa-0.001_020 (+ ) by JKEGL
04:57 * CPAN upload: WWW-WorldLingo-0.03 by ASHLEY
05:03 <****> Somni, ok, the md5sum stuff is bad, because it makes it more complex than it must be and its not correct. thanks so far
05:05 <****> good night all you smart people.
05:09 <****> "slango" at 71.6.194.243 pasted "Loops going forever..." (136 lines) at http://erxz.com/pb/4877
05:10 <****> can someone help me from here? I can't get rid of the errors on lines 11 and 21
05:10 <****> I'm very new to Perl, and the only other language I'm at all useful with is PHP
05:10 <****> also, I may have over my()ed things, if that is possible... not really sure.
05:11 <****> well you're starting off good, using warnings, and strict
05:11 <****> give me a minute
05:11 <****> slango: to your over my'd point, you don't need to put parenthesis around every variable name :)
05:11 <****> PHP is bad for your brain
05:12 * CPAN upload: Apache2-ASP-1.18 by JOHND
05:12 <****> now what are your errors?
05:12 <****> simcop2387, Global symbol "@decAcc" requires explicit package name at ./tmrProg.pl line 11.
05:12 <****> and the same error for @recAcc on line 21
05:12 <****> You didn't define it.
05:13 <****> he did, but not as an array
05:13 <****> re
05:13 <****> $decAcc is not @decAcc
05:13 <****> the simplest solution would maybe be changing: my($decAcc) = $_[0]; to my $decAcc[$n] = $_[0];
05:14 <****> Is that allowed..?
05:14 <****> (presuming that is your intending use of the array named 'decAcc'
05:14 <****> this is just odd code
05:14 <****> oh, ha, actually $n isn't available at that point
05:15 <****> scratch my suggestion
05:15 <****> Use a reference to the array as first parameter.
05:15 <****> ARRAY_SIZE? just pass an arrayref, you can get the size from the array itself
05:15 <****> as Somni notes, this is a bit confusing. You're looping through $size but accessing $decAcc...
05:15 <****> also, stop using $a and $b, they have a sort of special meaning
05:16 <****> Is it just me or is "my ($foo);" ugly?
05:16 <****> Patterner: if it looks like a function call..
05:16 <****> lines 86 - 133 seems very specific, isn't there a programatic way of splitting your data out slango...
05:16 <****> i'm having problems using the $INPUT_RECORD_SEPARATOR here's what i tried: http://rafb.net/p/eoBU6U86.nln.html
05:16 <****> slango: also, my($foo, $bar) = @_;
05:17 <****> English...
05:17 <****> shouldn't my program print something like "a b c" ? and not just "a" ?
05:17 <****> pattern, I think you have to use English; for long names to work
05:17 <****> particle, just use $/
05:17 <****> ah
05:17 <****> pattern, no, your program will print new lines as well.
05:18 <****> right
05:18 <****> VolVE, the program is a math thing. My girlfriend wrote it in C++. I am rewriting it in Perl to help me learn Perl and to help her figure out how to do that programmatically
05:18 <****> thanks for your help... "use English;" works :)
05:18 <****> use Inline::FORTRAN;
05:19 <****> GumbyBRAIN, use Inline::Dongs
05:19 <****> We need dongs. Lot's of dongs.
05:19 <****> !
05:19 <****> slango: a direct translation of the algorithm may work, but mostly it just looks like you're writing in C with Perl syntax
05:19 <****> slango: sure, sure, I didn't fully peruse it, just seemed very hardcoded... :)
05:20 <****> it looks vaguely like some matrix transformation.. or perhaps construction
05:20 <****> Somni, it's some weird research she is doing about how to ensure accurate communication of data using itermediary points
05:22 <****> each point after the first few ends up getting the data from 3 sources, and it uses that to determine what the data is suppose to be, so that even if one node sends out the wrong information, it gets corrected down the line
05:22 <****> I would kill those nodes. No errors. No mercy.
05:23 <****> Patterner, I like that idea
05:23 <****> merciless
05:23 <****> slango: but what if two send the same wrong data?


Total 33 pages. You are browsing page 4/33.

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo