安裝套件
sudo apt-get install pulseaudio pulseaudio-utils
sudo apt-get install mplayer
sudo apt-get install libmpg123-dev mpg123
Perry Wu 發表在 痞客邦 留言(0) 人氣(299)
學習case 1
使用express時,這樣使用
app.js
Perry Wu 發表在 痞客邦 留言(0) 人氣(166)
* PM2, A process Management tool!
https://www.npmjs.com/package/pm2
* node.js command line字典?
https://www.npmjs.com/package/ydict.js
* command line廣播?
https://www.npmjs.com/package/tuner
* 抓torrent變成stream?
https://www.npmjs.com/package/peerflix
https://github.com/mafintosh/torrent-stream
* webtorrent?
https://www.npmjs.com/package/webtorrent
* 把raspberrypi當音樂盒子的產品
https://github.com/bendi/maracuya-jukebox
http://maracuya-jukebox.com/
* 把線上漫畫的連結 變成feed內嵌的網頁方便存取
https://www.npmjs.com/package/comics-feed
* Node Js + Allseen0
https://www.npmjs.com/package/alljoyn
* Node Js + mouse/keyboard
https://github.com/bscarvell/Mouse-Tracker
* Node Js + serialport
http://www.tigoe.com/pcomp/code/arduinowiring/1096/
https://www.npmjs.com/package/serialport2
https://github.com/voodootikigod/node-serialport
(http://l8smartlight.com/ 有趣周邊)
https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-communication-with-node-js/
* Node Js + GPIO
https://ni-c.github.io/heimcontrol.js/plugins/gpio.html
https://www.npmjs.com/package/pi-gpio
* Node Js + printer
https://github.com/tojocky/node-printer
https://www.npmjs.com/package/ipp
http://www.doodle3d.com/help/wiki/web-interfaces-viewingsending-gcode
* Node Js + camera
http://thejackalofjavascript.com/rpi-live-streaming/
https://github.com/xenomuta/caraweb
*Node Js + streaming
https://github.com/aetheon/node-stream-tv
*View RTMP Stream on Raspberry Pi
http://www.instructables.com/id/View-RTMP-Stream-on-Raspberry-Pi/
* A simple and easy-to-use social share tool
https://www.npmjs.com/package/social-share
* Automatically add lyrics to music files
https://www.npmjs.com/package/lyrictagger
* Auth solution (password, facebook, & more) for your node.js Connect & Express apps
https://www.npmjs.com/package/everyauth
Perry Wu 發表在 痞客邦 留言(0) 人氣(0)

目標
如前一篇實作的範例(使用cheerio 抓取蘋果日報的RSS資訊)
這裡接著要做的是讀取CNN的RSS資訊
Perry Wu 發表在 痞客邦 留言(0) 人氣(291)

目標
在node.js下使用cheerio以及request來讀取蘋果日報的RSS資訊
在http://www.appledaily.com.tw/rss這裡可以看到有提供的的即時新聞群組列表
而這次實作的目的就在於取得群組列表以及將指定列表中的資訊抓下來
Perry Wu 發表在 痞客邦 留言(0) 人氣(764)
簡介
開發應用時突然發現要準備網頁的多國語系支援,上網找一下資料發現多國語系可以做在前台,也就是網頁html+js的搭配組合完成語系呈現。
前端開發可參考此連結,我是沒多研究就是了
Perry Wu 發表在 痞客邦 留言(0) 人氣(1,652)
Install redis
wget http://download.redis.io/releases/redis-3.0.0.tar.gz
tar xvfz redis-3.0.0.tar.gz
cd redis-3.0.0
make
server and client are placed in src/redis-server and src/redis-cli respectively.
Perry Wu 發表在 痞客邦 留言(0) 人氣(300)
usbmount
讓USB flash插入直接mount
sudo apt-get install usbmount
samba
提供檔案共用
sudo apt-get install samba
mkdir /home/pi/share
chmod 777 /home/pi/share
sudo vi /etc/samba/smb.conf
[Share]
comment = ShareFolder
path = /home/pi/share
browseable = Yes
writable = Yes
public = Yes
guest ok = yes
read only = no
node.js
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
Perry Wu 發表在 痞客邦 留言(0) 人氣(127)
概述
設定locale與能否瀏覽中文的網頁沒有直接的關係,即便把locale設置成 en_US.ISO-8859-1這樣一個標準的英文locale你照樣可以瀏覽中文的網頁,只要你的系統裏面有相應的字符集(這個都不一定需要)和合適的字體(如simsun),瀏覽器就可以把網頁翻譯成中文給你看。具體的過程是網絡把網頁傳送到你的機器上之後,瀏覽器會判斷相應的編碼的字符集,根據網頁採用的字符集,去字體庫裏面找合適的字體,然後由文字渲染工具把相應的文字在屏幕上顯示出來。
Perry Wu 發表在 痞客邦 留言(0) 人氣(6,895)
VIM 常用安裝設定
.vimrc 設定值
set ts=4
set sw=4
" set noai
" set noci
set nu
nnoremap :set invpaste paste?
set hlsearch
syntax on
set encoding=utf-8
set fileencoding=utf-8
Perry Wu 發表在 痞客邦 留言(0) 人氣(322)