今天試著編譯 elsarticle-ecrc.zip 裡面的tex檔, 遇到這個錯誤訊息
! Font U/psy/m/n/10=psyr at 10.0pt not loadable: Metric (TFM) file not found.
"Well what it says: a tfm-file is missing. Install with the package manager the package "symbol"."
https://sourceforge.net/p/miktex/mailman/message/26506674/
按照那篇的說法, 就是去裝 symbol 這個套件就好了
只是後來還有遇到一個錯誤訊息, 有提到lineno這個名字, 再多裝一個lineno就好了
2017年10月11日 星期三
2017年10月6日 星期五
神奇的latex錯誤訊息
原本在實驗室電腦編中文的latex, 都沒問題
然後改用筆電的時候, 同樣的安裝流程卻無法編譯成功, 會一直出現錯誤訊息
Erroneous variable \c__fontspec_shape_n_n_tl used!
(我只有記錄到這句 XD)
後來仔細看錯誤訊息, 他有提到 fontspec 這個套件
然後就用package manager搜尋這個套件, 把它砍掉, 然後再安裝
就突然可以了 囧!!!!!
此刻心情就像這個圖片一樣
http://s2.quickmeme.com/img/03/031b11a5e7a6f752ddde008e257d1070c30e10ec1c7617d3ae1a309493d75f84.jpg
It works!! I don't know why.
It doen't work!! I don't know why.
然後改用筆電的時候, 同樣的安裝流程卻無法編譯成功, 會一直出現錯誤訊息
Erroneous variable \c__fontspec_shape_n_n_tl used!
(我只有記錄到這句 XD)
後來仔細看錯誤訊息, 他有提到 fontspec 這個套件
然後就用package manager搜尋這個套件, 把它砍掉, 然後再安裝
就突然可以了 囧!!!!!
此刻心情就像這個圖片一樣
http://s2.quickmeme.com/img/03/031b11a5e7a6f752ddde008e257d1070c30e10ec1c7617d3ae1a309493d75f84.jpg
It works!! I don't know why.
It doen't work!! I don't know why.
----
發完廢文, 繼續面對報告 ˊ_>ˋ
2017年10月3日 星期二
C:\Windows\Installer 裡面的資料
處理 C:\Windows\Installer 裡面的資料 (佔用空間)
簡單說, 就是把這邊的資料移到另一顆硬碟, 然後再建立link就看起來好像沒影響
1. 複製資料到另一顆硬碟 ex: G:\C_windows\Installer
2. 刪除原本的資料夾 rmdir /s /q C:\Windows\Installer
3. 建立連結 mklink /D C:\Windows\Installer G:\C_windows\Installer
https://superuser.com/questions/707767/how-can-i-free-up-drive-space-from-the-windows-installer-folder-without-killing
簡單說, 就是把這邊的資料移到另一顆硬碟, 然後再建立link就看起來好像沒影響
1. 複製資料到另一顆硬碟 ex: G:\C_windows\Installer
2. 刪除原本的資料夾 rmdir /s /q C:\Windows\Installer
3. 建立連結 mklink /D C:\Windows\Installer G:\C_windows\Installer
https://superuser.com/questions/707767/how-can-i-free-up-drive-space-from-the-windows-installer-folder-without-killing
2017年9月27日 星期三
2017年9月14日 星期四
設定群組信箱
久違的更新 XD
之前實驗室的mail server有設定群組信箱 (/etc/aliases)
然後就可以把信自動轉寄到裡面的人
只是gmail好像有調整一些垃圾信的判斷方式(!?)
後來發現群組信箱的轉寄都很常卡住 QQ
使用非gmail的人可以即時收到信 XD (ex: hotmail)
後來翻翻log, 有看到這串網址
大量寄件者指南
https://support.google.com/mail/answer/81126?hl=zh-Hant
看到這一個項目
* 在郵件中加入 [Precedence: bulk] 標頭欄位,指明其為大量郵件。
然後就研究一下mail server的設定
在這邊找到討論串
https://unix.stackexchange.com/questions/44123/add-header-to-outgoing-email-with-postfix
1. 修改 /etc/postfix/main.cf, 把 header_checks 設定成這個路徑 (檔名可自訂)
header_checks = regexp:/etc/postfix/my_custom_header
2. 然後再建立 /etc/postfix/my_custom_header 這個檔案, 再加上這句
/^Content-Transfer-Encoding:/i PREPEND Precedence: bulk
3. 重新啟動mail server: /etc/init.d/postfix restart
目前看起來好像群組信箱復活了(!?)
再觀察一段時間吧 科科
之前實驗室的mail server有設定群組信箱 (/etc/aliases)
然後就可以把信自動轉寄到裡面的人
只是gmail好像有調整一些垃圾信的判斷方式(!?)
後來發現群組信箱的轉寄都很常卡住 QQ
使用非gmail的人可以即時收到信 XD (ex: hotmail)
後來翻翻log, 有看到這串網址
大量寄件者指南
https://support.google.com/mail/answer/81126?hl=zh-Hant
看到這一個項目
* 在郵件中加入 [Precedence: bulk] 標頭欄位,指明其為大量郵件。
然後就研究一下mail server的設定
在這邊找到討論串
https://unix.stackexchange.com/questions/44123/add-header-to-outgoing-email-with-postfix
1. 修改 /etc/postfix/main.cf, 把 header_checks 設定成這個路徑 (檔名可自訂)
header_checks = regexp:/etc/postfix/my_custom_header
2. 然後再建立 /etc/postfix/my_custom_header 這個檔案, 再加上這句
/^Content-Transfer-Encoding:/i PREPEND Precedence: bulk
3. 重新啟動mail server: /etc/init.d/postfix restart
目前看起來好像群組信箱復活了(!?)
再觀察一段時間吧 科科
2016年12月7日 星期三
用命令列的方式設定WIFI
用命令列的方式設定WIFI
https://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/
----
其實原本都好好的(!?)
很久沒打開, 剛剛打開時突然發現無法連到wifi 囧!!!
網路重新啟動N次也是一樣, 後來就到處看設定檔
原本這個檔案有設定多組ssid
/etc/wpa_supplicant/wpa_supplicant.conf
後來只留一組就突然連線成功了 ˊ_>ˋ
所以是建議只留一組就好!? 平常用#註解起來, 需要時再打開? XD
https://www.raspberrypi.com.tw/2152/setting-up-wifi-with-the-command-line/
----
其實原本都好好的(!?)
很久沒打開, 剛剛打開時突然發現無法連到wifi 囧!!!
網路重新啟動N次也是一樣, 後來就到處看設定檔
原本這個檔案有設定多組ssid
/etc/wpa_supplicant/wpa_supplicant.conf
後來只留一組就突然連線成功了 ˊ_>ˋ
所以是建議只留一組就好!? 平常用#註解起來, 需要時再打開? XD
2016年11月15日 星期二
asus ux305ua 滑鼠手勢突然失效
前一陣子不知道怎麼搞的, 滑鼠手勢突然GG orz....
後來重新安裝程式也不行, 想移除也怪怪的, 會顯示 找不到 pre_all.bat
剛剛四處亂按, 似乎成功了 XDDD
------------
去新增移除程式, 把 ATK Packapge 與 ASUS Smart Gesture 解除安裝
只是我之前解除安裝 ASUS Smart Gesture, 都會出現錯誤訊息
可是在新增移除程式的畫面裡, 在這個程式上按右鍵, 選"變更"
他就會重新安裝ASUS Smart Gesture了, 然後馬上移除程式, 就可以解除安裝了 XD
接著安裝這兩個驅動
ATKPackage_Win10_64_VER100039
SmartGesture_WIN10_64_VER405
然後再重開機, 滑鼠手勢終於回來了 QAQ
-------------
只是為啥會突然失效啊? 真怪 -.-
後來重新安裝程式也不行, 想移除也怪怪的, 會顯示 找不到 pre_all.bat
剛剛四處亂按, 似乎成功了 XDDD
------------
去新增移除程式, 把 ATK Packapge 與 ASUS Smart Gesture 解除安裝
只是我之前解除安裝 ASUS Smart Gesture, 都會出現錯誤訊息
可是在新增移除程式的畫面裡, 在這個程式上按右鍵, 選"變更"
他就會重新安裝ASUS Smart Gesture了, 然後馬上移除程式, 就可以解除安裝了 XD
接著安裝這兩個驅動
ATKPackage_Win10_64_VER100039
SmartGesture_WIN10_64_VER405
然後再重開機, 滑鼠手勢終於回來了 QAQ
-------------
只是為啥會突然失效啊? 真怪 -.-
2016年4月1日 星期五
latex error
最近用win10跑latex, 同樣的東西在XP可以編, 可是win10就不行 QQ
一直出現這個錯誤訊息:
has a comma at the end for entry while executing
後來在這邊看到相同的問題
http://tex.stackexchange.com/questions/156377/when-running-bibtex-with-a-statement-that-has-a-comma-at-the-end-this-is-obscur
一直出現這個錯誤訊息:
has a comma at the end for entry while executing
後來在這邊看到相同的問題
http://tex.stackexchange.com/questions/156377/when-running-bibtex-with-a-statement-that-has-a-comma-at-the-end-this-is-obscur
照他的方式, 把bib裡面的 author 改成雙括號 {{ }}
像這樣:
author = {{XXXX XXXXX}},
2016年3月8日 星期二
壓縮虛擬機的硬碟
環境: Virtualbox(win7) + Fedora虛擬機
作法參考
http://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size
在linux虛擬機裡面, 產生一個很大的檔案把全部空間占滿
sudo dd if=/dev/zero of=/bigemptyfile bs=4096k
然後再把它刪掉
sudo rm -f /bigemptyfile
之後再去virtualbox安裝程式資料夾裡, 使用VBoxManage來壓縮磁碟機
(直接跑這個似乎沒啥效果, 要先做前面的步驟 -.-)
VBoxManage.exe modifyhd c:\path\to\thedisk.vdi --compact
作法參考
http://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size
在linux虛擬機裡面, 產生一個很大的檔案把全部空間占滿
sudo dd if=/dev/zero of=/bigemptyfile bs=4096k
然後再把它刪掉
sudo rm -f /bigemptyfile
之後再去virtualbox安裝程式資料夾裡, 使用VBoxManage來壓縮磁碟機
(直接跑這個似乎沒啥效果, 要先做前面的步驟 -.-)
VBoxManage.exe modifyhd c:\path\to\thedisk.vdi --compact
2016年2月19日 星期五
CSThreshold, RXThreshold in ns2
複製下來當備份 XD
原文沒有斷行, 好難閱讀 QQ
from http://mailman.isi.edu/pipermail/ns-users/2004-June/043128.html
Well, it is actually the other way. RXthreshold and CSthreshold are inherent
properties of the card (that depends on modulation/demodulation, among other
things). So for usual commercial cards, CSThreshold is considered to be about
-90dBm (exact numbers are usually not released by the manufacturers).
RXThreshold depends on the packet size. In my experience, -65 dBm is sufficient
to decode very large packets (about 2000 byte) with very low probability of error;
for very small packets, even -80 dBm may be enough. Also remember that these
are not parameters of the card; meaning that you cannot control them.
It just so happens that the card can reliably detect carrier only when
the power is more than -90dBm; same with the packet. threshold.cc actually calculates what should the RXThreshold be if you "want"
the receive range to be 250m (or whatever is the distance). The same program
will tell you what the CSThreshold should be if you want the carrier sense
range to be 550m (which should be around -90 dBm). So it is simply provides
a way to "cheat" in the simulation. In other words, if you want to simulate
a situation where the RX-range is 400m and CSrange is 450m, using threshold.cc
you can set the RXthresh_ and CSThresh_ appropriately, but that does not
mean that there exists a physical card which will have those values of RX
and CS thresholds.
訂閱:
文章 (Atom)