Web 的个人资料真是一个乱七八糟照片日志列表 工具 帮助

日志


8月20日

Can you believe this?

 
In Linux kernel, gettimeofday() can jump into the future for 4398 seconds in multi-core enviroment.
 
This is much worse than the "accept()" call, and as bad as the "debian ssh key" problem.
 
 
" I have seen this as well (on a 2.6.20.4 kernel). The value returned was
always identical each time the glitch occured (just a little over 4398
seconds). I saw it watching packet receive timestamps and on the system in
question, it would generally hit this problem around once a minute. When
moving forward to a 2.6.21 kernel, the problem seemed to go away (also back
to 2.6.17, unfortunately I didn't have any sample points inbetween)."
7月15日

Sliverlight Highlights

 
 
Silverlight 1.0 consists of the core presentation framework, which is responsible for UI, interactivity and user input, basic UI controls, graphics and animation, media playback, DRM support, and DOM integration.
    * Input – handling input from devices like keyboard, mouse, stylus etc.
    * UI core – managing rendering of bitmap images (including compressed raster images like JPEG), vector graphics, text and animations.
    * Media – playback of MP3, WMA Standard, WMV7, WMV8 and WMV9/VC-1 streams.
    * XAML – to allow the UI layout to be created using XAML markup language.
A Silverlight application starts by invoking the Silverlight control from the HTML page, which then loads up a XAML file. The XAML file contains a Canvas object, which acts as placeholder for other elements. These elements can be animated using Event triggers. Events like keyboard or mouse movements can also raise Events which can be handled by custom scripts. Programmatic manipulation of the UI is achieved by using scripting languages to modify the Document Object Model of the Silverlight Canvas object.
 
Silverlight 2 includes a version of the .NET Framework, implementing the same full Common Language Runtime version as .NET Framework 3.0; so it can execute any .NET language including VB.NET and C# code. The XAML layout markup file (.xaml file) can be augmented by code-behind code, written in any .NET language, which contains the programming logic. It can be used to programmatically manipulate both the Silverlight application and the HTML page which hosts the Silverlight control. The XAML markup as well as the code, is compiled into .NET assemblies which are then compressed using ZIP and stored in a .xap file.
 
Sliverlight 2 adds support for network communication using sockets, over both IPv4 and IPv6. Sockets can be used for cross domain connections, but Silverlight uses an XML-based configuration file to control the cross-domain resource access policy, both for HTTP connections as well as socket connections. Silverlight sockets can only initiate a connection; they cannot listen for connections.
 
Silverlight 2 includes the Dynamic Language Runtime (DLR) which allows dynamic compilation and execution of dynamic (scripting) languages. Compilers for the languages based on the DLR (including IronPython and IronRuby) are be packaged with the DSL app in the .xap package.
 
Silverlight 2 also allows limited filesystem access to Silverlight applications. The file is sanitized of path information to prevent the application from getting access to information like user name and can be opened only in read-only mode. For local storage of data, Silverlight provides isolated local storage (isostorage), which is stored, outside the browser cache, in a hidden folder inside the user profile's private folder. It is by default set to 1 MB per URL. Data stored by a Silverlight application in the isostorage is identified by the URL that it loads from, can be accessed by that application only. All instances of Silverlight share the same isostorage, so all instances of the same Silverlight application can share the saved data, even if they are running on different browsers.
 
 
3月1日

推荐几本项目管理的书

 
最近打算浏览一下这几本书(技术管理相关的)
 
 
说实话我总是觉得这些关于项目管理的书都是把常识类东西理论化。不能说是骗人骗财,但是总是觉得有些空洞。估计这就是做工程和做商务的区别了。
 
靠,工程学生和商务学生的区别,这个题目居然还是一篇论文
 
 
2月25日

xbox with blu-ray?

External Blu-ray player for Xbox?
A one-act play:
HD DVD: Microsoft?
Microsoft: What is it, honey?
HD DVD: If I die ... will you ... will you remarry?
Microsoft: (chuckles softly) What kind of question is that?
HD DVD: Well ... it's just. Well. I think you should. I want you to be happy ...
Microsoft: SWEET!
 
Taken from dealnews.
6月20日

life boat sunk office? 程序自我修复?

 
从2005年夏天开始用outlook,养成习惯了就一直在用。有一个问题是每次运行outlook都是有一定概率outlook会停止响应,可能是因为我用了两个imap服务器。今天又遇到一回,打算宰掉outlook进程的时候发现有一个offlb.exe在运行。习惯性的google了一下,发现这个东西的全名是Office Life Boat for Program Recovery,然后是一些评论说这个东西让outlook停止响应。因果关系有点乱。
 
现在的软件都不肯承认自己出问题了,要尝试自我修复一下。这个算是半新半旧的研究课题吧。以前在学校的时候听过这么一个讲座。可惜想不起来名字了。
 
自我修复是好事。不过,如果修复程序有问题,那岂不是雪上加霜?。。。就像这个life boat, 让outlook动弹不得,还不如垮掉重来。
  
2月21日

夏令时vs系统更新

 
今年这边夏令时因为美国会的新法案要比以前早开始3个礼拜,从三月中开始,理由是要试试看能不能进一步节能。这个又掀起了一轮升级热,被称为一个小Y2K问题。微软提供了软件补丁,估计mac os x, inux也要打补丁。看slashdot上的讨论说IT都忙活的不行了,不更新的话金融交易结算会被折腾得比较乱。
 
感觉是美国会讨论法案的时候没有考虑计算机世界的工作量。有人认为这个改变即使节能也不能弥补各公司在改动软件投入的基金。用比较新的软件还好,至少有人给打补丁。那些老版本的操作的系统,老版本邮件服务器,老版本的java都要自己动手来丰衣足食才行。如果没有办法,就得无奈往外掏钱升级了。
 
对我们公司来说,服务器用的都是UTC,没有什么关系,就算时间错了,我们也用的是全系统虚拟timing, 没有啥影响。可怜的是我的freebsd 4.11, 没有服务支持了就随它去了。再想也没有什么,大不了我手动改时间,再不行3个礼拜后它自己就改过来了。:)
 
仔细想想我们这么轻松还是因为公司还没有开始有收入。唉,什么时候才能开始赚钱呢? 然后就可以嚎那个赚钱了,赚钱了。。。
3月29日

DesktopBSD 1.0 Final Released

 
 Don Church writes "DesktopBSD is reporting that the 1.0 Final of DesktopBSD was released today for both 32-bit and 64-bit x86 architectures. This cutting edge FreeBSD derivative now includes KDE 3.5.1 and a host of tools designed to make the BSD experience more palatable to novices. The DVD release even includes Amarok, Firefox and other popular software ready to go. They are offering downloads via several mirrors or the official torrent."
 
3月17日

WinXP on Mac is not a joke

 
 
"According to winxponmac.com, the contest has been won - nearly $14k to narf2006 for submitting a working solution to dual-booting Windows XP and Mac OS X on an Intel-Powered mac. A thread on osx86project.org has confirmations from several testers that the procedure works on the 17" iMac, the Mac mini, and the MacBook Pro. Many sets of pictures and videos (such as this installation video) are floating around (and mentioned in the thread). The solution itself should be posted soon." Poit! Congratulations to narf.
2月21日

IS S3 要出了

看起来没有我想的那么好。还是比较郁闷的电影模式。一直想自己s45的换成is s2/s3. 这个系列可以拍比较清楚地电影,然后可以拍电影的时候拍照。自己的s45拍的电影质量实在不怎么样,电池寿命也比较烂。
 
2月17日

Mac vs. PC -- Mac OS X vs. Windows

The Mactel-Linux folks have now successfully booted Linux on a 17" Core Duo iMac.
 
不明白为啥要在mac上装linux, 如果mac能装windows的话看来我就得放弃ibm t43聊。或者谁能把mac os x 放到pc上来运行也成。钱还是放在口袋比较好。
 
另外的消息是,有人分析jobs会放弃mac os x. 一大绑子人反驳说自己已经convert乐,意思是自己开始用mac os乐。让我不禁想起来Seinfeld里Elaine成功的convert一位同志。不过不幸的是第二天那位同志又convert back了。
 
---------
The Mactel-Linux folks have now successfully booted Linux on a 17" Core Duo iMac. They used the elilo bootloader, a modified kernel, and a hacked vesafb to boot from a USB drive. No GUI pictures for now, just white text on a black background. The distro of choice was Gentoo, and instructions and patches are promised this weekend."
 
 
11月14日

始于足下

自己做的视频传输,过一两天就开始打隔,不是图像没有了,就是声音没有了。折磨很多人很久。
 
被逼无奈,只好认真的看自己传输的东西里到底是什么有问题(以前只知道那边传出来的东西这边原封不动的收到了,做的网络做的没出息)。过去的好几个月,一直在不自觉地避免检查视频数据这个问题(说法是这是应用层的东西),视频压缩封包之类的,听起来就觉得很复杂。不过现在看来还是纸老虎,或者真老虎还没有遇到。
 
千里之行,始于足下,
逼上梁山,
退而结网,
都是有道理的, 但是做起来比较苦。
9月26日

Palm + GBA

这个周末试了一下从国内带来的GBA电影卡,看了柯南的一个电影版的一小段,感觉不错。这个小东西能从compact flash卡里读电影,电子书,音乐还有游戏。我刚好不愁没有多余的compact flash卡。。自己的闲着很久的gba终于有点用了。
 
顺便提一下我的老掉牙的palm zire, 2m内存。我还没有忙到用记事本的程度,所以这个小东西也没有什么用处像鸡肋。几个月前,发现有一个palm的中文外挂,能用来在palm上看小说。加上最近来跑来跑去,这个palm真的是消磨时间的好东西,而且电池支持的巨久,几天都没有问题。
 
看来很老的东西都是有一点用处的。现在的东西功能都很强大,但是真正对自己有用的不多,像自己的手机,那么多功能速度慢,而且功耗大。但是造东西的不能说别人有我没有,最后还是大家来买单。
 
6月26日

这么快就灵验了?

Codeweavers打算在新的mac os x上运行了,哈哈。我印象里crossover在linux上就不怎么样。不知道现在到了mac os x会变成什么样子。

http://www.codeweavers.com/about/general/press/?id=20050622

6月24日

老鼠vs.网络安全

slashdot上看到这么一段, 看来不需要几千台机器来搞掉一个网络。

It was the rat! Telephone, mobile and Internet access in New Zealand was disrupted over four hours after rats were found gnawing through cables. More than 100,000 customers were affected and even the country's stock exchange came to a standstill. Powerless to take action against the rats, Telecom New Zealand is seeking compensation from the electricity company it says is responsible for knocking out another pipeline which eliminated backup services. Nothing like a backup plan.

6月21日

linux上purify的等价工具

不记得在那里看到一句话,大意是“懒人推动世界进步”。本人对此深信不已,因为有了这句话,自己就变成了世界进步的推动力。我是个懒人,懒得用gdb跟踪实验代码,然后发现了居然有purify这样的帮人跟踪内存错误的工具,怎么说,就像。。。什么一样。可惜的是purify只能在学校的sun工作站用,还是很麻烦。今天被逼无奈,不得不google看有没有能在linux上能用的工具,还真有,valgrind. 真是懒人有懒福啊。

6月9日

Mac OS X

Taken from eweeks.com, By Steven J. Vaughan-Nichols June 7, 2005

The Mac community is in an uproar over Apple moving the Mac to Intel processors, but it's the Linux desktop and Longhorn programmers who should be reaching for the aspirin.

Mac OS X is not only the best desktop interface for Unix-style operating systems, it's the best desktop interface around—period.

----------------

什么时候能用Mac OS X运行native windows程序,那会让更多人头疼。如果那样,俺再穷也得买一个,不过得intel的笔记本芯片能跟G4有一拼才行,不要有10个小时的电池寿命但慢的像头驴。

FreeBSD Rules!

ibm的好消息,游戏机都要用powerpc了(三大头--微软索尼和任天堂)。

 

每天1百万条垃圾邮件

看到slashdot.com一篇文章,Steve Ballmer (微软的二瓢把子)每天收到1百万条垃圾邮件, 比Bill Gates的每年4百万要多100倍。想起来要当教授的同学,每天收到套词的半垃圾邮件,估计也会有类似的苦恼。

http://www.acme.com/mail_filtering/

6月7日

猪和linux

最近想解决一件让我很苦恼的事,怎么才能在程序里拿到本地的对外ip地址,gethostbyname在有些情况下不工作,好像用if_nameindex可以,又不知道portability怎么样。怎么会这么复杂?

google这个问题的时候发现了一句跟猪有关的话,算是对猪之歌的补充。

“Odd things animals. All dogs look up to you. All cats look down to you. Only the pig looks at you as an equal.”
-  Winston Churchill