Last weekend, after came back company from camp with my colleagues, I suddenly found that I lost my wallet. I asked my colleagues to help me to contact the driver who drived the car we used to go 'cause I think I dropped it on the car. A few hours later, I had the answer that he could not found it. This afternoon he contacted us and informed that he found the wallet(!). And now I have it here. "Thanks the driver!"
But I still lost 20.000 wons and 5 dollars while I'm sure that my wallet contains at least 40.000 wons and 5 dollars. Luckily, I moved all money from my check card to another bank account. I don't want to imagine what will happen then if somebody will use it and I will loose all money. And actually, I have something more than the money inside the wallet.
Loosing 20.000 wons (about 20 dollars) and 5 dollars is very cheap. A lesson I should keep in my mind: Keep my wallet tight.
Monday, May 14, 2007
Wednesday, May 02, 2007
Cái chết
Vừa rồi Tr thông báo anh N mới mất. Bần thần cả người. Mới vừa hôm nọ anh em còn nhậu...
Cuộc sống chẳng thể lường trước điều gì sẽ xảy ra. Hôm nay còn mà mai đã thành cát bụi. Nhìn lại bản thân thấy mình chưa làm được gì, cũng chẳng có gì. Buồn thật. Để rồi đến lúc mình thành cát bụi, phỏng mình có chi đây?
Xin chia buồn với gia đình anh N :-(
Cuộc sống chẳng thể lường trước điều gì sẽ xảy ra. Hôm nay còn mà mai đã thành cát bụi. Nhìn lại bản thân thấy mình chưa làm được gì, cũng chẳng có gì. Buồn thật. Để rồi đến lúc mình thành cát bụi, phỏng mình có chi đây?
Xin chia buồn với gia đình anh N :-(
Friday, April 06, 2007
Something I hate in Netbeans
Everybody usually complains about missing this feature or that feature in Netbeans, but not me. I only work in "tic toe" programs so Spring, Hibernate, blah blah... they're not my concern.
+ Loading at startup is more slow: These days Netbeans 6 needs to spend more time to load. I only installed Ruby and Maven plugins but 45 seconds for loading is not acceptable (JDK, libraries and project are already cached, my laptop is 1.66Ghz and has 1GB RAM).
+ Expanding node is very very slow: When I expand Source Packages node in Project pane, it takes 3-4 seconds to display all packages. God, I only have 6 packages and only 2 of them contain over 20 classes.
+ Expanding code templates uses inappropriate shortcut key: Netbeans 5.x uses Space by default and Netbeans 6 uses Tab. I think it is stupid 'cause if I enter "psvn" then delete "n" and enter "m", at that time press Space/Tab and expanding doesn't work. ("psvm" + expand code template shortcut key should generate main()). But Netbeans supports to change shortcut key for expanding code template and I need to change to Shift + Space.
+ Popup intellisense list is slow too: If you press Ctrl + Shift + Space inside the editor, Netbeans will show a "Please wait..." list and you need to wait a little before the intellisense list appears. While in IntelliJ IDEA, the intellisense list appears immediately. This problem also happens even you entered some characters and the intellisense list is very short (only a few elements).
+ Missing inspections: Using Netbeans, I really miss the inspections in IntelliJ IDEA. AFAIK, at this time Netbeans 6 only has inspection to generate javadoc and remove unused import.
+ Templates are stored in Netbeans folder: If I uninstall Netbeans, I will lost my templates. It should be kept in user's folder.
+ Doesn't show error description in status bar: Netbeans can parse the source code and highlight the errors but I cannot see error description until I move the mouse over the error indicator.
Update: If I enter "nout" then move the cursor back, delete "n", add "s", move the cursor to the end of "sout" and press Shift + Space (I configured to use Shift + Space to expand code template), expanding code template doesn't work too.
Generating javadoc comment should generate closed comment: When I enter "/**" and press Enter, Netbeans should generate "*/" for me.
Update: Do not force me to use quick search: When I want to generate a constructor with several fields, I press Space to select a field then Netbeans display quick seach text box so I need to press Esc to hide that text box.
Formatting for switch statement is not correct: When I enter "case 1:" then press Enter (or Ctrl + Shift + F to format code), Netbeans does auto un-indent "case 1:" so it has same indent level with "switch (n)"
Update: Should detect JDK home automatically: You can see description here: http://www.netbeans.org/issues/show_bug.cgi?id=99745. And if they bundle up the JDK, Netbeans will have same size with IntelliJ IDEA.
Note: All the problems here I met in Netbeans 6 (latest test daily build)
+ Loading at startup is more slow: These days Netbeans 6 needs to spend more time to load. I only installed Ruby and Maven plugins but 45 seconds for loading is not acceptable (JDK, libraries and project are already cached, my laptop is 1.66Ghz and has 1GB RAM).
+ Expanding node is very very slow: When I expand Source Packages node in Project pane, it takes 3-4 seconds to display all packages. God, I only have 6 packages and only 2 of them contain over 20 classes.
+ Expanding code templates uses inappropriate shortcut key: Netbeans 5.x uses Space by default and Netbeans 6 uses Tab. I think it is stupid 'cause if I enter "psvn" then delete "n" and enter "m", at that time press Space/Tab and expanding doesn't work. ("psvm" + expand code template shortcut key should generate main()). But Netbeans supports to change shortcut key for expanding code template and I need to change to Shift + Space.
+ Popup intellisense list is slow too: If you press Ctrl + Shift + Space inside the editor, Netbeans will show a "Please wait..." list and you need to wait a little before the intellisense list appears. While in IntelliJ IDEA, the intellisense list appears immediately. This problem also happens even you entered some characters and the intellisense list is very short (only a few elements).
+ Missing inspections: Using Netbeans, I really miss the inspections in IntelliJ IDEA. AFAIK, at this time Netbeans 6 only has inspection to generate javadoc and remove unused import.
+ Templates are stored in Netbeans folder: If I uninstall Netbeans, I will lost my templates. It should be kept in user's folder.
+ Doesn't show error description in status bar: Netbeans can parse the source code and highlight the errors but I cannot see error description until I move the mouse over the error indicator.
Update: If I enter "nout" then move the cursor back, delete "n", add "s", move the cursor to the end of "sout" and press Shift + Space (I configured to use Shift + Space to expand code template), expanding code template doesn't work too.
Generating javadoc comment should generate closed comment: When I enter "/**" and press Enter, Netbeans should generate "*/" for me.
Update: Do not force me to use quick search: When I want to generate a constructor with several fields, I press Space to select a field then Netbeans display quick seach text box so I need to press Esc to hide that text box.
Formatting for switch statement is not correct: When I enter "case 1:" then press Enter (or Ctrl + Shift + F to format code), Netbeans does auto un-indent "case 1:" so it has same indent level with "switch (n)"
Update: Should detect JDK home automatically: You can see description here: http://www.netbeans.org/issues/show_bug.cgi?id=99745. And if they bundle up the JDK, Netbeans will have same size with IntelliJ IDEA.
Note: All the problems here I met in Netbeans 6 (latest test daily build)
Coming home
Left Vietnam about 2 years ago, now it is the time I need to come back. Even I will only come back Vietnam in a few weeks but I think it's a good time to see what is happening in my country. These days I heard that there are many investors they're investing in Vietnam, I heard about stock market,... Vietnam is changing.
But more important, I want to spend my time with my family. I want to meet my friends. I want to ride my motorbike and graze on the roads. And if possible, I will spend my time to go across my country. Also I want to have time to live and think for myself.
I'm really enthusiastic for coming back Vietnam. I will meet you, Vietnam, tomorrow.
But more important, I want to spend my time with my family. I want to meet my friends. I want to ride my motorbike and graze on the roads. And if possible, I will spend my time to go across my country. Also I want to have time to live and think for myself.
I'm really enthusiastic for coming back Vietnam. I will meet you, Vietnam, tomorrow.
Monday, February 26, 2007
Came back from Taiwan
Yesterday night, I came back Seoul from Taiwan. After a hard working year, I had an interesting vacation for Lunar New Year.
People who know about Taiwan knew that it named "Formosa", means "a beautiful island". Actually Taiwan is nice island, there are a lot of trees and the air is very fresh.
In Taiwan, I went to Allishan, a mountain in the middle of Taiwan, it's a popular visited area. I visited Taipei Zoo, the largest animal zoo in the world. I visited Chiang Kai-shek Memorial Hall. I went around Quanghoa computer market. I went out with my friends and had some parties...
Taipei is a little more modern than Hanoi (my home town) but in Taoyuan where I stayed it looks like Hanoi but without animation and traffic jam. I really like it. The weather is good, it's not too cold like Seoul these days, sometimes it has rain but not heavy.
Taiwanese government still accepts people can play craker while this one does not accept in Vietnam about 10 years. When hearing cracker, sometimes I remember about my childhood and my home...
Some tips for you if you have plan to visit Taiwan:
+ Do not try to bring fruit to Taiwan, it does not accept
+ Have a friend who can speak Chinese or a map (it's hard to find a person who understands English when you lost the way)
+ Prepare enough coins to go by bus (you cannot get returned money from drivers, actually they cannot return you even they want to do it)
+ When go by bus inside the city, keep your ticket and return it to driver when you take out. Otherwise, you need to pay money for ticket one more time.

Sun's rising on Allishan

Allishan's jungle

Chiang Kai-shek Memorial Hall
People who know about Taiwan knew that it named "Formosa", means "a beautiful island". Actually Taiwan is nice island, there are a lot of trees and the air is very fresh.
In Taiwan, I went to Allishan, a mountain in the middle of Taiwan, it's a popular visited area. I visited Taipei Zoo, the largest animal zoo in the world. I visited Chiang Kai-shek Memorial Hall. I went around Quanghoa computer market. I went out with my friends and had some parties...
Taipei is a little more modern than Hanoi (my home town) but in Taoyuan where I stayed it looks like Hanoi but without animation and traffic jam. I really like it. The weather is good, it's not too cold like Seoul these days, sometimes it has rain but not heavy.
Taiwanese government still accepts people can play craker while this one does not accept in Vietnam about 10 years. When hearing cracker, sometimes I remember about my childhood and my home...
Some tips for you if you have plan to visit Taiwan:
+ Do not try to bring fruit to Taiwan, it does not accept
+ Have a friend who can speak Chinese or a map (it's hard to find a person who understands English when you lost the way)
+ Prepare enough coins to go by bus (you cannot get returned money from drivers, actually they cannot return you even they want to do it)
+ When go by bus inside the city, keep your ticket and return it to driver when you take out. Otherwise, you need to pay money for ticket one more time.



Thursday, February 15, 2007
How can I remove value "2"?
In Groovy, you can remove an object from a list by using remove(int index) or remove(object obj). But if I have a list of ints, how can I remove an object by "value" rather than the index?
def list = [2, 1, 3]
list.remove(2)
assert list == [1, 3] // throws AssertionError, 'cause list = [2, 1]
Sunday, January 28, 2007
Sự phá sản của một ý tưởng
Cách đây vài tháng tôi đã có một ý tưởng về việc phát triển một hệ thống gọi là SSRSS (Synchronized System for RSS). Hệ thống này nhằm cung cấp một server cho phép người dùng sử dụng đồng thời nhiều máy tính có thể đồng bộ hóa newsfeed của họ một cách dễ dàng. Ví dụ, tôi có 2 máy tính, một ở nhà và một ở công ty. Tôi có thể sử dụng 2 feed reader khác nhau ở 2 máy nhưng đều được đăng ký các feed như nhau. Chẳng hạn tôi đã đọc tin A ở công ty, nó đã được đánh dấu đã đọc. Nhưng khi về nhà, feed reader ở máy tính tại nhà lại không thể biết rằng tôi đã đọc tin A và nó hiển thị tin A như là một tin mới. Việc đồng bộ hóa sẽ cho phép tôi khi về nhà, bật feed reader lên và tin A sẽ được đánh dấu đã đọc.
Để có thể giải quyết được vấn đề này, điều quan trọng nhất, theo tôi, đó là làm thế nào để blog server biết được rằng người dùng đã đọc tin. Khi đó server có thể đánh dấu các tin (đã được cache). Nhưng điều này chỉ có thể thực hiện được nếu feed reader implement API riêng biệt nào đó có nhiệm vụ tương tác với blog server (điều mà trước đây tôi đã ảo tưởng có cách vượt qua), giải pháp này đã được Bloglines sử dụng. Nhìn vào đó chắc hẳn các bạn đã thấy được hạn chế của nó: Nếu feed reader không sử dụng API của tôi nghĩa là không thể synchronize (thông qua server của tôi).
Cũng có một giải pháp khác, đó là feed reader hỗ trợ cache. Nghĩa là feed reader sẽ lưu trữ thông tin về các tin và upload lên một server mà các máy tính của người dùng có thể truy cập đến. Dựa trên các thông tin này, feed reader sẽ đồng bộ hóa các tin để xác định nó được đọc hay chưa. Giải pháp này đã được một số feed reader sử dụng (ví dụ RssBandit).
Trong khi đó thị trường feed reader, theo tôi, đã bão hòa với quá nhiều sản phẩm có các tính năng hấp dẫn. Việc tôi phát triển một feed reader để phục vụ cho SSRSS là hoàn toàn không thực tế.
Chính vì các lý do trên, tôi quyết định dừng việc phát triển SSRSS. Hy vọng rằng trong tương lai gần tôi sẽ có một ý tưởng mới hay ho, hấp dẫn và thực tế hơn.
Để có thể giải quyết được vấn đề này, điều quan trọng nhất, theo tôi, đó là làm thế nào để blog server biết được rằng người dùng đã đọc tin. Khi đó server có thể đánh dấu các tin (đã được cache). Nhưng điều này chỉ có thể thực hiện được nếu feed reader implement API riêng biệt nào đó có nhiệm vụ tương tác với blog server (điều mà trước đây tôi đã ảo tưởng có cách vượt qua), giải pháp này đã được Bloglines sử dụng. Nhìn vào đó chắc hẳn các bạn đã thấy được hạn chế của nó: Nếu feed reader không sử dụng API của tôi nghĩa là không thể synchronize (thông qua server của tôi).
Cũng có một giải pháp khác, đó là feed reader hỗ trợ cache. Nghĩa là feed reader sẽ lưu trữ thông tin về các tin và upload lên một server mà các máy tính của người dùng có thể truy cập đến. Dựa trên các thông tin này, feed reader sẽ đồng bộ hóa các tin để xác định nó được đọc hay chưa. Giải pháp này đã được một số feed reader sử dụng (ví dụ RssBandit).
Trong khi đó thị trường feed reader, theo tôi, đã bão hòa với quá nhiều sản phẩm có các tính năng hấp dẫn. Việc tôi phát triển một feed reader để phục vụ cho SSRSS là hoàn toàn không thực tế.
Chính vì các lý do trên, tôi quyết định dừng việc phát triển SSRSS. Hy vọng rằng trong tương lai gần tôi sẽ có một ý tưởng mới hay ho, hấp dẫn và thực tế hơn.
Groovy syntax file for EmEditor
Yesterday, while waiting for the football match between Manchester United and Portsmouth in round 4 of FA Cup, I created a Groovy syntax file for EmEditor. This syntax file can help to highlight Groovy's keywords, class name in Groovy library and functions name.
You can get it here then import it into EmEditor.
Cheers to develop with Groovy!
You can get it here then import it into EmEditor.
Cheers to develop with Groovy!
Friday, January 26, 2007
t800t8.net is back
Hey blog buddies,
Now you can visit my blog via http://www.t800t8.net. And of course via http://t800t8.blogspot.com if you want.
Cheers,
t800t8
Now you can visit my blog via http://www.t800t8.net. And of course via http://t800t8.blogspot.com if you want.
Cheers,
t800t8
Wednesday, January 10, 2007
2 questions for iBATIS developers
I've just started to play with iBATIS in Action and I have 2 questions for iBATIS developers about configuration files.
- Why doesn't have <property> inside of <properties>?
My concern: Sometimes user wants to keep these properties inside of SqlMapConfig.xml rather than outside
- Why doesn't have 'file' or 'resource' attribute in <select>, <update>, <delete>,... which points to a .SQL file?
My concern: If it exists, DBA only needs to distribute SQL script files to developer and developer just needs to change a little of content rather than copy&paste
- Why doesn't have <property> inside of <properties>?
My concern: Sometimes user wants to keep these properties inside of SqlMapConfig.xml rather than outside
- Why doesn't have 'file' or 'resource' attribute in <select>, <update>, <delete>,... which points to a .SQL file?
My concern: If it exists, DBA only needs to distribute SQL script files to developer and developer just needs to change a little of content rather than copy&paste
Tuesday, December 26, 2006
Wednesday, December 20, 2006
Windows Vista and Daemon Tools
Yesterday, I installed latest version of Daemon Tools (v4.08). After finishing installation I had no problem, Daemon Tools can create virtual drive and it worked well. But this morning, when I turn on my laptop, I've got a black screen, Windows Vista cannot display logon screen as normal.
If you have this problem, don't worry. Restart in Safe mode and uninstall Daemon Tools, and now your Vista will back.
I think the big problem now with Windows Vista is compatibility with other applications (while they work with Windows XP). You saw my problem with Daemon Tools, and you must know that I cannot make a phone call via Globe7 'cause if I try, Globe7 will crash.
Actually I had a BSD (blue screen death) with Vista but seems it is problem of Kaspersky Anti-Virus's driver (it still beta).
If you have this problem, don't worry. Restart in Safe mode and uninstall Daemon Tools, and now your Vista will back.
I think the big problem now with Windows Vista is compatibility with other applications (while they work with Windows XP). You saw my problem with Daemon Tools, and you must know that I cannot make a phone call via Globe7 'cause if I try, Globe7 will crash.
Actually I had a BSD (blue screen death) with Vista but seems it is problem of Kaspersky Anti-Virus's driver (it still beta).
Sunday, December 10, 2006
My daily tools
These days I'm working in a project using .NET and Firebird and also I decided to use UML to support modeling. So I need to find some tools to have me can do my work better. And here are them.
UML modeling tool: Actually I don't like UML tools are made by Java, they look ugly (application and symbols for modeling). So I want to find a UML tool it has a native look (in Windows). On my way, I found UMLStudio, it's really very small, only 3MB. But it's not free. Do more searching, I found StarUML. It has a native look, runs fast, free and open source. Even though it has some bugs but it's good enough to use to model.
Developer and DBA tool for Firebird: As I found, I have 2 options. One is EMS SQL Manager for InterBase/Firebird and another choice is IBExpert. After a try, I really fall in love with IBExpert. If you are familiar with TOAD (actually TOAD does not support for Firebird right now), IBExpert can do better than that. And IBExpert has a personal version, it's free.
And one more thing I cannot forget, it's SmartSVN. Visual Studio has AnkhSVN but I don't like it very much, it's really heavy. Another choice is VisualSVN but it has less features than AnkhSVN and it is underlying on TortoiseSVN. So I decided to use a SVN client rather than a Visual Studio add-in and SmartSVN is my choice.
UML modeling tool: Actually I don't like UML tools are made by Java, they look ugly (application and symbols for modeling). So I want to find a UML tool it has a native look (in Windows). On my way, I found UMLStudio, it's really very small, only 3MB. But it's not free. Do more searching, I found StarUML. It has a native look, runs fast, free and open source. Even though it has some bugs but it's good enough to use to model.
Developer and DBA tool for Firebird: As I found, I have 2 options. One is EMS SQL Manager for InterBase/Firebird and another choice is IBExpert. After a try, I really fall in love with IBExpert. If you are familiar with TOAD (actually TOAD does not support for Firebird right now), IBExpert can do better than that. And IBExpert has a personal version, it's free.
And one more thing I cannot forget, it's SmartSVN. Visual Studio has AnkhSVN but I don't like it very much, it's really heavy. Another choice is VisualSVN but it has less features than AnkhSVN and it is underlying on TortoiseSVN. So I decided to use a SVN client rather than a Visual Studio add-in and SmartSVN is my choice.
Friday, December 08, 2006
What the hell is going on with my combo box?
These days I'm very busy with my works. But I found a problem and it can take me about 3 minutes to have a break and I use it to write this post.
The problem I found relates with ComboBox control in .NET Framework 2.0. A ComboBox control has a DataSource property which accepts a List<T> as value. And then you can specify value of ValueMember and DisplayMember for it to use as value and text in combo box.
I have a Tag(int id, string name) and ofcourse a List<Tag> (it is not empty). I filled the list to a combo box, use "id" as ValueMember and "name" as DisplayMember then set SelectedIndex is 0 to make sure that I always select at least one item on the list. When I click the arrow of combo box, the drop down list appears but I don't select any item from list. Then I've got SelectedIndex is -1 while my expected value is 0. At this time I want to crazy 'cause don't understand why it happened.
But later I found that, the problem is the DisplayMember's data. If the first item of the list has a "name" is an empty string, you will have this problem. Seems M$ implemeted to select text value to get the index. But if it's an empty string, the returned index will be -1.
Thanks M$ to make me crazy ;-)
The problem I found relates with ComboBox control in .NET Framework 2.0. A ComboBox control has a DataSource property which accepts a List<T> as value. And then you can specify value of ValueMember and DisplayMember for it to use as value and text in combo box.
I have a Tag(int id, string name) and ofcourse a List<Tag> (it is not empty). I filled the list to a combo box, use "id" as ValueMember and "name" as DisplayMember then set SelectedIndex is 0 to make sure that I always select at least one item on the list. When I click the arrow of combo box, the drop down list appears but I don't select any item from list. Then I've got SelectedIndex is -1 while my expected value is 0. At this time I want to crazy 'cause don't understand why it happened.
But later I found that, the problem is the DisplayMember's data. If the first item of the list has a "name" is an empty string, you will have this problem. Seems M$ implemeted to select text value to get the index. But if it's an empty string, the returned index will be -1.
Thanks M$ to make me crazy ;-)
Thursday, November 23, 2006
<script> and XHTML
You already knew that in XHTML, all tags must be closed even it is an empty tag but there are always exceptions. In XHTML, it's <script>.
When you use <script> to add JavaScript code to your page, in familiar way, it will look like that
And if you want to include a external JavaScript file, you can use (in XHTML way)
But it doesn't work (in IE and Firefox). If you want to make it works, you must use
It makes me want to be crazy 'cause I don't understand what happens to my application when the script went mad with JavaScript errors.
FYI: Script and Style elements
Update: Can you find some other tags which do not following the "empty tag" rule in XHTML for me? ;-)
When you use <script> to add JavaScript code to your page, in familiar way, it will look like that
<script type="text/javascript" language="javascript">
// code here
</script>
And if you want to include a external JavaScript file, you can use (in XHTML way)
<script type="text/javascript" language="javascript" src="blah.js" />
But it doesn't work (in IE and Firefox). If you want to make it works, you must use
<script type="text/javascript" language="javascript" src="blah.js">
</script>
It makes me want to be crazy 'cause I don't understand what happens to my application when the script went mad with JavaScript errors.
FYI: Script and Style elements
Update: Can you find some other tags which do not following the "empty tag" rule in XHTML for me? ;-)
Wednesday, November 22, 2006
Which Java web framework you should learn next?
As in my previous post, I showed you an estimation for several Java web frameworks from Matt Raible. Did you take free time to examine it? OK, in despite of you did it or not, let's take a look at my choice.
For me, the choice is Struts. Struts, again Struts, a Gorilla of MVC web framework. But, not Struts, more exactly, it's Struts2 (former name is WebWork)
Why? Just see the new features of Struts2 2.0.2. You can see: code behind, zero configuration, and many more... All of them (new features in Struts2 2.0.x) are really brilliant.
In the past, WebWork is a good framework but IMO it has the lack of documentation (and also marketing). But now it became under the umbrella of ASF, I bet that it will have the success as its ancestor, Struts.
At this time, I'm working with v2.0.1 beta and I will upgrade to v2.0.2 immediately when it comes out.
For me, the choice is Struts. Struts, again Struts, a Gorilla of MVC web framework. But, not Struts, more exactly, it's Struts2 (former name is WebWork)
Why? Just see the new features of Struts2 2.0.2. You can see: code behind, zero configuration, and many more... All of them (new features in Struts2 2.0.x) are really brilliant.
In the past, WebWork is a good framework but IMO it has the lack of documentation (and also marketing). But now it became under the umbrella of ASF, I bet that it will have the success as its ancestor, Struts.
At this time, I'm working with v2.0.1 beta and I will upgrade to v2.0.2 immediately when it comes out.
Sunday, November 12, 2006
What is it, NetBeans?

Update: Latest NetBeans 6
+ ints is an array of integer

+ Format code with label problem


The text is inside the red border rectangle should be indented.
+ Members View will look annoying if a JAVA file contains several classes

+ When I create new project, if I change the project name after entering main class name, main class name will change to [package_name].Main automatically. Please keep it as I entered (for class name only).
I tried to report to NetBeans team but seems their reporting site does not support to report by images. Sorry NetBeans, I'm a lazy man.
Friday, November 10, 2006
Điều kỳ diệu của thiết bị điện tử
Cách đây khoảng một tuần, cái laptop của tôi đột ngột trở chứng. Không hiểu vì lý do gì mà Windows (cả Ubuntu nữa) báo laptop đang chạy bằng pin với biểu tượng pin xuất hiện ở góc màn hình trong khi tôi vẫn cắm adaptor. Tuy nhiên thực tế khi đó máy của tôi đang chạy bằng nguồn điện bình thường (vì nếu chạy bằng pin đương nhiên nó chẳng thể hoạt động được đến 10 tiếng liên tục).
Nếu tôi rút adaptor ra, khi đó máy thực sự chạy bằng pin vì thấy % lượng điện giảm. Nhưng khi cắm adaptor vào thì dường như pin không chịu sạc , % lượng điện vẫn giữ nguyên, không tăng mà cũng chẳng giảm.
Không hiểu làm sao, tôi bắt đầu thử các trò:
+ Giật pin ra khỏi máy khi máy đang chạy (vẫn cắm adaptor) --> máy tắt
+ Thử bật máy khi cắm adaptor nhưng pin không được lắp --> máy không bật được
+ Chạy update BIOS của Dell --> nó báo "Mày phải cắm cả pin và adaptor vào"
Tôi chắc mẩm: "Teo rồi, chuẩn bị toi hơn 100$ để mua cục pin mới rồi"
Chợt tôi phát hiện một điều lạ. Con Dell Inspiron của tôi khi vào setup BIOS có mục thông báo có adaptor hay không. Tôi thấy nó báo "Không" trong khi vẫn cắm adaptor và máy vẫn đang chạy bằng nguồn điện bình thường (trong BIOS cũng có hiển thị mức pin, nó giữ nguyên và kèm theo "Discharging").
Chuyện kỳ lạ thật phải không các bạn? Nhưng tôi phải giải quyết vấn đề của mình thế nào bây giờ?
Trong lúc loay hoay, tôi để ý thấy khi tôi "lung lay" cái adaptor, BIOS báo "Có" rồi lại "Không", rồi có lúc lại "Có", rồi lại "Không". Eureka, vấn đề đây rồi! Hóa ra kẻ có vấn đề là chiếc adaptor. Ngay chiều hôm đó tôi gửi nó cho công ty sản xuất và ngay chiều hôm sau tôi nhận được một cái khác hoàn toàn mới (điều khó có thể xảy ra ở Việt Nam).
Tuy giờ là một cái adaptor hoàn toàn khác (loại 75W) so với cái cũ (loại 90W) nhưng với tôi thế vẫn OK. Cấu tạo phần dây nối của chiếc adaptor này sẽ khó có thể lặp lại vẫn đề tôi vừa đã gặp phải. Hơn nữa, cái adaptor 90W vừa to vừa nặng. Hạnh phúc!
Thiết bị điện tử vốn mang tiếng chính xác nhưng cũng có khi xảy ra chuyện thần thoại :-D
Nếu tôi rút adaptor ra, khi đó máy thực sự chạy bằng pin vì thấy % lượng điện giảm. Nhưng khi cắm adaptor vào thì dường như pin không chịu sạc , % lượng điện vẫn giữ nguyên, không tăng mà cũng chẳng giảm.
Không hiểu làm sao, tôi bắt đầu thử các trò:
+ Giật pin ra khỏi máy khi máy đang chạy (vẫn cắm adaptor) --> máy tắt
+ Thử bật máy khi cắm adaptor nhưng pin không được lắp --> máy không bật được
+ Chạy update BIOS của Dell --> nó báo "Mày phải cắm cả pin và adaptor vào"
Tôi chắc mẩm: "Teo rồi, chuẩn bị toi hơn 100$ để mua cục pin mới rồi"
Chợt tôi phát hiện một điều lạ. Con Dell Inspiron của tôi khi vào setup BIOS có mục thông báo có adaptor hay không. Tôi thấy nó báo "Không" trong khi vẫn cắm adaptor và máy vẫn đang chạy bằng nguồn điện bình thường (trong BIOS cũng có hiển thị mức pin, nó giữ nguyên và kèm theo "Discharging").
Chuyện kỳ lạ thật phải không các bạn? Nhưng tôi phải giải quyết vấn đề của mình thế nào bây giờ?
Trong lúc loay hoay, tôi để ý thấy khi tôi "lung lay" cái adaptor, BIOS báo "Có" rồi lại "Không", rồi có lúc lại "Có", rồi lại "Không". Eureka, vấn đề đây rồi! Hóa ra kẻ có vấn đề là chiếc adaptor. Ngay chiều hôm đó tôi gửi nó cho công ty sản xuất và ngay chiều hôm sau tôi nhận được một cái khác hoàn toàn mới (điều khó có thể xảy ra ở Việt Nam).
Tuy giờ là một cái adaptor hoàn toàn khác (loại 75W) so với cái cũ (loại 90W) nhưng với tôi thế vẫn OK. Cấu tạo phần dây nối của chiếc adaptor này sẽ khó có thể lặp lại vẫn đề tôi vừa đã gặp phải. Hơn nữa, cái adaptor 90W vừa to vừa nặng. Hạnh phúc!
Thiết bị điện tử vốn mang tiếng chính xác nhưng cũng có khi xảy ra chuyện thần thoại :-D
Sunday, October 29, 2006
Cái gì đây kỳ này?
Ai đã từng đọc Tuổi Trẻ Cười chắc chắn sẽ đều biết đến chuyên mục "Cái gì đây kỳ này?" của anh Hai Cù Nèo. Những dòng dẫn dắt ngắn gọn, hài hước, trào phúng nhưng vẫn đưa người đọc đến đoạn... ngồi đần ra rồi bỗng ngoạc miệng cười "Ha ha...".
Nhưng giờ là chuyện nghiêm túc đây, có cười gì thì cười đi rồi nghiêm chỉnh nào.
Hôm nay tớ làm bún đậu phụ mắm tôm.
Đêm qua ngủ tít mù đến gần 1h trưa mới thèm mò dậy. Bắt tay vào thực hiện kế hoạch nào (tớ định làm từ tuần trước nhưng vướng công việc nên đành lui lại). Bún có rồi, bún khô thôi, hôm trước đã nhờ anh H. mua hộ. Mắm tôm nữa chứ. Công đoạn phức tạp nhất là mua đậu về rán :-D
Kì cục đến gần 2h mới xong nhưng còn làm một số thứ việc nữa nên giờ mới chuẩn bị măm.
Hãy cùng chiêm ngưỡng tác phẩm của tớ nào.

Giờ tớ măm đây, mọi người chúc tớ ngon miệng nào. Cuộc đời đẹp làm sao ;-)
PS: Honey, khi em đọc được bài này thì anh đã măm xong rồi. Đừng trách anh ko mời nhé, ăn mảnh đấy :-P
Nhưng giờ là chuyện nghiêm túc đây, có cười gì thì cười đi rồi nghiêm chỉnh nào.
Hôm nay tớ làm bún đậu phụ mắm tôm.
Đêm qua ngủ tít mù đến gần 1h trưa mới thèm mò dậy. Bắt tay vào thực hiện kế hoạch nào (tớ định làm từ tuần trước nhưng vướng công việc nên đành lui lại). Bún có rồi, bún khô thôi, hôm trước đã nhờ anh H. mua hộ. Mắm tôm nữa chứ. Công đoạn phức tạp nhất là mua đậu về rán :-D
Kì cục đến gần 2h mới xong nhưng còn làm một số thứ việc nữa nên giờ mới chuẩn bị măm.
Hãy cùng chiêm ngưỡng tác phẩm của tớ nào.

Giờ tớ măm đây, mọi người chúc tớ ngon miệng nào. Cuộc đời đẹp làm sao ;-)
PS: Honey, khi em đọc được bài này thì anh đã măm xong rồi. Đừng trách anh ko mời nhé, ăn mảnh đấy :-P
Subscribe to:
Posts (Atom)


