SonyEricsson新产品-vivaz Wednesday, January 27, 2010







看一眼就喜欢上了,于是查了查它的配置:

‧S60第五版
‧800万自动对焦摄像头
‧720p录像
‧FM
‧AGPS、WiFi
‧640 X 480分辨率的TV-out
‧3.2寸640 X 360屏幕
有4种颜色,欧喜欢红色的那个。

可以八一八下面的视频:

http://www.youtube.com/watch?v=m4hadFHinXc

http://www.youtube.com/watch?v=Q6Tet8ZnjbE

AdMob认为Apple, Nokia主导世界手机市场 Monday, January 25, 2010

















1〉09年,智能手机只占到了手机总数的19% (发展空间巨大阿)
2〉Symbian OS在亚洲和非洲市场处于主导地位;在东欧和拉丁美洲占据较大的市场份额
3〉iPhone OS占据了北美、澳大利亚、西欧以及大西洋周边地区
4〉Android 在北美和西欧市场有显著增长
5〉2009年Q4全球智能手机os市场,iPhone 51%,Symbian 21%,Android 16%(注意:2008年Q4仅为1%)
6〉2009年Q4亚洲智能手机os市场,Symbian 69%, iPhone 27%

AdMob公司向手机平台上的发布商出售文字和旗帜广告,同时AdMob还追踪并记录各品牌手机、移动设备在全球各地的使用情况。关于AdMob的详细信息参见:http://www.admob.com/home/about

Read out EXIF via Python Thursday, January 14, 2010



My requirement is to extract a thumbnail in exif section in a jpeg file.

I have tried exiftool(http://www.sno.phy.queensu.ca/~phil/exiftool/).Exiftool is based on perl,this tool is very powerful and so it's also very very complex.I just want to extract the thumbnail!

After inverstaging, I think the library,exif.py, is prefer.


I followed the belowing to install the package.
1. download library at http://sourceforge.net/projects/exif-py/files/
2. extract it
3. I copied exif.py to Lib folder


Now I'll extact thumbnail. the belowing is a demo.

import EXIF
# extract thumbnail in Exif and save it
f = open("c:\\p2.jpg",'rb')
tags = EXIF.process_file(f)
# save the thumbnail into a jpg format file
f = open("c:\\a.jpg",'wb')
f.write(tags["JPEGThumbnail"])
f.close()

how to create a global singleton object in exe Monday, January 11, 2010




// how to create a global singleton object
const TInt KMarkTlsHandle = 0xC0FFEE;

class CYourClass: public CBase
{
public:
CYourClass(){};
void ConstructL(){};
~CYourClass();
};



CYourClass::~CYourClass()
{

//release TLS
UserSvr::DllFreeTls(KMarkTlsHandle);
}



//how to create a global singleton object
void CMarkEComWrapper::DoCommandCreateSingletonObject()
{
TInt err = KErrNone;

//Get object from STL
CYourClass* iSingletonObject = static_cast (UserSvr::DllTls(KMarkTlsHandle));

//if not, create one
if (!iSingletonObject)
{
iSingletonObject = new (ELeave) CYourClass;
CleanupStack::PushL(iSingletonObject);
iSingletonObject->ConstructL();
err = UserSvr::DllSetTls( KMarkTlsHandle, iSingletonObject );
CleanupStack::Pop(iSingletonObject);
}

delete iSingletonObject ;

iSingletonObject = 0;
}

List all drivers via DOS command



Command:  fsutil fsinfo drives

Detailed descriptions belowing:

Options for fsutil

  • behavior 控制文件系统行为
  • dirty 管理卷的被损坏的位数
  • file 文件特定命令
  • fsinfo 文件系统信息
  • hardlink 硬链接管理
  • objectid 对象 ID 管理
  • quota 配额管理
  • reparsepoint 重分析点管理
  • sparse 稀疏文件控制
  • usn USN 管理
  • volume 卷管理

options for FSINFO

  • drives 列出所有驱动器
  • drivetype 查询一个驱动器的驱动器类型
  • volumeinfo 查询卷信息
  • ntfsinfo 查询 NTFS 特定卷信息
  • statistics 查询文件系统统计