Status pane of S60 Wednesday, November 17, 2010








The status pane consistes of five sub-panes. If changing the theme, the influence is following:
  1. Background bitmap for the entire pane can be changed
  2. Signal pane: Foreground color and the bitmap can be changed
  3. Battery pane: Foreground color and the bitmap can be changed
  4. Context pane: The bitmap (that is, application icon) can be changed
  5. Title pane: Foreground color can be changed
  6. Universal Indicator pane: Foreground color can be changed
  7. Navi pane: Foreground color can be changed

wallpaper for the shortkey of vim movement commands Friday, October 22, 2010

Please get it from the bellowing link
http://bitbucket.org/tednaleid/vim-shortcut-wallpaper/src

There's a screenshot

android gallery from google Friday, October 8, 2010


Google introduces online gallery of Android phones. This gallery lists the Android phones from HTC, LG, Motorola and Samsung at present.
You can review the phones sorted by “newest”  or “Alphabetical”. And you can add up to three phones for a side-by-side comparison.

So it’s very useful to make you get newest information about Android phone and be  helpful  for you to make a decision to buy one of them.


The bellowing is a screenshot



vim command handbook Tuesday, September 28, 2010


Vim is one of the gread editors. There's a mindmap of vim commans, the bellowing is a screenshot.


You can download the pdf version from here



from Joe Martinez

Open terminal in any opened folder from File Browser on ubuntu Monday, September 20, 2010

  1. System > Administration > Synaptic Package Manager
  2. Search for "nautilus-open-terminal"
  3. Mark it for installation then click Apply.
  4. Open a new file browser and right click a folder. You should see "Open in Terminal".
  5. If you do not then log off and log in again.
PS: You can use the bellowing command to install nautilus-open-terminal

$ sudo apt-get install nautilus-open-terminal 


(picture from http://commons.wikimedia.org/)

Text Telephony Architecture based upon CTM Friday, August 27, 2010


This arch. digram is from 3GPP TS 26.226 V5.0.0.

there's a like to the standard. http://www.arib.or.jp/IMT-2000/V500Sep06/2_T63/ARIB-STD-T63/Rel5/26/A26226-500.pdf

Based on this digram, you can understand TTY device and mobile phone very well, specially for CTM.

There's a generic icon for TTY

Handbook for liunx comman line Friday, May 7, 2010

Here's a very nice site, http://ss64.com/bash/
You can search your desired command.

Mediawiki支持中文搜索 Thursday, April 22, 2010

使用过mediawiki的人对mediawiki的中文搜索都有深切感受,实在是不好。好在mediawiki提供了好几种解决办法,通过对比我选择了SpinxSearch成功实现了中文搜索。

我的环境:
1> Mediawiki 1.15.1
2> XAMMP Lite 1.7.2

How to call the Subtotal function by VBA in excel Friday, April 9, 2010

How to call the Subtotal function by VBA in excel

If a formula on the active sheet, then perhaps like this:
Code:

    With Worksheets("统计")
        Range("A3").Formula = _
        "=Subtotal(109, " & .Range("A4", .Cells(LastRow, "A")).Address(, , , True) & ")"
    End WithIf a result, then
Code:
    With Worksheets("统计")
        Range("A3").Value = _
        Application.WorksheetFunction.Subtotal(109, .Range("A4", .Cells(LastRow, "A")))
    End With

Dora.fm Wednesday, April 7, 2010

This site has been blocked in my company

Recommend a website to listen to music online. The link is Dora.fm.

Dora.fm is a mashup of Pandora, Twitter.  The screenshot of home page is belowing



It's very very nice. PLs enjoy it.

[FW]Static diagram of OpenCORE Player Engine Tuesday, April 6, 2010



From http://freepine.blogspot.com/

How to transform your hoodie into a computer sleeve Wednesday, March 31, 2010




More info Pls refer to this link

Opencore and OMX core/component interaction

http://android.git.kernel.org/?p=platform/external/opencore.git;a=blob_plain;f=doc/openmax_call_sequences.pdf

It's from PacketVideo. It's very useful and powerful.

我喜欢的iPhone应用---遥控器 Monday, March 29, 2010

由NewKinetix出品,名为Re universal remote IR dongle的应用包括软硬件两个部分。硬件部分就是图中连接到phone底部的那个小扩展,软件的UI在图中也可以看到。


硬件东东需要69.95刀,软件可以在app store免费下载,想去看看请点击




一般这样的应用都具有自学习功能,这款应用也不例外。缺省情况下支持的设备可以在官方网站上找到,看看你家设备是不是缺省支持

官方网站,请走这边

A new template to embed python sctipt in ms-dos script Thursday, March 25, 2010




@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x %~f0 %*
goto exit

"""
# -------------------- Python section --------------------
import sys

print sys.argv[0]


DosExitLabel = """
:exit
rem """

Bellagio OpenMAX Integration Layer Wednesday, March 24, 2010




Bellagio is an opensource implementation of the Khronos OpenMAX Integration Layer API to access multimedia components.

You can take it as a demo to investigate OMX IL.

The link is belowing
http://sourceforge.net/projects/omxil/files/

List header files of OpenMAX IL(v.1.1.2) Tuesday, March 23, 2010




IL(V1.1.2)中每个头文件的作用是什么:

• OMX_Types.h: Data types used in the OpenMAX IL

• OMX_Core.h: OpenMAX IL core API

• OMX_Component.h: OpenMAX IL component API

• OMX_Audio.h: OpenMAX IL audio domain data structures

• OMX_IVCommon.h: OpenMAX IL structures common to image and video domains

• OMX_Video.h: OpenMAX IL video domain data structures

• OMX_Image.h: OpenMAX IL image domain data structures

• OMX_Other.h: OpenMAX IL other domain data structures (includes A/V synchronization)

• OMX_Index.h: Index of all OpenMAX IL-defined data structures

• OMX_ContentPipe.h: Content pipe definition

好工具共享 Thursday, March 11, 2010


Convert Word document to MediaWiki markup

The release notes of the tool said it supports Word2000,2003. I used it on Word 2007. It works fine.

Step by Step to install

  1. Download the tool at the like belowing  http://sourceforge.net/projects/word2mediawikip/files/Word2MediaWikiPlus/1.0.0/Word2MediaWikiPlus-1.0.0.zip/download
  2. The tool is  a set of Word Visual Basic macros so you must import these marco by following instruction at http://www.mediawiki.org/wiki/Extension:Word2MediaWikiPlus/old_project_page#Code_installation
Another advantage:  You can create a table with MediaWiki markup via this tool

iPod touch小孩最爱?andorid手机男人的标志? Tuesday, March 9, 2010



AdMod在2010年1月公布了一份调查报告。这份报告的数据来自963个手机用户,其中:318 Android, 244 iPhone, 356 iPod touch 以及 45 webOS。所有被调查者都是通过手机完成调查的,而不是使用他们的pc完成调查。

Android用户更有钱?




















从月均应用下载量的统计结果看很明显可以看出iPod touch的用户比较喜欢免费软件。还可以看出相对其它用户,iPhone用户仿佛更愿意购买软件,但是实际上好像并非如此。Distimo公司曾经提供数据说Android的免费软件要比iPhone上的多得多,Android 57%而iPhone为25%,由此可见Android用户更愿意为喜欢的软件付费,也许都是不差钱的人在用Android。

iPod touch小孩最爱






















iPod touch大约有65%的用户都是17岁以下的。那些针对孩子的应用是不是要考虑porting到这个平台上?

andorid手机男人的标志?




















使用Android手机的男性比较要明显高许多,所以有些人认为andorid手机男人的标志,andorid手机的广告片是导致这个现象的原因之一。但是我没有查到那个广告。

Mobile App stores Friday, March 5, 2010



From Distimo

[FW] 人生就是一个接一个的杯具 Friday, February 26, 2010














也许可以警醒你

From http://www.matrix67.com/blog/archives/2586

CTextResolver把错误码转换为错误描述 Wednesday, February 3, 2010



S60提供的CTextResolver类可以把错误码转换为错误描述,这样我们就不用输出那些不好懂的数字,不用一直开着帮助去查询错误码的意思了。

Here's a demo. FYI

TInt err = xxx //error code
iErrRe = CTextResolver::NewL(); 
TInt resourceID = 0;
TUint flags = 0;
TPtrC errstr = iErrRe ->ResolveErrorString(err,resourceID,flags,Context);
if ( !(flags & ETextResolverBlankErrorFlag) )
{
//handle error string 
}

CErrorUi就是嵌套了这个类!!

传习录(3)


爱问:“至善只求诸心。恐于天下事理,有不能尽”。先生曰:“心即理也。天下又有心外之事,心外之理乎”?爱曰:“如事父之孝,事君之忠,交友之信,治民之仁,其间有许多理在。恐亦不可不察”。先生叹曰:“此说之蔽久矣。岂一语所能悟?今姑就所问者言之。且如事父不成,去父上求个孝的理。事君不成,去君上求个忠的理。交友治民不成,去友上民上求个信与仁的理。都只在此心。心即理也。此心无私欲之蔽,即是天理。不顶外面添一分。以此纯乎天理之心,发之事父便是孝。发之事君便是忠。发之交友治民便是信与仁。只在此心去人欲存天理上用功便是”。爱曰:“闻先生如此说,爱已觉有省悟处。但旧说缠于胸中,尚有未脱然者。如事父一事,其间温凊定省之类,有许叫多节目。不知亦须讲求否”?先生曰:“如何不讲求?只是有个头脑。只是就此心去人欲存天理上讲求。就如讲求冬温,也只是要尽此心之孝,恐怕有一毫人欲间杂。讲求夏清,也只是要尽此心之孝,恐怕有一毫人欲间杂。只是讲求得此心。此心若无人欲,纯是天理,是个诚于孝亲的心,冬时自然思量父母的寒,便自要求个温的道理。夏时自然思量父母的热,便自要求个清的道理。这都是那诚孝的心发出来的条件。却是须有这诚孝的心,然后有这条件发出来。譬之树木,这诚孝的心便便是根。许多条件便枝叶。须先有根,然后有枝叶。不是先寻了枝叶,然后去种根。礼记言‘孝子之有深爱者,必有和气。有和气者,必有欲愉色。有愉色者,必有婉容’。须是有个深爱做根,便自然如此”。 

先在网上体验一下motoblur Tuesday, February 2, 2010



1〉 什么是motoblur?

wiki上说:
Motoblur is a user interface developed over Android by Motorola for Motorola's mobile phones.[1][2] Motoblur is a widget based system which combines various social networking portals such as Facebook, MySpace, and Twitter all in one place without the need of logging into each service separately.

其他可以八下面的连接:

http://www.google.cn/search?sourceid=navclient&aq=h0&oq=&hl=zh-CN&ie=UTF-8&rlz=1T4GGLL_enCN337&q=MOTOBLUR

2〉网上体验


http://tmosim.grid.motoapi.com/

在cn上需要耐心阿,非常之慢。

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 查询文件系统统计