peter的聚會手記

2014-04-17

來源: 2014-04-17
http://www.prestashop.com/

2014-03-20

來源: 2014-03-20
dbext.vim - Provides database access to many DBMS (Oracle, Sybase, Microsoft, MySQL, DBI,..) : vim online
http://vim.sourceforge.net/scripts/script.php?script_id=356

2014-02-13

來源: 2014-02-13

Ubuntu 12.04 的 Kernel 3.2 顯示筆電耗電量的方法

#!/bin/sh
#trap '' INT
grep 'present rate' /proc/acpi/battery/BAT0/state
sleep 2
exec ./bat.sh

/proc/acpi/battery/BAT0/alarm
/proc/acpi/battery/BAT0/info
/proc/acpi/battery/BAT0/state

Ubuntu 12.04 內建了一些 vim plugin
/usr/share/vim/vim73/

filetype plugin on

dbext

2014-02-06

來源: 2014-02-06
XBRL - eXtensible Business Reporting Language

Arelle - open source XBRL platform
https://github.com/Arelle/Arelle

2013-12-05

來源: 2013-12-05
tail monitor file
$ tail -f filename

2013-11-14

來源: 2013-11-14

$ git diff --color=always HEAD^ | less -r

2013-10-17

來源: 2013-10-17
在 Linux 3.2.0-54-generic 版本的核心使用 grep 'present rate' /proc/acpi/battery/BAT0/state 可以得到筆電的耗電量資訊:
present rate: 18256 mW
但是在 Linux 3.8 版似乎就沒有作用了,請教有其他的方法嗎?

A:
/sys/class/power_supply/BAT0/*

2013-10-10

來源: 2013-10-10
git 回復 rebase 操作

$ git reset --hard ORIG_HEAD

2013-07-04

來源: 2013-07-04

$ git log -- filename
$ git blame filename

文字版 git tree graph

$ git config --global alias.l "log --graph --full-history --all --color --date=short --pretty=format:'%Cred%x09%h %Creset%ad%Cblue%d %Creset'"
$ vi ~/.gitconfig
[alias]
    l = log --graph --full-history --all --color --date=short --pretty=format:'%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset'

2013-05-23

來源: 2013-05-23

Windows 7 建立 soft AP

> netsh wlan set hostednetwork mode=allow ssid=myssid key=12345678
> netsh wlan start hostednetwork

建立完再將原本無線網路界面與此界面共用

2013-05-02

來源: 2013-05-02

# apt-get install texlive latex-cjk-all latexila
\documentclass{article}
\usepackage{amsmath,amsthm,amssymb} % 引入 AMS 數學環境
  這裡是 preamble 區
\begin{document}
  這裡是本文區
\end{document}

2013-03-14

來源: 2013-03-14
Android APP 分享

Google Japanese Input

2013-02-28

來源: 2013-02-28
免費日本 VPN - Tsunagarumon
Tsunagarumon 教學

2013-02-21

來源: 2013-02-21
vimdiff a.txt b.txt
:diffupdate 重新 refresh diff 的結果
:diffput 放去另一邊
:diffget 拿另一邊

2013-01-24

來源: 2013-01-24
APK 這樣子打包就可以了嗎?
http://www.cash.idv.tw/wordpress/?p=7200

2012-11-29

來源: 2012-11-29
sparkleshare 用來架 dropbox 服務

SparkleShare - Self hosted, instant, secure file sync
http://sparkleshare.org/

2012-11-22

來源: 2012-11-22

Ubuntu 12.04 安裝 Mysql Connector/C++ 方法

# apt-get install libmysqlcppconn5 libmysqlcppconn-dev

C++ 範例參考
http://dev.mysql.com/doc/refman/5.5/en/connector-cpp-examples-complete-example-1.html

如何編譯

$ g++ example.cpp -l mysqlcppconn

2012-08-09

來源: 2012-08-09
去日本搭乘地鐵必備的 Android APP, 能詳細的列出時間&金額,自由行坐地鐵就不用怕了!
https://play.google.com/store/apps/details?id=jp.co.yahoo.android.apps.transit
https://play.google.com/store/apps/details?id=jp.co.yahoo.android.apps.map

2012-07-26

來源: 2012-07-26
for Ubuntu :
MyUnity - Unity 的設定工具
https://launchpad.net/myunity/trunk
Psensor - sensors 的常駐版
http://wpitchoune.net/blog/psensor/
Weather Indicator - A fully featured weather notification applet for use on the GNOME panel.
https://launchpad.net/weather-indicator

2012-06-14

來源: 2012-06-14
How To Get A List Of Open Windows On The Unity Panel
http://www.webupd8.org/2012/06/how-to-get-list-of-open-windows-on.html#more

2012-05-10

來源: 2012-05-10
winetricks 勾選後幫你裝 wine 裡的軟體或相關函式庫

2012-04-26

來源: 2012-04-26
WebGL Bookcase
http://www.chromeexperiments.com/detail/webgl-bookcase/

2012-04-19

來源: 2012-04-19
請問在 Ubuntu 下如何正常顯示 Java plugin ? 下列這兩個網站都無法正常顯示其 Java 網頁
http://goldprice.org/live-gold-price.html
http://www.pmf.com.tw

2012-02-23

來源: 2012-02-23
推薦一台 ebook reader,
iRiver Story HD 支援 Google Books, epub, pdf
http://www.iriverinc.com/product/productOverview.asp?lpCode=M0015
XGA (768*1024) 6吋面板, 207公克, WIFI
$99.99 only , 可惜目前只能在美國地區購買

2012-01-05

來源: 2012-01-05
Complete List of Ubuntu Unity Shortcut keys & Mouse Tricks
http://www.ubuntu-unleashed.com/2011/04/complete-list-of-ubuntu-unity-shortcut.html
Super + W - Spread mode 實在太方便了。
What are Unity's keyboard and mouse shortcuts?
http://askubuntu.com/questions/28086/what-are-unitys-keyboard-and-mouse-shortcuts

2011-12-22

來源: 2011-12-22

搶答題 使用 vim移除雙引號數字的逗號
下載 CSV 檔 URL : http://www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report201112/A1122011122213.php?select2=13&chk_date=100/12/22#
"100年12月15日每日收盤行情(電子工業)(元,股)""(元,,交易單位)"
證券代號,證券名稱,成交股數,成交筆數,成交金額,開盤價,最高價,最低價,收盤價,漲跌(+/-),漲跌價差,最後揭示買價,最後揭示買量,最後揭示賣價,最後揭示賣量,本益比
1437,勤益,"157,429",70,"1,959,868",12.70,12.70,12.25,12.45,-,0.25,12.30,14,12.45,1,0.00
1471,首利,"626,080",241,"6,319,606",10.15,10.35,10.00,10.10,-,0.30,10.00,48,10.20,39,0.00
1582,信錦,"103,010",65,"3,419,484",33.05,33.45,32.95,33.40,-,0.10,33.40,4,33.45,4,10.28
2059,川湖,"710,855",526,"97,060,135",134.00,138.00,134.00,137.00,+,1.00,136.50,9,137.00,14,16.67
2301,光寶科,"5,115,211","2,436","160,263,616",32.05,32.05,30.80,30.95,-,1.25,30.95,43,31.00,11,9.02
2302,麗正,"113,308",28,"414,011",3.69,3.69,3.64,3.65,-,0.05,3.65,2,3.66,9,0.00
2303,聯電,"34,210,060","8,426","404,971,322",11.95,11.95,11.75,11.75,-,0.30,11.75,1965,11.80,583,9.55
2305,全友,"20,966",12,"74,220",3.55,3.63,3.52,3.58,-,0.06,3.53,1,3.58,7,21.06
2308,台達電,"5,524,118","2,873","354,413,478",64.60,64.70,63.90,64.00,-,1.10,64.00,328,64.10,9,12.90
2311,日月光,"56,299,430","14,682","1,421,227,900",26.15,26.15,24.85,25.00,-,1.60,24.95,642,25.00,265,10.59
2312,金寶,"601,063",200,"3,689,891",6.20,6.22,6.11,6.12,-,0.13,6.12,132,6.13,30,76.50
2313,華通,"3,083,536",954,"27,422,152",9.09,9.09,8.80,8.81,-,0.31,8.81,68,8.83,9,10.49
2314,台揚,"731,954",178,"3,640,320",4.96,5.08,4.92,4.92,-,0.11,4.92,9,4.96,15,0.00
2315,神達,"2,986,912",744,"27,007,038",9.14,9.14,8.99,9.00,-,0.18,9.00,49,9.01,2,0.00
2316,楠梓電,"969,582",281,"10,270,283",10.85,10.85,10.40,10.40,-,0.60,10.35,14,10.40,7,8.67
2317,鴻海,"38,720,965","17,358","3,084,414,535",81.40,81.40,78.60,78.80,-,3.10,78.80,144,78.90,182,12.39
2321,東訊,"57,999",17,"104,118",1.80,1.80,1.75,1.75,-,0.05,1.76,3,1.79,26,0.00
2323,中環,"21,047,633","3,161","96,092,574",4.71,4.72,4.44,4.45,-,0.31,4.44,494,4.45,52,0.00
2324,仁寶,"5,664,967","2,263","156,177,534",27.50,27.90,27.35,27.40,-,0.60,27.40,167,27.45,2,9.01
2325,矽品,"16,881,929","5,067","431,944,003",26.00,26.10,24.85,25.75,-,0.65,25.75,6,25.80,10,16.83
2327,國巨,"3,288,435","1,030","25,669,408",7.90,7.90,7.78,7.80,-,0.18,7.80,4,7.81,99,7.36
2328,廣宇,"790,904",497,"18,236,008",23.30,23.55,22.80,22.80,-,0.95,22.80,50,22.85,1,0.00
2329,華泰,"377,401",152,"1,541,619",4.02,4.15,4.02,4.06,-,0.06,4.06,33,4.10,5,0.00
2330,台積電,"36,001,877","10,505","2,631,665,133",74.10,74.10,72.50,72.50,-,2.00,72.50,505,72.60,28,13.11
2331,精英,"905,346",220,"5,478,606",6.10,6.10,6.00,6.01,-,0.17,6.01,53,6.03,5,0.00
2332,友訊,"1,753,933",567,"35,345,603",20.30,20.45,20.00,20.00,-,0.40,20.00,31,20.05,11,11.43
2337,旺宏,"24,760,902","6,141","288,580,617",11.90,11.90,11.30,11.40,-,0.60,11.35,750,11.40,107,12.67

2011-09-01

來源: 2011-09-01
vim 垂直和水平游標
:set cuc
:set cul

Ubuntu 在 bash 找不到命令時呼叫的機制 command not found, 你也可以直接呼叫 /usr/lib/command-not-found 指令
例如:

$/usr/lib/command-not-found mysql

會顯示
程式 'mysql' 可在下列的套件中被找到:
 * mysql-client-core-5.1
 * mysql-cluster-client-5.1
嘗試: sudo apt-get install <selected package>

2011-07-07

來源: 2011-07-07
Nice article: http://feedproxy.google.com/~r/webupd8/~3/sVUQL78PKjs/linux-kernel-power-issue-fix.html

在開機參數加上 pcie_aspm=force" 可以啟用省電功能。

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force"

关于如何开具北京咨询费发票 - bjzxf https://bjzxf.jimdofree.com
关于开具北京技术服务费发票-哪里有https://jsfwffp.jimdofree.com
关于如何开具上海技术服务费发票 - shjsfw21 https://shjsfw21.jimdofree.com
关于如何开具上海运输费发票 - shysf021 https://shysf021.jimdofree.com
济南开咨询费发票_济南技术服务费发票https://jnskaifp.jimdofree.com
除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License