Chaos_Proton's Page

Subscribe to RSS feed

Linux Kernel Gains Serviceability Features

Linux kernel gets better and better by the day!
By: Marius Nestor, Linux Editor

The new updates of the Linux kernel bring several serviceability improvements, chiefly around the kdump and SystemTap features. While the new SystemTap features enable IT professionals to debug a running system in real-time without affecting performance or recompiling, the kdump enhancements should improve the ability to quickly create crash dumps, ability that allows further offline analysis.

Andrew Morton, one of the kernel maintainers says:"Kdump is especially significant since it represents the first crash dump tool accepted into the mainline kernel. We expect it to be really valuable for the kernel development team, permitting us to gather detailed information regarding kernel bugs from our worldwide testing team." Also, the initiative manager at the OSDL (Open Source Development Labs), Ron Pettit says: "Because of the efforts of many individuals and companies from the Linux development community, users will gain important improvements to serviceability tools."

Some of those largest contributors to the latest improvements include Red Hat, Novell, IBM, Intel and HP. The new features are already available for most of the important Linux distributions around the world.

The Linux Kernel is the essential part of all Linux Distributions, responsible for resource allocation, low-level hardware interfaces, security, simple communications, and basic file system management.

Linux is a clone of the operating system Unix, initially written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance.

18th of December 2006, 10:43 GMT | Copyright (c) 2006 Softpedia

Linux Kernel 2.6.19 Released

It's one of those rare 'perfect' kernels!
By: Marius Nestor, Linux Editor
Linus Torvalds announced last night the release of Linux Kernel 2.6.19. "It's one of those rare 'perfect' kernels. So if it doesn't happen to compile with your config (or it does compile, but then does unspeakable acts of perversion with your pet dachshund), you can rest easy knowing that it's all your own d*mn fault, and you should just fix your evil ways." - says Linus.

Since Release Candidate 6 of this version, there aren't a lot of changes. The shortlog tells the whole story, bugs fixes and lots of improvements. The major user-visible changes are:

• Parallel ATA driver subsystem;
• The GFS2 and ext4 filesystems;
• A long list of new drivers;
• eCryptfs, and more.

For those that encounter problems when compiling the kernel, Linus says: "You could send me and the kernel mailing list a note about it anyway, of course. (And perhaps pictures, if your dachshund is involved. Not that we'd be interested, of course. No. Just so that we'd know to avoid it next time). "

30th of November 2006, 07:40 GMT | Copyright (c) 2006 Softpedia

Linus Torvalds is a Hero!

Time Magazine says Linus Torvalds is a HERO!
By: Marius Nestor, Linux Editor

According to Time Magazine's latest edition, Linus Torvalds is officially a hero! Linus is cited in the "Rebels & Leaders" category along with Nelson Mandela, Margaret Thatcher, Mikhail Gorbachev and others. In the article 60 Years of Heroes, Linus Torvlads was selected one of the heroes of the past 60 years:

"Linus Torvalds was just 21 when he changed the world. Working out of his family's apartment in Helsinki in 1991, he wrote the kernel of a new computer operating system called Linux that he posted for free on the Internet -- and invited anyone interested to help improve it."

This year, 25 August marked the passing of 15 years since he first posted that announcement on the internet and since then, Linux powers everything from supercomputers to mobile phones around the world. Now, Linus Torvalds is known as the godfather of the open-source movement, in which software code is developed and shared in a collaborative effort, and not kept locked up by a single owner.

Linus Torvlads earned a place in history by giving away his software and he has also made some money from stock options given to him as a courtesy by two companies that sell commercial applications for it. Time Magazine ended the article on Linus Torvalds by saying: "But his success isn't just measured in dollars. There's an asteroid named after him, as well as an annual software-geek festival. Torvalds' parents were student radicals in the 1960s and his father, a communist, even spent a year studying in Moscow. But it's their son who has turned out to be the real revolutionary."

14th of November 2006, 11:38 GMT | Copyright (c) 2006 Softpedia |

Research Paves Way for New Composite Materials

"Graphene-based materials" that could be mixed into materials such as polymers, glasses and ceramics
By: Sci/Tech News Staff

Northwestern University researchers have developed a process that promises to lead to the creation of a new class of composite materials -- "graphene-based materials."

The method uses graphite to produce individual graphene-based sheets with exceptional physical, chemical and barrier properties that could be mixed into materials such as polymers, glasses and ceramics.

The Northwestern team, led by materials scientist and physical chemist Rod Ruoff and composed of chemists, physicists and engineers, reports the results of their research in the July 20 issue of the journal Nature.

"This research provides a basis for developing a new class of composite materials for many applications, through tuning of their electrical and thermal conductivity, their mechanical stiffness, toughness and strength, and their
permeability to flow various gases through them," said Ruoff, professor of mechanical engineering in the McCormick School of Engineering and Applied Science. "We believe that manipulating the chemical and physical properties of individual graphene-based sheets and effectively mixing them into other materials will lead to discoveries of new materials in the future."

The Northwestern team's approach to its challenge was based on chemically treating and thereby "exfoliating" graphite to individual layers. Graphite is a layered material of carbon with strong chemical bonds in the layers but with moderately weak bonds between the layers. The properties of the individual layers have been expected to be exceptional because the "in-plane" properties of graphite itself are exceptional, but until now it was not possible to extract such individual layers and to embed them as a filler material in materials such as polymers, and particularly not by a scalable route that could afford large quantities.

There are approximately one million metric tons of graphite sold annually around the world, and there are roughly 800 million metric tons of untapped natural graphite that could be mined and used in the future, according to the U.S. Geological Survey. Graphite is used in a wide variety of applications such as those related to friction (brake linings are one example), in gaskets, as a lubricant, and as an electrode material in the making of steel.

20th of July 2006, 13:53 GMT | Copyright (c) 2006 Softpedia |

Visualising Invisibility

With mathematics
By: Sci/Tech News Staff

Invisibility has been an ingredient of myths, novels and films for millennia – from Perseus versus Medusa in Greek legend to James Bond’s latest car and Harry Potter’s cloak. A new study published today by the Institute of Physics reveals that invisibility is closer than we think.

The paper, Notes on conformal invisibility devices, published in the New Journal of Physics describes the physics of several theoretical devices that could create the ultimate illusion – invisibility.

“Objects are visible because they reflect light rays” says author Dr Ulf Leonhardt at St Andrews University, Scotland. “To be invisible, an object would have to let light pass through it, like H. G. Well’s Invisible Man. Alternatively light would have to bend around an object for it to be invisible. The ideas in this
paper are based around devices that will bend light or radio waves around a hole inside the device. Any object placed inside the hole will become invisible. The light would flow round the hole like water around an obstacle.”

The bending of light is the cause of many optical illusions, such as mirages in the desert. Light bends in the hotter air near the ground in the desert and this causes a reflection of the sky on the ground – a mirage.

Dr Leonhardt went on to say “The devices work by bending light, as in a mirage. However, a mirage involves the reflection of light which produces the shiny image that can be seen: an invisibility device bends light without producing an image. To do this, the devices must have carefully designed refractive index profiles. The paper explains the physics and mathematics behind the devices using images rather than complex equations: it visualizes invisibility.”

The refractive index is a measure of the optical length that light has to travel in a medium: the higher the refractive index, the longer the optical path is to the light ray. Light rays bend when the refractive index of the medium they are traveling through varies. According to Fermat’s Principle of optical paths, light will follow the shortest optical path length. In the case of the mirage, air closer to the desert ground is hotter and has a lower refractive index than the cooler air higher up. Therefore light bends close to the desert floor in order to stay in the lower refractive index region.

Dr Leonhardt added “The next step is actually making one of these theoretical devices. There are advances being made in metamaterials that mean the first devices will probably be used for bending radar waves or the electromagnetic waves used by mobile phones. Such devices may be useful in wireless technology, for instance in protecting sensitive electronics from mobile-phone radiation in airplanes. After these have been developed, it is possible that devices that work for visible light are not too far behind.”

Image: Light propagation in a conformal invisibility device. The light rays are shown in red. The brightness of the green background indicates the refractiveindex profile. Credit: Ulf Leonhardt

1st of August 2006, 08:43 GMT | Copyright (c) 2006 Softpedia |

When Refraction Meets Polarization

Scientists finally measure an effect predicted 200 years ago
By: Vlad Tarko, Sci-Tech News Editor

Light comes into particles called photons. But photons don't just travel from place to place, they also spin around an axis. If you have a large number of photons coming from, say a light bulb, each of them usually spins around its axis with any orientation what-so-ever. Some materials however can absorb all the photons except some that spin around a certain axis. The light that has passed through such a filter is called polarized light.

This sounds much simpler than it actually is. In the same way as there exists a Heisenberg relation between momentum and position (which means that if you measure the position of something very precisely you change its momentum at random, making it unpredictable, and vice-versa when you measure the momentum), there also exists a Heisenberg relation between any two orthogonal axes of rotation.

Thus, the filter that is sensitive to a certain spin actually changes this spin because it randomly influences the rotation around the other two orthogonal axes. As a consequence, the polarized light that comes out of such a filter is not made exclusively from one type of photons (with a certain spin), but rather it is made of a bunch of photons that have a certain spin only statistically. Moreover, due to the same reason, it is impossible to actually determine which exact axis the filter is actually favoring (one can only make a statistic guess)!

If we have many photons we can treat them collectively as an electromagnetic wave and forget about their quantumness. This is similar to how we can speak about a sound wave although in reality we have a bunch of individual atoms of gas moving in a certain way. The story of the photons' spinning translates into the story of the plane in which this electromagnetic wave is oscillating.

You can imagine waving the jet of water coming from a hose. You can wave it in various planes – for example vertically or horizontally or in a circle. The waving jet is the analogous of the electromagnetic wave made from a constant supply of photons. The unpolarized light is equivalent to the situation when you wave the hose a random in all directions.

When such a wave encounters
a polarizing filter however, the filter keeps only the "component" of the jet that waves in a certain plane. As mentioned, you cannot say much about the individual spins of the photons in this jet that emerges from the filter, or about the actual quantum mechanical "preferences" of the filter, but you can make this macroscopic assessment about the plane of polarization of the entire wave.

How the light waves move

Individual photons don't care very much about the laws of reflection or refraction. In fact they appear to be capable of moving on any path whatsoever. A large number of photons however form a wave that moves from A to B on the path that takes the least amount of time.

In case this wave travels through a material (be it a solid, a liquid or a gas) the photons interact with the molecules of the material. The outcome is that the speed of light, more precisely of the electromagnetic wave, in this material can be smaller than the speed in empty space (or in air or some other material).

The phenomenon of refraction is the consequence of the so-called lifeguard dilemma. Suppose you are David Hasselhoff or Pamela Anderson and you see someone in the water nearly drowning. You of course run to save his or her life. But which is the best path? You run fast of the ground but you swim much slowly, so the shortest path (2) isn't the best option. The path (3) is particularly stupid. The path that takes the shortest time is something like (1) and the exact point where you should enter water depends on the ratio between your speed on the ground and your speed in water.

Light waves appear to solve this problem better than any lifeguard and the consequence is the law of refraction. This law describes what happens when light passes from one medium to another. Of course, light has no foresight. It doesn't actually solve the lifeguard dilemma! But the statistical outcome of what individuals photons happen to do is this law.

Back to the issue of polarization

About two hundred years ago Augustin Fresnel, the one who demonstrated that light is a wave and stupefied his contemporaries with some unexpected experiments (such as the fact that the shadow of a small circular object has a light spot in the center), also understood the phenomenon of polarization. He studied so-called "optically active" materials – materials that change the polarization of the light that passes thought them. They could be both solids and liquids.

He realized that he could understand these materials by assuming that the speed of the wave in one direction is different from its speed in another orthogonal direction. This offered a simple explanation of how the optically active materials managed to change the polarization. The lack of velocity homogeneity introduces time lags in one direction relative to the other and changes the way the wave is oscillating. It's a nice explanation, but it is true?

Fresnel realized that is if were true that the optically active materials should split a linearly polarized beam of light (one that is oscillating in a single plane) in two beams of lights with a circular polarization (one rotating to the left and another to the right). The angle between the two diverging beams depends on the difference between the two speeds.

The phenomenon can be easily seen in solids – photo (credit: P. Fischer/Harvard Univ.). The two beams inside the crystal (such as calcite or quartz) are the result of the polarization splitting. But the effect is much harder to detect – and to understand – in liquids.

After about 200 years since Fresnel, Ambarish Ghosh and Peer Fischer from the Rowland Institute at Harvard University have now finally measured the effect in the case of liquids. Moreover, they did it using a technique proposed by Fresnel himself.

Because in case of optically active liquids the angle is very small, about ten-thousandth of a degree, Fresnel proposed amplifying the difference using a series of triangular prisms alternatively filled with two versions of the liquid. One version changes the polarization in one direction the other version in the other direction. Although Fresnel had no idea why the two versions of the same liquid acted as they did and what made them different he assumed that such a set-up would amplify the divergence between the two beams.

We now know what makes the two versions different and why they act like that on the polarization of light. Such optically active liquids are made of "chiral" molecules – molecules that have two different versions one the mirror image of the other one.

Ghosh and Fischer used a chiral liquid called limonene – a natural scented oil. By using Fresnel's set-up with the left-handed and right-handed forms of limonene, they clearly imaged the two separated beams with a high-resolution camera.

Besides testing for the first time an effect predicted 200 years ago, Ghosh and Fischer also created a new way of detecting the chirality of unknown substances. Until now, such an analysis has required a relatively large amount of liquid, but with the new technique a small cell, only a few hundred microns across is sufficient. By carefully measuring the refracted beam, researchers can accurately determine the relative proportion of the two molecular forms. This is very valuable for medical purposes where only small quantities of liquid are available.

6th of November 2006, 14:57 GMT | Copyright (c) 2006 Softpedia |

Google!

今天发现GOOGLE真是太伟大了!注册了Docs and Spreadsheets,可以在网上编写文档和表格了!更好的是他支持Openoffice.org!
我现在正在设想这样的情景:一台能上网的机器,LINUX&Firefox 足矣。编写文档和表格?上GOOGLE。想听音乐?GOOGLE可以帮你解决。。。。

Mozilla Releases Major Update to Firefox and Raises the Bar for Online Experience

Enhancements to usability, security and customization make Firefox 2 a must-have upgrade for all Web users

MOUNTAIN VIEW, CALIF. – Oct. 24, 2006 – Mozilla today released Firefox® 2, a major update to its popular and acclaimed free, open source Web browser. Firefox is developed by an international community of contributors working together under the umbrella of the Mozilla Foundation, a non-profit, public-benefit organization dedicated to improving the Internet experience for people everywhere.

In less than two years, tens of millions of people worldwide have discovered the easier, faster and safer online experience that Firefox provides. Translated into more than 35 languages at its release, Firefox 2 is available in a native language version for more people around the world than any other Web browser.

Firefox 2 is immediately available for Windows, Mac or Linux operating systems as a free download from www.getfirefox.com.

“Firefox 2 delivers the best possible online experience for people today,” said Mitchell Baker, CEO, Mozilla. “The improvements Mozilla has made to the ease of use, performance, and security in Firefox 2 reflect our ongoing, singular focus on meeting the needs of Web users all over the world.”

“File” Permissions in Linux

After you understand it, you realize it can't get any simpler than that
By: Bogdan Radulescu, Editor, Linux Software Reviews
This how-to will try to teach you how to set “file” permissions in any Linux operating system using only the “chmod” command in the CLI. This guide should be pretty straight forward and it might be useful for anyone that isn't very familiar with the chmod command.

There is a saying “In Linux everything is a file” and it refers to the fact that directories, links, block devices and virtually anything is treated as a file in Linux. I told you this because you should know that when someone refers to something as a file, it might not be necessarily so.

Let's start by looking at a directory entry using the ls -l command:
drwxr-xr-x 2 root root 4096 Sep 12 14:58 testdir
-rwxr-x--x 1 root root 0 Sep 11 22:25 testfile

Above is a directory listing and from it we're interested at this point only in the first ten characters that are shown. The first character gives the file type and the ones that follow, the file permissions.

In this example we have the d and - as the first flags for testdir and testfile. The possible file types and the character that designates them are as follows:

regular file -
directory d
symbolic link l
block device b
character device c
socket device s

The following nine entries are in groups of three and show
the permissions for the user, group and the others. The possible permissions for each one are read(r), write(w) and execute(x). Multiplying the three groups with the three permissions for each group, you get the nine entries.

The user controls permissions for the owner of the file, group for all the members in the group that own the file and other is for everyone else.

For our test file, we have the following flags: - rwx r-x --x .This means that it is a regular file that can be read, modified and executed by the user, read and executed by the group but not modifiable and all the other users can only execute it.

With the chmod command we can alter the permissions of a file using two different notation systems:

THE OCTAL SYSTEM: Generally uses a three or four digits to reset the permissions of a file. This system is most commonly used because all the permissions are set every time you what to change something thus excluding the possibility to allow something that is not required.

Example: For setting the permissions for our testfile, I used the command: chmod 751 testfile.

In the octal notations we start with the following digits:

read 4
write 2
execute 1

If we want to assign a read and write permission, we calculate 4+2=6 and use 6 as the digit for setting read and write. For read and execute we have 4+1=5, for a read, write and execute permission we have 4+2+1=7 and so on. The first digit allows us to set permissions for the owner, the second one for the group and the third one for the others. In our example, -rwxr-x--x is 751 and drwxr-xr-x is 755 in the octal system. Another common one would be 644 and in this case, I will let you figure out why. I strongly advise you to make some tries of your own if you want to get the notations right.

I said that you can also use four digits in the octal system but since that's related with SUID and SGID, I will not go into further details.

THE ALPHA SYSTEM: Uses the + and - operators to add and remove permissions. This system is more symbolic so it's often considered easier to learn, but you'll see that this is not necessarily the case and since it leaves room for error, I don't really recommend using it. In the alpha system, the user, group and other is denoted by u, g, o.
Example: The command chmod ugo+x,u+rw testfile appends execute privileges for the user, group and others and read and write for the user.

In the previous sentence, the key word was appends so, if the group also had read and write privileges, they would still remain set for the testfile. If we would like to remove those, we would have to use chmod g-rw testfile to remove them. I hope you understood why the alpha system is not, usually, the best thing to do. There are actually (sometimes) interesting uses for the alpha system and here I could point out that when using the -R, --recursive option with chmod, you'll probably not like to change permissions for all the files from the ground up. This scenario is rarely encountered and I learnt the alpha system only because I had to use it once in a script.

If I'm lucky, I’ve convinced you that knowing how to use the chmod command is very useful in a Linux environment and hopefully, you understood the basics of using it. Practicing a few times, greatly increases the chances to remember how to use it when it will be needed.


12th of September 2006, 18:56 GMT | Copyright (c) 2006 Softpedia |

Linux飞跃在即

(引自http://my.opera.com/boatonsea/blog/show.dml/316728?cid=2101649#comment2101649
作者: 摸鱼儿)

一 成熟少妇Windows终将让位至尊红颜Linux

Windows是铅华正盛美艳可人的风流尤物,她温柔体贴善解人意出得厅堂入得厨房,她着意奉承曲尽于飞她让你拜倒在石榴裙下如痴如醉,她一夕承欢便让你甘心自此沦为奴隶。

Linux 注定是一顾倾城再顾倾国的绝代佳人,她婷婷娉娉豆蔻梢头,一滴露珠落在上面都是种艳绰约的风姿,她从来都是气度雍容,在小荷才露尖尖角时绝不肯迂尊降贵,那时她颇难接近却让人梦魂萦绕。及长,天赋的使命让她洞察人情,金乌玉兔伴她日渐丰满,她的胴体早已是美艳不可方物,却又日胜一日。她似应是天神爱侣,岂会长居人后?

这么说也忒戏谑了点,下面换回貌似更技术一点的口吻。bigsmile

不过,当坊间流传着Suse Linux 10.1 VS Windows Vista的比较时,谁还会觉得易用性——Linux过去最无还手之力的地方,如今没有变天的可能?看,Fedora Core 6又开始发布测试版了。

二 缤纷多彩的发行版良性竞争

听到过有关Linux的最令我费解的一种说法是“发行版太多让人无从选择”,诸如此类。Linux的文化决定了不可能只存在寡头发行商,百花齐放春满园。眷恋着笼子不敢飞向广褒的天空的,绝不是什么值得去照顾的好鸟。发行版的兴盛无论如何不能说是坏处。

三 微软的态度是一种佐证

微软阵营越来越多地试图说服人们,Windows才是好的选择。这恰恰是一种为Linux估值的行为。

四 新版Windows的推出,旧版Windows的失去官方技术支持,是Windows露出了柔软的下腹部。
买一套高配置的新电脑,然后把大部分资源交给Windows?
Intel有过这样的声音:每当速度提高了一倍,比尔就要用去至少一大半。
还要长此以往?

五 不无悲观地估计,Linux在国内的飞跃不但肯定明显晚于国外,而且慢的不是一拍半拍。
希望事实让我认错。