« first day (2644 days earlier)      last day (2319 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
That's one thing I hate about the Large City that I live in. We just announced a major subway extension, which is great, except for the fact that our current one is barely functional.
I get it, you won't make as much money fixing all the old stuff, but come on man.... When you have a delay almost everyday, something is wrong.... (I know it's still a firstworldproblem)
 
> The average number of delays [in the NYC subway system] in a month has increased from about 20,000 in 2012 to more than 67,450 in May 2017, according to the report.
Try 2,000 delays a day :-P
 
You people have timetables? Hah!
 
Obligatory mention of the Japanese train network that hands out printed acknowledgement of a delay so you have an excuse for being late to work
 
We have delays all the time in NYC, NJ, etc -- especially now with the snowy weather
 
London doesn't have timetables on most of the Tube :p
 
4:19 PM
on average, between 2014 and 2017 there are 58 delays (doesn't mention how serious) a day... (also includes buses too)
 
4:41 PM
A Magic Tube Cart is never late! It always arrives precisely when it means to.
 
It took me a couple of reads of that sentence to parse it, for some reason...
 
4:59 PM
rb folks
 
Somehow, in an environment that's 99.9% not-python, I've got the task of packaging this one python script. Of course when I get the python task it's the one thing I've never done with it.
 
Fixed "It's among the things I've never done with it."
 
You expect that 0.1% python-related part of the env to be familiar too? There's no pleasing you!
 
Yeah I'm just going to write the rpm specfile manually because no one is ever going to install this as a python package and it's only one file
 
5:34 PM
@AndrasDeak @AndrasDeak Yeah. I misinterpreted the docs regarding histograms (thought edges were referring to offsets) I added one extra value to the bins to create one more edge. Thank you.
 
No worries. If you want to avoid any uncertainty about your integers, consider using np.arange(-0.5,255.6,1) or something
But np.bincount might be even better for you, depending on what you're trying to do
 
DSM
I forgot I had meetings from 1-3 and so didn't eat lunch, and now there's not really enough time. :-(
 
I think I finally get git :O
 
don't get too hangry
 
DSM
5:43 PM
We'll see if a strawberry-flavoured cereal bar and some coffee will get me through the next few hours.
 
:( good luck
 
6:32 PM
Hmm I came up with a hideous regex solution to duplicate item_01 and rename to item_02 but I wonder if there's a better way
>>> s = "item_01"
>>> re.sub(r"\d+", lambda d: "{:0{}}".format(int(d.group(0))+1, len(d.group(0))), s)
'item_02'
Not fond of calling .group more than once
 
@MarcusAndrews pineapple. I still don't really git it :D
@Kevin "lambda"... Kevin is at it again :D
 
6:47 PM
Ah well, I posted it anyway. It's less WTFy if you spread it onto multiple lines
 
Not sure if this is any better, but I'd have used zfill: lambda m: str(int(m.group())+1).zfill(len(m.group()))
 
If it means I don't have to explain how nested curly brackets in a format string work, then yes, it's better. Edit imminent.
Bonus: the zfill approach is a couple characters shorter, which makes the final code blocks fit on screen without horizontal scroll bars.
Currently dreading a comment from OP along the lines of "thanks, this is exactly the string I wanted! Now, how do I put it into Modo?"
Sorry kid, I only do string manipulation. Interfacing with third party software is an extra 500$ a day plus expenses
Mostly whiskey expenses
 
7:05 PM
You should respond with "I don't know". That tends to blow most OP's minds. This is SO, everyone here knows everything! Right?
 
There are a couple pieces of software that go by the name "Modo", and one of them is for Magic Online, the online version of Magic: The Gathering. I should challenge OP to a duel, the stakes being whether I give him teh codes or not.
And if I win, he loses his soul or whatever idk
If we have a dupe target for "why does this not work? for x in my_list: print(my_list[x])", stackoverflow.com/q/48214152/953482 could use it
 
go go gadget cabbage
 
cbg idjaw
 
\o
 
7:23 PM
Currently irritated at an answerer for defending his roundabout code with "well some people might prefer the longer less readable way, it's a matter of opinion" which is not wrong exactly but pretty vacuous
Friendo, I write unreadable code as a hobby and not even I am buying this
 
I ate myself into a sleepy state and I have another 2 hours of work
on the bright side, Violet Evergarden came out today
 
You should suddenly become aware of the rapidity with which your body is whipping around the axis of rotation of the Earth, and the Earth about the axis of the sun, and the sun about the axis of the galaxy
You moved 10^17 meters in the time it took to read that sentence. And another 10^12 meters to realize I'm making these numbers up
 
I stumbled across Violet Evergarden ep1 today, that was a nice surprise after all these months I had to wait for it.
Also, I've been banned from working on our group project, because I've done most of the work so far. So I can watch anime with a clear conscience today.
 
Google says it's more like 2.3E5 m/s. So I was way off but that's still a pretty big number
 
That's pretty fast. Should we try to slow it down a bit?
 
DSM
7:37 PM
May 11 '15 at 21:16, by DSM
One of my students once submitted an answer which was ~10^100 m/s. I gently suggested that should have probably seemed odd.
 
@Kevin @Rawing I like the dbl {{}}
(lambda a, b: f'{a}_{int(b) + 1:0{len(b)}}')(*'item_01'.rsplit('_', 1))
 
I'm going into Violet Evergarden with a bias, and I know it's going to be my number 1 anime this season :\
 
Try to keep all speeds below 2.9E8 m/s, otherwise you'll be able to clip through walls and access debug content
 
@piRSquared ಠ_ಠ
 
[I don't want these .png]
 
DSM
7:40 PM
I've enjoyed KyoAni works before. VE doesn't leap out at me as exactly my cup of tea, but who knows?
 
/IncredulousWhat? It has all the relevant parts:
* Difficult to read
* Pretentious lambda
* Splats __always__ lead to a followup question
* AND the double formatted curly brace
 
*hands cease and desist letter to piR2*
 
Oh god I'm cataching up the backlog of xkcd, this one got me crying again feels... so much feels ;(
 
Update: Modo OP did not ask me any difficult modo-related follow-up questions.
 
DSM
moDONE.
(I still haven't had lunch. Cut me some slack.)
 
7:48 PM
I heh'd
 
@DSM go have some lunch. Are you still counting your calories intake ?
 
DSM
Always. I have plenty left to spare today, though, just not the time. :-/
 
Time to delegate to someone so you can eat something :D
 
You need to increase your caloric energy per unit time. Let's see, that's... watts. How to get more of those without electrocuting oneself...
 
DSM-still-starving recabbage
 
7:54 PM
I bet a potato battery would be perfect. Low chance of shock, and you can eat it afterwards
 
DSM
Maybe some chai tea will help. Let's find out.
 
perhaps if you put some actual food in it, cereal style
 
Tea contains ions, doesn't it? Good for conductivity.
 
There is a dish where you have a rice ball in a bowl/cup of tea :D
then all you need to do is add some toppings of your liking to the rice ball, say fish or meat.
 
I intentionally said generic "food" to save DSM some salivation
 
7:58 PM
Nope, I misremembered. Tea isn't (especially) ionic, it's oxidized.
 
DSM
#science
 
Got my sciency-words-included-on-the-package-to-impress-the-uninformed mixed up
 
FWIW ions and oxidation are related notions
 
Currently trying to figure out whether tea gets more ionic, or less, when you boil it.
> Oxidation is the loss of electrons or an increase in oxidation state by a molecule, atom, or ion.
Ok, so... Not enough information. If dry tea has lots of positive ions, then oxidizing it makes it more ionic. But if dry tea has lots of negative ions, it gets less ionic.
 
I don't think boiling affects the ionization state
 
8:03 PM
It just gets hotter, duh
 
that would mean that ~chemistry~ is going on in your teapot, which you wouldn't want (too large energy scale)
 
So you're saying the tea is already pre-oxidized in the box? I guess that's possible.
 
you were talking about ionic up there :P
oxidization might happen if there are other stuff in there with the tea, I could imagine that something dissolves in water creating an oxidizing agent
 
> Oxidation begins when the cell walls within tea leaves are damaged. To achieve cell damage, tea producers macerate, roll or tumble tea leaves to intentionally initiate oxidation. Maceration is the quickest path to full oxidation because the leaves are, well… macerated which exposes much more of the insides of the leaves to oxygen and results in a greater mixture of the chemicals within.
Ok, so it happens at the leaf-crushing factory.
 
the most boring source of oxidation: oxygen
 
8:07 PM
There's a "humanity F yeah" post floating around imgur that talks about how incredibly metal it is that our ecosystem is based around the exchange of a gas that eats through metal and explodes easily when in pure quantities
Oxygen is only boring because of the hundred million years of adaptation that keeps us from being immediately murdered by it
 
wellactually oxygen doesn't explode, it just helps everything else burn very very fast
See also "We are pretty sure that igniting the hydrogen bomb won't ignite the atmosphere".
 
Imgur makes up for scientific illiteracy with pure enthusiasm and caps lock
 
DSM
"pure enthusiasm and caps lock" is going into my "phrases to reuse someday" pile.
 
Some Earl Grey Tea turned 98°
It collected energy and got digested the next day
Isn't it ionic, don't you think
 
Trendy on tumblr these days is the vertical take-off of "no you doNT UNDERSTAND"
You need that initial half-sentence of warm up so your audience knows you're intentionally shouting in excitement
 
8:15 PM
sigh someone is answering clearly dup questions again time to get off SO and hang here for a bit :D
 
link?
 
actually i don't know if it's the target dup is correct but it relates
 
oh, Ajax again
 
yeah... everytime I see this user I just want to stop reading questions on the site.
 
yup, the dupe is OK
python gold badger, no less
with an upvote on that answer now
 
8:20 PM
By Ajax no less
 
I remember someone telling me I should go learn more Python before answering their question since I only had a bronze badge with sub 10k rep. I found it kinda funny.
Rbrb going to check if the office's ping pong table is open :D
 
I've reached out to them in the past but to no avail.
 
You're not allowed to accumulate rep until you have accumulated rep
 
Warning them about closing dupes instead of answering. He waits for the vote count to go to -1 before deleting
 
You must have work experience for this job entry position!
rbrb pingpong time :D
 
8:25 PM
I'm playing devil's advocate. What is an acceptable scenario for dynamically creating names in a namespace?
 
When your school assignment is "make an interactive calculator" and it's clear from the instructions that they just want you to give control of the REPL to the user, with a handful of mathy constants predefined for them
 
Depends on how dynamic it is. I wrote a class decorator that dynamically adds methods to a class just a few days ago
# adds a `get_image` and a `get_album` method
@connect(Image, Album)
class Imgur:
    ...
 
I'm thinking, I want to write a tutorial in IPython and I have function named load_vars that places all the relevant names in place for the recipient of said tutoring to play with
 
@MooingRawr pingpong's cool, have fun
one of the few sports I enjoy
@piRSquared I've seen a lot of related questions (and have indulged in doing that in the dark past), but I've yet to see an acceptable use case
 
I thought it was metaphorical. "About to enter the job application process and ping pong between the mutually contradictory requirements of 'must have experience' and 'must accept entry-level pay'"
 
8:31 PM
Does a class count as a namespace?
 
Oh yes, polluting the namespace with a variable number of variables is one of my secret guilty pleasures
 
I may have polluted one or two namespaces in exploratory scripts where I was just too damn lazy to type d["x"] instead of just x
 
The problem is once you create them dynamically, you almost always need to access them dynamically, and then there's the eval pit of doom. In python we have dicts which are an easy way out, but in MATLAB you need structs with a slightly field access esoteric syntax to get along
 
Luckily my laziness is forward-thinking enough to only do bad things if I'm pretty sure I won't have to undo them later
 
Ok, another "Totally Python Related" question. If I'm an advocate, what do you call the target of my advocacy? This isn't a riddle. I'm looking for a noun that I can use to refer to the thing I'm advocating for.
 
Hmm I got nothing
 
@AndrasDeak I mean "slightly esoteric field access syntax" :|
 
Anyone know of a suitable dupe for this? :\ stackoverflow.com/questions/48215353/…
 
Found one, just searched @MartijnPieters' answers for "backslash", sorted by votes.
 
I'm really bad with the site search... but I tried "user:100297 is:a [backslash]" as the search query.
I'll keep looking
 
I always use google to search with site:stackoverflow.com
always beats the internal engine
 
Yeah, I usually do that, but sometimes I know a specific user answered, so SO search is easier.
 
@davidism Aha, I found the same one by changing the query to "user:100297 is:a backslash" I realise [...] makes it a tag search >.>
 
was the post a backslash?
 
Ok, I asked in the appropriate place (-: english.stackexchange.com/q/425971/229102
 
DSM
8:49 PM
@piRSquared: am I missing something? I can't get .reindex(new_index, level=whatever) to work with missing elements. Since I'm now trying to avoid using .loc for such purposes (to avoid the pending KeyErrors), I'm kind of hosed.
 
@AndrasDeak yeah our office just got a table recently and it 's been a huge success in terms of people wanting to play during their breaks and what not. Some are super competitive others just want to rally :P
 
awesome :)
 
@DSM i've used that before. MCVE?
 
DSM
@piRSquared: I want the former to look more like the latter here.
 
(Searched for 'raw string')
 
8:58 PM
Meeting... I'll look when I can
 
DSM
@piRSquared: thanks. Neurons are probably just shutting down because of lack of energy.
 
quick someone push those energy tubes back into the system.
 
9:33 PM
Should I use the term TLS instead of SSL in documentation? "specify a TLS cert" vs "an SSL cert"
Technically SSL is no more, so TLS is more accurate.
 
Flip a coin each time
Swap each usage with each release of the documentation
 
DSM
Use TLS. Simply googling "tls vs ssl" brought up what I needed to know.
 
Yeah, that's what I'm going with. TLS isn't going to get more name recognition if no one uses the name.
Let's Encrypt manages not to use either term on its front page or getting started page.
 
because they're cryptic that way
 
@DSM Not sure why the level argument doesn't work, but there's a workaround (you probably know)
df.reindex(pd.MultiIndex.from_product([df.index.levels[0], [10, 20, 30]]))
 
DSM
9:41 PM
@cᴏʟᴅsᴘᴇᴇᴅ: yeah, it's the level bit which is puzzling me. I have a feeling this story is going to end with me having to make a PR on the weekend. ;-)
 
I'm not yet at that level where I can make PRs to the library when isn't doing what I want... but that would be nice
 
10:01 PM
@DSM yeah that's a problem.
df.unstack(0).reindex([10, 20, 30]).stack(dropna=False).swaplevel(0, 1).sort_index()
 
Wow, unstack AND stack in a single pipeline
 
Disgusting, Right?!
off to another meeting rbrb again
 
What's the best way to store a username/password/oauth token I need for testing without risking accidentally commiting/pushing it into the git repo?
Is it good enough to create a keys.py file that holds all the sensitive information and add it to .gitignore?
 
Push a keys.py with dummy variables to your repo. After that, .gitignore it.
Gives people context, I suppose, as to what keys.py is and where it comes from. Anyway, that's how I'd do it.
 
Makes sense. Thanks.
 
10:16 PM
Cbg all. Can someone please format the code here: stackoverflow.com/questions/48216566/… hopefully remove an unnecessary tag.
Or close/dupe.
Ah on hold. Thank goodness.
 
Sorry?
 
(Voted To Delete)'d
^ np. If anyone's interested. I love this song.
 
I voted, at least I hope I voted to close (I think I did).
@cᴏʟᴅsᴘᴇᴇᴅ That?
 
@Simon I don't think you can do that until 3k. stackoverflow.com/help/privileges
Heh, looking at that list now, 25k at one point seemed insurmountable.
 
10:26 PM
Yeah 25k look insurmountable to me as well but I'm getting a nice rep increase now +35 today +30 yesterday
Aiming for the 1k
 
35... that means you've had an answer accepted. Nice!
Or, you asked a question. Or, you got 2 downvotes and downvoted once.
 
Grrr the 3k boundary.
Yes answered a question and an up-vote on another (new) one and two answers yesterday. A sweet rep of 935
I joined SOBotics I downvote all the time now and have 19 flags today. 6 or so left
What is it like having 25k?
 
Nothing special.
 
Also my Python badge score is 18 now. I might just get it one day.
 
Baby steps.
Well, there's no point wanting a badge and then answering one question a week
If you want it, go get it. Nothing less than 10 answers a day, and keep that up for a couple of months
 
10:37 PM
You can find 10 answerable questions per day?! O.o
 
I've answered 2 today but very few of my answers get voted on (up or down)
 
@Rawing If you stretch and squint your eyes and edit a lot of questions into shape, then yes
Well, more opportunities in the pandas tag
 
Actually I've answered 4 today, One I could not solve because of a loop. One I deleted because they were unclear.
Or I didn't investigate the question thoroughly enough.]
 
Oh I also opened a GitHub account a few days ago. Any suggestions what to put on it?
Funny I don't ask unless absolutely necessary.
 
10:51 PM
Code?
 
Yes I had just about worked that out. I meant more in terms of what could useful projects could I put on there.
 
Any side projects, and/or your dotfiles
 
My main programming source is SO. I'm dry of ideas now.
 
Publishing projects is such a pain though. You have to write documentation and stuff :/
 
Ah my dream...
Everyone seems to quieten down when I arrive.
Unless I always catch the end of the fun.
 
10:59 PM
18 mins ago, by cᴏʟᴅsᴘᴇᴇᴅ
Well, more opportunities in the pandas tag
But again, you've gotta stretch
There are a frick ton of dupes, and downright poopy answers
And it feels hard to abstain from answering them when no one else does.
 
@Simon Possible. It's getting pretty late for me, and many others.
 
@cᴏʟᴅsᴘᴇᴇᴅ That's my problem. I don't know enough libraries where there are opportunities.
11PM here. Not exactly early. 2AM is more my bed time these days
 
That's another thing I wonder... why did I start answering pandas questions? Definitely not out of a need...I've never once used it for work, or even projects.
Maybe as a part of one of those "get rich quick" schemes? Here, riches equating to rep
 
How/why did you learn pandas then? O.o
 
You don't know how often I ask myself that. Maybe because I saw the top answerer on SO who was earning over 400 rep a day was a pandas tag user
And I was like, "I want in!".
¯\_(ツ)_/¯
 
11:03 PM
What are good earning tags?
 
Oh, but don't get me wrong, I've been familiar with numpy and scikit learn for ages.
 
@cᴏʟᴅsᴘᴇᴇᴅ CHEAT. That's what @ByteCommander does.
 
So learning pandas was natural for me, since they're all one big family.
 
ah, being familiar with numpy helps I guess.
 
@Simon Who's ByteCommander? Also, what do they do?
 
11:04 PM
I find data the most boring thing on the planet.
 
Data is one boring. Information is interesting. Data ----> Data Mining ---> Information
 
I hath been pinged?
 
@ByteCommander Apparently, you cheat?
 
Sorry. My fault forgot to remove the @
 
O'Rly?
How?
 
11:05 PM
You should ask @Simon for the details.
 
I did
unless he just escaped
 
@Rawing I've never been dishonest about why I use SO. Having a good presence opens up more job opportunities. Having a good reputation, and being a frequent earner is a part of that.
 
wim
you already have all the privileges. there is no point to get more rep.
 
but 100k swag?
 
11:07 PM
@wim Me? It isn't about the privileges.
 
Status I suppose.
 
wim
it's a mug and a t-shirt. woop-dee-do.
 
There's a point in your SO career where you start getting mails almost daily from people who want you in their company.
My goal is to one day reach that point
 
pfft
 
I love rep. Even if I ever get 100K (heheheheh) I'll still love it :)
 
wim
11:09 PM
getting mails from companies everyday is annoying, take it from me
 
@AndrasDeak Just because all you do is wave your stick like an old man at other whippersnappers, doesn't mean everyone does :D
@wim Heh, problem of plenty, sir.
 
XD
 
It also has to do with the answers you write. The better they are, the more attention you get. That would be another thing I'd like to accomplish here. An answer that everyone would appreciate.
 
We receive the neighbors mail often. (bills mostly)
 
One that is so good, people are willing to offer bounties on it.
 
11:12 PM
*some day in the future*
Boss: Why are you late for work?
cᴏʟᴅsᴘᴇᴇᴅ: Sorry, got caught up rejecting a bunch of job offers
 
wim
hmm, might be time to update the rep vs post count on sopython
you have like a thousand more answers than me and half the rep .. :(
 
@Rawing That is the dream, yes.
@wim Huh... that's a thing?
 
wim
be an e-satis, don't be a Padraic Cunningham
 
@Simon I still don't have an answer...
 
I don't mean to drag the average ratio down, but getting votes for answers is not as easy as it once was.
I can tell you I've written a lot of answers that are much better than those with hundreds of votes, but there are obviously more factors than just the answer quality.
 
wim
11:16 PM
I wonder if that's true. It does kind of seem that way, but I never checked the numbers...
 
And, I started answering questions in June. Dunno if that makes a difference. You should probably consider writing a script to calculate rep/day.
 
@ByteCommander I was accusing cᴏʟᴅsᴘᴇᴇᴅ not you of coping and ever-so-slightly modifying you "tademark" or whatever you call it. See the link I gave above.
 
@Simon Err, no. That's my thing. I didn't copy it
Search for "I don't give a sh*t emoji" on google and that's what you find.
 
wim
people certainly downvote more liberally these days for whatever silly reason they want :P
 
Yes, people are more reserved with clicking that up arrow than the down. Sportsmanship is dead, at least in python. It's pretty solid in pandas, though, which is why I enjoy that tag.
 
wim
11:20 PM
rep/day is no measure of quality.
 
@cᴏʟᴅsᴘᴇᴇᴅ I just searched and I got an result nccg.org/cussing.jpg
 
wim
rep/post or upvotes/view better
 
Also sportsmanship is not dead: 17/100
 
views are meh, HNQs bias that a lot and HNQ is bad
 
rep/post... well... a lot of my answers have not earned me rep because I continue answering even after hitting the cap. Otherwise, with the number of points I have, I'd be closer to 100k
But, you are right, rep/day isn't really a measure of quality... I'd know
 
wim
11:23 PM
yah upvotes/post would be better
jon skeet is gonna hit 1mill any day now
 
There will be like 50 celebratory posts about that on Meta smh
 
There was one yesterday.
 
1M would look a lot nicer than 1000K.
But I believe the latter is how they're going with displaying his rep
 
inb4 they'll make it display as NaN
 
11:51 PM
Cabbage. I noticed in the transcript @cᴏʟᴅsᴘᴇᴇᴅ and @Rawing talking about accessing arbitrary JSON. If you know the key you're looking for this generator can be useful. stackoverflow.com/a/41778581/4014959
 
well well well, if it isn't a recursive generator ;)
 
Nice, it seems you've shared that link once before (I seem to have already voted on it)
 
@AndrasDeak Funny about that. :)
@cᴏʟᴅsᴘᴇᴇᴅ Yes, I have. So I was a little sad that you guys didn't mention it when you were talking about potential dupe targets. ;)
 
Hahahaha, I never thought someone would actually need tool assistance to find something in json
 
@Rawing Have you looked at some of the JSON that gets posted on SO? :D
 
11:55 PM
Mini achievement: that JSON answer of mine was accepted over Martijn's.
never happens, even if we answer the same pandas questions 🙄
 
@AndrasDeak I have been wondering are a teacher or something?
 
and I've been wondering: are you a native English speaker? :)
I'm not a teacher but I teach
 
This may come as a shock: yes
 
Perks of being a PhD student?
 
@Simon nah, that's what I expected
 
11:57 PM
@cᴏʟᴅsᴘᴇᴇᴅ That's pretty hard to do. I've done it once, and I posted at least an hour after Martijn, but his answer still managed to get a higher vote score.
 
@cᴏʟᴅsᴘᴇᴇᴅ past that
 
Why did you expect that?
 
because your name is Simon and you're in Europe and too young to be a foreign speaker judging by your messages
 
@PM2Ring I don't mean to downplay Martijn's exceptionally gifted talent at answering questions, but I'm pretty sure reputation also has to do something with influencing OPs. But hey we've gone over this
 
00:00 - 16:0016:00 - 00:00

« first day (2644 days earlier)      last day (2319 days later) »