« first day (1819 days earlier)      last day (3133 days later) » 

6:01 PM
should have answered that
 
^^ same...instead I was trying to find a dup for your question
 
Yeah, didn't think I would get that much rep.
 
:P
 
I would have used Counter
 
6:01 PM
@MorganThrapp and I had that URL in my buffer ready to paste too
boo idjaw....boo
 
hammered
@MorganThrapp 9 upvotes for that ;_;
 
wow
 
Yeah. :/ All of my big rep answers have been super easy stupid questions.
 
It's always like that
 
DSM
6:03 PM
Hey, did we used to see the little gold badge?
 
the simplest answers attract upvotes like mad
 
@DSM Nah, it's new.
 
DSM
Life advice: don't agree to go to lunch to someone before they have to attend a meeting without a well-defined end.
 
I got a bonus 100 rep (or around there) for some badge about staying above a certain rep limit for a year. Are there others like that?
 
6:05 PM
@DSM UDs are bitch
 
Dictionay comprehensions are kind of blowing my mind right now. Are those new-ish?
 
they are useful
 
jk i misread :)
 
@QuestionC For bonus points, a nested dictionary comprehension (sort of) OrderedDict((field, {str(k): str(v) for k, v in info.items()}) for field, info in schema.items())
 
6:08 PM
Well the PEP is from 2001, but dict comprehensions were only released with 2.7 so about 5 years ago
 
I just don't get why something like fromkeys exists in a world with comprehensions like that.
 
@QuestionC Because fromkeys is simpler if you just need a dict with the same value for all the keys.
 
DSM
Although it does get people into trouble with mutable values from time to time.
 
{a: 1 for a in my_list} is mad simple.
 
Rhubarb guys
 
6:10 PM
Later vaultah
 
later!
 
DSM
rb, vaultah!
 
I think this weeks school assignment are on ngrams.
 
I don't even know what an ngram is...should I be worried?
 
>>> timeit('{a: 1 for a in range(100)}')
6.992431184339719
>>> timeit('dict.fromkeys(range(100), 1)')
5.276147376280434
 
6:12 PM
that's a big gap
interesting
 
Not really.
 
DSM
Yeah, I won't cross the street for a ~1 us difference (which is what I see here.)
 
oh silly boy.....I read it in the wrong units...
...
 
My float visualizer is done-ish. Probably only works in 2.7 though because it depends on integer divison.
 
s/\//\/\//
i.e. just use //= everywhere instead of /= to force int-div
 
6:19 PM
Now we can find the answer to that guy's homework: the smallest positive non-abnormal number is 2.22507385851e-308, apparently
 
wait .. shouldn't the smallest normally representable number just be some large negative power of two?
 
Yes, and it is:
>>> 2**-1022
2.2250738585072014e-308
 
oh, that's the decimal representation, gotcha
silly me
 
Yep this definitely doesn't work in 3.X. In addition to all the reasons I thought it wouldn't, struct.pack doesn't return a string any more
I wonder if it would be hard to get monospace fonts in this thing...
 
Aren't subnormal numbers by definition numbers lower than 2**-1022?
 
6:28 PM
Well, the actual limit varies depending on what system you're using
But yeah that's what they are for Python floats
 
IEEE 754 I mean.
 
I think the actual definition is just "the nonzero numbers between the lowest positive normal number and the highest negative normal number"
 
https://en.wikipedia.org/wiki/IEEE_floating_point#Basic_and_interchange_formats

That's what I am referring to.
 
Oh hey thefourtheye answered my javascript question
 
I guess what I'm saying is the lowest number's gonna be the precision.
IEEE 754-1985 was an industry standard for representing floating-point numbers in computers, officially adopted in 1985 and superseded in 2008 by the current revision. During its 23 years, it was the most widely used format for floating-point computation. It was implemented in software, in the form of floating-point libraries, and in hardware, in the instructions of many CPUs and FPUs. The first integrated circuit to implement the draft of what was to become IEEE 754-1985 was the Intel 8087. IEEE 754-1985 represents numbers in binary, providing definitions for four levels of precision, of which...
As an aside, wikipedia has a serious redundancy problem when it comes to information about floating point.
 
6:36 PM
And yet it took me half an hour to figure out how NaN is encoded
(It's anything with an exponent of b11111111111 and a nonzero mantissa)
 
I thought NaN was encoded as delicious bread
 
That's naan. The extra A means you can't encode it in just 8 bytes.
 
@Kevin Well, you could, but they'd have to be some big bytes. Or a small naan.
 
Next up, we discuss the proper endianness of chocolate cornets
 
Anyway, vacation rbrb for all. Time to go get drunk by a lake!
 
6:42 PM
I prefer to start on the big end, but it's a matter of preference
 
Air
@Kevin I can eat naan in less than 8 bites
 
Yes, but it's a lossy process - you get some on your shirt
 
Air
Show me a nice hot buttered garlic naan and I will show you how to put an entire naan in your mouth
 
Take 1 cup of buttered garlic, and divide it evenly among zero containers. Cook for log(0) minutes at 450i+3.14159j degrees. Serve hot.
3
 
Air
This is timely, as I came in to say, since I know several regulars here appreciate Indian cuisine, that my Indian coworker who organizes our annual curry lunch fundraiser approves of my chana masala. A winner is me!
 
6:45 PM
Air is credit to team
 
well I think I'm going to convince my wife to have indian tonight
 
Air
@idjaw Depending on your ethnicity/ancestry, that could be eyebrow-waggle-worthy
 
@MorganThrapp you get monday off?? I'm jealous. Enjoy
 
@Air well played...well played.
 
Air
I also got to sample dhokla, which is new to me.
Why is Indian food better than all other foods? I think I read an article about this once. Let's see... here we go, from the Washington Post: Scientists have figured out what makes Indian food so delicious
 
6:49 PM
Is it because they use actual spices? :)
 
unlike KFC...which just uses sadness and lies
 
Air
I don't know what separates actual and non-actual spices
Unless you mean, like, Mrs. Whoever's Salad Supreme
or Ye Olde Italian Blend
 
I mean spices that actually have some kick instead of some bland stuff thrown on to make it sound fancy. Idjaw understands me.
 
Theory: Widespread veganism forced india to learn how to cook.
 
Air
Well, several of the spices that go into common meat curries also are antimicrobial, and I've heard that the relative unavailability of high-quality, fresh meat among the lower castes was an influence in developing those strongly-flavored recipes
 
6:56 PM
I worked with an Indian fellow who was a vegetarian. His dishes were delicous. So much flavour.
 
Air
Just as college kids will throw their sauce of choice (ketchup, ranch, sriracha) all over whatever they find lurking in the fridge from who knows when, if all you can buy at the market is last week's funky goat, you'd use a lot of spices too
 
Meat-eaters = Free riders of the culinary culture.
 
Air
@idjaw Wow, that's a lot of flavor, if you need an extra vowel to fit it all :P
 
You leave Canada alone @Air
 
Air
Oh, I have. All my life.
 
6:58 PM
I set myself up for that one.
 
Air
In high school, the rest of the band took a field trip to Montreal. I stayed home.
 
@Air are you American? Just wondering from your English speaking perspective
Oh, well from that statement...
 
Air
Actually, wait, I had an airline connection in Montreal when I flew to London.
 
Colour, kilometres, Celsius!
 
Air
We don't spell Celsius any differently.
 
6:59 PM
it's all the -our's that frustrate me
 
Oh I was just bringing up anything that comes to mind that is different
 
Aluminum. Sneakers. Sweater.
 
Air
ananas, aubergine, courgette
Sweater?
 
'murica, thru, y'all
 
It took me an overly long time to determine what "trainers" and "jumper" meant in Harry Potter
 
Air
7:01 PM
I have never been good at distinguishing sweaters and sweat-shirts off the top of my head. I always end up calling one the other and so on. A few years back I started a habit of just calling them all "sweaty things" and now I've shortened it to "sweaty"
Wait, jumpers are sweaters? I thought jumpers were light jackets, like windbreakers.
 
shrug
 
Air
Cookie/biscuit, also.
 
No jumpers are sweaters.
 
What does the UK call biscuits?
 
Air
I had a conversation about cookie/biscuit that somehow led to a British participant concluding that, "Oh, so your biscuits are scones, then." And I was like, noooo
 
7:03 PM
Cookies and biscuits are different things.
It's probably true that cookies are a subset of biscuits.
 
Air
@QuestionC I honestly don't know if they even have a name for the type of biscuit we associate with southern food, fried chicken, biscuits and gravy, etc.
 
I don't think we do. I know what you mean and can't think what I'd call it.
 
biscuits are southern?
 
Would you call them rolls?
 
No.
Rolls are something completely different.
 
I thought so, but I'm trying to think of other possible words for them lol
 
Air
Buns?
There are lots of words for lots of breads.
 
Nah buns are different. I don't think we actually eat them here (apart from Scotland)
Intrepid is your person to ask, the square sausage buffoon.
 
Air
My favorite thing I ate while in/around London was a pasty that I got from a cart in a train station. I would have called it a hand pie. I also had some good Polish food somewhere around Camden.
 
Pasties are awesome.
 
7:12 PM
I assume it's some type of pastry? Never heard of it before :)
 
Air
I was only there for a week and my stomach was all upset from jet lag and nervousness about traveling alone, also I had no money, so I didn't sample a lot of food. And the one fish and chip shop I tried was terrible.
 
Biscuits really do sound like scones though.
 
Air
A pasty (/ˈpæsti/, Cornish: Hogen; Pasti), (sometimes known in the United States as a pastie or British pasty) is a baked pastry, a traditional variety of which is particularly associated with Cornwall, in the UK. It is made by placing an uncooked filling, typically meat and vegetables, on one half of a flat shortcrust pastry circle, folding the pastry in half to wrap the filling in a semicircle and crimping the curved edge to form a seal before baking. The traditional Cornish pasty, which since 2011 has Protected Geographical Indication (PGI) status in Europe, is filled with beef, sliced or diced...
 
Hey PyGuys, tell me there's a better way:
 
Air
It's like, imagine if the Earl of Sandwich had a cousin, the Earl of Pie
 
7:13 PM
>>> '<a href="{link}">{text}</a>'.format(link='http://foo/bar', text='linky text')
'<a href="http://foo/bar">linky text</a>'
>>> import functools
>>> link_text = functools.partial('<a href="{link}">{text}</a>'.format)
>>> link_text.__doc__ = '''link_text(link='http://foo/bar', text='linky text') => hypertext link suitable for templates'''
>>> link_text(link='http://foo/bar', text='linky text')
'<a href="http://foo/bar">linky text</a>'
 
Air
and the Earl of Sandwich is like, "I can eat all sorts of things without silverware if I just put it in bread"
and the Earl of Pie is like "screw that, make it a pie"
like, you know?
 
They were designed for working in the mines. The pastry would be incredibly tough and so would protect the innards during the day. Then the miners would eat the interior and throw the crust away.
 
DSM
Huh! That's clever.
 
And the Earl of Hot Pockets is unfortunately a little ahead of his time. Microwave won't be invented for a couple centuries.
 
Air
@Kevin At least his tongue is safe from predictable, yet somehow unavoidable scorching
 
DSM
7:16 PM
(Friday subcontinental meal having been eaten, I can now spend time getting some C# code to behave under mono.)
 
You masochist you.
 
Air
Ahh, I forgot who it was who had that weekly tradition.
Ever since I bought this lunch box subdivided into a bunch of differently-sized compartments, I've been bringing much better lunches. Although I had to cut my stack of three off-brand newtons to fit in the trapezoid-shaped compartment.
 
thinks there must be an html library that does this
 
Air
Let me tell you, when you have to cut your off-brand netwons on the diagonal, that's when you know this country's going to hell. #Trump2016
 
DSM
Learning the value of sacrifice is an important part of growing up. #themoreyouknow
 
Air
7:21 PM
I assume you're referring to the value of sacrificing your misbehaving child on an altar. Ostensibly to $deity.
 
but all he's found so far are crappy old AS recipes
maybe Jinja has something like this...
 
the question with the answer: "use time.mktime()" is incorrectly marked "too broad: There are either too many possible answers, or good answers would be too long for this format..." http://stackoverflow.com/questions/33040582/converting-values-of-dictionary-to-the-timestamp-format

am I missing something? is it too broad question for a Python programmer?
 
Seems like an alright question, although he didn't post an attempt
I guess there are a lot of modules for timestamps?
 
Air
@J.F.Sebastian I'm guessing people are irritated that the OP hasn't performed the "show what you've tried" kowtow
And in their defense, it would very likely be improved somewhat if he actually elaborated on "several things with converting using datetime" in the question
 
DSM
7:36 PM
My opinion that if there's a plausible reading of a question under which the answer only takes one or two lines it can't fairly be called "too broad" is on record. Now sometimes there are way too many possibilities, and I don't want to encourage games in which everybody guesses what the OP meant, but this doesn't seem like one of them.
 
-2
Q: Introduce generous and selfless badge

Thomas WellerBackground The question Top generous users - users that spend their reputation in bounties received much attention and I was asked to ask for a badge by BAR: I expected you to ask if we can make a badge for that. Would be nice. Also, j08691's comment got more than 60 upvotes: Time to c...

I really don't think this should be getting downvoted, what do you guys think of Servy's comments?
 
Air
It's a feature-request... it should be downvoted by anyone who thinks it shouldn't be implemented.
Don't bother arguing with Servy. It'll just frustrate you.
 
Yeah
 
Air
I think your approach of editing the answer into the proposal is fine.
 
Oh, I understand, now. People who voted to close hadn't recognized POSIX timestamps in the question such as `1433320863.0` and therefore for them the question is "too broad". I'm so used to Unix time; I hadn't imagined somebody wouldn't recognize it (the comment about mine *"mind reading device"* makes more sense now).

And I agree on "does not show research effort".
 
7:46 PM
python objects that build a jinja template...
 
@AaronHall It's a Friday, you've almost made it (or have?) :)
 
Should be trivial, right?
 
I have no clue what jinja is lol
 
Could be useful. I'll throw something together this weekend on github and link it here.
 
I just need to make it one more hour...
 
7:53 PM
Or not, if I get distracted by something shiny.
 
Well, I at least got it out of downvote hell for the moment.
such a narrow interpretation, "he said there might be other options, therefore this isn't a specific request"
 
@AaronHall can you tag me if you happen to get this done?
 
Air
@davidism welcome to the Servy show
 
As I try to help someone and they edit their code to a 'running' solution....they take input from a file >.<
 
I flagged all his comments obsolete since he straight out admitted that my suggested fix would make it ok.
 
8:07 PM
I take it this Servy guy is infamous
 
Air
I'm pretty ambivalent on badge proposals in general.
 
I kind of like it, it's a nice recognition of a pretty awesome behavior.
 
Air
@Programmer Nah, he's just been around and active on Meta for a long time. He often makes very good points. Sometimes he makes bad points. That's par for the course, but in my experience arguing with him gets you nowhere, he sticks to his position.
 
Is he some sort of politician? :)
 
A lot of users have been around Meta (and Main) so long that they've become a bit jaded.
I'm guilty of it too.
 
8:11 PM
It's understandable. A lot of you helped build the community for sticking around for so long.
 
can I get an opinion on something I'm trying to decide in my app?
 
I will lend you my opinion, whether it's useful or not is up to you lol
 
my opinion is "no"
 
I have a shell script that wraps around my app and I have a condition that will install a venv if not available and set it up and run my app within the venv....now...is that unnecessary? Should I just stick to having it as a manual pre-req to have a user set it up themselves? I'm just trying to make it really easy to use.
 
Sounds like you answered your own question, to me.
 
8:17 PM
yeah...I just can't think of any drawbacks doing that...trying to see if there is anything I'm missing that makes that decision bad
 
Air
You mean, install a venv if available?
 
if it can't find "venv" it will do a "virtualenv venv"
and then source and pip installl from requirements.txt
but then that means I'm assuming virtualenv is there too....
 
Air
I think you're headed down a rabbit hole
 
so, screw the venv helper...just make the user set up the environment themselves (with instructions of course)
 
Air
Well, if you're distributing your app via a package manager, it should be able to handle the dependencies, shouldn't it?
 
8:20 PM
If you pip install an app it should install the requirements for them.
Plus what if I wanted it in the global space.
 
Air
Yeah I think it would be a bit unexpected to install something with a dependency and then later find out it only put that dependency into its own venv
My preciousssss...
 
I wasn't planning on putting it up on pypi yet...which if I went there then yes, my dilemma would be moot
 
Air
Sooooo fair to say YAGNI? ;)
 
I was trying to facilitate instructions when trying to get it to run via grabbing it from git
 
Air
Maybe I'm a heartless elitist, but I feel like anyone who's going around installing apps via git repos that aren't yet mature enough to be in pypi can handle installing dependencies themselves
 
8:23 PM
^^That is part of my dilemma. I am fighting the "But, if they are using git they HAVE to know how to set up their environment"
 
You can include a warning disclaimer :D
 
You are helping me lean towards the YAGNI side @Air
:)
because this also means I can strip out the shell helper
I think I'll do that...really appreciate the feedback
thanks
and I think it wouldn't hurt to have it up on pypi....so I should probably do that instead
 
You don't need it to be in pypi to effectively use requirements though.
Stick a setup.py in there whether it's git or pypi
 
oh yeah I have that all set up
my decision point was trying to decide between this "shell helper" I had or just rip it out.
getting rid of it, packaging it up nicer and up to pypi it goes would be a better approach.
I'm liking the idea of getting rid of it...it actually come to think of it removes a level redundancy. Done. Thanks again.
 
Infinitely.
 
Air
8:29 PM
Yeah, put it on PyPI, even jazzhands has 5 downloads already -- you'll be rich by Tuesday
Now if only I could tell myself YAGNI so effectively when doing the exact same sort of thing =/
 
we are our own worst enemy @Air we will never take our own advice
just get someone else to tell you what you KNOW you should do :P
 
I think just talking about it in general helps you to understand your problem more
 
I might write some code for jazz hands this weekend.
 
in between HotS games? :D
 
it seems best to separate the installation and the actual usage steps.

If you have a shell script then your installation instructions could be:

sh -c "$(curl -fsSL https://raw.github.com/user/.../master/install.sh)"
 
8:43 PM
Thanks @J.F.Sebastian fortunately, I have seen the light of just properly packaging it up to the pypi world
 
Rbrb all
 
9:05 PM
Procrastinate by doing helpful but lower priority/importance things - that way you still look productive and have more time to think about the important stuff.
(removed)
 
I felt bad for poking fun...so I removed it.
 
Air
@Ffisegydd I don't even know what it's supposed to achieve, was there a decision on that, or is it up in the air (like a pair of jazz hands)?
Dijkstra looks strikingly like Gary Oldman.
 
wow..yeah
 
Air
If his personality were more suited to Hollywood exaggeration, that would be an obvious casting choice for a big biopic feature
Based on some of the EWDs, it could probably be called The Irritation Game
When a group of terrorists redirect Air Force One to their secret island base using a viral GOTO worm hack, only one man knows how to stop them
A humble programmer from Texas is called upon to save the free world from the 21st century's most considered-harmful war criminal
 
9:21 PM
It can be done in the key of Abraham Lincoln Vampire Hunter
but better
 
Air
Low bar, from what I hear
The terrorists could be also be Nazis. What's that they're chanting? Is it "sieg heil" or "SIGKILL"?
(Oh, I still have to watch Kung Fury...)
 
you really need to get on that
One of my recent favourite lines is in there
 
Air
Well, I said I'd get together with a friend and have a viewing party with games and beer, but we're both pretty busy and I'm waiting for an opportunity
I don't think I'd enjoy it nearly as much sitting at my laptop by myself
 
nono
people is great
just like birdemic with rifftrax
if you are in to watching really stupid movies with people you really should check out the rifftrax version of birdemic
 
Air
I don't have much time to watch any movies any more
 
9:34 PM
same here :P This was a few years ago.....kids and programming own my life now.
oh and wife...can't forget about wife.....
 
Air
Surprise your wife with something as penance
(something nice... like a durian)
 
Here wife...this reminded me of you
sleeps in shed
 
Air
sheeps in sled
 
but she probably would expect that from me...I proposed to her over a wendy's baconator
romantic += 10000
 
I took my wife out for a romantic Italian dinner, then proposed in the gazebo of the park next to the restaurant. Earlier in the day, I went by her parents to ask her father's blessing. That was 10 years ago.
 
Air
9:42 PM
I was talking to her on the phone and she was like, do you think we should get married? And I was like, dammit, I'm supposed to make a big deal about this
 
She was just testing the waters, that was your signal to book the table, buy the ring, and schedule the parent talk.
 
Air
No, because that was the week after she moved back home to California, and I was still living in Boston
 
ok, then.
 
Air
The conversation may not have gone quite as I describe it, but for the sake of brevity, I'll just summarize it as a non-traditional, anti-climactic process.
 
Aaron plays it off like he knows what's going on
 
9:45 PM
I was considering the whole asking father for blessing
 
Air
I never did get her an engagement ring. I made her a necklace instead. She thought I was silly for insisting on it.
 
but baconator....ring....bag....it made it more of a memorable story.
she loved it and that's what counts
:)
 
Air
Bag?
 
wendy's bag man
 
Yeah, the old ring in the bag trick.
 
Air
9:45 PM
Oh, the ring and the burger in there, you mean
 
yuuup
as non-traditional as it gets
 
Air
Disappointed you didn't hide it under the bun :P
 
I would have dropped it in her frosty
yeah, had it right the first time
 
frosty
 
I'm getting one before going home. No I'm not.
 
9:48 PM
I'm getting indian food! :)
 
SO is tweaking the CSS on the profile pages
 
woosh..yes they definitely are
no wait...I don't notice anything...I was on the exchange profile site :P
 
10:45 PM
cbg
 
hello
 
bleh I should never have engaged with this guy stackoverflow.com/a/33044309/3058609
Martijn or Jon or some other diamond might want to clean up those comments a bit. I flagged the last one
 
yeah good idea...it started escalating unfortunately. Hopefully the "cleanup" crew comes in soon :)
 
11:02 PM
yeah unfortunately. slaps the back of my hand
 
looks like that last comment disappeared btw if you haven't been furiously hitting F5 on your browser :)
 
well I feel like that was the only strictly inappropriate comment, though the whole exchange is off-topic which is why I shouldn't have engaged him past the first comment.
 
you might not like it, but you can just delete your answer if things don't get resolved.
 
Air
The last comment may have reached the threshold of rude/offensive flags to get auto-hidden.
 
11:18 PM
I did flag it, that explains it (still learning, didn't know that)
 
Air
stackoverflow.com/q/31920866/2359271 Dupe flag aged away, gave it a CV 10-ish days ago and it's just sitting there
 
@Air Oh that's very possible. I didn't know that either.
@Air Is it actually a dupe? I can hammer it closed
 
Air
@AdamSmith MySQL error messages tend to be vague and apply to a lot of different problems
 
looks duplicate to me. It definitely describes the problem that happened in the other question
oh but there's no Python tag on it
so I can't hammer
 
Air
11:33 PM
Yeah I just threw it in here because it's been weeks
 
added it there now, if only to bump it so there's more traffic to cv it
 
11:45 PM
@idjaw RE: stackoverflow.com/a/33048533/3058609 I meant that now you have to rename the args in order to use them (and use the same name to call it every time!)
or else you'll have to do args = kwargs.values()[0] and just hope they don't pass more than one extra set of named arguments
while putting the variadic argument first in the function signature just means you're FORCED to name bob and sally as params
 

« first day (1819 days earlier)      last day (3133 days later) »