A reason I like Sprint is that they are aware of (the future market of) Linux.
See the check mark on the top left of the screenshot below. On most American wireless carriers' website, you won't even see a box for Linux.
According to this Sprint official doc, Sprint has been supporting Linux for USB wirless Internet modem since Oct 2006 (because they mentioned Ubuntu 6.10).
I am gonna do something to support Linux via subscribing Sprint.
Well, I also wanna help T-mobile in the battle against AT&T, by canceling all 4 lines in my AT&T family plan and turn to T-mobile. We, as consumers, need to do something to prevent monopoly from building up.
2012-02-26
2012-02-25
AMD CPUs, the choice for bioinformatics research
I have heard from many people that though Intel CPUs out-perform AMD CPUs on benchmarks, it's the opposite way in practice.
And I have noticed this greatly in my bioinformatics research. For researches needing a lot of string operations, AMD CPUs are much much faster.
I just benchmarked on a Python script which mainly computes the Hamming distance between two strings, of lengths between 18 to 28 characters.
The Intel Xeon Box:
CPU: Xeon X5660 @ 2.8 GHz (Six-core, TurboBoost @ 3.2 Ghz)
OS: Red Hat Enterprise Linux 6 64-bit, Linux kernel 2.6.32-220.4.2
RAM: 96 G (I assume only 48GB is accessible by one of the two CPUs in the box)
The AMD Phenom Box:
CPU: Phenom II 1090T @ 3.2 Ghz (Six-core, TurboCore @ 3.6 Ghz)
OS: Ubuntu Linux 11.10 Server 64-bit, Linux kernel 3.0.0-15
RAM: 16 GB
According to CPUBenchmark.net, the Xeon X5660 (score 8557) out-performs the Phenom II 1090T (score 5978) by around 30%. Not to mention that the Xeon box has a much faster SAS hard drive while the Phenom box has a regular SATA hard drive - a bottleneck of the benchmark script is hard drive speed. I used Python2.6 for both. Only one user thread, my script, is running on each box - so I assume TurboBoost and TurboCore are both tuned on automatically.
Time elapsed and prices (the lower the better):
Xeon Box: 17 minutes @ $1,200
Phenom Box: 15 minutes @ $180
I think you have got my idea, considering the price difference.
And I have noticed this greatly in my bioinformatics research. For researches needing a lot of string operations, AMD CPUs are much much faster.
I just benchmarked on a Python script which mainly computes the Hamming distance between two strings, of lengths between 18 to 28 characters.
The Intel Xeon Box:
CPU: Xeon X5660 @ 2.8 GHz (Six-core, TurboBoost @ 3.2 Ghz)
OS: Red Hat Enterprise Linux 6 64-bit, Linux kernel 2.6.32-220.4.2
RAM: 96 G (I assume only 48GB is accessible by one of the two CPUs in the box)
The AMD Phenom Box:
CPU: Phenom II 1090T @ 3.2 Ghz (Six-core, TurboCore @ 3.6 Ghz)
OS: Ubuntu Linux 11.10 Server 64-bit, Linux kernel 3.0.0-15
RAM: 16 GB
According to CPUBenchmark.net, the Xeon X5660 (score 8557) out-performs the Phenom II 1090T (score 5978) by around 30%. Not to mention that the Xeon box has a much faster SAS hard drive while the Phenom box has a regular SATA hard drive - a bottleneck of the benchmark script is hard drive speed. I used Python2.6 for both. Only one user thread, my script, is running on each box - so I assume TurboBoost and TurboCore are both tuned on automatically.
Time elapsed and prices (the lower the better):
Xeon Box: 17 minutes @ $1,200
Phenom Box: 15 minutes @ $180
I think you have got my idea, considering the price difference.
Python 2.6 vs. Python 2.7: speed aspects
I just noticed that Python 2.6 is much slower than Python 2.7.
A script which basically computes Hamming distance between two strings, took 10 minutes in Python 2.7 but 15 minutes in Python 2.6.
I tested on the same box, using the same script and data.
You may test another benchmark http://code.activestate.com/recipes/499304-hamming-distance/ and tell me your discovery on Python 2.6 and 2.7.
A script which basically computes Hamming distance between two strings, took 10 minutes in Python 2.7 but 15 minutes in Python 2.6.
I tested on the same box, using the same script and data.
You may test another benchmark http://code.activestate.com/recipes/499304-hamming-distance/ and tell me your discovery on Python 2.6 and 2.7.
2012-02-22
What intelligence is: thoughts inspired by dolphins
I have always been thinking about what intelligence is - because my research is about artificial intelligence. Basically, what do we really mean by the word ``smart''?
I had too much pizza for dinner today. Too sleepy, couldn't work. So I ended up watching PBS. PBS was playing Nature. The episode was called Ocean Giants, about dolphins and whales.
One thing remarkable I saw was dolphins in Florida hunting fish in shallow water. A female dolphin used her tail to stir mud to form a V-shape mud trap. Fish got trapped had nothing to do but jumping. Then dolphins on the other side of the trap just opened their mouths and enjoyed fish.
Then I said, wow, this was really smart. And this technique has been passed in dolphins for generations.
So, i came up with a definition to ``intelligence'' that I had never thought about. Intelligence is the ability to use the environment for survival. Of course, this definition wouldn't be very sufficient and necessary. But I think it fits many cases where we use the word ``smart.'' Let's see a bad example. In movies, a lot of stories are about kids being kidnapped. ``Smart'' kids always escape.
One big flaw of this definition is that survival is not the only reason that human exercise intelligence. For example, we wanna know when and how the universe began. This does not have a strong and direct connection to survival - that's why most people don't always think about it.
So, why do we think? Besides for survival.
I had too much pizza for dinner today. Too sleepy, couldn't work. So I ended up watching PBS. PBS was playing Nature. The episode was called Ocean Giants, about dolphins and whales.
One thing remarkable I saw was dolphins in Florida hunting fish in shallow water. A female dolphin used her tail to stir mud to form a V-shape mud trap. Fish got trapped had nothing to do but jumping. Then dolphins on the other side of the trap just opened their mouths and enjoyed fish.
Watch Dolphin Mud Walls on PBS. See more from Nature.
Then I said, wow, this was really smart. And this technique has been passed in dolphins for generations.
So, i came up with a definition to ``intelligence'' that I had never thought about. Intelligence is the ability to use the environment for survival. Of course, this definition wouldn't be very sufficient and necessary. But I think it fits many cases where we use the word ``smart.'' Let's see a bad example. In movies, a lot of stories are about kids being kidnapped. ``Smart'' kids always escape.
One big flaw of this definition is that survival is not the only reason that human exercise intelligence. For example, we wanna know when and how the universe began. This does not have a strong and direct connection to survival - that's why most people don't always think about it.
So, why do we think? Besides for survival.
2012-02-18
PySurfer returns annotation labels from 0 to 35
I lately started using PySurfer to read FreeSurfer Annotation files. The function I use is
If you are using the same function, please note that, by default (
I looked at the source code of the function
read_annot() in io.pyIf you are using the same function, please note that, by default (
orig_ids=False), labels returned by this function range from 0 to 35, instead of 1 to 36. It does NOT really return labels, which are big numbers in the central column below, but their indexes in C or Python way (not MATLAB way!). read_annot returns | Labels in a .annot file | meaning |
|---|---|---|
0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 0 1639705 2647065 10511485 6500 3294840 6558940 660700 9231540 14433500 7874740 9180300 9182740 3296035 9211105 4924360 3302560 3988500 3988540 9221340 3302420 1326300 3957880 1316060 14464220 14423100 11832480 9180240 8204875 10542100 9221140 14474380 1351760 6553700 11146310 13145750 2146559 | 'unknown' 'unknown' 'bankssts' 'caudalanteriorcingulate' 'caudalmiddlefrontal' 'corpuscallosum' 'cuneus' 'entorhinal' 'fusiform' 'inferiorparietal' 'inferiortemporal' 'isthmuscingulate' 'lateraloccipital' 'lateralorbitofrontal' 'lingual' 'medialorbitofrontal' 'middletemporal' 'parahippocampal' 'paracentral' 'parsopercularis' 'parsorbitalis' 'parstriangularis' 'pericalcarine' 'postcentral' 'posteriorcingulate' 'precentral' 'precuneus' 'rostralanteriorcingulate' 'rostralmiddlefrontal' 'superiorfrontal' 'superiorparietal' 'superiortemporal' 'supramarginal' 'frontalpole' 'temporalpole' 'transversetemporal' 'insula' |
I looked at the source code of the function
read_annot. There may be a potential problem. Sometimes, people use 0 instead of 1639705 to mark unknown vertexes in .annot files. But read_annot won't distinguish the two as it will return the same value 0.
2012-02-16
A bad Micro$oft user interface example: Wi-Fi indicator
by Forrest Sheng Bao
I believe Microsoft has a long history of designing bad user interface. And they never know they have that problem. I just wanna give you an example, of a very important function. The time span is kinda long, from Windows 7 (maybe even as early as Windows Vista) to current beta version of Wndows 8.
Here is the snapshot I wanna crticize.
You see the stupid part in their UI design? To a network that has excellent signal strength (5-bar TTUnet here), indicator in the system tray and the indicator in the Wi-Fi list use two different color themes. If they use the same color theme, we would see 5 green bars on the Wi-Fi indicator in system tray. But we cannot. Stupid Micro$oft used two almost opposite color themes. Do you think gray is closer to white than green?
I noticed this problem on Windows 7 - didn't get a chance to even install Vista on any of my testbeds. Sadly, Microsoft hasn't fixed this problem in Windows 8 Developer Preview.
I cannot see what are the new underlying technology is been made into every new version of Windows after Windows 2000. All I see, are bad UIs introduced. They look fancy but not as so when you use them.
I believe Microsoft has a long history of designing bad user interface. And they never know they have that problem. I just wanna give you an example, of a very important function. The time span is kinda long, from Windows 7 (maybe even as early as Windows Vista) to current beta version of Wndows 8.
Here is the snapshot I wanna crticize.
You see the stupid part in their UI design? To a network that has excellent signal strength (5-bar TTUnet here), indicator in the system tray and the indicator in the Wi-Fi list use two different color themes. If they use the same color theme, we would see 5 green bars on the Wi-Fi indicator in system tray. But we cannot. Stupid Micro$oft used two almost opposite color themes. Do you think gray is closer to white than green?
I noticed this problem on Windows 7 - didn't get a chance to even install Vista on any of my testbeds. Sadly, Microsoft hasn't fixed this problem in Windows 8 Developer Preview.
I cannot see what are the new underlying technology is been made into every new version of Windows after Windows 2000. All I see, are bad UIs introduced. They look fancy but not as so when you use them.
2012-02-10
Nanking: The city I was born and grown up
I just came across a documentary called Nanking (2007) on Netflix, about Nanking Massacre during Japanese occupation in WWII. That was the city I was born and grown up in. In the end, the movie showed some street views of modern Nanking and brought up my memory.
When I was at school there, seldom was I told about how those Westerners protecting Chinese. I didn't know they saved 250, 000 lives there. (In contrasted, Japs killed 300,000 people there.)
If the Jewish people never forget Schindler, Chinese should never forget those who saved us during the Japanese occupation.
When I was at school there, seldom was I told about how those Westerners protecting Chinese. I didn't know they saved 250, 000 lives there. (In contrasted, Japs killed 300,000 people there.)
If the Jewish people never forget Schindler, Chinese should never forget those who saved us during the Japanese occupation.
2012-02-07
SSH log-in without password
SSH has a cool feature that you can use your security key to authenticate rather than your password. In this way, you don't have to enter password all the time. Here is how you can do that.
- Run
ssh-keygen
command on your Shell/Terminal. Follow the instructions. It will generate your public key and private key pair. - Run
ssh-copy-id user@host
to send your public key to the host. - Now try to connect to the server and you should not be asked for password again.
2012-02-06
Inconsistent reasoning on abortion
For years, I don't understand how many hard-core anti-abortion people think. I feel that some of them use inconsistent reasoning to convince themselves. At least it is true for Sen. Ron Paul, according to his CNN interview with Piers Morgan lately. I cannot see consistent logical reasoning from the conversation below.
Stop showing off your high moral standard by ignoring facts and beating around the bush! You at least need some probabilistic reasoning for non-deterministic problems.
Here is the interview.
What's my opinion to abortion? I don't know. I believe this is the only honest answer.
It's not easy to choose your side on this issue, unlike choosing a restaurant for lunch. In some cases you have to make that painful choice, e.g., honest rapes. But from the bottom of my heart, killing a baby is really not what I feel comfortable to do.
- Morgan: So life doesn't begin at conception?
- Paul: Life does begin at conception.
- Morgan: Then you will be taking a life. (Paul was talking about giving the woman a shot of estrogen if she goes to emergency room immediately after the rape)
- Paul: Well, you don't know if you're taking a life either, because this is an area that is -- but to decide everything about abortion and respect for life on this one very, very theoretical condition, where there may have been a life or not a life.
Stop showing off your high moral standard by ignoring facts and beating around the bush! You at least need some probabilistic reasoning for non-deterministic problems.
Here is the interview.
What's my opinion to abortion? I don't know. I believe this is the only honest answer.
It's not easy to choose your side on this issue, unlike choosing a restaurant for lunch. In some cases you have to make that painful choice, e.g., honest rapes. But from the bottom of my heart, killing a baby is really not what I feel comfortable to do.
2012-02-05
Oil Rush: a strategy game on Linux with stunning graphics
by Forrest Sheng Bao http://fsbao.net
Never had I written a review for any game. But, I am gonna do it for the first time - because the game Oil Rush is full of awesomeness.
First, it runs on Linux. It can be installed via Ubuntu Software Center (USC). I randomly came across this game when I saw its promotion in USC yesterday.
Second, the graphics will blow you away. The reason I took a look at this game yesterday is because of the screenshots at USC. I said ``wow, this is a game on Linux?'' It looked made by Blizzard!
But I didn't buy this game coz it would cost me $20 - I am cheap. And I wouldn't have a big chunk of time to play it.
The team has a few HD videos on their website. Take a look. And, I think another reason for using Windows has just been eliminated.
http://oilrush-game.com/media/videos/
PS: Because of this game, I just knew a game distribution platform (e.g., Steam) on Linux called Desura.
The team made Oil Rush is from Russia and the steam made Desura is from Australia.
Never had I written a review for any game. But, I am gonna do it for the first time - because the game Oil Rush is full of awesomeness.
First, it runs on Linux. It can be installed via Ubuntu Software Center (USC). I randomly came across this game when I saw its promotion in USC yesterday.
Second, the graphics will blow you away. The reason I took a look at this game yesterday is because of the screenshots at USC. I said ``wow, this is a game on Linux?'' It looked made by Blizzard!
But I didn't buy this game coz it would cost me $20 - I am cheap. And I wouldn't have a big chunk of time to play it.
The team has a few HD videos on their website. Take a look. And, I think another reason for using Windows has just been eliminated.
http://oilrush-game.com/media/videos/
PS: Because of this game, I just knew a game distribution platform (e.g., Steam) on Linux called Desura.
The team made Oil Rush is from Russia and the steam made Desura is from Australia.
Subscribe to:
Posts (Atom)







