# left์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_left = pd.merge(df_left, df_right, how='left', on='KEY') 

# right์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_right = pd.merge(df_left, df_right, how='right',  on='KEY') 

# left ๋ฐ right ์–‘์ชฝ์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_inner = pd.merge(df_left, df_right, how='inner', on='KEY') 

# ์–‘์ชฝ์— ์กด์žฌํ•˜๋Š” ๋ชจ๋“  Key๊ธฐ์ค€ merge
df_merge_how_outer = pd.merge(df_left, df_right, how='outer', on='KEY') 

# ๊ฐ ๋ฐ์ดํ„ฐ๊ฐ€ left, right ๋˜๋Š” ์–‘์ชฝ์˜ ์ถœ์ฒ˜์ธ์ง€ ํ‘œ์‹œ(_merge๋ž€ ์ปฌ๋Ÿผ์— ํ‘œ์‹œ)
pd.merge(df_left, df_right, how='outer', on='KEY', indicator=True) 

#์–‘์ชฝ์˜ ์ปฌ๋Ÿผ๋ช…์ด ์ค‘๋ณต๋ ๋•Œ _left๋‚˜ _right๋ฅผ ์ปฌ๋Ÿผ๋ช…์— ์ถ”๊ฐ€ํ•จ
pd.merge(df_left_2, df_right_2, how='inner', on='KEY', suffixes=('_left', '_right')) 

Installing a root/CA Certificate

Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:

  1. Create a directory for extra CA certificates in /usr/share/ca-certificates:

    sudo mkdir /usr/share/ca-certificates/extra
  2. Copy the CA .crt file to this directory:

    sudo cp foo.crt /usr/share/ca-certificates/extra/foo.crt
  3. Let Ubuntu add the .crt file's path relative to /usr/share/ca-certificates to /etc/ca-certificates.conf:

    sudo dpkg-reconfigure ca-certificates

    To do this non-interactively, run:

    sudo update-ca-certificates

In case of a .pem file on Ubuntu, it must first be converted to a .crt file:

openssl x509 -in foo.pem -inform PEM -out foo.crt

1. Download the 3 required dependencies from Launchpad (not providing direct links so you can check it's legit):

a. https://launchpad.net/ubuntu/bionic/amd64/libicu60/60.2-3ubuntu3 (libicu60_60.2-3ubuntu3_amd64.deb (7.7 MiB))

b. https://launchpad.net/ubuntu/bionic/amd64/libjavascriptcoregtk-1.0-0/2.4.11-3ubuntu3

(libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb (1.8 MiB))

c. https://launchpad.net/ubuntu/cosmic/amd64/libwebkitgtk-1.0-0/2.4.11-3ubuntu3

(libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb (7.7 MiB))

 

2. Install the files in that order in the terminal

(assuming the files are in the Downloads folder)

cd ~/Downloads sudo dpkg -i libicu60_60.2-3ubuntu3_amd64.deb sudo dpkg -i libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo dpkg -i libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo dpkg -i icaclient_19.3.0.5_amd64.deb

This correctly installs Citrix Workspace. If you then get connection errors when trying to set it up, also implement step 3.

 

3. Fix the certificate error.

sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/ sudo c_rehash /opt/Citrix/ICAClient/keystore/cacerts/

 

 

$ git clone https://github.com/black7375/BlaCk-Void-Zsh.git ~/.zsh

$ bash ~/.zsh/BlaCk-Void-Zsh.sh

 

Powerline Font  ์„ค์ •

$ sudo apt-get install fonts-powerline

or

# clone
$ git clone https://github.com/powerline/fonts.git --depth=1

# install

$ cd fonts

$ ./install.sh

# clean-up a bit

$ cd ..

$ rm -rf fonts

 

[์ถœ์ฒ˜] ๋ฉ‹์ง„ ZSH ์„ค์ •!! (๋„ค์ด๋ฒ„ ๋ฆฌ๋ˆ…์Šค ์œ ์ € ๊ทธ๋ฃน) |์ž‘์„ฑ์ž BlaCk7375

์š”์ฆ˜ emacs๋‚˜ vi์—๋””ํ„ฐ๋ฅผ ๋งŽ์ด ์“ฐ๋ฉด์„œ controlํ‚ค๋ฅผ ์ƒˆ๋ผ ์†๊ฐ€๋ฝ์œผ๋กœ ๋ˆ„๋ฅด๋Š” ์ผ์ด ๋งŽ์•„์กŒ๋‹ค.

๋ณดํ†ต์˜ ํ‚ค๋ณด๋“œ์—๋Š” controlํ‚ค๊ฐ€ ์™ผ์ชฝ ์•„๋ž˜ ์กด์žฌํ•˜๋‹ค ๋ณด๋‹ˆ ์ƒˆ๋ผ ์†๊ฐ€๋ฝ์ด ๋งŽ์ด ๋ฌด๋ฆฌ๊ฐ€ ๊ฐ„๋‹ค.

 

์˜›๋‚ ์˜ unixํ‚ค๋ณด๋“œ์ฒ˜๋Ÿผ ๋ฐฐ์—ด์„ ๋ฐ”๊ฟ”์„œ ์‚ฌ์šฉํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค.

 

# ๋จผ์ € ์•„๋ž˜ ํŒŒ์ผ์„ Editor๋กœ ์—ฐ๋‹ค.
$ sudo vi /etc/default/keyboard

# XKBOPTIONS์„ ์ฐพ์•„ ctrl:nocaps๋ฅผ ์จ์„œ Caps Lockํ‚ค๋ฅผ ์ถ”๊ฐ€์ ์œผ๋กœ Controlํ‚ค๋กœ ์‚ฌ์šฉํ•˜๋„๋ก ํ•œ๋‹ค.
# ๋˜๋Š” ctrl:swapcaps๋ฅผ ์จ์„œ Caps Lockํ‚ค์™€ Controlํ‚ค์˜ ๊ธฐ๋Šฅ์„ ๋ฐ”๊พผ๋‹ค.

XKBOPTIONS="ctrl:nocaps"

# ๋‹ค์Œ์œผ๋กœ ๋ณ€๊ฒฝ๋œ ๋‚ด์šฉ์ด ๋ฐ˜์˜๋˜๋„๋ก ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.
$sudo dpkg-reconfigure keyboard-configuration

 

./configure --with-features=huge --enable-cscope --enable-multibyte --enable-python3interp --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-fail-if-missing
make
sudo make install

Fisa Vim Config (http://fisadev.github.io/fisa-vim-config/)

sudo apt-get install curl vim exuberant-ctags git ack-grep
sudo pip install pep8 flake8 pyflakes isort yapf

mv ~/.vimrc ~/.vimrc.org
wget -O ~/.vimrc  https://raw.github.com/fisadev/fisa-vim-config/master/.vimrc 

 

1. Neovim์„ ์„ค์น˜ํ•œ๋‹ค.

2. Nvim์˜ fisa-dev๋ฅผ ์„ค์ •ํ•œ๋‹ค.

    http://nvim.fisadev.com/

 

Fisa-nvim-config by fisadev

This is my personal NeoVim configuration, built according to my personal preferences, without any justification to think it's the best possible vim configuration. If you like it, great! :) It's mainly oriented to python software development, but many of it

nvim.fisadev.com

3. coc-nvim (intellisense plugin)์„ ์„ค์น˜ํ•œ๋‹ค.

    ๊ฐ€. Node.js์„ค์น˜       

curl -sL install-node.now.sh/lts | sudo bash

    ๋‚˜.  Yarn ์„ค์น˜

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

   ๋‹ค. VIM Plugin์„ค์น˜    

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

   ๋ผ. ~/.config/nvim/init.vim์— ์•„๋ž˜ ๋‚ด์šฉ ์ถ”๊ฐ€

call plug#begin('~/.config/nvim/plugged')
" Use release branch
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Or latest tag
Plug 'neoclide/coc.nvim', {'tag': '*', 'branch': 'release'}
" Or build from source code by use yarn: https://yarnpkg.com
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()

 

   ๋งˆ. nvim์‹คํ–‰ํ›„ coc ๋ชจ๋“ˆ ์„ค์น˜

        :CocInstall coc-json

        :CocInstall coc-python

        :CocInstall coc-pypl

   ๋ฐ”.  ./config/nvim/coc-settings.json ํŒŒ์ผ์— Python language server์„ค์ • ์ถ”๊ฐ€

{
  "languageserver": {
      "golang": {
            "command": "gopls",
            "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
            "filetypes": ["go"]
          },
      "ccls": {
            "command": "ccls",
            "filetypes": ["c", "cpp", "objc", "objcpp"],
            "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
            "initializationOptions": {
                     "cache": {
                                "directory": "/tmp/ccls"
                              }
                   }
           },
      "python": {
         "command": "python",
         "args": [
              "-mpyls",
              "-vv",
              "--log-file",
              "/tmp/lsp_python.log"
            ],
         "trace.server": "verbose",
         "filetypes": [
              "python"
            ],
         "settings": {
              "pyls": {
                     "enable": true,
                     "trace": {
                              "server": "verbose"
                            },
                     "commandPath": "",
                     "configurationSources": [
                              "pycodestyle"
                            ],
                     "plugins": {
                              "jedi_completion": {
                                         "enabled": true
                                       },
                              "jedi_hover": {
                                         "enabled": true
                                       },
                              "jedi_references": {
                                         "enabled": true
                                       },
                              "jedi_signature_help": {
                                         "enabled": true
                                       },
                              "jedi_symbols": {
                                         "enabled": true,
                                         "all_scopes": true
                                       },
                              "mccabe": {
                                         "enabled": true,
                                         "threshold": 15
                                       },
                              "preload": {
                                         "enabled": true
                                       },
                              "pycodestyle": {
                                         "enabled": true
                                       },
                              "pydocstyle": {
                                         "enabled": false,
                                         "match": "(?!test_).*\\.py",
                                         "matchDir": "[^\\.].*"
                                       },
                              "pyflakes": {
                                         "enabled": true
                                       },
                              "rope_completion": {
                                         "enabled": true
                                       },
                              "yapf": {
                                         "enabled": true
                                      }
                           }
                  }
           }
      }
    }
}

4. nvim default editor์„ค์ •

sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi 
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 
sudo $ update-alternatives --config vim 
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor

 

1. Linux Outliner (Windows๋„ ๊ฐ€๋Šฅ)

https://www.giuspen.com/cherrytree/#downl

  1. Install wget and Cherrytree dependencies.

  2.  

    sudo apt install wget python-dbus python-chardet python-enchant libcanberra-gtk-module libgtksourceview2.0-0 libgtksourceview2.0-common python-cairo python-gobject-2 python-gtk2 python-numpy

  3. Download python-gtksourceview2.

    wget http://ftp.br.debian.org/debian/pool/main/p/pygtksourceview/python-gtksourceview2_2.10.1-3_amd64.deb

  4. Install python-gtksourceview2.

    sudo dpkg -i python-gtksourceview2_2.10.1-3_amd64.deb

  5. Download Cherrytree.

    wget http://www.giuspen.com/software/cherrytree_0.38.9-0_all.deb

  6. Install Cherrytree.

    sudo dpkg -i cherrytree_0.38.9-0_all.deb

 

cherrytree – giuspen

A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file. Written by Giuseppe Penone (aka giuspen). The user manual online html and downloadable ctb written and maintained by Ellie Bor

www.giuspen.com

https://stackedit.io/app

 

 

StackEdit

 

stackedit.io

 

 

StackEdit

 

stackedit.io

https://www.tagspaces.org/

 

TagSpaces - Your versatile file organizer

TagSpaces is an open source platform for personal data management. With TagSpaces you can manage and organize the files and folders on your pc, mac or smart phone.

www.tagspaces.org

https://joplinapp.org/

 

Joplin - an open source note taking and to-do application with synchronisation capabilities

Hacktoberfest ๐ŸŽƒ is back this year again for our great pleasure ^^ To participate go to https://hacktoberfest.digitalocean.com/, log in (with you GitHub account) and you are ready to get in. Next, go dive into the Joplin issues list labelled "Hacktoberfest"

joplinapp.org

2. Albert

๋งฅ์˜ ์•Œํ”„๋ ˆ๋“œ์™€ ๊ฐ™์€ ์—ญํ• ์„ ํ•œ๋‹ค.

Ctrl + tabํ‚ค๋กœ ๋‹จ์ถ•ํ‚ค๋ฅผ ์ง€์ •ํ•ด๋†“์œผ๋ฉด ํŽธ๋ฆฌํ•˜๋‹ค.

https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert

 

Install package home:manuelschneid3r / albert

Packages for xUbuntu 19.10: albert_0.16.1_amd64.deb

software.opensuse.org

3. ํ•œ๊ธ€ํฐํŠธ ์„ค์ •

๋‚˜๋ˆ”๊ธ€๊ผด

$ sudo apt install fonts-nanum

๋‚˜๋ˆ”๊ณ ๋”• ์ฝ”๋”ฉ์ฒด

$ sudo apt install fonts-nanum-coding

 

4. shutter (Capture ํ”„๋กœ๊ทธ๋žจ)

sudo add-apt-repository ppa:linuxuprising/shutter

sudo apt install shutter

sudo apt remove --auto-remove shutter

 

4. Hangul Input Method

https://nimf-i18n.gitlab.io/ko/installation/

sudo apt-add-repository ppa:hodong/nimf -y

sudo apt update

sudo apt-get install im-config zenity

sudo apt install nimf nimf-libhangul -y

im-config -n nimf

 

5. Notebook Battery Saving

sudo add-apt-repository ppa:linrunner/tlpsudo

apt-get updatesudo

apt-get install tlp tlp-rdw

(์”ฝํฌํŒจ๋“œ ์œ ์ €๋ผ๋ฉด ์•„๋ž˜ ๋‚ด์šฉ ์ถ”๊ฐ€)sudo apt-get install tp-smapi-dkms acpi-call-dkms

 

6. ZSH Theme์„ค์ •

powerlevel10k

https://github.com/romkatv/powerlevel10k

 

romkatv/powerlevel10k

A fast reimplementation of Powerlevel9k ZSH theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

 

7. XFCE Terminal Theme

https://www.maketecheasier.com/best-xfce-terminal-themes/

 

5 XFCE Terminal Themes You Should Try - Make Tech Easier

There are numerous ways to spruce up the XFCE terminal. For those who want to tweak their terminal, here are five great XFCE terminal themes to check out.

www.maketecheasier.com

https://github.com/nthirtyone/mariana-scheme

 

nthirtyone/mariana-scheme

Colour scheme from ST3 for XFCE4 Terminal. Contribute to nthirtyone/mariana-scheme development by creating an account on GitHub.

github.com


8. emacs์ตœ์‹ ๋ฒ„์ „(28๋ฒ„์ „)์„ค์น˜

Repository๋ฅผ ์ถ”๊ฐ€ ํ•œ๋‹ค.

[28๋ฒ„์ „]

sudo add-apt-repository ppa:ubuntu-elisp/ppa 
sudo apt-get update 
sudo apt install emacs-snapshot

[25๋ฒ„์ „]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs25

[26๋ฒ„์ „]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs26

[๊ธฐ๋ณธ ์—๋””ํ„ฐ ๋ณ€๊ฒฝ]

sudo update-alternatives --config emacs

user@user-desktop:~$ update-alternatives --config emacs
There are 2 choices for the alternative emacs (providing /usr/bin/emacs).

  Selection    Path                     Priority   Status
------------------------------------------------------------
  0            /usr/bin/emacs-snapshot   27        auto mode
* 1            /usr/bin/emacs-snapshot   27        manual mode
  2            /usr/bin/emacs24-x        27        manual mode

ssl ์ธ์ฆ์„œ(*.crt)ํŒŒ์ผ์„ ์ค€๋น„ํ•œ๋‹ค.

 

# trust anchor localhost.crt

# trust extract-compat

 

/usr/lib/python3.7/site-packages/pacman_mirrors/functions/ ์•„๋ž˜์—

httpFn.py๋ฅผ ์ˆ˜์ •ํ•œ๋‹ค.

 

context = ssl._create_unverified_context()

response = urllib.request.urlopen(requests, data=data.encode('utf-8'), context=context)

 

 

๋น„๊ต Bagging Boosting
ํŠน์ง•

๋ณ‘๋ ฌ ์•™์ƒ๋ธ” ๋ชจ๋ธ

(๊ฐ ๋ชจ๋ธ์€ ์„œ๋กœ ๋…๋ฆฝ์ )

์—ฐ์† ์•™์ƒ๋ธ”

(์ด์ „ ๋ชจ๋ธ์˜ ์˜ค๋ฅ˜๋ฅผ ๊ณ ๋ ค)

๋ชฉ์  Variance ๊ฐ์†Œ Bias ๊ฐ์†Œ
์ ํ•ฉํ•œ ์ƒํ™ฉ

๋ณต์žกํ•œ ๋ชจ๋ธ

(High Variance, Low Bias)

Low Variance, High Bias ๋ชจ๋ธ
๋Œ€ํ‘œ ์•Œ๊ณ ๋ฆฌ์ฆ˜ Random Forest Gradient Boosting, AdaBoost
Sampling Randomg Sampling Random Sampling with weight on error

์ฐธ๊ณ  : https://www.slideshare.net/freepsw/boosting-bagging-vs-boosting

+ Recent posts