A collection of concise how-i-did documents over my technological adventures.

Data analysis with scikit learn and pandas

Using scikit learn to data mine a small dataset of clinical exams.

Download Miniconda 64bit version with python 3.6. Installation Install Miniconda using the current user (no sudo) cd ~/Downloads/ bash Miniconda3-latest-Linux-x86_64.sh # reload env (or restart terminal) source ~/.bashrc This toolset is my only use for anaconda, so everithing is installed in the default environment. Install all the tools. # this will also install numpy conda install scikit-learn conda install ipython conda install matplotlib # this will also install pandas conda install seaborn conda install jupyter Workspace Create a folder for notebooks and data files, then start ipython. [Read More]

Svg to multisize ico

Convert the github desktop svg logo to a multisize ico file to be used as a folder icon

I want to use the logo of github desktop for a folder. To do so I need to create a ico from the svg file downloaded from GitHub

The standard icon sizes used by windows explorer are

  • Extra large icons 256x256
  • Large icons 96x96
  • Medium icons and Tiles 48x48
  • Content 32x32
  • Small icons, List and Details 16x16

But windows uses only 16x16, 32x32, 48x48 and 256x256.

[Read More]

Multiple SSH Keys

Managing multiple SSH keys for Github and Visual Studio Online

After generating a new key for my Visual Studio Online code repository I have to tell git which key to use for each connection.

Create a file in ~/.ssh/config

Add the following content

# Uncomment to enable debugging.
# LogLevel DEBUG

Host ssh.dev.azure.com
    IdentityFile ~/.ssh/id_rsa_visualstudio

Host vs-ssh.visualstudio.com
    IdentityFile ~/.ssh/id_rsa_visualstudio

Host github.com
    IdentityFile ~/.ssh/id_rsa_github

# tell ssh-agent to not try keys
Host *
    IdentitiesOnly yes

Arch Linux on Jumper Ezbook 3s

Installing archlinux on a sdcard to test linux stability on this cheap notebok

I bought a cheap laptop from china: Ezbook 3S.

It features a nice 14” display, a slow but usable Intel Apollo Lake N3450, 6Gb of ram and a 256Gb SSD.

I want to try Arch Linux on an external usb drive, just to make a few test before committing to the full wipe of Windows 10 Home. Reports from other users says that wifi is working with an alternate driver but no bluetooth. Other periferals should work just fine.

I also tried to install on a SD card but rEFInd is not able to detect the card controller.

[Read More]