会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
老鼠爱大米
博客园
首页
联系
管理
上一页
1
···
5
6
7
8
9
10
11
下一页
2012年4月10日
github 提交报403 forbidden的错误解决
摘要: 问题描述:$ git pusherror: The requested URL returned error: 403 Forbidden while accessing解决方案:这是权限问题,可以修改.git/config文件追加用户名和密码详细:From:http://stackoverflow...
阅读全文
posted @ 2012-04-10 17:22 大约
阅读(1546)
评论(0)
推荐(0)
2012年4月9日
VC,C#创建IIS站点,应用程序池 ADSI
摘要: #include <windows.h>#include <Iads.h>#include <comdef.h>#include <tchar.h>#include <stdio.h>#include <Adshlp.h>#pragma comment(lib,"ActiveDS")#pragma comment(lib,"adsiid")#include <iiisext.h>#include <iisext_i.c>BOOL CreateWebServer
阅读全文
posted @ 2012-04-09 10:41 大约
阅读(2030)
评论(0)
推荐(0)
2012年4月6日
nginx comet
摘要: Nginx加Comet:低延迟的服务器端推送要做实时的网络程序,比如在线聊天等,现在的技术有两种,一种是拉(pull)、一种是推(push),哪种方式好我相信接触网络的朋友们都知道, 服务器端推送服务这种方式能够满足完全的实时交互,不需要客户端做太多的东西。NGiNX_HTTP_Push_Module这个nginx的插件就是为 了这个目的来做的,它保持客户的长连接状态(当然了,不是每个客户一个线程,而是采用事件方式来处理,即保持了连接状态,又节约了资源,这就是nginx 这个轻量级web服务器的可爱之处)并且维护一个事件队列,提供发布者和订阅者服务。要使用它,需要编译ngnix,从http:/
阅读全文
posted @ 2012-04-06 17:34 大约
阅读(1910)
评论(0)
推荐(0)
备用代码
摘要: function DataGridHandler(opts){ this. _parameters = opts;}DataGridHandler.prototype ={ fillContainer: function () { $(this._parameters.tblContainerName).datagrid({ url: this._parameters.url, title: this._parameters.title, width: this._parameters.width, ...
阅读全文
posted @ 2012-04-06 11:38 大约
阅读(293)
评论(0)
推荐(0)
2012年3月19日
baidu map api Boundary
摘要: // var boundary = new BMap.Boundary(); // boundary.get(opts.name, function(result) { // for (var i = 0; i < result.boundaries.length; i++) { // // if (opts.id == 1) { // alert(result.boundaries[i]); // } // var pol...
阅读全文
posted @ 2012-03-19 22:38 大约
阅读(3021)
评论(0)
推荐(0)
2012年3月15日
Asp.net Mvc Ajax JsonResult简单使用
摘要: 在Asp.net MVc 2中由于对数据的保护,默认情况下request为post,所以在前端请求的时候则需要以post方式requestaction方法:public JsonResult GetPersonInfo() { var person =new { Name ="张三", Age =22, Sex ="男" }; return Json(person); }前端请求代码:$.ajax({ url: "/FriendLink/GetPersonInfo", type: "POST", dataType:
阅读全文
posted @ 2012-03-15 11:04 大约
阅读(431)
评论(0)
推荐(0)
2012年3月3日
JavaScript面向对象
摘要: 上篇说过,JavaScript没有类的概念,需要通过函数来实现类的定义。先通过一个例子说明:functionmyClass() { varid=1; varname="johnson"; //properties this.ID=id; this.Name=name; //method this.showMessage=function() { alert("ID:"+this.ID+",Name:"+this.Name); } } varobj1=newmyClass(); varobj2 =newmyClass(); functi
阅读全文
posted @ 2012-03-03 12:18 大约
阅读(246)
评论(0)
推荐(0)
JavaScript面向对象编程
摘要: 自从有了Ajax这个概念,JavaScript作为Ajax的利器,其作用一路飙升。JavaScript最基本的使用,以及语法、浏览器对象等等东东在这里就不累赘了。把主要篇幅放在如何实现JavaScript的面向对象编程方面。 1. 用JavaScript实现类 JavaScritpt没有专门的机制实现类,这里是借助它的函数允许嵌套的机制来实现类的。一个函数可以包含变量,又可以包含其它函数,这样,变量可以作为属性,内部的函数就可以作为成员方法了。因此外层函数本身就可以作为一个类了。如下:functionmyClass() { //此处相当于构造函数 }这里 myClass就是一个类。其实...
阅读全文
posted @ 2012-03-03 12:16 大约
阅读(284)
评论(0)
推荐(0)
2012年2月27日
asp.net命名规范
摘要: 1.用Pascal规则来命名方法和类型。(笔者注:单词首字母大写) publicclassDataGrid { publicvoidDataBind() { } } 2.用Camel规则来命名局部变量和方法的参数.(笔者注:首单词小写,其余单词首字母大写;笔者使用此方式命名成员变量) publicclassProduct { privatestring_productId; privatestring_productName; publicvoidAddProduct (stringproductId,stringproductName) { } } 补充:使用匈牙利方式命名局部变量,方法参数
阅读全文
posted @ 2012-02-27 23:15 大约
阅读(457)
评论(0)
推荐(0)
数据库设计规范
摘要: 数据库设计规范数据库表命名规范此规范包括表名命名规范,索引命名规范,外键命名规范和字段名命名规范。表名命名规则数据库表的命名以是名词的复数形式且都为小写,如cities,categories,friends等等如果表名由几个单词组成,则单词间用下划线("_")分割,如subscribed_pois,poi_categories等表名尽量用全名表名限制在30个字符内。当表的全名超过30字符时,可用缩写来减少表名的长度,如description-->desc;information-->info;address-->addr等表字段名命名规则字段名为小写字段名
阅读全文
posted @ 2012-02-27 23:10 大约
阅读(280)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
下一页