Time of Update: 2015-11-13
標籤: 方法思路是通過T4模板產生類檔案的時候增加欄位描述,首先添加一個模板檔案GetComments.ttinclude,如下1、開啟編寫代碼: <#@ template language="C#" hostspecific="True" #><#@ assembly name="System.Core" #><#@ import namespace="System.Text" #><#@ assembly
Time of Update: 2015-11-13
標籤:因為多個事務對資料庫的並發控製造成ACID特性被破壞,為保證資料的隔離性和一致性,需要並發控制。 一、多事務並發導致的問題1.丟失修改(Lost Update,READ UNCOMMITED) T1 T2 R(A)=16
Time of Update: 2015-11-13
標籤:原文:WPF筆記(1.4 布局)——Hello,WPF!這一節只是第2章的引子。布局要使用Panel控制項,有四種Panel,如下:DockPanel,就是設定固定位置布局模型。StackPanel,提供一個從左至右或從上至下放置內容的堆棧模型。Grid,提供一個允許進行
Time of Update: 2015-11-13
標籤:原文:《Programming WPF》翻譯 第6章
Time of Update: 2015-11-13
標籤:原文:http://www.gowhich.com/blog/543關於這兩個方法,也是IOS5之後才加上去的。在iOS 5.0及以後,iOS為UIViewController類添加了新的屬性和方法:@property(nonatomic,readonly) NSArray *childViewControllers- (void)addChildViewController:(UIViewController *)childController-&
Time of Update: 2015-11-13
標籤: 1 __author__ = ‘minmin‘ 2 #coding:utf-8 3 import re,urllib,sgmllib,os 4 5 #根據當前的url擷取html 6 def getHtml(url): 7 page = urllib.urlopen(url) 8 html = page.read() 9 page.close()10 return html11 12 #根據html擷取想要的文章內容13 def func(str):14
Time of Update: 2015-11-13
標籤:使用java語言開發的伺服器端程式,可以產生動態web頁,運行在伺服器端,由伺服器調用執行,是一種按照servlet標準開發的類。先有servlet,後有jsp,jsp骨子裡依然是servlet。CGI,公用網關介面,多進程的處理方式,Servlet是多執行緒方式,所以效能上比CGI強。不管使用JSP,還是servlet,都是運行在伺服器端,所以必須瞭解servlet的處理流程。1. 用戶端通過HTTP提出請求2.
Time of Update: 2015-11-13
標籤:1.相對,絕對概念太差,架構自作聰明,設定group的visible以後,如果group的visible變數判斷沒有變化,就不會作用。如果作用裡面的child.visible都等於group.visible。group.alpha簡直絕了,group.scale爽翻了,group裡get_width有時候調用會崩潰2.flxtween如果沒有清除,有可能會影響別的元素3.flxuicursor裡按鈕排序,簡直酸爽。配上layers,bug變態到讓你無處可尋4.flx的遮罩,置灰難用到爆5.
Time of Update: 2015-11-13
標籤:Git tutorial previously, I have committed the 3 files to local repository. Then suddently I was aware of the file list.png was committed by mistake. It would‘ve been left behind and been clean from my working directory after I get other files in
Time of Update: 2015-11-13
標籤:指標 --- C語言1、前言 ?? 所有的址傳遞 都是為了值傳遞 不知上述大家是否明白,其實指標就是這個含義,它傳送的是地址,也就是所謂的址傳遞;而當你改變指標對應地址中的值時,那麼它就做到了值傳遞; ?? ?? 如何定義指標變數???
Time of Update: 2015-11-13
標籤:1.source filename : 讀取並執行filename中的指令,與.等效 。 eg: source /tools/common/.cshrc 2.setenv $varible : 改變或增加環境變數
Time of Update: 2015-11-13
標籤:find mtime sleep 系統長時間的備份會產生大量的過時檔案#!/bin/bashlogback_path=/home/rzrk/server/logbackup/logback_30day_ago=`find -mtime +30`cd $logback_pathecho -e ‘正在搜尋30天以前的檔案‘sleep 1find -mtime
Time of Update: 2015-11-13
標籤:jenkins 項目自動部署 測試環境:centos6.5_x64javajenkinssvn+apachetomcat實現目的: 利用jenkins實現,當svn有代碼更新時,Jenkins自動將代碼更新到tomcat應用目錄下,並重啟tomcat生效第一步:環境搭建svn+apache安裝:tomcat安裝:(不多說)jenkins安裝,直接將war包放入tomcat的we
Time of Update: 2015-11-13
標籤:hive安裝一、下載wget http://apache.fayea.com/hive/hive-1.2.1/apache-hive-1.2.1-bin.tar.gz 二、解壓到/usr/local目錄tar -zxf apache-hive-1.2.1-bin.tar.gz -C /usr/local三、配置環境變數vi
Time of Update: 2015-11-13
標籤:cassandra 教程 文檔 Cassandra提供了一些新的特性:效能,可操作性,CQL3改進和其他顯著變化。新特性CQL3支援JSONCassandra支援插入和查詢JSON資料使用者定義函數(UDFs)Cassandra可以使用UDFs函數儲存資料使用者定義彙總(UDAs)在Cassan
Time of Update: 2015-11-13
標籤:yum 倉庫 適用情境: 1.大型叢集中的應用伺服器只能內網訪問 2.希望保持穩定的本機存放區庫,保證成員伺服器統一安裝 3.避免因為國外yum源或者國內源網路不佳的情況訪問伺服器配置:建立應用本地yum源設定檔,確保網路正常訪問公網源,以CDH為例[[email protected] ~]# cat /etc/
Time of Update: 2015-11-13
標籤:cannot在編譯的時候偶爾遇到錯誤/usr/bin/ld: cannot find -lc,如下:650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/75/F7/wKiom1ZFu4nD1LJzAAA0RcUPcg8295.png" title="1.png" alt="wKiom1ZFu4nD1LJzAAA0RcUPcg8295.png" />查看是沒有安裝靜態庫glibc-static而導致的,安裝在編譯即可:安裝方法:
Time of Update: 2015-11-13
標籤:Hadoop有一個稱為HDFS的分布式系統,全稱為Hadoop Distributed Filesystem。HDFS有塊(block)的概念,預設為64MB,HDFS上的檔案被劃分為塊大小的多個分塊,作為獨立的儲存單元。使用塊的好處在於:1.
Time of Update: 2015-11-13
標籤:(1)怎樣判斷對象是否可以轉換?參看執行個體: TestInstanceof.java運行結果: (2)運行TestCast.java d=m;d=c;c=(Cat)m;出現錯誤(3)運行ParentChildTest.java1.程式運行結果是什嗎? 你如何解釋會得到這樣的輸出?第一個輸出建立了一個Parent對象,所以調用父類的建構函式。第二個輸出建立了一個Child對象,所以調用子類的建構函式。將子類child對象賦值給父類,將父類覆蓋調用了子
Time of Update: 2015-11-13
標籤:http://poj.org/problem?id=2891Strange Way to Express IntegersTime Limit: 1000MS Memory Limit: 131072KTotal Submissions: 11970 Accepted: 3788Description Elina is reading a book written by Rujia Liu, which