Monday, August 15, 2011

Google收购Moto Mobility

Android真正的春天才刚刚开始!Google真正的盈利也才刚刚开始!

从我阴暗的内心来看,Google这招棋太高了!

市场研究公司Asymco报告称:

苹果今年第二季度占全球手机发货量的5.4%,智能手机发货量的18.5%,但其利润占手机产业的三分之二。Asymco称,第二季度苹果在手机产业利润中的占比由第一季度的57%提高到66.3%。按发货量计算,三星市场份额为17.5%;按利润计算,三星份额由第一季度的21%下滑至15%。
RIM在手机产业利润中的占比为11%,其次是宏达电(7.4%)。
诺基亚、摩托罗拉移动、索爱和LG则出现了不同程度的亏损。

Android操作系统的手机近两年势头很强,出货量极大,从某种意义上讲压制了iPhone的发展!但经过市场的洗礼后,Android系统的诸多缺点也逐渐显现,而且于今年暑期(好像)出现首次市场份额增长停止!我关注了一些Android开发的论坛后,发现那里的开发者普遍总结出了Android的几大问题:

硬件规格不统一。这个问题其实很严重,带来了很多问题!首先是软硬件之间优化有限,相同的硬件配置,iOS能流畅/细腻,Android不行;第二,增加应用开发成本!这个很好理解,屏幕分辨率不同,有些依赖图形的应用就会面临很多问题!有些甚至出现针对不同机型开发的情况,这无疑阻碍了应用的丰富!
硬件厂商定制UI。用户体验不统一,而且这些定制的UI也不一定高效,进一步影响了用户体验。
App Market盈利模式不明。iOS的应用商店对开发者的回报远大于Android,这个可以从应用的售价和下载量上看出端倪,但这个没直接搞过,不太好说!


虽说Google通过很多手段试图修正这些问题,但始终是力不从心!最终Google从Android上的盈利不足Apple的一个零头!不过这一切将马上改观!Google有了Moto Mobility,极大的强化了Android的竞争力!上面提到的软硬件问题几乎都能瞬间解决,这样不但可以马上改善Android的综合实力,而且能有效的压制其他厂商,比如HTC和三星!自家的硬件和系统,当然能最优化了!这时的HTC和三星肯定无法与Google+Moto正面对抗!或主动另求新的系统,比如Windows Phone或MeeGo什么的,或者就模仿Google的硬件规格,进一步提升Android的同质化程度,并最终形成价格战!这时候,Apple的一些技术优势将逐渐消失,价格劣势将进一步凸显!最终可能重演当年IBM PC兼容机蚕食Apple,最终蚂蚁吞大象的局面!

其实现在对Google来说,是一个最完美的切入点。Android的开放模式根本不能与Apple抗衡,就像Linux(在保持现在的模式的前提下)无法替代Windows一样!Google深知没有一个独裁者来制定规则,并优化资源,Android就像Linux的几十个发行版一样,靠驱动这一项,就能在十分钟内吓跑90%的非专业用户!但Google没有经营手机的经验,只能借HTC,三星和MOTO的力来培养市场!现在好了,Android用户用惯了,App Market 成型了,该买个手机公司,好好挣钱了!

典型的卸磨杀驴么!

Sunday, August 14, 2011

How to install Flash player in Fedora 15

First, to be super user. Then type in the following commands...

yum install wget
cd /tmp
wget http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11/flashplayer11_b2_install_lin_64_080811.tar.gz
tar xzvf flashplayer11_b2_install_lin_64_080811.tar.gz
cp libflashplayer.so /usr/lib64/mozilla/plugins/

Wednesday, July 27, 2011

stereopsis: know your FPU

stereopsis: know your FPU

A very good article talking about the conversion between floating points and integers. However, it based on Visual C++. Anyway, it is good to you if you want to know something about the conversion.

Saturday, July 23, 2011

How to use FTP filesystem on Ubuntu using CurlFtpFS


Some web hosting company do not offer shell access (SSH or Telnet) to your shared hosting account for security reasons, making it a bit harder for you to do regular file maintenance for your web account. Although the use of regular FTP client is adequate for most cases, some people still prefer to manipulate files directly using standard Unix tools (probably because of old habits).
Fortunately, there's CurlFtpFS which allow you to mount remote ftp account as a standard filesystem on your Linux operating system.
Using CurlFtpFS
First of all you need to install CurlFtpFS, which in case of Ubuntu or Debian based operating system is to run 'sudo apt-get install curlftpfs'.
Alternatively, you can use Synaptic to install CurlFtpFS.
Assuming you've successfully installed curlftpfs, all you need to do in order to mount ftp locally is to to run these commands.
mkdir hostr
sudo curlftpfs -o allow_other ftp://user:pass@ftp.example.com host
user:pass is the username and password to log into ftp account.
After that, you can change your working directory to the mount-point and use the regular unix utilities to work on the files that normally accessible on the FTP protocol. After you're done, you can unmount it by running the usual "sudo umount [mountpoint]" command
Using CurlFtpFS in fstab
You can add curlftpfs to fstab for automatic mounting by using this line :
curlftpfs#user:pass@ftp.example.com /mnt/host fuse rw,uid=500,user,noauto 0 0
Note: Please refer to CurlFtpFS website for further reference.
Thanks for reading this post, hopefully this will get you started to use curlftpfs FTP based filesystem in your Linux operating system.


How do I forcefully unmount a Linux disk partition


It happens many times you try to unmount a disk partition or mounted CD/DVD disk and if you try to unmount device, which is accessed by other users, then you will get error umount: /xxx: device is busy. However, Linux/FreeBSD comes with fuser command to kill forcefully mounted partition.

Understanding device error busy error

What happens basically, is that Linux / UNIX will not allow you to unmount a device that is busy. There are many reasons for this (such as program accessing partition or open file) , but the most important one is to prevent data loss.
Try the following command to find out what processes have activities on the device/partition. If your device name is /dev/sdb1, enter the following command as root user:
# lsof | grep '/dev/sda1'Output:
vi 4453       vivek    3u      BLK        8,1                 8167 /dev/sda1
Above output tells that user vivek has a vi process running that is using /dev/sda1. All you have to do is stop vi process and run umount again. As soon as that program terminates its task, the device will no longer be busy and you can unmount it with the following command:
# umount /dev/sda1
Following disussion allows you to unmout device and partition forcefully using Linux commands.

Linux fuser command to forcefully unmount a disk partition

Suppose you have /dev/sda1 mounted on /mnt directory then you can use fuser command as follows:
WARNING! These examples may result into data loss if not executed properly (see "Understanding device error busy error" for more information).
Type the command to unmount /mnt forcefully:
# fuser -km /mntWhere,
  • -k : Kill processes accessing the file.
  • -m : Name specifies a file on a mounted file system or a block device that is mounted. In above example you are using /mnt
Linux umount command to unmount a disk partition
You can also try umount command with –l option:
# umount -l /mntWhere,
  • -l : Also known as Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. This option works with kernel version 2.4.11+ and above only.
If you would like to unmount a NFS mount point then try following command:
# umount -f /mntWhere,
  • -f: Force unmount in case of an unreachable NFS system
Caution: Using these commands or option can cause data loss for open files; programs which access files after the file system has been unmounted will get an error.

Monday, July 18, 2011

【转】Windows下开发中遇到问题


1,Visual Studio中报这个错误:Project : error PRJ0002 : Error result 31 returned from 'C:/Program Files/Microsoft SDKs/Windows/v6.0A/bin/mt.exe'.
如下方法解决:Properties -> Configuration Properties -> Linker -> Manifest File, set Generate Manifest to No.

2,Visual Studio编译成功,运行时报这个错误:

没有找到MSVCR90.dll,因此这个应用程序未能启动,重新安装应用程序可能会修复此问题

解决方法是, 项目-->C++-->代码生成 下的 运行时库 项目

从 Multi-threadedDebug DLL (/MDd)  改为   Multi-threaded Debug(/MTd)
 因为 Multi-threaded Debug DLL (/MDd) 需要项目建立者相同的MSVCR.dll库,而我们的系统中的DLL可能不同,因此报告上述错误。改成后面的选项后就可以运行了。