https://scotch.io/bar-talk/different-tricks-on-how-to-make-bootstrap-columns-all-the-same-height
ie window open variable undefined
Just like this problem
https://social.technet.microsoft.com/Forums/ie/en-US/466acbd2-9304-4714-9250-7669913d9a53/unable-to-pass-arguments-to-another-window-when-windowopen?forum=ieitprocurrentver
popupwindow = window.open();
popupwindow.a = “xxx”;
However, in popupwindow, when use:
window.a shows “undefined”
This happened in IE, but work as expected in Chrome. (window.a shows “xxx” )
My workaround is:
window.a = “xxx”;
popupwindow = window.open();
In popupwindow:
window.opener.a shows “xxx”
mac brew pyenv import tkinter
I use the homebrew and the pyenv to install python.
When I want to import tkinter, there is a error message:
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named ‘_tkinter’
Solve:
pyenv uninstall 3.5.1
brew tap Homebrew/dupes
brew install tcl-tk
pyenv install 3.5.1
If there is a “zipimport” error when installing the python, solve by “xcode-select –install”.
Reference:
http://qiita.com/hokkun-k/items/223b1125b814621a0c0e
QGIS
向量 => 地理運算工具 => Buffer
向量 => 地理運算工具 => Intersect
向量 => 地理運算工具 => Dissolve
屬性表格 => 開啟欄位計算
learn machine learning
From: https://www.quora.com/Machine-Learning/How-do-I-learn-machine-learning-1
I didn’t do a PhD on machine learning (was mostly focused on Signal Processing and Software Engineering) so I get this question a lot. The typical person that asks me this question is a software engineer with a computer science background, so I will address it from that perspective. If you are a Math major, for example, my answer might be less useful.
The first thing I tell someone who wants to get into machine learning is to take Andrew Ng’s online course. I think Ng’s course is very much to-the-point and very well organized, so it is a great introduction for someone wanting to get into ML. I am surprised when people tell me the course is “too basic” or “too superficial”. If they tell me that I ask them to explain the difference between Logistic Regression and Linear Kernel SVMs, PCA vs. Matrix Factorization, regularization, or gradient descent. I have interviewed candidates who claimed years of ML experience that did not know the answer to these questions. They are all clearly explained in Ng’s course. There are other online courses you can take after this one such as
Mining Massive Datasets or Recommender Systems, but at this point you are mostly ready to go to the next step.My recommended next step is the following. Get a good ML book (my list below), read the first intro chapters, and then jump to whatever chapter includes an algorithm you are interested. Once you have found that algo, dive into it, understand all the details, and, especially, implement it. In the previous online course you would already have implemented some algorithms in Octave. But, here I am talking about implementing an algorithm from scratch in a “real” programming language. You can still start with an easy one such as L2-regularized Logistic Regression, or k-means, but you should also push yourself to implement more interesting ones such as LDA (Latent Dirichlet Allocation) or SVMs. You can use a reference implementation in one of the many existing libraries to make sure you are getting comparable results, but ideally you don’t want to look at the code but actually force yourself to implement it directly from the mathematical formulation in the book.
So, what are some good books to do this? Many have been mentioned before. Some of my favorite:
- Hastie, Tibshirani, and Friedman’s The Elements of Statistical Learning
- Bishop’s Pattern Recognition and Machine Learning* David Barber’s Bayesian Reasoning and Machine Learning
- Kevin Murphy’s Machine learning: a Probabilistic PerspectiveYou can also go directly to a research paper that introduces an algorithm or approach you are interested on and dive into it.
My main point is that machine learning is both about breadth as depth. You are expected to know the basics of the most important algorithms (see my answer to What are the top 10 data mining or machine learning algorithms?). On the other hand, you are also expected to understand low-level complicated details of algorithms and their implementation details. I think the approach I am describing addresses both these dimensions and I have seen it work.
Edit 08/26/2015
In response to some comments and questions, I feel that I should add another book recommendation. If you feel like you lack some background in Statistics, I would totally recommend:
- Larry Wasserman’s All of Statistics: A Concise Course in Statistical InferenceThis books cover all the topics in statistics that you need for understanding ML concepts. As a matter of fact, the book itself has a pretty good introduction to many of the typical ML approaches such as regression and classification.
iOS Missing IOS Distrubution signing identity
From:
https://dotblogs.com.tw/aken1215/2016/02/15/234033
1. 該不會又是該死的certificate過期了吧?可是回想一下,年初才全部更新過呀,全部都沒過期
2. 該不會又是certificate的私鑰找不到?於是就打開Key Chan,看到憑證和私鑰都存在.
3. 不合邏輯啊!該不會是provision profile選錯certificate?於是又重新從apple developer網頁下載provision profile 安裝完還是不行
4. 還是不行OOXX,心想,檢查一下Xcode的Target=>General=>Bundle identifier吧,還是沒錯….
5. 快沒招了,最後檢查XCode的Target => BuildSetting =>Code Signing ,還是沒錯….我暈….以上講了五個步驟,其實都跟本篇的解決方案無關,但這次真的是例外,上面五個步驟,在遇到類似這種錯誤訊息通常都是可以順利解決的.而這次,這些步 驟我至少重複玩了一小時,甚至還從頭到尾 建立CSR=>申請certificate=>建立provision profile=>下載安裝certificate=>下載安裝provision profile =>設定xocde全部跑過一次,還是無法解決.直到點開Key Chan裡的憑證,看到左下角有一個紅色叉叉寫著”無效的簽發者“才大致找到問題源頭,不看還好,一看心臟快停止,全部至少10多張憑證在同一時間全部都顯示這個訊息.不得已只好膜拜google大神…
https://developer.apple.com/support/certificates/expiration/ => apple 的解釋,大致上是說有一個叫做”The Apple Worldwide Developer Relations Certification Intermediate Certificate”的簽發人憑證即將在2016/2/14到期(謎之聲:不知道是apple裡的那位工程師不爽看大家在情人節放閃,故意在情人節要 捅大家),不過文章也有說,你不需要重新產生所有已存在的憑證,原本可以運作的APP也都會正常運作.大致重點就這樣.不過他是說你在運行的APP不會掛 掉,但可沒說你要是想發布新版本APP卻沒更新該憑證就會中招.
那要怎麼做呢?
1. https://developer.apple.com/certificationauthority/AppleWWDRCA.cer=>下載新版憑證
2. 將下載的憑證連續點兩下即可安裝
3. 打開Key Chan=>顯示方式=>顯示已過期憑證 =>在登入和系統的分類裡各有一張過期的憑證請把它刪除(謎之聲:沒刪除它不會套用你剛安裝的新憑證,這裏我又卡了半小時有吧,無言….)
4. 請檢查所有IOS憑證是否顯示綠色圈圈搭配”此憑證是有效的”訊息,如果有的話,恭喜,大功告成..
DIY NAS
NAS OS:
freenas => require 8G RAM
nas4free
openmediavault
I choose the openmediavault.
Notes:
- The drive that installed openmediavault cannot be the data drive.
- Install extra plugin from webUI ( http://omv-extras.org/simple/index.php?id=how-to-install-omv-extras-plugin ).
- In general setting, set the Session timeout to 0 to prevent logout.
multiple ssh key
http://stackoverflow.com/questions/7927750/specify-an-ssh-key-for-git-push-for-a-given-domain
https://gist.github.com/jexchan/2351996
docker notes on mac
List all containers:
docker ps -a`</pre>
Remover all stopped containers:
<pre style="background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;">`docker rm `docker ps -aq`
docker-machine ls
To Prevent the virtualbox machine use many memory
docker run elasticsearch on mac
First remember set up the config correctly.
Or you don’t mount config folder in the first time and copy the config by command:
docker cp <containerId>:/file/path/within/container /host/path/target
Run by this command:
docker run -d -p 9200:9200 -p 9300:9300 -v “$PWD/data”:/usr/share/elasticsearch/data -v “$PWD/config”:/usr/share/elasticsearch/config elasticsearch /bin/bash -c ‘usermod -u 1000 elasticsearch; gosu elasticsearch elasticsearch’
From:
https://hub.docker.com/_/elasticsearch/
/bin/bash -c 'usermod -u 1000 elasticsearch; gosu elasticsearch elasticsearch'