上面的code會有危險,假如push_back()需要長大的話,array[0]取得的reference會失效。
2011年12月20日 星期二
2011年8月31日 星期三
Split file using tar
tar and split:
tar -cML 256 -f 1st_output input_file
Prepare volume #2 for `1st_output' and hit return: n 2nd_output
Prepare volume #2 for `2nd_output' and hit return: <enter>
...
-c create
-M multi-file
-L volume size in kB
特別注意第二個檔名之前的`n '.
有的機器上需要多按一次enter,有的機器上不需要,網路上查到的文件都說不需要,原因待查。
同時,不支援一邊split一邊gzip / bzip2
untar and merge:
tar -cML 256 -f 1st_output input_file
Prepare volume #2 for `1st_output' and hit return: n 2nd_output
Prepare volume #2 for `2nd_output' and hit return: <enter>
...
-c create
-M multi-file
-L volume size in kB
特別注意第二個檔名之前的`n '.
有的機器上需要多按一次enter,有的機器上不需要,網路上查到的文件都說不需要,原因待查。
同時,不支援一邊split一邊gzip / bzip2
untar and merge:
tar -xMf 1st_input
Prepare volume #2 for `1st_input' and hit return: n 2nd_input
Prepare volume #2 for `2nd_input' and hit return: <enter>
...
-x extract
-M multi-file
一樣,第二個檔名前有`n ',而且也是有的機器上需要多一次enter,有的不需要。
2011年4月26日 星期二
一品清手工冰品
Warning: 已停止營業
地址:新竹市金山八街51號 (目前對面有家派克雞排)
電話:(03)666-3221
Facebook: http://facebook.com/IPCICE
檢視較大的地圖
聽說是上週五才剛開幕,今天和一群學弟前往光顧。
店內概覽:
菜單:(看起來是草創初期,只有牆上寫的那麼一百零一份)
吃起來挺好吃,碎冰本身就已經有調味(鳳梨、黑糖二選一),即使上面不另外加佐料也好吃,正好個人特別不喜歡加豆類的冰品。
鮮芒果冰:
地址:新竹市金山八街51號 (目前對面有家派克雞排)
電話:(03)666-3221
Facebook: http://facebook.com/IPCICE
檢視較大的地圖
聽說是上週五才剛開幕,今天和一群學弟前往光顧。
店內概覽:
菜單:(看起來是草創初期,只有牆上寫的那麼一百零一份)
吃起來挺好吃,碎冰本身就已經有調味(鳳梨、黑糖二選一),即使上面不另外加佐料也好吃,正好個人特別不喜歡加豆類的冰品。
鮮芒果冰:
2011年3月7日 星期一
Windows用netsh快速切換網路設定
直接看範例:
netsh interface ip set address name="區域連線" source=dhcp
netsh interface ip set dns name="區域連線" source=dhcp
netsh interface ip set address name="區域連線" static 192.168.0.1 255.255.255.0 192.168.0.254 1
netsh interface ip set dns name="區域連線" static 192.168.0.254
netsh interface ip add dns name="區域連線" 8.8.8.8
當然用手輸入這麼一大串肯定輸給按GUI。寫成批次檔點兩下自動執行才好用。
netsh interface ip set address name="區域連線" source=dhcp
netsh interface ip set dns name="區域連線" source=dhcp
netsh interface ip set address name="區域連線" static 192.168.0.1 255.255.255.0 192.168.0.254 1
netsh interface ip set dns name="區域連線" static 192.168.0.254
netsh interface ip add dns name="區域連線" 8.8.8.8
當然用手輸入這麼一大串肯定輸給按GUI。寫成批次檔點兩下自動執行才好用。
2009年4月5日 星期日
這裡為什麼會出現?
有時候(if not rarely)看到有人在抱怨某個Blog service很難用很複雜很弱小或是怎樣的,我都無言以對,因為我根本一個也沒用過。
因此,這個Blog,以及這篇文章出現了。
如同大標題所述,這是個sandbox,不會有特定主題、不會定期更新、甚至會不會有機會讓我試試其他功能都很難說。同樣的,可能出現的內容包括:日記、遊記、技術文章、沒內容文章,全都未定。
因此,這個Blog,以及這篇文章出現了。
如同大標題所述,這是個sandbox,不會有特定主題、不會定期更新、甚至會不會有機會讓我試試其他功能都很難說。同樣的,可能出現的內容包括:日記、遊記、技術文章、沒內容文章,全都未定。
訂閱:
文章 (Atom)



