摘要:
去GitHub(https://github.com/acl-dev/acl/releases)上下载最新的版本。 放入Linux上指定的目录,解压。比如目录为acl-master 进入acl-master,执行make build_one即可 头文件目录:acl-master/lib_acl_cp 阅读全文
摘要:
PublicFunctionDownloadFileFromWebsite(ByValstrURLAsSystem.String,_ByValstrOutputPathAsSystem.String,_OptionalByValbDisplayProgressAsSystem.Boolean=False)_AsSystem.BooleanDimbSuccessAsSystem.BooleanDimobjWebRequestAsSystem.Net.WebRequest=NothingDimmyWebResponseAsSystem.Net.WebResponse=NothingDimobjOu 阅读全文
摘要:
usemaster;alter database aaa set single_user with rollback immediate;drop database aaa死锁:DELETE FROM dow WITH(XLOCK) 阅读全文
摘要:
<script language="javascript">function addclick() {//点击触发addclick事件 var txtuserName = $("#txtuserName").val();//用jquery获取id为txtuserName的页面标记的value,存放在txtuserName变量里 $.ajax({ type: "POST",//ajax的方式为post(get方式对传送数据长度有限制) url: "/AjaxRequest/AddUser.ashx",// 阅读全文
摘要:
publicclassCombination{List<string>Array=null;publicCombination(List<string>array){Array=array;}publicvoidPrintCombination(){foreach(stringsinCombinate(0)){Console.WriteLine(s);}}privateList<string>Combinate(intstartIndex){if(startIndex>=Array.Count)returnnewList<string>() 阅读全文
摘要:
usingSystem;usingSystem.Text;usingSystem.IO;usingSystem.IO.Compression;namespace努力偷懒.Commonds{///<summary>///使用系统默认压缩流的方法进行压缩并保存成文件,///约定1:文件前面8个字节保存的是long类型,存储的是字符串压缩前的字节长度。///</summary>publicclassZipFileHelper{publicstaticlongWriteString(stringfileName,stringdata){longlResult=0;byte[]b 阅读全文
摘要:
[System.Runtime.InteropServices.DllImport("user32.dll")]privatestaticexternboolShowWindow(IntPtrhWnd,intnCmdShow);privateconstintSW_MINIMIZE=6;privateconstintSW_MAXIMIZE=3;privateconstintSW_RESTORE=9;[STAThread]staticvoidMain(string[]args){IntPtrwinHandle=System.Diagnostics.Process.GetCurr 阅读全文
摘要:
In top page: <script type="text/javascript" language="javascript"> function changedSouce() { var left=window.parent.window.document.getElementById("two"); left.src = "right.aspx"; var content=window.parent.window.document.getElementById("three" 阅读全文
摘要:
PublicFunctionGetFromRegistry(ByRefKeyAsSystem.String,ByRefSubKeyAsSystem.String)AsSystem.StringDimstrResultAsSystem.String=""TryDimobjUserKeyAsMicrosoft.Win32.RegistryKey=Microsoft.Win32.Registry.LocalMachineDimobjSoftwareKeyAsMicrosoft.Win32.RegistryKey=objUserKey.OpenSubKey("Softwa 阅读全文
摘要:
publicclassSBinaryTree{publicintValue;publicSBinaryTreeLeftChild;publicSBinaryTreeRightChild;publicSBinaryTree(intvalue,SBinaryTreeleft,SBinaryTreeright){Value=value;LeftChild=left;RightChild=right;}}//SBinaryTreem=newSBinaryTree(4,null,null);//SBinaryTreea=newSBinaryTree(4,m,null);//SBinaryTreeb=ne 阅读全文