« first day (3302 days earlier)      last day (1647 days later) » 
00:00 - 21:0021:00 - 00:00

9:01 PM
Uh, is that question protected? Because there's a weird banner telling me that "you can answer this question since you have 22k rep", but there's no "this question is protected" banner to be seen, so, uh, it's hardly surprising that I can answer it
 
It is protected. I don't get such a banner
 
oh, it is protected. There's an "unprotect" button
 
You're special and valued. Feel fuzzy inside, damn it.
 
The new banner system is confusing me. I wasn't part of the 50%, then I was, then I apparently am not again
 
9:07 PM
apparently that's not account-bound. I'm in the old group on my PC and in the new group on my laptop
They seriously overdid these "Learn more." links. Learn more about what exactly?
 
@Aran-Fey That correlates with my experience, then. I hadn't picked up on it, but you're right, I get the new banners at work and the old ones at home
In which case, what does 50% even mean for a test here? There's gonna be way more than 50% of people who see the new banners, and actually get a mix. Why not just roll the whole thing out?
Or maybe it's 50% of your devices. Now choose which irks you the least :P
 
> I thought it would be really interesting to write an application that generates a randomized webpages. Basically a randomized sequence of html elements with nonsensical fragments of text pulled from from different parts of the internet using a web-crawler would be generated every time someone clicked a button. This really wouldn't have any practical purpose but it's creative and complex enough to look really good to potential employers if it was in my portfolio.
 
"I'll call it clickbait.com"
 
<slides a randomised webpages (sic) across the desk> When do I start?
 
wim
@AndrasDeak both misses actually , it was a ref from "28 days later"
 
9:19 PM
never seen it
 
wim
or was it "world war z" ? I forget now
one of the movies they always called these guys "zed"
 
For a minute I thought Shaun of the Dead but he's called Ed. I also hated the film, so it's a relief
 
finally someone else hates that movie!
 
I'm with you there. I never understood the "humorous" references at the time. And I can't remember much about it now because I think I just blocked it out but people seem to hold it in high regard
It was just a mess.
You already know I like low-budget horror, in addition to films that actually try to terrify you. The in between bit, where people try to throw light on horror tropes, is just a sad wasteland
 
yeah, there's an uncanny valley of bad which isn't bad enough to be enjoyable
 
wim
9:32 PM
I thought shaun of the dead was pretty funny. Perhaps you have to like zombie movies to enjoy the tropes.
the same director's cop movie was better ("hot fuzz") but if you didn't like the british humour in shaun you might not like that one either
 
... I'm British :P
 
wim
sure, doesn't mean you like british humour
 
But the phrase "British Humour" doesn't make sense if you're not talking to someone outside of the country.
I never really got Monty Python but I appreciate Philomena Cunk. I also like spontaneous stuff like Would I Lie to You
The former is just satire
 
wim
Well, maybe I was talking to Andras. It’s not all about you, roganjosh.
 
@PaulMcG how exactly?
NUM_TYPES(Enum): float = 'float'; decimal = 'decimal'
STR_TYPES(Enum): varchar = 'varchar'; char = 'char'
DB_TYPES: Union[NUM_TYPES, STR_TYPES]
 
9:40 PM
@wim sadly not, no
 
follow up q, is there a shorthand to create an enum from the list of strings like ['a', 'b', 'c', 'd', 'e'] such that we get out something like: MY_ENUM(Enum): a = 'a'; b = 'b'; c = 'c' ...
 
Enums already have names, so assigning strings to them is unnecessary
I'm still learning my way around typing also, but I meant that you would define enum classes the conventional, non-shortcut way, then you could reference them by type when typing your typing
class NumType(Enum): # values go here
class StrType(Enum): # more values here
db_field: Union[NumType, StrType] = None
 
am I the last one to hear this news?
 
I was so interested in reading his PEG article series, but medium.com limits my access :(
 
Just pay them already
 
9:50 PM
Yep, that's how it starts
 
@PaulMcG do incognito
@PaulMcG assigning strings is unnecessary? What if they do not have any values other than their own names?
 
wim
enum has a functional interface
that would be: MY_ENUM = Enum("MY_ENUM", list("abcde"))
 
@wim sorry for sounding silly, but what does that mean?
 
wim
huh, it doesn't duck-type.
not a big fan of stdlib enum honestly, it has too much magic
I tried to make a more Pythonic declarative Enum, and came up with this interface instead:
class Color(Enum):
    red
    blue
    green
implementation here.
 
woah. this is good
 
although I am struggling to understand what is going on there.
and there are a few reasons for that. never worked with metaclasses in Python, haven't seen prepare dunder method before
 
What did he actually do? Andras linked it a few days ago and I kinda assume Jeremy just exploded
 
Facebook. I deleted my account long time ago
 
He got suspended from SO for things posted on FB?
 
10:12 PM
I wasn't answering your question, sorry for confusing you. Was voicing my discontent over FB.
 
No worries. I'm just sad that I don't suppose there's any evidence left of what went on so I guess it's a you-need-to-be-there situation :/
 
just read about defaultdict, great feature
 
10:37 PM
probably more o shell scripting question.. i found myself lately creating and setting venv a lot for my python code. so i wrote a script to do that for me..
is there a way that when i have this in my shell script source $PWD/env/bin/activate that after it runs, i find myself within that env ?
i.e. (env) $ you are within the env
 
wim
not really what you want
because when you run the shell script it's a separate (child) process, and it gets its own environment
the parent can give the child an environment, but not the other way.
 
11:03 PM
@wim I'm touched (maybe)
 
@JoeSaad just alias the creation of the environment? alias envpython='python -m venv foo && source ~/venv/foo/bin/activate', where foo can be an arg?
 
you mean alias envpython=..., right?
 
@AndrasDeak yes, sorry
 
so this alias is going to change my shell to be within the env?
 
11:13 PM
running the alias will source the env for you as if you'd done it yourself
 
that second part && source $PWD/env/bin/activate will
 
my shell script looks like the following:

python3 -m venv env
source $PWD/env/bin/activate
pip install -r requirements.txt
python setup.py install
 
@AndrasDeak will explore this
 
but the problem is that after running this shell, i still don't see my current terminal within that env
 
@isquared-KeepitReal let me know what it's like :P
34 mins ago, by wim
because when you run the shell script it's a separate (child) process, and it gets its own environment
an alias on the other hand is a short-hand for commands you'd type manually
 
wow, does it
@Code-Apprentice note that there's a 10-minute grace period for cv-pls requests and "too broad" is not an exception. But in this case I doubt it could become answerable in 8 minutes.
 
wim
11:29 PM
@isquared-KeepitReal don't answer crap
it's a waste of everybody's time, most of all yours.
 
yeah, that ^
See "answer well-asked questions" at stackoverflow.com/help/how-to-answer
 
@wim I struggled a lot with downvotes a long time ago, I would really like to be able to help people a bit. It can be very discouraging for newcomers.
 
you should help good or at least acceptable questions
 
agreed. that one did appear to be quite poor and I have decided that it was time for me to start answering some questions today, bad timing :) I usually ask :)
 
@AndrasDeak yah, I forgot to look at the time it was posted
 
11:37 PM
It's alright
 
@isquared-KeepitReal I am very judicious with downvotes because of that negative effect. I use my close votes instead if a question isn't very good.
 
@Code-Apprentice that is definitely better, imho
@AndrasDeak transonic is your project?
 
nope, the only thing I know about it is that post
 
hmm, where does the front-end come in play and why
 
What do you mean?
 
11:47 PM
I sense a context switch that the rest of us missed
 
well the reply should've been aimed at chat.stackoverflow.com/transcript/message/47728170#47728170
I've got context, I just don't understand the question
 
> Frontend (user API and code analyses) and backends (code generation and compilation) are well separated.
What frontend are they talking about
 
Was converting some old Python 2 code to 3 and was wondering, how would you convert this? struct.unpack(“>h”, chr(byte_val1) + chr(byte_val2))[0]
int(byte_val1) + int(byte_val2)?
 
@isquared-KeepitReal transonic
 
11:52 PM
@AndrasDeak Yes :) But why would one need the frontend for an accelerator
they have their own type implementations, interesting
 
@isquared-KeepitReal to use multiple backends with one API, just like any other backend system
Like matplotlib and a dozen backends, or keras + tensorflow/sklearn/etc.
 
00:00 - 21:0021:00 - 00:00

« first day (3302 days earlier)      last day (1647 days later) »