09 2015 档案

摘要:Const.MaxLengthOfBufferd的长度固定为0x2000 也就是8192private bool SendMessage(int messageType, string ip, string port, int length, byte[] messageBytes) ... 阅读全文
posted @ 2015-09-30 10:55 ChuckLu 阅读(11276) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/lyl6796910/p/3958768.html 阅读全文
posted @ 2015-09-29 18:40 ChuckLu 阅读(273) 评论(0) 推荐(0) 编辑
摘要:word文档左侧显示目录 word2007 选择word的视图,然后选择文档结构图 View-->Navigation pane word中插入当前文档名称或者文档编辑时间 https://stackoverflow.com/questions/3921275/add-a-filename-fiel 阅读全文
posted @ 2015-09-29 18:16 ChuckLu 阅读(424) 评论(0) 推荐(0) 编辑
摘要:在项目里面新建一个文件夹Dll然后把这个文件夹复制到输出路径在项目的生成事件中,添加生成后的事件,将文件夹中的dll,复制到上一层目录 阅读全文
posted @ 2015-09-29 15:40 ChuckLu 阅读(236) 评论(0) 推荐(0) 编辑
摘要:1.将OutLook.exe注册为服务,让其一直保持开启状态 类似于TaobaoProtect.exe是由TBSecSvc服务启动的 http://stackoverflow.com/questions/3582108/create-windows-service-from-executable# 阅读全文
posted @ 2015-09-28 15:10 ChuckLu 阅读(1604) 评论(0) 推荐(0) 编辑
摘要:http://www.codewars.com/kata/55d32bff0cc60b2e7f000173/solutions/csharp1年前自学考试,高等数学(工专),考了80多分。满分100的卷子.[2014年04月的时候]尼玛,坑爹了。今天遇到这个题目,刚开始没看仔细,以为是计算整数int... 阅读全文
posted @ 2015-09-27 23:20 ChuckLu 阅读(270) 评论(0) 推荐(0) 编辑
摘要:Description:Hey Codewarrior!You already implemented aCubeclass, but now we need your help again! I'm talking about constructors. We don't have one. Le... 阅读全文
posted @ 2015-09-27 21:15 ChuckLu 阅读(569) 评论(0) 推荐(0) 编辑
摘要:http://www.codewars.com/kata/smallest-unused-idDescription:Hey awesome programmer!You've got much data to manage and of course you use zero-based and ... 阅读全文
posted @ 2015-09-27 21:05 ChuckLu 阅读(489) 评论(0) 推荐(0) 编辑
摘要:https://en.wikipedia.org/wiki/SHA-1Incryptography,SHA-1(Secure Hash Algorithm 1) is acryptographic hash functiondesigned by the United StatesNational ... 阅读全文
posted @ 2015-09-27 17:54 ChuckLu 阅读(310) 评论(0) 推荐(0) 编辑
摘要:gitclonehttps://github.com/git/git.gitgit3cloneremote git clone -o git https://github.com/git/git.git git4 $ git remote -vg 阅读全文
posted @ 2015-09-27 14:35 ChuckLu 阅读(550) 评论(0) 推荐(0) 编辑
摘要:git-rev-list - Lists commit objects in reverse chronological order https://git-scm.com/docs/git-rev-list 按照时间顺序倒序排列的commit Update: If all you need is 阅读全文
posted @ 2015-09-27 12:08 ChuckLu 阅读(2938) 评论(0) 推荐(0) 编辑
摘要:方法一http://stackoverflow.com/questions/25815202/git-fetch-a-single-commitThegit fetchcommand deliversreferences(names, not raw commit-IDs) to the remot... 阅读全文
posted @ 2015-09-27 10:55 ChuckLu 阅读(9890) 评论(0) 推荐(0) 编辑
摘要:1.先去qq邮箱,设置,账户开启pop3服务,假如之前开启过,最好关闭之后重新开启最新版本的必须使用邮箱的独立密码才可以收取邮件(否则就算你之前开通了,也无法用你的qq账号和密码收取邮件的)2.高级设置里面,需要勾选ssl加密,pop3端口设置为995另外,记得不要同步删除邮件服务器的邮件http:... 阅读全文
posted @ 2015-09-27 10:53 ChuckLu 阅读(573) 评论(0) 推荐(0) 编辑
摘要:要删除本地,首先要考虑以下三点 列出所有本地分支 搜索目标分支如:所有含有‘dev’的分支 将搜索出的结果传给删除函数 所以我们可以得到: git br |grep 'dev' |xargs git br -d 本地新建了很多分支,比如 $ git branch brabch branch2 bra 阅读全文
posted @ 2015-09-26 14:50 ChuckLu 阅读(2016) 评论(0) 推荐(0) 编辑
摘要:http://speedupcomputercleaner.com/windows-7-error-bex64.php How To Fix Windows 7 Error Bex64 ? What Causes Windows 7 Error Bex64?Registry errors are o... 阅读全文
posted @ 2015-09-25 20:12 ChuckLu 阅读(1537) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-8-special-addresses/The special IPv6 addresses discussed in this part of the IPv6 tutorial are the uns... 阅读全文
posted @ 2015-09-25 15:46 ChuckLu 阅读(349) 评论(0) 推荐(0) 编辑
摘要:The zone ID is used to distinguish ambiguous link-local and site-local addresses. Unique local IPv6 unicast addresses are another way to address the p... 阅读全文
posted @ 2015-09-25 15:29 ChuckLu 阅读(1365) 评论(0) 推荐(0) 编辑
摘要:C:\Windows\System32>ipconfig -allWindows IP 配置 主机名 . . . . . . . . . . . . . : LuJunTao 主 DNS 后缀 . . . . . . . . . . . : 节点类型 . . . . . . . . . .... 阅读全文
posted @ 2015-09-25 15:18 ChuckLu 阅读(621) 评论(0) 推荐(0) 编辑
摘要:C:\Windows\System32>netsh interface ipv6 show address level=verbose地址 ::1 参数---------------------------------------------------------接口 Luid ... 阅读全文
posted @ 2015-09-25 15:16 ChuckLu 阅读(688) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-6-site-local-addresses-and-link-local-addresses/In the last post of this IPv6 tutorial, you learned ab... 阅读全文
posted @ 2015-09-25 15:04 ChuckLu 阅读(497) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-5-address-types-and-global-unicast-addresses/In my last post in the IPv6 series, you learned theIPv6 a... 阅读全文
posted @ 2015-09-25 15:00 ChuckLu 阅读(320) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-4-ipv6-address-syntax/Now that you know about thenew features of IPv6, it is time to have a closer loo... 阅读全文
posted @ 2015-09-25 14:36 ChuckLu 阅读(366) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-3-new-features-ipsec-and-lan-features/In the last post of this series, I discussed thenew IPv6 feature... 阅读全文
posted @ 2015-09-25 14:18 ChuckLu 阅读(224) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-part-2-new-features-routing/Routing路由选择In the last post of my IPv6 series, I outlined the main reason why you should... 阅读全文
posted @ 2015-09-25 13:54 ChuckLu 阅读(221) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-part-1-get-started-now/You’ve probably heard the news that the Internet is in trouble. The last block of IP addresse... 阅读全文
posted @ 2015-09-25 13:40 ChuckLu 阅读(198) 评论(0) 推荐(0) 编辑
摘要:https://4sysops.com/archives/ipv6-tutorial-part-6-site-local-addresses-and-link-local-addresses/ In IPv6, link-local addresses always begin with 11111 阅读全文
posted @ 2015-09-25 11:34 ChuckLu 阅读(565) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2015-09-25 09:46 ChuckLu 阅读(1) 评论(0) 推荐(0) 编辑
摘要:http://blogs.msdn.com/b/saraford/archive/2005/08/16/452411.aspxDid you know… That you can hide the solution and advanced build configurationsUnder Too... 阅读全文
posted @ 2015-09-24 18:40 ChuckLu 阅读(241) 评论(0) 推荐(0) 编辑
摘要:1.Debug配置2.Release配置2.Debug和Release的区别(1)Debug有定义DEBUG常量,Release没有(2)Debug没有优化代码,Release有(3)生成路径不同,分别为bin\Debug\和bin\Release\4.所有配置展示结果是对所有项目配置(Debug,... 阅读全文
posted @ 2015-09-24 14:25 ChuckLu 阅读(2309) 评论(0) 推荐(0) 编辑
摘要:1.默认的解决方案配置默认有2个解决方案配置Debug和Release配置管理器中的活动解决方案配置,其中活动是指,当前解决方案使用的是哪一个解决方案配置右侧的下拉箭头,可以看到还有Release可以选择,选择好之后,回到VS的主菜单界面,会看到启动旁边的解决方案配置会变化3.新建解决方案配置001... 阅读全文
posted @ 2015-09-24 13:11 ChuckLu 阅读(768) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/bb166577.aspxSolution configurations store solution-level properties.They direct the behavior of theStart(F5)... 阅读全文
posted @ 2015-09-24 11:28 ChuckLu 阅读(1124) 评论(0) 推荐(0) 编辑
摘要:Console.WriteLine("BitConverter.IsLittleEndian = {0}", BitConverter.IsLittleEndian); Console.WriteLine(); string format... 阅读全文
posted @ 2015-09-23 14:47 ChuckLu 阅读(1393) 评论(0) 推荐(0) 编辑
摘要:double值由外部传入 private void Compare(double value) { string text; if (value != 0) //小数位后保留2位 { ... 阅读全文
posted @ 2015-09-22 10:08 ChuckLu 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:private void DeviceSetText(TextBox textBox, string text) { //处理text的显示值 if (text != "0") //小数位后保留2位 { ... 阅读全文
posted @ 2015-09-22 09:49 ChuckLu 阅读(448) 评论(0) 推荐(0) 编辑
摘要:http://blogs.msdn.com/b/ericlippert/archive/tags/covariance+and+contravariance/ 阅读全文
posted @ 2015-09-22 09:38 ChuckLu 阅读(191) 评论(0) 推荐(0) 编辑
摘要:http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspxC# implements variance in two ... 阅读全文
posted @ 2015-09-22 09:37 ChuckLu 阅读(380) 评论(0) 推荐(0) 编辑
摘要:http://blogs.msdn.com/b/ericlippert/archive/2007/10/16/covariance-and-contravariance-in-c-part-one.aspxI have been wanting for a long time to do a ser... 阅读全文
posted @ 2015-09-22 09:36 ChuckLu 阅读(290) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/8704332/co-variant-array-conversion-from-x-to-y-may-cause-run-time-exception What it means is this And in more gene 阅读全文
posted @ 2015-09-22 09:25 ChuckLu 阅读(579) 评论(0) 推荐(0) 编辑
摘要:(Assuming you're writing in C# here) When an object written in C# is constructed, what happens is that the initializers run in order from the most der 阅读全文
posted @ 2015-09-21 17:37 ChuckLu 阅读(629) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/a1sway8w.aspxThe left-shift operator (<<) shifts its first operand left by the number of bits specified by it... 阅读全文
posted @ 2015-09-18 15:05 ChuckLu 阅读(577) 评论(0) 推荐(0) 编辑
摘要:网络字节顺序NBO(Network Byte Order):按从高到低的顺序存储,在网络上使用统一的网络字节顺序,可以避免兼容性问题。 The order in which the bytes of a multi-byte number are transmitted on a network - 阅读全文
posted @ 2015-09-18 09:44 ChuckLu 阅读(4255) 评论(0) 推荐(0) 编辑
摘要:在触发异常的地方添加一下代码,就会出现英文的异常 Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.Invar... 阅读全文
posted @ 2015-09-17 13:31 ChuckLu 阅读(693) 评论(0) 推荐(0) 编辑
摘要:原文链接 http://nvie.com/posts/a-successful-git-branching-model/ 有人发现git work flow的缺点,历史提交会变得混乱 http://endoflineblog.com/gitflow-considered-harmful http:/ 阅读全文
posted @ 2015-09-16 09:02 ChuckLu 阅读(2230) 评论(0) 推荐(0) 编辑
摘要:rebase和merge的正确使用时机https://medium.com/@porteneuve/getting-solid-at-git-rebase-vs-merge-4fa1a48c53aagit的subtree的用法https://medium.com/@porteneuve/master... 阅读全文
posted @ 2015-09-16 08:58 ChuckLu 阅读(183) 评论(0) 推荐(0) 编辑
摘要:自己的demo 代码里面有一个for循环 循环内部调用了匿名委托 模拟了一下: 但是下面这段代码的执行,不会出现问题是正常的 What are 'closures' in .NET? I have an article on this very topic. (It has lots of exam 阅读全文
posted @ 2015-09-15 17:05 ChuckLu 阅读(873) 评论(0) 推荐(0) 编辑
摘要:百度之后,知道这个原因是端口已经被其他进程打开了使用cmd命令,查看8002端口被哪一个程序占用了C:\Windows\System32>netstat -ano | find "8002" TCP 0.0.0.0:8002 0.0.0.0:0 ... 阅读全文
posted @ 2015-09-15 15:17 ChuckLu 阅读(727) 评论(0) 推荐(0) 编辑
摘要:TaobaoProtect.exe C:\Users\Administrator\AppData\Roaming\TaobaoProtect TaobaoProtect.exe https://technet.microsoft.com/en-us/sysinternals/bb896653 以前用 阅读全文
posted @ 2015-09-15 13:30 ChuckLu 阅读(2198) 评论(0) 推荐(0) 编辑
摘要:最近谷歌没法用了,我的freegate经常性的崩溃无奈之下,用了必应,貌似也不错http://stackoverflow.com/questions/8414514/iis7-does-not-start-my-exe-file-by-process-start第一种方法Edit:After a l... 阅读全文
posted @ 2015-09-15 08:50 ChuckLu 阅读(687) 评论(0) 推荐(0) 编辑
摘要:.gitignore NuGet exclude packages/ include packages/repositories.config 回答1 I faced the same issue. None of the above solutions worked for me. And I t 阅读全文
posted @ 2015-09-12 18:05 ChuckLu 阅读(333) 评论(0) 推荐(0) 编辑
摘要://数据帧格式如下 //+-------+-------+-------+-------+---------+------+-------+ //|包头(2)|地址(1)|功能(1)|长度(1)|数据包(n)|CRC(2)|包尾(2)| //+------... 阅读全文
posted @ 2015-09-11 13:44 ChuckLu 阅读(382) 评论(0) 推荐(0) 编辑
摘要:以前使用git,都要参考这个来进行中文支持 http://blog.csdn.net/son_of_god/article/details/7341928 有一次更新了git之后,发现默认支持了中文【在推送的时候】 今天使用的时候,发现在git bash里面,无法显示中文 1.在git bash中显 阅读全文
posted @ 2015-09-10 09:40 ChuckLu 阅读(1161) 评论(0) 推荐(0) 编辑
摘要:https://git-scm.com/docs/git-stash 在git svn的时候使用,提交记录的时候,有部分文件的修改不需要commit。 在向svn进行git svn dcommit的时候,必须保存本地目录是clean的。所以需要进行stash,然后在dcommit dcommit之后 阅读全文
posted @ 2015-09-09 09:37 ChuckLu 阅读(7148) 评论(2) 推荐(1) 编辑
摘要:仅仅针对于IPv4的处理方法从string转换为int以及从int转换为string// IPv4int intAddress = BitConverter.ToInt32(IPAddress.Parse(address).GetAddressBytes(), 0);string ipAddress... 阅读全文
posted @ 2015-09-07 16:29 ChuckLu 阅读(370) 评论(0) 推荐(0) 编辑
摘要:结构用途说明Implements a Windows message.Properties1.public IntPtr HWnd { get; set; }Gets or sets the window handle of the message.System.IntPtrA platform-s... 阅读全文
posted @ 2015-09-07 11:14 ChuckLu 阅读(949) 评论(0) 推荐(0) 编辑
摘要:Control.DefWndProcSends the specified message to the default window procedure.参数说明:m:The WindowsMessageto process.protected virtual void DefWndProc(re... 阅读全文
posted @ 2015-09-07 10:40 ChuckLu 阅读(416) 评论(0) 推荐(0) 编辑
摘要:前提http://www.cnblogs.com/chucklu/p/4786629.html在上一篇文章的基础上,现在来使用其他主题的皮肤一、其他皮肤主题一共有3种类型的主题:1.默认的CaramelMoney TwinsLilianThe Asphalt WorldiMaginaryBlackB... 阅读全文
posted @ 2015-09-06 17:19 ChuckLu 阅读(1108) 评论(0) 推荐(0) 编辑
摘要:前提: 默认皮肤的显示http://www.cnblogs.com/chucklu/p/4785572.html1.修改XtraForm的LookAndFeel的SkinName属性,设置为Caramel this.LookAndFeel.SkinName = "Caramel";2.运行程序后,发... 阅读全文
posted @ 2015-09-06 17:07 ChuckLu 阅读(1445) 评论(0) 推荐(0) 编辑
摘要:1.新建一个XtraForm窗体2.运行显示这个窗体,会发现没有任何变化,显示的还是winform的样式3.在Program.cs文件的Main函数中添加DevExpress.Skins.SkinManager.EnableFormSkins();4.再次运行程序,就可以显示出DevExpress的... 阅读全文
posted @ 2015-09-06 14:46 ChuckLu 阅读(1183) 评论(0) 推荐(0) 编辑
摘要:1.确保客户端可以接收到服务端的异常 2.部署wcf出错,http错误404.3 3.无法自动调试 未能调试远程过程。这通常说明未在服务器上启用调试 WCF 托管在IIS上 4.ChannelFactory.Endpoint 上的地址属性为空。ChannelFactory 的终结点必须指定一个有效的 阅读全文
posted @ 2015-09-06 13:26 ChuckLu 阅读(1502) 评论(0) 推荐(0) 编辑
摘要:http://www.uninstallapp.com/article/How-to-uninstall-Perl-Dev-Kit-PDK-8.0.1.289861.htmlPerfectUninstaller_Setuphttp://www.uninstallapp.com/PerfectUnin... 阅读全文
posted @ 2015-09-06 12:08 ChuckLu 阅读(189) 评论(0) 推荐(0) 编辑
摘要:首先找到了这篇文章http://www.cnblogs.com/haokaibo/archive/2010/07/31/1789342.html然后找到一篇英文的文章http://monsur.xanga.com/2006/02/03/dll-refresh-and-asp-net/The ques... 阅读全文
posted @ 2015-09-06 09:01 ChuckLu 阅读(1184) 评论(0) 推荐(0) 编辑
摘要:1.使用命令来直接查找 假设有分支A和分支B,那么使用以下命令 【http://stackoverflow.com/questions/1549146/find-common-ancestor-of-two-branches】 git merge-base A B 就可以查看这2个分支的共同父节点 阅读全文
posted @ 2015-09-04 05:08 ChuckLu 阅读(4060) 评论(0) 推荐(0) 编辑
摘要:Three ways to do WCF instance management (Per call, Per session, and Single).IntroductionVery often we would like to control the way WCF service objec... 阅读全文
posted @ 2015-09-02 14:55 ChuckLu 阅读(242) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/89858/WCF-Concurrency-Single-Multiple-and-Reentrant-andIntroduction and goalIn this article, we will concentrate o... 阅读全文
posted @ 2015-09-02 14:45 ChuckLu 阅读(405) 评论(0) 推荐(0) 编辑
摘要:之前写的方法,使用try catch来处理如果能捕获异常就说明问题public bool CheckLegal() { double number; bool flag = true; try { ... 阅读全文
posted @ 2015-09-01 17:10 ChuckLu 阅读(1829) 评论(0) 推荐(0) 编辑
摘要:No, this doesn't exist. You have to remove the tab and re-add it when you want it. Or use a different (3rd-party) tab control. 使用TabControl中的TabPages属 阅读全文
posted @ 2015-09-01 14:44 ChuckLu 阅读(493) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示