« first day (1994 days earlier)      last day (2958 days later) » 

4:00 PM
In other words, removing the icons from each row: imgur.com/ImQTfwN
and switching to a menu that comes up when you press the row i.imgur.com/H4cIoW8.png
 
This OP is an odd duck, he told me twice in separate comments how helpful my answer was, but didn't accept.
I wrote off the first one because it was in the grace period where OP's can't accept, but the second one was an hour later...
 
Could always give him a light reminder
 
I think I will in ten minutes or so.
 
@Kevin I wouldn't help him ever again.
 
I have a theory that OPs that say "thanks, this solved my problem" without helping can actually net you more points than if they had accepted.
 
4:04 PM
I mean, who doesn't respect your time to write a good answer, he doesn't deserve to have a good answer
How ?
 
Scenario: OP makes the comment and does not accept. A passing reader notices the situation and thinks "poor guy, he didn't get his accept points. I will upvote to compensate". Then another passing reader does the same. The answerer now has 20 points rather than the 15 he would have ordinarily gotten.
 
good point..
 
If this is some kind of game-theory meta-play, congrats, you've got my upvote!
 
btw what OP really means, I know that's the person who asked the question, but a whole word interests me
 
Original Poster
 
4:06 PM
That's it
 
I've also seen it used as Original Post as well (depending on context)
 
Or Over Powered, in a gaming context. Not likely to see that on Stack Overflow though.
Mods, Jon Skeet is OP, plz nerf
 
We have now removed Jon Skeet's ability to use verbs
 
Why Jon Skeet is hero here?
 
We have added a five minute cooldown to the "e" key on Jon Skeet's keyboard.
@MarkoMackic He has the most points of any user, and his answers are typically quite good.
There's also an element of "famous because he's famous"
 
4:10 PM
Almost 33k answers now
 
I know that he has the most points. That's what I've seen :) but he wasn't mentioned here before that much :D
So that guy is really smart
 
He was more prevalent during the era when fun was still allowed on SO. See: Jon Skeet Facts
 
"Jon Skeet does not use exceptions when programming. He has not been able to identify any of his code that is not exceptional."
that is hilarious
 
"When Jon Skeet points to null, null quakes in fear." bahaha
 
Note: the top answer on that post is written by Jon Skeet. That may not be apparent because it's marked 'community wiki"
 
4:16 PM
Even though SE is community driven who adds features to site ?
 
Android cbg
 
The Stack Exchange development team. Actual employees that are paid actual money.
 
Ah, that's cool, so they are acctualy a company..
Now I know :D
 
> Jon Skeet can believe it's not butter.
 
I love Jon Skeet facts
 
4:20 PM
Guys, I got a question. How do I turn a string to a variables name?
 
Generally, you don't. It's a bad way to solve your underlying problem.
 
No, i was just wondering
 
Disclaimer: Don't actually do that.
 
@DanielEngel why would you do that/
 
@QuestionC: Especially because it doesn't work.
 
4:22 PM
Whaa?
 
@QuestionC locals() should be treated as read-only :)
 
If i want the user to enter a name for the object
 
Use a dictionary.
 
When you find yourself wishing you could use "variable variables", that is a strong indication that you should be using a list or a dictionary instead.
 
4:22 PM
Thirding dictionary
 
Demonstration of it not working: ideone.com/9dna7J
 
@idjaw there's a new answeron that "last 3 elements of a list" question, it's a dupe of the selected answer. :(
 
There is (almost) never a time when you truly need variable variables, and if you do, you know exactly why you need them and how to use them.
 
DSM
Am I too late to fourth dictionaries?
 
4:23 PM
+1 for that
Here's a pretty good rule: If you're confused about how to do something in Python, you're probably using the wrong tool.
 
@user2357112 it works fine at the top level though
 
@vaultah: Yeah, but there you'd use globals().
 
Dictionary[something]=kind_of_object
 
@PM2Ring a dupe of the selected answer?
 
locals() is globals() at the module level, so it doesn't really matter
 
4:26 PM
Wait so there is no way of somehow doing it?
 
geez python poping
 
@DanielEngel There are some hacks with eval and exec, but again, you don't want this.
 
My user enters a string. I want that string to be the "name" of the var. Well, another idea into the trash can
 
Hey, look what I found: How do I do variable variables in Python?. Now we don't have to rehash the same points that have been made umpteen times before.
 
@DanielEngel You could make a custom object and have the name be a member variable
 
4:29 PM
@idjaw stupid autocorrect. Its a dupe of the deleted answer
 
Member var?
 
@DanielEngel Read the question Kevin linked. It will answer all your questions.
 
@Kevin ew
 
This almost sounds like an XY problem, though -- what are you trying to accomplish?
 
@PM2Ring Ah. Yeah...I think original answerer didn't like that there was a lingering -1 there, so they removed it. Still not giving an upvote to that answer. Plus...I think that question should be dupe hammered, don't you think?
 
4:31 PM
 
PHP is retarded
 
Z["eggs"]=kind_of_object()?
Is this achivable?
 
@DanielEngel Sure, if Z is a dictionary. That would store the result of kind_of_object() with the key of "eggs". You should really read a tutorial, dictionaries get covered pretty early into a good one.
 
@idjaw sure
 
So this kinda answers my question. Can the key of "eggs" be a string to
?
 
4:34 PM
 
It is a string. Again, tutorials. They're helpful things. Here's a good list of them
 
@Morgan'Venti'Thrappuccino hanks!
Thanks
 
@MarcusS Variable variables is almost always an XY problem
 
Agreed
 
I know pretty well dictionarys, just didnt acctualy think of using it this way
 
DSM
4:40 PM
The only time I ever manually hack with globals() is for convenience when I'm working interactively. I'd never do it in production. (Well, maybe not never, but I've never done so yet.)
 
I can't think of a time I ever had globals() or even locals() in any production code I'm using
 
Blackhat things?
 
eh?
 
Dsm mentioned hack
 
@idjaw I already voted as unclear, since the OP didn't say what to do with short lists.
 
4:42 PM
Oh...no...he didn't mean hack in that sense...he meant in just hacking away at code
 
DSM
^ this
 
That reminds me of the journalist who wrote an entire article about Linux Torvaldus having "a hacking history in cybercrime".... The level of cluelessness was unbearable.
 
anyone knows what's the difference between django models composition and inheritance (both OneToOne)?
 
Have any of you read this book "Learning Python network programming"?
 
4:44 PM
I can't wait...I'm going to my first concert in a very long time tonight to see these guys. They are such awesome musicians.
 
Print is a dead medium.
 
what's print.....precious?
 
boil em mash em stick em in a stew
 
:)
 
I use return more often.
 
4:46 PM
Good choice. return is easily in the top ten percent of all Python keywords.
 
DSM
Out of curiosity, was the gmail thing a real prank gone wrong or are the stories about it a prank? (Note that it's past 12:00 in my time zone and so by tradition no one can prank me any more.)
 
Because its 1 in April?
 
I haven't heard anything about gmail today so no comment.
The only pranks I've seen today are the release announcement for Python 8, and a peculiar string of plagiarism on reddit.com/r/comics
 
@MarkoMackic No, that's just tuple assignment,which works in parallel,not right to left, or left to right.
 
Python 8 xDDDDÄŽ
 
4:48 PM
The only internetting I'm doing today is SO, GitHub and Jira
To avoid any April 1 shenanigans
 
DSM
@Kevin: I meant this story.
 
oh my
 
Occam's razor suggests that the prank was real and the reporting about it is in good faith.
 
@idjaw Oooo, I like it.
 
I'm skeptical that the testimony of people saying they lost their job or whatever is completely real, though.
 
4:51 PM
shouldn't there be a way to follow questions on SO
like getting update if an answer or comment is posted....any
 
Actually, I think I've heard this before. It sounds super familiar.
 
If i would lose my job because of this prank...
 
@Morgan'Venti'Thrappuccino Listen to their first album. It is incredible it's called Dark Eyes
 
"Nice, this got me fired from my job at the [something] factory" is a common satirical response.
 
@danidee If you star a question and remember to check that tab, you can kind of do that.
 
4:52 PM
i've starred so many questions that i'm interested in possible answers but i forget sometimes
 
@idjaw Will do, thanks.
 
I can't stop laughing at this when it catches my eye
yesterday, by Ffisegydd
Fun fact: Finnish people store their anger and cynicism in their appendix, meaning that Antti is now a reasonable and well-rounded person.
 
This should be a core functionality of stackexchange in general....i can't see any reason against it.
apparently some people feel the same way meta.stackexchange.com/questions/13546/…
 
@idjaw Unfortunately fizzy has issues with dates, and meant to post that today. :P
 
hehehe
 
4:58 PM
@idjaw holy shit, that will make the day at the office on monday
 
Ahhh... I see YT is doing an April fools as well...
 
Tag calculation is really weird. On my main profile it gives me an old number. Clicking on the "gear" gives me the up-to-date number.
 
@idjaw blame caching and you'd most likely be correct in doing so most of the time!
 
5:05 PM
@Ilja Ah yes. The "One more thing..." syndrome.
:)
 
@idjaw I have a feeling that OP tried the any(...) and got a new exception somewhere else...
 
I guess it's cheaper to cache than to do a query and calculate
 
I would expect using the same cached result
across your profile
but I guess it all depends how segregated the profile components are
probably aren't sharing same data for valid reasons
 
@Ilja I know that feeling bro. Same thing happened to me today.
 
@Ilja best of course of action is to let OP engage with as much data as they can provide. You are doing it right for now. Once you start over involving and trying to figure out what they are trying to do you end up with a ridiculously long comment thread and then the chat window pops up...and you might be in it for the long haul.
Unless of course you want to do this....then, hey...go ahead. :)
 
5:13 PM
@PM2Ring why then it uses the old a ?
 
Is there any rule for how short an email address can be?
 
as short as the provider wants it to be
a@chickenwinghotline.com
can be perfectly valid
unless the rules by the provider say...no I want at least this many chars as the user name
 
@Morgan'Venti'Thrappuccino I was deadly serious. You Americans are so uneducated about the anatomy of other countries.
 
@Ffisegydd Wait, but it's April first. I DON'T KNOW WHAT TO BELIEVE. MY LIFE IS A LIE.
 
Believe in Fizzy.
 
5:19 PM
@MarkoMackic Because the assignments are done in parallel.
 
I guess this is a good time to tell you that no one on here is real either, Morgan.
 
@Ffisegydd I believed in Tristan, and now look at my name.
If I believe in you, what are you going to do for me?
 
Well that was your own fault. I now christen you... Dennis.
 
you...you know what you have to do now, right, Morgan Dennis?
 
I'll happily be Dennis
Remind me in 16 days when I can change my name again.
 
5:20 PM
Be who you want to be, as long as it's Dennis.
There may have been free beers at work.
 
may have been?
 
@PM2Ring lets say I understood, thanks
 
Clearly there was a either a lot of beer or no beer.
 
Fizzy, when beer is involved at work, you need to be better than "may have been"
you are such a disappointment
 
@idjaw heh, it's actually sometimes fruitful to engage in a longer conversation with OP, but mostly not :P
 
5:22 PM
@MarkoMackic I d say more but it's painful on this tablet.
 
but it seems that at the moment the comment section turned in to a python2 vs. python3 war
 
@Ilja I absolutely agree....if the conversation is interesting. If it is, "now this does not work, then that does not work"...it can get exhausting.
 
What is btw the "official" standing on providing 2/3 compatible solutions vs. 3 only, if no clear intent to use it with 2 is present?
 
It's up to you. I assume everyone is using 3 unless otherwise stated, but do what you want.
 
@Ilja My take on the 2 3 thing is to actually specify what works in one and not the other if the user does not specify what version they are using. Considering how widely used 2 still is...I think it is good practice to make your answer more complete specifying that
 
5:26 PM
I use whatever version OP is using. If it's not apparent, I use 2 because that's what I use more for my own work.
 
@PM2Ring I'll google it, but we'll talk anyways :) sure I'm going to find something unclear till you get to computer
 
When does support for 2 end?
 
DSM
(locks and loads) Right about now.
 
DSM
5:28 PM
But officially 2020.
 
Probably for the best that it didn't onebox.
 
What's best way for real time communication between frontend and backend by your oppinion?
 
what do you mean by real time?
 
okay makes sense thank you @idjaw
 
@JoranBeasley I haven't seen you pop up in chat in a long time. Hello! :)
 
5:29 PM
Like data should be refreshed at maximum interval of 200 ms
 
@MarkoMackic ... ummm sockets?
 
@JoranBeasley I tought so
 
lol hey @idjaw
 
Hope you're well
 
idjaw: the long-lost Doom cheatcode
 
5:31 PM
yeah I am ... busy ... all the time
 
@wim I watched every episode of their April Fools list, they are really funny :)
 
@wim Woah, it's Todd.
 
@JoranBeasley 'ello 'ello 'ello stranger :p
 
Rhubarb
 
DSM
April rhubarb for PM2R!
 
5:34 PM
@PM2Ring rbrb
 
@idjaw ;___;
 
Did you trick anyone today?
 
@Ffisegydd it's ok..there there...there there.
 
@idjaw Don't worry, I'll have my revenge.
 
5:41 PM
I know you will. I'm enjoying this while it lasts
 
I'm aware of my imminent Fizzy-strike
 
One day. Years from now. When SO Chat is but a distant memory. I will strike.
 
This...this won't last? sniffle
 
@Ffisegydd I'll be waiting completely surprised and impressed with your determination
I want to help OP with this ... But the more I look at it, the more mistakes I find.
 
5:48 PM
Im amazed we interviewed someone here ... said person works currently at a very well known company that starts with a g ... the individual "self graded" themselves on python at an 8 ... but then could not write a function that takes a list of strings and returns true if their name is in the list ...
 
Yeah, there are a lot of mistakes there. There's the fundamental problem where the program never goes back to previous tests, but there's also stuff like calling a string as a function, forgotten method call parentheses, that one weird break on the last loop, half the tests are outright wrong, firstch and lastch are only assigned in a loop that might not run and never reassigned when a new username is provided, etc.
 
another individual that failed that test has worked at another well known company that starts with an M for the last 30 years
 
nerves
 
I dont understand how these people are employed at these huge giants
 
this reminds me of FizzBuzz
 
5:49 PM
only so much can be attributed to nerves
 
I agree
 
my_name in a_list == perfect answer ... but loops are ok too :/ this is the equivelent of asking an english major to list the vowels in the alphabet ...
 
a, e, i, o, u, w, y
 
@Joran Wht's vwl?
 
5:51 PM
exactly :P
 
omfg - I've learnt Welsh! :p
 
Racist mod is racist.
 
wow, snoopavision on youtube is amazing
 
OP asks for no loop here . I don't see why those answers are there...
 
@JoranBeasley How about f = lambda names, name: bool({name} & set(names))?
 
5:55 PM
@Morgan'Venti'Thrappuccino I would ask why they did it that way... and then strongly recommend we hire said individual
 
if I'm in an interview, I think i would just solve the problem immediately with whatever comes to mind first....then through discussion when I know I have solved it, I can start optimizing to make it look prettier and work faster. Because at the beginning you are nervous to not make mistakes and
if you start saying to yourself "OH SHOOT WHAT WAS THAT AWESOME FUNCTIONAL WAY TO DO THIS TO MAKE THIS A KICKASS ANSWER"....you might freeze and end up being that guy who could not simply do if thing not in that
 
@idjaw I don't know - your updated answer earlier was great :p
 
I want to prepare a bunch of really weird answers to interview questions.
 
I've linked it before, but this whole album is great.
 
Show up to an interview with something like this for fizzbuzz.
i=0
while 1:i+=1;print"".join("BzuzzizF"[::2*j]for j in(-1,1)if 1>i%(4+j))or i
 
5:57 PM
@JonClements Thanks! :)
 
@Morgan'Venti'Thrappuccino thats amazing
 
@Morgan'Venti'Thrappuccino and just leave the room
have them chase you....SIR COME BACK TO US
 
that answer to fizzbuzz should get you a job without any further questions :P
 
I wish I could take credit for it. :P I saw it on PPCG a while back.
 
Any idea what a good canonical dupe target for mixed tabs and spaces problems would look like? The symptoms can vary quite heavily, but the answer is always essentially identical.
 
6:01 PM
Once upon a time this got praise as awesome. I love old stackoverflow. Everything that gets rage-downvotes now got highly upvoted.
 
@idjaw but that is the answer :)
 
@davidism haha that is true. It is. Looks angrily at tab users
 
I like the form of that question
even though the question doesn't mean anything, it's kind of stupid :D and he'd like it in short
 
6:11 PM
Umm... made my first answer in ages... I'm getting rusty...
 
Wow, unicodedata has some interesting stuff.
 
@JonClements I caved in and added the Py2 vs. 3 note about map :P Though now I need to shower.
 
@Ilja Enjoy the shower? :p
 
Seems like a good question to me. It has an answer and people will google for it.
 
6:20 PM
I don't even know how to dupe target this one. It should just be closed as 'dude, seriously'? stackoverflow.com/questions/36363243/…
 
I can't kill any of my processes :|
 
just restart your computer
easy button ftw
stackoverflow.com/questions/36362980/… My link fixed the problem and we both flagged for dupe. hammer time please
 
@idjaw remember, we like to wait 10 minutes before posting links, they usually get taken care of without us
that was re: 2 links ago, not the last one
 
Thanks for the reminder. I was just trying to catch that one in particular since it seemed like one of those "million people" will answer questions
 
@idjaw I closed as "offsite resource"
and linked Python 3 tutorial
 
6:22 PM
Thanks
 
What's so bad about it getting answered?
5 mins ago, by QuestionC
Seems like a good question to me. It has an answer and people will google for it.
People probably won't google for that because it's poorly written, but you fix it.
 
@QuestionC there shouldn't be an answer to question that is in the first actual programming chapter of the official tutorial; now if it was the 10th
but this is 1 step removed from "what is wrong with my program: print 'hello world"
 
So?
 
they shouldn't be answered on stackoverflow
they should find the tutorial.
 
Unless the answers are bad, I don't really care that they get answered.
 
6:26 PM
If a question is blisteringly obvious and fundamental but doesn't have an answer on SO, that's a fault in SO, not the question.
 
But that question is unclear. Assuming they are actually an enthusiast or professional, which is what the site caters towards, what problem are they actually having?
None, because either of those two types of people would have read the tutorial.
 
exactly
 
Or watched anything on Python :) Agreed with davidism.
 
@QuestionC yes basically yes, but there is no stopping...
 
Virtually all SO python questions are answered by reading the tutorial. That's a meaningless criteria.
 
6:29 PM
no they're not. At least you need to apply your knowledge
The only thing you need to apply there is that the tutorial uses x[0] and x[3] and the user needs to understand to use x[2] instead.
 
Not just that. But looking specifically in the context of almost any computer language. How do you access data in a list or array? By index. This is something fundamental to almost any programming language that supports this.
 
It's a clear answerable question about the language without dupes.
 
cbg
Who was asking a few days ago about standing desk recommendations?
 
6:33 PM
@poke
Mar 28 at 16:09, by tristan
anyone have standing desk recommendations?
 
Ah, thanks @idjaw
 
+1
 
@tristan Just saw this on my twitter feed: engadget.com/2016/04/01/the-best-standing-desks
 
wow. I wouldn't mind getting that as well
QuestionC does raise a point. If we just look at it as a question. Without thinking about what the question contains. Is it answerable? yes. Does it have a dupe? no (maybe it does...I still can't find a good one)
 
@JoranBeasley Are we talking about return 'Martin' in list_of_strings?
 
6:35 PM
However, this is something where if the question was put in to google would come up with answers
...I don't know....
 
Or did I completely misunderstand the question?
 
@Carpetsmoker yes that is exactly it
 
@JoranBeasley The simpler these questions, the more confusing I find them, because I start to doubt myself and think it may be a trick question or there's some sort of caveat...
 
I'm back
 
I had the same when I first read about FizzBuzz; the solution is so blindingly obvious that I really had to stop and think to make sure there wasn't some sort of trick here...
 
6:40 PM
I prefaced it with "This is NOT a trick question, just do your best to answer, dont worry, we are not trying to trick you with crazy edge cases or anything"
 
How strange ...
At any rate, I got it right. Do I get the job now?
 
lol if you were interviewing it would have certainly moved the bar more towards yes than no
 
Oooo, better solution f=lambda name,names:any(sorted(map(string.upper,name))==sorted(map(string.upper,x)) for x in names).
 
Not enough OOP. Needs more enterprise! I would create a Person class which could be coupled to a Name instance.
 
What is lamba?
 
6:46 PM
I suppose testing whether people know about the in operator is a good way for a first screening when it comes to Python knowledge, as that's Python construct that not every language has...
 
@DanielEngel it's the first letter of the ovis aries alphabet? :p
 
according to wikipidea it is this
 
@idjaw wow
 
The guy in the picture is anonymous, so looks about right
 
6:48 PM
@Carpetsmoker yeah although we usually want to see them also do it as a loop ... its just a sanity check ... we have some (a little bit) harder follow ups, but its hard to find people who can get past the sanity check
 
I know that this is anoying, but hat is this something for somthing in somthing
 
Are you asking what a for loop is?
 
No non no
Wha isthis statment before the for
 
Then I have no idea what you're asking.
 
6:51 PM
You have it in oe of the codes you wrote
 
DSM
Maybe it's the generator expression that he's puzzled by?
 
I guess its something
 
(List) for n in something
Somthing like this?
I just cant explain it
 
Yeah, it sounds like a generator expression. Trying reading the docs on generators, and then a tutorial from the list I linked you.
 
6:52 PM
[a_num+2 for a_num in (1,2,3,4,5)] ? a list comprehension
 
its called a comprehension ... there are generator versions and list versions ..
 
SnoopaVision ?
 
and dict versions and set versions
 
6:54 PM
Just forget that i asked it
 
No tuple comprehension, which I'm still mad about it.
 
Is it available at you?
 
Please
I messed it up
 
I know generators already took that syntax, but I want a different way to do it.
 
DSM
Is it really so bad to use tuple + genexp?
 
6:55 PM
@DSM It's not, but the times when I want it, it's for golf.
 
I never understood the use of tuples
 
Most of my python feature requests come out of a desire to golf. :P
 
Lists are dominant in every way
 
DSM
"feature requests"
 
@DanielEngel Any time you need a list, but you don't want the items to change.
 
DSM
6:56 PM
You can't store a list in a set or use it as a dictionary key.
 
Plus aren't tuples very slightly more efficient by virtue of being immutable?
 
But why should i be worried of it to be changed? By hackers probably
But i saw a way of changing a tuple
 
you cannot change a tuple ... you might be able to change a mutable item in a tuple ... or make a new tuple ... but you cant change it(the tuple)
 
@Morgan'Venti'Thrappuccino Looks like it: stackoverflow.com/q/68630/660921
 
But if you change a tuple item directly, you get an error
 
6:59 PM
yes, because it's immutable
 

« first day (1994 days earlier)      last day (2958 days later) »