- go ot group folder where bld.inf file is stored.for example, cd \uiqsrc\qapps\sharedui\qcontactssharedui\group
- > abld reallyclean
- > abld makefile armv5
- > abld listing armv5 urel QContacUI ContactsListBoxModel
- The final two arguments are the MMP and CPP names for the function you want to look at
- The final output is: Created [...]\contactslistboxmodel.ARMV5.lst. And the .lst file is one we're interested in
Create the assembly listing of cpp file on Symbian Thursday, January 20, 2011
Posted by Unknown at 2:42 PM 0 comments
examples of pack function in Perl Monday, January 17, 2011
$foo = pack("WWWW",65,66,67,68);
# foo eq "ABCD"
$foo = pack("W4",65,66,67,68);
# same thing
$foo = pack("W4",0x24b6,0x24b7,0x24b8,0x24b9);
# same thing with Unicode circled letters.
$foo = pack("U4",0x24b6,0x24b7,0x24b8,0x24b9);
# same thing with Unicode circled letters. You don't get the UTF-8
# bytes because the U at the start of the format caused a switch to
# U0-mode, so the UTF-8 bytes get joined into characters
$foo = pack("C0U4",0x24b6,0x24b7,0x24b8,0x24b9);
# foo eq "\xe2\x92\xb6\xe2\x92\xb7\xe2\x92\xb8\xe2\x92\xb9"
# This is the UTF-8 encoding of the string in the previous example
$foo = pack("ccxxcc",65,66,67,68);
# foo eq "AB\0\0CD"
# NOTE: The examples above featuring "W" and "c" are true
# only on ASCII and ASCII-derived systems such as ISO Latin 1
# and UTF-8. On EBCDIC systems, the first example would be
# $foo = pack("WWWW",193,194,195,196);
$foo = pack("s2",1,2);
# "\1\0\2\0" on little-endian
# "\0\1\0\2" on big-endian
$foo = pack("a4","abcd","x","y","z");
# "abcd"
$foo = pack("aaaa","abcd","x","y","z");
# "axyz"
$foo = pack("a14","abcdefg");
# "abcdefg\0\0\0\0\0\0\0"
$foo = pack("i9pl", gmtime);
# a real struct tm (on my system anyway)
$utmp_template = "Z8 Z8 Z16 L";
$utmp = pack($utmp_template, @utmp1);
# a struct utmp (BSDish)
@utmp2 = unpack($utmp_template, $utmp);
# "@utmp1" eq "@utmp2"
sub bintodec {
unpack("N", pack("B32", substr("0" x 32 . shift, -32)));
}
$foo = pack('sx2l', 12, 34);
# short 12, two zero bytes padding, long 34
$bar = pack('s@4l', 12, 34);
# short 12, zero fill to position 4, long 34
# $foo eq $bar
$baz = pack('s.l', 12, 4, 34);
# short 12, zero fill to position 4, long 34
$foo = pack('nN', 42, 4711);
# pack big-endian 16- and 32-bit unsigned integers
$foo = pack('S>L>', 42, 4711);
# exactly the same
$foo = pack('s
# pack little-endian 16- and 32-bit signed integers
$foo = pack('(sl)<', -42, 4711);
# exactly the same
ref to http://perldoc.perl.org/functions/pack.html
Posted by Unknown at 4:43 PM 0 comments
Labels: Perl
Exchangeable image file format(exif) Friday, January 14, 2011
Exif (Exchangeable image file format) 是可交换图像文件的缩写,由日本电子工业发展协会(JEIDA - Japan Electronic Industry Development Association)创建。专门为数码相机的照片设定的,可以记录数字照片的属性信息和拍摄数据。
Exif 可以附加于 JPEG、TIFF、RIFF 等文件之中,为其增加有关数码相机拍摄信息的内容和索引图或图像处理软件的版本信息。(例如:在JPEG文件中,Exif信息通常在JPEG格式的APP1段加入。)
版本
Exif 最初由日本电子工业发展协会在 1996 年制定,版本为 1.0。1998 年,升级到 2.1,增加了对音频文件的支持。2002 年 3 月,发表了 2.2 版。标准
- EXIF.org
- EXIF 2.1 官方标准(PDF文档)
- EXIF 2.2 官方标准(PDF文档)
- EXIF 文件格式说明
工具
常用字段
Posted by Unknown at 2:04 PM 0 comments
Read Exif via Python
Installtion
- download library
- extract it
- copy exif.py to Lib folder
- Some API demo source code can been found in comments sectio in exif.py
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()
Posted by Unknown at 1:38 PM 0 comments
Unix && Linux Distribution Timeline Wednesday, January 12, 2011
- Linux Distribution Timeline: http://futurist.se/gldt/
- Unix Distribution Timeline: http://www.levenez.com/unix/
Posted by Unknown at 4:32 PM 0 comments