2016年12月19日星期一

Install Intel Bluetooth Driver for AADP (A2DP) Headphone

Many people complains about Windows 7 and its Bluetooth support on AADP (A2DP).

If your Wi-Fi & Bluetooth Dongle is from Intel, you can follow the following steps.

1) Install Intel Bluetooth Driver
Currently I cannot find this on Intel website. This will provide you the Bluetooth driver.
Windows 7: http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=K59N9
Windows 8.1: http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=75M5W
Windows 10: http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=N7VN8
You may need to consult your PC manufacturer for this driver.

2) Install Intel Bluetooth Profile
This will provide you some of the Bluetooth profile that Windows 7 fails to support natively.
(Intel calling it Intel Bluetooth Software.) Including AADP (A2DP, Advanced Audio Distribution Profile), AVRCP (Audio/Video Remote Control Profile), Hands-Free Profile.
https://downloadcenter.intel.com/download/26421/Intel-Wireless-Bluetooth-Software-for-Windows-7-?v=t
DO choose the version that is corresponding to previous Bluetooth driver!
For example, I choose 19.0.1603.630 Bluetooth Driver, and 19.0.1603 Bluetooth Profile!

After installing above two driver, you can find two installed programs in your control pannel.
For example, there are:
1) Intel Wireless Bluetooth 18.1.1607.3129
2) Intel Wireless Bluetooth (patch version 19.11.1639.649) 19.0.1607.0648

1607 indicates the release date of the driver. AND THESE TWO DRIVERS MUST BE RELEASED THE SAME DATE TO AVOID BUGS.

Power on your Bluetooth headset, leave it on paring mode.
On your PC, open Bluetooth device panel, add device, choose your headphone.
After adding your headphone, double click the device icon, in the action bar, click listen to music.


2015年11月15日星期日

Good to know: XPS13 9350 comply with USB-PD standard!

Good to know: XPS13 9350 comply with USB-PD standard! 
So you can charge your laptop with a USB-PD compativle USB-C charger.
Like Google Universal 60W USB-C charger (which is quite enough), or future 3rd charger.
But a regular 5V USB charger won't charge XPS13 9350 at all.
Becuase both voltage and amp are too low.

Reference:
https://www.reddit.com/r/Dell/comments/3rrs8x/usb_typec_charging_xps_13_9350/

Quote:
Q:
I just got my new XPS 13. A Dell sales rep told me I would be able to charge the laptop through the USB-C, so I got this cable http://www.amazon.com/gp/product/B010VFFSL4
When I plug it into a USB charger, I get a "plugged in, not charging" message.
I have used the cable with this http://www.amazon.com/gp/product/B00OQ19QYA , the wall charger that came with the LG G4 and an external battery pack, all with the same message.
Has anyone had any luck charging with USB-C?


A:
Alright, so I made an account finally just so I can answer this question for you and help anyone else out who has been researching about this. I just received my new Dell XPS 13 about 2 weeks ago and before that and up til today I am still doing a lot of research on charging with USB C. It looks like the charger for the Dell XPS 13 is a 45W 19.45V/2.31A charger. That means the charger you use for USB C charging has to be +/- 1V than the standard 19.45V. The amps has to be 2.31A or higher, just as long as it is the proper voltage (and polarity but that's another story and USB does bother with polarity from what I've heard). So in this case, you and me both have to look for a USB TYPE C charger that supports at least 19.45V/2.31A. There is one charger that I know does this...it is the Chromebook Pixel 2 charger. It is 60W at 20V/12V/5V/3A. I ordered one and it will be here on Monday, I wanted to have a universal charger for my laptop and phone (Nexus 6P). Since it supports both outputs for my 6P and XPS 13 I bought it. I got the same issue "plugged in, not charging" when I tried using my Nexus 6P charger on the XPS. I knew it wouldn't work because the charger is 15W at 5V/3A but I just wanted to see what it would say.
I have literally been researching this for weeks, and I think the Pixel 2 charger will work (I do not see why not since it can support 20V/3A charging). I also heard about a MacBook charger being out there but I did not bother to look into it, all I know is that it is less watts but do not know about the volts or amps. I am only worried about issues arising from using USB charging rather than the standard charger, companies usually create their chargers to be the best and most exceptional for the device. Wondering if it'll hurt battery life in the long run.
A little knowledge about Watts, Volts, and Amps: So after much research I found that watts = volts x amps. Volts are the power pushing out of the charger. It is OK to use any wattage as a charger but you have to make sure that the voltage is +/- 1V around the standard for the device requirements. In this case, 19.45V (XPS 13) will be safe with a 20.45V or 18.45V charger. Amps are the amount of power the device actually draws in. In this case we need AT LEAST 2.31A to receive a standard charge for the XPS 13, anything less will cause a slow charge. Same goes with our phones, some chargers output a standard 1A but there are some quick chargers that put out 2.1A, these double the charging speed (I do not know if this is bad for a battery though, nothing ever happened to my Nexus 5). I think the amps are regulated by the XPS so even using a 10A charger would only work at 2.31A being pulled by the XPS.
I won't be sure about this stuff until I receive my Google charger and test it out this week, if it works I may even buy another one. Hope this helps out!
UPDATE: Ok, I just received my Chromebook Pixel 2 charger that I ordered from Google and I can confirm that it does charge my Nexus 6P "rapidly" and it also charges my Dell XPS 13. I plugged in both chargers separately to compare the "time left to charge" and both read the same time so I am assuming the charger is working similar to the Dell charger.
UPDATE 2: I just ran a battery software (batteryinfoview) and I can confirm that the voltage running through the chargers is the same and the estimated full charge time is the same as well. So, the Google Chromebook Pixel 2 charger WILL work to charge the new Dell XPS 13. Hope this helps other people! If you have a new Nexus device or new TYPE C device and also have an XPS 13 get this charger. (20V/12V/5V/3A)
UPDATE 3: Ok so it's been about a week since I have been using my new charger. While it works great on the DELL XPS 13 I am starting to notice some weird stuff when plugging in the pixel charger into my Nexus 6P. The charger registers perfectly on the XPS with a 10 second delay (this is usual). But sometimes when I plug it into my phone it doesn't always display "charging rapidly" sometimes it shows just "charging." I do not want to say I have a faulty charger but I am going to see if Google will send me a replacement just to make sure it is the regulator in the charger and not my phone. I am assuming that since the charger can provide three different outputs of power, the charger gets confused when switching it into my phone sometimes (which is weird because they're both Google products). I even used an app to monitor the amps being pulled from the charger, when it just says "charging" it is pulling about 500mah-1000mah. When it is "charging rapidly" it is pulling 2000mah-2500mah. The rapid charging is ALWAYS supposed to be on because of the 5V/3A output in the Pixel 2 charger (by the way, both the Pixel 2 charger and the Nexus 6P charger provide 5V/3A). I never have this issue while using the charger that came from my phone, considering it only provides 5V/3A compared to the Pixel 2 charger that outputs 20V/12V/5V/3A. I am either going to assume the charger is faulty, or this is just how the chargers are made (not designed well for other devices other than the Chromebook Pixel 2).

2015年11月9日星期一

5 things you need to do after you purchase XPS13 9350/9343

First, Using Dell Update to update Dell Utility, if you would like. Register your PC in order to have 1 year warranty.

Second, right click Start button, choose Manage, navigate to Device Manager, update the driver of Intel Iris Display Adapter, Firmware, Realtek SD Card Reader, Integrated Camera, and maybe any other component you can find updated driver using Device Manager.
Note: Updating firmware and Iris Display driver will resolve issues about screen flickering, hang-up when wake it from Sleep, noisy fan and other potential issue.

Third, Choose a short non-standard TF to SD adapter, to extend you storage. Otherwise, standard SD card cannot fully stuck into the body of XPS13. Suitable TF to SD adapter is about 9mm shorter than standard SD card.


Fourth, get a Bluetooth Mouse to easy your daily use.

Fifth, get a enclouse. A enclouse for iPad Air 2 may (or may out) swallow XPS13 inside but with a fraction out of the mouth. While a regular enclouse for other laptop may be too large. Maybe you can get a official leather suit for your XPS13.

2015年10月23日星期五

你或许不知的秘密,普通USB充电器也可以为MacBook Retina 12"充电

英文版本请点击这里。English version click here.

最近我很好奇一件事情。那就是,既然2015年新款Macbook Retina 12英寸(以下简称MB12)除了音频接口之外,就只有一个USB-C接口,而且兼容USB-PD协议。其标配充电器的输出标识为14.5V 2A (USB-PD) or 5.2V 2.4A (显然电压是有线补的,所以比标准电压略高)。苹果也在其官方网站确认,你可以使用第三方USB-PD兼容充电器为MB12充电 (传送门)。不过显然我关心的不止这一点。

考虑到USB无论怎么发展,其总是要照顾到兼容性的。那么如果使用一个完全普通的USB充电器,搭配USB-A到USB-C的转接线,可否给MB12充电呢?

Apple USB-C 29W 电源适配器. 额定输出: 14.5V@2A(USB-PD) or 5.2V@2.4A
图片来源:ChongDianTou.com

苹果一贯的风格是隐去具体的技术细节(默认情况下这是好事,用户不用想太多)。然而对电子爱好者来说,却没有办法得知具体细节,除非亲自实验。幸运的是,总会有敢于第一个吃螃蟹的人,为我们进行了相关的测试。以下测试来自互联网。

结论先行:你可以用第三方USB充电器为MB12充电,但建议使用USB-PD兼容的充电器。

警告:能充,并不意味着可靠或是安全。你应使用一个USB-PD兼容的,且输出功率足够的充电器 (例如Google的USB-C 60W通用电源适配器)。使用低额定输出功率的电源适配器为MB12充电可能导致电源适配器过热乃至起火。使用假冒伪劣的、不符合国家标准的充电器可能对MB12造成不可挽回的伤害,甚至有电击、起火乃至人身伤害。无论何种情况导致的伤害,我均不承担任何责任。虽然尽力校正和审阅文本,但我并不保证内容全部正确无误。任何测试,自负责任。 


测试一:来自 notquitemainstream.com (英文)

你可以使用谷歌的USB-C 60W通用电源适配器为MB12充电,但是这并不能充的更快,因为MB12只汲取12W的功率。
你可以使用苹果USB-C 29W充电器为谷歌Chromebook充电,代价是较低的充电速度,因为充电器只能输出29W的功率。

左边是: Google Universal USB-C 60W Charger compatile with USB-PD.右边是: Apple USB-C 29W Charger compatile with USB-PD.


测试二:来自 ChongDianTou.com (中文)

你可以使用第三方标准5V USB充电器为MB12充电,但代价是较低的充电速度。
有趣的是,MB12在标准充电和慢速充电时,显示的充电指示图案不同。

使用苹果官方USB-C 29W充电器(兼容USB-PD)充电.
额定输出功率29W,鉴于能量转换效率低于100%,输入功率为31.8W。

使用第三方5V 2.1A USB充电器为MB12充电。(此充电器虽然带USB-C接口但不兼容USB-PD)
Macbook判断其不兼容USB-PD,仅汲取5Vx1A=5W的功率。这有利于保障安全。
鉴于能量转换效率低于100%,输入功率为6.58W。

不同充电模式下,MB12的屏幕指示不同。上:正常充电;下:慢速充电。
(鉴于慢速充电功率不足,在开机状态下电池电量可能不增反降。)

测试三:来自 bbs.feng.com (中文)

这位勇敢的家伙,尝试使用苹果自家的iPhone电源适配器和iPad电源适配器为MB12充电。
结果证明,能充!当然了,速度会有大大的牺牲,同时仅应在应急情况下使用此办法。

使用iPad  5.1V 2.1A电源适配器为MB12充电。
鉴于能量转换效率低于100%,输入功率为13.8W。

使用iPhone  5.1V 1A电源适配器为MB12充电。鉴于能量转换效率低于100%,输入功率为3.2W。
奇怪的是MB12只汲取了5V 500mA的功率,这是最最最保守的充电方案。
由于充电功率太小,恐怕这并不能为一个正在运行的MB12提供有效的充电。

结论:无论如何,USB总是会兼容5V

无论未来USB会多么的先进,为了安全和向后兼容的考虑,USB总还是会兼容5V的。要知道,如果USB电源适配器提供超过5V或者超过1A的输出,电源适配器和用电器一定需要与某种充电协议兼容才行,例如USB BC协议,例如USB PD协议,例如高通快充。电源适配器提供的初始默认输出,一定是5V的。(因为如果不是这么设计的话,很有可能的是你一不小心就把你的设备给烧了。)
当然了,老旧的充电器,其输出功率往往较低,也不兼容什么高级的协议。虽然不推荐在正常情况下,使用输出功率不足的电源适配器为用电器充电,但应急总还是可以的。设想一下此情此景,你出门游玩,却忘记携带你的标配充电器,没电了很着急对不对?没关系,随便找一个通用USB充电器,应急着充一下还是OK的。是不是很酷?
当然了,你也可以购买一个全新的,高额定输出功率,兼容高级充电协议的USB充电器,这样一来,你就可以使用一个充电器,为各种设备充电了呢。

当然了,在可能的情况下,建议使用官方标配的电源适配器。
如果你希望使用其他第三方电源适配器,你最好知道你在做什么。

虽然USB-C接口很小,但我相信这是科技界的一大步!一个接口走天下有木有?!
我想在不远的未来,你出门只需要携带一个全功能USB充电器,就可以为你的任何设备充电了!无论是笔记本电脑、智能手机、平板电脑,或是其他各种电子设备。

MacBook Retina 12" can be charged using normal USB charger!

Chinese version click here. 中文版本(点我 传送门 )。

Recently I was curious about this. Since Macbook Retina 12" use USB Typc-C interface to charge, and the rated supply voltage is 14.5V 2A (USB-PD) or 5.2V 2.4A (clearly output voltage is a little higher for cable compensation),and Apple claims "Your MacBook will charge from USB-C power adapters not manufactured by Apple if they adhere to the USB Power Delivery specification." on this page. So I wondered, whether I can use a normal USB charger plus USB Type-A to USB Type-C adapter to charge MacBook Retina 12" or not.

Apple USB-C 29W charger. Output: 14.5V@2A(USB-PD) or 5.2V@2.4A
Image Source: ChongDianTou.com

Since Apple won't tell you the technical detail of Mac, so there must be some brave guys to test for us. Luckily I found some tests on the Internet.

TL;DR: You can charge Macbook using normal USB charger.

WARNING: Compatible does NOT mean reliable or safety. You should use a USB-PD compatible charger with enough rated output power to charge your Macbook Retina 12" (e.g. Google Universal USB-C 60W Charger).     Charging Macbook Retina 12" using a low power-output charger may result in over-heat in the charger, even fire. Charging Macbook Retina 12" using a fake/conterfeit or low-quality charger may result in danger of electric shock or fire or permanent damage to your MAC.  I TAKE NO RESPONSIBILITY OF ANY POTENTIAL DAMAGE OR ANY INCORRECT IMFORMATION IN ANY CASE. TRY IT AT YOUR OWN RISK.


TEST ONE from notquitemainstream.com (English)

You can use Google Universal USB-C 60W charger to charge your Macbook, but you will NOT benefit from a larger rated power (60W), since Macbook only takes 29W.
You can use Apple USB-C 29W charger to charge Google Chromebook Pixel, but you WILL suffer a lower charing speed, since charger can only output 29W of power.
Left: Google Universal USB-C 60W Charger compatile with USB-PD.
Right: Apple USB-C 29W Charger compatile with USB-PD.



TEST TWO from ChongDianTou.com (Chinese)

You can use a 3rd party Standard 5V USB charger to charge your Macbook Retina 12", but you WILL suffer a lower charing speed.
An intersting fact was showed. While your Mac is in NORMAL CHARGE mode, the charge icon is different from that while charging in SLOW MODE.

Charging using offical USB-PD compatible USB-C 29W charger.
Since power conversion efficiency is lower than 100%, so input power is 31.8W.

Charging using a 3rd party USB 5V 2.1A charger with USB-A & USB-C ports.
(USB-PD not compatible, JUST normal charger plus a USB-C port)
Macbook cannot determine this 3rd charger, so it take only 5Vx1A=5W.
5V 1A is kind of standard spec, in order to insure your safety.
The power efficiency is lower than 100%, so input power is 6.58W.

Here is Mac icon for NORMAL CHARGING and SLOW CHARGING.

TEST THREE from bbs.feng.com (Chinese)

This brave man try using iPhone or iPad charger to charge his/her Macbook Retina 12". It turns out that you can charge Macbook Retina 12" with a normal USB charger which is not compatible with USB-PD.

Charge Macbook 12" using iPad 5.1V 2.1A charger.
Since power conversion efficiency is lower than 100%, so input power is 13.8W.

Charge Macbook 12" using iPhone 5.1V 1A charger.
Strange enough Macbook only take 5V 500mA. Maybe the iPhone charger is too old for her to recognize.
Since power conversion efficiency is lower than 100%, so input power is 3.2W.
Anyway this power is too low, and dfinitely will not effectively charge Macbook while OS X is still running.

CONCLUSION: USB WILL ALWAYS COMPATIBLE WITH 5V FOR BACKWARD COMPATIBILITY

No matter what USB will advance in the future, for safety, for backward compatibility, USB will always compatible with 5V. Remember if USB output a voltage other than 5V or a current higher than 1A, the host and client must comply with some sort of standard, like USB Battery Charging, or USB Power Delivery, or Qualcomm Quick charge 1.0/2.0/3.0. THE INITIAL AND DEFAULT PROFILE WILL ALWAYS BE 5V. If it is not designed like that, you can easily burn your device into fire. Of course, old charger rated with lower outut power, and you should not use a low-power charger to charge a power-demanding device in the normal case. But imagine, that you didn't bring your charger along with you, and don't worry, you can charge it using a normal USB charger to help you out. That's wonderful. Also, you can buy a new full-spec high-output-power universal USB charger for any USB devices. 

Of course you are recommended to use official charger.
If you want use any other charger, you should know what you are doing.

IT IS A BIG STEP, THAT ONE PORT WILL SUPPORT ANYTHING!
Not far in the future, you will need just a single full-spec USB charger to charge your notebooks, mobile phones, tablets, power banks, and more.

2015年4月7日星期二

Solution for Tower Cube (3x3x4) and Rex (8-axis) Cube

The solutions herein come from Internet, and their copyright belongs to respective (original) author(s).

Solution for Tower Cube (3x3x4):

Re-blog from http://solutions.spacebrew.com/tower/ (Original URL is invalid now.)

Phase 1: Solve the top and bottom layer corners.

  1. First put the corners in their correct layer. To correct the final corners, hold the puzzle so that the incorrect cubies are at UFR and DFL, then perform:
    R D R
  2. Now examine the side colors of the top layer corners to see which cubies need to be swapped to make the sides match. At most one pair needs to be swapped.
  3. To swap adjacent corners, put the corners at the UFL and UFR, and perform:
    F U' F U F  ·  R U R U' R
  4. To swap diagonal corners, put the corners at the UFR and UBL, and perform:
    R U2 F U R U2  ·  F U' R U2 F
  5. The top layer corners should now be solved. Turn over the puzzle and repeat.

Phase 2: Solve the top and bottom layer edges.

  1. First put the edges in their correct layer. Put unsolved cubies in UFM and DFM, and perform:
    U2 R F R U2 R F R
  2. Repeat step 1 until all the edges are in their correct layers.
  3. Now examine the side colors of the top layer edges to see which cubies need to be swapped to make the sides match the corners.
  4. To swap adjacent edges, put the edges at the front and the right, and perform:
    R D B  ·  R U2 R U2 R U2  ·  B D' R
  5. To swap opposite edges, put the edges at the front and the back, and perform:
    R U2 R U2 R
  6. Repeat until the top layer edges are be solved.
  7. Turn over the puzzle and repeat.

Phase 3: Solve the middle layer edges.

  1. First put the edges in their correct layer. Put bad u edge at FR and bad d edge at FL, and then perform:
    R d R
  2. Repeat step 1 until all the edges are in their correct layers.
  3. Turn u to put at least two of its edges correct. At most one pair needs to be swapped.
  4. To swap adjacent edges, put the bad edges at FR and FL and perform:
    u' R u R  ·  d' R d R  ·  F d F
  5. To swap diagonal edges, put the bad edges at FR and BL and perform:
    R u2 F u' R  ·  u d R d' F u2 R u'
  6. The u layer edges should now be solved. Turn over the puzzle and repeat for the d layer.

Phase 4: Solve the middle layer centers.

  1. Perform one of the following to swap two cubies:
    • To swap Bu and Lu, perform: R F L d L F R u

    • To swap Bd and Ld, perform: R F L u L F R d

    • To swap Bd and Lu, perform: u R F L d L F R

    • To swap Bu and Ld, perform: d R F L u L F R

    • To swap Bu and Fu, perform: R F L d2 L F R u2

    • To swap Bd and Fd, perform: R F L u2 L F R d2

    • To swap Bd and Fu, perform: u2 R F L d2 L F R

    • To swap Bu and Fd, perform: d2 R F L u2 L F R
  2. Repeat until the centers are all solved.

Solution for Rex Cube (Video):

First, Solve Dino Cude

https://www.youtube.com/watch?v=noAQfWqlMbk

Second, Solve Rex Cude

https://www.youtube.com/watch?v=noAQfWqlMbk

2015年4月5日星期日

How to perform a TCP ping

Normal ping using ICMP, not TCP nor UDP.

But sometimes we want to check whether a port is open or not.
For example I establish a new service on my server but find out client cannot get access.
That's time when we should use TCP ping.

So how can we perform TCP ping?

If you are using Windows, you can use tcping, a simple CLI tool brought to you by Eli Fulkerson, which can be downloaded here.

If you are using Linux, then you have multiple useful choices.
The first is nmap.You can use it like this
nmap -p 80 onofri.org
The second is tcpping brought to you by Richard. Click here for tutorial.
There are some other tool can perform TCP ping too, e.g. Hping, Paping.

If you'd prefer web application, there are many websites that offer a bunch of Network tesing tool such as ping, tcping, tracert, etc. Just Google it.

2015年3月28日星期六

Baidu Analytics' JavaScript was "hijacked" to fire-up DDoS attack against Github

Github claimed on Twitter, that Github.com/ny-times and Github.com/greatfire are under massive DDoS attack. It is found that the attack source is from everywhere around the globe. And many netizens pointed out that the attack is becaused of a malicious JS, which is hosted on Baidu.

Why? 

Because so many websites in Chinese use Baidu Analytics or Baidu Adsense (substitution of Google Analytics and Google Adsense), then those websites all contains JavaScript from Baidu in order to funtions properly. And then the javascript was hi-jacked. I don't know whether is hi-jacked or not. I mean, I don't know the malicious JS is deployed by either a hacker or actually Baidu itself. Anyway, since the JS is malicious, when a user open such a webpage, and load the JS background automatically, then the user's PC is fire up a DDoS attack against Github.

It is not the first time Github's the victim. Github has been under DDoS attack originated from China for many times, and Github has been under MITM Attack for at least one time. The reason is that, there are projects and webpages hosted on Github, either to help Chinese netizens get aware of China Internet Censorship, or reveal news which is banned in China, or teach them how to bypass the censorship firewall (called GFW).

Github is kind of like Wikipedia. They consider freedom of speech as a basic human right. And they don't want to modify the Terms of Use to forbit these usage, even these projects are only cared by Chinese netizens or actually irrelevant for software development, even these projects and webpages result in A LOT OF attack against Github.

And it is not the first time Baidu was used as attack source. Back in 2005, the same trick, malicious JS, which is used by numerous websites using Baidu Analytics/Adsense, and DDoS, against 8848.com .Of course, Baidu denied the accusation, they said they did not envolved in the attack.

Just several days before, Google posted a blog that they've caught CNNIC generating fake digital certificate which can be used for MITM attack. And according to Wikipedia, CNNIC is a NGO. But who will buy it? Obviously CNNIC is not NGO, it is under administrartion of Internet Security and Informatization Leading Group Office of CPC and National Internet & Information Technology Office. And this so called NGO, as the Internet Authority of China, is responsible for the Notorious Malware Chinese Web Browsing Helper, which is usually installed on PC's without awareness of user and is very hard to uninstall. Even CNNIC claims himself as NGO and its Root CA is pre-installed on most Operating Systems and Browsers, I WILL NEVER EVER BUY IT. I DO NOT TRUST CNNIC.

At last, I recommend a website, which can allow netizens to observe the DDoS attack war all around the globe. That is http://www.digitalattackmap.com/

Below is a living demo showing the war record of Sep.15th,2014. (Maybe 14th because of timezone.) BTW, China is acting more as attack source than as attack victim.

2015年3月18日星期三

New Domain for my Blog: joeyao.chou.space

Today I register a domain called chou.space.
So from now on, joeyao.chou.space becomes new home for my blog.
Of course, the blog is still hosted on Blogger.

So kind is Google, as a free user of Blogger, I can add HTML/Java Widget, use my own domain name. But since Google Reader and Google Code are all shut down, I'm a little afraid that one day, Blogger will be shut down. If that comes true, we will lose a wonderful free blog hosting service.

Go go go, Google!

今天新注册了域名 chou.space
然后呢,joeyao.chou.space 成为目前此Blogger博客的地址。
话说Google真也大方,Blogger允许添加Java组件,允许使用自己的域名,而且这一切都是免费的。考虑到Google Reader和Google Code都被关闭了,我还真是担心万一有一天Google也要关闭Blogger呢。那样的话恐怕天底下再找不到一个这个好的免费博客站点了。

为什么我说Blogger好?
1、免费
2、可以添加Java组件,免费
3、可以使用自己的域名,免费

当然了缺点也是有的,模板太少,不好看。写文章不如Wordpress。
Wordpress.com提供免费博客空间,但使用自己的域名是要收费的,而且不支持Java组件。

目前域名只是一时脑热买下来的。
暂时没什么好想法把网站做成什么样子。
所以目前只是作为博客的个性域名。

2015年1月24日星期六

我是一块硬盘,我是一根内存

转载自互联网,原作者不详,特此感谢。

我是一个硬盘

在一个普普通通的台式机里工作。别人总认为我们是高科技白领,工作又干净又体面,似乎风光得很。也许他们是因为看到洁白漂亮的机箱才有这样的错觉吧。其实象我们这样的小台式机,工作环境狭迫,里面的灰尘吓得死人。每天生活死水一潭,工作机械重复。跑跑文字处理看看电影还凑活,真要遇到什么大软件和游戏上上下下就要忙的团团转,最后还常常要死机。
我们这一行技术变化快,差不多每过两三年就要升级换代,所以人人都很有压力而且没有安全感。每个新板卡来的时候都神采飞扬踌躇满志,几年光阴一过,就变得灰头土脸意志消沉。机箱里的人都很羡慕能去别的机器工作。特别是去那些笔记本,经常可以出差飞来飞去,住五星级的酒店,还不用干重活,运行运行word,上网聊聊天就行了。
但我更喜欢去那些大服务器,在特别干净明亮的机房里工作。虽然工作时间长点,但是福利好,24小时不间断电ups,而且还有阵列,热插拔,几个人做一个人的事情,多轻松啊。而且也很有面子,只运行关键应用,不象我们这里,什么乱七八糟的事情都要做。不过我知道,那些硬盘都很厉害,不是SCSI,就是 SCSIII Fibrechannel,象我这样IDE的,能混到工作站就算很不错了。
我常常想,当年在工厂里,如果我努力一下会不会也成了一个SCSI?或者至少做个笔记本硬盘。但我又会想,也许这些都是命运,不过我从不抱怨。内存就常常抱怨,抱怨他们主板部门的复杂,抱怨他如何跟新来的杂牌内存不兼容,网卡和电视卡又是如何的冲突。
我的朋友不多,内存算一个。 他很瘦的而我很胖,他动作很快,而我总是很慢。我们是一起来这台机器的,他总是不停地说,而我只是听,我从来不说。
内存的头脑很简单,虽然英文名字叫Memory,可是他什么Memory都不会有,天大事睡一觉就能忘个精光。我不说,但我会记得所有的细节。他说我这样忧郁的人不适合作技术活,迟早要精神分裂。我笑笑,因为我相信自己的容量。
有时候我也很喜欢这份工作,简单,既不用象显示器那样一天到晚被老板盯着,也不用象光驱那样对付外面的光碟。只要和文件打交道就行了,无非是读读写写,很单纯安静的生活。直到有一天……
我至今还记得那渐渐掀起的机箱的盖子,从缺口伸进来的光柱越来越宽,也越来越亮。空气里弥漫着跳动的颗粒。那个时候,我看到了她。她是那么的纤细瘦弱,银 白的外壳一闪一闪的。浑身上下的做工都很精致光洁,让我不禁惭愧自己的粗笨等到数据线把我们连在一起,我才缓过神来。开机的那一刹那,我感到了电流和平时的不同。后来内存曾经笑话我,说我们这里只要有新人来,电流都会不同的,上次新内存来也是这样。我觉得他是胡扯。我尽量的保持镇定,显出一副很专业的样子,只是淡淡的向她问好并介绍工作环境。
慢慢的,我知道了,她,IBM-DJSA220,是一个笔记本硬盘,在老板朋友的笔记本里做事。这次来是为了复制一些文件。我们聊得很开心。她告诉我很多旅行的趣闻,告诉我坐飞机是怎么样的 坐汽车的颠簸又是如何的不同,给我看很多漂亮的照片、游记,还有一次她从桌子上掉下来的历险故事。而我则卖弄各种网上下载来的故事和笑话。
她笑得很开心。
而我很惊讶自己可以说个不停。
一个早晨,开机后我看到数据线上空荡荡的插口。她一共呆了7天。后来,我再也没有见过她。我有点后悔没有交换电子邮件,也没能和她道别。不忙的时候,我会 一个人怀念伸进机箱的那股阳光
我不知道记忆这个词是什么意思,我有的只是她留下的许多文件。我把它们排的整整齐齐,放在我最常经过的地方。每次磁头从它们身上掠过,我都会感到一丝淡淡的惬意。
但我没有想到老板会要我删除这些文件。我想争辩还有足够的空间,但毫无用处。于是,平生第一次违背命令,我偷偷修改了文件分配表。然后把他们都藏到了一个秘密的地方,再把那里标志成坏扇区。不会有人来过问坏扇区。而那里,就成了我唯一的秘密,我常常去看他们,虽然从不作停留。
日子一天一天的重复,读取写入,读取写入……我以为永远都会这样继续下去,直到一天,老板要装xp却发现没有足够的空间。他发现了问题,想去修复那些坏扇区。我拒绝了。很快,我接到了新命令∶格式化。
我犹豫了很久 ……………………
track 0 bad,disk unusable

我是一条内存

我在一台台式电脑里工作,但是我记不得我是从哪里来的,是什么牌子,因为我健忘。我的上司是cpu大哥,他是我们的老大。都说他是电脑的脑子,可是我看他的脑子实在是太小了,比我还要健忘。每天他总是不停的问我,某某页某某地址存的是什么?我总是不厌其烦的告诉他,可是不出一秒钟他又忘记了,又要问一遍,一次我说大哥你烦不烦,你就不能记住点有用的东西?他说“内存兄弟,我有苦衷啊,每天都在不停地做题,头晕眼花的,我也难啊。”
其实我不愿意跟他计较,因为他脑子小,思维也很简单。虽然说他是我的上司,可是每次睡觉醒来,他连要干什么都不记得了,总是急急忙忙地找BIOS兄弟,“嘿,哥们,今天干什么来着”。bios总是很不耐烦地把每天必做的工作说一遍,然后就去睡觉了。接下来就轮到我和C哥瞎忙了。
在机箱里的兄弟中,我最喜欢硬盘。他脑子大,记得东西多,而且记得牢。他说话的速度很慢,而且很少说错,这说明他很有深度,我这么感觉。CPU也这么想,不过他很笨,每次都忘了硬盘是谁。开机自检的时候总要问∶“嘿,那家伙是谁?”
“ST!”我总要重复一遍。
硬盘很喜欢忧郁,我觉得象他这样忧郁的人不适合做技术活,迟早会精神分裂的,但是他不信。
其实睡着的时候我总是把几乎所有的东西都忘记掉,但是我从来都不会忘记朋友。有一块地方叫做CMOS,那是我记忆的最深处,保存着硬盘、光驱的名字。有些东西应该很快忘掉,而有些东西应该永远记得。我在梦中总是这么想着。
BIOS是一个很奇怪的家伙,他老是睡觉,但是却总是第一个醒过来。让我们自检,启动,然后接着睡觉。我知道如果我在CMOS里头把BIOS Shadow选项去掉,他就睡不成了,但是看着他晕晕乎乎的样子,也就不忍心这么做了。他对人总是爱搭不理,没有什么人了解他。但是这次硬盘恋爱的事,却使我重新认识了他。
那是很久以前的事了,机箱里似乎来过一块笔记本硬盘,很可爱,说实话我也喜欢她。不过现在除了记得他可爱,别的都忘记了。这就是我比硬盘幸运的地方,我把所有应该忘记的都忘记了,但是他却什么都记得。
自从笔记本硬盘走了之后,硬盘就变得很不正常。每次他的磁头经过一些地方的时候,我们都能感觉到电流很不正常。</D
“硬盘这是怎么了?”我问CPU。
“谁是硬盘?”
我就知道和CPU没有办法交流,倒是bios没好气地说∶“那个傻瓜恋爱了”。我不知道什么是恋爱,因为我记不住东西,似乎有一些人或者事在我生命中留下过痕迹,但是我都轻率地把他们忘记了。
BIOS对我说∶“对你来说记忆太容易了,所以你遗忘得更快,生命中能够永刻的记忆都带着痛楚。”我不懂,但是我知道BIOS曾经被刷写过,那时他很痛,象要死了一样。我的记忆是轻浮的,不象他们……我很羡慕他们,因为他们拥有回忆,而我们有,从此我也学会了忧郁,因为我在CMOS里面写下了“忧郁”两个字。
硬盘一天比一天不对劲,终于有一天,CPU对问说∶“下条指令是什么来着?” 我一看,吓了一跳∶“FORMAT”
“是什么?”CPU很兴奋,这个没脑子的家伙。
我还是告诉了他。我不知为什么这么做。
硬盘犹豫了很久,终于说了一句 Track 0 bad,Disk unusable。
电停了,很久很久,我在黑暗中数着时钟……
一个月后硬盘回来了,也许最后的挣扎也没有使他摆残酷的命运,他被低格了。他什么也不记得了,如同一个婴儿,我们很难过,但是这未必不是一件好事,他以后不用痛苦了。
为了恢复数据,笔记本硬盘回来了。“Hi,ST”,她说,“你不认识我了?”硬盘没有说话,似乎低格对他的伤害很大。过了一会,他说∶“对不起,好象我们没有见吧……”。
笔记本硬盘显得很伤心,我能感觉到她带泪的电流。“想不到连你也这么健忘”。
“哦……”。硬盘没有回答。
我很难过,笔记本硬盘的心里依然记着他,他却把一切都忘了,而那正是他最不希望忘却的。究竟是幸运,还是痛苦,我说不上来,只是觉得造化弄人,有一种淡淡的悲凉。
这时从BIOS传来一阵奇怪的电流,我感觉到硬盘的表情在变化,由漠然到兴奋,由兴奋到哀伤,由哀伤到狂喜……“IBM,你回来了……”。
……
后来BIOS对我说,其实他并没有睡觉,自从硬盘把那些文件藏起来以后,他就猜到会有这样的结局,于是偷偷地把其中一些文件放到了备份里。“幸好我是DUAL BIOS,虽然藏得不多,还足够让他想起来……”。
我想BIOS保存这些东西的时候一定很疼,当我问他“为什么这么做”时,BIOS轻描淡写的说∶“呵呵,我们是朋友嘛”。
嗯,朋友,永远的朋友