Posts

    Day 115

    The internet is wonderful

    vim.wasm

    Read more...

    Day 114

    Pandas

    Feature importance

    Inspecting the importance of features when running Random Forest:

    feature_importances = pd.DataFrame(rf.feature_importances_,
                                       index = X_train.columns,
                                        columns=['importance']).sort_values('importance',                                                                 ascending=False)
    

    pandas shuffle

    df.shuffle(frac=1) uses the shuffle function for this.

    Read more...

    Day 112

    Latex

    Subfigures / subfloats, pictures side by side

    \begin{figure}[ht!]
        \centering
        {%
        \begin{subfigure}[b]{0.3\textwidth}
            \includegraphics[width=\textwidth]{/home/sh/p/ms/p/p/pics/scanned/1888.png}
            \caption{Picture 1}
            \label{fig:1}
        \end{subfigure}
        %
        \begin{subfigure}[b]{0.3\textwidth}
            \includegraphics[width=\textwidth]{/home/sh/p/ms/p/p/pics/scanned/1888.png}
            \caption{Picture 2}
            \label{fig:2}
        \end{subfigure}
        }%
    \end{figure}
    Read more...

    Day 110

    Stack

    Read more...

    Day 109

    Thesis

    Stylometry

    Can I use some of the insights/methods/ideas from stylometry for this? (After reading this article about Beowulf.

    Read more...

    Day 108

    Quotes

    Get things out of your head and into a system that you fully trust. Everything you do should have positive value – it’s either improving you (I put self care and genuine leisure time in here, but not time wasting), improving a relationship, making money, or making one of those other things more efficient. Do high energy and high focus things when you actually have energy and focus; do mindless things when you feel mindless. Do not skimp on self-care, which includes genuine leisure time, good healthy food, exercise, good personal relationships, and adequate sleep. Aim for the “flow state” in everything you do, because you’ll never be better than when you’re so engaged that you lose track of time and place and just get lost in the moment. (How I get things done)

    Read more...

    Day 107

    Stack

    Add search to this blog via this simple js

    Read more...

    Day 106

    The Internet is wonderful

    Read more...

    Day 104

    SSH

    Exiting a dead SSH session

    SSH can handle commands. From the blog post above: <Enter>~.
    SSH parses commands sent after a newline and ~. ~. is the one to exit.

    SSH config files

    In ~/.ssh/config.

    Host host1
        HostName ssh.example.com
        User myuser
        IdentityFile ~/.ssh/id_rsa
    

    allows to just do sh host1.

    Read more...

    Day 102

    Stack

    Read more...

    Day 101

    Thesis

    Current results

    I looked again at the confusion matrix, after having made a copy. It’s quite interesting:

    array([[29, 14, 28, 26],
           [38, 57, 36, 27],
           [52, 18, 58, 28],
           [18, 14, 18, 39]])
    
    Read more...

    Day 100

    DNB and Typing

    d4b 56% Wed 10 Apr 2019 10:18:00 AM CEST
    d4b 33% Wed 10 Apr 2019 10:19:54 AM CEST
    d4b 39% Wed 10 Apr 2019 10:21:51 AM CEST
    d4b 17% Wed 10 Apr 2019 10:23:47 AM CEST
    d3b 86% Wed 10 Apr 2019 10:25:24 AM CEST !
    d4b 56% Wed 10 Apr 2019 10:27:22 AM CEST
    
    
    Read more...

    Day 099

    DNB and Typing

    d4b 56% Tue 09 Apr 2019 08:42:36 AM CEST
    d4b 22% Tue 09 Apr 2019 08:45:01 AM CEST
    d4b 67% Tue 09 Apr 2019 08:46:57 AM CEST
    d4b 67% Tue 09 Apr 2019 08:48:54 AM CEST
    d4b 28% Tue 09 Apr 2019 08:50:47 AM CEST
    d4b 67% Tue 09 Apr 2019 08:52:42 AM CEST
    d4b 00% Tue 09 Apr 2019 08:54:36 AM CEST
    
    Read more...

    Day 098

    German

    Wann vs wenn

    Wann vs wenn: Wann has nothing to do with if, it’s a question asking for a point of time. Wenn is closer to “if”, but it’s also a translation for “when”.

    Read more...

    Day 097

    DNB and Typing

    d4b 33% Sun 07 Apr 2019 04:24:36 PM CEST
    d4b 33% Sun 07 Apr 2019 04:26:35 PM CEST
    d4b 56% Sun 07 Apr 2019 04:28:28 PM CEST
    d4b 61% Sun 07 Apr 2019 04:30:24 PM CEST
    d4b 28% Sun 07 Apr 2019 04:32:21 PM CEST
    d4b 44% Sun 07 Apr 2019 04:34:27 PM CEST
    d4b 22% Sun 07 Apr 2019 04:36:19 PM CEST
    d4b 39% Sun 07 Apr 2019 04:38:14 PM CEST
    
    Read more...

    Day 095

    Stack

    Edit .i3/ to create the multiple scratchpads at startup and put them automatically where I want them – second answer is a good example.

    Read more...

    Day 090

    Stack

    Read more...

    Day 088

    Stack

    Add Jekyll footnotes to anki.

    Read more...

    Day 087

    Jekyll create.sh

    Added to my “create” bash script a line that at the end opens the created file in vim, because this is what I do every single time.

    Read more...

    Day 085

    Setting time in Linux

    date -s 13:17:50 also works. It’s more simple than I remembered.

    Read more...


Subscribe