Time of Update: 2015-08-04
標籤:轉自http://usherlight.iteye.com/blog/1306111正確配置spring aop,在controller中使用AOP在controller中使用AOP的問題主要在於如何讓controller能夠被檢測到。 controller和其他spring
Time of Update: 2015-08-04
標籤:StarsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 37108 Accepted: 16173DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian
Time of Update: 2015-08-04
標籤:電腦科學 資訊表示 資訊處理資料結構中常用的概念和術語資料 資料是資訊的載體,是能夠被電腦識別,儲存,計算(處理)的符號集合是電腦處理的對象的總稱資料元素資料元素也稱為結點,是組成資料的基本單位資料項目資料是資料的最小單位資料對象具有相同特徵的資料元素的集合,是資料的子集。資料結構電腦儲存,組織資料的方式。主要包括邏輯結構從邏輯關係傘描述資料,與資料存放區無關,且獨立語言。(1)線性結構
Time of Update: 2015-08-04
標籤:一,烤地瓜版本的。。 這個版本不安裝內容滾動,,滑鼠滑輪滾動一次距離相同, 具體步驟參照他的部落格,說點注意的,,1,ScrollViewer.CanContentScroll="False"2,容器模版虛擬化StackPanel換成非虛擬。<ItemsPanelTemplate x:Key="ItemsPanelTemplate1"><StackPanel
Time of Update: 2015-08-04
標籤:一個小問題引發的思考隨機產生20個不重複A-Z的字串,並且順序排列題目挺簡單要注意幾個點,一 :A-Z的產生 二 : 隨機數 三 :不重複, 順序排列A-Z的產生:利用ascii碼錶產生字母 //確定A-Z的 ascii碼錶 (65-90) i=65char c=(char) i;//c即為"A" 再利用隨機數產生 不同的字串 int i=new
Time of Update: 2015-08-04
標籤:題目連結:點擊開啟連結題目大意:給出2^n個隊伍,採用淘汰制比賽,第1和第2比賽,第2和第三比賽,淘汰之後,仍然按順序比賽,p[i][j]:第i支隊伍贏第j支隊伍的機率,問最終哪個隊伍贏的機率最大。一共會比n場比賽,計算出每一個隊伍贏得機率,找出最大值。第一場 1對2,3對4,,,,第二場1、2對3、4,5、6對7、8,,,,第三場1、2、3、4對5、6、7、8,,這樣對於第i個隊如果想要在第k場贏,那麼他需要在第k-1場贏的機率乘以∑(j在k-1場贏的機率*i對上j贏機率)
Time of Update: 2015-08-04
標籤:twisted ftp 首先看下我的測試代碼from twisted.protocols.ftp import FTPFactory, FTPRealmfrom twisted.cred.portal import Portalfrom twisted.cred.checkers import AllowAnonymousAccess, FilePasswordDBfrom twisted.internet import
Time of Update: 2015-08-04
標籤:分治法 二分 leetcode implement pow time limit exceeded 【問題描述】Implement pow(x, n).1.【基礎知識】1)分治的意識,一道O(N)的演算法題,琢磨出O(lgN)的思想出來就是要求;2.【屌絲代碼】卡殼的地方:1.Time Limit
Time of Update: 2015-08-04
標籤:Different DigitsTime Limit: 10000/4000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1138 Accepted Submission(s): 296Problem DescriptionGiven a positive integer n,
Time of Update: 2015-08-04
標籤:find()尋找指定的條件$modelName::model->find(); 使用條件對象$criteria = new CDbCriteria();$criteria->select = array(‘uid‘,‘username‘,‘info‘);$criteria->order = ‘uid desc‘;$criteria->find($criteria);也可以這樣$modelName::model()->find(array(
Time of Update: 2015-08-04
標籤:1、題目名稱 Roman to Integer (羅馬數字到阿拉伯數位轉換) 2、題目地址 https://leetcode.com/problems/roman-to-integer/ 3、題目內容 英文:Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 中文:給出一個羅馬數字,將它轉換成整數。輸入在1-3999之間。 4、
Time of Update: 2015-08-04
標籤:轉自:
Time of Update: 2015-08-04
標籤:在今天的文章裡我會討論下可序列化(SERIALIZABLE)隔離等級裡會有的鎖定擴大(Lock Escalations),還有你如何避免。在上個月的7月14日,我已經介紹了SQL Server裡鎖定擴大(Lock Escalations)的基本概念還有為什麼需要它們。因此請你回到這個文章來理解下這個非常重要的概念。可序列化(SERIALIZABLE)隔離等級可序列化(SERIALIZABLE)隔離等級用來阻止所謂的幻影記錄(Phantom Records)。為了阻止它們,SQL
Time of Update: 2015-08-04
標籤:這道題可以和POJ 2486 樹形背包DP Apple Tree比較著來做。參考題解 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <algorithm> 5 #include <vector> 6 using namespace std; 7 8 const int maxn = 500 + 10; 9 10 int n,
Time of Update: 2015-08-04
標籤:這幾天一直在做強連通,現在總結一小下1.定義在一個有向圖中,如果任意的兩個點都是相互可達的,就說這個圖是強連通的,有向圖的極大強連通子圖,稱為強連通分量2.求法學的是白書上的tarjan演算法用到了DFS的時間戳記假設一個強連通分量C,其中的第一個點是
Time of Update: 2015-08-04
標籤:1.配置模糊查詢的路由Route::get(‘widget‘,function(){ $filter = [[‘id‘, ‘>‘, ‘0‘],[‘title‘,‘like‘,‘%aa%‘]]; $data = Widget::datalist("article", "widget.list",$filter,4)
Time of Update: 2015-08-04
LNMP環境搭建——Apache篇1.Apache DSO(Dynamic Shared Object)(1) 查看已編譯模組:[root@kallen ~]# httpd -MLoaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) auth_basic_module (shared) auth_digest_module (shared)
Time of Update: 2015-08-04
Apache代理服務的配置方法有的時候,需要將多個網站部署在同一個網域名稱下,對外統一訪問入口,但是不同的程式, 監聽連接埠不同,如果需要統一,就需要做代理。下面就詳細介紹一下,Apache 代理服務的配置方法,另外也可以用ngix做代理。一、安裝apache伺服器;( 略 )二、配置apache代理服務參數;1、 開啟右下角apache伺服器表徵圖;2、 點擊開啟如所示,選中Apache2.2,點擊Stop停止apache服務; 3、 尋找apache程式的安裝目錄,我的目錄是:4、
Time of Update: 2015-08-04
ciscoanyconnect,ubuntu下配置cisco anyconnect, ubuntu 下配置windows/mac/android/ios 下都可以到 cisco的網站下載anyconnect軟體,都有可視化的軟體可以用。linux 下的用vpnc 就可以串連 到cisco vpn 了。sudo apt-cache search vpnc你可以看到返回了若干個相關的包。其中vpnc 就是我們需要的了。所以sudo apt-get install vpnc這個是core,不帶GUI,
Time of Update: 2015-08-04
docker+ssh+webservice在項目中需要動彈發布webservice,程式是部署在docker中的tomcat裡的,這個時候需要在系統啟動時發布webservice,webservice綁定的IP地址仍然是宿主主機的IP地址,發現系統啟動時webserivce總是發布不成功,總是報類似於這個異常:Could not start Jetty server on port 9,000: Cannot assign requested