- Black on Red: My 44 Years Inside the Soviet Union: An Autobiography by Robert Robinson | Goodreads - recommended by A.
I read Black On Red: My 44 Years Inside The Soviet Union, a book by Robert Robinson, An African-American who lived in Detroit during the Depression. I had to read it again, for it is about as gripping an autobiography as one can find.
- Russian political jokes - Wikipedia
- Avunculicide is the act of killing an uncle. First heard on Brooklyn 99, S5:E3
Random / interesting / ideas
Emoji Simulator! 😘 -> generally, emojis are a nice way to convey information, instead of colour. Not nice but at least novel and ineresting. It would be nice to work them into some project or visualization. Мамо чому я не фронтендщик.
Git revert vs reset last N commits
Resetting, Checking Out & Reverting | Atlassian Git Tutorial is a nice guide about ways to undo some of the commits. Reset is a harder way to undo stuff that sometimes leaves no traces, Revert is a way to create a commit that undoes the last N commits, so history is preserved and that’s good.Read more...
VPN DNS issues
Seemed to have a conflict w/ IPv6 VPN vs the IPv4 one, first had priority. Then I had an issue where the VPN IP was the same as the IP of my router. Fixed by moving router IP. Learned a lot about how DNS works.Read more...
git diff with full context
How to get git diff with full context? - Stack Overflow -
git diff -U1000000 - or
wc -l in place of the number - any number of line larger than the file works.
Jupyter Notebook vim mode
When operating on cells, not text (= not insert mode), the usual
j/k commands select cells when shift is used (
J/K). This is neat. I should read the documentation.
Jaro-winkler similarity for empty strings (#nlp)
Jaro-Winkler handling empty strings · Issue #28 · tdebatty/java-string-similarity - TL;DR officially ‘undefined’, what has to be returned in implementations depends on why you need it. These are nice edge cases I have to learn to watch for.Read more...
Is much more flexible than expected.
git diff --unified=0 doesn’t show the context lines, only the changed ones; in general the documentation is worth reading, could be a good tool to add to my belt for various one-off tasks.
Diff character-level differences highlights
command line - Using ‘diff’ (or anything else) to get character-level diff between text files - Stack Overflow gives this one nice string:
git diff --word-diff=color --word-diff-regex=. file1 file2 which gives red/green characters for deletions/additions. Also, chaining greps also works nicely with
grep -o which passes only the text of the actual match. Grep doesn’t support capturing groups.
Intellij idea CheckStyle plugin
CheckStyle-IDEA - plugin for IntelliJ IDEA and Android Studio | JetBrains exists and I had better luck w/ it than with importing the checkstyle file from Style in Settings. Gives highlights inside the code itself automatically.Read more...
Random / books / to read
Random / interesting / English
Intellij idea run class with cursor
The small “play” symbols to the left on some classes can be run w/
<C-S-F10> if cursor is on them currently.
Python do something based on probability
python - True or false output based on a probability - Stack Overflow mentions a really neat idea:
def decision(probability): return random.random() < probability
TODO finally read the man page and learn to use it right, esp. splitting; look at history for the usual things I do manually (esp. moving back starting time)Read more...
Intellij idea breakpoints with no executable code
So here’s a nice difference w/ Python - in Python, you can set breakpoints everywhere, and you can add something random after the line you want to look at if it’s the last line of the function. In java, I assume some pointless lines are optimized away or considered uninteresting, but you can set a breakpoint to the
} bracket and the end of the function if it’s on a line alone.
Did a lot of python, pandas, jupyter and enjoyed it so much that did not write any of the things I learned here, now they are lost forever. :’CRead more...
Jupyter Notebook vim plugin copypaste
Things that I selected with vim keybindings can be copypasted with usual qutebrowser keybindings (or mouse).Read more...
Random / TODO / Linux
I should really rewrite my timer function to be a) Python, b) better than the current version.Read more...
Intellij idea almost-tree tabs
In Tabs Config you can select a small font for them and move them to the left instead of top.