標籤:轉自:http://blog.csdn.net/jz20110918/article/details/41806611 假設我們有兩張表。Table A 是左邊的表。Table B 是右邊的表。其各有四條記錄,其中有兩條記錄name是相同的,如下所示:讓我們看看不同JOIN的不同A表idname1Pirate2Monkey3Ninja4SpaghettiB表idname1Rutabaga2Pirate3Darth Vade4Ninja1.INNER JOINSELECT *
標籤:Separating Axis Theorem(分離軸理論)在學習Ray-Box檢測之前,首先來學習一些這個分離軸理論!先說二維情況,一句話 Two convex polygons do not intersect if and only if there exists a line such that the projections of the two polygons onto the line do not intersect.
標籤:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "aab",Return [ ["aa","
標籤: 1、pstack/gstack:print a stack trace of a running process 1)用法:gstack pid。 2)簡介:gstack命令attach到指定pid的進程,並列印其執行堆疊追蹤(execution stack trace)。若是多線程進程,還可以分別列印出各線程的堆疊追蹤。如以下片斷:Thread 28 (Thread 0x7f771e50c700 (LWP 24360)):#0 0x00000038cfa0b63c in
標籤:常用的調試工具有Chrome瀏覽器的調試工具,Firefox瀏覽器的Firebug外掛程式調試工具,IE的開發人員工具等。它們的功能與使用方法大致相似。Chrome瀏覽器簡潔快速,功能強大這裡主要介紹Chrome瀏覽器的調試工具。開啟 Google Chrome 瀏覽器,通過下面任何一種方式進入開發人員工具: -點擊位於瀏覽器使用者介面右上方的“頁面”下拉式功能表,“更多工具”→“開發人員工具”。&
標籤:一、GET/POST1、擷取GET/POST過來的資料Yii::app()->request->getParam(‘id‘);2、判斷資料提交方式Yii::app()->request->isPostRequest;二、session/cookie1、session常用操作$_SESSION等價於Yii::app()->session;1.1、寫入session//啟動session$session = new
標籤:Grand Central Dispatch (GCD)是Apple開發的一個多核編程的解決方案。dispatch queue分成以下三種:1)運行在主線程的Main queue,通過dispatch_get_main_queue擷取。/*!* @function dispatch_get_main_queue** @abstract* Returns the default queue that is bound to the main thread.** @discussion*