The Sun Also Rises

Algorithm, Mathematica, 计算机科学, C++, photography, GNU/Linux的讨论空间

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  73 随笔 :: 6 文章 :: 169 评论 :: 0 Trackbacks

#

人不是为失败而生的,
一个人可以被毁灭,
但不能给打败。

               ——海明威
posted @ 2008-06-09 16:51 FreePeter 阅读(2067) | 评论 (1)编辑 收藏

Ever tried Zen computing?

轻量级的发行版。。。
seems是Slackware的后继。。。


posted @ 2008-06-06 15:25 FreePeter 阅读(363) | 评论 (0)编辑 收藏

这年头谈恋爱的,10个里面有5个是在玩。
还有5个总算是认真的。
可惜4个是,很认真的用大脑在谈恋爱,而不是用心在谈恋爱。
估计真的是用心在谈恋爱的,10个里面,也就1个吧。

大脑可以喜欢一个人,可以对这个人比较好,很好,非常好,可以调整荷尔蒙的分泌量,
但,到此为止了。
碰到其他一些事情的时候,还是会患得患失,考虑这考虑那……
只有心,才可以真正的,爱一个人。

我算是突然有点理解了那句:
努力做事只能把事情做对,
用心做事才能把事情做好。

我们可以只用大脑,很认真的做事情。。。可惜,还是只能把事情做对。


posted @ 2008-05-31 22:18 FreePeter 阅读(891) | 评论 (15)编辑 收藏

闭上眼睛写了个
int val = 0;
for (int i = 0; i < 4; ++i) val = (val << 8) | x[i];
其中x是char[]。
问题就在,当x[i]的符号位是1的时候,位扩展为int就全部pad 1了。。。
囧死。。。调了半天。。。

posted @ 2008-05-29 22:31 FreePeter 阅读(402) | 评论 (0)编辑 收藏

但是我的自由意志,也是天意的一部分,不是么。

所以某一天,Peter纠结的思考要不要send a postcard
于是征询天意,toss a coin
the result is...不寄。。。
于是不爽,我再toss...
还是不寄。。。
我还toss.............
于是第四次结果就是寄了。。。
恩。。。这就是天意啊。。。天意不可违。。。(被pia飞)。。。


依稀记得当时身边的Lunarmony当场ft to death...
posted @ 2008-05-29 14:17 FreePeter 阅读(435) | 评论 (0)编辑 收藏

整理 by FreePeter

我的英语听力好差。。。T_T
在refer了一些stallman的其他演讲的transcript之后总算大多数内容还是catch了~~~
果然xf教育我们说对内容的预判是王道~~~
这儿有两篇他曾经的lecture
http://www.fsfeurope.org/documents/rms-fs-2006-03-09.en.html
http://www.fsfeurope.org/projects/gplv3/torino-rms-transcript.en.html

好像stallman特别喜欢拿M$的软件说事。。。恩,不过找到一篇虾米google的。
Google designs software specifically to restrict the user. That's the nature of the Google Earth client: it is made the way it is specifically to restrict the people who use it. Obviously, it's not Free Software, because Free Software develops under the democratic control of its users. With the four freedoms: the freedom to run the program as you wish, to study the source code and change it so the program does what you wish, the freedom to distribute exact copies to others (which is the freedom to help your neighbour) and the freedom to distribute copies of your modified version (which is the freedom to contribute to your community). With these four freedoms the users, individually and collectively, are in charge.
原文连接
http://www.fsfe.org/en/fellows/ciaran/ciaran_s_free_software_notes/transcript_richard_stallman_honorary_degree_speech_pavia_2007


注明一下,这些内容并不完全代表我的观点。我特别郁闷的是他对QT/KDE的态度。。。
我个人的观点还在forming,
我不是纯粹因为好用或者技术上的领先才去用GNU/linux的,虽然很多强人的GNU/linux(在自己稍微配置了一下以后)巨好用无比。
我的GNU/linux大致是能用。。。但是总体上没有当年的windows 2000好用(就这么被M$抛弃了...T_T)
简单一点说,在完全不能用的free software和 non-free software之间,我显然选择后者。
但在现有的GNU/linux distribution和XP/Vista之间,我显然选择前者。
另外个人对QT那种非GPL觉得还可以。在GNOME和KDE之间,选择是后者。
个人感觉。。。
free software / GNU Linux

p.s. 听了speech最significant的一点是知道了应该叫做GNU/Linux
简单一点说,GNU是一项浩大的工程,它也包括了制作一个操作系统,同时包括其他很多软件,GCC,G++,Emacs........
然后呢,GNU操作系统的设计很早就完成了。。。然后他们写啊写。。。
在写了接近十年之后,终于大体完工了,就差一个kernel了。。。
接着呢。。。据说原配写kernel的那个人写囧了。。。
于是Linus就跑来帮忙写了个kernel玩,叫做Linux。
于是大家都只顾着看到拼盘的最后一块。。。
Linux,严格意义上来说,只是GNU System的一种kernel实现方式而已。
stallman说:
Why do you call it GNU/Linux and not Linux?
Most operating system distributions based on Linux as kernel are basically modified versions of the GNU operating system. We began developing GNU in 1984, years before Linus Torvalds started to write his kernel. Our goal was to develop a complete free operating system. Of course, we did not develop all the parts ourselves—but we led the way. We developed most of the central components, forming the largest single contribution to the whole system. The basic vision was ours too.

In fairness, we ought to get at least equal mention.






下面是昨天的演讲的0~20分钟内容~~~

Hello & Happy Hacking (Laugh, Applause)

Society usually teaches people to judge software packages by practical concerns only
is this program convenient,
is this program reliable,
is it cheap,
and to ignore the most important questions:
if I use this program,
what does it do to my freedom?
if I use this program,
what does it do to the social solidarity of my community?

So people ignore the most important things
Those questions, are what free software is about,
free software, means software that respects users' freedom
it's a matter of freedom, not practice
when you tranlate it to chinese, you should say "自由", but not "免费"
(laugh & applause)


software which is not free software, is user-subjugating software, proprietary software,
it keeps user divided and helpless
divided, because everyone is forbidden to share it with everyone else
and helpless, because the users don't have the source code, so they can't change it,
They can't even verify what it actually doing to them.

However, just saying "I'm in favor of freedom" is too vain, is not specfic
Even Bush says he's in favor of freedom (Laugh)
and Bush can recognize freedom even after he's crashed.
So I need to say sth more specific, more precise.

A program is free software, if it gives the 4 essential freedoms.
freedom 0, is to run the program as you wish
freedom 1, is the freedom to study the source code of the program, and change it, to make it do what you wish.
freedom 2, is the freedom to help your neighbour, that's the freedom to make copies, exact copies, and distribute to others, when you wish.
freedome 3, is the freedom to contribute to your community, that's the freedom to make copies of your modified versions, and distribute them to others when you wish. The freedom to distribute copies, includes the freedom to gives them away, and the freedom to sell them, so that hasn't to be 免费, often it is, but that's not part of the definition, that's because that's just about price and price isn't the issue here, freedom is the issue here.

So if the program gives you all 4 of the essential freedoms, then it's a free software, which means that social system of the distribution and use, is an ethical system
Where we respect freedom, and the social solidairy of our comunity.

but if one of these freedom is missing, or insufficient,
then it's proprietary software, non-free software, user-subjugating software,
because the social system of the distribution and use is unethical,
such software should not exist, developing a free software, is a contribution to society, big or small, depending on the details, but at least it's going in the good direction.
but to develop and distribute proprietary program, it's not a contribution to society,
it's a power gramp()  , it's attempting to take power of society,
if the program has any attractive features,
those are bait for a trap, and the trap is that you lose your freedom.
so, the aim of free software movement is, software should be free, users should be free. (Applause)

But why are these 4 freedoms essential,
why divide free software this way? Each freedom has its own reason.
Freedom 2, the freedom to help your neighbour,
the freedom to make exact copies and distribute them,
is essential on fundamental moral grounds.
so that you can live an upright, ethical life as a good memeber of your community.
if you use a program that doesn't give you freedom No.2,
you're in danger of falling into a moral dilemma,
at any moment, whenever your friend says, "that program is nice, could i have a copy?"
at that moment, you will face a choice between 2 evils
1 evil, is to give your friend a copy, and violate the licence of the program,
the other evil, is to refuse your friend a copy, and comply with the licence of the program.
Once in the dilema, you ought to choose the lesser evil,
which is to give your friend the copy, and violates the licence of the program
what makes this evil the lesser evil?
well, if you can't avoid doing some kind of wrong to somebody,
better to do wrong to sb who has done wrong and deserves it.
like the developer of pro,
we can assume that your friend is a good friend, a good member of community,
and normally deserves your co-operation,
of coz, it's a good thing to co-opperate with other people as well.
but this case, the case where the people is a good people of the comunity, is a sharpest case,
the sharpest contrast, because let's contrast this good member of your comunity with the developer of the proprietary program who has deliberately attacked the social solidatry of your comunity, deliberately try to divide you.
clearly the lesser evil is to do wrong to the developer,
however, being the lesser evil doesn't mean it's good
it's never a good thing to make an agreement then to break it.
now, there're some kind of agreements, that are evil in themselves,
and keeping them is worse than breaking them,
and that's an example, but still, breaking is not good
and if you give your friend a copy, what will we have,
he will have an unathorized copy of a proprietary program,  
and that's a bad thing, almost as bad as an authorized copy would be.

So what you should really do, when you have thought about this ethical issue,
is to make sure, you're never in this dilemma,
there're 2 ways to do that,
1 is, don't have any friends,
the distributers of proprietary software implicitly suggest that method
the other method is , don't use the proprietary software,
if you don't have a copy, you don't have to worry about what you will say to your friend,
that's my method, if sb offers me a proprietary program on the condition that i promise not to share with you,
i would tell them no,
i would say, my conscience doesn't allow me, to make an agreement like that,
a couple of weeks ago, sb give me a computer,
i went to visit the company, and i was given 1 of their computers
and when i try to use it,
the top of screen asking me to accept a licence,
for some non-free programs,
i couldn't agree with that,
so i explain this problem, and i ask if there's anyway i can delete these non-free programs, and go past that and skip around that licence page,
and so far, it's not clear that i can do so, so i may never actually use that computer,
coz i'm not going to accept that licence.

and we must reject the probability against the terms,
that our enermy's use,
for instance, what's it mean, when they say, if you share you're pirate,
what they really tring to say?
they're trying to say, that helping your neighbour,
is the moral eqivalent of attacking a ship, to stealing a cargo,
and nothing could be more false than that,
because attacking a ship is very very bad,
but helping your neighbour is the right thing to do,
so those people are trying to twist up our ideas of right and wrong,
by using dishonest words,
we have watched out their dishonest words and rejects them,
so when sb asks me what do i think of piracy,
i say that attacking ships is very bad,
and if someone asks me what i think of software piracy,
i say as far as i know, pricay these days use guns, but not software.
well that's the reason for freedom 2, the freedom to help your neighbour, the freedom to make exact copies and distribute them to others when you wish

Freedom 0, the freedom to run the program as you wish,
is essential for different reason,
so you could control your computing.
There're proprietary programs whose licence restricted even the use of authorized copies,
and that's obviously not controlling your computing,
so that's unacceptable,
we have to reject programs whose licences restricted how you can run them, or for what purpose, or how long, or anything like that.
because you, have to be in control your own computing.
but, freedom 0 is not enough.
because, the developer still controls what you do,
not through the licence, but through the code, the program.
so we also need freedom 1, the freedom to study the source code and to change it.
so the program does what you wish,
this way, you decide, instead of having the developers decided and imposed decisions on you.
if a program doesn't come with freedom 1,
you can even tell what's it doing to you.
and many of these programs do nasty things,
they have features designed to spy on the user, to restrict the user, even to attack the user,
of coz, spying on the user and restricting the user is not done only by software and your computer,
and it's also done by servers and gateways,
but that's the different issue,
if you can't even control your computing on your computer,
you're totally under the power of the software developers,
and there malicious features are quite common,
for instance, many proprietary program spy on the user,
1 you may heard of, that spy on user is called MS windows.
when the users of windows, and i won't say you, because i'm sure you won't use nasty program like this.
when the users of windows, clicks on the menu feature, to search his own files for a word,
windows sends a message to MS saying what word you're searching for.
that's 1 spy feature.
but there's another, when XP asks for an upgrade,
it sends MS a message of a list of all the programs on the machine,
that's another spy feature,
but are those the only ones?
we don't know, MS never announced these spy features,
people find them by investigation,
so there could be more spy features, that people haven't found yet,
however, windows isn't the only program that spy on the user,
WMP does too, in fact, it does total surveillance. it report everything that the user looks at.
that illustrates today, cooperations try to spy on people just as same as the government do,
most of the world is now under an empire of the magical coperations(???)
and most governor do whatever the magical coperations(??) tells them to do,
and this means they're not democratic, and that's bad thing.
So, WMP spys on users, but, please don't think MS is uniquely evil, that MS
is the only company so nasty that will do this
because RealPlayer does the same thing,
and we're almost certain RealPlayer did it first,
after all, MS is more known for imitation than invetion.
But malicious feature gets worse than just spying,
there's also the malicious feature, functionality of refusing to function.
when the program says, i don't wanna show the contents of this file,
even though it's in your own computer,
i don't wanna let you copy part of this file
even though it's in your own computer,
i'm not going to print this file for you, coz i don't like you.
and i wasn't put here to serve you, i was put here to control you.
i'm not your servant, although i pretend to be,
i'm actually your prison guard.

now this practice is also know as DRM(Digital Restrictions Management),
intentionally implemented malicious feature of stopping you from doing things, that sb else doesn't want you to do.
and many companies do this, for instance MS, apple, google, adobe, sony, amazon does this, and many other.
and everytime they do this,
it attacks your freedom, at 2 different levels at once.
first of all, the purpose of these restrictions, is to attack your freedom,
it's to stop you from doing things which would otherwise be your legal right,
but the way they do it attacks your freedom at another level,
because they do it by publishing things in secret formats,
and that is to make sure we can't write any free software to access those things,
so even to access them in a way permitted, you have to use a non-free program,
and that's also an attack on your freedom,
2 attacks on your freedom at the same time,
because that's so dangerous,
we urge you never to buy or accept or use any product with DRM,
unless you personally possess the means to break the DRM.

so far instances, if you have the free software that can read and play a DVD
then it's OK to buy or rent DVDs or accept as gifts,
but if you don't have that free software,
you should refuse to accept a DVD,
there're a few DVDs which are not encrypted
and they don't post a problem, they don't have the DRM, that's fine, i have a few of those,
i don't have any encrypted DVDs, i reject them.

posted @ 2008-05-25 01:10 FreePeter 阅读(526) | 评论 (1)编辑 收藏

直接12:30冲到新闻学院。。。结果发现怎么才这么几个人。。。好歹是神人啊。。。你看我可是无视可能会写不完的lab作不完的作业义无反顾的冲过来的。。。

恩。。。话说什么地方可以上传巨大的mp3呢。。。1.5多小时的speech啊。。。~~~

先传点PP~~~


现场咯...

工作中。。。

演讲中~~~

激情澎湃啊~~~~~~~~~~~


hoho~~~Stallman的经典装束~~~


Richard签名的书~~~
背景是偶的gentoo~~~
posted @ 2008-05-24 21:13 FreePeter 阅读(993) | 评论 (7)编辑 收藏

reduce to PCP~~~

http://people.cis.ksu.edu/~rhowell/770s03/lectures/23-twoup.pdf 


posted @ 2008-05-18 16:30 FreePeter 阅读(391) | 评论 (0)编辑 收藏

http://www.scribd.com/doc/247203/Design-of-Double-Precision-IEEE754-FloatingPoint-Units

看到了熟悉的Gate && MUX...
anyway...个人对底层这块不是特别灵。。。~~~

p.s. ms是一个可以上传pdf的网站?.~~~

posted @ 2008-05-17 20:44 FreePeter 阅读(442) | 评论 (0)编辑 收藏

其实我最近突然发现,
我真的,完全,
不了解自己呢。。。

记得Rogers说过,
如果可以对你的经验开放,
那么你的直觉,就是可信的呢。

我猜,
或许我要学会,
对很多,我不希望的事情,对痛苦与困境,保持开放的心胸呢,
对成绩的担扰,对未来的迷茫,对我所作的事情的怀疑,对lab来不及做的隐忧。
以及各种各样的情绪反应,疑惑,和挣扎。


这年头大家,似乎都很孤独呢,
某天和小朋友Q聊天。
她说,她的想法变了,
她觉得不一定非要可能的了,
反正肯定坚持不到最后,
只是一个一个人,实在是太孤独太累了。。。
然后,我就,突然间,
失语了。

跟着呢,很appreciate小朋友 A && C。。。
虽然我们的思维隶属于不同的平行宇宙。
不过,在某些层面上,还是可以相互交流呢,
倘能如此,那也就够了。

我是。。。
小朋友P~~~~~
Oh, Yeah~~~~~~~~~~~~~~~~~~~

p.s.
在fdu呆了2年的后果是,
我彻底明白,我,不适合在这种繁华的大城市居住。
我曾经只是不太喜欢上海这样的城市,
而现在,我已经,不那么敢走出fdu了,
如此多的人,和完全没有感情的,钢筋混凝土的高楼大厦,让我昏眩。
还是 杭州 / 宁波是好地方啊。。。
所以HK直接一票否决了。。。
所以现在一听到大家说UIUC是个大农村。。。
我第一反应是。。。好亲切啊~~~城市太危险了。。。我还是回农村去~~~
地球太危险了。。。火星人满了~~~我还是回土星吧~~~




posted @ 2008-05-16 19:59 FreePeter 阅读(532) | 评论 (3)编辑 收藏

仅列出标题
共8页: 1 2 3 4 5 6 7 8 
Creative Commons License
This site is licensed under a Creative Commons Attribution-Share Alike 2.5 China Mainland License. 本站采用创作共用版权协议, 要求署名、相同方式共享. 转载本站内容必须也遵循“署名-相同方式共享”的创作共用协议. This site is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.