PMXBOT Log file Viewer

Help | Karma | Search:

#dcpython logs for Friday the 14th of October, 2011

(Back to #dcpython overview) (Back to channel listing) (Animate logs)
[12:28:19] <MattBowen> morning all
[13:55:19] <aclark> morning
[14:01:37] <djbpython2> aclark: i see your branch in the natgeo repo :)
[14:06:09] <aclark> djbpython2: heh cool, what are you doing for them?
[14:07:04] <djbpython2> maintenance for now
[14:13:23] <aclark> nice
[14:27:18] <aclark> MattBowen: mr.migrator and silly_content_generator in effect here: http://stackoverflow.com/questions/7769069/how-to-configure-anon-ui-for-plone-add-on-eea-faceted-navigation
[14:27:21] <aclark> :-)
[14:52:42] <MattBowen> aclark: :)
[16:02:02] <aclark> kennethreitz: re: your disk tweet. when it's done you can break it up and keep your drinks cold! :-)
[16:02:15] <kennethreitz> aclark: hah!
[16:02:23] <kennethreitz> 1TB internal laptop disk
[16:02:29] <kennethreitz> luckily backed up regularlly
[16:02:37] <aclark> i've never heard freezing it helps, but maybe
[16:02:39] <kennethreitz> but i have a month or so of photos i need to get off
[16:02:46] <kennethreitz> apparently it does
[16:02:50] <kennethreitz> we'll see :-/
[16:05:04] <j00bar> kennethreitz: i think requests.async may just be the greatest thing that happened to me all week.
[16:05:14] <kennethreitz> j00bar: \o/
[16:05:23] <kennethreitz> what are you using it for?
[16:06:34] <kennethreitz> I'm pretty pumped about it myself
[16:06:44] <kennethreitz> only took like 8 lines of code to implement :)
[16:06:45] <kennethreitz> <3 gevent
[16:07:15] <j00bar> well..
[16:07:19] <j00bar> i'm not sure i'm gonna yet.
[16:07:24] <j00bar> but i'm pretty excited about the possibility
[16:07:28] <j00bar> we do facebook api calls
[16:07:38] <j00bar> but fun fun facebook limits us to 1000 records per request
[16:07:43] <kennethreitz> ah
[16:07:46] <j00bar> implements a primitive paging system
[16:07:56] <j00bar> so presently, i get the first 1000 which includes the total count
[16:08:08] <j00bar> and then spin off N celery tasks to gather the remaining results
[16:08:44] <kennethreitz> perfect use case
[16:08:49] <j00bar> and use a generator to spit out the return values, processing the async results opportunistically when the end of the result cache is reached
[16:10:23] <j00bar> question though - doesn't async.map() block?
[16:10:29] <kennethreitz> yes it does
[16:10:35] <kennethreitz> until all the requests are finished
[16:10:52] <kennethreitz> that's the point
[16:11:22] <j00bar> so what would you recommend in my case?
[16:11:45] <j00bar> i want to issue the requests and then process them as they're ready.
[16:12:07] <kennethreitz> brb
[16:12:08] <j00bar> do the event hooks work with async?
[16:12:13] <kennethreitz> yes they do
[16:12:19] <kennethreitz> sorry need to restart
[16:12:23] <j00bar> go fer it
[16:51:09] <aclark> jaraco|mobile: whoah new distribute
[16:51:32] <aclark> (s)
[19:35:41] <j00bar> any of you kids do freelance sysadmin/devops work?
[19:35:57] <j00bar> or have any recommendations for somebody who does?
[19:38:05] <aclark> j00bar: we do, http://aclark.net/contact-info
[19:38:23] <j00bar> aclark: i don't know if we can afford you guys :)
[19:38:37] <j00bar> what are you guys, like $125/hr?
[19:47:30] <aclark> j00bar: depends on the job
[19:47:50] <j00bar> pm?
[19:50:32] <aclark> j00bar: sure
[20:47:11] <hazmat> lack of sleep does wonderous things
[20:47:18] <MattBowen> haha, i bet
[21:19:04] <aclark> heh
[21:38:56] <j00bar> aclark: w00t.
[21:42:52] <aclark> j00bar: heh yup, fun!