jrwren | It would help me & 4th&5th grade First Lego League a lot if you follow this link, scroll down and vote: http://bit.ly/2onMSbN | 00:25 |
---|---|---|
shakes808 | sorry jrwren, i don't remember what my facebook credentials are :| | 00:33 |
cmaloney | I have no FB presence | 00:34 |
jrwren | its ok. thanks for clicking | 00:36 |
shakes808 | I can open a bunch of incognito browsers and click away, if just visiting will help | 00:39 |
shakes808 | haha | 00:39 |
jrwren | no, i think it needs FB login | 00:41 |
cmaloney | that's harsh | 00:44 |
cmaloney | "But all of my friends are privacy-wonks and OSS bigots" | 00:45 |
cmaloney | "Sucks to be you kiddo" | 00:45 |
jrwren | oh, its ok. | 00:46 |
cmaloney | now if they recognized toots from GNUSocial... ;) | 00:46 |
=== rick_h_ is now known as rick_h | ||
cmaloney | morning / afternoon | 16:32 |
_stink_ | yo | 16:42 |
cmaloney | How goes? | 16:42 |
_stink_ | eh | 16:43 |
_stink_ | juggling darts :P | 16:43 |
_stink_ | you? | 16:43 |
shakes808 | chainsaws | 16:46 |
cmaloney | Trying once again to relearn the front-end stack for a job challenge | 16:51 |
cmaloney | Thinking about juggling torches whole doused in gasoline. ;) | 16:53 |
Zimdale | That the react thing>? | 16:53 |
cmaloney | Yeah | 16:53 |
Zimdale | Yeah react seems to be a pretty hot buzz word right now :( | 16:53 |
jrwren | yes, be sure to say "reducer" a lot when talking about your redux react bullshit | 16:54 |
jrwren | make a bingo card, but don't actually yell bingo when you win, just sit silently with the satisfaction that its all bullshit | 16:54 |
cmaloney | Actually this one is a 4 hour "work day" where I get to prioritize work and fix something | 16:55 |
cmaloney | that's not actually on the product | 16:55 |
brousch__ | wtf | 17:10 |
cmaloney | This is my life now | 17:10 |
brousch__ | That sounds like something you'd have an intern do, not an experienced person | 17:10 |
cmaloney | Unfortunately it's costly enough to hire / train people that they'd rather subject everyone to some form of test to see if they can code | 17:11 |
jrwren | cmaloney: 8 queens problem :) | 17:12 |
cmaloney | Like hiring someone at the Meijer bakery but subjecting them to The British Baking Show challenges prior. | 17:12 |
cmaloney | jrwren: I read that. :) | 17:12 |
jrwren | cmaloney: omg, so good! | 17:13 |
Zimdale | Yeah we've done interviews like that at myl ast place | 17:14 |
Zimdale | it's brutal and was mostly a culture fit thing moreso than a real "test" | 17:14 |
greg-g | that's rough | 17:34 |
cmaloney | Unfortunately it's also common | 17:37 |
cmaloney | So unless you've kept up with the industry in the past 4 years, and can emerge fully-formed like Goddess Athena, ready to churn out code, kick ass, and be a perfect culture fit then you're garbage. | 17:38 |
Zimdale | pretty muich | 17:38 |
greg-g | :( | 17:39 |
greg-g | we'd never do that here, fwiw | 17:39 |
cmaloney | Would that I could get a response. ;) | 17:39 |
brousch__ | greg-g: Do you guys still use SaltStack? | 17:40 |
Zimdale | Where is here greg-g? | 17:42 |
greg-g | cmaloney: :/ | 17:43 |
greg-g | brousch__: trying to get rid of it :) | 17:44 |
greg-g | Zimdale: Wikimedia Foundation | 17:44 |
Zimdale | I know someone that was interviewing for wikimedia | 17:44 |
Zimdale | for like the last 4 months | 17:44 |
Zimdale | Seems like a cool place | 17:45 |
greg-g | heh, we're sometimes slow :) (which sucks, because we lose good people that way) | 17:45 |
Zimdale | I think he's still interviewing | 17:45 |
Zimdale | he kind of dropped out of contact after the last company basically folded :( | 17:46 |
brousch__ | greg-g: We are moving to SaltStack at Limelight Networks. Mind if I ask why you're getting rid of it? | 17:48 |
greg-g | well, I can tell you why we aren't using it for deploy-related things: it's a root-focused tool. To do any debugging you need to have root, and most deployers don't | 17:49 |
greg-g | and Ops is writing their own automation framework that mostly supersedes it | 17:50 |
brousch__ | Ambitious | 17:50 |
brousch__ | It is not well-loved here, but the decision came from higher up | 17:51 |
greg-g | https://wikitech.wikimedia.org/wiki/Cumin | 17:52 |
jrwren | wtf? | 17:54 |
jrwren | why are you worried about root? | 17:54 |
greg-g | jrwren: what do you mean? | 17:56 |
jrwren | I mean, if someone is deploying something, why are you concerned about root access? | 17:56 |
greg-g | because you don't need root to deploy :) | 17:56 |
jrwren | you don't need power tools to build a house, but it sure helps. :) | 17:57 |
greg-g | also, we give our deploy privs to volunteers (in trusted cases, after they sign an NDA because deployers do have access to the DBs which obviously have private user info) | 17:57 |
greg-g | no, it makes it worse in this case | 17:57 |
greg-g | root is a crutch | 17:57 |
greg-g | if you do things as root you're doing it wrong (99% of the time) | 17:57 |
jrwren | that is a very old way of thinking. | 17:57 |
jrwren | its certainly not true 99% of the time anymore. | 17:57 |
greg-g | switching a symlink and doing a git-pull (opposite order) doesn't need root :) | 17:58 |
jrwren | true enough. | 17:58 |
greg-g | separation of concerns | 17:58 |
jrwren | you are using unix user security model to allow untrusted people to deploy. THAT is a good reason. | 17:58 |
greg-g | well, trusted but volunteer | 17:58 |
jrwren | oh yes, privilege separation is a must for processes. I don't want to suggest it isn't. | 17:59 |
greg-g | you might not know how Wikipedia works, but ;) | 17:59 |
jrwren | oh definitely, I do not. | 17:59 |
greg-g | we're weird | 17:59 |
jrwren | I only want to argue your generalizeation :p | 17:59 |
greg-g | a combo of "old school opsen" plus "volunteers having access to info/tooling no one would ever dream of giving" | 17:59 |
jrwren | its ok, i'll move along :) | 17:59 |
greg-g | now, I am annoyed by how little Ops gives out root, even in limited cases/services | 18:00 |
greg-g | it's a long standing issue :) | 18:00 |
jrwren | its pretty common, especially for an old guard type org with an old mindset. | 18:01 |
* greg-g nods | 18:01 | |
jrwren | Canonical is no better and probably a lot worse. | 18:01 |
jrwren | But Arbor... oh man... that was devops... best... devops...env... ever. | 18:01 |
greg-g | yeah, our Ops team also has a high percentage of DDs and DMs | 18:01 |
jrwren | DD and DM? | 18:01 |
greg-g | Debian Developers/Maintainers | 18:02 |
jrwren | oh! nice! | 18:02 |
jrwren | well next time I need a DD sponsor I'll ask you to get me in touch. | 18:02 |
greg-g | yeah, it is for a lot of things, but also, it imparts a certain world view many times :) | 18:02 |
jrwren | oh definitely. | 18:02 |
greg-g | which isn't inherently "wrong" or "right" just, yeah, you know | 18:02 |
jrwren | at this point, I think the ubuntu/debian packager mindset is flawed and too limiting. I thank them for what we have got to this point, but we need more flexibility in some things that they consider hard rules. | 18:03 |
* greg-g nods | 18:03 | |
greg-g | but then the npm way... not great either ;) | 18:04 |
jrwren | well... no... | 18:04 |
jrwren | but not terrible either | 18:04 |
cmaloney | JavaScript is a cancer. | 18:04 |
jrwren | and for shipping production software there are ways to meet in the middle. | 18:04 |
jrwren | linux is a cancer. I like cancer. | 18:05 |
greg-g | and the "just make a container with all your dependencies" is a nice idea, but a pain to maintain/do fixes/security updates when needed | 18:05 |
jrwren | ugh... "make a container" is terrible. | 18:05 |
cmaloney | greg-g: I remember at SF.net that we had issues with how little access we gave our engineers | 18:05 |
jrwren | it means you can't actually package your software in a repeatable way. | 18:05 |
cmaloney | eventually we became more liberal | 18:05 |
greg-g | jrwren: exactly, so annoying :) | 18:05 |
cmaloney | https://www.youtube.com/watch?v=1oDAkmfoAgA | 18:06 |
greg-g | why do I get a distinct Mike Patton feel from this? | 18:11 |
cmaloney | Not sure if Mike Patton was influenced by Joe Jackson, but I know Anthrax was. | 18:12 |
cmaloney | That and Latin music tends to get parodied when people are sarcastic | 18:13 |
cmaloney | not sure who started that trend | 18:13 |
cmaloney | "Wanna tell someone to go fuck themselves? Do it in a Bossa Nova." | 18:13 |
cmaloney | Joe Jackson also did "Cha Cha Loco" | 18:14 |
cmaloney | https://www.youtube.com/watch?v=XwR3wFox6r8 | 18:14 |
jrwren | i only know the Joe Jackson song that he did with William Shatner | 18:16 |
cmaloney | Sure it wasn't Ben Folds? | 18:16 |
cmaloney | Apparently it was all three. | 18:17 |
jrwren | was it? | 18:18 |
cmaloney | http://www.dailymotion.com/video/x4myrb0 | 18:18 |
jrwren | Common People? | 18:18 |
cmaloney | Apparently. | 18:18 |
jrwren | album version is WAY better tahn this live version | 18:19 |
cmaloney | <3 Joe Jackson though. If you dive into his discography you're in for some treats | 18:19 |
cmaloney | I can't even recommend a starter album because they're vastly different from each other | 18:20 |
jrwren | huh, Ben has Bass and Synth credits on the album version. how did I miss that? | 18:20 |
cmaloney | eg: Stepping Out is different from Night Music, Willpower, Big World, Beat Crazy, Jumpin' Jive, Body & Soul, Laughter and Lust | 18:21 |
jrwren | oh sheesh, Ben is on most of the tracks on this album. I guess I knew he was on some, but I didn't know it was most. | 18:21 |
cmaloney | Ben Folds is talented | 18:21 |
jrwren | no doubt. for sure. | 18:22 |
cmaloney | https://www.youtube.com/watch?v=PJwt2dxx9yg | 18:22 |
cmaloney | You've probably heard this song without realizing it was Joe Jackson | 18:22 |
cmaloney | and "Is she really going out with him" | 18:22 |
cmaloney | And this is the cover that I wish the band I was in would have taken more seriously: https://www.youtube.com/watch?v=be7iNHw8QoQ | 18:24 |
shakes808 | cmaloney: aren't they coming in concert soon? | 19:28 |
cmaloney | I don't know. | 19:28 |
shakes808 | they are on tour with killswitch | 19:54 |
shakes808 | but not coming here, unless they already came | 19:54 |
cmaloney | Joe Jackson? :) | 19:54 |
shakes808 | Anthrax | 19:54 |
shakes808 | HAHA, can you imagine Joe Jackson and Killswitch Engaged touring together haha | 19:55 |
shakes808 | there would be some very confused people there | 19:55 |
shakes808 | I would have loved to see Weather Report: https://www.youtube.com/watch?v=pqashW66D7o | 19:57 |
cmaloney | weather report is amazing | 20:12 |
gamerchick02 | they are. | 20:26 |
gamerchick02 | thanks for the link | 20:26 |
gamerchick02 | has everyone updated their ubuntu machines? | 20:27 |
gamerchick02 | i think i'm going to tonight | 20:27 |
cmaloney | i need to get my linode off of 12.04 | 20:28 |
gamerchick02 | :) | 20:30 |
_stink_ | same | 21:47 |
* greg-g 's jessie digitalocean is doing fine ;) | 21:58 | |
gamerchick02 | woohoo | 22:42 |
jrwren | jessie is current. | 23:02 |
shakes808 | cmaloney: python 3 question -> I have a list of strings that I create from doing a web crawl. I am now trying to get the substring so I can manipulate it to navigate to a webpage to download a picture. How do I do something like substring(0: {index where "characters-i-am-looking-for}) | 23:39 |
cmaloney | Are you looking for something like "img=" ? | 23:43 |
shakes808 | I think i found what i am looking for: print(item[:item.index("ers/")+4]) | 23:44 |
cmaloney | That looks awful. :) | 23:44 |
shakes808 | I am going to be manipulating the url that I scrapped and have to append to it to grab the url for the img | 23:44 |
shakes808 | HAHA | 23:44 |
shakes808 | <--- Less than mediocre programmer | 23:45 |
shakes808 | is there a more elegant way to do that? | 23:45 |
cmaloney | what about item.find('ers/') ? | 23:45 |
cmaloney | or, if you know you're splitting off everything after 'ers/', do a split on that | 23:46 |
shakes808 | it still stops and have to append: +4 to that | 23:46 |
shakes808 | print(item[:item.find("ers/") + 4]) | 23:46 |
cmaloney | (head, tail) = item.split('ers/') | 23:46 |
shakes808 | print(item[:item.split("ers/")]) | 23:47 |
shakes808 | that didn't work | 23:47 |
cmaloney | no | 23:47 |
jrwren | shakes808: have you considered using scrapy? | 23:47 |
jrwren | shakes808: are you using beautiful soup? | 23:47 |
cmaloney | print (item.split('ers/)[1)) | 23:48 |
cmaloney | and yes, use Beautiful Soup if you're looking for something in a tag | 23:48 |
cmaloney | because jesus-tap-dancing-Christ parsing HTML is a PITA | 23:48 |
shakes808 | I just found this: http://www.netinstructions.com/how-to-make-a-web-crawler-in-under-50-lines-of-python-code/ | 23:48 |
shakes808 | and been manipulating this | 23:49 |
shakes808 | I have the urls that I am looking for, just need to manipulate them to get the images | 23:49 |
cmaloney | http://stackoverflow.com/questions/10600079/python-beautifulsoup-img-tag-parsing | 23:50 |
cmaloney | Seriously, if you're parsing html you are reinventing BS4 | 23:50 |
cmaloney | Which might be OK, but yipes. | 23:51 |
shakes808 | haha, i didn't reinvent it, that post did ;) | 23:51 |
shakes808 | but that looks very similar to what I have | 23:51 |
cmaloney | Yeah, and it's under 50 lines of code. ;) | 23:51 |
shakes808 | HAHA | 23:51 |
shakes808 | fair enough | 23:51 |
shakes808 | I will take a look at BS | 23:51 |
shakes808 | after I try this out. though | 23:52 |
cmaloney | And if you want the images minus the http://foo.bar/baz/img.jpg then I'd do a split on that (uri.split.'/'[-1] and Bob's your uncle. | 23:52 |
cmaloney | Sure, I understand. :) | 23:52 |
cmaloney | bbl. | 23:53 |
shakes808 | haha, actually what you gave me is going to work out i think | 23:53 |
shakes808 | I will post my final code when I get it working | 23:53 |
_stink_ | publish it on pypi | 23:59 |
_stink_ | call it | 23:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!