Consider to buy Viewsonic 10s tablet
I went to Harvey Norman today. I found the price of Viewsonic 10s tablet, now is $499. That price is attractive. It got a 10 inch screen. But I think that does not support Android Market, because in their website, they instructed the users to download apps via "AppDowload". Thus, I have to play the real product for a few minutes before I buy it.
How to install Ubuntu Netbook Version on HP Mini 110-3017TU
Last week, I have successfully re-built a HP Netbook(110-3017TU) with Ubuntu Netbook Version 10.10. No troubles at all, that is bit hard to find the way to enter the BIOS. All I need to do pressing 'ESC' key on the start of machine.
The Complete Steps are listed followings:
1. Download iso from Ubuntu
2. Prepare a 2GB free space USB Drive
- I suggest you prepare a completely empty one. There may be wiped all your data.
3. Follow the instructions on Ubuntu website about how to burn the ISO into an USB drive
4. Plug your USB into 110-3017TU
5. Turn it on
6. Pressing 'ESC' key
7. You will be in BIOS menu.
8. Select the boot sequences of drives
9. Select USB drive
10. It will enter the installation screen
Then there is nothing hard to do, just follow the instructions. It will works. All graphic and sound functions are working, even I tried to plug-in a 3G modem. It still works fine!
Getting Row Count in NHibernate
Getting the row count of a table, that is easy in NHibernate. You can do it this way:
Code
ICriteria criteria = CurrentSession.CreateCriteria<Member>(); | |
criteria.Add(Expression.Eq("Code",code)); | |
return (int) criteria.List().Count; |
But this is very heavy weighted. You are retrieving a whole list of objects!!!! But you just need to know the numbers of objects! You are wasting a lot of processing power!
You can do it this way. That is only getting a row count, just a number! Therefore, a "select count(*)" query is executed.
Code
ICriteria criteria = CurrentSession.CreateCriteria<Member>(); | |
criteria.Add(Expression.Eq("Code",code)); | |
criteria.SetProjection(Projections.RowCount()); | |
return (int) criteria.UniqueResult(); |
Facebook New Feature - Question
Yesterday, I found there is a new option in my status in Facebook, "Question". That is actually a function to setup a poll in facebook. That sounds fun. But I am wondering many people will think this feature is useful. Because Facebook is to connect people, not to collect others people ideas.
Android 3.0 won't being open source for a while
According to CNET report, Android 3.0 won't be open source. Google said Android 3.0 is not ready to customize yet. I am not agree with Google. Maybe, changing Android 3.0 will be a bad idea. It won't work as well as its design. But philosophy of opensource is diversity. Opensource community will develop a number of ways to use Android 3.0. They can be good or bad. Definitely, they will be never to be think of inside Google.
Reference:
Google not ready to share Honeycomb source code (CNET)