In the middle of the desert you can say anything you want
microscopic handle nodes - Beyond the Basics - Inkscape Forum
Confusingly, that setting is in Preferences > Input/Output > Input Devices.
Krita’s slowness can be fixed by looking at the settings of Display and looking through Krita FAQ — Krita Manual version 4.3.0.
Except by clicking on them, f
gives numbers you can follow;F
outputs the link text in the statusbar.
The Anki::Import documentation doesn’t make it clear enough, but using a quote('
) works too for carrying on old tags along with the usual backtick, but for signalling an empty field only the backtick works.
Also I don’t think I can control the Cloze deletions - it automatically generates identifiers for them. Not going to get into perl to fix this :)
Vim Regular Expressions 101 is a really nice reference for vim’s search/replace/regex things. Maybe I’ll work through it later.
Most interesting is that groups are created with \(
-\)
and mentioned as \1
(will be handy for search-and-replace!)
I miss having a “now learning” textfile. (TODO)
Also this is a nice summary of the differences between vim and python/perl regexes, in vim characters are more likely to be literally interpreted: 1
Perl Vim Explanation
---------------------------
x? x\= Match 0 or 1 of x
x+ x\+ Match 1 or more of x
(xyz) \(xyz\) Use brackets to group matches
x{n,m} x\{n,m} Match n to m of x
x*? x\{-} Match 0 or 1 of x, non-greedy
x+? x\{-1,} Match 1 or more of x, non-greedy
\b \< \> Word boundaries
$n \n Backreferences for previously grouped matches
And regex101.com remains the best place to test usual regexes.
I’ve been looking for something simpler than GIMP for casual blurring / cropping / adding text, pinta
mostly fits the bill but I find it hard to use and no easy blur brush, gthumb is much more minimalistic in functions but is more pleasant to use.
Zsh has global aliases!
An Introduction to the Z Shell - Aliasing is awesome.
alias -g M='| more'
-> who M
This has a lot of potential for often-typed parts of commands.
But I went there to look for arguments, and apparently zsh explicitly doesn’t have them and wants functions instead. So:
% rm () { mv $* /tmp/wastebasket }
% rm foo.dvi
% ls /tmp/wastebasket
foo.dvi
So I changed my taskwarrior s
alias to:
#alias s='task s sprint.is:$SPRINT or sprint:c'
s () {task s sprint.is:$SPRINT or sprint:c $*}
Now I can finally filter my tasks for the sprint (s +F
)
// TODO replace dependence on $SPRINT by just usind current week number.
Not the first time I neglect to read the documentation of the software I switch to, being happy that it mostly works like the previous one.
The Technium: 68 Bits of Unsolicited Advice
My favourite parts:
Very nice tool: amitsaha/gitbackup: Tool to backup your GitHub and GitLab repositories
The Github token needed only the repo
scope, needed to add it to the env variable with:
export GITHUB_TOKEN=$MYGITHUBTOKEN
Command to backup was:
./gitbackup-0.5-linux-amd64 -backupdir $BACKUPDIR -service github
Should also work for gitlab.
Also magically it took something like 30 seconds for the all of the 3.5GB of all my repos.
lutschen / an etwDat. lutschen - to suck (on) sth; Lutschtablette = lozenge.
lozenge: 1) A rhombus (shape); 2) A small (originall diamond-shaped!) tablet/sweet for a sore throat.
Agnes Obel - Fuel To Fire (Official Video) - YouTube
First comment on the video:
All the people in this video are dead. Life is short, don’t do anything that makes you unhappy
I can’t believe I have to say this, but please don’t drink bleach.
— Joe Biden (@JoeBiden) April 24, 2020
We live in interesting times.
shambolic - Chaotic, disorganised or mismanaged. Found somewhere on The Guardian applied to Trump’s daily health briefings.
A !
either forces the action or toggles the action:
:set cursorline
, to turn off: :set nocursorline
Is equivalent to:
:set cursorline!
1
tabulate
2 generates nice tables of various formats! Things like:
print(tabulate.tabulate(db,headers=db.columns))
epoch loss val_loss val f-score
-- ------- ------ ---------- -------------
0 1 4.31 4.62 0.579
1 2 3.72 3.61 0.705
2 3 3.54 3.25 0.722
3 4 3.31 3.06 0.737
4 5 3.19 2.93 0.736
5 1 4.31 4.62 0.581
6 2 3.72 3.61 0.72
7 3 3.54 3.25 0.755
8 4 3.31 3.06 0.755
9 5 3.19 2.93 0.764
10 6 3.12 2.83 0.798
11 7 2.95 2.76 0.779
12 8 2.91 2.69 0.757
13 9 2.84 2.64 0.816
14 10 2.68 2.63 0.835
15 11 2.71 2.56 0.83
16 12 2.69 2.52 0.825
17 13 2.62 2.49 0.826
18 14 2.6 2.46 0.845
19 15 2.56 2.44 0.84
tabulate · PyPI is the basic documentation with visualizations of each tablefmt
. It even supports jira
! And pipe
is the usual markdown format. Let’s try:
epoch | loss | val_loss | val f-score | |
---|---|---|---|---|
0 | 1 | 4.31 | 4.62 | 0.579 |
1 | 2 | 3.72 | 3.61 | 0.705 |
2 | 3 | 3.54 | 3.25 | 0.722 |
3 | 4 | 3.31 | 3.06 | 0.737 |
4 | 5 | 3.19 | 2.93 | 0.736 |
5 | 1 | 4.31 | 4.62 | 0.581 |
6 | 2 | 3.72 | 3.61 | 0.72 |
7 | 3 | 3.54 | 3.25 | 0.755 |
8 | 4 | 3.31 | 3.06 | 0.755 |
9 | 5 | 3.19 | 2.93 | 0.764 |
10 | 6 | 3.12 | 2.83 | 0.798 |
11 | 7 | 2.95 | 2.76 | 0.779 |
12 | 8 | 2.91 | 2.69 | 0.757 |
13 | 9 | 2.84 | 2.64 | 0.816 |
14 | 10 | 2.68 | 2.63 | 0.835 |
15 | 11 | 2.71 | 2.56 | 0.83 |
16 | 12 | 2.69 | 2.52 | 0.825 |
17 | 13 | 2.62 | 2.49 | 0.826 |
18 | 14 | 2.6 | 2.46 | 0.845 |
19 | 15 | 2.56 | 2.44 | 0.84 |
How does Tensorflow train stuff when loss is nan
? It keeps doing something, accuracy changes, etc etc etc. - is the gradient calculated per batch as normal,
Einstein / Netzah “do your own thing”
Zinseszins - Wiktionary - compound interest. Beyond logic
Split string with multiple delimiters in Python - Stack Overflow has this really nice idea of doing str.replace(':', '_')
and then str.split('_')
.
Series.str.split(delim)
can do Series.str.split(delim, expand=True)
, that returns different columns instead of a list.
Also - if graphs don’t make sense, one way things have gone wrong is interpreting x and y as strings.
c.tabs.background = True
in config opens new tabs in the background when middle-clicking.
Nurse blocking anti lockdown protests in Denver : PublicFreakout and the imgur album: Health care workers stand in the street in counter-protest to hundreds of people who gathered at the State Capitol to demand the stay-at-home order be lifted in Denver, Colo., on Sunday, April 19, 2020. Photos by Alyson McClaran - Album on Imgur. As someone said, I really imagine seeing this in history books.
To visualize logs of screen
sessions, less -r filename
(-R
hates ^H
progress bars but I search seems to work a bit better) works very well. Even for the (tf) progress bars almost. ansifilter exists but deals with progress bars much worse.
Empirically - for searching and scrolling the same font size / terminal size is very helpful.
Just pasting the Vim macro on Day 469, while it did not break Jekyll this time (why?), seems to have broken the RSS script at the beginning of the page.
This page contains the following errors:
error on line 19 at column 73: PCDATA invalid Char value 27
Copypasted the lines from terminal and back, but I need a much better way to save and ‘publish’ the macros. Found Vim Macro Trickz • Hillel Wayne when looking for solutions.
.. can be added in a bath, but only in a carrier oil, olive oil works.
“For a single bath, three to 12 drops of essential oil in a tablespoon (15 ml) of carrier oil is sufficient to create a very aromatic, therapeutic bath” 1
Can I export a tensorflow summary to CSV? - Stack Overflow – yes I can, by clicking “show data download links” on the top left of interface and selecting what I want to download below the plots.
machine learning - Why training loss is increased at the beginning of each epoch? - Stack Overflow - probably because the dataset is not random enough, and the network overfits on the structure of the dataset. Happens with buffer_size
dramatically less then the size of the structured dataset.
Added config.bind('tw', 'set-cmd-text -s :open -w')
to config, now tw
is like a
, but for windows instead of tabs.
Added this macro:
let @R = 'viw"oyi[^^[^[^[^[A]^[^[^[Go[^^[^[^[^["opA]: ^[^[^[^['
When the last word in the line is selected, it gets transformed immediately to a reference. I’ll use this vim cheatsheet as 1.
Vim cheatsheetVim cheatsheet
As a bonus, this uses a non-default vim register so whatever is in my clipboard stays there. (But it destroys whatever I had in "o
). ↩︎