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

Channels


#perl

09 November 2007


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

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

--- Log opened Fri Nov 09 00:00:04 2007
--- Day changed Fri Nov 09 2007
00:00 <****> http://mute.tv/pbot/e84cf01b7daa6145a33ad8ef4dbbb14a
00:00 <****> ChibaPet: the =cut just transitions from pod to code
00:00 <****> I have a weird bug with this
00:00 <****> Okay. Thank you again.
00:00 <****> the $rrd object gets its filename parameter overwritten
00:00 <****> I had a 1.85mb dictionary, and building my hash then using tie with DB_File smashed it down to 24KB?
00:00 <****> does that seem right to you?
00:00 <****> noon: Huh? what was in the hash?
00:01 <****> words
00:01 <****> Fascinating.
00:01 <****> lol
00:01 <****> Using filename: timeplayed_mute at graph.pl line 47 where it should be devrandom.rrd
00:01 <****> btree with a suffix tree perhaps
00:01 <****> if most of the words had a lot of base pairs in common
00:01 <****> Limbic_Region: Pah, this is the modern world. Waste disk!
00:02 <****> heeen - you haven't bothered to use the channel approved pastebots so you are likely being ignored
00:02 <****> the hash was english words in it, the key was the alphabetized version of the words contained in its key
00:02 <****> key(s)
00:02 <****> noon - no, it doesn't sound right
00:02 <****> didnt think so ;-)
00:02 <****> noon: Perhaps you tied it in the wrong place?
00:03 <****> "heeen" at 83.171.170.240 pasted "$rrd object gets filename overwritten" (62 lines, 1.2K) at http://sial.org/pbot/28511
00:03 <****> Quite not-about-perl: http://youtube.com/watch?v=zfIsJpBP1iM
00:03 * noon investigates
00:03 <****> noon - buu is correct, not tying in the correct order could lead to an empty tied hash
00:04 <****> heeen - you are saying when $rrd is first dumped it has the desired value
00:05 <****>update it does not?
00:05 <****> if you comment out the foreach loop filename is still correct
00:05 <****> heen - I am not running your code nor do I have any idea how the module you are using works
00:05 <****> Using filename: devrandom.rrd at graph.pl line 48
00:05 <****> heeen - I am just trying to understand what your problem is
00:06 <****> filename suddenly changes to timeplayed_mute
00:06 <****> well, commenting out the for loop results in %data as being undef
00:06 <****>update(%data) isn't likely doing anything
00:06 <****> which is why "it works"
00:06 <****> Limbic_Region: sup?
00:07 <****> hmm, lots of netsplits on freenode lately
00:07 <****> jdv79_ - not a whole lot - you
00:07 <****> whatever happened to f00lish anyway....
00:07 <****> a
00:07 * noon pasted http://sial.org/pbot/28512
00:08 <****> heeen - have you tried putting your update and a dump of $rrd at the end of the for loop?
00:08 <****> having a lovely time debugging shit.
00:08 <****> heeen - so that you can see which iteration is causing the problem?
00:08 <****> and subsequently reducing your test case
00:08 <****> noon: you have to tie the %bucket _BEFORE_ you put stuff into it
00:08 <****> jdv79 - work and family have been all consuming - not a whole lot of time for perl, the community, or pet projects
00:08 <****> strange, now it works
00:09 <****> I think
00:09 <****> well now, i just have everything backwards dont I
00:09 <****> buu: I may have found the problem, another device was trying to telnet to the port, but the question is shouldn't I have gotten a connection refused rather than have it accept the connection but not process anything?
00:10 <****> noon - some tied interfaces do not respect the existing values of the passed in variable to tie
00:10 <****> noon - as a counter example, my module Tie::Hash::Sorted will allow you to tie an existing hash and preserve the values
00:10 <****> greetings
00:10 <****> salutations
00:10 <****> anyone know of a quick way to strip ^M from a file?
00:10 <****> dos2unix
00:10 <****> not sure what it is, some odd character
00:10 <****> tried it..
00:10 <****> fromdos file
00:11 <****> Limbic_Region: thx ill try that
00:11 <****> the ^M is at the beginning of the file
00:11 <****> er line
00:11 <****> jshriver - you can always tr/\r//d
00:11 <****> perl -i.bak -pe 'tr/\r//d'
00:11 * Limbic_Region high fives mauke
00:11 <****> let me try...
00:12 <****> that seemed to do it :)
00:12 <****> it's a file recorded using script, for some reason it ads ^M to the beginning of the lines
00:12 <****> Limbic_Region: sounds normal
00:12 <****> jshriver: that's because your $PS1 contains \r
00:13 <****> jdv79 - I am giving a talk at a local perl mongers on the 13th and haven't started my slides yet
00:13 <****> jdv79 - also, my 2nd child is due in a month
00:14 <****> mauke - $PS1, you mean it isn't PROMP=$P$G ?
00:14 <****> er
00:14 <****> it would have been a funnier joke if I had spelled PROMPT correctly
00:14 * iank doesn't get it :(
00:15 <****> o.o
00:15 <****> iank - PS1 is how you set your prompt on a *nix box and PROMPT is for winblows command prompt
00:15 <****> mr. gatcomb: with tie::hash::sorted, what do I use as the as the type for my 2nd param
00:15 <****> Well I know PS1, I'm not a dumbass :)
00:15 <****> $P$G gives you your current drive letter and pwd
00:16 <****> noon - the package you are tying with
00:16 <****> noon - there are fully working examples in the POD afterall
00:16 <****> noon - the only reason I was mentioning that module though was a counter example to tied interfaces that respect existing values
00:16 <****> I don't suspect it will be of much use to you
00:17 <****> oh
00:17 <****> POD == perldoc?
00:17 <****> no
00:17 <****> POD = plain old documentation
00:17 <****> perldoc = perl documentation
00:18 <****> which groks POD
00:18 <****> FWIW, worthwhile reading for anyone who doesn't see the point of clean integration of documentation and code: http://en.wikipedia.org/wiki/Literate_programming
00:18 <****> But, now I see the point. POD isn't really well suited to this. Went through a source file, distributed the documentation, and decided that it was really fairly ugly. Unfortunate.
00:18 <****> grok, good word. gonna have to start using that one in scrabble
00:19 <****> Thank Heinlein.
00:19 <****> good book
00:19 <****> aye


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo