解決方法其實很簡單,就把它關掉就可以了

從此王子跟公主...真的能因為這種事情過著幸福快樂的日子嗎(抱頭)
In my old method, I prefer to copy/paste follow code into each module.
static public boolean DEBUG_MODE = true; static public String DEBUG_MODEL_NAME = "your_module_name"; static public String DEBUG_TAG = "your_debug_tag"; static public void logD(String message){ if(DEBUG_MODE == false) return; Log.d(DEBUG_TAG, DEBUG_MODEL_NAME + " : " + message); } static public void logI(String message) { if(DEBUG_MODE == false) return; Log.i(DEBUG_TAG, DEBUG_MODEL_NAME + " : " + message); } static public void logE(String message) { if(DEBUG_MODE == false) return; Log.e(DEBUG_TAG, DEBUG_MODEL_NAME + " : " + message); }This method is sharp, and you can debug each method. When you want to release, simply replace all "static public boolean DEBUG_MODE = true" to "static public boolean DEBUG_MODE = false" by Eclipse.
However, if your logging message is not so much, you can control logger flag in this way, more conveniently and efficiently.
PackageInfo packageInfo = ... // get package info for your context
int flags = packageInfo.applicationInfo.flags;
boolean DEBUG_MODE = (flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
Apple的Time Capsule/Airport Extreme Base Station(分別簡稱TC/AEBS)有一項主打的功能,是讓你能夠在遠端利用MobileMe的帳號存取你連接在TC/AEBS上面的儲存裝置。奇怪的是,這項功能雖然被寫在網頁上,可是說明書上並沒有詳細的使用方法(好歹我買AEBS跟MobileMe有一半的理由是為了他阿 orz)。這篇文章就來談談怎麼讓這個功能「啓動」。
MobileMe有一個功能稱為「Back To My Mac」,這是一個遠端remote自家產品的方法(包含iMac, MB系列....事實上也包含TC/AEBS)。首先,我們必須先讓這個功能啓動一下。Ogre SDK在Mac XCode下的安裝
首先,我們當然要有SDK
Download
選擇Mac OS X, 這個版本應該就可以了 (iPhone又是另外一個故事,下一篇再介紹)
接下來把他解壓縮到本機,我個人是直接丟到Documents
然後各位應該就會碰到第一個障礙:XCode Project打開後build出一堆錯(多半是CMake找不到甚麼檔案有的沒有的)這是一個已知bug,請升級CMake到2.8.2以上
Download
再度執行看看,如果再不行的話就需要重建.xcodeproj
重建也沒那麼恐怖,按照下面一步一步來
首先先在Application裡面找出CMake按下去
將Source指到你的sdk跟目錄,build binaries也指到同樣的地方
按下Configure會出現選擇編譯器跟目的檔的畫面
選好後再按Configure一次,Generate就亮了,按下Generate,收工。夠簡單了吧
接下來.xcodeproj似乎就可以正常運作了,記得把左上角調整成Release或者RelWithDebInfo
ok 接下來就是build and run! 大多數的人會在這裡碰到第二道難題:奇怪,為什麼build and run跑不出執行檔?這時候應該要打開console看一下了!
歐賣尬,要是一輩子沒想到開console不就被它栽到了。這個問題的成因是,nVidia顯卡下它需要CG Toolkit來執行demo(ATi要不要我不知道,有人能給個答案嗎 =P) 來吧,我們拿個最新版本來玩玩
Download
安裝好以後,再度執行他的執行檔,成功!
希望這對用Mac OSX開發Ogre3D遊戲的人有點幫助 :3
while(true)
{
if(mainType == 7)
{
subType = 4;
break;
}
if(mainType == 9)
{
subType = 6;
break;
}
if(mainType == 11)
{
subType = 9;
break;
}
break;
}
/*----Be sure you have READ this!----
...
...(a long term of manual of this header)
...
I have made this way to make sure
everyone will read this manual.
By Genius Jason
----------------------------------------------/*
enum DECLARE
{
I_HAVE_READ_THE_MANUAL_AND_KNOW_WHAT_I_AM_DOING_THIS = 38106,
I_HAVE_READ_ABOVE_AND_AGGREED_THE_TERM_OF_USE = 39100
};
KaimCore.Init(I_HAVE_READ_ABOVE_AND_.....
KamiCore.CleanupDump(I_HAVE_READ_THE_MANUAL_AND...
Application.Idle += new EventHandler(OnAppIdle);
Application.Run(mMainFrame);
........
........
static void OnAppIdle(object sender, EventArgs e)
{
//Do some game loop update here
mMainFrame.DoUpdate();
}
static class Program
{
///
/// The main entry point for the application.
///
///
static SceneEditorMain mMainFrame;
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
mMainFrame = new SceneEditorMain();
Application.Idle += new EventHandler(OnAppIdle);
Application.Run(mMainFrame);
}
static void OnAppIdle(object sender, EventArgs e)
{
while (AppStillIdle)
{
mMainFrame.DoUpdate();
}
}
private static bool AppStillIdle
{
get
{
NativeMethods.Message msg;
return !NativeMethods.PeekMessage(out msg, IntPtr.Zero, 0, 0, 0);
}
}
}
public class NativeMethods
{
/**/
/// Windows Message
[StructLayout(LayoutKind.Sequential)]
public struct Message
{
public IntPtr hWnd;
public uint msg;
public IntPtr wParam;
public IntPtr lParam;
public uint time;
public System.Drawing.Point p;
}
[System.Security.SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll", CharSet = CharSet.Auto)]
public static extern bool PeekMessage(out Message msg, IntPtr hWnd, uint messageFilterMin, uint messageFilterMax, uint flags);
}
Project Iris is still in progress, and Milestone1(aka basic tile construction) will be finished estimated in 2 weeks, then Milestone2 – Game Basic Logic. I am confused by myself designed architecture – which one should take reasonability of updating? and which one should responsible for managing Rendering Window and Root management? Really confused by myself :/
Anyway, I am a bit happy to have more talking with someone =P. Maybe with bad karma I have made, and I shall have more effort to… never mind, hum.
Reality Hacking在前面的章節已經談過了,接下來我們要進入更深一層-名字聽起來也更虛幻的一層,Soul Hacking。
Soul Hacking其實是一種心理戰,基本上就是結合心理學的一種入侵方式。我們在設計一個安全系統的時候,通常只會考慮到"如果使用者XXX,我們就要以OOO的方式來對應"(普通的邏輯系統似乎都是這樣寫的,對吧?),而不太會去考慮相反的事情:"如果我們做了XXX,使用者下一部會做什麼?"
最簡單的例子,假設現在有一個安全系統,如果要登入管理層的話,除了使用者的ID以外,還需要多輸入一層管理者密碼,可能很多設計者會這樣設計 : A. 提示使用者輸入ID B:提示使用者輸入第一層密碼 C:提示使用者輸入管理層密碼
聽起來非常合理,不是嗎?所以我們就會給使用者資訊:這個登入流程需要一個ID 需要一個密碼 需要一個管理者密碼。
我們換個角度想,如果我們登入流程變成這樣,換你是入侵者,你會有什麼反應? A. 提示使用者輸入ID B.提示使用者輸入密碼 C. 提示使用者輸入了錯誤的密碼,要求重新輸入:不過事實上,第二層密碼驗證是對的,系統正在等你輸入管理者密碼。
我們在舉個比較簡單的例子,也是大家比較容易碰到的例子。以前,BBS基本上都會要求使用者輸入帳號,如果帳號不存在,系統會提示你這個帳號不存在。可是,現在的PTT,無論你輸入什麼帳號,他都會要求你輸入密碼,也只有"帳號密碼不對!"的提示,而不會告訴你無此帳號還是密碼不對。
Reality hacking - 這個其實不是很為人所知的名詞,其實是資安理面幾乎是最重要的一環。不管你用多昂貴的多複雜的firewall,多訓練精良的網管,多有效的多層次存取(MLA)系統,公司的資訊仍然是有機會以人為的可能性外流-防火牆檔的住over-exceed request,也許檔的住部分back-oriphance,很不幸的是他們對於員工的大腦跟嘴巴通常無能為力。
"你好,這裡是XX旅行社,您這次出差的轉機機票程序都定好了喔,祝您這次有個愉快的旅行。"
"謝謝,不過我記得這次不是我出國阿,您是不是把我跟李經理的資訊弄錯了呢?"(得到資訊,這次是李經理要出國)
"疑?是這樣嗎,抱歉我查一下。可是從您的員工編號我們看起來的確是您的資料阿,沒關係,不過這個東西我們要在跟您確認一下,也許是我們內部人員KEY錯了,讓您多賺到一天假期呢"
"抱歉那我在跟您核對一下資料,您的員工號碼是?"
"B83920C0”
"可是查出來的一樣耶,也許是我們內部錯誤,我們換種方法好了,您的出生年月日跟身分證字碼麻煩一下好嗎?"
這樣其實就可以撈到非常多的資料了。一個IT不夠嚴謹的公司,這些資訊已經足夠造成非常大的損害。Reality Hacking並不見得需要像電影情節裡面的hacker一樣,潛入他人公司,分析鍵盤密碼,偷偷接上sniffer...他們需要的也許只是稍微好一點的口才,一些看起來不是很重要的資訊,以及一點運氣。
"哈,看起來的確是我們弄錯了,不好意思,我們去連絡一下李經理,抱歉打擾您的時間。對了,為了表達我們的歉意,最近我們公司有一團因為人數湊不夠,我們願意用成本價湊團,您有興趣的話請上....."
好啦,這個人多傳幾個同事,大概名字身分證字號地址就全部被抓包了,甚至有些人資安習慣很差,每個網站都用一樣的密碼,那只要該網站要加入會員才能看內容,設定個帳號密碼,那大概就可以phish到一堆帳號密碼可以try了。需要任何007情節嗎?需要任何特別的技術設備嗎?都不用。
A bit busy here, for either official project or own Iris project. I have learned a new sort of algorithm for Iris-Mimic, but it consumes loki::smallobject technology to perform.
After the great separation, it cost me some days to get recovered. Just let the ugly past pass, I hope so.
Dolice closed her blog, due to her confliction toward her boyfriend. It’s a pity to see a bobby-headed girl’s fantastic diary…. ok, and the invaluable technical note. I can image that racial conflict(she is a Malaysian, and he is a Chinese) between them, as Dolice always complains so. Cultural difference makes hard to communicate… even become a plunk between them two. Good luck, pal.
I think I need a target to chase, after someone talked to me(and makes me so happy :) ), I felt my power recovered then. New living style makes me to feel time is so easily exceeded, and I need more. I need more time to learn, to relax, to enjoy my everyday….and to love. I don’t know what she thinks, but she is my battery … in secret =P
I might have a motivation to become great. As I will…
Coasta Tempo is my favorite song. In fact I don’t like Koreans, but music passed the barrier. Clicky rap plus soft voice makes an excellent combination. Who can ever image K-Rap can be so freshy?