2010年2月18日星期四

QDou is not far away

Happy chinese new year.For my part,There is one more important thing I can tell you: what tedious days of study ,thought ,practice,experience ,went to the equipment of I who was able to impose upon all of you that QDou is not far away.
Meanwhile,I decided to buy N900 for testing.I can't wait to release QDou,But there is some small problems to consider them.Just give me sometime. :-)
                                          photoview of QDou

2010年1月28日星期四

When Qt for Window meets Qt for Symbian

Today,I install Qt libraries for Symbian again in my computer which has been installed Qt libraries for Windows.Of course,the version(4.6.1) is higher than last time. It reminds me of trouble that happened in the previous time.I just remember it’s a summer of last year.The situation is that every time I build the Symbian apps,the compiler displays a error that can't find bld.inf  and *.mmp .I google it and ask many people how to solve the problem.Later I find that the reason why miss there two important files is that compiler does not generate them.And How to.I didn’t know.So last time,I failed.But today,I make it.Look here,If the environment variable QMAKESPEC sets symbian-abld.It will be ok.It turns out that Qt for Symbian use symbian-abld not the value I set for Qt libraries for windows.
Like aamer4yu says:
"I dont know if you will read this post.. but just wanted to thank you a lot.. a ton of thanks..
I was not able to build qt projects for symbian...and was searching for a solution for almost a month"
A month to aamer4yu,half a year for me.
Why am I interested in Qt for Symbian suddenly?
The answer is QDou. :-)

2010年1月23日星期六

QDou is on the way

I am home for about 1 month, after home, I am going to finish my graduate design: Qdou(Douban client on Symbian).This time I will use Declarative UI to finish it.With this Computer language,you can build the animation rich, fluid user interfaces,such as iphone.But........I am familiar with Qt rather than ECMAScript(QML is an extension to ECMAScript,So is javascript).at the beginning,It's a little difficult for me.Fortunately, there is a document about QML provided by Qt.after viewing document,you will find gradually that it's more convenient in some respects,like automatic property bindings and network transparency.This is what I need.Just like qt engineer says,even if you do not know how to use Qt, you can also program a pretty apps with Qml.Of course,qt would not let us down on extending.Because QML is fully extensible from C++.It's absolutely fantastic property for me. I have completed coding parts of qDou on the pc.From now on,maybe I will speed up.
                 seach ATB's album                                                                             Trilogy(detail)

2010年1月11日星期一

Html view With New QWebElement In Qt 4.6

Take a rest and I look at the "What's New in Qt 4.6"in"Qt Reference Documentation"
and find a new class QWebElement.I feel html view can use a another way to generate the tag node.
Four months age, I make it with QtNetwork and html parser (with QtNetwork to Get page source and Html parser to parse It),I need to code a Html parser because of  no Qwebelement that Time.In this way,Although fast, Coding a html parser is not easy.
And Now, Using QWebElement in Webkit, It's very convenient, although Getting Page source with Qtwebkit will spend longer, it's easier.Just for fun.
the source of  html view is Here.
By the way,QDou is on the way.

2010年1月5日星期二

Video about Html view

I'm home for graduate design Now. Initially, I choosen a subject on the search engines, but later I found that the subject has been already selected by another student, and accidentally I discovered a cell phone related. At this time, Qt 4.6 just released. The next generation of control: Declarative UI can be used on the phone. The subject is "douban mobile phone client",  douban is a Chinese social network site, you can learn about a lot of books, movies, music, or the latest activities in your city. Of course, you can make friends, write diary. surprised.I named my client as "QDou",I think I can take advantage of opportunity to buy a new phone.Maybe 5800 or N97 because of  them for s60v5.
Take a short break and recorded a video about the html view,enjoy.


2009年12月14日星期一

After Optimizing Htmlview


Today,I have optimized Htmlview because of  one bug of Html-parser that takes me long time to find it!!
The reason why the function did't work when I use Htmlview on a webpage,especially one page that contain more than 2000 tags because the results of parser gets contain a few tags in script tag(web Developers can use  regular expression or other expression to help them to deal with web page).So just take these tags from script tag.and It's Ok.Cool.
the related blogs you can find here,take a screennap.Just for jun,It's really really beautiful because each node is generated dynamically.The project integrate physics engine,so it will produce realistic animations.


2009年12月11日星期五

Three Amazing Days

I was worried about my dissertation several days ago and I was concerned about data visualization area.So I wanted to do my dissertation in this area.Because I visited this site:information aesthetics usually , I have been inspired by this Tokyo Cairo: Comparing Obama’s Foreign Policy Speeches
The author of this software build it with process v1.0,and I wrote this software with Qt.To My surprise,I just spend 3 days to achieve my embryonic work.I can't believe it .Maybe I will take visual text comparison as my dissertation.Of course,It looks like simple and I will spend much time to make this tool stronger,And here is a screenshot of My orginal work .At the same time,I will apperiate the inspiration blprnt gave me,Thank you.
visual text comparison tool


the result of two text comparison
the two text is selected from two different sections of  Seven sins (the reason I chosen this Movie beause of spectacular performance of Kevin Spacey)

2009年11月11日星期三

WVisual Search Section Four

今天来说说,关于google map的一个小把戏,先给图


Wvisual Search -- html view (2)


目的就是在拖动google map的时候,可以自动更新中心点的准确位置,当地的天气情况和显示位置的最新资讯,这就是QtWebkit+Google Map v3+Google Weather+Google News的一个小应用。主要使用到了Qtwebkit网页和本地的一个混编,有了Qt网页和本地软件的界限都比较模糊了,现在又出来了QtwebClient(),再给一个web app的demo,机制大家可以看这里,类似于一个java的applet。

先说说实现的过程,初始化Google Map,当然最好有一个本地的Google Map的html本地文件,每次载入更好。在html本地文件中,增加Map的监听事件
google.maps.event.addListenner(map,"center_Changed",centerChanged);
设置一个定时器,每过一段时间去检测一次,如果现在的中心点发生了改变,那么就去解析当前的地址
geocoder.geocode({'latLng':map.get_center()},getAddressName);

地理信息解析到了之后,会自动触发getAddressNamegetAddressNmae传得是一个函数指针(我是这样认为的)

function getAddressName(results,status)
{
addresssresult = results; //addressres是我的一个全局变量
if(status ==google.maps.GeocoderStatus.OK)
{
if(status !=google.maps.GeocoderStatus.ZERO_RESULTS)
{
var c =address[0].formatted_address;
mapNews.getCityName(c);
}
else
{
mapNews.findFailed();
}
}
}

这里的mapNews是我用webkit的在html中增加的一个我的对象,具体做法连接

connect(frame,SIGNAL(javaScriptWindowObjectCleared),this,SLOT(attachObject));
void QMapNews::attachObject()
{
page()->mainFrame()->addToJavaScriptWindowObject("mapNews",this);
}

现在可能你就恍然大悟了 :-)
在我们的本地getCityName之后,对地址进行解析,然后到Google News进行爬取,网址是
http://news.google.cn/news?hl=zh-CN&ie=UTF-8&q=YourAddress

用js做一下处理,
至于天气大致相同,下面是你得到具体位置之后得到该地区天气数据的地址
http://www.google.com/ig/api?hl=zh-cn&weather=,,,%1,%2
%1 %2用该地址的纬度和经度代替,可以在html中使用
var lat =map.get_center().lat();
vat lng =map.get_center().lng();
得到
只不过你访问的时候,Google Weather会返回给你的是一个xml,用QXmlStreamReader进行一下,处理就OK了。

2009年11月4日星期三

WVisual Search Section Three

今天,我要展示一下,所谓的Html view,
Wvisual Search---Four Function其实在我的第一篇blog中aharef: html标签可视化的qt实现过程 ,已经谈到了实现的过程,但是不经意间在网上搜到了这篇文章Websites as GraphsWe need money not art,Markavian开发出了一个remix版本,用户可以对其中的每个点hoverEnter或者hoverleave的时候,会显示标签的内容.
mkv_html graph

我现在的目标跟他相似,只不过我显示的是具体的标签,而不是标签中所以的内容,因为如果现实标签所有的内容的话,这样UI可能会有很大困难,而且我看了一下,如果打开那个applet的话,CPU就50%了,不管生成是否结束,或者网页节点为100个或者2000个,而且我的链接可以点击,并且用默认浏览器打开,实现很简单.......,有了前一篇文章,只需要简单的剔除tag和它的attribute,然后再paintevent画一下,就OK了,不仅可以拖拽节点,cpu也很稳定,这个功能重新增强了之后,已经加入到Wvisual Search中了............have Fun

Wvisual Search -- html view (2)

2009年10月2日星期五

Thank to SearchMe

今天在完善我的可视化搜索Wvisual Search的时候,搜索到一篇很好的文章
http://paranimage.com/magic-number-of-100-visualization-technology-application/,从上面了解到很多前沿的可视化应用,将其中一些经典的加入到我的Wvisual,其中
ttp://www.aharef.info/2006/05/websites_as_graphs.htm,就是其中的一部.这里主要说回到Searchme。其实我最早写Wvisual Search的时候,主要的灵感来源就是Searchme,记得我第一次知道Searchme是在csdn上,当时评选当年最新的10大技术,Searchme榜上有名,第一次进入Searchme的时候,真的是眼前一亮,当时的第一感觉就是华丽的Picture Flow,接着就是一些新奇的可视化技术,关键字定位,内嵌音乐视频播放,放大镜功能,垂直搜索…..(searchme在UI上实现的,我都用Qt在Wvisual Seachme中实现,下一篇我会介绍我的它),虽然searchme不支持中文搜索,但是我还是从Searchme上学到了很多,最重要的一点就是:做创新性的事情,然后从技术上去实现它。再在后面,我大肆在我的朋友圈子中鼓吹Seachme,Searchme也确实在一段时间内取得了相当不错业绩(当然,我有亿万分之一的功劳,),没记错的话,searchme当时的google PR值应该为7,从大概在6月份的时候,如果你输入www.searchme.com的话,那么浏览器会自动跳转到google,原因:在4月份的时候,searchme在首页推出广告业务之后,流量急剧下降,然后又缺少5100w的风投,”一夜之间”当初被喻为”google 杀手”的Searchme就只有这样无奈的”倒下”,转向了TV,还真有点黑色幽默。其实在稍早的时候,iphone等一些手机都嵌入了searchme的可视化搜索

Embeded----Searchme
Firefox IE也都可以嵌入插件,很难想象一个表面上无限风光的新技术在一个策略上的改变,带来的是2个月后的下线。 (Searchme 最后的 Picture Flow画面,好像还做了些改变,有了图片的远近拉伸,但是现在是什么画面都显示不出来了).

The Last Picture of Searchme


Searchme UI的3种显示方式
1. 网络原因,在当下的网络状况下,特别是在中国当前的网络状况下(当然还有GFW),实现可视化难度大,作为运营方后台强大服务器的支撑,大型的架构,文本存取和图片存取,怎样在UI和数据传输上找到平滑点,系统资源的占有。作为用户,我当时访问Searchme的时候,搜索条目多几次的话,那么Searchme主界面就会出现stackflow,,虽然说PictureFlow很华丽,但是我们不难想象一下,也有这样的可能,假如有好事者,搜索了之后,就拖动一直下拉的话,再快的网络条件我想也无法满足,而且现在象可视化为了在UI达到华丽的效果,一般会用到flash,你翻页过快的话,看看你的CPU使用率,想象一下,如果是google或者baidu,点下一页,就OK 了。一旦速度上得不到满足的话,他们只需在地址栏上输入个g.cn或者baidu就解决问题了,而不是等待你去解决服务器的问题,或者自己去删除IE中的历史记录.
2. 信息响应上的速度和信息采集上的完整性,试想一下,如果你是一名开发人员,你会选用google还是Searchme,99%的用户会选择google,为什么?原因很简单,前面提到过,1.速度,开发人员需要的是快速找到解决问题的办法,在他们看来速度是一切制胜的根本,他们不会等待一个图片载入超过5秒,5秒钟他们已经足够在地址栏输入g.cn了。
特别像是中国的程序员,做事情一般都比较急,他们是没有时间去等待你去响应的,还有就是信息采集上的完整性,比如你一段代码出现了错误,并且网上有N多人出现了这样的错误,他们或是在自己的blog上或则bbs上发表自己的观点,或者转载,但是其实这样的解决方式基本上都是大同小异,并且说基本上在content上一致的(转载>=copy),难道要为这样的关于一个网页的采集”重复”20-30(网页快照),而且这样的快照页面除了最重要的content是一样的,其他都不一样(但是这些对用户没有一点用的东西。有人说可视化搜索注重的是用户的体验,这样的体验主要是在界面上,带来的是”娱乐”的元素。所有说可视化的主旨是New and Different,而传统的搜索却是Fast and Accurate。
3 资金上,说到底Searchme下线,策略的失败上主要是没有找到盈利点,投入和收入不成比例,导致最后仍然需要大量的资金注入才能正常运营,的确是这样的,这让我想起了中国的视频网站,youku tudou,ku6……这些看似表面红火的网站不断的增加带宽和服务器带来的是中国视频网站的恶性竞争,谁都知道他们在烧钱,每年投入几千万,看谁有钱,谁能坚持到最后,谁坚持到最后,谁就是这个行业当之无愧的”王者”,其实这样玩下去,受伤的是大家,你就是坐成了最后一把交椅,请问你在几年能收回成本呢?也许Searchme广告业务开展过慢,或者说进军手机搜索业务过迟,但是现在说都于事无补了。现在这个空白应该靠谁来填补呢?