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

Channels


#perl

23 October 2007


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

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

02:36 <****> dsterling: if this was something that would be running more than once, i would do so and my problem would be solved
02:36 <****> phurba: sort is already optimized for bigger-than-memory sorts :)
02:36 <****> hobbs: i *am* using sort. the problem is the array i'm reading in from the file (containing the data to sort) is too large
02:36 <****> and i'm hitting the upper memory limit of this box
02:36 <****> no
02:36 <****> sudo chroot /some/directory; perl "opendir(DIR, '.'); print readdir(DIR);
02:36 <****> wrong sort.
02:36 <****> There we go.
02:37 <****> phurba: I'm talking about unix/GNU sort.
02:37 <****> No, I still suck.
02:37 <****> hobbs: from coreutils
02:37 <****> sudo chroot /some/directory perl -e "opendir(DIR, '.'); print readdir(DIR);
02:37 <****> Theeere we go.
02:38 <****> hobbs: that still doesn't fix my problem. i'm not getting to the sort part before it pukes. it's puking on the sort part when i'm using Tie::File, or it's puking when the array gets to large when i'm not using Tie::File
02:38 <****> phurba: and you're still missing the point.
02:38 <****> but forget it
02:38 <****> hobbs: i really don't think i am. i know what you're saying; i'm saying that's not going to work in this situation
02:38 <****> use the system sort (whatever that is)
02:40 <****> phurba: that's fine, you're just not telling me anything useful. I asked you a question and you didn't answer, you just said "the problem is" followed by something that sounded an awful lot like you completely misunderstood what I said :)
02:40 <****> yay, segfault
02:41 <****> phurba: if the data is something that sort can handle without any fancy perl manipulations, or if you can use perl to turn the file into something that sort can handle in a _streaming_ manner, then the amount of memory that _perl_ needs to load all the data in the file for sorting is irrelevant.
02:41 <****> The data that I'm trying to sort looks like this: "01/Oct/2007:00:00:00:00". since all of the months are the same (only the DOM and time will change) a string compare will work
02:41 <****> how can I grant privileges with DBD::mysql?
02:41 <****> archangel7863: same way you would run any piece of SQL.
02:42 <****>do(' whatever sql you normally use ')
02:42 <****> - - [01/Oct/2007:00:00:00 -0400] ......" by the date section?
02:42 <****> How does sort sort without needing large amounts of memory?
02:42 <****> jagerman: it stores stuff in eigenstates
02:43 <****> jagerman: temp files and an interleaved-sort sort of algorithm.
02:43 <****> OK, hobbs is probably a lot more correct than me
02:43 <****> foreign states, if eigenstates aren't enough
02:43 <****> t/01-dh.........ok 15/18 <-- i think its fookin stuck =P
02:43 <****> But I still like the idea of storing it in eigenstates
02:43 <****> phurba: I'd have to do some looking, but it certainly _can_
02:44 <****> phurba: at least, if it's GNU sort. non-gnu sort probably doesn't have the option to recognize month names
02:44 <****> phurba: (and please tell me all the stamps are in the same timezone)
02:44 <****> irc module question: how can i let a perl coded irc bot oper up?
02:44 <****> phurba : that is the point of using a database, you only read a line at a time, insert a line at a time
02:44 <****> hobbs: all of the month names are the same. the range in this case is 01/Oct/2007:00:00:00 through 17/Oct/2007/23:59:59. All same timezone
02:44 <****> phurba : you can then select the data sorted, and use it a line at a time
02:44 <****> phurba: that makes it easier then :)
02:44 <****> prakriti: i am well aware of thise
02:44 <****> s/thise/this/
02:45 <****> kk, I will shutup then. :)
02:45 <****> ShadowMajestic: just send the command as raw using whatever library you're using
02:45 <****> Woosta: POE:Component:irc
02:45 <****> hobbs: i need to get this done and i was supposed to go home over an hour ago. i'm tired of working 60 hour weeks, and i just need to get this done. don't care if it's in perl or assembler or lolcode.
02:46 <****> phurba: is there really a colon between date and time, and not a space?
02:46 <****> no idea how to use raw innit
02:48 <****> hobbs: yes
02:49 <****> it also was a slash
02:50 <****> slash was a typo
02:50 <****> anyone got example line of how a perl ircbot opers up to ircop? <3
02:50 <****> phurba: actually it looks to me that "sort -k 4" should handle that cleanly from what you say, if the month and year is always constant
02:51 <****> because the parts that do change are already big-endian: day, hour, minute, second
02:51 <****> but failing that, "sort -k 4.2,4.3 -k 4.14,4.21"
02:51 * anno- claps
02:52 <****> anno-: are you keeping score? :)
02:52 <****> just my natura
02:53 <****> never mind
02:53 <****> no worries
03:05 <****> Is there a major difference between an anonymous array ref and an array? Basically I am declaring an array before a foreach(){} loop which push()es into that array, and after that loop I am giving a _ref_ to that array into a sub, so I am wondering if using a scalar (with array ref) and pushing into it would make any difference.
03:06 <****> Nope
03:06 <****> ok.
03:06 <****> in that case, no.
03:06 <****> Zoffix: not much
03:06 <****> What would you use?
03:06 <****> A plain array
03:06 <****> Ok, thanks.
03:06 <****> less typing there :)
03:06 <****> Yes, exactly.
03:07 <****> it's slightly faster to push into a real array too
03:07 <****> very slightly
03:09 <****> it's the principle of the simplest tool. why a ref when you can have the real thing
03:09 <****> Caelum: Well, the actual push part shouldn't be any faster, though you save a dereference, I suppose.
03:10 <****> extra typing bad
03:17 <****> Hi :)
03:17 <****> 'lo
03:19 <****> DSterling++ # XML::LibXML is quite nice
03:19 <****> glad you like it :)
03:19 <****> thank M. Sergeant et al, of course
03:33 <****> Hello people
03:34 <****> where would I look for pickled egg recipes?
03:34 <****> AssociateX, http://www.perfect-shit.com/
03:35 <****> thank you
03:35 <****> Welcome.
03:38 <****> Zoffix, I like your site kind of. I don't care for the tiling but the rest is cool.
03:39 <****> AssociateX, the shit and the retarded comments are cool?
03:41 <****> hi guys
03:41 <****> what is "=~"? i don't know how to look it up in google, so please give me a word for that
03:41 <****> 'lo
03:41 <****> can someone remove my ban ?
03:41 <****> kaurus: it's the binding operator
03:41 <****> i cant join this channel from linux
03:41 <****> TrueFX: sorry, i am not an op on #perl
03:41 <****> kaurus, it's described in perldoc perlop if I am not mistaken.
03:41 <****> who can do that ?
03:41 <****> kaurus: perldoc perlop. regex binding operator. see perlretut and perlre
03:41 <****> Paladin: thank you
03:41 <****> kaurus: welcome


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo