2014年4月22日 星期二

神奇的滑鼠中鍵 XD

之前買了一個無線鍵盤滑鼠組 (mk520)

後來有送修過一次, 因為滑鼠中鍵無法使用 ~"~

然後這兩天又出現這個症狀了, 囧....

中鍵超方便的啊啊啊啊, 可以直接開新分頁 & 關閉分頁
不能使用很不方便耶 (無誤)

剛剛心血來潮去羅技的官網找找看有沒有啥程式可以下載
然後抓了一個setpoint的程式

結果裝好後竟然就恢復正常了 = ="
而且滑鼠的速度好像也變比較快了(?) XDD

反正重點是滑鼠中鍵恢復正常 科科~

--

補充: 後來還是不能用 ~"~
看樣子應該是中鍵又怪怪的 orz

2014年4月21日 星期一

使用ipe的ipelet跑power diagram

搞了老半天, 結果超簡單的, 用apt-get裝一下就好了 = ="

我還在那邊用source code下去編譯, 然後diagram的選項一直跑不出來  囧....

這次用的指令超簡單, 只有一個 XD
sudo apt-get install cgal*
 
這個打完後, 他會去安裝這四個東西
libcgal-demo
libcgal-dev
libcgal-ipelets
libcgal8

(ipe好像是本來就用apt-get裝好了!? 有點忘記順序 XD)

如果IPE裝好了, 上面那四個也裝好了
打開IPE, 會看到 Ipelets 裡面有 power diagram 可以用!!!!

自己畫幾個圓, 然後再去按那個選項, 整個power diagram就畫好了 (超感動)

只是接下來就要去研究那些點的座標位置了 ~"~

2014年4月16日 星期三

安裝CGAL

今天試著安裝CGAL, 可是有缺一些套件, log是說沒有GMP, MPFR, boost
 
然後裝完這幾個套件後就可以cmake了

sudo apt-get install libgmp3-dev
 
sudo apt-get install libmpfr-dev libmpfr-doc libmpfr4 libmpfr4-dbg
 
sudo apt-get install libboost-all-dev 

2014年4月8日 星期二

安裝octave - 2

終於成功安裝geometry了~~~~~~!!!  XD

大致的步驟如下 (不確定對不對)

sudo apt-get install octave
sudo apt-get install liboctave-dev

裝好後, 用sudo開啟octave

sudo octave

# 先裝 general套件, 他是geometry的相依性套件
pkg install -auto -forge general

# 然後再裝geometry
pkg install -auto -forge geometry

然後就看到radicalAxis了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

安裝octave

呃.... 好懶得打 XD
---------------------------------
[使用apt-get]

直接用apt-get install octave有可能會裝到舊版的, 如果想要安裝新版的話, 可以加入這些apt站台
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
 
然後就會自動安裝新版的octave了~ XD 
[ref] http://askubuntu.com/questions/194151/how-do-you-install-the-latest-version-of-gnu-octave
 
---------------------------------[無法執行]
在終端機打octave, 然後出現這個的話


bash: /usr/local/bin/octave: No such file or directory


可以打這幾個指令去修復
type svnsync
hash -r
或者是直接打這個 
hash -d svnsync 

[ref] http://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-paths-to-executables

---------------------------------
[使用source code]
總而言之, 遇到了一堆缺少套件

configure: error: cannot compile a simple Fortran program
    sudo apt-get install f2c gfortran libblas-dev liblapack-dev

WARNING: I need GNU Readline 4.2 or later
    sudo apt-get install libpcre3-dev libreadline-dev

OpenGL libs (GL and GLU) not found. Native graphics will be disabled.
    sudo apt-get install freeglut3 freeglut3-dev

configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
configure: WARNING: UMFPACK not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: qrupdate not found.  The QR & Cholesky updating functions will be slow.
configure: WARNING: AMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: COLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CCOLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CHOLMOD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CXSparse library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: cURL library not found.  The ftp objects, urlread and urlwrite functions will be disabled.
configure: WARNING: GLPK library not found.  The glpk function for solving linear programs will be disabled.
configure: WARNING: GraphicsMagick++ library not found.  The imread function for reading image files will not be fully functional.
configure: WARNING: HDF5 library not found.  Octave will not be able to save or load HDF5 data files.
configure: WARNING: Qhull library not found -- this will result in loss of functionality of some geometry functions.
configure: WARNING: FLTK config script not found.  Native graphics will be disabled.
    sudo apt-get install libsuitesparse-dev
    sudo apt-get install libcholmod1.7.1
    sudo apt-get install libsuitesparse-dev
    sudo apt-get install libqrupdate-dev
    sudo apt-get install libcurl4-gnutls-dev
    sudo apt-get install libgraphicsMagick++1-dev
    sudo apt-get install libglpk-dev
    sudo apt-get install libhdf5-serial-dev
    sudo apt-get install libqhull5 libqhull-dev

裝完後的錯誤訊息還剩一些些
configure: WARNING: I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h
configure: WARNING: FLTK config script not found.  Native graphics will be disabled.
configure: WARNING:
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics.  It isn't necessary to have native graphics,
configure: WARNING: but you will need to have gnuplot installed or you won't
configure: WARNING: be able to use any of Octave's plotting commands
configure: WARNING:
configure:
configure: NOTE: libraries may be skipped if a library is not found OR
configure: NOTE: if the library on your system is missing required features.

不過看起來應該是不影響執行啦 XD.....

[ref] http://wiki.octave.org/Octave_for_Debian_systems
後來才發現這個網只有提到一些相依性套件 ˊ_>ˋ
-------------
我要安裝geometry套件啊啊啊啊啊~~~~~

為啥都裝不起來  =口=