- Understand shape inference in deep learning technologies
- Tensorflow Records? What they are and how to use them <– excellent!
Greedis absolutely wonderful and much more interesting than I thought at the beginning.
I asked another young professor whether one could use “I” and she said “Only if you want to sound like an arrogant bastard”, and observed that only old people with established reputations can get away with it.
- Make finally a uniform and nice vim/bspwm/… keybinding system.
- Learn vim formally, all movements and everything, and get rid of my “vim antipatterns”
- I should create additional vim maps for a better way to access other registers. I should create at least one more p/y/yy/d/dd commandd set for them and keep them separatee from the main ones.
- Or just let vim have it’s own copy/paste registers and make pasting the OS ones a special case
print_full to output stuff with max everything
Shapes and ranks and tensors and stuff
Vim resize splits / vsplits
For a split window: You can use
Ctrl-w -to resize the height of the current window by a single row. For a vsplit window: You can use
Ctrl-w <to resize the width of the current window by a single column. Additionally, these key combinations accept a count prefix so that you can change the window size in larger steps. [e.g.
Ctrl-w 10 +] (Resize splits more quickly | Vim Tips Wiki | FANDOM powered by Wikia)
15.6. getopt — C-style parser for command line options — Python 2.7.16 documentation, especially the part
optlist, args = getopt.getopt(args, 'abc:d:') – the options with a colon following need to have a value. Otherwise GetOptError will be raised.
Linux undelete file on ext filesystem with
extundelete /dev/sda4 --restore-file directory/file
I’m shocked this works, and it can do a lot of interesting stuff - files, directories, list of deleted files, etc etc etc.
Linux output logs continuously
I always forget this:
tail -f /var/log/
This is one of the best tutorials I’ve found. Todo: userscript that gives me back the real URL from outline.com.Read more...
Pandas apply() memory hell
This is a nice read about how Pandas’ apply needs to store the Series it creates, that there’s no magic, and that inelegant loops can sometimes be faster. Relevant is the official Enhancing performance guide, that I should read.
Rclone and backing up Google Drive
rclone is nice. I followed the guide in Google drive, and the magic command to copy all content is
rclone sync "drive:Google Photos" /mnt/data/Backups/GP, about 300kb/s, and about 4 hours left.
Qutebrowser private windows
qutebrowser --temp-basedir -s content.private_browsing true
A Python config file is excellent. qutebrowser/configuring.asciidoc at master · qutebrowser/qutebrowser · GitHub For now this, then we’ll see:Read more...
Resizing/converting/… a video with ffmpeg
ffmpeg -i input.mkv -s 640x480 -c:a copy output.mp4
Using I/we/passive in a Bachelor’s thesis
No easy answer, but I liked here the joke “In your particular case, an inclusive we could be used to recognize the nematodes collaboration :) – Dr. belisarius May 10 ‘11 at 13:01”
“I’ve come up with a set of rules that describe our reactions to technologies: 1. Anything that is in the world when you’re born is normal and ordinary and is just a natural part of the way the world works. 2. Anything that’s invented between when you’re fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. 3. Anything invented after you’re thirty-five is against the natural order of things.” — Douglas AdamsRead more...
Scratchpad with the DTB in bspwm
If it starts appearing on the wrong monitor, I can drag it to the right one, and its location will be remembered.Read more...
There are two sorts of comments - “What” comments and “Why” comments.
“What” comments tell you what the code is doing. In a lot of cases, depending on the language, the need for these can be reduced by writing clear code. This is much easier in, say, Python than Assembly. Even in Python though, sometimes you can be doing something a bit subtle where a 2 line comment can clear things up. These comments aren’t irreplaceable because with a bit of reading and work, you have all the information to work out what is happening.
“Why” comments are much more important - telling the reader WHY the code is doing whatever it is that it’s doing. The ‘trim()’ comment referenced in the article is a great example of a Why comment - all the reading around the code wouldn’t give you an explanation (although sometimes git blame will).
Many ‘what’ comments are superfluous, almost no ‘why’ comments are - they are the collective memory of design decisions that otherwise lives in people’s heads. (HN)