Who writes the Linux kernel?
没听说过以下公司:
Tripeaks, Emulex, rPath, Solid Boot, PMC-Sierra, Astaro
没听说过以下公司:
Tripeaks, Emulex, rPath, Solid Boot, PMC-Sierra, Astaro
apt-get install mono mono-utils monodevelop
用monodevelop开一个新project hellworld
自动生成程序如下:
using System;
namespace hellworld
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(”Hello World!”);
}
}
}
执行mcs hellworl.cs,产生hellworld.exe,执行之,显示Hello World!
执行monodis hellworld.exe > hell.cs
输出
.assembly extern mscorlib
{
.ver 1:0:5000:0
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
.assembly ‘hellworld’
{
.custom instance void class [mscorlib]System.Reflection.AssemblyTitleAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyDescriptionAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyCompanyAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyProductAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyCopyrightAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyTrademarkAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyDelaySignAttribute::.ctor(bool) = (01 00 00 00 00 ) // …..
.custom instance void class [mscorlib]System.Reflection.AssemblyKeyFileAttribute::.ctor(string) = (01 00 00 00 00 ) // …..
.hash algorithm 0×00008004
.ver 1:0:2816:41192
}
.module hellworld.exe // GUID = {4C2ECEB2-6A70-412A-B380-B7E6847638D6}
.namespace hellworld
{
.class private auto ansi beforefieldinit MainClass
extends [mscorlib]System.Object
{
// method line 1
.method public hidebysig specialname rtspecialname
instance default void .ctor () cil managed
{
// Method begins at RVA 0×20ec
// Code size 7 (0×7)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void object::.ctor()
IL_0006: ret
} // end of method MainClass::.ctor
// method line 2
.method public static hidebysig
default void Main (string[] args) cil managed
{
// Method begins at RVA 0×20f4
.entrypoint
// Code size 11 (0xb)
.maxstack 8
IL_0000: ldstr “Hello World!”
IL_0005: call void class [mscorlib]System.Console::WriteLine(string)
IL_000a: ret
} // end of method MainClass::Main
} // end of class hellworld.MainClass
}
再执行ilasm hell.cs,生成hell.exe,执行之,显示Hello World!
王安是我知道的第一个电脑公司的名字,好像是八十年代初CCTV搞的智力竞赛,赵老师忠祥主持,王安电脑公司作为华人在美国成功的代表,组队参赛,好像拿了个第二(?)。我当时还不知道电脑是个啥东西。
苹果大概是我知道的第二个电脑公司的名字,因为风传所在的中学花巨资买了两台“苹果二”电脑,放在专用的机房里当宝贝供着,只有某专职老师和校长公子可以进去使用。我甚至都没机会见到。
四通联想浪潮是在电视上看到的广告。四通的比较科幻,霹雳贝贝风格,看完了以为四通的人都是外星人派来的。联想好像是“人类没有联想,世界将会怎样”,比较傻。浪潮是一个大浪打过来,然后是“浪潮0520,如何如何”,一直也不明白0520是什么意思。
然后就是SCO了,电视台有个SCO UNIX的讲座,我那会对跟电脑搭边的东西都特别感兴趣,苦于没有机会接触电脑。于是盯着这个讲座连续学了好几期。记得第一讲是讲“ls”的用法,讲了几十分钟。想来这个讲座也是针对企业中使用SCO UNIX的用户,因为从那之后的十几年里我没用过SCO UNIX,甚至认识的人里也没有用过SCO UNIX。所谓学习,就是把电视上讲的内容,记到纸上,想象如果我坐到电脑前,应该怎么使用这些命令。
对SCO一直有莫名的好感,因为那些记在纸上学到的命令和概念在我几年之后在大学里接触学习SUN III工作站的时候上手比别人快了一些。
这种好感一直延续到SCO和Linux打官司之前。
现在可倒好,官司失败了,SCO也流落到破产保护的境地。
有一哥们一直用root登录使用fedora,但是auto login不能以root自动登录,这哥们居然给linux kernel mailinglist发了一个邮件如下:
Dear whoever is in charge of writing fedora core 7,
The auto login is a wonderful feature. However, there is a HUGE flaw in
it at the moment. It won’t let me log in a root that way. That is MY
decision, not YOUR decision. Please fix it in an update!!! I’m sick of
having to log in as root every single time I use my computer. I
understand that there are situation where people have other people use
their computer and don’t want them to be root. However, I never want to
be logged in as anything other than root, and I suspect everyone who has
half a brain is the exact same way. Honestly, have you ever been logged
in as someone other than root? You absolutely can do nothing on the
machine. For those who make the argument that someone logged in as root
might break the machine by doing something they shouldn’t, I would say
it’s already broken without being root. You cannot mount drives, edit
anything about how the /etc directory is setup, or do many other things
that everyone I know does on a regular basis. IN general, there are
times when you are logged in as a non-root user when it will ask you for
a password. That is so inconvenient when you are the only one who uses
your own computer. PLEASE get root auto login as an option. No one but
me has to set it up this way, but please give ME the option.
Thank You,
几个人就他的错误行为给出了简短的回复,例如给fedora提bug之类的。
也有人比较刻薄,回复如下:
Hint 1: If you’re not smart enough to figure out how to fix your system so that
it does what you want, you’re not smart enough to run as root all the time.
Hint 2: You’re posting to a kernel list about a non-kernel problem. See hint 1.
结果另一人跟着回复如下:
>Hint 1: If you’re not smart enough to figure out how to fix your system so that
>it does what you want, you’re not smart enough to run as root all the time.
yum install smart