« first day (2675 days earlier)      last day (2291 days later) » 

6:25 AM
@idjaw Have you seen this meta faq?
 
 
1 hour later…
7:38 AM
Isn't this question much wider than the duped target linked to it?
 
8:24 AM
@MoinuddinQuadri Yes it is. But OP shows no effort to solve the problem, and in that case the linked dupes are perfect starting points, since the question is broad enough.
cabbage o/
 
8:44 AM
OP already knows that it might be done based on ASCII codes, but isn't sure of the pythonic way to achieve this. It is general question and in my opinion not having the code is fine. Though the question is short but is complete.
I am having a strong urge to cast reopen vote for it, but my vote will reopen it single handedly which is stopping me to vote for it :(
 
 
1 hour later…
10:02 AM
Well, knowing it's done based on ASCII codes doesn't change anything IMO. The linked questions do the job. The reason I would close it as dupe is because the application / purpose of it isn't mentioned, which would have made it more specific.
 
10:28 AM
It's fun to watch Guy Fawkes discuss with himself ;)
3
 
10:41 AM
:-p
Our face direction fits for the conversation.
 
11:26 AM
:D :D
 
12:19 PM
What should be done in the case of this particular question stackoverflow.com/questions/48731368/… ?
CV as simple error?
Meh, poke & codespeed already answered, it seems a little more than simple, so probably okay.
 
 
1 hour later…
1:25 PM
@IljaEverilä neat! No I have not. Thanks.
 
1:41 PM
Dat title
 
1:56 PM
wayyyyy too broad stackoverflow.com/questions/48732235/… (less than 10 mins since posting)
 
closed
when Gordon Linoff votes to close you know something's off
 
Huh, I've just noticed I have a comment with 7 stars
Scratching my head with matrix calculus atm
 
What about it?
Or just general musing?
I have a pretty solid linear algebra background
 
His itch scratched someone else's itch? :-p
 
 
2 hours later…
4:40 PM
Hey guys!
How can I prevent FileSystemEventHandler to fire twice for each event?
take a look there for an MWE
Thanks!
 
Hi. This is not criticism, just an FYI: MWEs are more often referred to as MCVEs on Stack Overflow:)
 
@AndrasDeak Oh really? Thanks! What does that mean?
 
"minimal, complete and verifiable example" stackoverflow.com/help/mcve :)
 
No worries by the way! : )
 
5:40 PM
This comes off as something written by a Markov chain: stackoverflow.com/questions/48732065/…
 
google translate is more likely
OP's comment seems otherwise
 
Google translate is indeed a constant source of comedy, though it's getting better.
 
"productive" programming language?
what makes Python more productive than others? simpler syntax?
 
and lots of "batteries included", I guess
many common things are already implemented
and next to no boilerplate
 
I feel that writing classes is pretty boilerplate
I've found a package that offers an alternative way to implement classes,
 
5:55 PM
I don't think the remark is meant to be overanalyzed and taken too seriously :)
 
Especially since it doesn't say "language"
 
after all what it really says is---vaultah'd
 
Is it possible to frequent stack overflow, and also have the ability to feel emotions?
 
@A.Smoliak What do you mean? I feel anger all the time.
7
 
5:56 PM
boredom is an emotion
 
@AndrasDeak well when you're trying to answer a question or ask one, you gotta be all stoic and rational
 
@A.Smoliak do I? :P
 
I realize it's for the best, I guess you can be more lenient in the comments
 
acting professional and being dead inside are two very different things
 
I always thought they were the same :P
 
5:57 PM
I'm afraid you've been wrong all this time ;)
 
Anyone have some good documentation to help a noob understand authentication flows?
I am implementing authentication for my REST API. The API is written with Django and I'm doing authentication with social_django.
 
@Code-Apprentice I can only offer the opposite: tell them to steer clear of Spring's.
 
Why are some of the images greyed out?
in the chat
 
@IljaEverilä well, that's helpful...at least I'm not doing any Java with this.
 
@A.Smoliak those users haven't talked in a while
 
6:01 PM
Eventually I will write a frontend that consumes the API. I'm trying to get my head around how the web based frontend logs in and then makes additional requests to the API.
 
it's always creepy how when people lurk on chatrooms like IRC, whilst you are talking to someone for some time they pop out of nowhere
 
oh...and I'm only using OAuth, not managing my own usernames/passwords.
 
@A.Smoliak SO chat is fully public so lurking is different here. You could even lurk by never registering on SO.
 
Melon!
 
rhubarb for a while
 
6:04 PM
(Note, I'm using chat as my rubberduck. Feel free to give feedback if you have any.)
 
I just rubber ducke'd myself
How does the rubber duck work anyway?
it's magic
 
At the moment, I have an endpoint in my API for authentication. The frontend can redirect to it like https://example.com/login/google-oauth2/. This takes the user through the typical google authentication flow. If the user is not logged in, gets user name and password. Or if the user is logged into multiple accounts, then the user selects one. Then the browser is redirected back to a default page, or if I specify ?next=/foo/bar/ then it redirects to that route in my API.
I guess what I'm trying to figure out is what response comes back to the frontend?
hmm...maybe I need to actually start implementing the frontend that I have in mind. I haven't even started on that yet.
I guess next can be set to any URL and/or route that my frontend knows how to handle.
so far I've only been using the DRF tools to navigate the API.
 
How on earth do you have so much rep?
 
many years of answering questions on SO...and I'm a late comer. You should see Jon Skeet's rep
 
My best answers only give me 1-2 rep at most despite putting a ton of effort in them
 
6:12 PM
look at my answers...I have hundreds with 0 rep
 
it's the silliest answers that usually get you the most rep
here we go. this
 
at one point, my highest voted answer was to a question that boiled down to "how do I convert inches to feet" and my answer was basically "divide by 12"
 
Yup....the one I posted boiled down to "use parentheses to call something that is callable because the thing you are calling is the module"
 
damn
 
pretty much.
 
6:14 PM
but as time goes on you don't have those kinds of silly questions
you get more and more niche questions
 
there are lots of noob questions like that. I try to judge the question by the content (MCVE, clearly describes the problem, show some amount of effort, etc.) not on the level of knowledge of the asker.
 
yeah
 
MCVE?
 
yeah I read it, just didn't know what it stood for
 
6:18 PM
now you know
 
The More You Know™
I want to ask a question, but I do not know what to ask.
 
Knowing is Half the Battle
@A.Smoliak asking good questions is surprisingly difficult. It takes practice.
 
Most questions are already damn asked
Stack overflow works too good
 
For beginner questions, yes, that is true
that's why google and SO are so great.
 
6:20 PM
when you stay long enough, you start seeing that the too good can sometimes be a bit of an issue and then the better good is drowned out by the once upon a time too good, and then you have people using python 2 answers still
 
I can easily find a solution to my problems via searching, so if I ask a question, it's gong to be a question I probably know or can know the answer to quite easily, is that OK to do?
 
@idjaw I'm sure that made sense in your head...
 
You are the one that makes no sense
Everything said sense I make
make it!
 
to be fair I don't get what you said as well :P
 
@idjaw tortured Yoda-speak
 
6:22 PM
something about too good drowning better good time good drowning?
 
no one understands my artistic genius
 
maybe after you die, we will start to appreciate how genius you are
 
challenge accepted
make them talk about me
 
are geniuses of the past overestimated?
 
talking about Genius...I'm excited about the upcoming season on NatGeo about Picasso
 
6:23 PM
newton: "i swear this fuckin apple is gonna pay for giving me this bruise"
 
and this apple....and that apple...WHY ARE THEY ALL FALLING ON ME
 
last season about Einstein was so good!
 
I should really watch those
 
yes you should
 
is it easier to develop in Python on Linux or Windows?
 
6:32 PM
Depends what you are trying to develop
I would argue you can pretty much go a very long way equally, on both.
 
the terminal on linux is much more /comfy/
 
yep....I was going to say that it would be recommended to get some kind of cygwin or emulated *nix environment going in windows
If you are on windows 10 absolutely take advantage of the linux subsystem running
it's pretty much a headless ubuntu running in a shell
I've been messing around with it to get a Python environment working seamlessly by having windows installed tools that tie directly to the linux subsystem
I'm currently figuring out PyCharm and docker
not as easy as I thought.....
 
Let me know when you do, because we might be doing the same thing soon
Just got our shiny PyCharm licences on Friday
 
lucky cabbages ;D
are you here to gloat, hmm?
 
@RobertGrant will do. I found the linux filesystem from windows. I'm trying to find a safe way to share data now. Because part of the warning is to not share data from linux to windows from within the linux subsystem
 
6:36 PM
i'm looking for different editor themes that use more colors than dracula for pycharm
 
@A.Smoliak enjoy -> color-themes.com/?view=index
 
I made one that I really like. I need to just re-package it to update the latest one. The one I have on my GH now has a highlighting issue which I fixed but did not push yet
 
can you show me it?
 
I'll take a screenshot
hold on
 
6:44 PM
a 2nd theme I've tried out and the funciton names are all black with all black background
Do people actually use light themes?
 
@idjaw I haven't looked at the JetBrains integration with Docker. I looked at some docker tutorials just before that was released.
 
 
Looks good, but I think you should tone down on the blue
 
That's quite nice
 
attributes and variables shouldn't be the same color, imo
 
6:47 PM
It's actually based off of an old Sublime Text theme I had that I loved and went from there and then got deeper and deeper with customizations
@A.Smoliak what do you mean? like self.x as opposed to just x?
 
yeah I think local variables like x should be, say white
 
hold on
 
while self.x should be blue or something else
 
 
yeah just like that
what do you think?
 
6:50 PM
I didn't change anything 😀
that's how it is. It probably didn't reflect it in the first screenshot
 
the first image has the repr method
type_name is in blue
 
are you saying that arguments in method definition and local variables created in method should be grey?
 
Bonus points: variables from arguments should be a different colour again, so you can tell if you're accessing them or you just typo created a new variable
 
Both valid points. This is where I say "unfortunately, PyCharm actually does not provide finer breakdowns of this...which is ludicrous TBH"
 
I think the rule for syntax highlighting should be that you can know via colors what is what without looking at the syntax
 
6:54 PM
Yeah. I have a pretty easy time understanding what is going on in that...also I'm really used to it.
Let me see if they improved the theme choices
I did all this when I was using IntelliJ
maybe for whatever reason PyCharm provides finer details
ugh
 
how to people develop on vim and text editors
like actual projects
 
this is what they let you modify
 
What if a dot that stands out would also be helpful?
 
Yeah. I was actually just looking at dot and not make it blue
 
I'm looking for some cool projects to contribute to in Python that are not related to web
 
7:01 PM
 
for amusement and expanding my 'portfolio'
 
How does the dot look there? I think it actually helps a lot
I'm going to keep that
 
It doesn't stand out, I think, but it's far better than before
 
hehe
 
you know what they say about images and a thousand words
 
7:02 PM
yuuuup
I like it. I'm committing that
 
skilled syntax highlighted in a way would be like drawing some meaningful painting
much easier ~ and quicker, to understand it
 
@idjaw personally, I like seeing whitespace like that. However, the dots there are a bit too bright and look like actual periods.
 
you like the original blue?
 
@idjaw I think we are talking about different dots
 
which one are you talking about?
I have to go shovel the snowpocalypse that is in front of my house right now.
I'll catch you all later
 
7:10 PM
@idjaw I was talking about the whitespace dots
 
Oh! That is actually PyCharm's preview thing in the settings
I actually don't have those enabled in my editor
 
All previous screenshots without the dots are my actual view
 
That looks nice
 
yah, I noticed that most of your screenshots didn't have those dots
 
7:11 PM
If anyone is interested. Here -> github.com/idjaw/pycharm_color_scheme
but be very careful. It is the entire settings configuration. So it will overwrite everything if you are not careful
If you import it pay attention and only select the theme/appearance or you're gonna be in for a bad time
Better yet...back your stuff up first
oh and if you like the font too...I'm using menlo
That won't be packaged in the settings
OK...I'm out for real. I'll be back later
cheers
 
8:03 PM
farewell sweet prince
 
 
1 hour later…
9:17 PM
Cabbage all. Can someone help me with this question: stackoverflow.com/questions/48601771/…
Also is unclear or missing something, I don't seem to be getting any answers
 
"why doesn't this program work on my machine" kind of questions aren't easy to answer
 
it definitely won't work as-is without sudo, since you're trying to install to the system path
either sudo or --user or a virtualenv is needed
the latter two are preferable to the first option
 
do you need install it at system-level?
 
@Aran-Fey I'm aware of that, the fact remains I've searched and search, this is a second last attempt.
 
and apart from this, this is what the error seems to be, quoted from your output
> /usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'i686-linux-gnu-gcc' failed with exit status 1
 
9:28 PM
@idjaw I really don't care as long as I can get it working.
 
Did you try it in a virtualenv?
Try it
 
OK give me a few seconds (I don't have it so I will need to install it)
@AndrasDeak gcc and ld are both working and work fine (I use them) if that the point you are trying to make
 
oh, goodie (it's not)
you're probably missing liblz-dev as a dependency
 
yeah....I was thinking about lib*-* dependencies
 
Ah maybe that's it. Let me try that first then.
 
9:31 PM
but I thought maybe those were installed already
well...you have some more work to do, friend :P
 
@Simon no, that's not just it. Yamming read what I told you first
these are independent problems in what you're trying to do and if you just grab the first straw that comes across your face, you're in for a lot of drowning
stop and try to understand what you're being told
 
Sorry I always get very excited when a problem might get solved.
 
one of the things that sets us apart from dogs is that we can be excited and not hump whatever crosses our path
if you jump in head-first into half-baked solutions you'll eventually break something real good and you'll have no idea how it happened and how to undo it
read and understand first, act second
 
OK
Right the dependency is definitely not installed. I'm just installing it now...
 
9:40 PM
Right it's installed. I've tried installing cx_Freeze same error. Shall I double check gcc and lz work correctly?
 
did you try the venv....and just try it
don't ask 😀
 
"same error", you sure?
(honest question)
 
Yes I am sure. It is the same error. : (
 
/usr/bin/ld: cannot find -lz <- this one?
just to be on the safe side
 
Exactly the same :(
 
9:46 PM
OK
it's possible that some other package is needed as a dependency, but I can't check right now
try to google what the -lz linking switch needs in ubuntu
 
Just let me try @idjaw suggestion.
 
I don't know. You tell us. Is it? :)
 
FWIW I wouldn't believe him anyway :P
yup, my mistake, liblz would've become -llz when linking
 
Sorry I'm having problems getting the environment started on virtualenv.
 
you either have to try harder or let us know what's wrong
 
9:58 PM
I'm going to go for trying harder. It's the problem I see two questions daily on.
IE activating.
 
IE?
please let it be not-explorer-nor-edge
 
he's activating internet explorer
 
:D
hopefully "i.e."
 
IE engage
 
:D
 
9:59 PM
punctuation saves lives, you know
"Let's eat, grandma!" vs "Let's eat grandma!"
 
oh oh. I have an answer for this
and to go up a level -> theoatmeal.com/tag/grammar
 
I haven't seen that but I already know how to use it
 
Right I need virtualenv help now. I've created the environment. I've ran chmod u+x ./activate nothing happens (I've changed path into the bin dictionary).
 
because you don't run it; you source it
 
source venv/bin/activate
 
10:04 PM
or . ./bin/activate
 
pip install bock_bock_bock
 
don't install that ^
 
I know which pip returns /home/simon/.local/bin/python3
However source does the trick.
 
when you source to your venv, your path is now going to be relative to the venv you are in
so when you run pip, it will be with respect to your venv
inside your virtualenv when you do a which pip the path will be for the pip in your venv
venv/bin/pip
 
your shell prompt should also reflect that you're inside the venv
 
10:08 PM
That is correct. Bah Tomato same error.
@AndrasDeak Have you tried googling "-lz linking switch"? It returns this: How to Link a Nintendo Account to Nintendo Switch XD
 
nope
did you install zlib1g-dev or something equivalent?
 
Nope. zlib1g-dev is available under ubuntu so I might as well try installing it.
BTW Where does everyone get the list of dependencies?
 
@Simon you'll have to, you're still missing the dependency. It's just that I misidentified it and it wasn't liblz-dev or whatwasit
 
Just installing. This one is taking ages...
 
@Simon the rule of thumb is that the corresponding switch for linking is -lNAME, so if you break on -llapack, you need lapack which is probably in a package called liblapack
 
10:19 PM
Right it's installed.
 
in your specific case it has a different name, but often the above works
and of course googling your error will almost always give you a result :P
you just have to see that the linking error has nothing to do with cx_freeze so as not to restrict your search for solutions
 
Avocado it worked :D
@AndrasDeak Melon. Could you please make an answer so that I can accept it?
 
only if you convince me that the answer to your linking problem doesn't exist on SO already
I don't have time right now to check myself
 
Do whatever you want. I will have a quick check.
 
ooookay?
 
shocker :)
 
What shall I do about my question? That one is not accepted. What can I do?
 
either self-dupe it if you can, or delete it
 
There done. : )
@AndrasDeak Would you recommend deletion?
 
I don't care
 

« first day (2675 days earlier)      last day (2291 days later) »