学习NodeJS第二天:漫谈NodeJS [收藏]
摘要:From:http://blog.csdn.net/zhangxin09/archive/2010/09/10/5874632.aspx新型的服务端正在进入我们的视野,让我们投入了关注的目光,例如近来的NodeJS算比较抢眼的一员。 之所以创造NodeJS,引用原作者Ryan语,目标就是为了可以更轻松地编写具有可伸缩性的网络程序。咋一看,这样的目标作为网络开发人员们何曾不想拥有。——于是看看Nodejs是怎么实现的。首先由浅入深说下简单的概念:无论是复杂的业务逻辑,还是简单的“HelloWorld”也罢,客户端发送链接过来,Web服务器肯定要一一全单照收,不会拒“链接”于千里之外。当中所说的性
阅读全文
posted @
2011-05-27 17:36
-Anny-
阅读(1752)
推荐(1)
NodeJS安装运行体验
摘要:Refer to official website: http://nodejs.org/1. Building and Installing Node.jsStep 1 - Pick Your PlatformNode should install out of the box on Linux,...
阅读全文
posted @
2011-05-27 17:34
-Anny-
阅读(1356)
推荐(0)
学习NodeJS第一天:node.js引言(转)
摘要:http://blog.csdn.net/zhangxin09/archive/2010/08/25/5836777.aspx Node.JS是资深C程序员Ryan Dahl(http://four.livejournal.com/)的作品,依据Google著名的开源JavaScript引擎V8来进行二次开发的Web I/O服务器(http://nodejs.org/)。V8本身是非常快的JavaScript引擎,处理JS执行运行的速度非常高。相关测试表明,FireFox、Opera和IE的JS引擎速度都不及V8来得快。而且,还可以说,只要浏览器之间的JS引擎大战一日不减,NodeJs就可以
阅读全文
posted @
2011-05-27 14:10
-Anny-
阅读(515)
推荐(0)
Mysql中的临时表使用方法(转)
摘要:http://dev.firnow.com/course/7_databases/mysql/Mysqljs/20090302/156754.html当工作在非常大的表上时,你可能偶尔需要运行很多查询获得一个大量数据的小的子集,不是对整个表运行这些查询,而是让MySQL每次找出所需的少数记录,将记录选择到一个临时表可能更快些,然后多这些表运行查询。创建临时表很容易,给正常的CREATE TABLE语句加上TEMPORARY关键字:CREATE TEMPORARY TABLE tmp_table (name VARCHAR(10) NOT NULL,value INTEGER NOT NULL)
阅读全文
posted @
2011-05-26 17:25
-Anny-
阅读(1044)
推荐(0)
Mysql任务调度(Event Schedular)
摘要:From http://blog.csdn.net/crazylaa/archive/2010/03/11/5368819.aspxMySQL5.1.x版本中引入了一项新特性EVENT,顾名思义就是事件、定时任务机制,在指定的时间单元内执行特定的任务,因此今后一些对数据定时性操作不再依赖外部程序,而直接使用数据库本身提供的功能。此功能是对Oracle的Job/Schedule的模仿,5.1.X版本以上才支持。 创建EVENT语法如下:CREATE[DEFINER = { user | CURRENT_USER }]EVENT[IF NOT EXISTS]event_nameON SCHEDUL
阅读全文
posted @
2011-05-23 18:56
-Anny-
阅读(370)
推荐(0)
Remember My Account Number(2 schema)
摘要:1. Yahoo!What "Remember my ID on this computer" means:Save this article to My Help for easy reference. You can visit the article at any time from any computer.Save CancelReplace an articleYou have reached the maximum number of saved articles. Your oldest saved article will be replaced with
阅读全文
posted @
2011-05-23 17:28
-Anny-
阅读(382)
推荐(0)
IP欺骗原理精解和防范手段综述 (转)
摘要:http://soft.yesky.com/security/hkjj/408/2053408.shtml2005-08-01 16:31作者:赵彪出处:黑基责任编辑:原野 即使是很好的实现了TCP/IP协议,由于它本身有着一些不安全的地方,从而可以对TCP/IP网络进行攻击。这些攻击包括序列号欺骗,路由攻击,源地址欺骗和授权欺骗。本文除了介绍IP欺骗攻击方法外,还介绍怎样防止这个攻击手段。 上述攻击是建立在攻击者的计算机(包括路由)是连在INTERNET上的。这里的攻击方法是针对TCP/IP本身的缺陷的,而不是某一具体的实现。 实际上,IP 欺骗不是进攻的结果,而是进攻的手段。进攻实际上是信
阅读全文
posted @
2011-05-12 18:13
-Anny-
阅读(910)
推荐(0)
DNS欺骗(转)
摘要:作者: 文章出处:http://www.h4h4.com 发布时间:2002-10-27 点击:5717字体: 【小 中 大】 DNS欺骗是一种非常复杂的攻击手段。但是它使用起来比IP欺骗要简单一些,所以也比较常见。最近一个利用DNS欺骗进行攻击的案列,是全球著名网络安全销售商RSA Security的网站所遭到的攻击。其实RSA Security网站的主机并没有被入侵,而是RSA的域名被黑客劫持,当用户连上RSA Security时,发现主页被改成了其他的内容。首先要看一下DNS是怎样工作的。DNS是全称是Domain Name Server,既域名服务器。当一台主机发送一个请求要求解析某个
阅读全文
posted @
2011-05-12 18:08
-Anny-
阅读(722)
推荐(0)
Using ssh connect to Amazon EC2 instance
摘要:Using ssh to remote login instance in EC2:xxx@xxx-Lenovo-Product:~$ ssh -i /home/xxx/Documents/privatekey/west.pem ubuntu@x.x.x.xThe output is below:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
阅读全文
posted @
2011-05-12 17:21
-Anny-
阅读(655)
推荐(0)
Amazon EC2(转)
摘要:From http://aws.amazon.com/ec2/Amazon Elastic Compute Cloud (Amazon EC2) Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers. Amazon EC2’s simple web service interface allow
阅读全文
posted @
2011-05-12 12:33
-Anny-
阅读(613)
推荐(0)
Amazon EC2名词项目笔记(转)
摘要:From http://translate.googleusercontent.com/translate_c?hl=zh-CN&sl=zh-TW&u=http://wowtree.com/tree.php%3Faid%3D398&prev=/search%3Fq%3Delasticfox%26hl%3Dzh-CN%26newwindow%3D1%26safe%3Dstrict%26client%3Dubuntu%26channel%3Dfs%26prmd%3Divns&rurl=translate.google.com.hk&usg=ALkJrhhnm
阅读全文
posted @
2011-05-12 12:26
-Anny-
阅读(506)
推荐(0)
Amazon EC2 使用操作筆記(使用Elasticfox) (转)
摘要:From http://blog.longwin.com.tw/2009/02/amazon-ec2-build-op-elasticfox-note-2009/Amazon Elastic Compute Cloud (Amazon EC2) 是虛擬主機的服務, 主要是可以隨時加機器、硬碟等, 可以非常快速的擴充. 不过也有些缺点, 就是在上面的资料是不会被储存的, 若是机器当掉、强制关机等等, 资料就会消失. IP 不固定等问题.不過也有些缺點, 就是在上面的資料是不會被儲存的, 若是機器當掉、強制關機等等, 資料就會消失. IP 不固定等問題. Amazon 针对这些问题也都有解法: A
阅读全文
posted @
2011-05-11 17:59
-Anny-
阅读(2043)
推荐(0)
Classless Inter-Domain Routing(转)
摘要:From http://en.wikipedia.org/wiki/Classless_Inter-Domain_RoutingClassless Inter-Domain Routing (CIDR) is a method for allocating IP addresses and routing Internet Protocol packets. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous addressing architecture of classful
阅读全文
posted @
2011-05-11 17:56
-Anny-
阅读(445)
推荐(0)
CIDR(转)
摘要:源自 http://baike.baidu.com/view/204179.htmCIDR(无类型域间选路,Classless Inter-Domain Routing)是一个在Internet上创建附加地址的方法,这些地址提供给服务提供商(ISP),再由ISP分配给客户。CIDR将路由集中起来,使一个IP地址代表主要骨干提供商服务的几千个IP地址,从而减轻Internet路由器的负担。目录基本信息如何工作实例基本信息英文缩写: CIDR (Classless InterDomain Routing) 中文译名: 无类域间路由 分 类: 网络与交换 解 释: 现行的IPv4(网际协议第4版)的
阅读全文
posted @
2011-05-11 17:43
-Anny-
阅读(246)
推荐(0)
Nginx
摘要:From http://wiki.nginx.org/Nginx ("engine x") is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 7.65% (22.8M) of all d
阅读全文
posted @
2011-05-11 10:39
-Anny-
阅读(257)
推荐(0)
How to POST Form Data Using Ruby(转)
摘要:From http://biodegradablegeek.com/2008/04/how-to-post-form-data-using-ruby/POSTing data on web forms is essential for writing tools and services that interact with resources already available on the web. You can grab information from your Gmail account, add a new thread to a forum from your own app,
阅读全文
posted @
2011-05-05 21:19
-Anny-
阅读(806)
推荐(0)