Time of Update: 2018-12-07
F:\Autorun\DelSQLBackup>forfiles /p "Z:\mysqlback" /d -2 /c "cmd /c if @isdir==TRUE echo deleting @file && rd /q /s @path" /C command 表示為每個檔案執行的命令。命令字串應該 用雙引號括起來。 預設命令是 "cmd /c
Time of Update: 2018-12-07
http://www.grc.com/securable.htm 第一個64位表示你的電腦最多支援多少位的系統,32或者64。第二個表示你的硬體是否支援DEP?Yes,支援。No,不支援。OFF,表示支援,但是關閉著的。第三個表示你的電腦是否支援CPU虛擬化。Yes,支援。No,不支援。OFF,表示支援,但是關閉的,需手動開啟。 PS:DELL伺服器正常下是關閉了virtualization的,如果要在32位宿主上虛擬64位作業系統就要在BIOS裡開啟Processor
Time of Update: 2018-12-07
在使用JScript的數組的時候,我發現一個挺好玩的特性,就是它的內建對象Array的length是可以寫的。很奇怪吧?但是很好玩哦。那麼如果我改變其length會有什麼效果呢? 當我們修改Array執行個體的length屬性後,就會改變該數組的容量。 比如JScript的數組:var array = ['a', 'b', 'c']; 我們使array.length=1,數組內元素就變成了:['a']; 如果讓array.length=5,數組內元素就變成了:['
Time of Update: 2018-12-07
網遊平台開發中需要使用C++編程,為了有效利用現有的,成熟的類庫,準備對boost庫大致瀏覽一遍,同時將一些心得,記錄在blog上。 String and text processing: 1. conversion/lexical_cast lexical_cast類用於字面值的轉換,其原型為: template<typename Target, typename Source> Target lexical_cast(Source arg)
Time of Update: 2018-12-07
template<template <typename> class _Alloc> class ACE_STL_Allocator : public ACE_Allocator { public: typedef _Alloc<char> alloc_type; public: /// These methods are defined. virtual void *malloc (size_t nbytes); virtual
Time of Update: 2018-12-07
INSERT INTO qh_ly ( [Topics] ,[Message] ,[Name] ,Gender ,LDName ,[Addres] ,[ZipCode] ,[Phone] ,[Fax] ,[Mobile] ,[E-mail] ) VALUES ([@Topics],[@Message],[@Name],[@Gender],[@LDName],[@Addres],[@ZipCode],[@Phone],[@Fax],[@Mobile],[@E-mail] Cmd.
Time of Update: 2018-12-07
Const JAKARTA_ISAPI As String = "ISAPI-dll"Using serverManager As New ServerManager()Dim config As Configuration = serverManager.GetWebConfiguration(strWebsiteName, strVirtualDirName)Dim handlersSection As ConfigurationSection =
Time of Update: 2018-12-07
create table tb(id varchar(3) , pid varchar(3) , name varchar(10))insert into tb values('001' , null , '廣東省')insert into tb values('002' , '001' , '廣州市')insert into tb values('003' , '001' , '深圳市')insert into tb values('004' , '002' , '天河區')insert
Time of Update: 2018-12-07
Sub Main(ByVal args As String()) Dim strTxt As String = "" Dim PathName As String = args(0) Dim sReader As StreamReader sReader = New StreamReader(PathName, Encoding.Default) Dim S As String S =
Time of Update: 2018-12-07
從http://ftp.apnic.net/apnic/dbase/tools/ 擷取地址shell> wget http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz shell> tar xzvf ripe-dbase-client-v3.tar.gzshell> cd whois-3.1shell> ./configure shell> make
Time of Update: 2018-12-07
在web.config這樣聲明編碼 <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />左架構靜態頁面這樣聲明<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />右架構是一個aspx頁 If Not (Request("type") Is Nothing)
Time of Update: 2018-12-07
9 Perl 中的RegexRegex的三種形式 Regex中的常用模式 Regex的 8 大原則 Regex是 Perl 語言的一大特色,也是 Perl 程式中的一點痛點,不過如果大家能夠很好的掌握他,就可以輕易地用Regex來完成字串處理的任務,當然在 CGI 程式設計中就更能得心應手了。下面我們列出一些Regex書寫時的一些基本文法規則。--------------------------------------------------------------------
Time of Update: 2018-12-07
IIS7下,被調用(如,通過web訪問或者通過web下載)的檔案,通過FTP更新,會出現“550 The process cannot access the file because it is being used by another
Time of Update: 2018-12-07
昨天用System.Net.Sockets來檢查伺服器的80連接埠是否正常,但是它無法控制串連到主機的逾時時間,按MSDN說法,好像只能控制Send 調用逾時時間,沒有找到連線逾時時間設定,這樣造成了當程式串連到一個沒有開放80連接埠的IP時要等待十多秒,程式變得非常緩慢。Socket 成員:http://msdn.microsoft.com/zh-cn/library/system.net.sockets.socket_members(v=VS.80).aspx 今天google
Time of Update: 2018-12-07
可能最近很多人都聽說了微軟要推出MVC的架構,關注MonoRail的人也多了起來。想學習MonoRail的人應該也不少,但是埋頭拉車,更要抬頭看路,我們為什麼要學習MonoRail呢?我自己到現在還搖擺不定,以下是我個人的一點看法,歡迎大家討論。好處:1、方便大項目的開發,可以集中控制2、代碼間分層清晰3、可以讓不懂程式的美工設計介面4、從Java轉過來的人學起來相對容易一點壞處:1、不能使用微軟的伺服器控制項2、好像不支援緩衝3、大部分人都不會,項目組內推廣有難度4、大量使用反射,效能好像也不
Time of Update: 2018-12-07
原文見:http://bbs.okajax.com/demo/17/jQZoom allows you to realize a small magnifier window close to the image or images on your web page easily.I decided to build this jQuery plugin to embed detailed big images in my B2B.So now in few steps you can
Time of Update: 2018-12-07
在AspNet4中的資料繫結控制項(GridView
Time of Update: 2018-12-07
實際應用中,往往需要將Voucher批量儲存到磁碟檔案,然後發送到業務中心。可以將每個Voucher儲存為一個檔案,然後將多個檔案順序傳輸,但這並不是一種很好的方案。 BinnaryFormatter的Serialize方法需要傳入一個Stream,這個Stream應當是可以持續寫入的,因此將多個Voucher寫入同一個stream中,應該是沒有問題的。VoucherSerializer的BatchSerialize和BatchDeserialize方法的代碼如下:public void
Time of Update: 2018-12-07
因為STL庫廣泛使用了Iterator, functor, binder,因此可以寫出一個能夠融入STL庫的Adapter類,提高代碼的通用性。比如STL演算法中傳入的functor型別要求為ReturnType& func(Type& elem),而map中同時存了key和value,有時候需要使用ReturnType& func(KeyType& key, ValueType&
Time of Update: 2018-12-07
原文見http://www.cnblogs.com/mikespook/archive/2005/01/31/99912.html,作者將映像對齊的問題歸到對FillRectangle的理解上,這是不準確的。 根本的原因在於TextureBrush的使用方式,GDI+中使用Brush時,會根據Graphics.RenderingOrigin確定Brush的原點,然後在FillRectangle,DrawString等使用Brush的方法中,將Brush的可見部分繪製出來。除了Textu