PMXBOT Log file Viewer

Help | Karma | Search:

#dcpython logs for Wednesday the 16th of November, 2011

(Back to #dcpython overview) (Back to channel listing) (Animate logs)
[15:52:26] <aclark> Morning
[16:16:19] <MattBowen> morning aclark
[19:21:02] <richleland> aclark ping
[19:21:28] <richleland> aclark can we still get a packt discount through dcpython?
[20:55:22] <aclark> richleland: i think so
[20:55:45] <richleland> aclark can you hook me up with teh code again?
[20:57:31] <richleland> thnax :P
[21:17:59] <aclark> richleland: that's pretty good. i'm on tin cans/string over here… still looking
[21:24:53] <aclark> richleland: looks like it may be expired
[21:25:01] <aclark> WDC15ug
[21:25:14] <richleland> ok cool thx for digging it up!
[21:27:16] <aclark> np
[21:34:50] <aclark> j00bar: so i poked at redis and designed two failed database schemas for vanity.aclark.net. keys would be perfect e.g. Pillow:18900, except you aren't supposed to use them in your app code (they're good because i can call incr on them everytime someone requests a package)
[21:35:19] <aclark> j00bar: and my current #fail using strings which is in production :-)
[21:35:26] <aclark> you said to use sorted lists i think
[21:36:38] <aclark> but i can't picture it. i need: a queue to track packages as they come in; a counter to track the number of times a package has been requested (most vain list)
[21:37:52] <j00bar> aclark: there's also SORT
[21:38:02] <aclark> yep
[21:38:45] <j00bar> and with sort you can have lists of package name keys then key -> int for each package name
[21:39:34] <aclark> j00bar: OH right
[21:39:34] <aclark> hmmm
[21:39:51] <aclark> well with sort i can have keys the way i had it
[21:39:59] <aclark> and i don't have to call keys to get them i can call sort
[21:40:15] <j00bar> keep in mind that redis is balls fucking fast.
[21:40:23] <aclark> i see that
[21:40:38] <j00bar> a moderate sized machine can probably to 80k ops/minute
[21:41:02] <aclark> i mean incr <package>:<count> might do everything i need
[21:41:22] <j00bar> so if you can have redis do more lifting versus python doing parsing, you'll win 9 times out of 10
[21:41:43] <aclark> no wait, there was another prob… because i want to replicate the current behaviour which moves the selected package back to the top (via my filter func)
[21:50:25] <TheCowboy> i keep hearing a lot of good things about redis, something else i have to learn about i guess
[21:50:46] <aclark> TheCowboy: it's awesome so far