138 karma · joined June 26, 2019
Also, the authorities don't care about people voting confidently at all, quite the opposite.
It's mandated by law though to list candidates' previous names if changed, which is done in this case. But you have to be aware of this spoiler strategy to notice, which most people aren't.
Hammerspoon is just an automation tool for Mac, you can do a lot of things with it, including moving windows around and a lot of other stuff (just look at the docs to get a feel). I use it as an app switcher: I found that it's more efficient to do "show me Slack" or "show me VSCode" than "move to workspace 3 where VSCode should be". I don't use workspaces at all nowadays. So, with the help of Karabiner, I mapped my most-used apps to combinations like "caps+g" for Google Chrome, "caps+s" for Slack, "caps+c" for VSCode etc. And for cycling through windows of the same app, there's a built-in cmd-` on MacOS.
I went through exactly the same experience after trying i3. Also a Mac user. I couldn't move to Linux at the time because apps, so I did my best to recreate that experience on a Mac. Rectangle+Karabiner+Hammerspoon did the trick, and at this point I'm so used to it that when I set up my Linux desktop, I actually recreated the same shortcuts in i3 vs. the default i3 config.
So I would say if you _have to_ stay on a Mac, there are ways to customise and tinker too, with the end result much better than you expect.
import sys
file = sys.argv[1]
instead of call to input()You could probably do:
if len(sys.argv) > 1:
file = sys.argv[1]
else:
file = input(...)This is a small script made to do one thing: take an SQL query from the clipboard and output a CSV file with results.
As a data analyst, part of my job was sending results of ad-hoc queries to a bunch of people on slack. The data warehouse was quite slow, so I had to:
- write a query in DataGrip (or any SQL client)
- execute it
- wait for results
- remember that there was a request for data
- save the results to CSV file (with my mouse)
- send it to the person on Slack who asked for it
With many requests per day, many of them concurrent, this was a problem.
With this tool, I just had to write a query, make sure it works, copy it to clipboard and execute:
vertica-query-paste | slackcat --channel some.person
and not worry about remembering to send it afterwards.I also had an alias in my shell set to
vqp=vertica-query-paste | pv -l
and a bunch of shortcuts for slackcat for people that most often asked for ad-hoc query results.It works with Vertica, but can be generalized to any DB engine that has a CLI client.
Really simple, but probably saved my many hours.
Nuclear disaster sound scary, but COVID is actually objectively scarier.
(Not sure which way you meant the comparison goes)
Not saying I'm not desensitized to fake on-screen violence (I eat comfortably watching The Walking Dead), I just think horror being scary has nothing to do with violence being scary.
The first part we'll never know, but he really has no security and it is known that he's always the only tenant of his hotel room. Might have come into his room in the morning and sprayed them with Novichok while he was showering.
Anything mildly "interesting" being sold through such a program would be high treason. How do you know this "Russian website" isn't actually a CIA honeypot? Or maybe it's not a honeypot, but instead of paying you 250K you just die of heart attack in a couple of months? Or they sell your identity back to your govt. as part of some unrelated game.
Bad business.
Same with touch typing: you don't need the speed, you need to eliminate the distraction of looking for a key.
Even when you're debugging/reading code, you're still making small changes: adding a print here, removing an argument there. I read somewhere that the main insight behind creating vim was that you spend more time moving your cursor and parts of code around than you spend writing new code. So that's what it optimises for.
And obviously they are both missing vim bindings, which I would LOVE to see.
I'm not even remotely related to biotech stuff, but I'm considering moving there in a couple of years just because it's the most important problem I could possibly be working on.
EDIT: "There" is the ecosystem around Aubrey de Grey (whatever you think of him personally).
You could create a local search index built around your browser history. Then you could create a digital fingerprint-profile around it (still local). And then query other people's histories, that are similar to yours, in a DHT-address fashion.