在Mint 13裝了lxmusic才發現播放.aac檔案會出現問題, 是因為xmms2 plugin沒有裝起來。
雖然可以播放.aac檔案,不過播放清單中的時間顯示有點問題。
雖然可以播放.aac檔案,不過播放清單中的時間顯示有點問題。
sudo apt-get install xmms2-plugin-faad # 讓 xmms2可以播放 .aac格式
| 操作 | XML |
|---|---|
| 剪下 | <toolitem name="Cut" action="Cut"/> |
| 複製 | <toolitem name="Copy" action="Copy"/> |
| 貼上 | <toolitem name="Paste" action="Paste"/> |
| 刪除 | <toolitem name="Delete" action="Delete"/> |
| 屬性 | <toolitem name="Properties" action="Properties"/> |
| 新增目錄 | <toolitem name="New Folder" action="New Folder"/> |
| Name | Description |
|---|---|
| NAUTILUS_SCRIPT_SELECTED_FILE_PATHS | newline-delimited paths for selected files (only if local) |
| NAUTILUS_SCRIPT_SELECTED_URIS | newline-delimited URIs for selected files |
| NAUTILUS_SCRIPT_CURRENT_URI | current location |
| NAUTILUS_SCRIPT_WINDOW_GEOMETRY | position and size of current window |
Name
|
Description
|
CAJA_SCRIPT_SELECTED_FILE_PATHS
|
newline-delimited paths for selected files (only if local)
|
CAJA_SCRIPT_SELECTED_URIS
|
newline-delimited URIs for selected files
|
CAJA_SCRIPT_CURRENT_URI
|
URI for current location
|
CAJA_SCRIPT_WINDOW_GEOMETRY
|
position and size of current window
|
CAJA_SCRIPT_NEXT_PANE_SELECTED_FILE_PATHS
|
newline-delimited paths for selected files in the inactive pane of a split-view window (only if local)
|
CAJA_SCRIPT_NEXT_PANE_SELECTED_URIS
|
newline-delimited URIs for selected files in the inactive pane of a split-view window
|
CAJA_SCRIPT_NEXT_PANE_CURRENT_URI
|
URI for current location in the inactive pane of a split-view window
|
不過,目前來說夠用了。
- 如果網路不穩定,設定的延遲時間可能不夠用。
- 如果頁面讀取失敗,當然就.....是garbage out了。
- 如果網頁的內容很長,設定的大小可能也會不夠用。
Monitor/Image
|
Size
|
note
|
Monitor 1
|
1440x900
| |
Monitor 2
|
1280x1024
| |
image1.jpg
|
1096x894
|
for monitor 1
|
image2.jpg
|
1260x912
|
for monitor 2
|
convert -reisze x876 1.jpg r1.jpg # 讓image 1避開底下的工作列(高度=24, 900-24=876)
convert -reisze 1280x1024! 2.jpg r2.jpg
convert -size 1440x900 xc:black -page +183+0 r1.jpg r1-1.jpg
convert -page +0+0 r1-1.jpg -page +1440+0 r2.jpg -layers mosaic out.jpg
- libjpeg62-dev
- zlib1g-dev
- libfreetype6-dev
- liblcms1-dev
- python-dev
- python setup.py build_ext -i
- python selftest.py
- sudo python setup.py install
- python setup.py install --record log
- sudo rm -rf $(cat log)
or
cat log | xargs sudo rm -rf
- --load-cookies 讀取cookie,可以直接把Firefox的cookies.sqlite丟進來使用。
- -U 設定user-agent
- -j 設定同時下載數目
- -i 輸入檔案,在設定URL的同時,還可以設定額外的參數。 詳細參照http://aria2.sourceforge.net/aria2c.1.html#_input_file
- -j 設定同時下載的數目
- -l logfile
- --log-level=LEVEL (debug, info, notice, warn or error. Default: debug)
- BeautifulSoup(html, fromEncoding='...', smartQuotesTo='html')
- fromEncoding: 用在非UTF-8編碼的網頁。有些網頁像Getchu的網頁有時候也會有問題,這不是BeautifulSoup本身的問題,只是網站標示的編碼跟實際上 使用的編碼不同。保險的作法是用iconv轉成utf-8再丟給BeautifulSoup處理。
- smartQuotesTo='html': HTML/XML Entity轉換
- .find(text='abc')
HTML: <a href='..'>hello</a> ex: soup.find('a', text='hello') ==> hello #只會傳回標籤內的文字,不會傳回Tag物件
-g 設定視窗大小以 'widthxheight'的方式
- -i 縮圖模式(Index Mode)
-E or --thumb-height 設定縮圖高度
-y or --thumb-width 設定縮圖寬度
--index-dim bool 顯示/隱藏影像大小
--index-name bool 顯示/隱藏影像檔名
--index-size bool 顯示/隱藏影像檔案大小
-o 輸出檔名 -t 類似於Index mode, 點選縮圖會出現另外的視窗顯示
- -S or --sort 排序,除了name跟filename其他都需要配合-p參數
- name
- filename
- width
- height
- pixes
- size
--info 執行指令並將結果顯示在feh視窗下方feh --info="identify -format '%f: %wx%h' %f" -g 640x480 . #執行ImageMagick取得影像大小 --action 自訂每張圖片執行指令 --action[1-9] 按下數字鍵1~9,所對應的指令(只能用F1下方的數字鍵)feh -g 640x480 --action1="cp %f ~/" # 按下數字鍵1時將檔案複製到使用者家目錄下
feh -g 640x480 --action2='rm %f" # 按下數字鍵2時將檔案刪除
- Linux Mint 11
- isk-daemon 0.9.3
sudo apt-get install build-essential swig python-twisted-web libmagick++-dev python-dev
- python setup.py build
- sudo python setup.py install
- sudo mkdir /etc/iskdaemon
- sudo cp ./isk-daemon.conf /etc/iskdaemon
/etc/iskdaemon/isk-daemon.conf
- HTTP: http://localhost:31128/
- SOAP: http://localhost:31128/SOAP
- XML-RPC: http://localhost:31128/RPC
iskdaemon.py # 在執行目錄下會產生isk-daemon.log
- API now supports querying by filename (existing image on server filesystem, no need to add to database)
- API now supports querying by image data(queryImgBlob())
dbID, imgID只能使用整數(正負皆可) 當image count < 25時,查詢會有問題,不知道在0.9.3修好了沒? 使用XML-RPC操作時,dbID, imgID 為 4byte integer The architecture assumes you have such a database in place in order to store image IDs associated to its location in order to present search results and know which ID to supply to the image similarity engine given user input.簡單說,image ID要想辦法自己生。在配合XML-RPC的限制下,我是以zlib.crc32去計算URL, filename, filepath產生Image ID。
資料量小還可以這樣搞,在大一點的資料量,CRC32就很容易產生碰撞了。
queryImgBlob(dbID, xmlrpclib.Binary(...))
- FLVCD 之類網站解析出影片網址
- 再將常用的下載工具或者是影片播放器加上user-agent, 偽裝成Firefox之類的瀏覽器就可以下載或觀看了