In the middle of the desert you can say anything you want
I should really rewrite my timer function to be a) Python, b) better than the current version.
# Timer in zsh
tm() {
local DATE=$(date +'%H:%M:%S %d/%m')
local N="$1"; shift
(utimer -c > ~/s/sounds/outbash $N && mpg123 -q ~/s/sounds/tib.mp3 &
zenity --info --title="Time's Up" --text="${*:-BING} \n\n $DATE")
}
utimer
seeing minutes as m
while everyone else (timew
especially) wanting minutes as min
makes me crazy.
I can remove the tree of files by doubleclicking the tabs!
<Ctrl-Shift-V>
gives a nice choice of things to paste, first thing being the current content of the buffer. The others I assume are historical.
In Tabs Config you can select a small font for them and move them to the left instead of top.
I had two projects, one used code from the other one. The other one is also compiled jars gotten via maven. Had an issue that it used the maven one instead of the manually imported one I wanted it to use, even though Ctrl+Click took me to the ‘right’ directory with the files I wanted it to see.
Sorted out via Project Structure -> Modules -> $modulename -> dependencies, where I deleted the maven one and pointed it to the imported folder/project
People seem to have a naïve view of what “cured” means: someone “gets sick”, is treated, and then returns to the status quo ante. Thus there is little concern about catching the disease (or any disease) when you are not in an “at risk” group.
But hospital discharge just means the treatment you get stops being worth the time/money. Ideally you finish convalescing at home. But any consequential damage isn’t ignored, as if you just had had a dented panel replaced on your car.
Once I understood this error some of the discussion about dealing with the virus made sense.1
Indeed.
Paper about the common OCR errors, containing statistical info about them and having nice clear lists w/ probabilities.
Stachelbeere – Wikipedia ist Крыжовник. English - Gooseberry.
Libreoffice Calc automatically replaces “ß”<->“ss”, unless you tick “Match case”.
You can drag and drop files to the split you want to open them into.
algorithm - Reason for 5381 number in DJB hash function? - Stack Overflow is a nice answer about why numbers may be chosen.
Unix culture values code which is useful to other programmers, while Windows culture values code which is useful to non-programmers. 1
treble - …triple.
I can search through the variables in the debugger by just typing, without any /
shortcut.
String Similarity Algorithms Compared | by Appaloosa Store | Medium compares different edit distance algos, TODO
Third-party doctrine - Wikipedia - is a United States legal doctrine that holds that people who voluntarily give information to third parties—such as banks, phone companies, internet service providers (ISPs), and e-mail servers—have “no reasonable expectation of privacy.”
Changed line to setxkbmap -option -option 'grp:rctrl_toggle, compose:rwin, compose:paus' v5,ruua &
, now the Pause key works as compose too. Will check whether the RWIN works back at home with the keyboard that has a RWIN. 1
For markdown references, updated my old @R
macro to add an additional
`let @R = ‘viw"oyi[^^[^[^[^[A]^[^[^[Go^M[^^[^[^[^[“opA]: ^[^[^[^[’et @R = ‘viw"oyi[^A]Go
For the ^M
/Enter, I used the old <C-v><Enter>
trick. 2
The Toolbox app is actually not bad at all and quite easy to use and the things it installs can actually be run from CLI. It also recognized my manually downloaded intellij - which raises the question how did it do that.
EDIT Do 17 Sep 2020 07:29:48 CEST: but of course the environment variables set in ~/.zshrc
are not going to be set if you launch the toobox app not via CLI. ~/idea/bin/idea.sh
remains my favourite method.
Maven Surefire Plugin – Skipping Tests has nice info and its readable, and I should read through the maven documentation sometime.
To skip maven tests:
mvn install -DskipTests
:devtools window
Added these two nice functions to zsh, for work and not-work:
tt () {task s project:w "$*"}
th () {task s \(sprint.is:$(date +%-V) or sprint:c \) project.not:w "$*"}
If I track something tagged ‘daily’ it sees it as <duration>
and I get syntax error.
Randfälle - edge cases; TODO add to anki
The name is sometimes said to be derived from an Ojibwe exonym for the Sioux meaning “little snakes” (compare nadowe “big snakes”, used for the Iroquois).
However, in general, when meditating, you take the mind as you find it and work from there. There’s no particular way the mind has to be. (Reddit)
Found something called “HUNT” in htop
taking A LOT of my CPU. Process with randomized name - Unix & Linux Stack Exchange:
Check its process ID, and look at
ls -l /proc/process_id/
to see e.g. what the executable is (theexe
symlink).
exe
symlink pointed to /usr/sbin/huntd
, which was easy to Google, and which turned up to be one of the bsdgames
I tested earlier that still had its daemon running. I’ll remember this trick.
(Why did it take so much memory is still a mystery but I’m not that interested to check).
“If it takes water lilies that double their spread every day 50 days to cover the entire lake, on what day would they cover a half of that lake?”
The answer, obviously, is day 49. More to the point, day 45 would have had only seen the lilies cover 3,125% of the lake. Day 40 would have had been 0,0976% - from that little of an amount, the lilies would proceed to take over the entire lake in 10 more days.
So, it’s the same way with this pandemic. I think there now enough of an evidence from anywhere in the world to say that absent an (effective, early) intervention to lower R0 inside the country, it takes about 3,5 months for the virus to blow up into a devastating contagion. 1
Intellij reads environment variables only at startup, and there’s no way to refresh them. Even “Restart”-ing it via the menu didn’t help, I think I need to physically restart the process.
UPD: Even restarting the process doesn’t work if I don’t (re)start zsh (and make it read the new variables in .zshrc
) in the terminal where it’s running! Which actually makes sense.
VCS -> Git -> Annotate is basically git blame
. It shows the last person who modified each particular line and when.
:open -p {url}
opens url in private window. qutebrowser --temp-basedir -s content.private_browsing true
also works.
Circumfix - Wikipedia is when something gets added both to the beginning and the end of a word; same cluster as prefixes/suffixes. Examples are German “ge…t” and “най…чший” for German/Russian.
Diving in the current codebase I’m reading through, I realize just how awesome are tests to understand unknown code. The usual “change stuff and see what happens” is much easier if it’s all nicely insulated, with hardcoded values, and providing examples of how to use the code. I’ll remember this.
To finally save my answers to the notifications, added
config.load_autoconfig()
to config.py
as per qutebrowser/configuring.asciidoc at master · qutebrowser/qutebrowser
libraries - What is a shaded Java dependency? - Software Engineering Stack Exchange
Shading dependencies is the process of including and renaming dependencies (thus relocating the classes & rewriting affected bytecode & resources) to create a private copy that you bundle alongside your own code.
To Shade a library is to take the contents files of said library, put them in your own jar, and change their package. This is different from packaging which is simply shipping the libraries files in side your own jar without relocating them to a different package.
strings
/ fc
builtin shell commandHow to fix and recover zsh: corrupt history file /home/…/.zsh_history error
strings .zsh_history_old > .zsh_history
fc -R .zsh_history
strings
gives the strings (=printable characters) in a file;
fc
fc
is freaking awesome. Linux and Unix fc command tutorial with examples | George Ornbo
Running fc
opens a text editor w/ the last command, closing it runs the command you edited. On my box it opens vim. This is so going to help me with long commands oh my God. Much better than the faux-vim syntax that I have in zsh. I’ll be able to use ci)
and other things I always missed.
fc -l
, fc -l 100
, fc -l 100 200
lists the last commands ran (or a range). fc -ln
doesn’t print their numbers. -d
gives timestamps, -f
for full timestamp in US format, -fE
for the usual one.
$JAVA_HOME
does not get necessarily set and has to be set in maven runner settings (Build/exec/dev -> build tools -> maven), or in environment variables.