| Profiel van 颜俊Julian=JunYanFoto'sWeblogLijsten | Help |
|
9/04/2009 转帖:超级宅男到肌肉男的神奇进化John Stone本身是一个传奇!5年前他挺着一个大大的啤酒肚,终于有一天他再也受不了了。于是下定决心成为肌肉男!日复一日锻炼着他的身体,你真的很难认出他。还好他几乎每个月都用照片记录了他自己的变化。真的是惊异的毅力啊!终于这个世界上又多了一个很勥的肌肉男!hoho,魔鬼筋肉男! ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 8/04/2009 姜花海棠花谢的时候,才感觉又是一年春好处。花谢了,就是嫩叶满枝,想见着,很快就入夏。某人说,空调休息不多时,又是要开了。 从冬到春,新的一轮。于是回想起来,这是我在SPSP亲见的第四个花季。07年住在香楠的时候,倒是时常一个人在赵顾林吃火锅,顺便买2株便宜的姜花。外形和富贵竹倒有几分相似,味道浓郁持久,养在大号的凉水杯里,再放一片阿司匹林,足足2个星期,屋子里都能一直飘着香味。 在大男人买姜花这点上,我确实是个怪人。所以过了07年的那个冬天,我再也没买过,任何一朵花。男人不需要鲜花。 6/03/2009 有限的耐心,有限的感情一个人要是不能时时克制自己,最终就会变成我这个样子。每天很忙,忙得不知道忙啥;每天又很闲,闲得又不知道干啥。计划很多的事情,坚持不了几天就慢慢偷懒掉了。
年龄见长,耐心倒是递减。常识里面年龄和人的耐心应该是成正比才对。倒是越发小心翼翼仔细自己的付出,“三不”成了隐隐的男人准则。中国人总是对物质和婚姻看的太重, 单身渐渐变成世界观,成年人的世界里总是存在太多对奉献和获得的考量。 一方要的太多,一方给的太少,从感情到物质。
电脑和网络成了重要的精神依赖。睁眼的大部分时间,电脑和网络都是随时待命的。应该去某个冷僻的地方,关了手机,断了联系的过几天。奢望着一整个下午躺在公园的草坪上看天,或者一整个夜晚坐在礁石上听浪。思维里仍然认为一定是大片的纯粹的实物才能让人感觉到自己的渺小,并触发思考人生价值的意思。是否我应该重新阅读已经以往的《瓦尔登湖》。
一个人无聊的时候,除了看电影,就是疯狂的聊天,或者翻开电话本一个一个拨过去。耐心和感情是有限的,但却是会生长的。我试图把这些付出给不同的人,比分散更可怕的,是一个专注却遗憾的结局。宁愿别人想的起的,是一个无聊却开心的人。 ZZ:Text of Barack Obama's inaugural address仔细研读了一遍,好多生词。不过真是美文啊。 My fellow citizens: I stand here today humbled by the task before us, grateful for the trust you have bestowed, mindful of the sacrifices borne by our ancestors. I thank President Bush for his service to our nation, as well as the generosity and cooperation he has shown throughout this transition.
So it has been. So it must be with this generation of Americans.
That we are in the midst of crisis is now well understood. Our nation is at war, against a far-reaching network of violence and hatred. Our economy is badly weakened, a consequence of greed and irresponsibility on the part of some, but also our collective failure to make hard choices and prepare the nation for a new age. Homes have been lost; jobs shed; businesses shuttered. Our healthcare is too costly; our schools fail too many; and each day brings further evidence that the ways we use energy strengthen our adversaries and threaten our planet.
Today I say to you that the challenges we face are real. They are serious and they are many. They will not be met easily or in a short span of time. But know this, America -- they will be met.
On this day, we gather because we have chosen hope over fear, unity of purpose over conflict and discord.
On this day, we come to proclaim an end to the petty grievances and false promises, the recriminations and worn out dogmas, that for far too long have strangled our politics.
We remain a young nation, but in the words of Scripture, the time has come to set aside childish things. The time has come to reaffirm our enduring spirit; to choose our better history; to carry forward that precious gift, that noble idea, passed on from generation to generation: the God-given promise that all are equal, all are free, and all deserve a chance to pursue their full measure of happiness.
In reaffirming the greatness of our nation, we understand that greatness is never a given. It must be earned. Our journey has never been one of shortcuts or settling for less. It has not been the path for the faint-hearted -- for those who prefer leisure over work, or seek only the pleasures of riches and fame. Rather, it has been the risk-takers, the doers, the makers of things -- some celebrated, but more often men and women obscure in their labor, who have carried us up the long, rugged path towards prosperity and freedom.
For us, they packed up their few worldly possessions and traveled across oceans in search of a new life.
For us, they toiled in sweatshops and settled the West; endured the lash of the whip and plowed the hard earth.
For us, they fought and died, in places like Concord and Gettysburg; Normandy and Khe Sahn.
Time and again these men and women struggled and sacrificed and worked till their hands were raw so that we might live a better life. They saw America as bigger than the sum of our individual ambitions; greater than all the differences of birth or wealth or faction.
This is the journey we continue today. We remain the most prosperous, powerful nation on Earth. Our workers are no less productive than when this crisis began. Our minds are no less inventive, our goods and services no less needed than they were last week or last month or last year. Our capacity remains undiminished. But our time of standing pat, of protecting narrow interests and putting off unpleasant decisions -- that time has surely passed. Starting today, we must pick ourselves up, dust ourselves off, and begin again the work of remaking America.
For everywhere we look, there is work to be done. The state of the economy calls for action, bold and swift, and we will act -- not only to create new jobs, but to lay a new foundation for growth. We will build the roads and bridges, the electric grids and digital lines that feed our commerce and bind us together. We will restore science to its rightful place, and wield technology's wonders to raise healthcare's quality and lower its cost. We will harness the sun and the winds and the soil to fuel our cars and run our factories. And we will transform our schools and colleges and universities to meet the demands of a new age. All this we can do. And all this we will do.
Now, there are some who question the scale of our ambitions -- who suggest that our system cannot tolerate too many big plans. Their memories are short. For they have forgotten what this country has already done; what free men and women can achieve when imagination is joined to common purpose, and necessity to courage.
What the cynics fail to understand is that the ground has shifted beneath them -- that the stale political arguments that have consumed us for so long no longer apply. The question we ask today is not whether our government is too big or too small, but whether it works -- whether it helps families find jobs at a decent wage, care they can afford, a retirement that is dignified. Where the answer is yes, we intend to move forward. Where the answer is no, programs will end. And those of us who manage the public's dollars will be held to account - to spend wisely, reform bad habits, and do our business in the light of day -- because only then can we restore the vital trust between a people and their government.
Nor is the question before us whether the market is a force for good or ill. Its power to generate wealth and expand freedom is unmatched, but this crisis has reminded us that without a watchful eye, the market can spin out of control -- and that a nation cannot prosper long when it favors only the prosperous. The success of our economy has always depended not just on the size of our Gross Domestic Product, but on the reach of our prosperity; on our ability to extend opportunity to every willing heart -- not out of charity, but because it is the surest route to our common good.
As for our common defense, we reject as false the choice between our safety and our ideals. Our Founding Fathers, faced with perils we can scarcely imagine, drafted a charter to assure the rule of law and the rights of man, a charter expanded by the blood of generations. Those ideals still light the world, and we will not give them up for expedience's sake. And so to all other peoples and governments who are watching today, from the grandest capitals to the small village where my father was born: know that America is a friend of each nation and every man, woman, and child who seeks a future of peace and dignity, and that we are ready to lead once more.
Recall that earlier generations faced down fascism and communism not just with missiles and tanks, but with sturdy alliances and enduring convictions. They understood that our power alone cannot protect us, nor does it entitle us to do as we please. Instead, they knew that our power grows through its prudent use; our security emanates from the justness of our cause, the force of our example, the tempering qualities of humility and restraint.
For we know that our patchwork heritage is a strength, not a weakness. We are a nation of Christians and Muslims, Jews and Hindus -- and non-believers. We are shaped by every language and culture, drawn from every end of this Earth; and because we have tasted the bitter swill of civil war and segregation, and emerged from that dark chapter stronger and more united, we cannot help but believe that the old hatreds shall someday pass; that the lines of tribe shall soon dissolve; that as the world grows smaller, our common humanity shall reveal itself; and that America must play its role in ushering in a new era of peace.
To the Muslim world, we seek a new way forward, based on mutual interest and mutual respect. To those leaders around the globe who seek to sow conflict, or blame their society's ills on the West -- know that your people will judge you on what you can build, not what you destroy. To those who cling to power through corruption and deceit and the silencing of dissent, know that you are on the wrong side of history; but that we will extend a hand if you are willing to unclench your fist.
As we consider the road that unfolds before us, we remember with humble gratitude those brave Americans who, at this very hour, patrol far-off deserts and distant mountains. They have something to tell us today, just as the fallen heroes who lie in Arlington whisper through the ages. We honor them not only because they are guardians of our liberty, but because they embody the spirit of service; a willingness to find meaning in something greater than themselves. And yet, at this moment -- a moment that will define a generation -- it is precisely this spirit that must inhabit us all.
For as much as government can do and must do, it is ultimately the faith and determination of the American people upon which this nation relies. It is the kindness to take in a stranger when the levees break, the selflessness of workers who would rather cut their hours than see a friend lose their job, which sees us through our darkest hours. It is the firefighter's courage to storm a stairway filled with smoke, but also a parent's willingness to nurture a child, that finally decides our fate.
Our challenges may be new. The instruments with which we meet them may be new. But those values upon which our success depends -- hard work and honesty, courage and fair play, tolerance and curiosity, loyalty and patriotism -- these things are old. These things are true. They have been the quiet force of progress throughout our history. What is demanded then is a return to these truths. What is required of us now is a new era of responsibility -- a recognition, on the part of every American, that we have duties to ourselves, our nation, and the world, duties that we do not grudgingly accept but rather seize gladly, firm in the knowledge that there is nothing so satisfying to the spirit, so defining of our character, than giving our all to a difficult task.
This is the price and the promise of citizenship.
This is the source of our confidence -- the knowledge that God calls on us to shape an uncertain destiny.
This is the meaning of our liberty and our creed -- why men and women and children of every race and every faith can join in celebration across this magnificent mall, and why a man whose father less than 60 years ago might not have been served at a local restaurant can now stand before you to take a most sacred oath.
So let us mark this day with remembrance, of who we are and how far we have traveled. In the year of America's birth, in the coldest of months, a small band of patriots huddled by dying campfires on the shores of an icy river. The capital was abandoned. The enemy was advancing. The snow was stained with blood. At a moment when the outcome of our revolution was most in doubt, the father of our nation ordered these words be read to the people:
"Let it be told to the future world ... that in the depth of winter, when nothing but hope and virtue could survive ... that the city and the country, alarmed at one common danger, came forth to meet [it]."
America. In the face of our common dangers, in this winter of our hardship, let us remember these timeless words. With hope and virtue, let us brave once more the icy currents, and endure what storms may come. Let it be said by our children's children that when we were tested we refused to let this journey end, that we did not turn back, nor did we falter; and with eyes fixed on the horizon and God's grace upon us, we carried forth that great gift of freedom and delivered it safely to future generations. 9/01/2009 Server 2003 下bugzilla的安装手记Server 2003 下bugzilla的安装手记
下载软件 1. bugzilla-2.22.6 2. ActivePerl-5.8.2.808-MSWin32-x86.msi 3. mysql-4.1.22-win32.zip 4. mysql-administrator-1.1.2-win.msi
步骤: 1. 安装Perl 安装很简单,双击就可以了。 我用的版本是5.8.2。 刚开始安装的是5.10的,但是中间安装bugzilla需要的perl模块的时候老是有问题,后来用了5.8.0的也还是不行,有些模块要求版本大于5.8.0。 安装完成以后,dos命令行下运行”perl –version”,如果系统提示无法找到命令。 将perl的bin路径添加到系统变量path中。
2. 安装MySQL 我下载的是windows下的安装版,双击setup.exe一路点一下去就可以了。
3. 安装mysql-administrator-1.1.2-win.msi 双击安装。这个一个图形化的mysql管理软件,mysql主页可以下到,一路点击以后就可以了。 打开软件,链接到mysql,选择”Startup Variables”->”Advanced”,将”Def.Char Set”设置为”utf8”,这个是为了解决mysql的中文支持问题。
4. 创建数据库和用户 为bugzilla创建数据库如bugzilla,添加用户,命令如下: mysql> CREATE DATABASE `bugzilla` DEFAULT CHARACTER SET utf8; mysql>GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, REFERENCES ON bugs.* TO bugs@localhost INDENTIFIED BY '$db_pass';
5. 安装bugzilla 解压bugzilla到硬盘,比如c:\\bugzilla. Dos命令行切换到c:\\bugzilla。 运行“perl Checksetup.pl” 按照页面提示安装相关模块。 常规的命令形式为“ppm install DBI”,如果提示有多个候选模块。 则运行“ppm”,“install DBI”,“install 1”,表示安装第一个候选模块。 再运行“perl Checksetup.pl”, 按提示输入必要信息。 修改bugzilla安装目录下的localconfig文件,输入数据库用户,密码,端口信息。
6. 配置IIS 为BugZilla创建一个虚拟目录,指定端口,默认为80,并且在默认文档中添加Index.cgi. 将.pl, .plx的映射动作也改为所有。
Internet 服务管理器->主目录->执行权限改为“脚本和可执行文件“。
打开http://localhost/bugzilla,运气好的话就进去了
7. 邮件服务配置 Bugzilla默认的是使用sendmail发送邮件,不支持smtp,所要稍作修改。 网上有推荐用windows的sendmail的,但是我没成功。 安装Perl的支持邮件模块 在DOS窗口中,执行以下命令添加下载模块的地址 然后用以下命令安装: 搜到很多结果,全部安装了就是。
安装一个windows先的sendmail, 下载地址为http://www.glob.com.au/sendmail/sendmail.zip, 解压缩到bugzilla目录下,运行.exe执行文件,然后修改sendmail.ini中的配置信息。 然后报个bug,看看是不是有新邮件到邮箱里。
8. 汉化问题 上面提到修改数据库的默认编码问题,就是为了解决中文支持问题。此外为了保证中文能正确显示,还有作一些修改。
确保Bugzilla连接数据库的字字符集设置,需要相应的文件: ..\bugzilla\Bugzilla\DB.pm 762行 # connect using our known info to the specified db 763行 # Apache::DBI will cache this when using mod_perl 764行 my $self = DBI->connect($dsn, $user, $pass, $attributes) 765行 or die "\nCan't connect to the database.\nError: $DBI::errstr\n" 766行 . " Is your database installed and up and running?\n Do you have" 767行 . " the correct username and password selected in localconfig?\n\n"; #数据库的编码为UTF8,为了防止出现编码转换,使用下面的设置。 $self->do("SET NAMES 'utf8'");
确保Bugzilla页面默认的字符集为utf8: 修改..\bugzilla\Bugzilla\CGI.pm 的第55行改为 $self->charset('UTF-8')。
要想邮件不出现乱码 修改..bugzilla\Bugzilla\CGI.pm的第55行改为 $self->charset('UTF-8'); 进入Bugzilla的系统设置(Parameters)里面,在 newchangedmail 一项里的 文本框文字的第一行加上Content-type: text/plain; charset=UTF-8 ,加后变为: Content-type: text/plain; charset=UTF-8 From: bugzilla-daemon To: %to% ……
收到的email的主题仍为乱码,网上提供的解决方案是: 打开文件 \Bugzilla\BugMail.pm, 在第 586 行加上两行: use Encode; $substs{"summary"} = encode('MIME-Q', $substs{"summary"});
界面汉化很简单,从网上下载汉化包,放到template下即可,我用的是utf8版的。 然后再Bugzilla的localization界面修改languages为cn即可。
9. 使用whine(定制)功能 Bugzilla提供的一个强大的(whine)定制功能,linux下可以用crontab执行定期的命名,windows我是写一个whine.bat G:\Perl\bin\perl.exe -T G:\bugzilla-2.22.6\whine.pl 然后把这个设定为windows的计划任务,每隔15分钟运行。
使用whine的时候,如果语言不是en而是cn的时候,邮件发不出来。命令行下打印出邮件内容,发现从一开始就乱码。一个折中的解决办法是强制whine发送邮件时系统语言为en 修改whine.pl 行36: use Bugzilla::BugMail; 行37: use Bugzilla::Util; #添加本行,强制指定邮件语言为英文 Bugzilla::Config::SetParam('languages','en') ;
这样cn下的while邮件问题,被丑陋的解决了。希望有大侠提供更好的办法。 4/01/2009 读《听杨绛谈往事》上午10点睡醒后,没有开电脑,继续看《听杨绛谈往事》,直到下午2点,才终于看完。 杨先生一生坎坷不用详述,文至钱瑗死后百日,先生去埋骨灰的雪松下悼念,套用东坡悼亡词“从此老母断肠处,明月下,长青树”。不觉潸然泪下。 再回忆之前看的《走到人生边上》,很多道理,当时自以为讲的浅显,看懂了。实则不然。 再回忆少年时抄写过先生的《译兰德》,分明是杨先生一生的写照。 《译兰德》 - 杨绛 25/12/2008 免费短信提醒:google日历 和 139邮箱推荐2个我一直在用的手机短信免费提醒功能,也许已经有人在用了。 Google日程短信免费提醒
|
|
|