cmaloney | Goodd morning | 13:06 |
---|---|---|
brousch | Is it really? | 13:07 |
cmaloney | I'd like to think it is | 13:11 |
brousch | http://www.reddit.com/r/linux/comments/1lucdy/did_linus_torvalds_backdoor_linux_random_number/ | 13:13 |
rick_h | I should work from the home office more often :/ http://www.speedtest.net/my-result/2948896284 | 13:41 |
cmaloney | I would sell you all in to slavery for that upload speed. | 13:41 |
* rick_h resists the urge to upload every file on his laptop to s3 starting...now | 13:43 | |
brousch | So is the home office really Shuttleworth's basement? | 13:43 |
rick_h | no, that's across the way on the island | 13:44 |
brousch | If you meet him, try to get a lock of his for me | 13:45 |
brousch | his hair | 13:45 |
cmaloney | I thought you were looking for one of his locks | 13:46 |
cmaloney | The voodoo recipie specifically states locks, not hair | 13:47 |
cmaloney | I think you'll need a screwdriver and some pliers. | 13:47 |
brousch | It is not for voodoo, it is for snuggling with at night | 13:49 |
cmaloney | uh huh | 13:52 |
jrwren | what is more pythonic? | 15:00 |
jrwren | if not mylist: or if 0==len(mylist): ? | 15:00 |
cmaloney | not mylist, iirc | 15:01 |
cmaloney | Plus it'll also catch if mylist is None | 15:01 |
cmaloney | len(mylist) will crap out on None | 15:01 |
cmaloney | I'm sure rick_h will correct me on an even better way to do that. :) | 15:02 |
jrwren | oh, i also have it wrong... should be if 0 == len(mylist): :) | 15:03 |
jrwren | pep8 says spaces around operators :) | 15:03 |
jrwren | i prefer what you say cmaloney for all the same reasons | 15:03 |
cmaloney | yeah, no worries. It's IRC. Formatting goes out the window | 15:03 |
brousch | definitely if not mylist | 15:04 |
greg-g | rick_h: where are you with that speed? | 15:45 |
greg-g | rick_h: oh, in London? Or Isle of Man? | 15:46 |
rick_h | greg-g: london | 16:01 |
rick_h | jrwren: not mylist if you're checking empty, mylist is not None if it's some sort of None default | 16:02 |
jrwren | damn sometimes python is an ugly language | 20:27 |
waf | what part did you run into? | 20:42 |
waf | i'm pretty happy with it. exceptions are lambda syntax and decorator abuse. | 20:43 |
jrwren | where inst is a Server instance it seems like there should be a better way to get the public ip than this | 20:49 |
jrwren | python-novaclient maybe is just a poor api | 20:49 |
jrwren | filter(lambda d: d['OS-EXT-IPS:type']=='floating',inst.addresses['novanetwork_0'])[0]['addr'] | 20:49 |
jrwren | that is UGLY | 20:49 |
rick_h | yea, that is ugly but seems like an issue with the data structure/org of the code you're using | 21:46 |
cmaloney | Yeah, I've run into some ugly with Python and YAML configs | 22:02 |
cmaloney | something like : | 22:02 |
cmaloney | col: | 22:02 |
cmaloney | - foo: | 22:02 |
cmaloney | - bar | 22:02 |
cmaloney | gets really ugly in a hurry | 22:02 |
cmaloney | brb. Reboot. | 22:02 |
waf | bad reboot | 23:09 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!