- 博客(24)
- 资源 (3)
- 收藏
- 关注
原创 backup pvpgn bn reg bot
package mx;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileWriter;import java.io.InputStream;import java.io.InputStreamReader;import j
2010-05-01 19:49:00
867
原创 自定义JavaScript类
Doc:http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjEyaG5tNGdncXQ&hl=en 继续装机。看到装机能赚钱,但咱没特别的厂家支持,不过也没关系,这样能给用户提供的电脑品种反而更多。OK,那咱也打算去申请个小工作间,开始给用户装机。我们这提供多种主流的硬件配置,比如提供了Acer、Dell,这样用户只要
2010-01-12 20:36:00
804
原创 Javascript对象,prototype链
Doc链接: http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjA2Y2ZqZ2szZ2g&hl=en关键词:JavaScript;对象;prototype;prototype链我们来打个比方吧:随着个人电脑硬件的白菜价化,很多硬件制造商开始帮用户做整机DIY。有时候用户可能回到“总部”去装机,那里东西很全。
2010-01-12 20:22:00
922
原创 pvpgn战网添加dota战绩统计功能(Ghost++)。
关键词:pvpgn, war3, warcraft III,Ghost++,dota,stats,战绩,统计,幽灵主前段时间看到igame8.net上的dota战绩统计功能不错,不过一眼看去这东西就是基于别人的框架做的,否则这技术早在国内风行了。特地到交大bbs上问了kav同学,告知关键词ghost++ghost++是game host++的缩写,貌似基于ghost的。但ghost的历史我
2009-10-14 00:21:00
3827
5
原创 再来个firefox插件,在线词典
一般装个google toolbar,里面提供的在线翻译已经足够了,不过有点缺陷就是没有音标... 这样就有问题了,自创了不少单词发音,但别人就听不懂了。还好现在在线翻译很多(Google,有道,Dict.cn等等都很好,而且还带发音。ps:百度不允许放入iframe 直接无视:( )firefox addon上的词典工具真的不少,但是总有些用的不爽(没音标,弹出新窗口等等)。自己写一个吧,原
2009-09-21 14:41:00
2021
2
原创 the focus event seems like asynchronize under IE7/8
here is the test example: under firefox (3.5) : under ie: Untitled Document <!-- div { } --> div { } Test focus, press any key to swit
2009-07-20 14:37:00
570
原创 ie7 zoom caused some js behavior weird
we always use js to calculate and set the DOM nodes position. butunder ie7, you should consider the zoom factor of the broswer, becauseits behavior is a little weird.here is a test:ps: I foun
2009-07-20 14:31:00
624
原创 remove cvs folders. [java]
import java.io.File;public class DeleteCvsFile { public static void main(String[] args) { String filepath = "D:/workspace_java/yp"; if(args.length > 0) filepath = args[0];
2009-07-13 10:46:00
568
原创 [note] date, timestamp & time string converter
backup~package sys.function;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class Format { public static
2009-07-13 10:45:00
710
原创 [note] java object initialize sequence
package wd;class Foo { String str; Foo() { System.out.println("foo"); } Foo(String str) { System.out.println("Foo." + str); this.str = str;
2009-07-13 10:43:00
496
原创 ajax 嘿哈
function Ajax(){ this.xhr = null; this.initialize(); }Ajax.prototype = { initialize: function() { try { this.xhr = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try {
2009-03-25 09:51:00
390
原创 [TEST]无默认构造函数类的初始化及容器操作
#include #include using namespace std;class NoDefault { friend ostream& operator << (ostream& os, const NoDefault& o);private: static unsigned _id; unsigned id; unsigned pid;public:
2009-03-03 09:54:00
626
原创 java import static
import static 可以将一个类下的所有static函数import进来,这样就可以不使用类名而直接使用了。下面可能是thinking in java 4th中用到的方法package thinkingInJava.util;public final class Print { public static void print(Object obj) { System.o
2009-02-25 19:44:00
510
原创 Note:Behavior of polymorphic methods inside constructors
thinking in java中的一个例子,java和C++表现不是特别一致:#include using namespace std;class Base {public: Base() { cout << "Before draw" << endl; Draw(); cout << "After draw" << endl; } virtual
2009-02-25 19:36:00
423
原创 快速切换google搜索语言的firefox插件
下载地址: http://download.youkuaiyun.com/source/1025169快速切换google搜索的中英文语言的firefox插件。你是不是经常使用google搜索一些中文文档结果他跑到E文页面去了,或者你习惯使用中文但他老是喜欢显示E文。或者你和上述习惯相反(me2)。OK,这个工具可以帮你快速切换中英文搜索。同时我喜欢搜索结果新标签打开,所以也添加了这一功能 :)
2009-02-19 19:49:00
1004
原创 单机环境构建WebSphere Application Server Community Edition V2.1.1集群环境
<! v/:* {behavior:url(#default#VML);}o/:* {behavior:url(#default#VML);}w/:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}--> Normal 0 false fal
2009-02-19 14:26:00
1445
1
原创 mark: 写了一个复杂的sql
SELECT ftable.pid, ftable.sid, fcnt, mcnt, fcnt + mcnt AS tcntFROM (SELECT main.pid, main.sid, COALESCE( main.cnt + vote_res.cnt, 0 ) AS fcntFROM (SELECT pictures.id AS pid, style.id AS sid, 0 A
2009-02-17 10:55:00
545
转载 mark: firefox截屏技术
直接上连接,firefox截图+保持到本地 https://developer.mozilla.org/En/Code_snippets/Canvas
2009-02-11 17:15:00
418
原创 Note: augment javascript's function
《Mastering Dojo》p118: Hooking javascript Functionsfunction f(i) { return "foo: " + (i+1); }var g = f;f = function() { var result = g.apply(this, arguments); console.log(exit f());
2009-02-11 13:51:00
502
原创 原来firebug下的的console可以在js中调用
安装firebug后就可以在自己的js里使用console了(最新的firebug要首先启用console)。e.g.console.log(hello world); props(console)Methods: assert,clear, count, debug, dir, dirxml, error, getFirebugElement, group,gro
2009-02-11 13:45:00
1119
原创 NOTE: javascript prototype chain
=== copy from mastering dojo ===What Is a Prototype?Every object in JavaScript contains a reference to anotherobject termed its prototype. Since the prototype is anotherobject itself, it also contai
2009-02-11 09:31:00
677
原创 mark: 重载模板类输出操作符
C++ primer4 Ch16首先了解Specific Template Friendship、General Template Friendship及常用方式的区别。重载输出操作在g++和vs2008环境下需要使用一般友元关系:templatetypename Type>class Queue { templatetypename U> friend ostream& operat
2008-12-01 16:03:00
453
原创 blog又被封了
http://www.x2blog.cn/Maxwinsigh... 多用户blog,不知道哪位仁兄又发了什么文章,空间又被河蟹。定居在csdn了。
2008-11-24 11:13:00
501
原创 mark: firefox获取dom节点css属性
https://developer.mozilla.org/En/DOM/Window.getComputedStyle以前写过一个笨方法来获取,ff自身就提供了一个方法(获取自firebug)html> head> style> div { border: 1px solid red; } #main {
2008-11-24 10:57:00
707
google语言切换插件
2009-02-19
RegexBuddy
2008-07-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人