« first day (3139 days earlier)      last day (1800 days later) » 

2:38 AM
cbg
@Jason In pandas? or what, can you please be a little more clear?
 
cbg
There are 4 tutorials listed apart from the default python one, any suggestions on which one is better in terms of content and readability
I was thinking of getting started with one of them
 
@DeveshKumarSingh It gave me 404 error, correct one for me sopython.com/wiki/What_tutorial_should_I_read%3F
 
Yes that one, the previous link didn’t work alas, any suggestions? Or have you perused at this page before?
 
IME tutorials only take you so far
 
3:05 AM
@DeveshKumarSingh I think you forgot to copy part of the link, that's my suggestion.
 
3:37 AM
I mean to say which of the tutorials of all those might be good to start
@cs95 what’s IME?
 
@U9-Forward yes in pandas
 
@DeveshKumarSingh Exactly
@Jason But more clear please
 
@u9-forward i have downloaded the data but it has nested jason obects which I cant able to convert into dataframe
 
@Jason "nested jason object" jason? yourself?
 
sorry nested json object
 
3:46 AM
aah, so any one of the 4 linked there should be a good start @U9-Forward
 
3:56 AM
in my experience
 
@DeveshKumarSingh The more tutorials you study, the better you are, i think you're very good already tho :-) i would say to not start like a beginner again :-) you're firth rank this week.
When i am the 17th.
P.S. this is my best ever week, reaching 20k, getting 350 rep.
That day
Which is yesterday
 
Nobody:
U9-Forward: this is my best ever week, reaching 20k, getting 350 rep.
:p
 
@cs95 What do you mean?
 
I guess I meant to say that nobody asked ;p
generally, we avoid boasting about rep achievements here.
 
@cs95 Okay
Damn, can't delete
 
4:02 AM
as you might have noticed many people don't appreciate it. Although you have seen only Andras Deak complain (I want to say "whine" but his complaining has made me a better person so I don't begrudge him for it)
just a gentle notice. We like to make conversation that doesn't relate to rep and stuff. Have you learned something interesting today? We'd love to hear you share that!
 
@cs95 Okay, i will once i think of something i learned :-)
 
Here's something I learned from chat earlier today: x, y = x[y] = {}, 0
this works, can you guess what x is?
don't cheat and run the code :P
 
I won't cheat
 
haha I don't doubt it
 
I guess, an empty dict, probably not right tho
 
4:07 AM
it's the opposite of empty
 
Oh...
Oh, i know: {0: {}} right?
Is it right?
 
no!
 
Run out of guesses, can i see the output?
 
lol, sure
don't feel bad, I hadn't the faintest idea until I ran it myself either
 
Wut, how? {0: ({...}, 0)} that is the funkiest thing i ever saw in python lol :-)
 
4:12 AM
haha @U9-Forward I think anyone's reputation has no correlation to knowing Python, especially me. I mostly answer questions where I am able to piece something together from what is already present in Stack Overflow.
 
{...} is a recursive definition
 
I am more interested in knowing things in depth, which tutorials are a good starting point I guess!
 
Yeah...
 
what happens is left to your imagination :P but you can probably piece together the flow from dis.dis
 
No sorry, this is very hard:
x, y = y[x] = x = 1, {}
Please do not run it
Tell me if i should give a hint
 
4:16 AM
assignments run left to right, or right to left?
 
@DeveshKumarSingh Of course left to right...
 
haha, I can't even wrap my head around how x, y = x[y] = {}, 0 is evaluated @cs95 how can I think about this?
 
@DeveshKumarSingh As he says: "don't feel bad, I hadn't the faintest idea until I ran it myself either"
So you must see the answer in one of my messages...
And you should answer my question too.
 
but how do you even start thinking about it, yes I saw the answer, but the answer doesn't lead to the question
well I also don't have the faintest idea of how to think that without running your question lol
 
@DeveshKumarSingh No, guess
Btw:
>>> x == y
True
@cs95 Where are you try to get the answer of my question.
 
4:24 AM
haha @U9-Forward lets not get too excited :)
 
@DeveshKumarSingh Okay
rbrb
Will recbg soon.
 
Here's my guess: {1: ({...}, {})}
or something similar
 
does stackoverflow have an app?
 
cbg
 
@user1734039 yes, but it's in your best interests not to use it
 
4:39 AM
s = "hi {{ user }}, samle text, {{ adsfadsg } 2100210121, testing"
any idea how to find all substrings in a string that looks like this one {{ adsfadsg }? (text between {{ }} is an variable)
(\{{ .*?\ })
meh, this regex include also substring that ends with }} instead of only }
 
4:56 AM
@cs95 why?
 
@cs95 Very close
Shall i spoil the results for you?
 
sure
 
@cs95 Here it is:
>>> x, y = y[x] = x = 1, {}
>>> x
(1, {1: (...)})
>>> y
{1: (1, {...})}
>>>
Also, i realized:
39 mins ago, by U9-Forward
>>> x == y
True
Is false.
Because first one is a dictionary and second is a tuple
@user1734039 Why should you use stack-overflow app, just use stack-overflow :-)
 
darn, I was pretty close
 
@cs95 Lol, it's hard to guess these right :-)
 
5:10 AM
indeed...
@user1734039 has a lot of missing features and bugs. Use the mobile site
 
>>> re.findall('[^{\}]+(?=})', s)
[' user ', ' adsfadsg ']
>>>
@devfan You mean ^
??
@cs95 I remember i learned something like the below from somewhere, maybe from this room, i forgot:
>>> a: a=1
>>> a
1
>>> __annotations__
{'a': 1}
>>>
 
dumpster fire, OP forgot to add and ended up with a lot of robo fgitwers
 
@cs95 Haha :-)
Two burned and 3 alive
Especially when using the pd.DataFrame.append, method, makes them think it's list.append...
meh
 
5:26 AM
cbg
 
@cs95 I have another question (my last one), which you should be able to answer:
a = c, d = {}, 1
You should be able to answer that...
Don't run tho
@IljaEverilä Can you guess it?
 
c and d would be {} and 1 but I'm having a hard time figuring out a
probably a tuple ({}, 1) but could be wrong
 
@cs95 Yahoo, correct answer! ✔
I can do a on a question more than 10 minutes ago right, just to make sure
 
5:41 AM
Noice
you can do a delv-pls on a question that has been closed, but it should be a sensible request
 
@cs95 It is closed, so i can right.
 
Delvotes can only be cast if the question is closed and at least 3 days old - or if it has a score of < -3 and you have 20k rep
 
@U9-Forward Sorry, had to demo the thing I'm working on to a colleague (and naturally it all went to yam)
 
that is a blatantly bad question, but do note that roomba will delete it eventually
 
@IljaEverilä np. it's okay, cs95 solved the quiz already, don't worry
 
5:44 AM
delv-pls requests are really required for crappy questions that are closed and should be deleted but won't be because others have answered them
that's where we step in
 
Anyway, deleted now
 
To strikethrough, use 3 hyphens like this (markdown: ---like this---)
 
Geez, to late to edit, now it is an undone HTML unwrapping message :-)
@cs95 Yeah, too late to edit
 
Folks, would like to draw your attention to this answer of mine (please don't upvote it). I'd like to know how I can better organise the information there so it is more useful. I think the content is fine but the presentation leaves something to be desired.
 
5:52 AM
Should I cook up example data for each scenario and demonstrate how each argument will work in that scenario?
 
> generally, we avoid boasting about rep achievements here.
 
Should I search and link to other SO posts that delve deeper into the use of a specific parameter?
 
^ That's true, although a little bragging on major milestones is ok. ;) OTOH, @U9-Forward doesn't need to be encouraged. :)
 
Hmm, I think 50k and 100k (or multiples of 100k) are fine, we do it for Martijn every year :p
 
@PM2Ring Lol, i just got 20k yesterday, i got to read up to date with my privileges :-)
@cs95 Really? wow.
 
5:56 AM
Every time Martijn hits a new multiple of 100k a congratulatory message is starred on the right
facts
 
@U9-Forward Congratulations on 20k. Now try to concentrate on quality rather than quantity. ;)
4
 
@PM2Ring Thanks PM 2Ring, Yeah, and have the next 5k getting more up-votes with less answers :-)
To get 25k :-)
 
@PM2Ring Haha, sounding like Andras without actually sounding like Andras, nice
 
@cs95 as well as two and too
@cs95 Lol, coughing and coffee
 
@cs95 It looks ok to me. Maybe link to the relevant docs? I see that originally it wasn't a Pandas question, and the accepted answerer added the Pandas tag. I guess that's ok, since the OP kind of wanted a dataframe, but didn't know Pandas existed.
 
6:10 AM
The arguments are listed in the docs I've linked to already :)
 
You could add examples, but then it would explode to an Aaron Hall sized answer. ;) OTOH, it looks kind of naked without some example code.
 
@PM2Ring Huh, two same (almost the same) messages?
 
Aaron Hall answers are fine as long as all the info there is useful as well as relevant :P
 
@U9-Forward It's a slight bug with chat on mobile. Sometimes when you edit it creates a new post.
 
@PM2Ring Oh, you're on mobile right now...
 
6:14 AM
@cs95 Oh, I agree. But sometimes they get so long that people are likely to skim rather than read them thoroughly. And this is coming from someone who's been criticized for writing overly-long answers myself. ;)
 
are some of the points not covered in the API doc @cs95 in the answer of yours. if yes probably quote the,
 
@U9-Forward I am on mobile most of the time these days.
I find it curious that none of the non-Pandas answers to that question use the csv module DictReader.
 
@PM2Ring Oh yeah, Aaron has long long answers
@PM2Ring I always use my PC
For SO
@PM2Ring Yeah
 
has 18K score from 600 something answers on python! woah!!
 
@DeveshKumarSingh Look at his answers first... he go 58 answers more than 50 up-vote!!!!!!!! i don't have any
:P
 
6:21 AM
it's like he is talking to himself and others in his answers :)
pretty descriptive though
 
@DeveshKumarSingh When someone says "Aaron Hall" reminds me of a lot of headers, bold and strong text, and italic text, and bunch of examples, they're good tho.
 
So few questions about python, pandas today
@PM2Ring Thanks man
Haha, just as i say that a pandas question shows up :-)
 
Hi guys
I am new to pandas
Can anybody tell me what fillna(False) does
I know that fillna fills NaN values with the value inside the bracket
 
6:42 AM
@RaphX Didn't you just answer your own question? If you read the docs and still aren't totally sure what some code does, you should make up a small example to test it
 
@PM2Ring Haha, exactly
 
Yeah I got that@PM2Ring but can anybody tell me why we would do that?
 
@RaphX Ah, that's a much better question. You should have said that in the first place. I'll let one of the Pandas guys answer that.
 
@RaphX Because maybe you don't want to have NaNs, they look weird to people that are users of your software that which don't have any clue about programming, so you would replace to N/A, or 0, maybe you don't need that but others do..
@PM2Ring Cs95 should, he is much better than me
 
@U9-Forward That doesn't explain why False can be a sensible replacement of NaN.
 
6:48 AM
@PM2Ring Aah...
@RaphX To explain why False, probably that means the value is not there it can go through, unlike others, so you want False to say that it is a falsy value, it was messed up from the beginning already.
 
Normally, it's better to replace NaN with a number, so that the column only contains numbers, but sometimes that will mess up your data, and there is no sensible number you can use.
 
You haven't said what the rest of the values in the column are
 
@RaphX you've probably seen that sonewhere. You have context that we do not.
 
What is the dtype of the column?
 
If you need to load the data into Excel you have to get rid of the Nans, because Excel can't handle them. But Excel can handle False.
 
6:55 AM
string and float @roganjosh
 
That would be object dtype then?
 
Its a zipcode column if that helps @AndrasDeak
I think there is some issue with the data since zip shouldnt be float @roganjosh
 
dtype is a property and it seems you're eyeballing it rather than checking .dtype
 
@RaphX No. What happens before? What happens after? Context.
 
Basically I am cleaning the data @AndrasDeak
I am removing possible erroneous zip inputs
 
6:58 AM
you are?
You wrote the .fillna(False)?
 
I am trying to :D @AndrasDeak
No someone suggested me to but I didnt get convince why @AndrasDeak
 
What does that have to do with fillna(False)? I thought that was what we were trying to answer
 
15 mins ago, by RaphX
Yeah I got that@PM2Ring but can anybody tell me why we would do that?
Whoever suggested that should convince you first
so the answer is "we typically wouldn't"
Beware of "the blind leading the blind" situations
 
Got it thanks @AndrasDeak
 
The way you asked made it sound as if someone was already using this for something. Huge difference from "a guy told me to use it"
 
7:03 AM
:D Sorry @AndrasDeak
 
Which idiot put the wireless keyboard there? I'm doing well with random typing lately
 
JS's weak typing should be called random typing instead
 
Maybe my feet can type better JS than my hands. Sometimes that feels like a worthy shot to take.
 
FWIW, zip codes, like phone numbers, should normally be strings. Yes, they are numeric, but you don't do arithmetic on them, so it doesn't make much sense to store them as numbers. And in some countries, the postal codes can contain a mixture of letters & numbers. Of course, there may occasionally be numeric patterns in postal codes, with neighbouring locations having similar numbers, but it's pretty unusual for there to be a consistent pattern that you can use arithmetic on.
 
And string distance might work just as well
We're so small that we have 4-digit postal codes
 
7:14 AM
rbrb
 
In the capital 3 of those are fixed by the district
 
We have 4 digit postal codes in Oz, the first digit signifies the state, and neighbouring suburbs or towns generally have similar numbers, but there's no simple pattern
I don't know what it's like these days, but mail sorters working for Australia Post were expected to memorize the majority of the numbers. I once knew an ex mail sorter. You could name any suburb & she could tell you the number instantly, and vice versa.
 
is it good practice to delete answers which you have posted, but then someone comes up with a much better answer, and you answer is just a subset of what was in the better answer
 
Those skills are always nuts
@DeveshKumarSingh I've done that in the past, yes
 
7:23 AM
no obligation though
@roganjosh that's the kind of thing that measurably rearranges spatial perception in the brain
 
yes, I have done that in few of my answers recently, and a lot of times other answers pop up which do a subset of what was ask in different ways, maybe all of them serve as a distraction to the few good answers
 
hello... anyone familiar with highcharts?
 
@DeveshKumarSingh indeed, but you can't really push anyone to delete their answers in such cases. It can only be autonomous and voluntary (i.e. altruistic)
 
I was talking about deleting my answer to do my part :) But yes link only/comment only answers are to be flagged and I do that
 
@roganjosh Yes. FWIW, there's an old movie about The Knowledge, which is how I learned about it.
 
7:28 AM
Then Uber comes along. I don't suppose The Knowledge will be a thing for much longer
 
is this convo related to the fact that our short-term memory can only hold 7 numbers
 
Not really. This is knowledge of 100,000 landmarks and places
 
aah, so it is a route remembering test for london taxi drivers, never heard of this, interesting, led me give that article a read, and true, with google maps/uber these things might no longer be valid
 
These days I usually run google maps even when I know exactly where I'm going to get to work. Traffic gets ridiculous these days and The Knowledge cannot really compete with a crash or something, so it's basically always inferior even if a tremendous skill
 
yes, behind the scenes there are a host of satellites, computers, real time gps data going on to get all that information, compare that to our brain and eyes, which can only do so much
 
7:36 AM
@DeveshKumarSingh IMHO, if the answer is technically correct, there's no reason for it to be deleted. A little bit of repetition can be a good thing. OTOH, if someone answers an old question that's a subset of an existing answer, it's fine to post a comment asking why they posted it. If it's your own answer that was posted in good faith around the same time as a superior answer, you can add something like, "For further details, see the answer by blah-blah".
 
@PM2Ring to your last point, that superior answerer other poster sometimes downvotes your answer too, so are the other posters, has happened to me once in the past
 
@DeveshKumarSingh Yes, it happens, but it's pretty rare that good answerers indulge in such unsporting behaviour. And it's unusual to be able to prove who a downvoter is, apart from situations like you described the other day, where you deleted & undeleted your answer. FWIW, there's a Sportsmanship badge that you get by upvoting other answers to questions you've answered.
Remember, even if your code works, people may still downvote it if they think you use poor coding techniques. Or if they think you don't have an adequate explanation for your code, eg "Try this:" followed by a code dump. Or if they think your explanation is confusing.
 
cbg,
feedback on https://gist.github.com/mayurbhangale/e90497732f09604edc134a0fd78deeb6
?

I'm trying to get rid of loops. `dishes` is a pandas dataframe. Help?
Its creating a huge dictionary which will be streamed into kafka
 
It's difficult for me to visualise what that code does without sample data
 
Given the number of dishes and res_ids I have, my code takes long to run.
Adding sample data to gist
 
7:48 AM
@PM2Ring yes, I do upvote the question I answered, and yes they are rare instances, I was thinking of confronting that user, but then thought otherwise, and yes, I think I am past the phase of Try this, and code dump but yes confusing or inadequate explanations pointed out by comments a lot of times, which helps improve the answer and the answerer
 
If someone posts ok code, but their explanation is confusing because of poor English, I'll sometimes edit it to fix the grammar. But if it looks like they don't really understand what they're talking about, I'll post a comment to try to educate them. Sometimes they respond & fix their answer, sometimes they just delete it.
 
that's a good way to bring up people who want to stay longer on SO :)
 
@DeveshKumarSingh You get Sportsmanship by upvoting other answers that compete with your positive scored answer.
 
damn, guess I didn't read the memo, I anyways do that as well :)
 
That seems quite a lofty goal for just a silver badge
 
7:54 AM
you mean upvoting other answers?
 
@roganjosh Yeah, I reckon it should be gold. And you should be able to get it multiple times.
 
@DeveshKumarSingh I mean upvoting 100 answers to questions that you've also answered
 
But I must admit that going for that badge did establish a pattern of me upvoting other answers, although I don't do it quite as much now as I did when going for the badge. ;)
 
well you can always comment, hey your approach is awesome +1, and then you get a +1 back, but I think that's frowned upon
 
Then again, an 800 rep user has the badge. Angular is maybe a different arena to Python or they were really going some on the upvotes
 
8:11 AM
@DeveshKumarSingh Yes, +1 and -1 in comments is discouraged, and IIRC, the system won't even let you post comments that start with +1 or -1.
 
@DeveshKumarSingh needless to say, you should only upvote good posts
@PM2Ring not even "starts", I think there have been issues of -1 being forbidden anywhere
 
@AndrasDeak That'd make it tricky if you need to put -1 in an inline code snippet.
 
I went and over-engineered the Riddles page. Thoughts?
 
so it is at the start, but some characters get stripped when checking
@Aran-Fey Fancy. The new design is slightly unintuitive to me but if you read just a bit it's obvious how to use it, and it works both on desktop and mobile.
@Kevin is the main authority here ^
 
The main problem is that it's a nightmare to write all the HTML
 
8:44 AM
Markup doesn't work inside HTML tags, so you have to format everything by manually creating the corresponding HTML tags. E.g. you have to write <code>x = 3</code> instead of `x = 3`
 
@roganjosh added sample in comment
 
Interesting: chat.stackoverflow.com/rooms/pingable/6 I didn't know that those "pingable" links existed.
3
 
@MayurBhangale That throws an exception. You rename your column in g = g.rename(columns={"final_score": "relevanceScore"}) and then later do relevanceScore = np.average(g.final_score, weights=g.frequency)
 
@PM2Ring oh, me neither, neat!
 
@roganjosh my bad. updated
 
8:56 AM
Anyway, it's a simple enough fix, but it only gives me a single record
 
Adding more
 
Nevermind, that was then an indentation error on return. Right, now I can see what output you want
 
great
 
@AndrasDeak I just saw it in The h Bar. I don't know how useful it is, some of those names aren't familiar.
 
@MayurBhangale You're not going to escape a for loop to build that structure, and since you need to groupby what I assume is restaurant id, things are complicated further so you can't neatly do an apply I don't think either
 
9:07 AM
@roganjosh No problem, Thanks!
 
Morning all o/
 
cbg
 
10:07 AM
hey
 
hello
 
what are ur view on django
 
In terms of what, exactly?
 
it is good than flask
 
oh boy :P
both are good. but which one is better is an entirely subjective question
 
10:12 AM
Paritosh is correct <slowly puts banner back in the box>
 
haha, it's okay, you can wave that banner around. and i sure hope its <redacted> :P
try both, see what you like more perhaps. they have their differences, "one suite for everything" is django's take, while flask goes for a more minimalist approach. See which one you prefer.
 
is there better way to do this code
list1=[]
for discuss in query:
list1.append('<h1>',discuss.msg,'</h1>')
 
We are allied in redacted
 
@HuzaifSayyed a list comprehension is more compact and elegant but somewhat harder to read, especially if the composition is nontrivial (which of course it isn't here)
 
@ParitoshSingh i am working on django now and it is so far one
 
10:14 AM
list1 = ['<h1>{0}</h1>'.format(discuss.msg) for discuss in query]
 
@HuzaifSayyed probably a couple ways. If you are using a tool/web framework, you can use templating to create the html, and shouldn't have to do it in python itself. Also, in this case you can also use a list comp to do the same thing.
 
and of course this avoids TypeError: append() takes exactly one argument (3 given)
but I guess you meant something like the .format() in my refactoring
 
@tripleee great man i got
 
Hi again everyone
 
hello
 
10:18 AM
what is the reason of this group what type of discussion can we do here
 
I have a pandas dataframe having a column called 'qualify'
It has values of levels 'yes' or 'no'
I want to convert all those yes or no to True or False respectively
I tried this
a['qualify'] = a['qualify'].map({'yes':True, 'no':False})
 
@HuzaifSayyed The rules are here. Mostly it's related to Python but in quieter periods all sorts of things are discussed if we think they are of interest to others
 
This chatroom? oh people just end up here accidentally when they have actual work to do, but end up procrastinating.
 
lol
 
@RaphX did it not work? If not, in what way?
 
10:20 AM
Its throwing a KeyError
eyError                                  Traceback (most recent call last)
<ipython-input-19-3aceccd6487a> in <module>
----> 1 a['qualify'] = a['qualify'].map({'yes':True, 'no':False})

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\series.py in __getitem__(self, key)
    866         key = com.apply_if_callable(key, self)
    867         try:
--> 868             result = self.index.get_value(self, key)
    869
    870             if not is_scalar(result):

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_value(self, series, key)
 
for datascience python might be easy compared to r. But what about performance
 
@RaphX That means that you don't have a column named qualify
 
There is
Wait I think I got it
I ran only this cell but there is a cell containing the dataframe details
 
@HuzaifSayyed Pure python is not so good for data science, but the core libraries like numpy and pandas are used, which can, in many cases, run in optimised C code
 
Is that why its throwing an error? I am using Jupyter Noteboo,
*Notebook
 
10:24 AM
I don't know really how Jupyter manages its namespace so I couldn't say. Since it's backed by ipython I would assume that names are shared between cells but that's just a hunch
Clearly the df is being recognised, but it doesn't have qualify as a column for whatever reason
 
It worked when I clumped them together in a single cell
 
@RaphX note that you can edit messages for up to 2 minutes. Hovering on the left side of the message gives a dropdown icon and clicking that will give you the edit option
 
jupyter notebooks share namespaces across cells. (atleast out of the box)
 
Yeah I did it out of habit @roganjosh
import numpy as np
import pandas as pd
exam_data = {'name': ['Anastasia', 'Dima', 'Katherine', 'James', 'Emily', 'Michael', 'Matthew', 'Laura', 'Kevin', 'Jonas'],
'score': [12.5, 9, 16.5, np.nan, 9, 20, 14.5, np.nan, 8, 19],
'attempts': [1, 3, 2, 3, 2, 3, 1, 1, 2, 1],
'qualify': ['yes', 'no', 'yes', 'no', 'no', 'yes', 'yes', 'no', 'no', 'yes']}
labels = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
a = pd.DataFrame(exam_data)
a['qualify'] = a['qualify'].map({'yes':True, 'no':False})
I don't know then
The last line was in a separate cell when it threw an error
 
kill kernel/restart and then try again across multiple cells perhaps?
 
10:31 AM
Separately, for binary choices like that, you want a['qualify'] = np.where(a['qualify'] == 'yes', True, False)
map runs in a python loop but np.where is vectorized so will be significantly faster (if you had more data)
 
10:45 AM
@PM2Ring definitely useful because even unknown names are indeed pingable.
just not useful for "who are regulars" or whatever :P
 
@AndrasDeak Ok. I wonder why those unknown names are pingable.
 
they are here or were here in the last week or so
if you ever post in a room then pingability restarts even if you just pop in to lurk for a second
odds are all of those unknown names are either here right now or have an old message here and were here recently
 
Thanks @roganjosh
 
@AndrasDeak Ah. That explains it. I thought you had to actually post, not just lurk.
 
"Thelurker Lurker" and "hitter" give a slightly ominous feel about the list
 
10:56 AM
hitter talked here a few days ago
then again so did Thelurker
 
mmm, textbook lurker mistake
 
Yeah, I'd say there has been a pattern of transgression of lurking since then :)
 
my premeditated lurking was foiled
 
11:36 AM
So I'm thinking of using Authlib (with flask), but all examples uses functions in authlib.flask.oauth2.sqla, Now I'm suspecting there's some kind of way avoid using sqlalchemy (to write your own create_query_client_func etc...) however I find absolutely NO documentation about it
I already have a database and I would like to use that with my own functions etc
 
no, authlib (authlib.org)
 
The oauth part of authlib that you just italicised in your prior message?
 
The code they're talking about is here
 
ahaa
great thanks
 
11:43 AM
I don't know the library but it looks heavily tied to SQLAlchemy
 
Hence my linking to the oauth docs
 
you mean that I'm thinking of using the authlib but I'm actually only interested in the oauth.net/2 stuff?
or is that not a python lib at all?
 
Well, if you're wanting to use a library that looks intertwined with SQLAlchemy, but don't want to use SQLAlchemy, then you should look somewhere else for that functionality.
Not saying that there isn't another python lib, but since I rarely (if ever) have to implement oauth, I'm definitely not the right person to give another recommendation
 
does anyone know a dupe for "convert List[str] to List[float]"? stackoverflow.com/questions/56237046/…
 
ugh, there have to be a dozen dupes
 
11:54 AM
I am having a hard time lately finding dupes for such obvious questions :/
 
yours is more precise
let's use both
 
Markus - why don't you want to use SQLAlchemy?
 
We already have quite a large databaselayer, so it will be like I have two layers, and also, should I go towards the same database etc?
 
Well, you can map SQLAlchemy to an existing database
But by the sounds of it - that's not really your main issue with it. What's your existing database layer software? Proprietiary?
 

« first day (3139 days earlier)      last day (1800 days later) »