/srv/irclogs.ubuntu.com/2013/09/06/#ubuntu-us-mi.txt

cmaloneyGoodd morning13:06
brouschIs it really?13:07
cmaloneyI'd like to think it is13:11
brouschhttp://www.reddit.com/r/linux/comments/1lucdy/did_linus_torvalds_backdoor_linux_random_number/13:13
rick_hI should work from the home office more often :/ http://www.speedtest.net/my-result/294889628413:41
cmaloneyI 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...now13:43
brouschSo is the home office really Shuttleworth's basement?13:43
rick_hno, that's across the way on the island13:44
brouschIf you meet him, try to get a lock of his for me13:45
brouschhis hair13:45
cmaloneyI thought you were looking for one of his locks13:46
cmaloneyThe voodoo recipie specifically states locks, not hair13:47
cmaloneyI think you'll need a screwdriver and some pliers.13:47
brouschIt is not for voodoo, it is for snuggling with at night13:49
cmaloneyuh huh13:52
jrwrenwhat is more pythonic?15:00
jrwrenif not mylist:   or    if 0==len(mylist):     ?15:00
cmaloneynot mylist, iirc15:01
cmaloneyPlus it'll also catch if mylist is None15:01
cmaloneylen(mylist) will crap out on None15:01
cmaloneyI'm sure rick_h will correct me on an even better way to do that. :)15:02
jrwrenoh, i also have it wrong... should be if 0 == len(mylist):   :)15:03
jrwrenpep8 says spaces around operators :)15:03
jrwreni prefer what you say cmaloney for all the same reasons15:03
cmaloneyyeah, no worries. It's IRC. Formatting goes out the window15:03
brouschdefinitely if not mylist15:04
greg-grick_h: where are you with that speed?15:45
greg-grick_h: oh, in London? Or Isle of Man?15:46
rick_hgreg-g: london16:01
rick_hjrwren: not mylist if you're checking empty, mylist is not None if it's some sort of None default16:02
jrwrendamn sometimes python is an ugly language20:27
wafwhat part did you run into?20:42
wafi'm pretty happy with it. exceptions are lambda syntax and decorator abuse.20:43
jrwrenwhere inst is a Server instance it seems like there should be a better way to get the public ip than this20:49
jrwrenpython-novaclient maybe is just a poor api20:49
jrwrenfilter(lambda d: d['OS-EXT-IPS:type']=='floating',inst.addresses['novanetwork_0'])[0]['addr']20:49
jrwrenthat is UGLY20:49
rick_hyea, that is ugly but seems like an issue with the data structure/org of the code you're using21:46
cmaloneyYeah, I've run into some ugly with Python and YAML configs22:02
cmaloneysomething like :22:02
cmaloneycol:22:02
cmaloney - foo:22:02
cmaloney   - bar22:02
cmaloneygets really ugly in a hurry22:02
cmaloneybrb. Reboot.22:02
wafbad reboot23:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!