摘要: 在网上找到一个table,列举了不同的操作系统对应的IIS版本以及配置MVC时的说明。IIS versionWindows versionRemarksIIS 7.0 (integrated mode)Windows Server 2008Windows Vista (except Home Basic)No special configuration requiredIIS 7.0 (classic mode)Windows Server 2008Windows Vista (except Home Basic)Special configuration required to use UR 阅读全文
posted @ 2012-08-15 14:14 皮业勇 阅读(2698) 评论(0) 推荐(0) 编辑
摘要: 要实现页面的布局,可以使用table,但是有其局限性,不太灵活。使用CSS的float和clear能够轻松完成布局,CSS的优势是内容和布局分离,说到解耦,程序员懂的。1.没有使用floatView Code <!DOCTYPE html><html><head><style type="text/css">div.container{width:100%;margin:0px;border:1px solid gray;}div.header,div.footer{padding:0.5em;color:white;back 阅读全文
posted @ 2012-08-15 11:05 皮业勇 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1.安装好sql express,创建自己的数据库2.VS命令行下运行aspnet_regsql命令,弹出ASP.NET SQL Server Setup Wizard3.server填入.\sqlexpress,选择自己的数据库4.完成后,会自动在选择的数据库中生成11张和membership相关的表5.修改web.config 1 <connectionStrings> 2 <remove name="LocalSqlServer" /> 3 <add name="LocalSqlServer" 4 connection 阅读全文
posted @ 2012-08-04 23:49 皮业勇 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 今日终于得空,补一篇html5做的山寨版愤怒小鸟的技术贴,共入门级参考。主要有以下几点,主要是一些链接,供大家学习1.游戏框架2.Sprite sheet和Animition3.box2D4.Audio1.游戏框架http://www.brighthub.com/internet/web-development/articles/40512.aspxhttp://www.brighthub.com/internet/web-development/articles/40513.aspx简单而是用的小游戏框架,为你创建好了canvas,而且用了double buffer的canves主要的类图如 阅读全文
posted @ 2012-01-19 16:44 皮业勇 阅读(4046) 评论(4) 推荐(5) 编辑
摘要: How to create and publish module in Node.js1.创建package.json文件cmd>mkdir yypicmd>cd yypicmd>npm init按照提示输入package名,description,email,版本等信息,就会自动生成{ "author": "Yeyong Pi <piyeyong@gmail.com>", "name": "yypi", "description": "yypi' 阅读全文
posted @ 2011-12-30 23:51 皮业勇 阅读(4369) 评论(0) 推荐(0) 编辑
摘要: 先上图:使用html5的canvas,audio,javascrpit,box2D引擎完成,建议使用chrome浏览器。从11月初开始下载第一本HTML5和javascript的电子书到现在已经将近两个月,展示一下学习成果。在这之前javascript的经验为0,代码写的难免让高手笑话。从写第一行代码到完成(其实还有无数需要改进的地方),大约2周的业余时间。之所以要做这个游戏,是觉得学习了不实践,根本没用。又没有好的点子,就从模仿开始。本来打算在圣诞节之前放出来的,但是12月这几周加班比较多,还有一次夜里12点多走,第二天早上8点来公司开会。只是在圣诞节前一天放在公司电脑给team的几个同事试 阅读全文
posted @ 2011-12-30 13:21 皮业勇 阅读(2303) 评论(8) 推荐(3) 编辑
摘要: 1.Download gitgit for windowshttp://code.google.com/p/msysgit/2.Download node.jshttps://github.com/joyent/nodeorcmd>git clone -recursivegit://github.com/joyent/node.git3.build node.jscmd>vcbuild.bat release4.copy release\node.exe to c:\node5.Get npm and installcmd>git clone --recursive git: 阅读全文
posted @ 2011-12-30 12:54 皮业勇 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 先看一个例子: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Test html</title> 6 7 </head> 8 <body> 9 <script type="text/javascript">10 function add(m){11 return function(n) {12 return function(l) {13 return 阅读全文
posted @ 2011-12-28 23:31 皮业勇 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 在程序中抛出如下异常:Message:AutoPopulatePlatformCommand error:Network access for Distributed TransactionManager (MSDTC) has been disabled. Please enable DTC for network access in thesecurity configuration for MSDTC using the Component Services Administrativetool..Detial: atSystem.Transactions.Oletx.OletxTran 阅读全文
posted @ 2011-08-24 17:42 皮业勇 阅读(618) 评论(0) 推荐(0) 编辑
摘要: .net为我们提供了TransactionScope类来方便实现transaction的操作。代码一:View Code 1 using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, tOptions)) 2 { 3 /* Perform transactional work here */ 4 Add(ConfigurationManager.ConnectionStrings["ConnectionString1"].C... 阅读全文
posted @ 2011-08-16 18:03 皮业勇 阅读(1051) 评论(0) 推荐(0) 编辑