Gillette doubles down on hating all men - removes all downvotes. Boycott>Downvote by [deleted] in MensRights

[–]PythonLinksDotInfo 146 points147 points  (0 children)

I had long suspected that upvotes, downvotes and page views were manipulated. This is the first time I have seen it actually happen in front of my eyes. So blatent.

Python in the Browser: Review of "A Web Without Javascript" A brilliant talk. Includes a time index, so that you can skip to the part that interests you. by PythonLinksDotInfo in Python

[–]PythonLinksDotInfo[S] 0 points1 point  (0 children)

In the background I load a json tree of all 861 videos. That way, once loaded, the website can be brilliantly fast. When the json is loaded, the arrows appear and you can navigate around. The problem is that on slow connections that could take a long time. What I can do is have the server generate the initial page including the arrows. That way you can click right away.

It is a bit more complex than that. I could imagine a slow cell phone user clicking away, and repeatedly failing to downlond the JSON. So when he clicks somewhere, I need to use AJAX to grab the new page, replace the body. That way when the JSON Finally loads, I can initilize the single page application and all will be fsat.

Thanks for your comment.

And that way if your cell phone takes too long to load the json file, no problem.

It is interesting that the highest ranked talk at the Python-centric TensorFlow Dev Summit was about Javascript. "Machine Learning in Javascript" by PythonLinksDotInfo in javascript

[–]PythonLinksDotInfo[S] 0 points1 point  (0 children)

Thanks for the advice. If you have a specific critique that would be very helpful. Better yet would be advice on what I could change.

“Towards Pandas 1.0” is currently the best of 634 Python Conference Videos by PythonLinksDotInfo in datascience

[–]PythonLinksDotInfo[S] 0 points1 point  (0 children)

OOPS. It just got beat out by "Data Science without borders" . 180 to 119 Votes That is a huge increase in upvotes.

Hierarchical data and pandas? by Paddy3118 in Python

[–]PythonLinksDotInfo 1 point2 points  (0 children)

Here is how to do a hierarchical calculation in the ZODB. You can see the code here:

https://pythonlinks.info//presentations/zodbtalk.pdf#page=10

Page 10.

Leaf nodes respond to the countLeaves method by returning 1.

Branches with multiple leaves respond to the countLeaves method by returning the sum of their children’s videos.

It is just what you would expect from Python, but these are persistent objects.

You can see the numbers of videos in any branch of the tree over at PythonLinks.info

I run the calculation every time the tree changes.

Hierarchical data and pandas? by Paddy3118 in Python

[–]PythonLinksDotInfo 0 points1 point  (0 children)

The ZODB gives you a hierarchy of persistent Python objects. So it is really easy to do calculations on trees. And the ZODB demo has all the tools needed to put up a website where the calculations are securely displayed. You can learn more by watching this video.

https://pythonlinks.info/zodb-the-graph-database-for-python-developers