21 October 2011

why I like iphone instead of android phone?

because android project is actually very close project. Not real open source project.
e.g. google does not release android 3 source code.
and I got another source from http://www.visionmobile.com/blog/2011/07/the-open-governance-index-measuring-openness-from-android-to-webkit/
it is the most 'close' openness project...

OpenSource is not just a label. but for google it is for marketing.
Xiaoyu Guan (Sam)

16 August 2011

QNAP TS-212 default load mod_rewrite.so

you can simply put phpinfo.php file in the httpdoc root.
Loaded Modules core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_log_config mod_env mod_setenvif mod_version prefork http_core mod_mime mod_dav mod_status mod_autoindex mod_asis mod_cgi mod_dav_fs mod_dav_lock mod_vhost_alias mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_php5

Xiaoyu Guan (Sam)

29 July 2011

[mac]play QNAP movie from Frontrow solution

the solution is very simple, you need to create a alias of your qnap movie folder, and drag this alias to your mac default movies folder. then start your frontrow... 

Xiaoyu Guan (Sam)

24 July 2011

how to downgrade mac os from lion to snow leopard

step 0, suppose you have a fully time machine backup
step 1, insert snow leopard installation dvd into mac and rebook it.
step 2, when boot screen show up, press and hold "C"
step 3, snow leopard installation menu will show up, on toolar choose restore from time machine.
step 4, in the time machine choose your latest backup from list, click next and next.
after 3~4hours, your mac will back to SL.
the reason why I downgrade mac os is globalscan iscsi not support lion, or because lion change api , not compatiable with original softwares. 
the second reason is my cannon dpp is not working neither. 
the third reason is lion full screen apps which seems like not support duo monitor. full screen apps is always 'full screen' on one monitor.
the four reason is because in 5 min I found the above three bugs, I feel lion is like vista 2. 

luckily, I have timemachine. after 4 hours restore, my mac back to alive with my iscsi target.

Xiaoyu Guan (Sam)

13 June 2011

blender voodoo 3 motion tracking

Voodoo and Blender is free(Open Source) tool for 3D animation and video.
Last two days, I try to play with this two tools. Although Blender offer great tutorials for beginners, but they are not practical for me.
I want something quick. I dont want to spend too much understand all the tools. I just want to know what I need to solve my problem.
Thanks, Youtube. there are a lot of nice tutorials.
such as

check the video.
but the problem is blender 2.57 UI is big difference with 2.49. it is not good for beginner.
I waste half day on "converting" all tutorial from 2.4 to 2.5. It always better keep using same version blender as tutorial.
So you are sure the tools are works. what I learned:
1. Voodoo blender python scripts is not full working on blender 2.5. it is better export python blender script to version 2.4.
2. If you try to render in quicktime format with RGBA, my blender 2.5 just crash.
3. disadvantage of 2.4. my footage doesnt show correctly in 2.4. but it show correct in 2.5. e.g. my footage is 29.97 fps, in total it is 165 frames. but it doesnt show right in 2.4.

the last thing is that, you still need adobe after effect to process final step.
Blender cannot merge animation layer and my footage. I hope there are some opensource tools or blender plugin can handle this. that would be perfect.
At the end, with the two tools, user can create greate 3d animation with their own footage. I am very happy with these tools.

Xiaoyu Guan (Sam)

12 June 2011

3D motion tracking blender 2.5 voodoo 1.10b import scripts error

I got Blender 2.57.1 r36339 and voodoo1.10beta installed

to fix the error
step 1. replace "set_frame"


see post from http://blenderartists.org/forum/archive/index.php/t-205187.html

step2 replace
vcam.matrix_world = mathutils.Matrix([0.986389,0.010807,0.164070,0.000000], [-0.004649,-0.995605,0.093532,0.000000], [0.164360,-0.093022,-0.982004,0.000000], [-1.506059,0.231502,7.789379,1.000000])


vcam.matrix_world = mathutils.Matrix(([0.986389,0.010807,0.164070,0.000000], [-0.004649,-0.995605,0.093532,0.000000], [0.164360,-0.093022,-0.982004,0.000000], [-1.506059,0.231502,7.789379,1.000000]))

see post from


then run script

Xiaoyu Guan (Sam)

24 May 2011

Install Telnet Client on Windows 7 or Windows Vista

On Windows 7, Windows Vista, you can use the Windows Features tool to install optional components.

To install Telnet Client on Windows 7 or Windows Vista

  1. Click Start, and then click Control Panel.

  2. On the Control Panel Home page, click Programs.

  3. In the Programs and Features section, click Turn Windows features on or off.

  4. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

  5. In the Windows Features list, select Telnet Client, and then click OK.

Xiaoyu Guan (Sam)

27 April 2011

Fwd: Ext JS 4 is Here - The Most Advanced JavaScript Framework

Ext JS 4 is a revolution in our flagship JavaScript framework, arguably the best in the world. » Sencha Inc. Buy Now      Download
Ext JS 4 is here.
Charts & Drawing
Charts & Drawing
Ext JS 4 delivers the most advanced drawing, charting, and graphing capabilities of any JavaScript framework. Forget Flash; Add advanced interactive animations and look sharp on everything from IE 6 to Chrome 11.
Refined Components
Refined Components
Grids are faster, lighter, and easier to customize than ever in Ext JS 4. Grid HTML markup is drastically reduced and has built-in intelligence — rendering only markup needed for features enabled in your app.
Advanced Data
Advanced Data
The Ext JS 4 Data package enables you to retrieve, decode and use data in your web apps. The data package has been completely rewritten for version 4, while using the same approach as previous versions.
Custom Theming
Custom Theming
Ext JS 4 harnesses technology originally developed for Sencha Touch to make the framework more themeable than ever. Every aspect of the framework's appearance can be customized, often in a single variable.
Ext JS 4 has a fully refactored layout engine with higher efficiency and performance — as well as brand new layouts like DockLayout, and more!
Ed, his arms wide
Learning Resources
With our new API Docs viewer and helpful guides, Ext JS 4 is more approachable than ever. Dive in and make something amazing today!
Get up to speed on Ext JS 4 with Sencha Training
Sencha Training Our hands-on course is designed for experienced Ext JS 3 developers and covers the new features in Ext JS 4, including the Ext Core Class System, the new Data Model, Forms, Layouts, Charting & Drawing, new Grid features, Theming with Sass, and Sencha MVC.
Download Ext JS 4 Now
Download the world's most advanced JavaScript framework today.
Buy Ext JS 4Download Ext JS

Copyright © 2011 Sencha Inc. 1700 Seaport Boulevard #120, Redwood City, CA 94063 USA
You are receiving this email because you have registered with Sencha. To remove yourself from our mailing list, please Unsubscribe

Xiaoyu Guan (Sam)

21 April 2011


qnap_ts_212, a set on Flickr.

NAS QNAP TS-212 review part1

Recently, I got one NAS QNAP TS-212 with 2tb *2 samsung harddisk. 
it took around half hour to install the harddisk. but it is quite easy to do it. 
after around two weeks, I am quite satisfy with it. 
now I will briefly list all the pros and cons which I think. 
1. quiet, very quiet compare with deskpc. 
2. energy. it cost 13 watt in operation, 6 watt on sleep.
3. speed. copy file from nas to pc or mac. the speed can reach my router top speed. I have router 100Mbits/second= around 11MB/s. you can play HD video directly via AFP, windows network service. with wifi connection. No problem for stream HD video. very fast. 
4. simple web server with php, mysql. with python,etc.I have installed some php program but I dont have a lot of time to play with it. 

1. 256MB memory, not upgradeable. it sounds same strategy as apple(ipad, iphone), want more memory,pay more money. IT S STUPID!!!!. 
2. low speed cpu. for heavy works. when I upload large photo to my gallery3, the gallery3 become very slow. it take 80~90% cpu for cache new photo. if reduce the upload photo size, the gallery3 become much faster.
3. less USB ports, no esata port. 

at the end, NAS is neither pc nor server. it is a thin client for share files and data. It is ideal for share music, foto, video with family and friends. of course. it can do more jobs than this. you should be aware you looking for a network harddisk with extra functions or you are looking for a pc which can do more jobs.



Xiaoyu Guan (Sam)

19 April 2011

godmode in win7

To enter in "godmode," one will only need to create a new folder and rename it to:


Once it's done, the folder's icon will change and will contain many control options.
Xiaoyu Guan (Sam)

19 February 2011

Thanks Stephen Elop

The world is crazy. Nokia is hug Microsoft. The two brother has something in common. they produce some un-creative products.
I would minus + minus still minus.
Thanks stephone, He will make nokia become history.

Xiaoyu Guan (Sam)

19 January 2011

Yesterday, I found out the easiest way convert polyline Z to poline.
The tool is ogr2ogr, with option '-nlt'
example cmd: 
ogr2ogr -f "ESRI Shapefile" -nlt "LINESTRING" Your_Output_polyline.shp Your_Input_polylineZ.shp

ogr  is cool!!

Xiaoyu Guan (Sam)

06 January 2011

shp2pgsql cmd tool has been used for two years. This week I found that PostGIS release new tool shp2pgsql GUI.
This tool is much easy for beginner to import shapefile to PostGIS. 
Especially, when you want to import shapefile with options.
Such as if you want to import ë á, you have to use -W "LATIN1" function.

01 January 2011

How to convert excel data into pgsql
      1.       Save excel data into csv
1.1   Change column name xcoord= long, ycoord = lat
1.2   Sperator coma(,)
2.       Convert csv to shapefiles.
2.1   Create dbf file via commad( ogr2ogr –f "ESRI Shapefile" OUTPUT.shp INPUT.csv)
2.2   Create shapefile via command ( ogr2ogr –f "ESRI Shapefile" OUTPUT.shp INPUT.vrt)
Sample code:
  <OGRVRTLayer name="test">
    <SrcDataSource relativeToVRT="1">F:\temp\sam\testcsv</SrcDataSource>
    <GeometryField encoding="PointFromColumns" x="long" y="lat"/>
3. convert shape to sql via shp2pgsql
With this ogr2ogr libray, who need ESRI arcgis?!?!

Xiaoyu Guan (Sam)