Unknown MySQL server host
when use set up your mysql host ,
Don't type the port number .
for example , MySQL server host 127.3.39.129:3306 -> 127.3.39.129
Mysql connection | OpenShift by Red Hat
https://www.openshift.com/forums/openshift/mysql-connection
公告版位
目前分類:tech_note (35)
- Nov 29 Fri 2013 15:45
[openshift]Unknown MySQL server host
- Nov 28 Thu 2013 16:52
[openshift] use cron
先到 console 加入一個 cron cartridge
在到
.openshift/cron]{16:54}
$ tree
.
├── README.cron
├── daily
├── hourly
├── minutely
│ └── echodate.sh
- Nov 14 Thu 2013 16:33
[git]multiple remote repo bitbucket , github ,and your git server
可以使用 git remote add
git remote add bitbucket https://peicheng@bitbucket.org/peicheng/13pcproject.git
git push -u bitbucket
但是這樣要每次都push新的code,可能要下多次指令。
可以增加一個新的 remote
# cat .git/config
[remote "all"]
url = https://peicheng@bitbucket.org/peicheng/13pcproject.git
- Nov 14 Thu 2013 00:28
[mysql]equality propagation
equality propagation
MySQL Bugs: #30342: Equality propagation can make optimization much slower
http://bugs.mysql.com/bug.php?id=30342
MySQL 数据库优化(12)Limitations of the MySQL Query Optimizer 道阻且长
https://www.chenyajun.com/2009/01/03/1657
About MySQL development (Optimizer mainly): Optimizer tracing: how to configure it
- Aug 06 Tue 2013 14:16
[ML]Principal Components Analysis 主成分分析
Principal Components Analysis
什麼時候要用主成分分析
主成分分析與一般的迴歸分析
投影到 x 為target 為算 線到 點到線的 x距離最大
投影到 y 為target 為算 線到 點到線的 y距離最大
而做PCA就是找出正交垂直的最大值
- Jul 30 Tue 2013 17:19
[note]the c10 problem
hence the name C10k - concurrent ten thousand connections
1萬 併發連線的問題
C10k problem - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/C10k_problem
The C10K problem翻译 - fll - 博客园
http://www.cnblogs.com/fll/archive/2008/05/17/1201540.html
Http | Reference Guide | Elasticsearch
http://www.elasticsearch.org/guide/reference/modules/http/
- Jul 24 Wed 2013 10:49
[news]金山雲 楊鋼 雲存儲市場已趨於成熟
金山云杨钢:云存储市场已趋于成熟-CSDN.NET
http://www.csdn.net/article/a/2013-07-19/15816089
影片內有個採訪,講到雲端硬碟 雲存儲 的商業模式,
雲服務的按需付費,再來就是跟協力廠商把市場做大。
用戶的體驗而不只是個用戶數字。
- Jul 16 Tue 2013 11:11
[think]Data Scientist 關於 twitter的資料科學家 數據科學家 數據專家
[think]關於 twitter的資料科學家 數據科學家 數據專家
非常有趣的問題關於最近新興的一個名詞,"Data Scientist "。
我想這並不是一門新興的學問也不是單一目標就可以成為資料科學家。
起碼要有,
- 自動化處理資料的經驗
- 怎麼分析的know-how(需要怎樣的output)
- visualization 可視化分析 就是告訴你數據算完會長怎樣。
- May 01 Wed 2013 21:36
[mac]change hostname in mac
root@tw-pcliao1[/etc]{21:37}
# scutil --set HostName pcmac
- Apr 15 Mon 2013 09:57
[data]截面數據
按照被描述的對象與時間的關係,可以將統計數據分為截面數據和時間序列數據。截面數據是在相同或近似相同的時間點上收集的數據,它所描述的是現像在某一時刻的變化情況。例如,2011年末房山區常住人口96.7萬人就是截面數據;時間序列數據是在不同時間上收集到的數據。它所描述的是現象隨時間而變化的情況,例如,2001—2011年房山區常住人口變動數據就是時間序列數據。
截面数据和时间序列数据
http://fsh.bjstats.gov.cn/zsyd/31291.htm
- Apr 02 Tue 2013 11:58
[design pattern]Singleton 模式
Singleton 模式
http://caterpillar.onlyfun.net/Gossip/DesignPattern/SingletonPattern.htm
- Dec 07 Fri 2012 11:05
[puppet]puppet Serving Module Files
That is to say, if a module named test_module is installed in the central server’s /etc/puppet/modules directory,
the following puppet: URI…
puppet:///modules/test_module/testfile.txt
All puppet file server URIs are structured as follows:
puppet://{server hostname (optional)}/{mount point}/{remainder of path}
- Nov 29 Thu 2012 20:16
[chrome]get your all tab url and title extensions
where is google chrome extensions store
~/Library/Application Support/Google/Chrome/Default/Extensions/
you can find the app id maping to dir
function list(tabs) {
var contents = '';
for (var i = 0; i
- Nov 27 Tue 2012 16:34
[elaticsearch]elasticsearch 了解 index stats
有時候想要看現在的 records 筆數與index size除了進去系統看實體index size外,
可直接使用 elastic search api。
$curl -XGET localhost:9200/_stat?pretty=true
{
"ok" : true,
"_shards" : {
"total" : 80,
- Nov 24 Sat 2012 02:47
AppleUSBEthernet::monitorLinkStatus – Link down, Device
ERROR – AppleUSBEthernet: monitorLinkStatus – Link partner register is bad « ComplexIT Articles
http://complexit.se/blog/2012/10/06/error-appleusbethernet-monitorlinkstatus-link-partner-register-is-bad/
- Nov 21 Wed 2012 17:17
[hadoop]ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in
ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /var/opt/cdh3/cluster/dfs/dn: namenode namespaceID = 1134851682; datanode namespaceID = 1188299446
rm -rf /var/opt/cdh3/cluster/dfs/dn/*
Re: jobtracker not starting up
http://mail-archives.apache.org/mod_mbox/hadoop-common-user/201102.mbox/%3C30936184.post@talk.nabble.com%3E
- Nov 12 Mon 2012 10:32
[xenserver] xenserver 掛載 本地 iso
[root@xenserver-hy03 ~]# vgdisplay
--- Volume group ---
VG Name VG_XenStorage-6049dfd0-702f-fe3b-f1f3-1ae286f1d34d
System ID
Format lvm2
Metadata Areas 4
Metadata Sequence No 61
VG Access read/write
- Nov 06 Tue 2012 10:40
[mahout]mahout recommender step
一般而言再使用mahout recommender來說,都有幾個步驟。
- 建立模型
- 計算相似度
- 找k-nearest neighbor
- build recommender engine
public static void main (String args[])throws Exception{
DataModel model =new FileDataModel(new File("data/intro.csv"));
UserSimilarity similarity =new PearsonCorrelationSimilarity(model);
UserNeighborhood neighborhood =new NearestNUserNeighborhood(2,similarity,model);
- Oct 31 Wed 2012 10:35
[mahout]run integration example
peicheng@TW-:~/code/mahout-distribution-0.7111/integration$ mvn jetty:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Mahout Integration
[INFO] task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
- Oct 28 Sun 2012 11:09
[facebbook]graph api remove offline access token
[facebbook]graph api remove offline access token
移除了offline_accessc後,除了開始的兩個小時外,還可以另外延長到60天。
fbconsole/README.md at master · facebook/fbconsole
https://github.com/facebook/fbconsole/blob/master/README.md
Removal of offline_access permission - Facebook 開發人員
http://developers.facebook.com/roadmap/offline-access-removal/
Extending Access Tokens - Facebook 開發人員
http://developers.facebook.com/docs/howtos/login/extending-tokens/