« first day (1614 days earlier)      last day (3331 days later) » 

2:08 PM
@Marcin, in case you get here... I am already.
18
Q: Future-compatible enums in 2.7?

ShawnFumoMany methods of implementing enums are shown in the answers to this question. However, PEP0435 is out now and describes how Enum and IntEnum will become official in Python 3.4. My question is not about the advantages/disadvantages of particular ways of simulating enums in Python. Rather I'd like...

 
@BhargavRao melons
1
Q: sqlalchemy.exc.ResourceClosedError: This Connection is closed when inserting after select

mchangunI am doing a select() from a SQLite database and then an insert: engine = create_engine('sqlite:///testdb.db') metadata = MetaData(bind=engine) test = Table('test', metadata, autoload=True) # Select all from pending_data sel = select([test]) res = engine.execute(sel) print res # do an insert ...

 
@AnttiHaapala hm, do you think it would be reasonable to create a publication/subscription based on the user's role?
 
@Marcin, so you say that I should use something like a frozen dictionary with a syntax nicer than color['red'], is it?
 
I just realized that the solution is obvious if you use Python 3, because there are 3 reraises, and only the topmost exception tells the actual cause
in Python 2 one gets completely unhelpful error. That is yet another reason to switch to Python 3
@RobertSiemer you shouldn't
actually the enum34 is nothing like C enum, it was taken from Java...
 
If the solution isn't Python3, I don't want to know...etc
 
2:13 PM
there is only 1 problem with the enum34 - that it uses a custom metaclass.
thus it is not usable with CPython
 
@AnttiHaapala, I shouldn’t what?
 
@RobertSiemer shouldn't use the silly dictionary
 
Do what @Marcin suggested?
 
^ man asks Comodo for microsoft SSL certificate and gets one.
 
I don’t want to, but Marcin is keen on saying Enums have no point in Python (or similar).
 
2:18 PM
@AnttiHaapala wow
 
@RobertSiemer now repeat after me the "There is no God except @JonCle; and Antti is his Messenger"
 
There is no God. No exceptions.
 
@JonClements do you or do you not exist?
@RobertSiemer guess you're right
 
@AnttiHaapala Both?
 
@JonClements god almighty
 
2:24 PM
And just to be really impressive... also - neither!
 
@RobertSiemer here does not follow the ways of the Zen
believes that Python should not have enum :D
 
@Antti it isn't exactly something I can see using
 
But surely you're all-seeing, @Jon?
 
I'm not sure why we need enums in Python, apart from making it simpler to port code that uses them. But I've seen simple classes used to implement them, and also namedtuples.
 
DSM
Morning cabbage for all.
 
cbg
 
@Zero I'm all-seeing yet blind. Both at the same time, sometimes mutually exclusively, and sometimes none of the above all simultaneously!
 
not some boboass constant collection
 
cbg @DSM
 
I used this for a binary protocol
 
2:28 PM
@JonClements Also you embody the concept of the Trinity with your three legs ;-)
 
DSM
Given that yesterday was St. Patrick's day, that seems oddly appropriate. Although I think one of my earliest interactions with Jon was him saying that he didn't even realize it was..
 
@Zero I had a couple of guys knock on the door earlier this afternoon... wanted to invite me (had leaflets and everything) to a most special celebration of Jesus' death they were hosting
 
@AnttiHaapala Yes, but Robert wants to do enums in Python 2 .
 
@PM2Ring yes, for that there is the enum34 module
 
Rightio
 
2:30 PM
@JonClements That's not very nice. There are people I don't like either, but I wouldn't celebrate if they died.
 
it is compatible for anything since 2.4
so you can do:
try:
    from enum34 import Enum
except ImportError:
    from enum import Enum
and be future compatible until Python 4
 
@DSM sighs - I also forgot about it yesterday as well... did get reminded at 2am when working and the presenter on the radio station I was listening to had an hour on what people did for St Patrick's day... I'm pretty rubbish with dates :)
 
pypi.python.org/pypi/enum34 neat. But I don't know if I'll ever use it - I rarely use enums in C. :)
 
@PM2Ring now repeat after me
 
@DSM but then, since I obviously occupy all space and time simultaneously, I don't really need dates.... it's always now
 
2:32 PM
this is not your C enum, again this is not your C enum. This is Java enum
 
Ok.
 
see the planet example there
the enum values are objects, that have methods
 
Ah. I guess having methods is pretty cool.
 
@AnttiHaapala Do it the other way around?
 
2:35 PM
@poke I thought so, but there is always a possibility there is the clashing enum module
this one
 
meh
 
which is the unfortunate reason why enum34 is called... enum34
@PM2Ring funny how the PEP does not refer to Java in any way
 
That does look pretty interesting. But I don't have time to study it thoroughly right now - it's getting late.
rhubarb
 
rbrb
Did Spark ever finish installing @Jon? :P
 
After 5 hours - I cancelled it :)
 
2:40 PM
D:
 
I'm not having to work stupid o'clock tonight, so I'll just leave it over night and keep my fingers crossed
If I'm really lucky, I should be done in about 2 hours... then that's it until tomorrow morning at a reasonable 8/9am start
sure beats a 10pm-8am, 10am-6pm couple of days streak
Wow... I'm entitled to so many personal injury claims the last couple of days... I really, really must have had a bad accident...
 
DSM
If none of them come through, I've got your back -- I have an arrangement with an acquaintance in Africa. I expect it to be very profitable.
 
re-cbg
 
DSM
@vaultah: cabbage. Are you intentionally invisible or is my adblock going rogue?
 
It's intentional AFAIK.
 
2:49 PM
Yeah
 
DSM
So now I need to bribe Kevin to write a script which will replace that with the letter V or something so I know who's speaking..
 
It's not entirely white though
 
You need something which is actually alpha=0
 
DSM
Ehh.. am I missing a clean way to turn "True" into True?
 
3:01 PM
eval :P
x = 'True'
x = (x == 'True')
 
Do not compare booleans with == or at least do bool(1) == True (see PEP-8). You miss __bool__ operator that actually decides which values are True and which are False. — myaut 1 min ago
@myaut I am very well aware of that. — Antti Haapala 56 secs ago
 
DSM
Yeah, comparison with "True" probably makes sense here. I'm trying to avoid importing ast without making it look too ugly.
 
hmm, so funny when someone with 22 upvotes in Python with 23 answers refers to PEP 8, for me :D
 
>>> not functools.reduce(operator.xor, b"True") % 2
True
>>> not functools.reduce(operator.xor, b"False") % 2
False
;-)
 
Best so far.
 
DSM
3:10 PM
I have a utility function in C++ which I use to turn strings I want to be interpreted as truelike and falselike into true and false, but oddly enough I don't seem to have ported it to Python.
@Kevin: that's a pretty bold suggestion!
 
My "downgrade to 2.7" comment? I may have typed that while I was annoyed at OP and wished him harm.
 
@DSM errr... {'True': True}.get(False) ?
 
jonrsharpe gives good advice, as usual.
 
@Kevin I do like that jon... has a good name... cough... but really, really active and knows his stuff
 
Yep, yep
 
DSM
3:15 PM
He does. It's a little surprising to find Kevin being the snarky one on a question, though; Jon can sometimes be somewhat impatient with users who are (to be fair) not really making much of an effort.
 
@DSM paste did have such a function :P
 
permission denied to cd into a directory? Weird
 
I was aiming for "technically what you wanted, yet a bad idea anyway", in the vein of The Monkey's Paw
I'm in an odd mood since my boss riled me up this morning.
Jimmies: rustled.
 
yet another example of why we need to get python symlinked to python3
19991
just 1 upvote
 
user559633
downvotes you
 
3:19 PM
hehe :D
someone did cancel upvote or sth
bc now 19981 :D
 
Someone give him negative one points so his milestone is a nice round number.
 
user559633
i'm still seeing 19991
 
bc just got upv
yeah :D
I can do it mysefl :d
 
DSM
Soon to be a trusted user. After that, you never need to answer again, and can just coast on legacy upvotes.
 
after I get 20001
yeah
 
user559633
3:20 PM
i'll just give you an upvote
 
When the Dark Council was discussing Antti's potential RO-ness, I wish I had proposed waiting until the instant of him reaching 20k. To see if we could overload his system with new privileges all at the same time.
 
hey
who downvoted me???
now I cannot get a round vote
downvotes are -2
 
bahahahahahaha.
 
user559633
I'm seeing 20001.
 
I need to downvote an answer myself :D
 
3:22 PM
I've undone the downvote now
 
user559633
 
But I did get the screenshot
 
user559633
congrats antti
 
it was not round :d
 
It was 19,999.
 
3:23 PM
I was finding a php answer to downvote :d
then someone upvoted me to 20010
:(
 
20000 isn't a round number in most bases anyway.
 
There you go :-)
 
DSM
In base 7 it's 112211, which is kind of pretty.
 
Got the 20k image too.
 
3:24 PM
Let me know when you reach 2^(2^(2^2)) rep, the roundest of round numbers.
 
Yeah, 0 is about as round as it gets :-p
7
 
I typed that into REPL and was confused at 0 :P
I wish Python used ^ for powers.
 
done :D
 
DSM
Our grandparents were C programmers; our parents were C programmers; so we'll use ^ for XOR too.
 
@ZeroPiraeus no way to get to 0 :D
 
3:26 PM
Tsk, fine. 2**(2**(2**2))
 
now cancelled the downvote :D
now if op would accept my answer there
 
polite applause
 
melons everyone
though I find all this trust in me misplaced...
 
3:29 PM
Hmm, is that possibly salvageable by removing the request? Going from "please give a link explaining X" to "how do I do X"? Or would it then be too broad?
 
It'd then be TB I think
 
I'm no domain expert but I think I agree
 
no
too broad in any case
Python/R :D
too broad
 
I've left a comment.
I haven't looked at for a while and am scared to go back...
 
It's still really bad, although stuff stays open longer now.
 
3:32 PM
stackoverflow.com/questions/29117936/… I should have stayed away...
stackoverflow.com/a/29108138/3005188 one of the LinkedIn employees answers got deleted as link-only...
 
-_-
 
On the subject of resource requests: I had a fascinating conversation last week with the Community Manager of one of the non-English SO sites, and it turns out that those communities have decided that resource requests are fine as long as they're otherwise on-topic and clearly defined.
 
voted to undelete the justin kominar answer
spanish?
 
At least the linkedin employee is answering more often now.
 
... which makes the back end of this post quite intriguing ...
 
3:37 PM
It seems that individual SE sites have some leeway regarding which customs from the main site to follow. For example, some "lateral thinking" questions on the Puzzling site have multiple valid answers, so they're slow to judge anything as opinion based.
 
> What if it works? What if you finally get these types of questions down to a science? If Stack Overflow decides to relax just a little when it comes to these types of questions, well - you get the drift, and need to keep it in mind. The ultimate form of success for this community might ultimately be rejoining larger, established sites.
 
Oh, one vote away from a reversal badge on a post by someone familiar to us all.
There was a pattern around the Winter Bash.
 
you got it?
 
@AnttiHaapala W00t, I will now.
Not that I can ever catch up to Shog9 here, of course.
 
Hats seem so long ago now... It's already mid-March >_<
 
3:39 PM
@AnttiHaapala Yup, there it is.
@Ffisegydd I found that one by idly looking into older Meta posts, then extrapolating from there about the bash.
 
@davidism I'm sorry, I tried to click, but I don't have enough reputation :( — Paco Sánchez 2 mins ago
 
This year for sure, I'm getting my 100 consecutive days badge in December.
 
I see this a lot, new users can't seem to tell the difference between voting and accepting.
 
anyone know of a way to run a proxy to have an SSL cert on localhost?
 
@corvid snakeoil
 
3:47 PM
this stuff makes me nervous :|
 
I want to tell this guy that only function calls make new scopes in Python, but I'm not sure that's entirely correct. Specifically I'm thinking of the different behavior in 2.7/3.X regarding the leaking of variables in list comprehensions.
So it seems like the inside of a comprehension is a new scope, even though it's not strictly speaking a function call. At least from the perspective of the end user.
Moot point, post is hammered.
 
does this look like a reliable source? Not sure if can trust its instructions
 
hello, i'm facing a strange issue that i'm not too sure I understand
i'm getting an UnboundLocalError in a finally block
on 'sys'
 
@DSM @Ffisegydd my brain's gone dead - in pandas I want to add 7 working days... can't remember the name - is it BusinessDays or something
 
i'm trying to flush sys.stdout in a finally block
this is python 2.7 in case that matters
 
3:52 PM
Hard to say what the cause is without sample code. Are you doing sys = something at any point? Even if it's occurring after the try/except/finally block?
 
@DSM @Ffisegydd eg... today + 7 days should be next Friday
 
sort of, i am at one point redirecting sys.stdout
 
% python y.py
integer division or modulo by zero
% python3 y.py
Traceback (most recent call last):
  File "y.py", line 7, in <module>
    print(e)
NameError: name 'e' is not defined
 
using a @contextmanager
 
15
A: Business days in Python

Kyle HannonUse pandas! import pandas as pd # BDay is business day, not birthday... from pandas.tseries.offsets import BDay # pd.datetime is an alias for datetime.datetime today = pd.datetime.today() print today - BDay(4) Since today is Thursday, Sept 26, that will give you an output of: datetime.dateti...

 
3:52 PM
however, even commenting all that code out led to the error
 
@AnttiHaapala About to say the same thing :-)
 
and simply moving it to the except: block worked :(
 
@imsoconfused the sys is a local variable in your function
and it is not set at that point
so if you ever assign to sys in your function
sys = foo
 
@Ffisegydd yup... pandas.tseries.offsets is what I was after.... sighs - tired :( - thanks mucka :p
 
@AnttiHaapala thanks, however I never use a symbol called 'sys' apart from the actual module functions
 
3:54 PM
Get this change committed, then I can f* off to bed for a couple of hours snooze
 
and like i said, commenting out my contextmanager stuff for stdout/err redirection still leads to the error
deleted all my pyc files as well
 
@imsoconfused you're asking us to guess - without seeing code - how do you expect anyone to help - don't just describe it - show it
 
Yep, it is an interesting problem, but I can't diagnose any further unless I can copy/paste/run on my own machine and see the error
 
that's a good point, it'll take some work to produce a minimal reproduction, just wanted to know if python had different finally behavior compared to C#
let me try to produce one
 
UnboundLocalError sys occurs only because Python considers it a local variable
did you import it there in the function
 
3:59 PM
hmmmmmm
i DID
in the except clause
which wasn't hit
but clearly i'm not understanding something then
 
>>> f()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "x.py", line 2, in f
    sys
UnboundLocalError: local variable 'sys' referenced before assignment
>>> f2()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "x.py", line 7, in f2
    sys
NameError: global name 'sys' is not defined
def f():
    sys
    import sys


def f2():
    sys
if you import sys in the except block, it will become a local variable
 
even if it is ALSO imported at the top of the file?
 
and finally is executed even if no exception was thrown
yes
 
ok that must be it then
thank you so much, that's great to know
 
and there is no reason to import it in the except:
 
4:01 PM
yeah i think someone did it by habit - they imported traceback in the except: clause
but also sys at the same time
 
@RobertSiemer Or, you could just use a variable declared in a class, or module or whatever.
There's no benefit to enums
 
DSM
@Ffisegydd: stepped away from desk to help young'un. Did you solve the puppy's problems?
 
@AnttiHaapala perfect it worked :) thanks!
 
I did through the magic of pandas.tseries.offset.BDay
 
DSM
Hooray! \o/
 
4:04 PM
Well, client said 7 days from end of billing period
so they got that... what they were bitching about and didn't specify was that it's 7 working days from end of billing period
 
DSM
There are a surprising number of people on the various freelance sites who are looking for someone to ghost-write an entire book for them -- with total transfer of ownership rights -- and are offering 100-200$. That seems optimistic on their part.
 
(suppose 7 working days makes more sense - but my excuse was the spec didn't explicitly mention that)
 
For a short, bad book, $200 might be a good enough rate in e.g. India
 
@DSM I don't do freelancing sites normally, but on one, I got $900 minus commission etc... for 20 minutes with 25 lines of code, and writing a 3 paragraph text file explaining it...
Got the impression some guy was seriously trying to retain his job and was willing to throw money at doing so... but it was a nice bonus
 
DSM
There was a cute problem I saw a while ago which was actually interesting -- even though they'd disguised it, the underlying problem was that they had a series of Excel sheets where they'd somehow lost the formulae and only had the values and were looking to recover them.
@Jon: everybody has better luck than me. :-(
 
4:10 PM
"You want me to do a bit of your job that you should know how to do, because you can't, and you're willing to to throw a chunk of your salary at me to do so for <1hr of my time" - okay - much different than "I haven't paid attention in class, and I MUST HAVE THIS TOMORROW ELSE I FAIL - GIMME DA CODEZ - PLZ!"
 
@imsoconfused to summarize, python uses simple static analysis to see which variables are local in a scope, if the variable is assigned to, target for import, or for loop index, or anything such, then it is a local variable name everywhere within that scope, otherwise it will be the one from surrounding scope (closures) or global scope.
 
i see - i think that makes things a lot clearer. I assumed (correctly) that the lookup would progress outwards in scope, and would eventually catch the sys at (global?) scope from the top-level import. What i did not understand was that the import creates a local name. that's good to know, thanks a lot!
 
It was also edited in the grace period from something worse.
 
DSM
@davidism: I finally figured out why I wound up tracking your ticket on trello -- I use space to navigate down, and that toggles subscription.
 
That's like using backspace to go back in browser history: so 2005. :-P
 
4:20 PM
I luh ack :0
 
Do you also close webpages by pressing q?
 
lol
pressing backspace in the chat with focus out of textbox puts  (\u0008) in the textarea
 
@Marcin: your enum doesn’t guard me against later addition to the enum.
 
@RobertSiemer what did we talk about god?
 
@Marcin: I mean: a simple class with class Whatever(object): a, b, c = range(3) is too simple
 
4:23 PM
@davidism gone.
 
DSM
And my 100% helpful flag ratio continues!
 
@DSM how many flags
 
@DSM what, you have 1 flag, and it was marked helpful? :-P
 
@Marcin and how do I get 'a' out of Whatever.a?
 
DSM
@Antti: heh, not very many. 112. The fact my ratio is so high is actually a sign I'm not doing as much flagging as I should, but I tend to only bother flagging things which are really OTT.
 
4:26 PM
I'm at 312, with 8 declined, 8 disputed. If I can keep using the 10k page for the rest of the week, I should get that gold badge.
 
the reasons why enums are good is that with enum34,
OneEnum.a != AnotherEnum.b
even though they'd have the same value
they also are typed, to the enum class
you can get the enum member that matches the given value, with the constructor...
an enum value can have methods that act upon the value
etc...
 
@Marcin: I mean, I want three things: programatically select one member of an enum (of course), second: print a member meaningful and third: if I get a member of that enum (e.g. as a parameter), I want to directly have that enum member or turn it into a corresponding enum member in a snap.
@Marcin, what @AnttiHaapala says is also great (one_enum.a is not another_enum.a never ever).
@AnttiHaapala: We agreed on: there is no god.
 
Nice bit of pandas to finish the day off...
 
@RobertSiemer in my case, I was doing an embedded project with Python 3; with bytes being an int, I had the statuscode in the first byte;
 
DSM
@Ffisegydd: I tend to use the strings, i.e. "mean" and "sum", rather than passing the np.functions-- they're intercepted anyway, which was a design decision I disagreed with, but I wasn't able to convince Jeff. :-(
 
4:36 PM
all I needed to do is "status = StatusCodes(val[0])"
 
@DSM is there any speed bonus associated? I know using the Cython-optimised versions are presumably better (.mean() rather than .apply(np.mean))
 
@DSM I do quite like the .query method... the library it uses is useful outside pandas
 
DSM
No, once you're in cython-space you're in cython space. But I like to remind myself that even if you pass np.std, you don't get np.std, you get the pandas version, which is different. :-/
 
TIL about query
I was reading up about Julia yesterday while bored and think Kevinscript should steal some of the ideas.
 
DSM
The original idea was that query would allow some nifty optimizations. It's not as fast in practice as it was hoped, but it does make writing some operations easier. Don't forget that you can use @variable_name to refer to a variable so you don't need to construct as many query strings manually.
 
4:44 PM
@Ffisegydd wait, wat!? You've used pandas longer than I, and you've not heard of .query?
 
@Jon actually, now I look at it, I have. I just forgot I had.
In fact I'm pretty sure last time I saw it I said "TIL I learned about query..."
Watch-this-space-in-6-months-time.
 
What's this about ideas I should steal?
 
@Kevin look over julialang.org and steal some of the ideas.
I love the string formatting in particular.
a = 3
println('The number is @a') # The number is 3
learnxinyminutes.com/docs/julia is a more digested intro
Also "2 + 2 = $(2 + 2)" # => "2 + 2 = 4"
 
DSM
The things I like best about Julia tend to be its lisp-like features. I'm seriously considering writing the prototype of a new platform in Julia this summer, precisely because I can do real code generation.
 
lisp like macros and calling Python functions and good performance are already on my "nice to have" list.
I'm not ideologically opposed to multiple dispatch, but I don't know how I'd implement it with the naming system the way it is
Coroutines could be invented by the end user if I ever get yield working
 
4:53 PM
anyone into JS and Web Audio by accident?
 
DSM
One of my chief issues with Julia is that there's not really an __iadd__ to override, so inplace ops aren't easy to get working.
 
"conversions / promotions for numeric types" is a non-issue because I only have one numeric type :-D
... :-(
@Ffisegydd Is that behavior specific to println, or do all string literals get converted that way?
 
Dunno
 
DSM
All you need are integers. The rest is the responsibility of the users. #kronecker
 
I only used integers to write the interpreter, so I only need to implement integers to achieve my goal of self-hosting.
@Ffisegydd In other words, I'm wondering if "@a" == "3" evaluates to true.
@DSM I see what you did there. Took me a while.
 
DSM
4:59 PM
Wait, I'm just showing up to this @ conversation. I'm not sure that's how string interpolation works in Julia.
 
It may not be @
 
DSM
I think it's $.
 
In that case, I'm wondering if "$a" == "3" evaluates to true.
 
I think it does.
# $ can be used for string interpolation:
"2 + 2 = $(2 + 2)" # => "2 + 2 = 4"
# You can put any Julia expression inside the parenthesis.

# Another way to format strings is the printf macro.
@printf "%d is less than %f" 4.5 5.3 # 5 is less than 5.300000
 
I don't suppose there's an online REPL I can play with?
 
5:02 PM
It is true.
julia> "$a" == "3"
true
 
Hmm, string literal interpolation would certainly be possible in KS...
 
DSM
Did you ever decide whether you wanted functions to be able to modify the parent scope?
 
I'm currently leaning towards "make it possible but not easy"
It's a compromise so advanced users can do advanced things, but newbies can't shoot themselves in the foot
 
DSM
"Make easy things easy and hard things possible"? ;-)
 
Have you written a Zen of Kevin yet?
 
5:07 PM
@Kevin but if newbies can't shoot themselves in the foot - how are consultants going to make their money!? Think of the trade we're in!
 
I can't import this because I haven't invented import yet :<
 
Yeah as Kevinscript Consultant #2 I wanna make sure I can make money.
 
I think I'm currently making easy things hard and hard things also hard.
 
@Kevin consistency is a good trait though :p
 
DSM
To profit off KevinScript I think we need to choose a target market. I'm not sure what market that is quite yet.
 
5:09 PM
Crab fishermen!
 
It's going to be the lingua franca of Data Science.
 
Both fisherman that capture crabs, and fishermen that are of man-crab heritage.
 
Data Science is "the next big thing" and we Kevin should cash in on that.
 
We'll play them against one another, see. Appeal to their competitive nature.
 
DSM
I think Kevin's suggestion is more feasible, so what the heck. Fishers of crab, learn ye KevinScript.
 
5:12 PM
Hello
 
DSM
@Ffisegydd: I'm not sure what to do with this. I don't believe the OP's result (a nan being there was far and away the most likely explanation), but I don't know how to say that politely.
 
Hmm :/ alas I must escape home. EdChum seems to have said about NaN though.
 
DSM
Yeah, but the OP says he got {str} as the result from my test, which rules that out.
 
user559633
this guy is way too high rep to ask a question like this and also to ask a question and disappear
 
DSM
@tristan: he was around a while ago -- maybe he's just trying it out now before upvoting and accepting.
 
user559633
5:15 PM
@DSM perhaps, but it's still an easy question
 
"Thanks in advances" and "Thanks in advanced": 5k+ posts. It's hopeless.
Even better: "Thanks in advice"
 
DSM
What's the current policy on editing questions to remove fluff without fixing the rest of the questions?
 
Does anyone happen to know of a recipe database that is easily accessible using a REST API?
 
Today I saw someone end their post with "rgds, user10394801". Why take the time to write that if you don't take the time to write the vowels too?
 
@AnttiHaapala you here? did you recompile the sentry-server static assets?
 
5:25 PM
@DSM there's an active meta question about the "thanks in <wrong word>" issue, and the general tone seems to be: if you're going to fix that, either fix the rest or vote to close as well.
 
I will accept "rgds is a well-accepted abbreviation from olden times, and thus not a symptom of young person laziness" as an explanation.
 
Many of those are low quality, so they should probably just be closed.
 
DSM
@DSM I must have accidentally run your command after I had converted everything to a string. I re-ran it without converting and did get {float, str} as you say. I'll edit my question to include the proper result. — JoshE 28 secs ago
And this is why they don't but should pay me the big bucks.
@MartijnPieters: don't you have that backwards? In modern Python random.sample doesn't accept a dictionary.
 
Bitbucket's version of gists: bitbucket.org/snippets
 
5:44 PM
buh. Stupid thing is so hard to configure with SSL
 
SSL is easy, you just tell nginx where the certs are, done.
 
@davidism OMG, they actually implemented that? I stopped watching the issue about three months ago after following it for years.
 
@DSM already covered.
Way, way, way too broad
> My goal is that this question will have all the info needed. Here. In one place.
 
DSM
"Is it normal behavior for a NaN to default to float?" Er..
 

« first day (1614 days earlier)      last day (3331 days later) »