- 浏览: 443078 次
- 性别:
- 来自: 深圳
最新评论
-
yiguxianyun:
...
css li 不换行 -
stdayong:
...
netbeans 中使用 maven -
程序猿_星:
为啥会中文乱码啊
servlet 以 gzip 格式返回数据 -
huanhuan519:
感谢分享~
gdb 调试工具 -
heyl1234:
写过些js,对css还不熟。谢谢~
css li 不换行
文章列表
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 the register that record total_count,
#
# registers:
# %eax store each number to compare
# %ebx ...
(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 they may be targets of government-sponsored hackers, the Internet giant announced.
Users whose accou ...
(转:) 谷歌正在解决敏感词的烦恼
- 博客分类:
- other
(转自:) http://www.jz123.cn/text/0651528.html
两年前的一个深夜,我独在网络上徘徊,遇见S君,前来问我道,“先生可曾知晓您的名字已经成为Google的敏感词?”我说“没有”。他就正告我,“先生去试一下吧,Google搜索引擎已经把您的名字屏蔽了。同时,L君和O君的名字也被屏蔽了。”
看到这个消息,我暂时性地短路了。S君的头像又在一闪一闪的,点开来看:“先生干什么出格的事儿了吗?有啥需要帮忙的吗?”
于是我大脑里立马闪现出《非诚勿扰》电影里葛优在教堂里忏悔的那个镜头,从小时候偷鸡烤来吃开始算起,到借看手相摸女同学小手,再到… ...
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 it, but don't fucked yourself with it ...
------
code
hack_inode_full.sh:
#! /bin/bash
...
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 command line mode,
5, is x-window mode,
4, rarely used,
* level 6
reboot
config file:
l ...
plsql package - example
- 博客分类:
- db
plsql package - example
an example to use plsql package/function/procedure of oracle,
include:
package/functipn/procedure define
sys_refcursor use
call from plsql
call from jdbc
------
table
create table customer(
customer_id NUMBER(10),
customer_name VARCHAR2(100),
addres ...
oracle10g xe install & config - ubuntu
------
oracle10g xe introduce
express edition, smaller than enterprise edition, take smaller disk & resource, suitable & enough for development & learn,
------
download
http://www.oracle.com/technetwork/database/express-edition/ ...
c - linkedlist
store ordered number in linkedlist, no repeat.
code:
linkedlist_test.c:
#include <stdio.h>
#include <stdlib.h>
extern struct linkedlist {
int num;
struct linkedlist *pnext;
};
/**
* add a num to ordered linkedlist, if it not exists yet,
* ...
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 <stdlib.h>
#define WORD_MAX_LEN 50
#define LAST_LETTER 1
#define LAST_OTHER 0
/**
* count ...
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 you can't change the original value of pointer in the function,
* if you want to change the pointer ...
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-developer/
http://www.aqee.net/scoopshot-is-hiring-a-sw-developer/
steps to solve:
...
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_src_R11B-4
* ./configure
* make
* sudo make install
*
* erl -version
check whether install s ...
c #define
macro substitution, define alias name for something, include:
#define
#undef
#ifdef / #ifndef / #endif
------
#define
define an alias name for value / expression / .. ,
format:
#define name replacement_text
how it work:
before compile, the name will be repla ...
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 variable:
variable only init once, and keep the value among multiple function calls,
variable defa ...
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,
extern, just declare the types, but will not allocate memory, memory is allocated only when define,
he ...