One for all,all for one.
2015年1月26日 星期一
GDBus.Errorrg.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files
›
# apt-get install avahi-daemon
2015年1月25日 星期日
Instal Python Eggs
›
easy_install somepackage.egg easy_install http://somehost.somedomain.com/somepackage.egg References : A small introduction to Python...
2015年1月24日 星期六
ImportError: cannot import name IncompleteRead
›
# apt-get install python-requests python-pip References : python - How do I fix 'ImportError: cannot import name IncompleteRead...
2015年1月23日 星期五
MySQL show all grouped results
›
select t . Letter , t . Value from MyTable t inner join ( select Letter , sum ( Value ) as ValueSum from MyTable gro...
Python read file don't include '\n'
›
with open ( fname ) as f : content = f . read (). splitlines () References : string - Python: read file line by line into a...
MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes
›
因 MySQL 有單筆 SQL Query 長度的限制,在匯入檔案時,一次 INSERT 資料很大會錯誤,需調整單筆 SQL Query 長度 查詢目前 max_allowed_packet 設定值 mysql> show variables like...
2015年1月22日 星期四
MySQL 開啓檔案數
›
系統允許最大開啓檔案數 $ sysctl -a | grep fs.file-max fs.file-max = 146925 $ cat /proc/sys/fs/file-max 146925 目前系統所有程式已開啓的檔案數 $...
‹
›
首頁
查看網路版