Readit News logoReadit News
chamoda commented on Ask HN: What trick of the trade took you too long to learn?    · Posted by u/unsupp0rted
muzani · 20 days ago
Get a screenshot app. Shottr is awesome. CMD+SHIFT+CTRL+4 and I can take a picture. Paste UI on a GitHub PR. Paste Figma into a LLM. Paste bugs into Slack or a support tool. It does text recognition too, so whenever my wife sends me some kind of ID via a screenshot, I can just copy from that.
chamoda · 20 days ago
For anyone interested, here’s how I achieve the same in i3wm: it works with the Print key and lets you select the area using only CLI tools.

bindsym --release Print exec "scrot -s '%Y:%m:%d:%H:%M:%S.png' -e 'xclip -selection clipboard -t image/png -i $f && mv $f ~/Pictures'"

chamoda commented on How to Run Python in Production   ashishb.net/programming/p... · Posted by u/ashishb
ashishb · 4 months ago
> it’s easy to accidentally block the event loop.

Can you share a scenario where this would happen?

I have deployed multiple machine learning and data analytics-focused web services, and this has never happened to me.

chamoda · 4 months ago
Well, you can even block event loop in `async def` if you are not careful. When you are using `async def` you need to do all your IO (disk, network) operations asynchronously or your are blocking the event loop.

u/chamoda

KarmaCake day501November 7, 2013
About
hello (at) chamoda.com.
View Original