I wish I'd had the courage ot live a life true to myself, not the life others expected of me.
I wish I hadn't worked so hard.
I wish I'd had the courage to express my feelings
I wish I had stayed in touch with my friends.
I wish that I had let myself be happier.
Here are the top five things that people with post-traumatic growth say:
My priorities have changed.I'm not afraid to do what makes me happy.
I feel closer to my friends and family.
I understand myself better.
I know who I really am now.
I have a new sense of meaning and purpose in my life.
I'm better able to focus on my goals and dreams.
http://www.guardian.co.uk/lifeandstyle/2012/feb/01/top-five-regrets-of-the-dying
http://www.ted.com/talks/lang/ko/jane_mcgonigal_the_game_that_can_give_you_10_extra_years_of_life.html
20120822
Caret
It's not text, not image is border style.
RegExp
var regExp = /\{img(.*?)\}/g;
var text = "ab{img}defg{img30}d";
var text2 = "img";
var match;
while((match = regExp.exec(text)) != null) {
console.log(match);
}
console.log(regExp.exec(text2));
console.log(regExp.test(text));
console.log(regExp.test(text2));
console.log(text.split(regExp));
console.log(text.match(regExp));
?
Prototype
function base() {
this.a = "a";
}
var a = new base();
function test() {
log("arguments.callee");
log("arguments.callee.caller");
}
function test2() {
test();
}
function log(f) {
console.log(f + " = " + eval(f));
}
log("a");
log("a.constructor");
log("a.__proto__");
log("a.a");
base.prototype.b = "b";
log("base.prototype.b");
log("a.b");
log("a.hasOwnProperty(\"a\")");
log("typeof a");
test2();
(function(text) {
console.log(text);
})("Hello, World");
log("a instanceof Object");
log("a instanceof base");
log("a.constructor == Object");
log("a.constructor == base");
먹는 이야기
http://book.interpark.com/product/BookDisplay.do?_method=detail&sc.shopNo=0000400000&sc.prdNo=208559241&bookblockname=b_sch&booklinkname=bprd_title
When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.
http://geekandpoke.typepad.com/geekandpoke/2010/01/best-of-both-worlds.html
An expert is a man who has made all the mistakes which can be made, in a narrow field
- Niels Bohr
http://jamestic.egloos.com/2918621
20120403
20120327
HashSet is HashMap.
20120315
select concat('kill ', group_concat(id))
from information_schema.PROCESSLIST
where time >1000 and command='Sleep';
select concat('kill ', id, ';')
from information_schema.PROCESSLIST
where time >1000 and command='Sleep';
net.sf.ehcache.Cache
+ compoundStore
+ segments
+ segment
+ table
+ net.sf.ehcache.store.compound.HashEntry
+ element
+ key
+ value
+ elementData
20120217
The two computer systems are incompatible with each other.
Investigators said the girl's female accomplice, another a Park Vista student, also confessed.
20120215
20120210
Merge Type
20120202
제가 이클립스에서 배운 가장 중요한 가치는, 기술이나 방법론, 프로젝트 관리 같은 것이 아니라, 바로 이 기여 정신이었습니다.
http://eclipse.or.kr/wiki/%EC%9C%84%ED%81%B4%EB%A6%BD%EC%8A%A4:%EC%86%8C%EA%B0%9C
20120126
Linux : Counting files per directory with Bash command
for x in `find . -type d -maxdepth 2`; do y=`find $x -type f | wc -l`; if [ $y != 0 ]; then echo $x - $y; fi done
for x in `ls -al | sed -e '1,3d' | awk '{print $9}'`; do y=`find $x -type f | wc -l`; echo $x - $y; done
http://ketan404.blogspot.com/2006/07/linux-counting-files-per-directory.html
20120125
Another Earth
20120109
VI
h: move cursor left one character
l: mvoe cursor right one character
j: move cursor down one line
k: move cursor up one line
u: undo
R: redo
$: move to last column on the current line
^: move to first column on the current line
i: insert befor cursor
I: insert at beginning of current line
a: append after cursor
A: append at end of line
o: append at below current line
O: append at above current line
dd: delete current line
3dd: delete three line
G: move to last line
1G: move to first line
:set nu
:set nonu
:1,$s/test/production/c
3y: copy
p: paste
20120107
Always knew there would come a day
there would come a day we'd say
bye bye bye
Now summer's gone and life moves on
and we're too old to
cry cry cry
So hum a tune for me and you, don't make it blue asking
why why why
Let me see you smile, for awhile, for one more mile just try
To sing for me
Won't you play for me
Just sing for me
Won't you play for me
Just another day
Just another day
Another name I'll say
Not over, but it's over anyway
Some may say, some may say
it was a big mistake for me to
go go go
Bu I am water, life is rock,
gotta find a way to
flow flow flow
The road I chose, the road I chose,
only God will know where it
goes goes goes
Oooohhh sing for me
Just another day
Just another day
Another name I'll say
Not over, but it's over anyway
May your dreams be big, and your problems small
and when the bad days come I hope you
fight fight fight
I hope you dance, I hope you love, I hope you live in the
light light light
I won't forget, how could I forget the way you look it makes me
shine shine shine
Oooohhh sing for me
Just another day
Just another day
Another name I'll say
Not over, but it's over anyway
More lyrics: http://www.lyricsmania.com/just_another_day_lyrics_jade_valerie.html
All about Jade Valerie: http://www.musictory.com/music/Jade+Valerie
Ruby
The double less than sign is a Ruby String overload for concatination.
@instance_variables
$global_variables
methods_asking_a_question?
%Q[ ] Interpolated String (default)
Interpolation
- #{expression}
- The expression can be just about any Ruby code.
20120106
mongo
show dbs
use [db]
db.[db].find().limit(3)
db.[db].find({[column]:{$exists:false}}).limit(3)
iptables -A INPUT -s 192.168.10.10 -j DROP
iptables -A INPUT -d 192.168.10.12 -j DROP
iptables -L
iptables -D INPUT 1
http://theeye.pe.kr/25
grant all privileges on [database].* to [id]@[ip] identified by '[password]' with grant option;
flush privileges;
jmap -dump:file=heapdump.hprof [pid]