Jan 13, 2018

What’s the difference between data science, machine learning, and artificial intelligence?


The fields do have a great deal of overlap. An oversimplified definition of the difference between the three fields:
  • Data science produces insights
  • Machine learning produces predictions
  • Artificial intelligence produces actions

David Robinson
http://varianceexplained.org/r/ds-ml-ai/

Nov 20, 2017

PuDB - visual Python debugger

Some useful shortcut keys:


Context
Purpose
Key

Move around dialogs
Arrow buttons

Focus console window
Ctrl X

Open external console (such as bpython)
!

See output
o

Open a module file
m

Focus variables window
V
Variable
expand/collapse
\ (backslash)

Wrap lines
w

Change sidebar width
+  and -

Change window size
[ and ]




Focus code window
C
(note: capitalized character)
Code
Step out
f

Run to cursor
t

Continue
c

Step into
s

Next
n

start/end
G and g

Go to line
L

Focus stack trace
S

Focus breakpoint
B

Toogle breakpoint
b

Redraw screen
Ctrl L

Nov 7, 2017

Linux dev apps

https://github.com/Philip-Scott/Notes-up

https://github.com/lainsce/yishu/


https://github.com/zealdocs/zeal
Documents

https://github.com/horst3180/arc-theme

https://github.com/mypaint/mypaint

https://git-cola.github.io/


Web based

Presentation
https://yhatt.github.io/marp/

Time management
https://github.com/overshard/timestrap

Offline save
https://github.com/wallabag/wallabag

Photo albums
https://github.com/electerious/Lychee

Great Javascript libraries

http://riotjs.com
I don't need ReactJS. This is much better in term of control and feel,
in sacrifice of eco


http://blissfuljs.com
I don't need jquery

Oh don't edit URI manually, save your life:
https://github.com/medialize/URI.js

A pleasant JS/CSS loader
https://github.com/muicss/loadjs

Small messaging
https://github.com/CodeSeven/toastr
http://justindomingue.github.io/ohSnap/

Picker
http://christophilus.com/tiny-date-picker/

Drag & drop
https://draggabilly.desandro.com/

Best WYSIWYG
https://github.com/summernote/summernote

Great Python libraries


webassets - framework independent asset manage (+Coffee/SASS/minify...)
https://github.com/miracle2k/webassets

Enteprise CRUD
https://github.com/odoo/odoo

Fuzzy string match
https://github.com/seatgeek/fuzzywuzzy

Encryption and sigining
https://github.com/pyca/pynacl

Date & time
https://github.com/crsmithdev/arrow

Visual PDB
https://github.com/inducer/pudb

Validate! Validate!
https://github.com/pyeve/cerberus

theskumar / python-dotenv

Aug 25, 2017

Systemd log files

Systemd only store file in disk if /var/log/journal folder exists.

Restrict log grow

# /etc/systemd/journald.conf
SystemMaxUse=1G
SystemKeepFree=512M
RuntimeMaxUse=512M
RuntimeKeepFree=512M
Reload
systemctl restart  systemd-journald


Clean manually

journalctl --vacuum-size=1G

Archlinux

* Nice feature: freeze Arch binary to a specific date, so I can install without updates
until I want :D

https://wiki.archlinux.org/index.php/Arch_Linux_Archive


* Other way to run container, without Docker
https://wiki.archlinux.org/index.php/Systemd-nspawn



Apr 2, 2017

Docker dangerous bypass UFW firewall

* UFW doesn't restrict Docker, specifically Docker bind IPV6.
* Any services that using `ports` exposing to all interfaces, and dangerously not under firewall!
* Workaround:

ports:
            - "127.0.0.1:8080:80"

Jan 6, 2017

愛は愛から飛び去る翼があるに違いないが、また飛んで戻って来る翼も持っているに違いない。 Love must have wings to fly away from love, And to fly back again.

Dec 24, 2016

Fedora 25 (Gnome)

* Many think work out of box:

 - Japanese / Vietnamese input
 - Terminal notify when jobs done.

* Easy to create usb boot

5 stars!

Dec 23, 2016

Roof painting

Normally all rust have to be taken and the surface should be clean
But I'm lazy so I used a paint that directly suitable to paint over rust. サビの上からそのまま塗れる塗料

アサヒペン 油性高耐久アクリルトタン用塗料
Although it's oil based, the smell is weak and pleasant to work with.











1/4th of the work. to be continued.

Nov 26, 2016

資産

がんばってローンを支払い終えたら、その家は資産でしょうか?資産とは、お金を生み出す場所。お金を生み出すことなく、税金がかかり、補修費用が必要になるのであれば、それは負債です
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1438270044

This is biggest myth about normal real estate in Japan, using 35 years "flat" loan.
At the end of loan, it will not become an asset, but a burden.

Nov 24, 2016

Blog about life in Japan

https://catforehead.com

Specialized about real easte

Daily
http://www.survivingnjapan.com/

http://foreignsalaryman.blogspot.jp/

Nov 18, 2016

Pipe



Source http://www.rakuten.ne.jp/gold/suidou/html/sunpou_neji.htm

PJ1/2 : mainly faucet
G1/2: pipe, can connect to PJ1/2
W26山20: faucet output, many water related devices use this interface. Cannot connect to PJ1/2 an G1/2. Need a converter

ホース: free-size pipe

おねじ: male part
めねじ: female part

Aug 22, 2016

Multiple SSL on same IP

There is a known web server limits, make it hard to host many SSL on same server with only 1 IP address. (see http://nginx.org/en/docs/http/configuring_https_servers.html )

An SSL certificate with several names seems to be the simplest solution. Here is outline of 1 way to do it:
* Automate using https://github.com/srvrco/getssl to get certificates
* Let's encrypt with 1 main domain, other domains consider as alternative names

Steps
1. Initialize configurations: getssl -c MAIN.DOMAIN

2. Change CA to production, ACCOUNT_EMAIL in ~/.getssl/getssl.cfg

3. Enter SANS, ACL,RELOAD_CMD in ~/.getssl/MAIN.DOMAIN/getssl.cfg

ACL is path (public accessible via URL) to verify your domains.
it must have same number of lines as number of your domains.

RELOAD_CMD can be 
sudo nginx -s reload
Let's current user is deploy. visudo to allow: 
deploy ALL=NOPASSWD:/usr/sbin/nginx

4. Get certificates: getssl MAIN.DOMAIN
5. Configure nginx to use certificates in ~/.getssl/MAIN.DOMAIN
6. Automate renew using cron 

23  5 * * * /home/deploy/scripts/getssl -u -a -q

Jul 31, 2016

住宅

マイホーム投資は勝つのがとても難しくなっています。まさに、「マイホーム購入は人生最大のギャンブル」と言っていいでしょう
http://toyokeizai.net/articles/-/33609?page=3

35年ローンだと35年後に老朽化で改築でまたローンですか? そうすると、一生資産でなく負債という現実

http://oshiete.goo.ne.jp/qa/5092417.html

自己資金比率が10%未満の場合におけるデフォルト率は、20%以上30%未満の場合に比べて2倍近くに達している。自己資金比率が高まるほどデフォルト率が下がることはいうまでもないだろう。


こんな理由で家を買ってはいけない!
その4「家賃がもったいないから」
http://diamond.jp/articles/-/35405?page=2


日本の問題はこの20年間でほとんど全ての所得階層で年間100万円くらい所得が減少している「1億総貧乏化」の方がより深刻な問題となっており、これが消費を抑圧するデフレの原因にもなっている

http://matome.naver.jp/odai/2139527800338666101

Jun 22, 2016

Caddy

I've just migrated all personal websites to Caddy, a new web server. It works great, out of box as promised ( https://caddyserver.com )