Tech and Academic things for Chianshin

Sunday, March 22, 2009

Bluetooth headset problem - 6021 [Archive] - Developer Discussion Boards

Bluetooth headset problem - 6021 [Archive] - Developer Discussion Boards

Hi,

not sure what caused this problem but it may have to do with removing the battery without switching the phone off first (could be wrong)

To sort this try the follow:

1. Get hold of data cable or wired-headset
2. Switch off bluetooth
3. Connect data cable or wired-headset to ur phone
4. Dis-connect data cable or wired-headset to ur phone
5. Switch phone's bluetooth on
6. Switch bluetooth headset on

It should work ok

To stop this from repeating, try switching phone's bluetooth off, then bluetooth headset off, phone's bluetooth on, then bluetooth headset on.

Good luck
Yiannis

Saturday, March 21, 2009

Sealing Packages within a JAR File (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)

Sealing Packages within a JAR File (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files): "Packages within JAR files can be optionally sealed, which means that all classes defined in that package must be archived in the same JAR file. You might want to seal a package, for example, to ensure version consistency among the classes in your software.

You seal a package in a JAR file by adding the Sealed header in the manifest, which has the general form:

Name: myCompany/myPackage/
Sealed: true

The value myCompany/myPackage/ is the name of the package to seal.

Note that the package name must end with a '/'"

Sunday, March 15, 2009

cygwin CDT debug path



This is how to integrate gdb-cdt-cygwin.

Saturday, March 14, 2009

【原创】大纵深的移动位置业务- 西西河

【原创】大纵深的移动位置业务- 西西河

首先反过来想想,为什么调用APIs,通过写程序的办法去画 UI不是很好的办法呢?两个原因,1. 用户不仅需要下载软件包,还要安装它。在安装软件包的时候,不可避免的需要设置很多环境变量,这是一个很容易出错的环节,所以第一个原因是软件包的安装很麻烦。2. 安全方面的顾虑。用户怎么知道他下载的软件包不是病毒?因为这两个原因,让用户安装软件会遭到极大的抵触。但是文本文件没有安全上的顾虑,同时也没有安装上的困难。这是第一个好处。

第二个好处,UI肩负着三个方面的交互任务,第一个是应用系统和用户之间的交互,第二个是和远程的网络服务器之间的交互,第三个是和手机本地的外围设备,以及业务逻辑模块之间的交互。
http://www.ccthere.com/article/1950974
对于这三个交互,浏览器已经解决了三个中间的两个,1. 和用户之间的交互,2. 和远程的网络服务器之间的交互。这对于我们应用开发商来讲,是一个非常好的消息,至少我们可以偷懒三分之二。

但是剩余的问题是如何与手机本地的外围设备,以及业务逻辑模块之间的交互。这是我们这里需要重点谈的。
http://www.ccthere.com/article/1950974
点看全图

最好的办法是找Google Android team的黄泰一博士这样的朋友,跟他说,“你能不能在WebKit和V8 JavaScript engine里面,给我预装一个插口,有了这个插口之后我可以插入各种各样的业务逻辑模块?”
http://www.ccthere.com/article/1950974
但是目前来讲,1. 我们还没有看到一个设计成熟的,工作稳定的手机浏览器插件机制。2. 即便是有这样的浏览器,各个平台,不同厂家的浏览器,它们的插件接口也没有一个统一的,规范的标准。3. 这个业务逻辑模块能插,其它模块不一定能插,也就是说,可扩展性也是一个顾虑。

携程旅行网少帅梁建章:创业往往是看一个机会_财富人物职场_财经纵横_新浪网

携程旅行网少帅梁建章:创业往往是看一个机会_财富人物职场_财经纵横_新浪网

 有了创意后,构建携程团队成了创业的关键。“一开始就是几个朋友,”梁建章笑着说,与梁建章相熟的沈南鹏、季琦成了携程最初的创始人。3人很快决定,从原来的工作中抽身出来,全力以赴把网站做好。在分工上,优势互补是他们的长处。梁建章是 ORACLE中国咨询总监,技术背景深厚;沈南鹏是耶鲁MBA,是个具有多年投资经验的银行家,具备相当的融资能力和宏观决策能力;而季琦则有着丰富的创业经验,擅长管理、销售。后来,为加强旅游行业,梁建章又找到了上海旅行社总经理范敏加盟,从此携程管理团队构建成功,正式起航。

  热情超越机会就是泡沫

  携程成立正逢互联网高潮,不费多大力气,梁建章就迅速从IDG、软银、晨兴等风险投资商中融到了500多万美元的资金。自此后,携程一路走来风调雨顺。谈起当年的互联网泡沫,梁建章认为,创业往往是看一个机会,但“热情若超越机会就是泡沫”,而机会再加上热情,就是创业的最好契机,而他就抓住了这个千载难逢的机会。“当时给风险投资商的商业计划书很是简陋,”梁建章回忆起当年的创业过程开始面带微笑。而更让他欣喜的是,当年的几张纸,竟诞生了如今携程的雏形,现在看来,当时用公式套算的营收成长率,“居然还是蛮准的”。

  与当年风起云涌的网站CEO们不同,梁建章对风险投资商说的“故事”,4年后竟成了现实。2000年,携程的员工不足100人,如今这个数字已涨到1500多人(如果仍将携程归纳为网络公司的话,梁建章领导下的携程已是中国最大的网络公司)。2002年携程的营业额就已高达10亿元人民币,而新浪2003年全年收入也不过9.4亿元人民币,携程的净利润更是让平均净利润率只有1%~2 %的传统旅游行业望其项背。“携程的业务呈现了几十倍的成长,”在梁建章导演下,携程实现了从丑小鸭到白天鹅的转变,谈及上市后携程的未来,梁建章更是为自己立下了“3年成长1倍”的目标。

  但在梁建章的手中,携程变得越来越不像网站了。4年来,携程先是收购了当时最大的酒店预定中心——现代运通;随后又切入机票预订领域,并购机票代理公司北京海岸;去年又将华程西南旅行社收入囊中,正式进军自助游市场。在梁建章的设想中,携程并不是家网站,而是“高科技武装的旅行服务公司”,是传统行业的整合者。

  在目前携程1500多人的员工,有超过一半来自呼叫中心,在上市路演时,梁建章就一再向投资者解释,携程为什么会有呼叫中心。梁建章解释道,携程设置呼叫中心,是因为中国和美国的国情不同。在中国电话早已普及,却仍不能像美国人那方便,事实上目前携程70%的业务来自传统的呼叫中心。

【原创】大纵深的移动位置业务- 西西河

【原创】大纵深的移动位置业务- 西西河: "总结一下,今天我们讲了两个趋势,一个趋势暗示,手机应用的开发应该强调网络版,另外一个趋势暗示,应该着重开发手机本地版。对于移动位置业务来讲,出路是既有手机版,也要网络端支持,两者相互协调。所以,移动位置业务,是一个大纵深的应用。对于大纵深的应用开发,手机端要解决跨平台的问题,充分利用手机浏览器的强大功能,是缓解手机端跨平台开发的一个值得思考的道路。网络服务器端开发工作最主要的挑战,是解决内容挖掘的问题,内容挖掘的关键不仅仅在于 UGC,而且需要强调UEC。"

【原创】大纵深的移动位置业务- 西西河

【原创】大纵深的移动位置业务- 西西河

第一步,在各个手机平台,我们装一个很小的嵌入式的HTTP server。
http://www.ccthere.com/article/1950974
第二步,对于所有的应用逻辑,包括嵌入式的求路引擎,搜索引擎等等之类,我们把它们转换为服务。把这些服务放到HTTP server里面运行。

第三步,当UI要和这些应用逻辑进行交互的时候,可以通过HTTP Protocol调用这些HTTP services。
http://www.ccthere.com/article/1950974
这个办法的好处是,1. 比较容易实现,2. 在我们应用开发商可以控制的范围之内,不需要等待浏览器和JavaScript engine的支持
===================================
This is kind of the oneClick.

Friday, March 13, 2009

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

前文谈过,Android对于手机OS的贡献,主要体现在三个方面,1. 梳理Linux Kernel,2. 梳理Linux Middleware,3. 构建Dalvik虚拟机。大家对Dalvik VM谈论得比较多,因为它的意义很明显,方便应用开发者使用Java语言编程。但是对于梳理Linux Kernel和Middleware这两个成果,论者较少。
http://www.ccthere.com/thread/2049540/2
后续章节中,我们会谈到山寨MTK手机的内核Nucleus,以 VxWorks实时OS称雄的,嵌入式OS业界老大Wind River公司梳理的Linux,还有Nokia的Maemo版Linux。如果Android版Linux被广泛接受,那么将来的手机OS在底层方面的竞争,就不再是春秋战国那样群雄割据的状态,而是两个超级大国争霸的两极世界, Android Linux 对阵 WinMobile。

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

Palm公司对于Kernel的频繁更改,给人一种下盘不稳的感觉。先是Palm OS,后来换成Wind River版Linux,后来又换成Linux 2.6,将来会不会倒向Android?那将是富有戏剧性的一幕。
WebOS 的主要成绩,在我看来主要是三个方面,1. Service container,目的是方便应用程序的安装和版本管理,以及多种应用程序之间的协调。2. WebKit-based Widget Toolkit,基于WebKit的手机脸谱。3. Palm Bus,提供脸谱与应用程序之间,应用程序与应用程序之间的数据交换渠道。

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

现在分为两大阵营,一个阵营是Ajax,也就是JavaScript加XML,WebOS似乎比较倾向于Ajax阵营,后文详述。另一个阵营立足于视频技术,Adobe Flex,Microsoft Silverlight,还有Sun Microsystems的JavaFX Mobile,呈三国鼎立的局面,其中曹魏是Adobe Flex。

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

邓侃:【原创】新时代新潮流WebOS 【1】,第2页- 西西河

图3显示的是应用程序的启动控件。启动控件应该包括两部分,一个是包含各个应用程序启动键的多幅页面,另一个是主屏幕下方的常用热键。这个设计与iPhone的主屏幕设计及其相似。
http://www.ccthere.com/thread/2049540/2
点看全图
Figure 4. WebOS UI design: Card View for Workflow
Courtesy链接出处
http://www.ccthere.com/thread/2049540/2
启动应用程序以后,如果应用逻辑复杂,可以设置有先后顺序的多个卡片,组成完整的工作流程。

点看全图
Figure 5. WebOS UI design: Banner Notificationhttp://www.ccthere.com/thread/2049540/2
Courtesy链接出处

在使用某个应用的同时,在屏幕下方可以用走马方式显示某些时效性很强的提示。例如上图中“Brian Venetian:Hey did you talk to ...”,如果这段文字超出了屏幕的宽度,那么整个字幕从右往左缓慢移动,这个方式称为走马。
http://www.ccthere.com/thread/2049540/2
点看全图
Figure 6. WebOS UI design: Dashboard popped from Banner Notification
Courtesy链接出处
http://www.ccthere.com/thread/2049540/2
仪表盘显示的是所有正在运行的应用程序。通常情况下,仪表盘是隐藏的,用户可以通过点击走马提示或者有关热键打开仪表盘。


的确,WebOS在手机UI方面的设计,强调了手机屏幕的特点,以及用户的行为习惯。但是可以十分肯定地断言,Roger McNamee不会因为手机UI的设计,就给Palm公司4.25亿美元的巨额投资。http://www.ccthere.com/thread/2049540/2

原因很简单,三十年前,在1979年,GUI对于PC的OS来说,是革命性的突破。革命性不仅体现在设计理念史无前例,而且在技术实现手段上,也有划时代的突破。三十年过去了,2009年WebOS对于手机UI的新设计,虽然可以称得上新颖,但是谈不上革命。另外,手机UI的技术实现手段也已经很成熟,不存在什么划时代的挑战与突破。

既然手机UI不是手机OS的关键,那么有别于PC OS的手机OS的关键在哪里呢?新书第一章没有详细解说,但是片言只语,留了一根缩头藏尾的线索,这根线索就是WebOS的架构图。http://www.ccthere.com/thread/2049540/2

Wednesday, March 11, 2009

Py - The Online Python Zine

Py - The Online Python Zine

What separates jEdit from others is that one can customize and extend jEdit using Python. jEdit is written in Java (TM) but with JythonInterpreter, a jEdit plugin that embeds Jython into jEdit, one can write macros, and even plugins for jEdit in Python. In fact, much of the JythonInterpreter plugin itself is written in Python! This article is an introduction to customizing and enhancing jEdit with macros written in Python.

What makes the jython could call/use all class in jdk and jedit class? is it the so-called dynamic language's feature?

Saturday, March 07, 2009

Current Computer Tools I am using

Current Computer Tools I am using

Brief Discribtion




I am still working on Windows. It is easy to use, and plenty software could run on it.
I still use a lot time browsing internet and listen to music.

As to Linux, now I prefer to do serious work via Debian, but use Ubuntu as desktop enviroment.



And I always use two machine, one LinuxBox one Windows, sit down before the windnows machine, using windows to code and Read & Write documents.
The linux box is always acted as a server: CVS server is placed on it, and linuxBox also do compiling and computational work.



Detail Software List


WindowsXp/Windows2003



Prgraming Tools:



General Text Editor


Notepad++,
--Notpad++ is beautiful, and resource costing is very little. Anyway it is great.

C++ Coding


Eclipse, Jedit, Visual Studio, Slickedit;

-- Eclipse is a really good tool for gcc tool chain. But when I came to work on Win32 platform, it cannot work with VC++ tool Chain. So I have to find a another editor for it. Eclipse is the real tool that I have used for my C++ working until now.
-- Jedit is my choice for Win32 tool chain, which is fully customize and as powerful as Vi and Emacs. Many feature and ideas in working with VI and Emacs, you could find in Jedit. Although, visual studio is always a good choice.
-- Slickedit is great, but it crashed on the cluster I am using, not that stable. So I discard it.

  • Saving the set of the plugin and properties, so I have no need to pick up the plugins and configration as well as shortcuts for them.

  • Be familiar with Jpython in Jedit, so I could write macros for it for my convenience.



Java Coding:


Eclipse;
-- Eclipse is good for me. I am comfortable working with it. Now it seems no tool will be greater than it.

Fortran Design:


Compaq Visual fortran; Emacs+G95;
-- I do not do FORTRAN anymore.

UMl digram:


Together;
-- I used to use Rose, but it is not good at code generate and get diagram from code. I did not pay for together, just use it illegally. It is good at combine the code and the diagrams.

Configuration management


CVS, Sablime, SVN
-- CVS is great, easy to setup, easy to find support;
-- Sablime is good combine the source version with the bug system. But it is heavy and feature lacking. I need to make a tool to identify whether I have added/modified the files in the Sablime system.
-- SVN is a good substitution of CVS, but until now I did not find reason to switch to SVN.

CVS/SVN GUI
WinCVS, smartcvs, smartsnv;
--- WinCVS is smart, quickly and stable, feature rich. But it seems become out of time.
-- smartcvs/smartcvs is java made, so they could run on different platform with same user experience, and it is compatible to the command line cvs/svn very good, unlike wincvs using cvsnt, making it incompatible with cygwin's cvs.

Compare&Merge:
WinMerge, Beyond compare;
-- Beyond Compare still seems more professional, but WinMerge is Free. Now I am using Winmerge more.

DataLang:
Matlab/IDL;
--Malab is free in our university, In our field IDL is very popular, but i still did not get a lisence to use it.

Algebra:
Mathematica;
-- I am using mathematica. But I am nolong working on these field.

NetWork


WWW: Internet Explore, Firefox+google_Tool_Bar //I like the netscape communicator style navigating interface.

Offline: WinHTTrack; //it provide a index page to navigate all the website that have been downloaded.

FTP/SFTP: WinSCP;//it's free.

SSH: PuTTY;//it's good, SecretCRT is good and can support script lang, but cannot display color.

Download: flashget.

X server: X-win32/Xming; // X-win32 is not free, but it have a feature StarNetSSH, I like it. Xming is very good software.

Virus: McAfee /Norton; //McAfee is free in our university, but i like to use symantec AntiVirus Corporation.

Doc:


Common Doc: Office 2007//

Tex IDE: WinEdit/TeXnicCenter/Emacs // it is good, but it also cannot support all the feature of Latex. I am also trying to swith to Emacs

Latex: MiKTeX // though the final compiling work is done on linux box, but on windows we also has a compiling enviroment.

Reference: JabRef,EndNote; JabRef is very good, and entirely written by Java. It is the first Desktop software the I(a Java funs) really like. But either MS Offie nor starOffice can work with the bib system in Latex, so the result in JabRef cannot be shared in Office software. But endNote can be used in MS office, what's regret is that it is not free.

PDF: Acrobat 7.0 // the full version of acrobat is usefully. but in lab I only use acrobat reader. because it is free.

Linux:


WidnowsManager: Fluxbox, mwm, kde&Gnome // using fluxbox is very easy. Kde is used in native envioment on RH7 sytem. But in later Fedora system I prefer Gnome. FVWM maybe better for professional user, but I think it is hard to use. And windows Enviroment like kde has prepared a good enviroment for us, and we can use it freely, efficient. We do not need to reconfig fvwm to make it work well and efficient.

Text EditEmacs, Vi //by and by I more and more found emacs is a good enviroment.

Common Usage: Wget, gcc 4.0.

MPI: LAMMPI/MPICH/OpenMPI // i am mainly using LAMMPI.

Version Control: CVS, subversion System; // i haved used CVS, but I now I am also look at Subversion system.

Conclution/Rules in software working enviroment


1, spend time to learn the tools, it will save time in future.


TodoList in working enviroment improvement:



Completed Task



  1. emacs display a very beautiful face on linux: gray-green backgroud, and gray-yellow forgroudn font. But on windows, emacs still display a black-white face. How can I get a linux style face on windows? -- I have got it. Thanks for Li, Dahang to reply in groups. -- But i switch back becaue I found that my define of the colore always make me confusing when use the default colore from Emacs to highlight the program source code.



  1. gcc, gFortran; I want to use gGfortran, then i avoid compiling fortran code on my own linux machine, instead of logon to others machine and compile fortran by pggroup soft. I cannot install a gFortran on alpha machine, but the linux i am using is a Alpha machine. how can i do?-- now i compile it on windows uisng G95.