2016年6月30日 星期四

林全:若7天假不刪 股匯不開市打擊經濟

林全:若7天假不刪 股匯不開市打擊經濟

其實刪掉也可以,勞工改罷工處理

[nosetests] nose-progressive 配合item2 設定,使用三指直接點選開啟有問題的程式

1. nose-progressive是一個nosetest plug-in,主要功能可以顯示nosetest執行的進度,另外還有一些附加功能,

例如讓你方便開啟有問題的程式,他會貼出使用vi 當編輯器的指令,你可以配合item2 設定 使用三指會選擇整行

這樣只要在有問題的行數使用三指點選,就會自動開啟程式

NewImage

2016年6月27日 星期一

如何下載facebook 影片

1.使用Google Chrome瀏覽器

2.開啟facebook影片網址

3.把影片網址內的www 改成m.

https://www.facebook.com/TheMobile01/videos/10153806725463380/

https://m.facebook.com/TheMobile01/videos/10153806725463380/

4.把影片開啟全螢幕播放

5.點選右鍵,選擇影片下載,另外檔案即可把影片下載下來

2016年6月23日 星期四

如何把iphone 螢幕或鏡頭投射到你的Mac上面

@@使用現成的軟體

1.連接你的iphone 跟Mac

2.在你的Mac Pro 上面開啟QuickTime player

2.選擇新增新增影片錄製.開起錄影按鈕,就可以看到有鏡頭來源切換按鈕

 

NewImage

 

@@另外也可以使用一些第三方軟件,例如AirScanner 就支援wifi環境下面的投射

[Mac] how to open Jupiter notebook (ipython notebook) by one click

1. Install a simple command tool ‘nbopen'

  GitHub: https://github.com/takluyver/nbopen

# pip install nbopen

 

2.Use Mac Automator  to make a simple Mac Application

a. open Automator to make a application, which will execute a shell script.  It will pass all file parameter as input parameter

b.for loop to execute nbopen   Jupiter notebook

#Please make sure you can find nbopen in your terminate, if you encounter problem, you can try to give a full path of nbopen ().

## Here is the example on my laptop
for f in "$@"
do
/usr/local/bin/nbopen "$f" &
doneNewImage

2016年6月22日 星期三

[Solved] Resolved WD driver utility in Mac issues

[Problem]:

Always crashed when I tried to launch Mac WD Drive Utilities 2.0.3.30

[Solution]

A very stranger issue with special font in Font Book  on Mac

I have bought a WD thunderbolt Duo and I ever install driver 2.0.18 successfully.

But after that, there is no any version could be successful launched.  

Today, I found it was because  it lacked a font “Arial”.  After I enabled “Arial”, everything

works fine.

 

@@

NewImage

@@ raw log evnt

 

NewImage

2016年6月15日 星期三

[vmware] How to get a vm image from Esxi datastore directly

1. The datastore default path is  Esxi Server url with subfolder “folder"

ie.    https://[IP]/folder   with your Esxi username and password

 

2. you can use curl to download vm  file directly

 

curl -u [User]:[PWD] -k https://[ESXI]/folder/[VMimage]   -O

2016年6月14日 星期二

/bin/grep: Argument list too long

$ xargs --show-limits

Your environment variables take up 14474 bytes
POSIX upper limit on argument length (this system): 2604918
POSIX smallest allowable upper limit on argument length (all systems): 4096
Maximum length of command we could actually use: 2590444
Size of command buffer we are actually using: 131072

Execution of xargs will continue now, and it will try to read its input and run commands; if this is not what you wanted to happen, please type the end-of-file keystroke.
Warning: /bin/echo will be run at least once. If you do not want that to happen, then press the interrupt keystroke.
^C

2016年6月3日 星期五

不甘不脆的阿默蛋糕生日貴賓優惠簡訊

今天老婆很高興的傳了阿默蛋糕的生日優惠活動給我 我還特別提早下班 想說買個蛋糕給她 讓她快樂一下 結果阿默的櫃臺人員不清楚規定外 態度也不是很多 現場點開優惠一開 還真的不清不楚 手工蛋糕不算 其實85折 折扣本來就不多 要是沒預算就不要傳這種簡訊 我本來就是平常有在買阿默的人 今天卻因為感到不愉快 購物念頭 完全被打消了 真不知道 這活動的規畫人員到底在想什麼 

2016年6月2日 星期四

到底該不該支持制服解禁呢?

台灣的社會,前幾年有所謂的名嘴治國,大家喜歡聽名嘴的話來制定政策,這幾年呢?有所謂的網路意見領袖,

在網路上發表一些言論,然後就會有一推的跟隨者,制服該不該解禁,我當然是支持的,但在我的經驗里,要廢掉

制服前,應該先弄清楚制服的目的,像我以前念書的時候,學校規定穿制服是因為不想同學間在比較穿的好不好,

漂不漂亮,甚至還有更誇張的規定是襪子不能有標籤,因為國中生很愛比較,會比說我是穿Nike的等等,今天大家在提倡

廢除制服,我覺得沒錯,但真的野不需要把穿制服變成妖魔化,他的確好辨識,好管理,另外學生間也不用太花時間在打扮

上面,有錢沒錢的小孩都穿一樣的衣服上學,我是覺得現在應該很多學校有所謂的便服日,只要在提昇比例,或者說取消

沒穿制服的處罰即可,其實就我知道的還有不少大公司是需要穿制服的,我是真的覺得在身心理還沒成熟前,適當的規範

是好的

2016年6月1日 星期三

[hypriot] docker encounter "failed to start docker service"

Today I tried to connect to my hypriot cluster with node-2, I found it always failed to connect.

After did some investigation, I found there is no docker daemon.   I tried to restart docker daemon

it only  claim Job for docker.service failed and suggest to execute jounalctl -xn for details

Finally, I just found it just a resident docker.pid existed in /var/run.  After I delete it and restart the 

system, everything goes well.

##

sudo service docker restart
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
;//runHypriotOS: root@cl-node-2 in /var/run

How to restore a deleted onenote page

復原不小心誤刪的onenote