存档

2007年1月 的存档

(收藏)汽车网络的分类及发展趋向

2007年1月23日 hufey 评论已被关闭
分类: saving 标签:

重新看好Symbian

2007年1月18日 hufey 评论已被关闭

Embedded OS的战争最后往往是API的战争。
Windows CE有广大的Windows 程序作基础, Linux有Posix API。只有Symbian(以前)是与众不同的。虽然Symbian是smartphone OS的老大,也养活了一堆小公司,但是对于一个第三方公司想为不同的系统写程序去维护几套API是痛不欲生的。Porting现有的程序也很困难。
直到今天看到Symbian的这个举措,我才相信Symbian的未来是可持续发展的。
——————————————————–
Symbian OS to gain POSIX libraries
Jan. 17, 2007
Symbian plans to beta test POSIX libraries for its Symbian OS this quarter. The PIPS (PIPS is POSIX on Symbian) libraries provide C and C++ APIs (application programming interfaces) in standard “libc,” “libm,” “lipthread,” and “libdl” libraries, with the aim of helping programmers migrate existing middleware and applications to Symbian.
The PIPS libraries were announced Jan. 16 in Beijing, where Symbian opened an office.
Symbian says PIPS will significantly reduce the work of migrating existing desktop and server components to Symbian OS. Typical applications might include web servers and file sharing software, the company says. For instance, mobile phone marketshare leader Nokia, which licenses Symbian for its smartphones, ported Apache to Symbian last summer.
Symbian executive VP Jorgen Behrens stated, “It is now realistic and desirable to migrate desktop and server code onto mobile devices.”
Symbian claims that there are about 100 million Symbian-based smartphones in the market, making it the top smartphone OS. However, Symbian’s fortunes may be falling, according to research reports last year from ARCchart, ABI, and The Diffusion Group.
Availability
A beta version of PIPS will be available for Symbian OS v9.1 (and above) as a downloadable .SIS file from the Symbian Developer Network by the end of Q1 2007, Symbian says.

分类: commenting 标签:

颠三倒四

2007年1月15日 hufey 评论已被关闭

周五象往常一样半夜两点多才睡
周六象往常一样睡到中午
周六晚决定早睡,12点就上了床
周日还是象往常一样接近中午才起床
本来打算去中关村买DVI线,结果中途去岳父大人家吃了吨中饭(在我是早饭)
结果又睡了几个小时,中关村也去不成了
周日晚上怎么也睡不着了
想了想在自己的desktop pc上装了ubuntu
以前一直是fedora,
另外的笔记本上是gentoo,
gentoo太脆弱,fedora升级不如ubuntu方便
fedora占了将近50G的硬盘实在是浪费
ubuntu确实是不错,方便,人性化
装上自己常用的软件后已经凌晨3点了
有了点困意
周一早上像往常一样9点起床
刮胡子手一快把嘴唇割破了,血流不止,找到创可贴剪下一小条贴在嘴唇上
已经10点了
出门打车,走了数百米,想起来手机忘带,只好付了起步费再回家上楼拿手机
再打车到公司

分类: listing 标签:

ZT: Linux: Accessing Files With O_DIRECT

2007年1月12日 hufey 评论已被关闭

Linux: Accessing Files With O_DIRECT
By Jeremy on Linux news
A thread on the lkml began with a query about using O_DIRECT when opening a file. An early white paper written by Andrea Arcangeli [interview] to describe the O_DIRECT patch before it was merged into the 2.4 kernel explains, “with O_DIRECT the kernel will do DMA directly from/to the physical memory pointed [to] by the userspace buffer passed as [a] parameter to the read/write syscalls. So there will be no CPU and memory bandwidth spent in the copies between userspace memory and kernel cache, and there will be no CPU time spent in kernel in the management of the cache (like cache lookups, per-page locks etc..).” Linux creator Linus Torvalds was quick to reply that despite all the claims there is no good reason for mounting files with O_DIRECT, suggesting that interfaces like madvise() and posix_fadvise() should be used instead, “there really is no valid reason for EVER using O_DIRECT. You need a buffer whatever IO you do, and it might as well be the page cache. There are better ways to control the page cache than play games and think that a page cache isn’t necessary.”
Linus went on to explain, “the only reason O_DIRECT exists is because database people are too used to it, because other OS’s haven’t had enough taste to tell them to do it right, so they’ve historically hacked their OS to get out of the way. As a result, our madvise and/or posix_fadvise interfaces may not be all that strong, because people sadly don’t use them that much. It’s a sad example of a totally broken interface (O_DIRECT) resulting in better interfaces not getting used, and then not getting as much development effort put into them.” To further underscore his point, he humorously added:

“The whole notion of “direct IO” is totally brain damaged. Just say no.
This is your brain: O
This is your brain on O_DIRECT: .
Any questions?

分类: saving 标签:

remote X apps running howto

2007年1月11日 hufey 评论已被关闭

host side: $xhost +[client_name|client ip]
client side: $export DISPLAY=[host_name|host ip]:0
$xapp

分类: saving 标签:

Save a copy

2007年1月11日 hufey 评论已被关闭

So, if I asked you about art, you’d probably give me the skinny on Every art book ever written.
  Michelangelo. You know a lot about him: life’s work, political aspirations, him and the Pope, sexual orientation, the whole works, right?
  But I bet you can’t tell me what it smells like in the Sistine Chapel. You’ve never actually stood there and looked up at that beautiful ceiling…seen that.
  If I ask you about women, you’ll probably give me a syllabus of your personal favorites. You may have even been laid a few times. But you can’t tell me what it feels like to wake up next to a woman and feel truly happy.
  You’re a tough kid.
  And I ask you about war, you’d probably, uh, throw Shakespeare at me, right? “Once more unto the breach, dear friends…” But you’ve never been near one. You’ve never held your best friend’s head in your lap…and watched him gasp his last breath, lookin’ to you for help.
  I ask you about love, you’ll probably quote me a sonnet. But you’ve never looked at a woman and been totally vulnerable……known someone that could level you with her eyes……feelin’ like God put an angel on earth just for you……who could rescue you from the depths of hell……and you wouldn’t know what it’s like to be her angel……to have that love for her, be there forever…through anything…through cancer.
  And you wouldn’t know about sleeping sittin’ up in a hospital room for two months, holding her hand, because the doctors could see in your eyes that the terms “visiting hours” don’t apply to you.
  You don’t know about real loss……’cause that only occurs when you love something more than you love yourself.I doubt you’ve ever dared to love anybody that much.
  I look at you.I don’t see an intelligent, confident man. I see a cocky, scared-shitless kid.
  But you’re a genius, Will. No one denies that. No one could possibly understand the depths of you. But you presume to know everything about me, because you saw a painting of mine. You ripped my fuckin’ life apart. You’re an orphan, right? Do you think I know the first thing about how hard your life has been? How you feel? Who you are? Because I read Oliver Twist? Does that encapsulate you? Personally, I don’t give a shit about all that. Because you know what? I can’t learn anything from you I can’t read in some fuckin’ book. Unless, you wanna talk about you…who you are. Then I ‘m fasci ated. I’m in.
  But you don’t want to do that, do you, sport? You’re terrified of what you might say.
– Good Will Hunting

分类: watching 标签:

折腾的结果

2007年1月7日 hufey 评论已被关闭

出于审美平衡的考虑,最后还是决定把一个5层的架子锯为一大一小俩架子

这样的结果推翻了整个房间的布局,又重新归置一边。把所有的线重走一边,包括音箱线的24个接头,视频输出的16个接头,5根电源线,两根光纤。。。
用HIVICAST测试的结果是我的H31使用所有的默认参数即可。黑/白/灰度对比度达到HIVICAST能测到到的最好水平。hue/gamma/肤色也不用调。

分类: hacking 标签:

生命在于折腾

2007年1月3日 hufey 评论已被关闭

分类: listing 标签:

新年之夜给我的奖赏(2007)

2007年1月2日 hufey 评论已被关闭

去年的新年之夜给我的奖赏是找到一个bug
今年是更实际些的新投影

感谢乔老爷治帮忙,Optoma H31,入门级的DLP,价格便宜量又足
12月31号特意休假一天,白天去平安里调研线材,去中关村考察apple DVI convertor
晚上去宜家买了个架子,(有点偏大,主要是照顾功放)
晚上打完羽毛球到家已经10点了,装架子,把原来放在前面的功放、DVD、低音炮和XBOX挪到后边,重走所有的连线,调试,忙完了已经2007年1月1号2点半了
后续工作是更换所有的音箱线,更换遮光窗帘。
要不要更换支持DVI的DVD还在犹豫中,如果更换,最大的好处是XBOX的ComponentRGB就不用插来插去,而且据说DVI输出的效果更好,只可惜我的一代名机Pioneer 6310A就要下岗了
面对100寸的16:9屏幕,我要对70块的电影票说一声:去你大爷的

分类: listing 标签: