Code Read Through: TQDM

We begin with this:

# an explicit index of the packages for 'import *'
__all__ = ['tqdm', 'trange']

Here's a list of sub-functions:

  • format_interval()
  • format_meter()
  • StatusPrinter.print_status()
  • tqdm()

Notes: The default file is sys.stderr, this is overwritable The StatusPrinter manually flushes Actual loading bar creation occurs in format_meter There's a limiting feature …

more ...

Hunt's Concurrent Heap-based Priority Queue

Remember, this is just a collection of thoughts.

These research papers skim through fundamental computer science topics fairly quickly. Look at this terse summary:

A heap is a binary tree with a property that the key at any node has higher priority than the keys at its children (if they …

more ...

The Enchiridion by Epictetus

According to Wikipedia:

Although the content is similar to the Discourses of Epictetus, it is not a summary of the Discourses but rather a compilation of practical precepts. Eschewing metaphysics, Arrian focused his attention on Epictetus's work applying philosophy in daily life.

So, chapter 1 says:

Some things are in …

more ...

Explain the Filter Lock

The Art of Multiprocess Programming is great, but occasionally you find an explanation which is needlessly complex. I hope this clarifies things Use this graphic alongside the code to better understand the filter lock. If you have any questions or are confused, feel free to reach out to me.

First …

more ...

What does Montjoie mean?

In the Song of Roland I ran into a battle cry which escaped translation. The italics are not mine.

He saw the miscreant stretched on earth:

"Caitiff, thy threats are of little worth.

On, Franks! the felons before us fall;

Montjoie!" 'Tis the Emperor's battle-call.

And again

"Well fought," said …

more ...

Falcon: How to do Long Running Requests?

Someone posed a question on the falcon mailing list the other day. They asked "How do I handle a long running-request > 15 minutes, but ensure termination when the client kills the http connection?"

The response was: Don't

Instead of having the client wait on one request for the 15 minute …

more ...

Quadrant Z, Rules

Late thursday night I discovered Quadrant Z, an elaborate "paper and pencil game of galactic warfare." Against a buzzing background of midnight frogs and palmetto bugs I leaned forward in my chair and emptied the last dregs of coffee from my long since cooled mug. The rules can be difficult …

more ...



Essays in Idleness by Kenko

1283-1350 Japan. Imperial Court. Poet. Buddhist monk in 1324.

He developed the Japanese aesthetic: beauty is indissolubly bound to its perishability. He wrote, "If man were never to fade away like the dews of Adashino, never to vanish like the smoke over Toribeyama, but lingered on forever in this world …

more ...