Programs that have saved Hacker News 100+ hours by automating repetitive tasks
danielsada.tech
danielsada.tech
When the time of year came, you'd be put into a group. Groups would be staggered across a series of days so as not to overwhelm the system. Very early on your group's morning (like 5am I think?), the floodgates would open and it was a mad (online) dash to grab slots so that you could hopefully get good times (avoiding 8am's, etc, or at least getting the credits you needed!). This all happened through a web portal, and in a matter of minutes you could miss your chance for some of the more popular classes. It was like trying to buy a PS5.
To go more quickly, you could type in an exact course number instead of browsing through the listings. So people would look up the numbers for the courses they wanted ahead of time (as well as for some backups, in case one or two of them filled up).
Well, I learned about AutoHotKey from another student. I hardcoded each of my F-keys to type in the course IDs on my list so I could fill them out rapidly, and was fairly successful getting the classes I wanted :)
If there is a 3PM class and an 8AM class, 90%+ of your people are going to sign up for the 3PM class (commuting students might not if they can use the early classes to pile all their classes into the same day).
Normally, if you needed a class to graduate, you could generally work something out. However, those classes were generally "in your major" and mostly never banged into hard limits (laboratory classes being the exception).
I am reminded of my beginning foreign language classes. They were always oversubscribed, but if you showed up the teacher would always sign an exception for you. They knew that at least 25%+ of the class was going to drop, so, they could basically give everyone an exception who showed up to the class.
As you said, you can later on give the exception to the students naturally.
There's only so many ways of assigning scarce resources to a number of participants. And none of them are perfect.
FIFO is one. Lottery is another. Bidding money (auction) is another, where applicable.
There are more complex schemes like ranked choice, but that becomes increasingly complex to implement, requires goods to be somewhat interchangeable, and also requires education (not everyone knows what ranked choice is, but everyone knows what 'first come first serve' means)
https://github.com/eczarny/spectacle#important-note
A common alternative mentioned is Rectangle.
It looks like I could write a little script using some of xdotools built in tools for cursor coordinates, active window info and geometry etc that would be pretty useful. As a quick solution it could alert using notify-send on a key combination, although figuring out how to append the data to the cursor overlay would be even nicer.
http://tripie.sweb.cz/utils/wmctrl/
https://www.freedesktop.org/wiki/Software/wmctrl/
https://www.linuxjournal.com/magazine/hack-and-automate-your...
https://www.x.org/releases/X11R7.5/doc/man/man1/xprop.1.html
The 'Tips' section of the first link also has several other utilities that are pertinent: http://tripie.sweb.cz/utils/wmctrl/#tips
An underappreciated amalgamation of java robot, opencv and Jython has literally automated away thousands of inane man hours for me and some clients.
It's not free, but it's the best thing I've found for being able to quickly take screenshots & annotate them - it's got better annotation tools than anything else I've used. It can also record video clips & save w/ relatively small file size (to give a quick walkthrough of a software feature or plainly show replication steps for a problem).
ie print screen for ss and upload vs shift+ctrl+print screen for just a ss
- Regular expressions
- vim
- sed
- imagemagick's convert/mogrify