摘要: 1. 安装node 2. 安装python 3. 安装connect, serve-static和node-livereload (以下都假设命令行当前目录为e:\WebSite) e:\WebSite>npm install connect e:\WebSite>npm install serve 阅读全文
posted @ 2016-06-21 00:42 SillyProgrammer 阅读(1008) 评论(0) 推荐(1) 编辑
摘要: <authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880"> <credentials passwordFormat="Clear"> <user name="user" password="secre 阅读全文
posted @ 2016-05-29 17:15 SillyProgrammer 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1.HTTP-GET WCF 方式 通过Http的方式提供metadata 1.1.配置文件方式 <system.serviceModel> <services> <service name = "MyService" behaviorConfiguration = "MEXGET"> <host> 阅读全文
posted @ 2016-03-06 22:11 SillyProgrammer 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Node.js(或者Node)javascript的服务端平台 单线程、异步式I/O、事件驱动式的程序设计模型 Node.js 的 JavaScript 引擎是 V8,来自 Google Chrome 项目 浏览器之外的javascript标准: CommonJS Node.js 是目前 Commo 阅读全文
posted @ 2016-03-05 17:42 SillyProgrammer 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.配置文件方式设置EndPoint(ABC) 1.1.基本配置 <system.serviceModel> <services> <service name="MyNamespace.MyService"> <endpoint address="http://localhost:8000/MySe 阅读全文
posted @ 2016-03-05 11:47 SillyProgrammer 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 依赖属性的定义,分为3步(以PresentationFramework中的System.Windows.Controls.Button为例)1. 声明依赖属性 public static readonly DependencyProperty IsDefaultProperty2. 调用DependencyProperty.Register创建依赖属性实例 IsDefaultProperty = DependencyProperty.Register("IsDefault", typeof(bool), typeof(Button), new FrameworkProper 阅读全文
posted @ 2013-11-24 14:38 SillyProgrammer 阅读(345) 评论(0) 推荐(0) 编辑
摘要: ASP.NET中实现网页中快速获得输入焦点 阅读全文
posted @ 2013-08-09 09:13 SillyProgrammer 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 使用Merger Module创建Installer 阅读全文
posted @ 2013-07-30 17:28 SillyProgrammer 阅读(957) 评论(0) 推荐(0) 编辑
摘要: 作者:梅劲松 本文档和所包含程序为MIT授权 我们来实现一个简单的加法的扩展模块! 建立一个目录,整个目录名中不要包含中文。在目录下建立 add.c,内容如下: #include <Python.h>; static PyObject* add(PyObject *self, PyObject *args); //一定声明为static,把他们限制在这个文件范围里。 几乎所有的参数都是PyObject类型。 在python,每个东西都是object。 static PyObject* add(PyObject* self, PyObject* args) { int x=0 ;.. 阅读全文
posted @ 2012-02-06 23:34 SillyProgrammer 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.9 The Py_BuildValue() Function This function is the counterpart to PyArg_ParseTuple(). It is declared as follows: 这个函数与函数PyArg_ParseTuple()配对。函数声明如下: PyObject *Py_BuildValue(char *format, ...); It recognizes a set of format units similar to the ones recognized by PyArg_ParseTuple... 阅读全文
posted @ 2012-02-06 19:02 SillyProgrammer 阅读(3249) 评论(0) 推荐(0) 编辑