- 博客(158)
- 问答 (1)
- 收藏
- 关注
java: lib & classpath
classpath, is the path to search for third-part or user-defined classes,refer to:* linux docs.oracle.com/javase/6/docs/technotes/tools/solaris/classpath.html docs.oracle.com/javase/6/docs/techno...
2014-08-21 10:14:38 291
Scan classes with specified annotation under specified package
Scan classes with specified annotation under specified package. steps:* define annotation* use annotation on class* get class set with specified annotations under specified packages, ...
2014-08-05 13:41:03 245
ubuntu grub config
grub config for ubuntu 10.04 ~ 13.04, steps to edit:* sudo cp /etc/default/grub /etc/default/grub.bak* sudo vi /etc/default/grub do changes* sudo update-grub this will re-ge...
2014-04-10 23:14:28 394
原创 (转) IP, TCP, and HTTP
(转自:) http://www.objc.io/issue-10/ip-tcp-http.html When an app communicates with a server, more often than not, that communication happens over HTTP. HTTP was developed for web browsers: when y...
2014-03-09 01:19:37 305
change encoding of folder recusively
use shell to change encodeing of files under a folder recusively,the script use a tool called "enca", install it if not yet,there will be error info during execution, ignore that, it doesnot matt...
2014-03-08 17:37:46 143
http - simple server & client
Simple http server & client implementation by pure j2se. http - client:package eric.j2se.net.http;import java.io.IOException;import java.io.InputStreamReader;import java.io.LineNumb...
2014-01-10 11:53:10 154
lucene - demo
demo - location: * download lucene there is a "demo" folder, it include a war file, * download lucene source it include source code for demo, * d...
2013-12-04 00:56:07 140
unity - why ubuntu still using it?
I want to say **** Unity! Just bring gnome-classic back, it's so perfect, so easy to use & to do customization. You might say, you can find ways to use gnome-classic, but I want to say, ...
2013-11-02 02:08:26 148
sql - group & having example
problem: there is table store course score of students, now write a sql to query student who has at least 2 course failed, means score<60, sql: (mysql)# drop tabledrop table if exist...
2013-08-29 22:53:13 129
Java proxy
Java proxy proxy, a design pattern base on reflect, it handle method invocation on object with a proxy instance, ------class & interface include:* java.lang.reflect.Proxy help to...
2012-12-07 18:14:24 139
Java lock & condition
java Lock & Condition, provide a similar, yet more extensive locking mechanism than synchronized, Lock: similar to the monitor lock used by synchronized, but more powerfull, Condition...
2012-08-14 23:49:38 148
日本 女足 我支持你!!!
虽然日本女足只拿了银牌, 但是你们比美国队强多了, 我支持你们 !!!我觉得美国女足也有实力, 但是他们凭实力只能拿银牌, 胜之不武, 受之有愧 !!! 哎 。。。日本女足虽然输了, 但是那种精神真的他妈的让我无比敬佩 !!! 银牌也很骄傲!!! 赢得是精神!!! ps: 把那个虚伪的裁判拉出去 五马分尸, 然后送火星上去,2个点球你都他妈不判, 最后1分钟才象征性...
2012-08-10 04:48:56 116
assembly - record in file
maintain record in file using assembly, ------table & record design a simple table which has several fields with fixed-length,the records are saved in file permanently,------operat...
2012-07-25 02:43:31 127
assembly - file
assembly operate file, ------unix/linux file linux use the same file concept of unix, any file could be accessed as a sequential stream of bytes, step to use file:* open file op...
2012-07-15 15:13:31 317
assembly - function
function, enable program broken into pieces, so that for reuse & easy to maintain, ------define function function is the same as normal assembly instructions,it has a label, and ...
2012-07-11 14:01:52 187
assembly - hello world
the program find max number from a list of numbers, using assembly language on x86 architecture, code: max_num2.s: # find max number in a list of numbers, loop reverse,# and don't need ...
2012-07-02 13:25:31 149
(from cnn) Google warns users of state-sponsored hacking
(this new is from CNN: http://articles.cnn.com/2012-06-06/tech/tech_google-hacking-alerts_1_google-hacking-tools-hacking-attempts?_s=PM:TECH) Google has started warning users when it thinks ...
2012-06-08 00:15:27 148
shell hack - inode table full
shell hack - inode table full a shell script, that create folder recusively, it don't take much disk space, but it will use up inode table, after that you can't create new folder/file, play ...
2012-05-26 14:58:07 134
linux startup scripts
linux startup scripts ------init & run level init process define 7 run level:* level 0 shutdown* level 1 or S single user mode,* level 3-5 multiple user mode, 2 or 3, is...
2012-05-24 23:20:47 261
plsql package - example
plsql package - example an example to use plsql package/function/procedure of oracle, include:package/functipn/procedure definesys_refcursor usecall from plsqlcall from jdbc-----...
2012-05-23 00:37:27 121
oracle10g xe install & config - ubuntu
oracle10g xe install & config - ubuntu ------oracle10g xe introduce express edition, smaller than enterprise edition, take smaller disk & resource, suitable & enough for developm...
2012-05-19 22:47:22 100
c - linkedlist
c - linkedlist store ordered number in linkedlist, no repeat. code: linkedlist_test.c: #include <stdio.h>#include <stdlib.h>extern struct linkedlist { int num;...
2012-05-10 14:52:13 104
c - word counter (binary-tree)
c - word counter (binary-tree) count ascii word in a file, written by c, using binary-tree, code: word_counter.c:#include <stdio.h>#include <string.h>#include <...
2012-05-09 14:17:45 128
c - pointer is also pass by value
c - pointer is also pass by value when pointer as param of function, it is also pass by value:* you can change the value that the pointer point to by the address(the value of pointer),* but...
2012-05-09 14:13:26 108
find palindromic-prime in pi
find palindromic-prime in pi question: find the first 7-digit palindromic prime found in consecutive digits of pi. orginal link: http://www.scoopshot.com/hiring-deve...
2012-04-26 18:32:06 125
erlang install - ubuntu
erlang install - ubuntu refer to: http://www.erlang.org/doc/installation_guide/INSTALL.html ------install from src steps:* download src* tar -xzf otp_src_Rxxx-x.tar.gz* cd otp...
2012-04-21 15:05:20 233
c #define
c #define macro substitution, define alias name for something, include: #define #undef #ifdef / #ifndef / #endif ------#define define an alias name for value / expression / .. ,...
2012-04-08 13:29:44 112
c static
c static static external variable/function: only visible in local file, you can define multiple static variable in different source file, and there will be no conflict, static local var...
2012-04-04 21:59:31 114
c extern
c extern extern, used to declare variable / function, so that to use them before define them,a external variable / function could only be define once, but could be declare multiple times,exter...
2012-04-04 21:53:01 103
int to string by specified base
int to string by specified base convert a int to string, by specified base, support 2 - 16, code:#include <stdio.h>/* * @author kuchaguangjie * @date 2012-04-03 22:10 * @m...
2012-04-03 22:15:05 97
link archor
link archor http://www.xxx.com/me.html#mood, this is a link with a archor, #mood, is the archor part, could be the id/name of a element on the page,(html5 support id, html4 support id & n...
2012-04-02 21:26:57 138
define subclass - js
define subclass - js ------define subclass definition of subclass: assume there are function A and B, if A.prototype.prototype = B.prototype, then A is subclass of B, to complete the ...
2012-03-09 14:24:31 147
modify file name util - python
modify file name util - python a util script to modify file/folder name recusively, written in python, on ubuntu system, code: #!/usr/bin/env python# -*- coding: utf-8 -*-# @author: ...
2012-03-04 00:13:21 137
js closure
js closure scope: in js, inner function has access to params/local variable of the outer function, closure: variable use the scope where they are defined, even apparently the scope is f...
2012-03-02 18:21:50 101
js array methods
js array method array has some build-in method, to manipulate array, ------join join array elements and return a string, elements are separated by a separator,the default separator ...
2012-03-02 15:14:42 158
colleges
colleges ------stanford master apply requirements:* TOFEL 600+* GRE 1250* education GPA 3.3* * work experience* money $22000 + * major:* CS* ------...
2012-02-24 06:59:50 106
js logic operator
logical expression of js && ,||, ! operand: the 3 operator all accept any values as operand, return value: && and || return one of the 2 operand as return value, !...
2012-01-16 21:41:00 136
火车票 网上订票 经验
火车票 网上订票 经验 (以下经验是 2012年春节前, 在深圳的经验, 其他时间/地点 不保证适用,具体参见订票网站的信息和Google) 网站: http://www.12306.cn/mormhweb/ 操作系统: 仅支持 windows xp, windows7, 浏览器: IE6,7,8, (IE9 我不确定是否支持) 安装 银根...
2012-01-08 12:17:09 165
variable - varnish
variable some global variable are avaliable in subroutings, in different stage there are different variable avaliable, ref: https://www.varnish-cache.org/docs/3.0/reference/vcl.html#subrout...
2011-10-27 19:21:56 91
subroutine & action - varnish
subroutine & action - varnish subroutine, code section, called in the flow, manipulate http header and other things,action, indicate the next step, used inside subroutine, in format "retu...
2011-10-27 19:19:36 96
空空如也
android vs iphone 手机
2009-07-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人