摘要:
在IE10中新加入的对高级用户输入的识别支持,举例说明:注册一个点击操作,通过一句addEventListener就能够知道当前用户的点击是哪种设备,是手指的点击,是鼠标的单击还是触控笔的点击(平板设备都会带有触控笔)。<canvasid="MyCanvas"></canvas><script>MyCanvas.addEventListener("MSPointerDown",MyBack,false);functionMyBack(e){alert(e.pointerType.toString());}</sc 阅读全文
posted @ 2012-07-06 15:00
HackerVirus
阅读(294)
评论(0)
推荐(0)
摘要:
本篇主要介绍一下内容:1.ASP.NET生命周期2.Http运行时3.Http管道技术 a)inetinfo.exe b)asp.net_isapi.dll c)aspnet_wp.exe d)HttpHandler e)HttpModule4.实现Httphandler的使用5.ASP.NET生命周期6.(IIS)Web服务器(inetinfo.exe): 1.只有少数几种被客户端请求的资源类型由iis直接处理,如对Html页面,文本文件,jpeg和gif图像的传入请求 2.对ASP.NET资源(*.aspx,*.asmx,*.ashx)的请求将传递到ASP.NET ISAPI... 阅读全文
posted @ 2012-07-06 14:59
HackerVirus
阅读(139)
评论(0)
推荐(0)
摘要:
从《C++ Primer 第四版》入手学习 C++《C++ Primer 第4版 评注版》即将出版,这是序言。PDF 版见:https://github.com/downloads/chenshuo/documents/LearnCpp.pdf从《C++ Primer 第四版》入手学习 C++为什么要学习C++?2009年本书作者Stan Lippman先生来华参加上海祝成科技举办的C++技术大会,他表示人们现在还用C++的惟一理由是其性能。相比之下,Java/C#/Python等语言更加易学易用并且开发工具丰富,它们的开发效率都高于C++。但C++目前仍然是运行最快的语言[1],如果你的应用 阅读全文
posted @ 2012-07-06 09:19
HackerVirus
阅读(318)
评论(0)
推荐(0)
摘要:
Lua中的table就是一种对象,但是如果直接使用仍然会存在大量的问题,见如下代码:1 Account = {balance = 0}2 function Account.withdraw(v)3 Account.balance = Account.balance - v4 end5 --下面是测试调用函数6 Account.withdraw(100.00) 在上面的withdraw函数内部依赖了全局变量Account,一旦该变量发生改变,将会导致withdraw不再能正常的工作,如:1 a = Account; Account = nil2 a.withdraw(100.00) -... 阅读全文
posted @ 2012-07-06 09:18
HackerVirus
阅读(252)
评论(0)
推荐(0)
摘要:
昨晚的大雨带来今天的凉爽,早睡早起。 这一篇,给大家介绍个Erlang工具:observer。 简介(摘自erlang doc): A GUI tool for observing an erlang system. The observer is gui frontend containing various tools to inspect a system. It displays system information, application structures, process information, ets or mnesia tables and a frontend... 阅读全文
posted @ 2012-07-06 09:17
HackerVirus
阅读(437)
评论(0)
推荐(0)
摘要:
前言:下面实验的信息是我在几台配置不同服务器的测试结果,操作系统分别为Red Hat Enterprise Linux Server release 6.0 (Santiago)、Ubuntu 7.10。所以你看到我实验信息的不同时,请不要大惊小怪。而且有些命令也不是所有Linux操作系统都支持(例如在Ubuntu 7.10就不支持dmesg),下面的内容是收集整理的,如有错误或新的方法,也会不停整理、更新。一:查看CPU信息1、CPU详细信息方法1:CPU信息一般保存在proc目录下的cpuinfo文件中。如下所示。[root@DB-Server ~]# more /proc/cpuinfo 阅读全文
posted @ 2012-07-06 09:16
HackerVirus
阅读(410)
评论(0)
推荐(0)