11.22.05
OCW v0.1
In recenty days I wrote a initial version of OCW. It can work now, although it’s raw.
How to start?
1. Install ruby
2. Get an account from openomy
3. Get the source of OCW and openomy-ruby
4. run OCW.rb and login, you have 3 methods to login
- write your own ocw.yml file, which include:Â
appkey: 090f9b3d822a3b53e7a71bd2da87c161
privkey: 65692928
#unconfirmedtoken:
if u provied unconfirmedtoken in yml, it will login automatically without any prompts while login.
- login -u. You can type your unconfirmedtoken after the prompt, which can let u change account easily.
- login. If no unconfirmedtoken is specifed, you will get a url, and then copy it to a explorer to authorize it. A truely non-web app .
After logined, u can ls, tag, mktag, rmtag, get, put and so on, treat openomy as a local file system.
A known bug: while tag a file with OCW, u’ll get “Openomy API Error: 2 – Permissions not valid.” I’d mail to Maurice and Ian. I think it will be resolved soon.Â
Source code can be gotten here. Yes, it’s also stored in openomy (I have no other spaces ), and fetched by rss.
It’s my first ruby program. All suggestions are welcome.
Updated:
The bug is known. It’s caused by Tags::AddFileToTag, ‘”fileID” => fileId’ is neglected which passing the parameters into get_request.
11.19.05
Openomy Command Window
Openomy is a online file storage. It’s convenient to do in web. But sometimes i like to enter in the command window
So i decided to write a small program “OCW� (Openomy Command Window).
All commands are entered in a command window, like shell. Man can treated it as a local file system.

11.16.05
Online, Trusted Storage

Â
I can’t access the Dion Hinchcliffe’s Web 2.0 Blog site. I got the image from blog Chinese translation.
Web 2.0 Needs Trusted, Online Information Storage
Web2.0需è¦?å?¯ä¿¡èµ–的在线信æ?¯å˜å‚¨
Â
11.14.05
Openomy launched.
Openomy offically launched. Everyone can sign up now. The storage per user is 1GB. And Maurice built openomy/RSS, which publish Openomy tags over RSS feeds. You can get the file easily. It’s interesting.
11.13.05
The Five Friendlies
The BeiJing 2008 Olympics’ offical mascots had been chosen. To me regret, the Monkey King finally was cast side. The Monkey King is well known all around China. The older and younger all likes him. He’s a hero to fight with the emperor on the sky.
Five mascots, like the five Olimpycs Ring, a good moral. But I think it is too much to remeber later, heh. Amony them, the Tibetan Antelope is my favorite. Â

To concatenate their name is “Bei Jing Huan Ying Ni”. It means “Welcome to BeiJing”. So let’s wait the arrival of 2008. And
“welcome to BeiJing”.
11.12.05
The Choice
In Mike’s Brain Dump, he wrote “The Choice”:
The Choice
It’s QUIET.It’s early.My coffee is hot.The sky is still black.The world is still asleep.The day is coming.
In a few moments the day will arrive.It will roar down the track with the rising of the sun.The stillness of the dawn will be exchanged for the noise of the day.The calm of solitude will be replaced by the pounding pace of the human race.The refuge of the early morning will be invaded by decisions to be made and deadlines to be met.
For the next twelve hours I will be exposed to the day’s demands.It is now that I must make a choice.Because of Calvary, I’m free to choose.And so I choose.
I choose love…
No occasion justifies hatred; no injustice warrants bitterness.I choose love.Today I will love God and what God loves.
I choose joy…
I will invite my God to be the God ofcircumstance.I will refuse the temptation to be cynical… the tool of the lazy thinker.I will refuse to see people as anything less than human beings, created by God.I will refuse to see any problem as anything less than an opportunity to see God.
I choose peace…
I will live forgiven. I will forgive so that I may live.
I choose patience…
I will overlook the inconveniences of the world.Instead of cursing the one who takes my place, I’ll invite him to do so.Rather than complain that the wait is too long, I will thank God for a moment to pray.Instead of clinching my fist at new assignments, I will face them with joy and courage.
I choose kindness…
I will be kind to the poor, for they are alone.Kind to the rich, for they are afraid.And kind to unkind, for such is how God has treated me.
I choose goodness…
I will go without a dollar before I take a dishonest one.I will be overlooked before I will boast.I will confess before I will accuse.I choose goodness.
I choose faithfulness…
Today I will keep my promises.My debtors will not regret their trust.My associates will not question my word.My wife will not question my love.And my children will never fear that their father will not come home.
I choose gentleness…
Nothing is won by force.I choose to be gentle.If I raise my voice may it be only in praise.If I clench my fist, may it be only in prayer.If I make a demand, may it be only of myself.
I choose control…
I am a spiritual being.After this body is dead, my spirit will soar.I refuse to let what will rot, rule the eternal.I choose self-control.I will be drunk only by joy.I will be impassioned only by my faith.I will be influenced only God.I will be taught only by Christ.I choose self-control.
Love, joy, peace, patience, kindness, goodness, faithfulness, gentleness, and self-control.To these I commit my day.If I succeed, I will give thanks.If I fail, I will seek his grace.And then, when this day is done, I will place my head on my pillow and rest.
Â
Â
11.10.05
About memory
We met some problems for our 32-bit applications with memory in HP-UX recently. One is  the single process exceeded 1 G limit, the other is memory of CORBA server is too big while running for long time.
For the first problem, we can migrate application to 64-bit, or link using “-N”. It can change the executable file’s format to EXEC_MAGIC, which can support nearly 1.9GB.
And the second problem, while most unix dont return the free memory to the operating system, the application should be optimized. (“mapmalloc can return dynamic allocated memory to the OS, but the price is that memory allocation takes about five times longer”, said in “Modern Memory Management“) Something may be caused by dynamic allocation of STL, like vector. It’s better to use reserve for vector.
Some suggestions are also given in the article:
1. It is always wise to free objects you do not need, especially large ones as soon as possible, to minimize this footprint.
2. To avoid problems with memory fragmentation, try to avoid making many small memory allocations and instead replace them with one or two large allocations where possible.
11.05.05
Folder Share
“Microsoft acquires FolderShare.” FolderShare can let u share ur files in different computers via Internet.
It’s useful for me. Like 若昔难得的Weblog’s said, “I can sync the directory of GreatNews, so both progress will be same now.” Oooh, it’s just what I want. And I think it will be easy to share LeLe’s photos with maggie now.
The only care is the security and privacy.
11.02.05
Openomy, a online file storage
Openomy, a online file storage, gives open APIs and tags support. It’s attractive. Although it only support API based on ruby now, more and more developer will join it.
10.27.05
Rock Paper Scissors
Andrew Bergel, 29, a Toronto lawyer, crowned Rock Paper Scissors champion and took the $7,000 first prize.
I think Rock Paper Scissors is the most popular game all over the world. Everyone can play. And it’s democratic. It’s the basic form of peacekeeping, whether it determines who gets the top bunk or who gets the last beer in the fridge.