o_o_0的博客
o_o_0 · 共 25 篇文章
转载 Understanding the node.js event loop
http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/ Understanding the node.js event loop The first basic thesis of node.js is that I/O is expensive: So the largest waste with current programming technologies comes from waiting for I/O to complete. There are several ways in which…
2013-01-02T13:24:38Z · 编程语言 · 评论(0)
JavaScript可能在IE中引起内存泄漏的两种情况
https://developer.mozilla.org/en-US/docs/JavaScript/A_re-introduction_to_JavaScript 可能在IE中引起内存泄漏的两种情况 1.JS对象与Dom对象循环引用 function leakMemory() { var el = document.getElementById('el'); var o = { 'el': el }; el.o = o; } 2.闭包 function addHandler() { var els = document.getElementsByTagName('p'); for(var…
2012-12-27T11:04:53Z · Web前端 · 评论(0)
Reflection in Javascript
原文 Reflection in Javascript It’s very easy to do reflection in Javascript. Reflection is when your code looks onto itself to discover its variables and functions. It allows two different Javascript codebases to learn about each other, and it’s useful for exploring third-party APIs. Preamble In Java…
2012-08-01T17:40:00Z · 评论(0)
Google 屏蔽的关键字
为了你能正常使用Google 请不要使用以下关键字搜索,把以下代码保存成html文件,再用浏览器打开即可看到 <html> <head> </head> <body> <script type="text/javascript"> var a=[[14523],[1492],[6656],[8759],[63166],[9287],[4369],[8811],[7556],[6262],[14399],[64357],[64353],[10546],[6450],[63794],[61408],[10435,30321,30325,10737,30243,10737,30321,30325,…
2012-06-26T13:33:00Z · 评论(0)
ucos2任务管理
把优先级别为prio的任务置为就绪状态: OSRdyGrp | =OSMapTbl[prio>>3]; OSRdyTbl[prio>>3] | = OSMapTbl[prio&0x07]; 如果要使一个优先级别为prio的任务脱离就绪状态则可使用如下类似代码: if((OSRdyTbl[prio>>3]&=~OSMapTbl[prio&0x07])==0) OSRdyGrp&=~OSMapTbl[prio>>3];
2012-06-13T15:37:00Z · 评论(0)
VBScript 批量合并PPT
Option Explicit Public FileNames As Variant Public SaveName As Variant Public pptApp As Object Sub GetFiles() FileNames = Application.GetOpenFilename _ (FileFilter:="演示文稿(*.ppt),*.ppt", FilterIndex:=1, _ MultiSelect:=True, Title:="打开需要合并的文件") End Sub Sub SaveFileAs() SaveName = Application.GetSaveA…
2012-06-07T16:23:00Z · 评论(0)
EL 表达式中使用自定义函数
一、Java package test.utils.ctag; public class CustomTags { public static boolean equals(String s1,String s2){ if(s1==s2) return true; if(s1!=null) return s1.equals(s2); return false; } } 二、TLD <?xml version="1.0" encoding="UTF-8" ?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://w…
2012-06-04T18:03:00Z · 评论(0)
Expression Language
Expression Language A primary feature of JSP technology version 2.0 is its support for an expression language (EL). An expression language makes it possible to easily access application data stored in JavaBeans components. For example, the JSP expression language allows a page author to access a be…
2012-06-04T11:38:00Z · 评论(0)
Html block and inline
HTML elements can be grouped together with <div> and <span> HTML Block Elements Most HTML elements are defined as block level elements or as inline elements. Block level elements normally start (and end) with a new line when displayed in a browser. Examples: <h1>, <p>, <ul>, <table> HTML Inline Ele…
2012-06-02T21:16:00Z · 评论(0)
html tag
Deprecated Tags and Attributes In HTML 4, several tags and attributes were used to style documents. These tags are not supported in newer versions of HTML. Avoid using the elements <font>, <center>, and <strike> and the attributes color and bgcolor.
2012-06-02T17:08:00Z · 评论(0)
使用HtmlParser 提取百度贴吧中的邮箱地址
下载地址 经测试,实际用时1秒左右 private static final Pattern p = Pattern.compile("\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"); public static ArrayList<String> extractEmail(int id,int start,int end){ ArrayList<String> list = new ArrayList<String>(); try { for (int i = start; i <= end; i++) { Parser parse…
2012-03-08T16:01:00Z · 评论(0)
Oracle数据库的备份方法
1、引言 Oracle数据库的备份方法很多,无论使用那种备份方法,备份的目的都是为了在出现故障后能够以尽可能小的时间和代价恢复系统。比如使用export实用程序导出数据库对象、使用Oracle备份数据库、使用Oracle对称复制、使用Oracle并行服务器、使用Oracle冷备份、使用Oracle热备份等各种备份方法都有其优缺点、适用的场合和相应的软硬件要求。本文主要就用export实用程序导出数据库对象、Oracle冷备份、Oracle热备份这三种最基本的备份方法进行详细的探讨,分析各自的优缺点和适用的场合,并给出自动执行这些备份方案的脚本文件。 2、三种备份方案的比较 冷备份 冷备份是O…
2012-01-03T10:01:00Z · 评论(0)
should we use annotations?
should we use annotations? If your answer is yes to the following questions then you can use annotations in your project. 1.Do you have the flexibility to use Java 5 Environment? 2.Do you have the knowledge of which production database you are going to use? If yes, you can use annotations, this bri…
2011-12-19T22:28:00Z · 评论(0)