« first day (2117 days earlier)      last day (2814 days later) » 

6:01 PM
oh wait.... __exit__ runs in a context manager if something is raised in the context
hmmm
so now it's try/finally vs with
I really shouldn't be over thinking this
 
probably
 
Use context managers if they're generally useful, and also necessary. I find finally useful for one-offs.
 
Good point. This is definitely a one off inside this test. Test code is dummy code and nothing complex. Just a series of commands. I just need to make sure things get cleaned up to run tests over and over again without issue.
 
Just don't repeat yourself, you know? :)
You can make one super-easily with docs.python.org/3.5/library/contextlib.html
 
oh yeah...I'm familiar with how to make a context manager.
I'm more debating what to use in this case.
 
6:06 PM
OK, I couldn't find a butt unicode character. This makes me a 🐼 (already sad if you look closely)
I need y'all's (heh) over-the-seas advice. Is tabasco mayonnaise sauce necessarily hot?:D Especially in the context of a BLT (pizza in this case...)?
 
spice tolerance depends on the person
I know people who cannot handle the smallest bit of tabasco
then there are people like me who haven't found their tabasco threshold yet
I don't find it spicy
 
Yeah, it just tastes like weird vinigar to me.
 
Ah, so it's not hot as in capsaicin, just a stingy flavour?
 
I think that reaction is still there....I just think that each person reacts differently
need a higher dosage to get more of a trigger from the individual
so the next question. Are you looking to seek pain and suffering? Or enjoyment?
 
OK, thanks gents for the feedback:)
@idjaw the missus is hungry:D There's a pizza with codename BLT which would sound great if it weren't for the mysterious tabasco mayonnaise sauce on it. We're trying to make a maximum likelihood estimate for her dinner:)
 
6:11 PM
tabasco mayonaise sauce on a pizza?
wtf
 
Yeah, that sounds... Not good.
 
well, BLT is not a typical pizza topping, right?:D
especially L
the missus has an odd taste, so that part is fine
 
I feel like the amount of tabasco added in that mixture probably won't do damage
 
I mean, I've had all of those things on a pizza before. Not as one pizza though.
Probably not.
 
but don't come running to me if she starts yelling about how spicy it is and you're sleeping on the couch
 
6:12 PM
@idjaw it seems that the pizza sauce is tabasco mayonnaise instead of the usual tomato-based stuff
 
it's getting weirder
the actual base sauce has mayo in it
wtf is going on there man
 
@idjaw well the real danger is her eating my pizza instead:P
 
that means the mayo was actually baked with the pizza
good god
 
@idjaw heh, possible:D
here you go, it's not all in my head:D
 
I had chicken with mayo-garlic-artichoke baked on it last night. It's not unreasonable
 
6:14 PM
ah, in English it's mayonnaise AND tabasco sauce
 
I found the solution, needed to specify the TCP handle
 
I guess there's really just part tabasco
 
The GF has made mayo based pizza before. It was a mix of mayo/ranch powder with veggies on top. It was... Not my favorite.
 
I guess that's as much as we can discern a priori, thanks again:)
 
I like that Google translate just gave up on this one.
> Citadella menü
(sajtkrémes alap, sonka, csirke, kukorica, póréhagyma, mozzarella) + ajándék 0,5L Pepsi + 1,8 ml TABASCO
 
6:16 PM
there's an English page:D
ooooh nevermind me
I don't think it's google translate, it's probably oversight
 
Oh, maybe.
 
don't get too attached to the page though; it should take a while for them to ship overseas
 
Ok, now my program is running only every fourth time, presumably due to two independent short-lived semipersistent resources. This is a bad trend.
 
n-grams built, initial word clouds and visuals plotted and sent, trees building - finally! its lunch break time
 
Deterministically every 4th time though? It's not based on the AND of 2 coin flips?
 
6:19 PM
@Kevin 2^n, bad sign. Eventually you'll have rogue events of not breaking.
 
homemade corn chowder :)
 
The stack trace for half the failures says something like "duplicate resource detected" which is in line with my previous theory. It loads the resource every time, but half the time the old version of the resource is still hanging around, and will only clear itself out when an exception occurs at the right time.
 
duplicate --> source of 2^n
 
The other exception happens at Uow.Start() and is more or less totally opaque to me.
doesn't help that my "step in" button doesn't work, and the usual advice for fixing that also doesn't work.
 
:O even better! unittest has an addCleanup method that will run regardless of pass/fail. Perfect environment cleanup method. Sweet. Doing that instead
 
6:25 PM
Aaaand now that I've resolved to fix the things, they stopped happening. Textbook Heisenbug.
Probably because I'm not taking enough times between re-executions. If the resources take, say, ten minutes to expire, it does me no good to hit "play" every five minutes.
 
OK, if anybody's interested: the missus likes to live dangerously, ordered BLT. But we also customized my pizza in case hers doesn't work out:D
tune in next week for the next episode of Weird Hungarian Implementations of Italian Food
 
"Let's order things we both like, and you can have the better one when it arrives" is a relationship tactic I learned from the parents Kevinson.
 
how is a BLT dangerous?
 
the intersection of our food preferences is akin to a pretty-much-null set
 
6:29 PM
or Italian? :P :)
 
@JGreenwell BLT pizza (cue dramatic music)
 
Apparently it's spicy.
 
Or not.
It's a deadly gamble!
 
oh, that makes more sense and delicious if done right
last three words are key
@Kevin my wife does that to me all the time
 
I'm slowing acclimating the GF to spicy food.
She used to be of the opinion that the crushed red pepper they serve at pizza places was too spicy, and now I've got her voluntarily adding hot sauce to things.
 
6:42 PM
I grew up on habaneros :)
 
Yeah, I grew up on a ton of Indian food, so I know my way around capsaicin.
 
I still like hot sauces that don't try and be ridiculously spicy if they have good flavor
I hate that word - stupid OC
 
The one thing that has properly shut me down is the ghost pepper wings from my local bar.
 
OC was the pepper spray used by Marines, that military police had to get certified in every year btw.
Shog is talking a lot on the SOD chatroom if anyone is interested and not depressed enough about the state of SOD that they've given up hope
 
meh
 
6:47 PM
I like hot food but it has to have flavour. There's no point if it's too hot to enjoy.
 
So has Shog always been lurking here? I saw him yesterday, but didn't remember seeing him before.
 
CMs occasionally pop in.
Usually when we misbehave BD
 
yeah, the best heat takes a bit to hit you too - like I thought I knew hot stuff then I tried mi tia's (my aunt's) habanero salsa once and thought it wasn't that hot so poured on the stuff.....then the after bite hit me :O
 
also if you say his name enough
 
6:50 PM
speak of the devil CM?
 
so call him "he who shall not be named" instead ;)
 
What if I say Joel Spolsky thrice between two mirrors?
 
You'd be in violation of your restraining order again.
You know you're not allowed near mirrors.
 
Again? Is that a paddlin'?
 
yeah, word cloud was a success (also like the easiest thing to make - swear its like "look at the shiny" for execs)
 
6:54 PM
Teh BLT has arrived! The suspense is killing me. (to be continued after dinner)
 
left on a cliffhanger, he did
 
I half-wanted "(to be continued after dinner)" to get followed up twenty seconds later with "it didn't go well."
 
mmmm, BLT
 
In nine words, a tragedy. Not enough to displace "for sale: baby shoes, never worn" as microfiction king, but close.
 
Pfft. Tragedy in 4 words: "Python 2.7 lifetime extended."
6
 
7:02 PM
okay shutting down SOD chat - it gives me a headache. These people need to learn to be pun-y
....apparently I can't just leave SOD chat - actually have to leave everything and re-enter to get out of it
and @Ffisegydd is trying to give me nightmares with that statement
 
You can checkout any time you like, but you can never leave.
 
:+1:
 
Scala stdlib is sadly lacking in some areas D:
 
@Ffisegydd most std libs compare unfavorably with Python's
 
True.
Doesn't even have a datetime library, but then again it also has access to all of Java, and from what I know the Java stdlib is pretty good.
 
7:10 PM
@JGreenwell what do you mean? There's two links: "leave" ("all")
first leaves the room and reloads chat front page; latter leaves all
But more importantly: BLT went fine, thanks:P Mildly hot, but as good as pizza can get right now (to quote the missus). She would've wanted to eat roast liver, so pizza was already settling:D
if you ask me, BLT pizza looks as good as it sounds (=not at all)
at least my dinner was saved from the hungry horde
 
if you leave SOD it doesn't remove the chat pop-up notification (or maybe its because I'm using my phone)
 
odd... phone might be the reason
 
@Ffisegydd It can be, but the Java stdlib is no requests
 
yeah, I just stopped guessing with that I see a lot of intermittent errors - back on computer now
 
In general, the "leave" button only works like 30% of the time for me.
Ex. if I'm in the Sandbox and in Python and I click "leave" in the sandbox and close that tab, I'll still see messages from the Sandbox in the Python tab, in the little area below the users list where such messages typically appear
 
7:16 PM
^ that
 
@Kevin you can also press leave on that message box
 
That button works a good 60% of the time.
 
at the end of the message there's an icon with an uparrow protruding from a horizontal line
well I'm in 5-6 rooms at the same time usually, and it has always worked for me (on the rare occasion that I needed it:P)
 
your in 7 today :P
 
I always use the little up "eject" arrow and it's never failed me.
 
7:19 PM
well, next time I'll try that one - I still say its a conspiracy :p
you know I always know a term will be bad when I can find no journal article using it but tons of marketing rags with it
 
cbg
wow, I’m glad that discussion quickly moved away from my potential future pokespawns… >_<
@AndrasDeak ^
 
hehe:D
 
\o/
 
Another weird docs thing:
I don’t see why citing docs should give any special reputation at all. Reusing content that was posted elsewhere already is less effort than writing a new answer, so I don’t see why it would be rewarded with additional reputation to do less while duplicating content into multiple locations. If the quotation makes the answer good, sure, then upvotes will award the answer. But just because it uses docs, does not make it good nor worth extra reward. If the question can be answered with a docs quotation, it should probably be closed as some kind of a duplicate instead. — poke 2 mins ago
The reputation system is so broken…
 
7:28 PM
Sweet sassy.
 
Grr. I'm stuck on something in Python :| anyone good with UDP?
 
@corvid I would answer but not sure if my answer would reach you.
 
snicker
 
debating deleting one of my answers. I realized after further review that for larger pieces of data, my solution is far from optimal
 
I can bind a TCP socket to port 23 and host 192.168.1.4 on my computer fine, and it reaches the device, but if I try to do the same with UDP, it appears to cause a problem. How am I supposed to do it?
 
7:34 PM
anyone mind giving me a yay or nay on whether I should delete to bump up the other solution I think is better?
 
@idjaw is it accepted?
 
^^ no
 
ah, good then
 
that's my answer
at the bottom, I linked the solution I think is better
 
if you think the other answer is better, put it up front
with perhaps a note saying that it's more efficient for large data sets
I think that's a good compromise
I can also downvote yours and upvote the other one, to make it even:P
4-4 now
 
7:41 PM
screw it
deleted mine
it's better and clearer
 
you'll never get to 10k like this, kohai
 
haha
it just felt too wrong
 
exactly:P
 
haha
 
go edit some nullpointerexceptions in java SOD
 
7:42 PM
SOD Java suggestions - Long Class Name Guideline
 
or remove a comma from Hello, world!
 
and capitalize the w
 
that's substantial right there
 
7:57 PM
haha I got a badge for deleting that answer
wasn't a complete loss :P
 
Success
 
Okay, so I'm a .NET developer just learning Python and I've run into something that I was wondering if someone could shed some light on for me.
bool(0) is false. Anything not 0 is true.
 
This is true.
 
Well, any number, yes.
 
8:03 PM
So bool(float("nan")) is (somewhat counter intuitively) true
But that makes sense to me
 
0.0 is also Falsey
 
Yep
So floats and ints
Non 0 is true
 
Any empty container is also Falsey
 
But bool(None) (which is not zero) is False
None is 0 is false
Gah
 
is does identity comparison.
 
8:04 PM
I fail at typing
 
So yes None is 0 is True because the object None is not the object 0
 
None, 0, 0.0, '', {}, [], () are all False.
 
So None is considered an empty object
Okay, that makes sense
 
None is a singleton, similar to null in other languages.
 
Not really. It's just Falsey.
 
8:06 PM
No but it fits in my mental map now. Thanks for the clarification.
 
My favourite, that throws some people, is the fact that bool([False]) is True
 
Because it's a non-empty collection
 
Exactly :P
Doesn't matter what is inside it, as long as it's non-empty.
 
bool(*[False]) on the other hand, is False. ;)
 
That's just mean :P
 
8:08 PM
@MorganThrapp I haven't made it that far in the Pluralsight course yet :)
 
@Ffisegydd Aw, it's not THAT bad. We can get nasty with it if you want.
 
Anyway, back at it. Thanks for the explanation.
 
No problem!
 
We did good @Morgan. We helped someone in need. We should balance the scales by abusing someone else.
 
@Ffisegydd Who do we hate these days?
 
8:12 PM
Hey, idjaw, your face looks like a block of cheese.
 
Yeah, and your breath smells like poutine.
 
Ice hockey's not even a real game.
 
It's figure skating while playing chase.
 
And what's a zamboni anyway, it sounds like a skinny zebra.
 
8:15 PM
ouch
 
DSM
I wish I'd been here a few minutes ago to kick Fizzy.
 
The figure skating remark?
 
You can still do it! (Sorry, fizzy).
 
I have no regrets.
 
OH!!! OH!!!!
You woke up the Canada, Fizzy
You woke up the Canada
 
8:18 PM
@MorganThrapp too bad(?) bool(*[False, False]) isn't False`
 
I'll take the cheese comments
but you leave the hockey alone
@MorganThrapp You love me so much you can't even insult me properly
 
@idjaw It's true. <3
 
He woke up the canada
 
lol
 
I assume that's what happens when you mess with Canada.
 
8:22 PM
@Ffisegydd well I'm surprised your first response wasn't "I don't believe you"
 
insult soccer (and call it that instead of the correct name) if you really want to get them going
 
@MorganThrapp Pretty much
What part of "we stand on guard for thee" don't you understand, Fizzy? ;)
 
thee is hockey
it's in the anthem, Fizzy. You don't insult hockey, man.
 
I've never listened to the anthem, and don't intend to start now.
Actually that's a lie, I once went to watch Wales drum Canada at rugby, I assume they sang it then.
 
Hmmmm, Python just broke hard enough where I can't even kill it through the task manager.
 
8:30 PM
@Ffisegydd I assume it mentions poutine and maple syrup...
 
@MorganThrapp do a ps -ef....nevermind
 
@MorganThrapp Aargh, skynet! Yank the power before it's too late ...
 
Zero's not even read chat.
That's just what he says.
 
Meh, restarting works.
Also, whooooo new phone shipped. Gonna have me a phone with a working power button soon.
It's going to be beautiful. I'll be able to actually turn off the screen on my phone.
 
8:37 PM
whuuuuut!
 
@AndrasDeak lolwat :D:D
@AndrasDeak sounds about right
 
our blooming illiberal democracy:D
 
I'm thinking of going for an iPhone SE in September.
 
I just ordered the Nexus 6p. That thing looks so beautiful.
 
wat?
python 2.7 lifetime extended wat?
@Ffisegydd java's is pretty complete
 
8:46 PM
@AnttiHaapala really? until when?
 
@ByteCommander I guess no, see starboard
 
Ah, reading the transcript helped to understand... :)
 
9:03 PM
is there a standard way to tie a tornado ioloop into a gevent loop?
 
9:27 PM
@enderland nylon rope? :p
 
@JonClements it's not looking fun...
 
That kind of stuff never is... :)
 

« first day (2117 days earlier)      last day (2814 days later) »