Skip to content

Instantly share code, notes, and snippets.

View NiklasBeierl's full-sized avatar
🚲

NiklasBeierl

🚲
View GitHub Profile
@NiklasBeierl
NiklasBeierl / multiprocessed_tqdm.md
Last active March 29, 2023 11:14
Usefull progress observation on a multiprocessing pool with tqdm.

About

I wanted to observe the overall and per work-package progress on a python process pool which executes a large set of long-ish running tasks. It turns out that there are some issues in our beloved progressbar library - tqdm - that cause multiprocessed use-cases to mess up your terminal pretty badly.

There seems to be ongoing discussion about the problem here: tqdm/tqdm#1000 In the meantime, I created the workaround below.

My Usecase

@NiklasBeierl
NiklasBeierl / Fixed-tabs-chromium-profile.md
Last active March 10, 2023 21:27
Keep making a mess of your tabs and accidentally closing your messengers? I might have a solution for you!

Motivation

There are a bunch of web apps that I generally like to keep open when working on my computer. Mostly messengers: Slack, multiple instances of mattermost, etc. But I usually make a mess of my browser windows and tabs, so I end up opening these apps multiple times or accidentally closing them. This is my attempt to nudge me back to sanity.

Goals:

  • Open all my important apps in a single chromium window with a single click
  • Prevent me from accidentally closing any of these apps
  • Prevent me from cluttering up this window