09 2016 档案

摘要:ChangeServiceConfig2 function Changes the optional configuration parameters of a service. Syntax C++ BOOL WINAPI ChangeServiceConfig2( _In_ SC_HANDLE 阅读全文
posted @ 2016-09-30 17:31 特洛伊-Micro 阅读(654) 评论(0) 推荐(0) 编辑
摘要:Changing a Service's Configuration A service configuration program uses the ChangeServiceConfig and ChangeServiceConfig2 functions to change the confi 阅读全文
posted @ 2016-09-30 17:30 特洛伊-Micro 阅读(383) 评论(0) 推荐(0) 编辑
摘要:C++析构函数为什么要为虚函数 注:本文内容来源于zhice163博文,感谢作者的整理。 1.为什么基类的析构函数是虚函数? 在实现多态时,当用基类操作派生类,在析构时防止只析构基类而不析构派生类的状况发生。 下面转自网络:源地址 http://blog.sina.com.cn/s/blog_7c7 阅读全文
posted @ 2016-09-30 12:22 特洛伊-Micro 阅读(261) 评论(0) 推荐(0) 编辑
摘要:A basic Windows service in C++ (CppWindowsService) This code sample demonstrates creating a basic Windows Service application in VC++ 下载 C++ (776.9 KB 阅读全文
posted @ 2016-09-29 17:52 特洛伊-Micro 阅读(4619) 评论(0) 推荐(0) 编辑
摘要:1 /// 2 /// json转换为键值对辅助类 3 /// 4 public class JsonParser 5 { 6 7 private static Dictionary lst_KeyValueData = null; 8 9 public static Dictionary SplitJsonStringToKeyVal... 阅读全文
posted @ 2016-09-28 15:10 特洛伊-Micro 阅读(2735) 评论(0) 推荐(0) 编辑
摘要:在编写PowerShell脚本的时候,可以通过给变量赋值的方法输出想要的结果,但这样的话,需要改动脚本内容。其实也可以在脚本中定义参数,然后再在执行脚本的时候对参数赋值,而无需改动脚本内容。 在PowerShell脚本中,可以使用param()声明参数,如下: param($a,$b) write- 阅读全文
posted @ 2016-09-23 16:13 特洛伊-Micro 阅读(12428) 评论(0) 推荐(2) 编辑
摘要:1 $chs='你好' 2 3 function converToUft8($str){ 4 5 $bs=[System.Text.Encoding]::Default.GetBytes($str); 6 7 $u8Char=[System.Text.UTF8Encoding]::UTF8.GetString($bs); 8 return $u8Char; 9 10 }... 阅读全文
posted @ 2016-09-23 09:27 特洛伊-Micro 阅读(995) 评论(0) 推荐(0) 编辑
摘要:1. system方法: 原型: [cpp] view plain copy int __cdecl system(const char *); [cpp] view plain copy [cpp] view plain copy 例如: [cpp] view plain copy system( 阅读全文
posted @ 2016-09-22 09:12 特洛伊-Micro 阅读(1946) 评论(0) 推荐(0) 编辑
摘要:Linq中join & group join & left join 的用法 Linq中join & group join & left join 的用法 2013-01-30 11:12 12154人阅读 评论(0) 收藏 举报 2013-01-30 11:12 12154人阅读 评论(0) 收藏 阅读全文
posted @ 2016-09-21 12:23 特洛伊-Micro 阅读(1860) 评论(0) 推荐(0) 编辑
摘要:直接把tools中的模板全选删除掉! 阅读全文
posted @ 2016-09-21 11:36 特洛伊-Micro 阅读(262) 评论(0) 推荐(0) 编辑
摘要:使用Topshelf创建Windows 服务简要的介绍了创建Windows服务的另一种方法,老外的一篇文章Create a .NET Windows Service in 5 steps with Topshelf通过5个步骤详细的介绍使用使用Topshelf创建Windows 服务。Topshel 阅读全文
posted @ 2016-09-19 17:20 特洛伊-Micro 阅读(435) 评论(0) 推荐(0) 编辑
摘要:最近由于工作需要,写了一些windows服务程序,有一些经验,我现在总结写出来。目前我知道的创建创建Windows服务有3种方式:a.利用.net框架类ServiceBaseb.利用组件Topshelfc.利用小工具instsrv和srvany 下面我利用这3种方式,分别做一个windows服务程序 阅读全文
posted @ 2016-09-19 17:14 特洛伊-Micro 阅读(2434) 评论(0) 推荐(0) 编辑
摘要:mono环境变量 2013-05-11 01:14:33| 分类: mono|举报|字号 订阅 下载LOFTER我的照片书 | mono环境变量 2013-05-11 01:14:33| 分类: mono|举报|字号 订阅 mono环境变量 2013-05-11 01:14:33| 分类: mono 阅读全文
posted @ 2016-09-19 14:59 特洛伊-Micro 阅读(1575) 评论(0) 推荐(0) 编辑
摘要:在Xamain 未被收购之前,这货monodroid.exe 就是一个打包的绑定。。。无奈 配置环境复杂,未能实现 。。。有mono运行时就行了..不折腾了 玛德 让C#程序独立运行(脱离 .NET Framework运行,绿色运行) 博客分类: dotnet .netwinformc# 让C#程序 阅读全文
posted @ 2016-09-19 14:56 特洛伊-Micro 阅读(1321) 评论(0) 推荐(0) 编辑
摘要:mkbundle(1) - Linux man page Name mkbundle, mkbundle2 - Creates a bundled executable. Synopsis mkbundle [options] assembly1 [assembly2 ...] Descriptio 阅读全文
posted @ 2016-09-19 14:32 特洛伊-Micro 阅读(323) 评论(0) 推荐(0) 编辑
摘要:Windows contains a version of .NET by default. Here's a listing of them. XP .NET v1.0 -- Service pack 1 .NET v2.0 -- Service packs 2 & 3 Vista .NET v3 阅读全文
posted @ 2016-09-18 17:45 特洛伊-Micro 阅读(785) 评论(0) 推荐(0) 编辑
摘要:1 if (jQuery && !jQuery.fn.forEach) { 2 $(function () { 3 (function ($) { 4 $.fn.extend({ 5 forEach: function (predicate) { 6 7 if ... 阅读全文
posted @ 2016-09-14 19:31 特洛伊-Micro 阅读(925) 评论(0) 推荐(0) 编辑
摘要:Array.prototype.forEach = function (action) { for (var i = 0; i < this.length; i++) { action(this[i]); }};/** * 以jqery 对象的方式迭代对象 * @param {} action * 阅读全文
posted @ 2016-09-14 18:23 特洛伊-Micro 阅读(397) 评论(0) 推荐(0) 编辑
摘要:本章节介绍如何掌握Javascript里的数字和日期类型 数字EDIT 在 JavaScript 里面,数字都是双精度浮点类型的 double-precision 64-bit binary format IEEE 754 (也就是说一个数字只能在 -(253 -1) 和 253 -1之间)。没有特 阅读全文
posted @ 2016-09-14 18:05 特洛伊-Micro 阅读(1522) 评论(0) 推荐(0) 编辑
摘要:JavaScript 有两种比较方式:严格比较运算符和转换类型比较运算符。对于严格比较运算符(三个 =)来说,为ture的情况是仅当两个操作数拥有相同的类型,而对于被广泛使用的比较运算符(两个 =)来说,会在进行比较之前,将两个操作数转换成相同的类型。对于关系运算符(两个==)来说,会先将操作数转为 阅读全文
posted @ 2016-09-14 17:26 特洛伊-Micro 阅读(474) 评论(0) 推荐(0) 编辑
摘要:False values 下面这些值将被计算出 false (also known as Falsy values): false undefined null 0 NaN 空字符串 ("") 当传递给条件语句时,所有其他值,包括所有对象会被计算为 true 。 请不要混淆原始的布尔值true和fa 阅读全文
posted @ 2016-09-14 14:33 特洛伊-Micro 阅读(232) 评论(0) 推荐(0) 编辑
摘要:// x has not been declared before if (typeof x 'undefined') { // evaluates to true without errors // these statements execute } //如果未定义变量,那么会出现引用错误 if 阅读全文
posted @ 2016-09-14 11:30 特洛伊-Micro 阅读(398) 评论(0) 推荐(0) 编辑
摘要:HTTP状态码 304 页面未修改 功能:304页面未修改 自从上次请求后,请求的网页未修改过。服务器返回此响应时,不会返回网页内容。如果网页自请求者上次请求后再也没有更改过,您应将服务器配置为返回此响应(称为 If-Modified-Since HTTP 标头)。服务器可以告诉 Googlebot 阅读全文
posted @ 2016-09-14 10:52 特洛伊-Micro 阅读(702) 评论(0) 推荐(0) 编辑
摘要:参考文献:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Language_Resources 阅读全文
posted @ 2016-09-14 09:59 特洛伊-Micro 阅读(358) 评论(0) 推荐(0) 编辑
摘要:list of ECMAScript engines From Wikipedia, the free encyclopedia An ECMAScript engine is a program that executes source code written in a version of t 阅读全文
posted @ 2016-09-14 09:55 特洛伊-Micro 阅读(492) 评论(0) 推荐(0) 编辑
摘要:http://kangax.github.io/compat-table/es5/ 秒查ECMAScript在各大浏览器的兼容性,点击右上角按钮可以“在5/6/7/非标”之间切换。做JavaScript的童鞋必备。 阅读全文
posted @ 2016-09-14 09:52 特洛伊-Micro 阅读(361) 评论(0) 推荐(0) 编辑
摘要:select选中索引有好多方式, 这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值这两种方式取不到索引值 $('#someId').find('option:selected').selectedIndex; $('#someId').find('option:selected') 阅读全文
posted @ 2016-09-13 15:24 特洛伊-Micro 阅读(3493) 评论(1) 推荐(1) 编辑
该文被密码保护。
posted @ 2016-09-13 10:19 特洛伊-Micro 阅读(1) 评论(0) 推荐(0) 编辑
摘要:arguments.callee.caller 阅读全文
posted @ 2016-09-08 18:33 特洛伊-Micro 阅读(289) 评论(0) 推荐(0) 编辑
摘要:AsyncCTP.0.3.nupkg http://pan.baidu.com/s/1kVhPaYj Microsoft.IdentityModel.6.1.7600.16394 http://pan.baidu.com/s/1kVsEzT9 阅读全文
posted @ 2016-09-08 15:47 特洛伊-Micro 阅读(112) 评论(0) 推荐(0) 编辑
摘要:http://identitymodel.codeplex.com/ https://identityserver.github.io/ Windows Identity Foundation 6.1.7600.16394 Windows Identity Foundation enables .N 阅读全文
posted @ 2016-09-08 15:45 特洛伊-Micro 阅读(1647) 评论(1) 推荐(0) 编辑
摘要:大家也看到了,很奇怪的是我们明明就请求了一个页面,页面中也没有其他的图片请求。为什么Application_BeginRequest会被执行了两次呢?!既然他请求,那我们看看他到底在请求什么就是了?在Application_BeginRequest代码中将”HttpContext.Current.R 阅读全文
posted @ 2016-09-08 15:37 特洛伊-Micro 阅读(825) 评论(0) 推荐(0) 编辑
摘要:在工业生产设计中,我们往往需要实现一个基于消息订阅的模式,用来对非定时的的消息进行监听订阅。 这种设计模式在 总线设计模式中得到体现。微软以前的WCF中实现了服务总线 ServiceBus的设计模式。然并卵。WCF已经好像是上个世纪的产物................ 基于事件订阅的模式,比如 E 阅读全文
posted @ 2016-09-08 12:16 特洛伊-Micro 阅读(26740) 评论(0) 推荐(1) 编辑
摘要:MVC – Task-based Asynchronous Pattern (TAP) – Async Controller and SessionLess Controller Leave a reply In async programming, there are 3 different mo 阅读全文
posted @ 2016-09-07 15:14 特洛伊-Micro 阅读(1394) 评论(0) 推荐(0) 编辑
摘要:使用Owin 将Web项目脱离 IIS确实很特别。。。。。 由此 ,可以衍生出,一个新的通信渠道,本地Server的自承载。 1 Node.js 2 Python 3 Ruby 4 Owin (C#--Katana项目 katanaproject.codeplex.com) 虽然基于.net fra 阅读全文
posted @ 2016-09-02 17:09 特洛伊-Micro 阅读(1244) 评论(0) 推荐(0) 编辑
摘要:2 注册默认的错误页面 <customErrors defaultRedirect="defaultError.html" mode="On"> <error statusCode="404" redirect="404notfind.html"/> </customErrors> </system 阅读全文
posted @ 2016-09-02 16:43 特洛伊-Micro 阅读(1092) 评论(0) 推荐(0) 编辑
摘要:Configuring HTTP and HTTPS .NET Framework (current version) Other Versions .NET Framework (current version) Other Versions Other Versions Other Versio 阅读全文
posted @ 2016-09-02 16:16 特洛伊-Micro 阅读(395) 评论(0) 推荐(0) 编辑

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