« first day (3137 days earlier)      last day (1811 days later) » 

12:11 AM
Finished! I think it would be cool to write a command-line interpreter for lambda calculus in Python, but since my brain is trying to trick me into not studying things I need to study, it's left as an exercise for someone else...
 
 
1 hour later…
1:40 AM
cbg
what??? only 12 people in this room right now
 
1:55 AM
I'm here @U9-Forward
 
@Jab Hey jab, long time no see
 
Jab
How are you?
 
Wow, you got 8k, congrats, i am good, thanks for asking
@Jab How about you?
 
Jab
Thanks, been a slow climb for me
 
Yeah, busy right.
 
Jab
2:07 AM
Definitely!
 
@Jab But good to reach 8k lol
@Jab I just got a bounty yesterday :-)
 
Jab
2:42 AM
Oh nice on what? @U9-Forward
 
python and pandas lol, see on my SO profile
 
 
1 hour later…
3:56 AM
Does anyone know what io.FileIO exists for? I thought it's the base class for file objects that have a file name, i.e. real files that exist on disk. But it's actually not - files opened with open don't inherit from it. What's that class good for?
 
4:23 AM
Hey, you guys ever exported a machine learning network for inference in a language like C++? I got something good in tensorflow but want to do inference in a C++ CUDA program.
Maybe dump tf into ONNX then import with TensorRT on the C++ side?
 
very few people speak that kind of greek and latin here
 
5:11 AM
A great example of overkill: the question and the accepted answer :) stackoverflow.com/questions/56203950/…
 
5:29 AM
cbg
 
6:03 AM
@Jab Shall we chat
 
6:45 AM
rbrb
 
7:00 AM
I am experiencing a "Server error: error" in jupyter notebook why is this the case?
And the notebook is not functional
 
Do you not get any other output than that?
 
It says: "Can't execute cell since kernel is not set." But i set kernel to Python 3. The issue is it just says: "Kernel Busy" indefinitely
 
The only thing I can think of is to try restarting the ipython kernel
 
How do I do that?
I pressed the "Stop" and "Restart" button in the notebook nothing seems to work
 
kernel --> restart
 
7:04 AM
Nope pressed all those buttons also hoping one would work lol
 
Did this work previously?
 
it used to work
I just turn it off not use it for 4 days
Then it's ead
dead*
The only difference was that there was a firefox update
Which I did update today when I opened it
 
Trying another browser is one of their recommendations
 
why not restart the PC itself
 
Right will try that out
Or also that haven't restart my pc yet
If it doesn't work in chrome
What's the diff between pycharm and jupyter?
Any significant benefit
 
7:15 AM
Just about everything
Jupyter is about interactive code, Pycharm is a full-blown IDE
 
I see so it's easier to see the output in jupyter
Like the charts in matplotlib and stuff?
 
Yes, plus running isolated blocks of code. A library you may be familiar with: requests (a random example) - could you imagine trying to build that code-base in Jupyter? Building a library like that, you'd want an IDE
 
Yes I get what you mean so it explains why jupyter is often used in data science
Trying to find a way to open jupyter in chrome i totally suck at this
 
I give Windows a 0.0001% chance to find the solution, but I guess the server crashed and now Python with it
@Pherdindy ? Just copy/paste the base URL from your existing browser. The server is listening on localhost:8888
 
I tried that
It can't load
localhost refuses to connect
 
7:21 AM
Because the server died. You need to relaunch the server first by restarting jupyter
 
Alright will reset my computer first as suggested
 
7:48 AM
Restarting didn't do anything
Also opening jupyter notebook in chrome
Crashes the server as well
Server works until the .ipynb files are opened
Then after that it's completely dead
 
My experience with Jupyter is confined to a couple of afternoons years ago so I'm out of suggestions sorry.
 
Thanks for the help will just look around in the forums lol
 
 
1 hour later…
8:59 AM
I think you have to run jupyter first to start the server...
 
I launch jupyter notebook using anaconda navigator
 
And does that work? Last time I tried running jupyter it printed the port and whatnot for me
By I've never used *conda
 
Yeah, I remember launching it and it telling me the server listening in a cmd window. But I have Anaconda Navigator so I'm trying to load it now and test
Right ok, launching from navigator starts the server for you, it then connects to the kernel once you open a workbook. The whole process should be entirely autonomous for you so I'm not sure what's causing the issue
 
 
2 hours later…
11:25 AM
Yeah I never knew there was some kind of cmd window for jupyter alone since anaconda navigator didn't open it. I was wondering what people was saying by what the "terminal" showed. So I guess the errors should show up there
There has been a few other people having the same problem as me. I don't know if it's a problem due to some libraries in anaconda conflicting with jupyter
 
11:48 AM
@Pherdindy Yeah, I see you found the same post as me, but I can't really find any discussion on the issue
It doesn't look like it has been mentioned on their github so it might be worth opening a new issue for it
 
hmm
perhaps as an experiment, create a new conda environment with no additional libraries, and launch jupyter notebook off of it
 
Interestingly, it appears to be mentioning ZeroMQ and I was suprised to see that in the package list when I updated conda a couple of days back
 
fwiw, my anaconda with jupyter works just fine, but i have not touched or updated it in a while, so i wouldn't have any reason to presume otherwise.
 
12:03 PM
Huh, in looking around ways the ipnb content might be retrieved and used until the issue is fixed, I found out that Spyder is unfunded since 2017
But now I've also found they've announced a partnetship with JetBrains so I guess Spyder just got thrown aside
 
 
1 hour later…
1:34 PM
i'm having terrible experience with Flask and SQLAlchemy
app was running fine yesterday at home when i tried to run it on the different system ( freshly installed everything )
i got this error
`create_engine() missing 1 required positional argument: 'engine_opts'`
my current code:
x = 'postgres://*****'
engine = db.create_engine(x)
after googling around i saw some example with create_engine(DB_URL,**engine.opts) and other with create_engine(DB_URL,engine.opts=none)
whenever i tried any of them i got this error
 
is any of you familiar with these errors?
C:\Users\Lukkio\AppData\Local\Programs\Python\Python37\python.exe D:/CodingProjects/Pixel2Mesh/demo.py
Traceback (most recent call last):
File "C:\Users\Lukkio\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Lukkio\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
 
 'SQLAlchemy' object has no attribute 'engine_opts'
name 'none' is not defined
 
@JRick You're jumping between engine.opts (incorrect) and engine_opts (correct, and with a default value of None). Note, None capitalised, not none
 
1:52 PM
@roganjosh you are right i will look for it again , the weird thing is its not mentioned in the library itself ... and it was working yesterday on my home laptop
so i guess it has something to do with a recent update or something
 
Well, engine_opts is in a different library around sqlalchemy
It doesn't exist in create_engine in the actual library
 
i found it here
not working though
@roganjosh what do you mean that it doesn't exist in create_engine ?
 
What library are you even using? "Flask and SqlAlchemy" or flask-sqlalchemy?
 
based on this : create_engine() missing 1 required positional argument: 'engine_opts'
flask-sqlalchemy
create_engine(sa_url, engine_opts)
Override this method to have final say over how the SQLAlchemy engine is created.

In most cases, you will want to use 'SQLALCHEMY_ENGINE_OPTIONS' config variable or set engine_options for SQLAlchemy().
that is the only mention of it i found on the library site
 
The starting basis is here
Instead of the sqlite string, add your own database string
 
2:07 PM
@roganjosh yes this page doesnt include any lead on engine_opts
 
Normally you would have a config.py file like this one where you only need to set the database URI. You then initialise your database in the __init__.py file like this
@JRick Note what the error is telling you. "If you want to override...". You don't need to access create_engine directly, I'm trying to illustrate how to set the connection up without it
Because if you don't know what engine_opts means then I doubt you have much reason to be overriding the default setup
 
@roganjosh i'm actully trying to connect the user in session to a second database
that is why i need to go through this
it was working yeserday on my ( not updated system)
so it has to do with the latest update
 
Ok. In future, please be more specific about your issue and what you're trying to do. For instance "Flask and SQLAlchemy" was actually flask-sqlalchemy, so I was reading the wrong libraries, and you've made no mention until now that you actually might want to be accessing create_engine for the unmentioned second database, and we've had typos of none and engine.opts (twice) to boot. Hopefully you can see how this is confusing?
 
and better, ask a question of stack overflow
 
@roganjosh i'm very sorry for not being clear
 
2:16 PM
it is meant for such answers and clarifications are better made in the comments section there :)
 
@roganjosh i will be more careful next time.
@DeveshKumarSingh yea i think many people would like to figure it out coz there is not data out yet of the new version i guess
 
@DeveshKumarSingh Not really. If they're going to post on the main site then these are not the kind of clarifications that should be being made.
 
My point being when you actually sit and think about the question you post on the site, most of these clarifications will be made by the OP itself in his mind and will be avoided :)
 
can i post the question here to get some opinion whether it's clear enough or not ?
 
It's better to post it on stack overflow itself and then it will be seen by a larger audience
 
2:34 PM
@DeveshKumarSingh i did but i have reputation of forgeting one or two pieces of info that missleads everyone lol
i just don't see it because iam in the middle of it and sounds obvious to me.
that is why i prefer to have a second opinion
 
that's fine, people will catch up to what was missing by asking you on the comments
 
@DeveshKumarSingh i hope so , some of them are just rude , they downvote it right away instead of taking that approach so my problem is less likely to be solved
hopfully that wont happen today
 
most of them are for questions which are homework dumps, code without explanation, only code with no input output etc
which I don't think your question is
 
trust me not everyone is that nice , i had couple of incidents but i just got upvoted so i guess maybe not this time ^^
 
can anyone help me with my problem?
 
2:45 PM
@user8469759 I was not ignoring your question but I'm not familiar with Tensorflow. People tend to join in if they can answer; silence usually means people don't feel they have anything to add
 
3:01 PM
for some reason, I have observed two kinds of behaviour recently. 1. someone comes in, downvotes all answers in a post and goes away 2. People downvoting other answers which look similar to their answer
 
In both cases there can be legitimate explanations
I've done both
 
for second, sure if they feel the answer is repeating what is already said, and the first, if the answers are on a dupe
what other reasons can there be lol
 
For point 1, they often cast a close vote as a dupe before leaving and are frustrated that users are answering blatant dupes
 
Also typo questions
@DeveshKumarSingh just bad answers, I dunno?
 
yes, case in point: this question: stackoverflow.com/questions/56208845/…
I posted an answer almost at the same time as another OP, but I got downvoted twice lol
so maybe: The answer is bad, Or other answerers downvoted me since they feel the answers are similar
 
3:10 PM
i don't understand why some ppl are just A holes ... who would vote down my question ? -.-

it's fully detailed , i reply ASAP to any comment and add any suggestion to my question under attempt # , so far i have 7 attempts based on ppl comments and still some A hole voted my question down ... what is wrong with those ppl ?
 
and I know that one of the OP's downvoted me lol since as soon as I undeleted my answer, their reputation went down by 1
 
@DeveshKumarSingh lol
i guess they are just lazy and bored a f
 
anyways, what I would suggest it is don't take it too seriously, If you get an answer even with downvotes, your problem is solved
always remember the person who downvoted also gets -1 on their repo, so they cannot downvote willy nilly, and they have only a given number of votes per day
 
@DeveshKumarSingh the truth is many ppl wont risk answering a down voted question , i've been there
 
"the person who downvoted also gets -1 on their repo" not if they downvoted a question
 
3:15 PM
it's just weird there is not gain for them to do so.
 
ohh, that's why I am getting some downvotes on my questions recently @vaultah
 
@JRick quality control
@DeveshKumarSingh pretty sure that's not the reason
 
well I was downvoted thrice today on my questions, which might not be a coincidence, maybe I pissed someone off l
 
Revenge downvotes can be reverted
 
not if they are not in a pattern, otherwise the scripts won't pick them up
I was serially downvoted 9 times in 4 minutes, which was picked up
 
3:21 PM
They will be reverted if there's a pattern
Othwerise you can also raise a mod flag
 
yes, did that
 
@DeveshKumarSingh I had a stalker that downvoted 2 questions per day, daily, and back-to-back, which averts the general filter. I raised a custom flag and got more than half of them reversed
If you suspect that case, it's better to raise it early because my first flag said they couldn't prove a pattern, so when it happened again the next day, I'd already established what I thought was happening before my second flag
 
ohh mentioning that, well I don't have it bad yet still, also a poster's repo went up and down when I deleted and undeleted my answer, meaning he downvoted me, I don't think it's worth calling him out on his answer for it considering both answers were posted at the same time
 
 
2 hours later…
5:14 PM
@tripleee with regards to the regex question, I've already explained that re.findall(r'[^\w\s]', original_string) and re.findall(r'[\W\S]', original_string)produce very different results for original_string = "John is happy. He owns 3*4=12, apples"' so I'm not sure why you're telling me they're equivalent.
Ah... cheers. I wasn't sure if I was misunderstanding something myself.
 
are you.. uh..---talking with yourself--- psychic and reading tripleee's mind? :P
^ that was intended to be a strikethrough :(
 
needs a space between .. and --- I think
 
need a space
yup
@ParitoshSingh context :p
 
chat markdown 1. me 0.
 
I'm also in disagreement with that closure of the question, the dupe target could not be more useless in this context but I'm not up for an argument
the close vote game in the regex tag is so strong it's almost toxic
 
5:23 PM
That reference question should be deleted tbh
not because it in itself is delete-worthy, but because people just can't stop using it wrong
 
hm. i value the links presented there, though it being used as a dupe target is the real ... uh.. yeah, that
 
I see the good intentions behind its creation but bad intentions behind its use
 
to me, that does not justify its deletion. Its a solid resource. someone has put a lot of hard work into it
 
people who use that as a dupe target ought to have their hammers revoked
And that's enough SO for me for today. I'm off to watch YouTube videos, that's less upsetting
 
watch cat videos
they work wonders, even though people might think you're weird :P
 
5:27 PM
well they'd be right, so no harm done
 
reminds me of that quote from Alice
 
I would not delete a resource so useful but if it is locked it has no business being used as a duplicate.
 
im sure links ON the page can be dupe targets, but the collection of useful links itself being used as a dupe is just plain weird
 
@ParitoshSingh it did actually reach me as an inbox ping, eventually
but not here at the mo really, gtg ->
 
hi bye
 
5:41 PM
People are downvoting my only dupe question today, 3 downvotes so far lol
they don't get a penalty, and I can't delete it. though have reported it to mod
 
6:30 PM
@DeveshKumarSingh I can delete it
where it is
@DeveshKumarSingh why did you accept that answer... all things like accepting + upvoting that make it harder to autodelete
@DeveshKumarSingh cast one delv
@DeveshKumarSingh you could actually delete your question if it didn't have an upvoted answer... and accepted too :D
 
what happened to your directed replies? :P
 
@AndrasDeak what do you mean :P
 
@AnttiHaapala he means this
@AnttiHaapala versus this
 
@AndrasDeak oh you mean if I am replying to the first of the 2 last lines in the chat I need to use directed replies? Lazy.
 
6:45 PM
or just leave one ping rather than 4 :P
 
Hi @AnttiHaapala are you a mod ?
If I unaccept that answer and try to delete it myself, it doesn't let me :(
 
@DeveshKumarSingh no, but I've got 20k delv
you should unaccept anyway :d why are you giving a 15 rep for someone who could as well delete the useless answer.
 
are you referring to this: stackoverflow.com/questions/55827325/…
what's a delv?
 
*poof*
 
what! How! I can't even do that!
what kind of sorcery is thist?
 
6:54 PM
hey , whoever was with me on the issue with code run on one system and not the other
i found the lead
the freshly installed windows had the latest update which is flask_sqlAlchemy 2.4.0
and my personal ones have 2.3.2
the first improvement features of 2.4.0
was .... you guessed it .Make engine configuration more flexible. (#684)
till this moment i don't appraciate that new " feature " unless it was easy to understand and not buggy , otherwise i look for a way to downgrade my version back to 2.3.2
 
@cs95 can i refer your comment in my answer here: stackoverflow.com/questions/56210890/…
 
@DeveshKumarSingh go for it
 
btw how do guys have power over mods? I raised a flag to a mod, and he said to me
We do not delete questions merely because they are duplicates. Duplicates can serve as a useful sign-post to the main question.
 
We don't.
 
The only power we have over mods is the power of meta
 
7:03 PM
aah, you casted your delete votes, I thought 5 were needed
 
that's a privilege that anyone over 20k has
you're halfway there
 
yes, 1 more month and I should be there :)
 
there's no rush unless you want to get mugged (no, seriously)
 
mugged as in?
 
Oct 23 '18 at 15:47, by Aran-Fey
I heard at 100K you get mugged
 
7:05 PM
But I said 20K
 
you can avoid being mugged by voluntarily giving it all away
 
well the reputation doesn't reflect my knowledge of python, though atleast in the past few days, I have reduced answering to dupes
but this was a unexpected find today
In [49]: 'a'%2 == 0
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-49-c550cd3224ca> in <module>
----> 1 'a'%2 == 0

TypeError: not all arguments converted during string formatting
 
I'll never understand why that's a TypeError
 
how does that happen, is it because both sides are evaluated, and 'a'%2 makes python thinks it is trying to format, but no formatting parameters are present in the string?
In [51]: 'a %d' %2
Out[51]: 'a 2'
 
yep
 
7:10 PM
it was expecting this? interesting, with SO I learn how can Python be made to spit wierd errors not evident at first look
 
yes
 
honestly maybe because i'm new but i think rep is wayy over rated , like i'm here to learn , not sure why ppl compete about it
 
I don't care much for rep, but having privileges is nice
 
the last privilege is at 25K right?
 
@Aran-Fey kinda agree with you , some privileges is nice but not all of it are necessary
 
7:13 PM
yes, but not as useful as the previous
 
Sort of. You get more delvotes until 35k or so.
 
useful enough, I used the analytics data for an assignment once
 
I atleast learned some things which I will use in my work from the answers in python, especially itertools and builtins
 
7:32 PM
 
i like how the guy was probably like "i have a choice here. either i can prevent this, or i can record this"
 
 
3 hours later…
10:41 PM
Cabbage
I have Django (DRF) and React stack with an OAuth2 (custom provider from work)
Essentially my flow is as follows
1. Redirect to the authentication page in the React frontend
2. On success redirect to Callback handler in frontend with code param
3. On componentDidMount take code param and query DRF API endpoint, which sends request to token exchange endpoint
4. If successfully exchanged, JWT decode the returned token to get userinfo
My question essentially is how do I associate a frontend SSO instance with a user in the Django backend?
 
11:01 PM
0
Q: OAuth2 Flow for SSO: How to associate login with Django user?

Malik BrahimiI have Django (DRF) and React stack with an OAuth2, which has been issued by my place of work with proper credentials and endpoints. Essentially, I want to be able to have users within the company to access this fullstack application via SSO. My OAuth2 flow is as follows: Redirect to the /as/au...

 

« first day (3137 days earlier)      last day (1811 days later) »