« first day (1712 days earlier)      last day (3236 days later) » 

1:19 PM
Taps microphone - cough - testing, testing, 1, 2, 3
 
Hey!
 
Arbitrary member assignment doesn't work for all types, ex.
>>> x = object()
>>> x.foo = 23
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'object' object has no attribute 'foo'
 
Guess who got his highest scoring answer last night? Guess who hit the point cap for the first time?
 
1:20 PM
I'm trying to remember the circumstances for which it fails for user-made classes specifically... Something to do with __slots__? Or maybe new style classes vs old. I forget.
 
> Instance method objects have attributes, too: m.im_self is the instance object with the method m(), and m.im_func is the function object corresponding to the method
Damn now I've learned something, thanks @Anuj
 
@JRichardSnape Your code is now officially perfect, having survived uncriticised for the requisite minimum time :-)
 
@Kevin slots can be used to restrict attribute creation... x = object(); x.foo = 23 fails because x doesn't get a __dict__
 
That was it, thanks
 
@ZeroPiraeus :) I shall frame it as the only such example, then
 
1:22 PM
The only perfect code is an empty file ;-)
 
Very Zen
 
:-D
 
@Kevin I expect your father has been reading Dante.
 
(of course - user classes that do something clever with __set__/__setattr__/__setattribute__ might prevent or otherwise change the behaviour...)
 
(@JRichardSnape I think it's spelled Verizon)
 
1:24 PM
I hate Java :(
 
@Reut That's okay - I think you're allowed to
 
@QuestionC Nice. 33 on a 10 hour old question - you're playing with the big boys now :)
 
My father majored in English so I expect he read Dante at one point. The only classics we have at home is a smattering of Shakespeare though
 
everything is so verbose
 
@Kevin hey, so did mine. Maybe that's why we're the same
 
1:25 PM
@QuestionC Impressive! And some badges as well :)
 
Not always sure why I bother with BeautifulSoup answers. Lets hope I can make that a good dupe target.
 
You're saving the web from out of control scrapers :)
 
user559633
@MartijnPieters yeah, i don't bother with BS, Scapy, or other web scraping questions. Never turn out to be anything but time vampires
 
@MartijnPieters Moth to the flame maybe?
 
@tristan yup, most of them I don't bother with. Some are marginally interesting, and may make for canonicals to point the vampire-y questions to.
 
1:28 PM
 
(Or maybe you're just a masochist)
 
@JRichardSnape @JonClements Thank you. I need to answer more questions at night it seems.
 
@Martijn looks like that answer got re-accepted and a bit of an apology
 
1:45 PM
it's really annoying in movies when something disappears from frame before an explosion or some effect happens. Why haven't they figured out how to fix that yet?
 
Cheaper not to, I guess
 
Uhh, do you have a reference? I'm not sure what you're talking about.
 
Best explosion ever: the slowmo one in Leon where the camera tracks sideways at the speed of the explosion
 
@QuestionC In the new Jurassic World, when the missile hit the raptor it conspiciously leaves the frame for a good amount of time
 
Oh, that was just the Raptor substitution technique, explosion no jutsu.

Archaeology is learning new things all the time.
 
1:53 PM
@JonClements \o/
 
Paleontology, srly?
 
Well, it depends. Do you want to study dinosaur physiology, or dinosaur culture?
Dinosaur fighting techniques fall somewhere in the middle, I suppose.
 
That's true
 
I just talked to another MS CS I've known a long time. She didn't take the "regex class" either. But undergrads take it. indignant sniff.
 
Is blast avoidance more physiological or cultural?
 
2:04 PM
Why, am I working on some regex stuff now? No, I've close-to mastered it, I think.
 
Not sure that regex is any more compsci than source control
 
well, I'm starting to feel like the depth and breadth of CS programs is neither.
 
I mean it's a software engineering skill, but not particularly mathsy
 
Mathsy...
Bobby G...
 
@RobertGrant Uh ...
 
user559633
2:15 PM
@AaronHall sorry to pester you about it, but have you heard anything about decisions for talks?
 
@ZeroPiraeus I don't mean specifying the language, I mean using it
 
user559633
starting to get anxious because it's a month and a half away
 
Which I think is the context
 
@tristan Ah yes, we been thinking about considering starting to begin having the idea of reading the talk proposals.
 
Ok, but ... hmm. I would absolutely expect a CS grad to know about regular languages, and it just seems kinda obvious that you'd end up playing with regexes-as-they-are-used in the process of learning that.
 
2:16 PM
Wait... "Regex class"?
 
user559633
@AaronHall cute.
 
cbg
 
@QuestionC It's a code name for torturing people
 
user559633
heh regex class
 
Regex needs to be taught as a part of Computability and Automata
 
user559633
2:18 PM
@AaronHall I think that's because CS is a study of languages and shouldn't be intended to be a trade-school setup of "okay here's how you churn out code until you can leave work"
 
It's so much more than a tool, it's like a foundational problem of computer science.
 
@ZeroPiraeus we didn't do regular expressions directly; just finite automata and EBNF stuff
Except as I said earlier, I did some regex in some module that had a bit of Perl in
 
Someday I'll wear pajamas in the daytime. Someday I'll have a disappearing hairline. Afternoons, will be measured out and measured with coffeespoons and TS Eliot.
 
Sounds good!
Other than the comma after "Afternoons"
 
It's a pause for dramatic effect.
 
user559633
2:26 PM
TS ELIOT DONT NEED GRAMMAR BECAUSE TS ELIOT ARTIST
 
In the room, the OPs come and go, talking of zip(*[iter(s)]*2).
 
user559633
Oh, i was thinking of E.E.Cummings.
 
@ZeroPiraeus Um... what Shakespeare play is that one from? :p
 
Faust, I think.
 
2:28 PM
I thought it was Portrait of the Artist as a Young Chav
 
user559633
@RobertGrant Oi, nice.
 
how do you do or when using a regex? Eg, "2 OR 4" digits /^\d{2,4}$/
 
user559633
(2|4)
 
user559633
@akshitBhatia thanks for reading the room rules!
 
Uh oh spaghettios
 
2:29 PM
i didnt
sorry
 
user559633
Your idea to post a question you asked literally 2 minutes ago will definitely go over well for you!
 
haha
aaand closed
 
A girl should know that a letter cannot be 'X' and 'O' without giving itself to the many-faced god. — deceze 6 mins ago
:D
That escalated quickly :P
 
2:31 PM
Got it. Sorry folks :)
 
user559633
And there goes the minimum rep needed to chat. The system works.
 
Oh wow I didn't know that was a thing
 
@RobertGrant I think it's 10?
 
Will he be automagically kicked?
 
user559633
It's 20. And because of boring trolls, he also lost the ability to have an avatar.
 
user559633
2:34 PM
No, I think he goes read only
 
@akshitBhatia can you read this?
 
alright guys. m not gonna chat. dont need to be a bully about it.
 
@BhargavRao But I want Bob to languish in my snappy comeback
 
ah, see, it takes time.
ok, gotta focus on work, ciao.
 
user559633
2:36 PM
@akshitBhatia It's not being a bully. Read the room rules and do some good for others on StackOverflow.
 
Yeah, let's be a little more generous.
 
user559633
God I just want to leech off the kindness of others and never respect them or contribute, what the hell guys
 
@corvid You've managed to find a regex problem where almost every character needs escaped in vim. \<\(\d\{4\}\|\d\{2\}\)\>
 
It's a first offence, and an unknowing one. Plenty of other chat-like fora would allow it, and @akshitBhatia has apologised.
 
user559633
If it helps, I don't really care either way
 
2:36 PM
@QuestionC yeeees... then my evil plan is working...
 
@akshitBhatia hint: instead of just asking for people to write code for you, show what you've tried in your question next time. It's a site to generate a high-quality body of Q&As, not a code writing service.
 
I think the only way we could make this better is to search for backslashes.
 
Wow, LinkedIn suggested the company "Success Brokers" to me. If I ever work anywhere called that, shoot me.
"Success Breakers" though, now that sounds awesome.
 
The market is in a success glut now, BUY BUY BUY
 
Too late! The Success Breakers have ruined it! Our success is worth NOTHING!
 
2:40 PM
@RobertGrant You don't want to be the Chief Thought Leader at Success Brokers?
 
@MorganThrapp actually I would love that, because then I could spend all my time on other stuff
"Let my thoughts be your guide"
 
I am sorry if my question offended people. It has been put on hold as it is too broad and hence i have edited it explaining the actual problem. I asked a broad question so that it could help someone else searching on google for such a problem in their own use case. I have tried to find its solution myself by going through the documentation of re in python but i could not figure out how to capture a word in the find expression and use the same word in the replace expression for all matches.
sorry for breaking room rules. thank you.
 
user559633
read the stackoverflow rules and the room rules and i'm sure you'll be fine @akshitBhatia
 
@akshitBhatia Thanks for making the effort to improve your question, and welcome to the room.
@everyone_else if you're of a mind to reopen stackoverflow.com/questions/31029320/… I'd appreciate it, so that I can answer.
 
DSM
Morning cabbage for all.
 
user559633
2:50 PM
cbg @DSM
 
cabbage DSM
 
@Zero done
 
cbg Deezy :-)
 
cbg @DSM
 
@JonClements That moment when the mod-diamond came to help :) No it didn't
5th guy there :P
 
2:52 PM
Hola peaches and pears
 
Yeah... it was on 4 anyway... so doesn't matter :)
 
I saw that @tristan :D I'm excited, I loved Top Gear
 
user559633
new ----top gear---- idiot old man and two amusing co-hosts kind of talk about cars...show
 
ugh stupid regex... matching ` / ` is weird
 
DSM
2:53 PM
If you can answer a question completely in only a few lines of code, can it really be too broad?
 
The bbc version, anyway.. The australian hosts seemed cool. But the americans really bombed on it
 
user559633
@DSM depends on the lines of code
 
It's not really about cars, that's what was so cool about that show. Except that it kinda is about cars. The best way that I can describe it is that my gf does not care about cars, and would never enjoy a car show, but she watched top gear a couple times with me and was laughing her butt off
 
@DSM I'd say yes
 
@akshitBhatia does stackoverflow.com/a/31030022 help?
 
3:00 PM
Lateral thinking. I like
 
DSM
I've found demjson useful in the past. It works on the OP's example.
 
@DSM dammit - was just going to suggest that
 
DSM
So this is what it's like to be Kevin! Being Kevin is good.
5
 
Hmm, I feel listless
 
Umm... waits for Kevin to star that...
 
user559633
3:01 PM
lifehax ask a bad question, don't read the rules, then wait for the sympathy effort to roll in, ending ahead in internet points
 
I'm being generous to the author of the log file and assuming that they're writing valid something rather than invalid something else ;-P
 
DSM
It's quite clever.
@davidism: good edit.
 
Why list, though? I'd understand typo-ing line, or liek
 
user559633
oh wow, thanks recruiter for this hot tip on a ruby on rails job at a fringe social media company wherein i'd be the only developer (but "lead"!) and taking over the project from a consultant
 
stackoverflow.com/q/31029974/2301450 definitely a dupe, not necessarily of the linked question
 
3:05 PM
> Domain: wonderb0.lt
> Status: pendingCreate
:(
It's not a spontaneous decision if I have to wait a whole day.
 
Who are you using?
 
A German registry I had a positive experience previously
 
@wonderb0lt lol
 
I use Namecheap. I don't remember any delay on any of the domains I've purchased.
 
user559633
I use gandi.net. Amazon uses them and it's cheaper to register at Amazon, but they don't do mail forwarding :/
 
user559633
3:11 PM
@davidism Are you sure you don't use webfaction?
 
How much is it to own a domain, anyway?
 
I use WebFaction too.
 
user559633
one hundred gold beads
 
Should try some other provider next time, huh?
 
3:13 PM
I'll guess.. 30 dollars and five dollars a month for the lowest bandwidth?
 
@Dracunos Depends on the registrar, but it's usually ~$10/year.
 
$10 a year is the fair price.
$100 a year is the predatory price.
 
That's pretty cheap
 
Domains don't provide bandwidth though.
 
Hypothetical. If I was too cheap to buy a domain, could users visit my website by accessing my IP address directly?
 
3:14 PM
So ten a year is just to register the domain?
 
Yeah, that's just the cost of the domain. For hosting I use Digital Ocean, and their lowest plan is $5 a month.
 
:) Glad my answer proved helpful, but are you sure Zero Piraeus's answer is not what you really are looking for? — stribizhev 1 min ago
^_^
 
@Kevin Yes, but that's a really cheap hypothetical.
 
This is exactly what i wanted to find out with my original question. The concept of how to back reference in regular expressions. — akshitBhatia 3 mins ago
That's not what the question asked at all...
 
Wouldn't it be easier for visitors to remember keven.is.thebestprogrammerinthe.us than your IP?
 
DSM
3:16 PM
Maybe he wanted to invite us all on a great mystery adventure!
 
I use pythonanywhere, the free one. No domain, though
 
@MorganThrapp It kind of is, pre- all the edits, to be fair.
But it was more than a touch XY, so ...
 
DSM
Hmm. On second thought, I think you invite people on grand adventures, not great adventures. Not sure why, you just do.
 
In the spirit of fast prototyping, I'm seeking the shortest possible route from "nothing is set up" to "someone three time zones away can see my page"
 
@ZeroPiraeus I mean, having read it before the edits, learn regex would not have been the part I would have picked out as important in that.
 
3:17 PM
Not for any particular purpose, mind
 
@akshitBhatia A moderator didn't edit your question, I did. I'm a normal user, and so is Zero (not that it matters). Your original question was unclear and too broad, I clarified and focused it. Don't try to guess what might be a "general question", just ask a specific question.
 
@akshitBhatia - It's better to ask multiple, specific questions than one general question.
 
is emphatically not normal, thank you very much
3
The nerve!
 
@Kevin Just started with PythonAnywhere last week. Got up to speed and dicking about within a couple of hours.
 
@Kevin Check out pythonanywhere.com, you can get a free python site (it'll even set up a hello world in flask, django, etc) and people can access your site at eg. kevin.pythonanywhere.com
 
3:21 PM
Having kevinstarlord.pythonanywhere.com is surely better than dod.gy.ip.address
 
Oh wow. That's awesome. I've been wanted to learn some webby stuff, so I'll have to check that out.
 
Wot Dracunos sed. 'Ee seems a smart one
 
@ZeroPiraeus I have a feeling they had a yaml file in the first place and didn't realize it, not a close-to-json file. Good catch.
 
When you make your account, your nickname will be the first part of the website url. Unless of course you get a paid account
 
@davidism It seems reasonable to assume valid input without concrete evidence to the contrary, yes.
 
3:24 PM
I don't mind dodgy ip addresses, since if I was going to share prototypes with anyone, it would be you guys, and you can probably trust that our relationship isn't just an extremely long con to get you to visit my malware page.
That said, I'll remember PythonAnywhere
 
DSM
.. until now, I'd never suspected anything of the sort.
 
@IntrepidBrit So are you intrepidbrit.pythonanywhere.com ?
 
... THEY'RE ONTO ME! jumps out the window
 
My rose bushes!
 
Can you nest range specifiers in regex? Eg: /^\d{4}\s{1} * 4 ? I was thinking of using a capture group but it doesn't seem to work
 
3:31 PM
@Dracunos (That's IntrepidBrit for yes)
 
Cool, what's the login and password? rubs his hands together evilly
 
Wow... someone jumped on obsolete comments for that regex post fairly sharpish :)
 
@Dracunos There's no interface yet, it's all backend. That, and there's wires and sawdust everywhere. It's quite the mess.
 
What are you intending the website to be?
 
nvm got it. ^(\d{4}\s*){4}$. Dumb thing
 
3:34 PM
Aside - how boring is Cornershop's Brimful of Asha sans Norman Cook Remix?
 
None more boring.
 
@Dracunos As much as I love my country- the UK government's infrastructure is a pissing bloody waste of space. Much of the information available is only available in Excel and other isoteric means. Nothing's standardised, certainly no API worth a damn
So, I'm going to use it to (hopefully) provide a cheeky API to some of the stuff I'm interested on (mainly keeping tabs on our MPs)
@ZeroPiraeus Good to know I'm not the only one. bans that song from last.fm
 
"having identical valence electron configurations"?
 
Uhh
*esoteric
 
@IntrepidBrit Jeeze. Actually being productive? My site just has some half-assed games on it
 
3:39 PM
@IntrepidBrit you're going to keep tab on our MPs? Awesome - not a job I envy - but somebody's gotta do it!
 
Half assed games are more fun though
Well, when it's finished, the site will (hopefully) allow people to "rank" MPs
 
Maybe if america had anything to be upset about, or even a hint of corruption, I may have opted to do something like your site. But alas
 
Ie - how many votes attended, which way they cast, how many bills they're sponsored/co-sponsored, what expenses they've claimed, how much they're paid
 
@Dracunos wow... I can feel that sarcasm even across the net!
 
Also hoping to do some ML and classify the issues they actually speak on, what keywords are associated with them etc
 
3:42 PM
I should really learn not to try and guess what people mean when they say "It's not working".
 
But it's all a pipe dream. I'll probably (at most) develop an API that has no front end
 
@IntrepidBrit well - that's still an API - so that's a success :)
 
Presumably you're aware of theyworkforyou.com and intend something different/better?
 
@MorganThrapp Ugh.. I have to do repairs at this hospital, and people are constantly saying 'broken'. And I even ask them, what the heck is actually broken, the spo2? The blood pressure? They always say I don't know, and I have to walk over there and hope I guessed right and brought the right equipment to test it
And I live in the desert, so it's over 110F here, and the shop is not even inside the hospital for some reason, so that means walking through the scorching heat back and forth. But I'm not bitter
 
@ZeroPiraeus Oh wow! That's changed a LOT since the last time I looked at it
 
If they've got an API, I can just implement the ranking system
 
How do I tag syntax again?
 
[tag:cv-pls] ... or github.com/cv-pls/cv-pls
@IntrepidBrit No idea re: APIs, but I have found the site handy while considering potential party leaders.
 
Will need to pick your brains on that matter later
 
@ZeroPiraeus Right, thanks.
 
3:50 PM
@Dracunos You'd think medical workers would sympathize about vague symptoms. "Doctor, I think I'm broken". "What symptoms are you exhibiting?". "Uh... I don't know. Just fix me please"
5
 
@IntrepidBrit Farron, but then you knew that :-P
 
"all right, I'm going to try to turn you off and on again." reaches for defibrilator
 
@Kevin thanks - I just choked on a mouthful of tea - you beep
 
Success!
 
Defibs don't turn people on.. Unless they are into that sort of thing.. They just stabilize a crazy heart rhythm
 
3:51 PM
@ZeroPiraeus Was wondering if it had changed ;)
 
user559633
@Dracunos I find this shocking
 
I know but I couldn't think of a more accurate device
 
LIES. I've seen it turn people on again! WITH MY OWN VERY EYES on TV
 
Uhh, adrenaline shot to the heart? It worked in Pulp Fiction.
 
Haha, I don't know, they apparently can restart a stopped heart, but all I know is about vague non-clinical related stuff about the equipment
 
user559633
3:52 PM
@Dracunos I've found them to be effective in bringing people back to life in my experiments.
 
Where do they pull these answers from?
-1
A: python urllib corrupts downloaded documents

Anshul JoshiWith urlopen you lose particular format, indentation, encoding etc. Use urllib.request.urlopen instead of urllib.urlopen. Do pip install requests first to use this.

What a complete and utter bollocks.
 
AHA!
 
user559633
Yes father Martijn incoming down-votes make a whirring sound as they pass
 
Thanks Zero. Found a "hidden" API
 
Yeah, I've come across those before. "I have no idea how urllib/2/requests are related, but here's some nonsense."
 
3:55 PM
Martijn's avatar could pass for a priest if you MS-painted a white rectangle on the collar.
 
@IntrepidBrit Cool :-)
 
user559633
@Kevin Where's the goat's head?
 
In the crawl space with all my other Christmas decorations.
 
user559633
unrelated: someone donate money to my kickstarter for an "adult" exorcist parody named "the sexorcist" (the booty of christ compels you to do this)
 
I can almost guarantee you that's already been done a number of times
 

« first day (1712 days earlier)      last day (3236 days later) »