« first day (3659 days earlier)      last day (1274 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
@inspectorG4dget I mean, I understand the irrational motive: food is something everyone can relate to, and have strong emotional and social associations. But that doesn't mean the business side of it will solve itself. And even if we enjoy soccer or poker, we don't go out and try to be a professional player.
 
I think you might juuust about have enough time to get it all done
 
@MitchellvanZuylen That's good progress. Hmm, can you insert a backronym like 'HotDog' or 'SouFFLE' in your thesis?
 
Well, I've long-wondered what they can actually salvage from commercial planes that are out of commission. I bet you could get quite a lot of the furniture items dirt-cheap. Smarten them up a bit, build them into the restaurant and then alternate the cuisine across different countries on different nights. I mean, it was only semi-serious, but I walked past the perfect abandoned building in the city center one day and had a dream :P
 
@smci oh no! I just enjoyed cooking. So I wanted to cook in a professional kitchen while letting the owner worry about the business aspect of it
that's deadly cool. Maybe I should try to get an orphaned plane seat for my workstation
 
My dad once came to me about his idea to sell snow for Xmas day and I told him how utterly uneconomical his business model was. Lo, it's now a business :/
And not his, I should add
 
6:02 PM
Okay, this conversation has been fun, but I'm noticing it's districting me too much from my actual work tonight! Thanks @kevin and @roganjosh for the encoding woes!
 
So, egg on my face over that one. It's a good job he doesn't raise it every few months in whatever debate we're having :P
 
@inspectorG4dget I know several semi-professional chefs, and ones that used to be. Here's how it used to be in the longest boom in modern economic history: long and antisocial hours (after midnight, can't interact with your family except on day off), crap pay and conditions, extremely uncertain job security, no benefits. That was before the recession.
 
@roganjosh but how? and where? I live in Canada, and there's just way too much snow everywhere, in the winter. I'd imagine it'd be tough to sell snow here because it's available for free on the side of the road. If on the other hand, you mean "in warmer climates", then "who'd buy something that melts away in 10min?"
@smci holy crapsticks!
 
I mean if Food Network tarted up the profession of prison guard, they could sell an illusion too...
 
Hmm, my entire mental model of this encoding problem depended on the assumption that django would convert b'foo \x92 bar' into u"foo \x92 bar" but .decode("utf8") is not as permissive as I thought
 
6:05 PM
@inspectorG4dget In my neck of the woods, it is usually cold enough for snow, it is just not snowing.
 
ahh I see
 
@inspectorG4dget Shaved ice is a hipster thing: eater.com/2018/5/24/17376180/…
 
@Kevin something something errors="surrogateescape" something something?
 
@inspectorG4dget In the UK it is almost certainly cold enough on Xmas day to sustain snow but we very rarely get a white christmas. My failing was grossly underestimating how much certain demographics are willing to pay so that their precious kiddiwinks are able to wake up to a white xmas
 
@smci yowza!
@roganjosh holy jibberjabber! that's just... I have no words!
 
6:09 PM
I can't help you with words, but might I interest you in some snow?
 
@MisterMiyagi That would make the decode call succeed, but the result wouldn't contain the character \x92. Same for any other parameter to errors that I've tried.
 
@inspectorG4dget so now when we say 'She has Dragon Breath', that's hip and cool (= liquid-nitrogen-chilled icecream or snack), not undesirable.
 
@roganjosh sure. How much woudl 20 quid get me?
@smci I feel like I'm a few millennia behind the times. I've never heard that expression before in my life
 
@Kevin If the incompatible pattern is known, you might want to replace it in the source with its unicode point \xc2\x92 before decoding.
 
The mojibake is happening in django's guts where I can't see it
I'm 95% of the way towards convincing myself that any fault-tolerant conversion to utf8 is provably not unambiguously reversible, which means the mojibake can't be fixed; it has to be eliminated before it occurs
 
6:18 PM
kill it with fire
 
@Kevin surrogateescape is reversible, but requires the appropriate encoding with surrogates. I doubt that Py2 code does that correctly.
 
Unless... Maybe it's doing something silly like:
>>> def lousy_decode(b):
...     return "".join(chr(x) for x in b)
...
>>> def lousy_encode(u):
...     return bytes(ord(c) for c in u)
...
>>> lousy_decode(b'foo \x92 bar')
'foo \x92 bar'
>>> lousy_encode(lousy_decode(b'foo \x92 bar'))
b'foo \x92 bar'
(tested in Python 3 only)
I think I've circled back to "just use latin1"
 
def write_account(email,pas):
    append_write = 'w'
    if os.path.exists(SUCCESS_PATH):
        append_write = 'a' # append if already exists
    else:
        append_write = 'w' # make a new file if not
umm... what the heck was the author trying to do there...
 
isn't that what... append mode does anyway?
 
Add unhashed passwords to an xls file for national tracking purposes?
 
6:29 PM
perhaps they wanted to make an example for race conditions ruining your day...
 
@MisterMiyagi yup... can't see why mode='a' doesn't just cover it
 
Devil's advocate: if you asked me whether "a" creates the file if it doesn't exist, I wouldn't be able to tell you unless I had documentation access
 
What else would it do? Nasal demons?
 
Good ol' code reviews
Falls to me to explain to someone why they've basically been ripped off for a fair few £'s...
RE_QUOTES = re.compile(r'[\'\"]')
RE_SPACES = re.compile(r'[\n\t\s]+')
 
@AndrasDeak Crash with FileNotFoundError, perhaps.
 
6:32 PM
CannotAppendToTheVoidSillyException
 
Essentially the same thing that happens when you try to do seq.append(x) when you haven't assigned a value to seq yet
 
my perception is probably biased by shell >> redirects creating new files naturally
if I were stuck in a prison surrounded by windows my intuition might be different
 
and function names are stuff like: matchAndAdd, grabAddress, etc...
plus a shed load of except Exception
 
Windows supports >>, but it's not idiomatic enough to affect my intuitions of file write modes
 
@Kevin Of course it does what the operating system does.
It's probably about monoids and stuff.
 
6:45 PM
his "monoids" an inside joke I've been missed out somewhere? :p
 
Was going to say "yes", but the transcript clearly says "no". Blame it on the dinosaurs eating messages.
 
7:04 PM
@inspectorG4dget There are outlets within 10 miles of your house.
 
@smci I'm afraid I'm even more lost ("loster"?) There are outlets of what retailer? within 10mi of <wait a sec... how do you know where I live?>
 
7:24 PM
Is it possible to type and run code in shell while GUI is running (for quick changes/testing and debugging)?
 
Actually, my guess that it's not right is probably correct
 
7:41 PM
Sorry? You think it's not a right thing to do and I should reconsider, yes?
 
I posted a link that encompassed some vague memory of nohup and & but I deleted it because I think I'm off-base in the suggestion, so it's not worth wasting your time
 
@inspectorG4dget (Dragon's Breath is a liquid-nitrogen-chilled dessert originally popularized in Asia. And you told me the city you live in in the last two room hangouts. Anyay, have google for local outlets near you)
 
@roganjosh Ahh ok
It's not something of great importance, was just wondering if I could speed some things up without writing temporary code.
 
@smci holy awesomesauce! thanks. I might take g4dgetGirl there to pick up some dessert
> you told me the city you live in
This, I was aware. I thought you meant "near where you live" as "near your home address"
 
7:57 PM
We all know your home address. You left your phone bill out on the desk at the last Google Hangout, and it was short work to reconstitute the characters from the blurry camera image using the Google image Deblurifier filter.
 
bwahahaha! I forgot about that thing lol
 
8:09 PM
Welcome @FelipeWhitaker :)
 
Hey :)
@inspectorG4dget I am from a "warmer country" and I think that the people that would have the money to buy snow (it need to come from far away and refrigerated, thus it would be probably expensive) can just travel and get to interact with snow that won't melt in 10 minutes
However, I, myself, have already put snow into a bottle to bring back home (and I knew that it would melt, hahah!)
 
that's awesome! Then again, I wonder if it'd be cheaper to get a snowmaker machine and just produce local snow
 
So in answer to your question, SO (the company) made a lot of "interesting" decisions, plus the driving force behind Python/Data Science being pushed constantly in adverts to vaguely technical people, the Python tag has been overrun in many ways with people asking the type of questions you describe. This room tries to strike a balance between being informal (though we have rules) and actually supporting people
 
@inspectorG4dget Definetly cheaper: isn't it what Dubai does?
 
yup. They built a snow park inside a mall... in Dubai... .....
 
8:15 PM
@roganjosh And I loved it, haha! (brb I'll read the rules)
 
@inspectorG4dget That's what they do. It's a truck with a big compressor to produce the snow on demand. That was the mega capital outlay that I didn't think you'd be able to claw back for such a limited trading period. Guess I was wrong (or they're haemorrhaging money and putting on a brave face)
 
they do have way too much oil money, so what we call hemorrhage, they might not even notice
 
I just have to say how disgruntled I am that you americanised my spelling of haemorrhaging because I'm so terrible at spelling but actually, got that right on my first go! I was so confused at getting google results without the "showing the results for xyz" in my search. Ok... it's out of my system :P
 
8:50 PM
@MattDMo ugh, they ignored the first comment on their question the first time around :/
 
yup
Should I close it as a dupe of the first one?
 
@MattDMo don't think you can because it's deleted
 
aw darn
 
lol, now V2 is deleted after being closed. What's the bet on V3?
 
I loved his excuse for reposting - "its very different from the previous one because its in a for loop"
And now I'm going to eat some fresh brownies. I'd share if I could, but I can't, so I won't.
 
9:22 PM
enjoy your brownies!
 
 
3 hours later…
11:58 PM
@roganjosh haemorrhage... Scots porridge...
 
00:00 - 18:0018:00 - 00:00

« first day (3659 days earlier)      last day (1274 days later) »