Time of Update: 2018-12-06
[Url= http://www.cnblogs.com/ginohuo/archive/2010/09/28/1837749.html]偶爾會遇到一些項目需求,從指定網站去挖資料,然後返回執行格式的資料。其實就是一般所說的盜取資料。比如,從以下網頁,抓取到一組視頻的資訊,每條資訊包含視頻,視頻名字,Url等等。[Web]http://www.tudou.com/albumtop/c30t-1a-1y-1h-1s0p1.html 運行結果
Time of Update: 2018-12-06
CLR:Common Language Runtime,通用語言執行平台,是和Java的虛擬機器一樣是一個運行時環境。CLR是運行Managed 程式碼的虛擬機器。CLR負責的事情:即時編輯(Just In Time Compile:JIT編譯),記憶體回收(Garbage Collect)IL:Intermediate
Time of Update: 2018-12-06
1.ItemsControl是控制項嗎 ItemsControl可以在Panel中直接使用<StackPanel> <ItemsControl Name="items"> </ItemsControl></StackPanel>直接設定ItemsSource也是可以顯示的:items.ItemsSource = new List<string> {"A","B","C"
Time of Update: 2018-12-06
在以前的WCF中,Client調用一個Service,首先得知道Service的Address.當用戶端不能確定這個Address的時候呢?一個不恰當的比方:當您不知道某人的住所卻又想找到他的時候?WCF4.0發布的Discovery 功能 或許可以滿足這個需要.WCF4.0-Discovery 提供了 Ad-Hoc & Managed
Time of Update: 2018-12-06
Good morning ! It is really my honor to have this opportunity for an interview, I hope i can make a good performance today. I'm confident that I can succeed. Now i will introduce myself briefly I am 26 years old,born in shandong province . I was
Time of Update: 2018-12-06
1.在什麼地方找到NotifyIcon普通的WPF控制項基本上都是在該命名空間下:System.Windows.Controls,該命名空間在C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll下。也就是說是.net
Time of Update: 2018-12-06
方法一:Session.Delete()這個方法是最常用的,一共有4個重載的方法void Delete(object obj);int Delete(string query)int Delete(string query, object value, IType type);int Delete(string query, object[] values, IType[]
Time of Update: 2018-12-06
在 Android 控制項View -TextView - 文本顯示控制項Button - 按鈕CompoundButtonCheckBox - 複選框 RadioButton - 單選框 ToggleButton - 開關按鈕 CheckTextView - 可選擇的文本控制項,在ListView中很有用 Chronometer - 計時器 DigitalClock - 數字時鐘 EditText - 可編輯文本控制項AutoCompleteTextView -
Time of Update: 2018-12-06
以下是ActionResult的繼承圖:大概的分類:EmptyResult:表示不執行任何操作的結果 ContentResult :返迴文本結果 JavaScriptResult:返回結果為JavaScript JsonResult :返回Json結構資料 RedirectResult,RedirectToRouteResult FileContentResult,FilePathResult,FileStreamResult ViewResult,PartialViewResult
Time of Update: 2018-12-06
這裡簡單的記錄了 在windows azure上面運行jetty. (--Java,jsp)Windows azure 提供的Fast CGI支援可以很方便的運行Php程式, Native Code Support的特性,也可以很方便的運行其他您想啟動並執行東西, 當然 還是有一定的限制的。具體參看: Executing Native Code in Windows Azure and the Development
Time of Update: 2018-12-06
解決問題:解決UI上使用NHibernate通用查詢方法(僅適用於多個條件聯集查詢)第一步:在UI層建立構造條件方法: private IList<ICriterion> GetCondition(string customerName = "", string address = "") { Employee employee = new Employee(); List<ICriterion>
Time of Update: 2018-12-06
前一段時間使用jquery.validate時遇到一個棘手的問題. 在使用remote驗證規則jquery.validate 不能正常工作. 以下是測試指令碼:<script> $(function (){ $("#form1").validate({ rules:{ txt1:{ remote:{
Time of Update: 2018-12-06
由於只需要HTML的環境即可分享Silverlight程式,這樣的免費Host也比較多,不過,相對來說,使用Google App appengine的免費版,倒是不錯。1. 註冊並建立項目.具體參見:https://appengine.google.com/2.下載安裝 python 和 GoogleAppEngine SDK(都可以在Google App appengine的網站下載到.)3.使用Google App Engine
Time of Update: 2018-12-06
部署您的程式到Windows azure+Sql azure平台是一個不錯的選擇,不過,這個是收費的。google appengine datastore 可以提供了一個免費(免費版有一定的限制)的資料存放區環境。如果您暫時不想花錢,儲存資料到google appengine datastore 還是一個不錯的選擇。google appengine 現在支援Java&Python。介紹一個Soap wrapper,協助在.net程式中,操作google appengine
Time of Update: 2018-12-06
/// <summary>要查詢的對象</summary>class Employee { public int ID { get;set; } public string FName { get; set; } public int Age { get; set; } public char Sex { get; set; }}如果對這個類的Age和Sex的連個欄位進行分組,方法如下:// 先造一些資料List<Employee>
Time of Update: 2018-12-06
利用PowerPivot for excel
Time of Update: 2018-12-06
很多團隊都有這個問題,一個項目的代碼本來開始設計得好好的,一段時間以後,代碼就會變得難以理解,難以維護,難以修改。為什嗎?我一直在思考這個問題。 讓我們先看一個人的情況。 1.
Time of Update: 2018-12-06
Microsoft.WindowsAzure.StorageClient.dll 封裝了對Blob,Table,Queue 的常見操作。這樣不用直接用REST去coding了,方便不少。 class Program { const string config =
Time of Update: 2018-12-06
鬱悶:powerdesigner 產生oracle的建表指令碼,但是對產生的表不能進行 insert、exp、update、drop 報ORA-00942: 表或試圖不存在 異常,本以為動了oracle哪裡的配置導致的,在網上找了很多文章——未果!百般無奈下刪除了使用者 ……drop user lizhiyu cascade; 不妥:用powerdesigner 產生的oracle的建表指令碼重建立庫,結果還是一樣。只能仔細看下錶結構,建表語句如下: -- Create
Time of Update: 2018-12-06
WCF 的推出整合了.net remoting,webservice 等等,簡化了微軟平台的通訊開發,可以預計也是微軟平台的通訊處理的整合方向。[簡化的配置]可能都記得,wcf 3.0裡面的配置,的確夠複雜的;不過這次4.0的發布,微軟倒是發布了一些精簡的配置辦法。比如我們要Host一個服務,通過下面的簡單代碼即可,是不是方便了不少?<?xml version="1.0"?><configuration> <startup>