« first day (3737 days earlier)      last day (1214 days later) » 

12:08 AM
How can I plot multiple 3d plots in the same cube?
 
Just use the same ax
 
it's overwriting the previous plot
 
It shouldn't. Again, I need to see your relevant code.
 
This discussion has been going on for at least 6 hours btw and been the predominant topic of the chat room. Is that perhaps an indicator that you need to spend some time learning the library, @Marco rather than leaning on Andras at every turn?
 
Good point. I should also be asleep but that's a different issue :P
 
12:14 AM
@roganjosh my question was to everyone
was addressed*
 
@AndrasDeak I know your weak points. I know you'll get drawn into these discussions :)
 
for i in range(1024):
    dataset[i] = 1

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

ax.scatter(xvardatasetcml1, yvardatasetcml1, dataset, c='red', label = 'Variance')
ax.scatter(xassimdatasetcml1, yassimetriadatasetcml1, dataset, c='blue', label = 'Skewness')
ax.scatter(xcurtdatasetcml1, ycurtdatasetcml1, dataset, c='green', label = 'Kurtosis')

for i in range(1024):
    dataset[i] = 2

ax.scatter(xvardatasetcml1, yvardatasetcml1*100, dataset, c='red', label = 'Variance')
ax.scatter(xassimdatasetcml1, yassimetriadatasetcml1*100, dataset, c='blue', label = 'Skewness')
 
@Marco but it's not, really, because Andras is our resident expert. But that's irrelevant to the point I'm making; you're constantly asking the room with your problems. are you researching these issues yourself?
 
@roganjosh yes, I am researching
 
You're a speedy reader, then
 
12:17 AM
Ok
 
Please take some time to research this issue yourself instead of coming to the room with every single error/issue you hit.
 
@roganjosh I'm awake because I'm grinding out some scheduled jobs on the side. Since I'm still awake I help here :P
 
@roganjosh Yes, I am taking some time to research this issue myself before coming to the room
 
@Marco No you aren't. It takes hours to research a library properly
 
@roganjosh think whatever you want. You are welcome.
 
12:20 AM
lol
 
Thanks
 
@AndrasDeak thanks.
@roganjosh You are always welcome.
 
roganjosh you lucky dog
 
@AndrasDeak why did you removed your code?
 
because it's getting late and I should go to sleep
 
12:24 AM
Right
 
@AndrasDeak I think I can wangle a footnote recognition somewhere... night mate :)
 
I'm not going anywhere :D
 
<facepalm> "I should also be asleep" was translated badly in my brain, sorry
 
I'm getting done with the jobs though
 
1:08 AM
cbg
 
 
7 hours later…
7:46 AM
cbg-ning
 
7:58 AM
Cbg.
 
 
4 hours later…
11:52 AM
@A.Man =does anyone knows?
 
 
2 hours later…
1:47 PM
This room's conversation is becoming a little obscure lately.
 
Uh oh -- <Error getting traceback - traceback.print_exception() failed
My tools are broken because I have broken my tools with my tools
 
Laurel.
 
;_;
 
Anyone notice that there is an error in the else statements while debugging in the pycharm platform
 
1:51 PM
Does anyone have any suggestions on a python package that I should read up on, and possibly try to learn? Any packages that you, at one point found to be interesting, and maybe want to share the name of the package?
 
The error is that else statements do not work as they suppose to be
 
99% of the time when you think the IDE is running your code wrong, it's a false alarm
"else blocks are broken" is especially something that no competent IDE developer would let slip through testing
 
@Kevin I pretty agreed with you but then I checked it. I had an if elif else statement series and debug does not look into the else statements even though it should be. Then I include all the necessary things in the if statement and there it is. Maybe I am a noob for this but I still cant solved it. I am not trying to play blame game but this was weird
 
Well if you provide an MCVE I'll be happy to fire up my own copy of pycharm and try it out
 
@Kevin A victim of your own failure!
 
1:57 PM
I changed one seemingly unrelated line and now I am getting a traceback, but my log file disappeared.
 
@Alper The best thing to do is report it as an issue to JetBrains support. They're paid to tell you why you're wrong, so perhaps you'll believe them. My own team of PyCharm-using Python programmers would have noticed such an egregious error and possibly started using some other product.
@Kevin Whatever you're doing is clearly more than somewhat hairy.
 
I'm trying to register my script as a Windows service. My guess is that my code is running in an environment that doesn't have a stdout
 
@holdenweb This problem seems really silly to me too so I am thinking that it is my own fault lol, I would make an personal investigation on this matter, for the 3rd time
 
Why the exception can sometimes bubble up into the normal stdout-allowed console, and sometimes it can't, is still murky to me
 
@Alper If you approach it as "what am I not understanding" rather than "what's wrong with PyCharm" you might make more progress. It's usually NOT the tool.
 
2:01 PM
@holdenweb Aye aye captain
 
It sounds like you might be expecting the conditions in every elif to be evaluated. Python stops at the first one that's true, if that adds any light to the darkness.
 
It checks every if elif on its path, after that it checks last else and won't go in it and continue its journey
 
I continue to patiently wait for an MCVE
No point in describing your code in incrementally greater detail when you can just give us the entire code and be done with it
 
2:17 PM
Bah, print("\a") doesn't work unless I open a console... Maybe I can use win32's MessageBeep
 
@Kevin the bug needs a fighting chance
My crystal ball says it looks like elif a or b in c:
 
I'll wager a quatloo on if a != 23 or a != 42:
 
@Kevin Simply insist all users attach a 2003 USB audio dongle to allow notifications.
 
Although that assumes that debugging is a red herring. Unless there's state modified by being debugged, but that would be atrocious.
 
Ok, the service works perfectly in debug mode... Now to deploy it... It's started up... And, nothing is happening.
 
2:26 PM
morning cabbages, folks!
 
cbg, bugrit
 
what happened?
 
If this is a Windows service, maybe the debug process pumps events while the production code has to pump them for itself? Random stab in the dark (quieter than a shot in the dark).
 
Nothing necessarily needs to happen for one to bugrit. One may bugrit the universe at large
 
@inspectorG4dget I briefly assumed my Foul Ole Ron persona.
Instant star from me.
 
2:35 PM
oooh! sounds like an interesting time... what did our good friend FOR get up to?
 
"event pump weirdness" is more plausible than my existing theory of "the service is running as desired, inside the sandbox where no light or sound can escape"
I looked carefully at the documentation and there's no "actually let the service do stuff" flag
 
You, I'll believe.
I said "brief". It lasted as long as it took to greet you. That is the sum total of my recent Foule Ole Ronness so help me Terry.
 
2:50 PM
dang! Today's gonna be an interesting day
 
cbg all, does it make sense to have a default value for a timestamp in a sqlite db? if so should I go with something like 1-1-1950 (some old date) or 31-12-2099 or any long future date?
 
I spent the morning writing handover notes for my current role. Now I'm procrastinating before starting to define my new one ...
@python_user The only sensible default, I'd have thought, was NULL
(premature newlijne, soz)
 
thank you holdenweb, I will go with NULL then
 
If you're defining an API for your records then the save function/method could put datetime.datetime.now()in the records before it wrote them (i.e. a dynamically computed default).
If you're using raw SQL that might be less easy.
 
I did consider using CURRENT_DATE in the sqlite syntax for now
 
3:00 PM
That works.
 
now is better than NULL?
 
not holden, but I bet the answer to that is "depends"
 
context : set some default date for a number of rows in a db, then use an api to get dates for each row, there are chances when the api wont give a date for a row in which case my default will come, does this help? ("an api" is something I use to get dates)
 
In which case I refer you to @Arne
 
Lazy solution: make the date mandatory in the api
 
3:04 PM
Basically your question boils down (?) to "what should I do about missing dates"? If you are accounting, that is very different to when you are checking someone's calendar for appointments.
 
yes, you could tell it way you phrase it
I will go with NULL, at least by NULL I know the api didnt return a date, which wont be possible if I use datetime.datetime.now()
 
So a little more context might get you some useful advice. Too much more context probably wouldn't :P
 
the date returned by the api can be today, which is why I wanted to settle down for "some old date" or "some future date"
 
Definitely if you want to know there was no data, that's exactly what NULL (which becomes None in Python, or should) is for.
 
I didnt know default values for a timestamp can be NULL, something I learnt, thanks for your help guys
now that I think of it its just a default value, but idk why it didnt occur to me
 
3:08 PM
That way there's absolutely no possibility of confusion, and a search for rows with a given date will always exclude those with NULL, which must be specially selected with IS NULL in a WHERE condition.
 
yeah then I will be using IS NULL to filter out the rows with no results (from api), thanks again
 
Hello all. Does anyone know of a Python development platform, in the cloud, like Google Colab, that allows me to process code without time limit (I would need process code for days)? Google Colab allows me to process for up to 12 hours only.
Preferably that has GPU / TPU.
And if possible, it would be preferable that it be free.
 
not an alternative, but you can always save your model with checkpoints and resume training
not as efficient as running for days but it is doable with colab
 
@python_user interesting.
 
tensorflow.org/api_docs/python/tf/keras/callbacks/… may help, I only know of this and I have saved models a long time back
 
3:21 PM
@python_user can this be used even if my code doesn't use Keras processing?
 
idk, I used TensorFlow for a course work and I used this to save models, I cant help you more with this, apologies
if you are using some other framework see if the models can be saved, they may call it something else instead of checkpoint
 
Hi. is there anyone here who can advise about pytest issue?
 
@python_user ok, thanks.
 
@arielma Ask your question directly. Avoid asking if it's okay to ask, or if anyone knows about a topic. -- the rules
 
3:36 PM
ok
`
import dataikuapi
import pytest

def setup_list():
    client = dataikuapi.DSSClient("https://XXXX", "YYYYYY")
    client._session.verify = False
    project = client.get_project("ZZZZZZZZZ")
    scenarios = project.list_scenarios()
    scenarios_filter = [obj for obj in scenarios if obj["name"].startswith("TEST")]
    return scenarios_filter

@pytest.mark.parametrize("scenario", setup_list())
def test_scenario_run(scenario, params):
    client = dataikuapi.DSSClient(params['host'], params['api'])
the params gets its value from the JenkinsFile, but how can I use it for the setup_list function?

currently it's working only hard coded
the params gets its value from the JenkinsFile, but how can I use it for the setup_list function?

currently it's working only hard coded
any idea?
 
"The params"? "
You mean params is a fixture?
 
3:54 PM
correct
 
And you want Jenkins to provide values for params?
 
I'm able to do so
but only the def test_scenario_run is able to get it
how I can make the function def test_scenario_run also to use it?
 
4:08 PM
Is the params fixture decorated with @pytest.fixture? That should mean its name is recognised as a test function argument. docs.pytest.org/en/stable/…
If you add the same decorator to setup_list you can remove the parametrize decorator on test_scenario_run (and I believe it's correct to say that fixtures can have fixtures as arguments, so you could also simply add params as an argument to setup_list).
 
not sure I understood, how can I use it for test_scenario_run later/
 
With regex, i would like to search any character after every number made of 8 or 9 digits .... I'm trying with this (?<=\d{8,9}).* but doesn't work.
 
Hi everyone!
Recently I found an interesting syntax in a question
third line of code:
df: pd.DataFrame = pd.DataFrame([['2011','A',1,2,3], blabla
I thought it is syntax error but this line does work as intended I think (just tried it in Google Colab)
is there a name for this syntax? or why would it be used rather than the simple df = pd.DataFrame([['2011' blabla version?
 
4:37 PM
Nov 18 '20 at 21:26, by roganjosh
@XCELLGUY please see our room rules. Particularly in regards to posting questions on main and linking here; you should wait at least 48 hours before doing that, if you haven't got a satisfactory answer. 30 mins is a drop in the ocean
 
5:09 PM
This seems like a useful resource for beginners to ignore :)
 
AAB
5:21 PM
Hi all,
need some help for bulk insert
I have a json as follows {"name":"xyz", arr:[]}
 
@holdenweb can you share more details on it?
 
AAB
I want to insert it into 2 tables in postgres database
table1 has primary key that is autogenerated and table 2 use the primary key for inserts
how do I bulk insert this?
 
@arielma You can read the documentation as well as I can—what is it you don't understand?
I'm happy to answer questions. I'm not happy to provide unspecified "details" whch may or may not bear on your real problem.
 
AAB
I am using the following code pastebin.com/Pv36cwH5
I am using sqlalchemy
for around 20k entries the following takes a very large amount of time.
the following shows ways for bulksave but how do I do it for 2 tables where primarykey of one which is generated is used in another?
 
@zabop that's a variable annotation, a form of type annotations.
 
AAB
5:44 PM
should i doreturn_default=true for table1 and then do a bulk save for table2?
 
6:07 PM
@holdenweb how do I add decorator to setup_list ?
 
If you look at the example I linked you to, the smtp_connection function is decorated by @pytest.fixture. Does that help?
 
what is smtp_connection.ehlo()?
ok, I think I got it
will run and update
 
6:26 PM
rb folks. have a good start of a weekend
 
6:42 PM
How can I plot a 3D scatter plot (plt.plot), instead of just show it (plt.show)?
 
6:53 PM
I mean, to show it in a proper window, so that I can enlarge the plot, save it, etc.
 
Hello
 
Why the code was removed, @roganjosh?
 
@Marco I really encourage you to create a MCVE so that there is a concrete example that people can actually run locally
 
Right, I'll do it
 
If you are able to fix a plotting problem with actual numbers then it will help others to help you. Without it, you're relying on people's speculation. I suspect the example may be somewhat larger than what should be posted in the room, so it would be good if you host it off-site and link back to the room
If you have such an example, you will be able to refer back to it as well
@IPSDSILVA hello :)
 
Ok, I'll do it
 
7:21 PM
@AAB There's no need to be using the ORM here that I can see
ORMs have a lot of overhead in that they have to create Python objects before they can execute the insert. In addition, you're doing individual inserts which will each require a call to the DB. I suggest you skip SQLA on this and use the execute_batch method from psycopg2
psycopg2 is a bit borked in executemany (which would be the go-to) execution for other database bindings in Python. I don't know why it was chosen that it should just execute individual transactions in a for loop but they at least corrected the issue with the extras extension
Oops, I actually meant execute_values from the helper methods. It would still work, but I think execute_values may be faster than execute_batch for your case
Faster-still is to use the COPY command with an in-memory file. But, I think it will be useful to get those methods working first
 
AAB
7:38 PM
@roganjosh Hi
thanks for replying I dont follow
by copy do you mean I put everything in sqlite3 database that is a clone of postgres
and then just read then entire table and do a bulk insert ?
 
See, for example, this
What is the source of the 20K values that you want to insert? It doesn't have to be a dataframe for the approach to work
data = df.values.tolist() in that example just converts the data to a nested list, which is effectively an in-memory CSV file
 
AAB
Its an array of dict
@roganjosh I use this pid from table1 in table2 for inserts
how will that work?
the pid in table2 is refers the pid in table1
 
Probably with a join
 
AAB
@roganjosh Will it work if each entry in table1 has multiple entries in table2?
 
There's not enough in your example to be able to suggest too much (but that's not your fault because you were expecting it to be in the context of the ORM and I'm suggesting dropping it if you need speed)
 
AAB
7:47 PM
@roganjosh let me just explain the data I am working with
I have a json {label1:"x", label2:"y", label3:[1,2,3,4]}
the json could have an empty label3 as well
to map this to postgres I though I will create 2 tables
table1(pid,..) table2(pid,x)
the pid in table2 makes uses of table1.
table2 can have multiple entries for each pid of table1
this is the scenario
 
@Marco your link is b0rked
 
AAB
So far I have used join in sql to retrieve results only, never do an insert
@roganjosh can you give some information on how join for insert works?
 
@Aran-Fey ok, thanks, it was something about the config of paste bin expiration code.
 
@AAB Ok, are you open to using Pandas for the data manipulation part? I naively assumed that the data originated from another query
 
AAB
@roganjosh Yes
 
7:53 PM
How can I plot a 3D scatter plot (plt.plot), instead of just show it (plt.show)?

Code snippet: https://pastebin.pl/view/bd93ed51
 
@AAB I need to think a bit now because you're talking about 2 different tables, so the foreign keys need to match up
 
I want to plot it, to show it in a proper window, so that I can enlarge the plot, save it, etc.
 
AAB
@roganjosh yes the pid generated is used in table2
I have some stupid ideas if you wanna hear them.
 
Shoot
 
AAB
I can build an insert statement like INSERT INTO table(col) VALUES (),(),(),(),()...
 
7:56 PM
Also, what is the priority here? You've complained about how slow it was with the ORM (which is fair) but how optimised does it need to be?
 
AAB
this will create an insert statement with all the values I add them to the table1
then I retrieve all values from table1 check the with entries in json if match found create another list for table2
@roganjosh the orm one time out in 30 minutes
 
Wut?
Ok, does table1 have loads of attributes from other tables?
 
AAB
@roganjosh nope just a few values from the json
I am loading values from an array of json to the 2 tables
 
30 mins.... man those nested loops must be hammering the DB
 
AAB
@roganjosh but 20k entries totoally is really small right?
what do you think about my stupid idea?
as in I use the json insert everything table1
 
8:01 PM
Exactly, which is why you probably have millions of requests going out
 
AAB
then retrieve table1 with pid, attr1
 
Yes, I think it's sensible to split into two nested lists, one with parents and one with child objects
 
AAB
I run it against the json to see if attr1 has a match then I create another list
@roganjosh cool
I though my idea was very retarded
:P
curious but why is it easy for the db to pull in 20k records at once but inserting is a pain?
 
Please set up a small example of the input and expected output as it would appear in the two tables.
@AAB because you've nested things in ORM queries. The I/O of your setup is crazy
 
AAB
@roganjosh I see but until I call commit nothing is written to disk right? till then they are cached only? or have I understood things terribly
 
8:04 PM
Expect a devops phonecall if you're testing this on a live database :P
 
AAB
I will make an example
for inserts
 
How can I plot a 3D scatter plot (plt.plot), instead of just show it (plt.show)?

Code snippet: pastebin.pl/view/bd93ed51
I want to plot it, to show it in a proper window, so that I can enlarge the plot, save it, etc.
 
AAB
@roganjosh nope just my personal project no worries here :)
 
Thanks, I'll switch laptops shortly so I can test on an actual postgres instance
Did you set any index on your tables btw?
 
AAB
nothin except the primary key
 
8:17 PM
Good enough
 
AAB
@roganjosh a bit unrelated but I find postgres and an ORM like sqlalchemy to be a bit hard to follow so am I just slow or do they have a learning curve... :/
 
Well there are major differences for a start; Python is a procedural language, SQL is declarative. That's before you get to an ORM that tries to marry the two. I wouldn't worry about being confused tbh
 
AAB
@roganjosh thanks
 
<lots of hand-waving around my "marry the two" comment>
 
About chat.stackoverflow.com/transcript/message/51326178#51326178, I just figured out the source of the problem. Because I am using the Google Colab, the window of the plot that is showed is not showed to me. Any idea how can I view this window of the plot?
 
AAB
8:49 PM
@roganjosh tried the single insert statement with all values happened in 5(could be lesser) seconds for 13k rows :|
not using orm just using psycopg2 boy that is just fast fast...
 
Using insert_values?
 
AAB
no just execute()
 
Lol, so in a loop?
 
AAB
no
 
Now we're in the right ball-park of timings :)
 
AAB
8:51 PM
like I made a single insert statement insert into table(col1,col2) values (1,2), (3,4),(5,6)
for table1 and then ran cur.execute()
@roganjosh time for table 2
 
This saves me a job for sure. I've just started faffing with it but I'm exhausted so I'm not sure how effective I will be
 
AAB
9:07 PM
@roganjosh no thanks a ton table 2 too finished
 
You're welcome. FWIW using an ORM and getting a timeout on 30 minutes for 20K records is also a silly number. I opened by telling you to drop the ORM thinking you were talking a couple of minutes tops that you wanted to drop down to faster speeds. It definitely shouldn't take SQLA so long to insert 20K records
 
AAB
this was the code for table2 inserted the 20k entries in table2 in less than 8secs
@roganjosh I am sure it was 20+ minutes
the number of rows in table1+table2 = 33k
I tried the 1 table at a time approach in SQLA
it was still very very slow
 
@AAB Even with the ORM I don't think this is a reasonable timing. Something is badly wrong in that setup, I just don't have the energy to investigate sorry
 
AAB
I use session.bulk_save_object()
 
Well you can't, because flush() still has to touch the database to get the parent id
 
AAB
9:14 PM
@roganjosh no issues thanks for your time, the database runs on a shared cpu with 1GB RAM and 25GB ssd
single core if that may be a factor
:P
 
Perhaps :) In any case, glad you got it sorted :)
 
AAB
@roganjosh have a sort of unrelated question not exactly related to python may I shoot?
 
You can shoot, I just can't guarantee that I won't move it ;)
 
AAB
no issues, well when you work on coding or anything reading related is it odd if you feel the need for some sound in the background?
as in if too quiet do you feel odd while coding working or solving some problem do you sometimes feel better if you have some sound in the background
 
I am odd, and I cannot work without music.
Does that clarify your question? :P
 
user13290519
9:18 PM
hello
 
AAB
@roganjosh thanks to be honest these past few months I am not sure I am just losing it
sorry for dumping this here
its like I just feel down and odd for no reason
 
user13290519
can anybody help me
 
AAB
lack initiative, even shower at a gap of 1-2 days
not sure if I should may be consider seeking some sort of help
 
user13290519
if have a tic tac toe game I need to add undo button
 
user13290519
I*
 
AAB
9:20 PM
@roganjosh sorry if this is odd/creepy but I just needed to get some outsiders opinion
 
@AAB all of us are struggling at the moment, in one way or another. I think the consensus is that this room should be a refuge in which we can speak objectively about the thing that joins us (Python) and other fun things. There is no need for us to discuss the crap parts, really, because we're all in the same boat, one way or another. We can't really descend into providing moral support because we're a) not trained and b) strained ourselves
In other words, I really feel your strain, but it's perhaps addressed better elsewhere
 
AAB
@roganjosh thanks hugs I just felt like venting out, I understand this is not the room, really appreciate you hearing me out though :) thanks
Good night :)
 
No worries. Good night and I hope you'll feel a bit better in the morning :)
 
AAB
@roganjosh :)
 
and you got a query down from a 30 min timeout to, what, 15 secs? That's a win in my book!
 
9:58 PM
Someone knows the source of this error, when using the mpld3 library?
/usr/local/lib/python3.6/dist-packages/mpld3/mplexporter/utils.py in get_grid_style(axis)
    261 def get_grid_style(axis):
    262     gridlines = axis.get_gridlines()
--> 263     if axis._major_tick_kw['gridOn'] and len(gridlines) > 0:
    264         color = export_color(gridlines[0].get_color())
    265         alpha = gridlines[0].get_alpha()

KeyError: 'gridOn'
Code:
 
@Marco that's starting to be too much code for chat. Please start using a code paste site.
 
Ok, just a minute
 
Observation: I can use normally the plt.show() using the matplotlib, but when I use the plt.show() using the mpld3 it gives me that error.
Here is a quick start guide to use mpld3, for anyone that does not knows this library:
pip install mpld3
import matplotlib.pyplot as plt, mpld3
plt.plot([3,1,4,1,5], 'ks-', mec='w', mew=5, ms=20)
mpld3.show()
 
Have you checked their issue tracker yet? And whether your version of matplotlib is compatible with their library? (Which should always be the case but perhaps they are sloppy with requirements)
 
10:13 PM
and yes, I tried it with mpld3.show () too, in another example I found it says that I can directly use plt.show ()
@AndrasDeak I am importing the libraries from the Google Colab
The way my code shows
@AndrasDeak yes, the problem is in the plt.show()
@KeyError                                  Traceback (most recent call last)
<ipython-input-4-427b94278f86> in <module>()
     44
     45 ax.legend()
---> 46 mpld3.show()
 
No, the problem is not in the plt.show
@Marco so what?
 
Ok, I just showed using the pld3.show()
With the plt.show() is the following error:
KeyError                                  Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/IPython/core/formatters.py in __call__(self, obj)
    332                 pass
    333             else:
--> 334                 return printer(obj)
    335             # Finally look for special method names
    336             method = get_real_method(obj, self.print_method)
The first issue, of course
The last two issues:
/usr/local/lib/python3.6/dist-packages/mpld3/mplexporter/utils.py in get_axis_properties(axis)
    251
    252     # Get associated grid
--> 253     props['grid'] = get_grid_style(axis)
    254
    255     # get axis visibility

/usr/local/lib/python3.6/dist-packages/mpld3/mplexporter/utils.py in get_grid_style(axis)
    261 def get_grid_style(axis):
    262     gridlines = axis.get_gridlines()
--> 263     if axis._major_tick_kw['gridOn'] and len(gridlines) > 0:
    264         color = export_color(gridlines[0].get_color())
@AndrasDeak I did not understand what you said.
 
10:33 PM
There should be a PEP that prevents name aliasing with pdb commands. For example, don't have variables named "p" or "h" :-)
 
@Mikhail are you talking about my code?
 
@Marco no. Which part of it looks like they're talking about your code?
@Mikhail well even print can go wrong ah, no, I misremembered. I remembered list.
 
Yeah "pdb list" could be "pdb lines"
 
11:00 PM
@AndrasDeak why are you angry for nothing? I just asked him. The imediate previous text from chat was mine. That's why I asked him. There is no reason to be intimidating like that.
 
@Marco what part of Andras' comment suggests that he is angry with you?
 
@roganjosh At the very least it is being intimidating.
 
It's not unreasonable to have your assumptions questioned. If that can't happen, then nothing moves forward and nobody learns
 
It seems that because you own the room, you think you can talk to others uneducated. I don't know what the reason is.
 
Ok, there's a lot to unpack in that comment
 
11:05 PM
@Marco It wasn't intimidating. It might be read as condescending, and I apologize for that, I didn't mean to come across as that. I was merely trying to figure out why you think that the message which has nothing to do with your problem might have something to do with your problem.
Uneducated and unknowledgeable is fine. Not making an effort to improve is not fine.
 
@AndrasDeak OK
(Uneducated and unknowledgeable is fine. Not making an effort to improve is not fine.) What?
 
What?
 
your text was unintelligible, but forget it.
 
I'm sorry to hear that.
 
11:58 PM
Anyone here happen to be familiar with Networkx? I was having trouble understanding how its HITS algorithm works on undirected graphs and was trying to figure out whether to post a question on it or ask here in chat.
So, I ran the HITS algorithm on an undirected graph. Obviously, the hubness and authority equal each other; I understand why that is. I was having trouble understanding their relationship to the node degree, though.
 

« first day (3737 days earlier)      last day (1214 days later) »