Mung's Five in Chowder of Cartoon Network  

Posted by Xkram or MarkX

Mung's Five was Mung's codename for the group. These are their codenames :

  • Mung Daal(孟多): Big Moustache
  • Chowder(巧達): El Gordo
  • Shnitzel(薯泥): Rocky Road
  • Truffles(太妃): The Mouth
  • Gazpacho(美乃滋): Mama's Boy 

Reference: http://chowder.wikia.com/wiki/The_Heist

夢中的大黑狗  

Posted by Xkram or MarkX

昨天(2013/2/8)小年夜,晚上睡覺的時候做了一個夢。


夢境中有一隻很漂亮的大黑狗,遠遠的走進我,而且跟我很親近。

不知怎麼的,我知道他想要吃東西,
剛好旁邊有一間便當店,
我就進去想要買一份排骨飯。

店裡的店員似乎也有看到那隻黑狗,
但是當他想接近黑狗的時候黑狗就會離開,
看來只有跟我比較親近。

我買了一份排骨飯後,打開一看,排骨炸的真是好吃!
但是因為我並不餓,因此只吃了配菜,排骨全給黑狗吃了,
連店員都覺得黑狗吃真好。

說也奇怪,黑狗吃完排骨之後,很開心的抖了抖身體,
結果就 掉了一串金鍊子下來!
之後便頭也不回的離開了,只剩下我茫然的拿著那條金鍊子。

之後我就醒了。


真是很奇妙的一個夢啊。

Android "ADB Backup" Commands Manual  

Posted by Xkram or MarkX

 adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] 
            [-system|-nosystem] [<packages...>]
 
   - write an archive of the device's data to <file>.
     If no -f option is supplied then the data is written
     to "backup.ab" in the current directory.
 
       (-apk|-noapk enable/disable backup of the .apks 
         themselves in the archive; the default is noapk.)
 
       (-shared|-noshared enable/disable backup of the device's
         shared storage / SD card contents; 
         the default is noshared.)
 
       (-all means to back up all installed applications)
 
       (-system|-nosystem toggles whether -all automatically 
         includes system applications; 
         the default is to include system apps)
 
       (<packages...> is the list of applications to be backed 
         up. If the -all or -shared flags are passed, then the
         package list is optional. Applications explicitly 
         given on the command line will be included even if 
         -nosystem would ordinarily cause them to be omitted.)

Albuquerque International Balloon Fiesta  

Posted by Xkram or MarkX



The Albuquerque International Balloon Fiesta is a yearly festival, and it is the largest hot air balloon festival in the world. The balloon fiesta began in 1972 as the highlight of a 50th birthday celebration for KOB Radio. Międzynarodowy Festiwal Balonów w Albuquerque  odbywa się co roku i jest największym na świecie festiwalem balonów napełnianych gorącym powietrzem. Festiwal ten został utworzony w 1972 roku jako podkreślenie celebracji piędziesięciolecia istnienia lokalnej stacji radiowej KOB.

使用水煙式殺蟲劑  

Posted by Xkram or MarkX

2012/5/25 (週五),晴天

從搬到北投公館路來之後過了一個禮拜,經歷過兩次的大掃除,由於是住在琪哩岸山的山腳下,自然免不了有許多蚊蟲的存在,不過起先我以為最令我困擾的是蟑螂,因此搬來的第二天就連忙去附近的藥局買了蟑螂藥,散佈在房間四周。

但是後來幾天我才發現,事實上在我房間出現最多的反而是蠹蟲,而且如果是小蠹蟲也就還好,但不幸的是這邊的蠹蟲長大之後都至少有三公分長,著實令人感到不快,而且它們移動速度還驚人的快速,雖然我很努力要殲滅它們,依然徒勞無功。一想到這麼多蠹蟲藏在房間的角落,我的心情就很難快活起來,還讓我那一天整夜失眠,隔天工作昏昏欲睡!只好一不作二不休,想到使用水煙式殺蟲劑將房間徹底的消毒(還是放毒)一番。

百廢待舉 II - 清華大學OZ空間使用方式  

Posted by Xkram or MarkX

緣起:
2012年二月底,在我想到這個網誌的並且回來看的時候,發生了一件對於這個網誌還說非常嚴重的事!那就是,原本放置網誌模板的提供者空間(http://www.infocreek.com/)不在了,如此一來這個網誌所有的背景預設圖片都無法顯示,打開網誌將只變成一片灰白的背景圖。

解決過程:
為了解決這個問題,勢必要將圖片放置到另外還能使用的存取空間,通常最基本的做法就是自己架一個網頁伺服器,不過一來我家的網路並沒有固定式IP,而來我的電腦也不是24小時開機不關的,所以這個方法並不適合我。既然無法放在自己電腦裡,那只好放到外面的免費網路空間,一開始我想到的是Google文件,不過Google文件並沒有辦法做到由外部直接存取指定的圖片,而是必須經由Picasa等中間媒介才能讀取圖片。最後,我想到的就是利用母校國立清華大學提供給學生校友的免費網路空間。

做法:
1. 登入到ftp://oz.nthu.edu.tw。
2. 帳號密碼為網路信箱的帳號及密碼。
3. 登入後,建立名為 "WWW" 的資料夾,並設定好存取權限。
4. 將所要分享的檔案、圖片及文件等上傳至此資料夾中。
    (所要架設網頁,則需有index.html這個檔案當作首頁)
5. 如此一來從
    http://oz.nthu.edu.tw/~oXXXXXXX(學號)/www(檔名).yyy(副檔名)
    便可以下載所需的檔案。

結論:
目前清大提空的OZ空間已經有1GB的容量,拿來分享大部分的檔案都是很方便的選擇。
而我也順利地使用這個空間將網誌背景移動過去,在OZ空間還能使用的情況下,這個網誌的背景應該可以一直順利存活吧。

參考資料:
清大 oz 網路空間簡易教學

(C++) How to transform 'int' into 'string'  

Posted by Xkram or MarkX


  使用sstream類別庫中的stringstream型態,因為stringstream無論是在 << 中;或 >> 中,都會自動轉型。


1  /*
2  (C) OOMusou 2007 http://oomusou.cnblogs.com
3
4  Filename : int2str_sstream.cpp
5  Compiler : Visual C++ 8.0 / ISO C++
6  Description : Demo the how to convert int to string
7  Release : 01/06/2007 1.0
8  */
9
10 #include <iostream>
11 #include <string>
12 #include <sstream>
13
14 using namespace std;
15
16 string int2str(int &);
17
18 int main(void) {
19     int i = 123;
20     string s;
21     s = int2str(i);
22
23     cout << s << endl;
24 }
25
26 string int2str(int &i) {
27     string s;
28     stringstream ss(s);
29     ss << i;
30
31     return ss.str();
32 }