In the middle of the desert you can say anything you want
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.
Counter is much faster than count() in cases when you need to count multiple objects – you don’t have to iterate once for each object.
Use from tqdm import tqdm_notebook as tqdm
instead of usual vanilla tqdm.
vimdiff file1 file2
opens a nice vim session with two buffers. [c
and ]c
jump back and forward between changes. (See http://vimcasts.org/episodes/comparing-buffers-with-vimdiff/)
<C-w> <C-r>
just rotates all the splits, and <C-w> x
to switch the current window with the next one. (split - Swap the position of two windows - Vi and Vim Stack Exchange)
:history /
(Is there search and replace history in vim? - Vi and Vim Stack Exchange)
extundelete
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.
I always forget this:
tail -f /var/log/
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.
Greed
is absolutely wonderful and much more interesting than I thought at the beginning.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.
exist.
qutebrowser --temp-basedir -s content.private_browsing true
Shift+Enter
starts a new line without breaking the current one.suppress.focus.stealing=false
worked. ffmpeg -i input.mkv -s 640x480 -c:a copy output.mp4
pandas.set_option('display.max_columns', None)
.
javascript bookmarklets/quickmarks · Issue #221 · qutebrowser/qutebrowser · GitHub
:bind ,insta jseval alert("Hello World")
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 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.
The passive voice should not be used to avoid writing I or we. If the entire thesis is written in the passive voice, it is much harder to read, and the sentences within it1 have to be reworded awkwardly so that some good transitions between the sentences within a paragraph are lost. On the other hand, if some sentences seem to require the passive voice, by all means those sentences should be written in the passive voice. But the passive voice should only be used where it is justified, that is, where its use improves readability of the thesis.
TL;DR use “we”, don’t use passive unless needed; don’t use “I” ever.
Also in Germany it’s bachelor’s thesis, apparently.
This is also really nice:
We collected blood samples from . . . Consequently, astronomers decided to rename . . .
Jankowsky reported a similar growth rate . . . In 2009, Chu published an alternative method to . . .
The mice in Group A developed, on average, twice as much . . . The conversion rate was close to 95% . . .
Microbes in the human gut have a profound influence on . . . The Reynolds number provides a measure of . . .
This paper presents the results of . . . Section 3.1 explains the difference between . . . Behbood’s 1969 paper provides a framework for . . .
In a follow-up experiment, we will study the role of . . . The influence of temperature will be the object of future research . . .
(As linked in the answer, taken from Effective Writing | Learn Science at Scitable.
This is amazing. ym
yanks the URL with the title, like this: word choice - Bachelor thesis or Bachelor’s thesis - English Language & Usage Stack Exchange.
<C-v>
enters passthrough mode, <Shift+Escape>
to exit. It works very well with Jupyter-vim.
m
means what it always means, n
is the place I’ve been working at the last time, d
is the end of the thesis.
:digraphs
to see the available digraphs. <C-k>
+%digraph% inserts it. For example, <C-k>+Pd
→ £
'.
- move to last modified line.D
- delete everything until the end of the line.C
- change everything until the end of the lineU
- undo all changes to this lineS
- substitute everything inside this line<C-a>
- increment number at character<C-x>
- decrement number at characterLearn to use my ;
->:
mapping