2016年12月28日 星期三

Mac 下如何查看dhcp 設定

 

查看網卡en1 的設定

#sudo ipconfig getpacket [en1]

 

更改成使用dhcp

#sudo ifconfig set [en1] dhcp

2016年12月22日 星期四

How to uninstall python package manually

1.安裝時,將安裝的檔案記錄下來,如果已經安裝過,可以重新安裝一次,得到file list之後再移除

python setup.py install --record files.txt

2.使用xargs 去刪除檔案

cat files.txt | xargs rm -rf

How to resolve brew install python 2.7.13 failed

#brew install python -debug -verbose

Google search : 指定特定日期的搜尋

只有的search keyword is date range:  日期格式為 Julian Day

date range:2457388-2457443    ( 2016/01/01 — 2016/02/25)

線上轉換 http://www.onlineconversion.com/julian_date.htm

公曆轉儒略日[編輯]

a14month12yyear4800ammonth12a3{\begin{matrix}a&=&\left\lfloor {\frac  {14-month}{12}}\right\rfloor \\\\y&=&year+4800-a\\\\m&=&month+12a-3\\\end{matrix}}

適用於格里曆日期(中午):

JDNday153m25365yy4y100y40032045{\begin{matrix}JDN&=&day+\left\lfloor {\frac  {153m+2}{5}}\right\rfloor +365y+\left\lfloor {\frac  {y}{4}}\right\rfloor -\left\lfloor {\frac  {y}{100}}\right\rfloor +\left\lfloor {\frac  {y}{400}}\right\rfloor -32045\end{matrix}}

適用於儒略曆日期(中午):

JDNday153m25365yy432083{\begin{matrix}JDN&=&day+\left\lfloor {\frac  {153m+2}{5}}\right\rfloor +365y+\left\lfloor {\frac  {y}{4}}\right\rfloor -32083\end{matrix}}

How to restore a deleted onenote page

復原不小心誤刪的onenote