上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: using System; using System.Windows.Forms; using Microsoft.Win32; // for the registry table using System.Runtime.InteropServices; // for the P/Invoke namespace WindowsApplication1 { public part... 阅读全文
posted @ 2018-04-30 17:58 Hello_2018 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: Stopwatch 通过计算基础计时器机制中的计时器刻度来测量运行时间。 如果已安装的硬件和操作系统支持高分辨率性能计数器,则 Stopwatch 类使用该计数器来测量运行时间。 否则为 Stopwatch 类使用系统计时器来测量运行时间。 使用 Frequency 和 IsHighResoluti 阅读全文
posted @ 2018-04-28 16:09 Hello_2018 阅读(3583) 评论(0) 推荐(0) 编辑
摘要: vshost是visual studio宿主应用程序,vs运行调试时是打开的其实是这个文件,这个程序可以让vs跟踪调试信息。而exe则可以直接打开,vs不会跟踪任何这个文件的运行情况。只要引用的程序集完整,可直接运行。 阅读全文
posted @ 2018-03-28 10:11 Hello_2018 阅读(1798) 评论(0) 推荐(0) 编辑
摘要: 使用yum安装nginx后除了nginx自带页面其他配置页面都是403forbidden问题。 暂时的解决办法是,修该nginx配置文件中的user为root , 然后关闭seliunx或者添加nginx到selinux的允许列表。 阅读全文
posted @ 2018-03-21 16:12 Hello_2018 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: 应用程序多次启动会因为资源占用等问题对程序的正常运行产生影响,在某些情况下需要对程序的启动次数进行限制。红色部分代码的作用是避免程序重复启动。 阅读全文
posted @ 2018-03-17 09:21 Hello_2018 阅读(3065) 评论(0) 推荐(0) 编辑
摘要: 出现此错误的原因主要是,添加多条URL时urlpatterns后面的序列符号写错了,检查所有的urls.py文件将{}改为[]。 error: urlpatterns = {} right: urlpatterns = [] 阅读全文
posted @ 2018-03-16 14:57 Hello_2018 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 读JS代码遇到一段看不懂运算优先级的代码,如下 经查证三目运算符是右结合性的, 如 a ? b : c ? d : e ? f : g 根据运算优先级等价于 a ? b : (c ? d : (e ? f : g )),故以上JS代码运算顺序亦可知。 阅读全文
posted @ 2018-02-02 16:41 Hello_2018 阅读(6169) 评论(0) 推荐(1) 编辑
摘要: using System; namespace ConsoleApplication5{ class class1 { static int i = GetNum(); int j = GetNum(); static int num = 1; static int GetNum() { retur 阅读全文
posted @ 2018-01-05 14:13 Hello_2018 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 发布服务元数据的方式有两种:一是基于HTTP-GET协议提供元数据,它是一种绝大多数平台都能支持的简单text-based协议;另一种是元数据交换终结点。 1.基于HTTP-GET协议 2.元数据交换终结点 阅读全文
posted @ 2017-12-23 11:38 Hello_2018 阅读(748) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Xml; namespace ConsoleApplication4 { internal class Program { private static void Main() { const string xmlStr = @" ... 阅读全文
posted @ 2017-12-20 08:18 Hello_2018 阅读(17380) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页