Whisht Wind


« 十一月 2009
星期日星期一星期二星期三星期四星期五星期六
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
今天

Subscribe

Add to My YahooSubscribe in RojoSubscribe in NewsGator OnlineThis blog's XML feed
Subscribe with BloglinesAdd to Google

Search this blog

Blog Roll

Downloads

Other Links

Popular Tags

addons android archive autoloading autopager china chinese cisco dhcp dict earthquake firefox flock fonts foxbeans hgweb j2me java javame jstardict jstardictm language mercurial milax moon mozilla mtu nb-xul netbeans openoffice opensolaris pack palette recommended solaris stardict tar.gz tar.gz2 vpn vpnclient windows wine xul zip 嫦娥 郑萍如 面板

Weblog menu

Feeds

Recent Entries

Today's referrers

今日点击: 1912

Locations of visitors to this page

20081202 星期二 2008年12月02日

AutoPager recommanded by Mozilla editors. AutoPager自动翻页扩展进了Mozilla推荐列表

AutoPager recommanded by Mozilla editors.
https://addons.mozilla.org/en-US/firefox/recommended
Try it now if you haven't installed.
https://addons.mozilla.org/en-US/firefox/addon/4925


AutoPager自动翻页扩展进了Mozilla推荐列表。先恭喜我自己一下。
https://addons.mozilla.org/en-US/firefox/recommended
如果你还没有安装,那就现在试试吧。
https://addons.mozilla.org/en-US/firefox/addon/4925


Technorati Tags: , , , , [Read More]

My Tags:

( 2008年12月02日, 01:25:15 下午 CST ) [Listen] Permalink 评论 [4]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20080316 星期日 2008年03月16日

Netbeans 开发之 添加自定义面板到现有编辑器

 

为了给我自己的 Netbeans插件 Foxbeans 添加功能,所以我最近研究了一下NetBeans插件的开发。这里会记录一些我的发现,以便其他人可以参考。作为第一篇,我先谢谢如何添加自定义面板。先说说如何给现有文件编辑器添加面板。这里我的例子是html编辑器,完整源代码在这里,效果如下,拖到网页上就添加一个 :):


大 的大致工作思路是用一个XML (下面说的smile.xml)文件定义面板中的一个项。这包含它的名称,描述,图标,以及实现它的类名。layer.xml中引用这个文件,把它加入一 个所谓的folder中,每个编辑器可以使用一到多个这种folder中的项。html编辑器使用的是HTMLPalette (JSP使用JSPPalette). 你可以将你的项加入到它的folder中。如果你做过Firefox插件的话,你会看到他们使用的是相同的思路。在Firefox中,这叫 overlay,也就是覆盖。实际上也不是覆盖,而是添加。一些动态语言里有这种类似的语法。你可以向一个已经在其他地方定义的类里添加新的属性和方法。 扯远了。:)

大致的步骤如下:


Technorati Tags: , , ,

[Read More]

My Tags:

( 2008年03月16日, 12:20:08 下午 CST ) [Listen] Permalink 评论 [1]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20080301 星期六 2008年03月01日

Milax 超小的OpenSolaris发行版 50M

无意中从一个同事的blog中发现了一个超小的OpenSolaris发行版。它支持光盘启动和USB启动。原名叫Damn Small Solaris,现在叫Milax. 它和linux界出名的DSL(Damn Small Linux)类似,包含的程序也类似,不同的是它是基于OpenSolaris内核的,所以支持一些Solaris上才有的功能,例如dtrace, zfs, brandz等。它可以用做体验光盘,也可以作为修复光盘使用。它的授权协议也是CDDL 1.
这里是下载地址页面:http://milax.org/?page_id=9,光盘版:http://www.genunix.org/distributions/dss/milax011sunhelpru.iso, USB版: http://www.genunix.org/distributions/dss/milax011sunhelpru.usb.
目前它主要提供了如下程序:

Beaver, Vim, Dillo, Midnight Commander, emelFM, XMMS, Xpdf, VNC viewer, Rdesktop, AxyFTP, Irssi.

启动后请用 alex用户登录,密码也是alex。root的密码也是root。启动图形界面的命令是 startx。执行"su -"命令可以获得root权限。

套用目前很流行的一种说法: 很小很强大!


目前不支持中文。最近会找点时间看看有没有汉化她的可能。:)

启动截屏:

运行截屏:




Technorati Tags: , ,

My Tags:

( 2008年03月01日, 02:28:17 下午 CST ) [Listen] Permalink 评论 [0]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071216 星期日 2007年12月16日

jStarDictM/jStarDict-BB 0.5.3 released

jStarDictM/jStarDict-BB 0.5.3 released. Implemented the Browse Path function in Add Dict, so you can put the dict in any place of the sd card in your phone and add dict in dict manager.Download from http://www.teesoft.info/content/view/36/36/



Technorati Tags: , , ,

My Tags:

( 2007年12月16日, 02:37:49 下午 CST ) [Listen] Permalink 评论 [0]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071208 星期六 2007年12月08日

嫦娥月图上多出的小坑有了一个比较合理的解释:拼接错位

这次发布的嫦娥月图被发现比 Google Moon上的对应图片对了一个小坑。经过多天之后终于有个名为美的眼睛 的网友给出了一个比较合理的分析。可能是制图时将一幅图拼错了位。 详情见这里。 官方公布的三维图中已经修复了这一错误。瑕不掩瑜,我们还是要热烈庆祝嫦娥的成功。不过如果官方在接下来的几天能过高调出来澄清这个问题将更好了。
下面是网友给出的分析示意图,将虚线左边往上提一提就完全一样了:

       
官方的3d图:


从嫦娥月图又一次见证了人肉搜索的威力。开源的魅力某种程度上也是如此吧。


Technorati Tags: ,

My Tags:

( 2007年12月08日, 11:48:06 下午 CST ) [Listen] Permalink 评论 [1]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

OpenOffice文字显示混乱的处理

OpenOffice文字显示混乱的处理

如果打开的文件中使用了包含了系统中不存在的字体,那么OpeOffice有可能将文档显示的有点混乱。OpenOffice其实是提供了解决方案的,那就是字体映射表。OpenOffice会用你指定的字体替换文档指定的字体。例如我用温泉正黑替换宋体。方法是Tools->Options->OpenOffice.org->Fonts:


My Tags:

( 2007年12月08日, 11:48:28 上午 CST ) [Listen] Permalink 评论 [3]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071201 星期六 2007年12月01日

抗战时期的美女杀手——郑萍如

这是一篇转过来的文章 。有感于最近某大导演不顾历史事实,仅凭一篇似是而非的小说,及其充满想像力的小脑袋,用其高超的拍摄技巧,将一位可歌可泣的烈士,在其死了60余年之后拖出来鞭尸。

抗战时期的美女杀手——郑萍如

周佛海口中的郑萍如

 

《江心秋月推荐》

 

1945年深秋,重庆歌乐山,一片郁郁葱葱的松林之中,有一座四面用竹篱围起来的院落,院里有一排十来间平房。在抗战时期,这里曾是中美合作所副主任梅乐斯和参谋长贝乐利的住处,现在成为关押周佛海、丁默邨汪伪大汉奸的临时场所。

[Read More]

My Tags:

( 2007年12月01日, 09:13:59 下午 CST ) [Listen] Permalink 评论 [3]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071125 星期日 2007年11月25日

foxbeans:更快更好的开发firefox/mozilla插件

做了个开发firefox扩展的netbeans插件。只需简单的几步就可以创建一个可以在firefox/mozilla/thunderbird/netbeans/flock/seamonkey的mozilla系列的软件上使用的扩展。
请从这里下载netbeans 6.0,从这里这里下载foxbeans插件。安装netbeans之后安装foxbeans,之后新建工程里就会多一个Mozilla Addons的选项。

My Tags:

( 2007年11月25日, 11:15:26 下午 CST ) [Listen] Permalink 评论 [0]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

foxbeans: create firefox mozilla thunderbird netbeans flock seamonkey addons /extensions in netbeans

Just create a netbeans plugin to support user netbeans as the ide to create the firefox addons /extension. It supports creating addons for firefox mozilla thunderbird netbeans flock seamonkey and sunbird.  You need netbeans 6.0 and this plugin. Another download site. Just download the plugin file, start netbeans 6.0, goto Tools->Plugins->Download and add the downloaded nbm file. Here are some pictures: Technorati Tags: , , , ,

My Tags:

( 2007年11月25日, 11:02:06 下午 CST ) [Listen] Permalink 评论 [0]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071117 星期六 2007年11月17日

Google机器人(android)来了

Google的手机策略终于浮出水面了。它将通过开放手机联盟(open handset alliance,http://www.openhandsetalliance.com,不知道正式的英文翻译是不是这样)发布一款开源的手机操作系 统,这东西叫android,查了一下字典,意思是机器人。这一查还真吓了我一条,这个机器人不知道指的是那个即将发布的手机还你我。
不管怎么说还是先看看它是个什么东西吧。
Android这东西据说是 Google收购一个同名小公司得到的。这东西据说包含以下功能:

  1. 一个可重用的应用程序框架。

      本人大概试用了一下它的 SDK开发工具集,目前基本上是基于Javaxml的。其界面的开发模式类似于 Mozilla XUL. 就是用一堆 xml文件将界面布局描述出来,再用程序绑定数据和事件处理。 其中最有意思的是R.java,是自动生成的资源索引文件,就是给每一个每一个资源,包括图片,界面,字符串等编号,程序中只需要引用这些就行了。这个文 件是编译的时候生成的,这样可能比java里目前常用的properties文件基于字符串的查找要快很多。但是我有时候也在想这种自动生成的编号要如何 维护?每次生成的是不是会变掉呢?改动资源之后再生成是否就变掉了能?如果会随便变调的话那就有些麻烦了,就会有程序和资源不同步啊,多个工程不太容易共 享资源啊等等问题。 当然了我也没深入研究,希望是我杞人忧天了。扯远了,回到正题。 Google没有这个可重用的框架是Java的,而且在SDK里还提供了一个 AIDL程序,就是Android Interface Definition LanguageAndroid界面定义语言,也是是一种 IDL语言。由此可见 java将不是 Android的唯一编程语言。java编程需要IDL吗?以前还真没用过!当然这只是我的一个猜想,或者人家就是有些理由必须用IDL而不能用 java interface

  1. Dalvik virtual machine 据说是一个为手机优化的java虚拟机。不过更多的说法是为了避开Sunjava授权。这个虚拟机的能执行扩展名为dex的文件。AndroidSDK提供了一个程序dx来生成这种文件。这让我想起了黑莓的alxcod文件。为了支持黑莓手机,你要写一个 alx文件,然后用 RIM提供的工具将 jar文件转换到 cod文件。不过黑莓还好,支持标准的j2me的各种标准,只要是符合标准的程序转换格式之后都能在黑莓上使用。比如本人的词典程序就有黑莓版。但是这个机器人就不好说了,至少从它目前的SDK中没看出它会支持j2me. 不过它的SDK中的android.jar里有一些javax.microedition.lcdui的类。不知道他们到底是怎么想的。

  2. 一个集成的浏览器。基于WebKit,就是苹果上的 safari,最早叫 KHTML。从KDE世界走出来的。开源的世界真是有意思,从solaris,linux,bsdgnome,kdemozilla,webkit,再到compiz,beryl。有时候开源项目之间的竞争与对立较之商业软件更甚。那么这次为什么是 WebKit胜出呢?WebKit可能确实有些过人之处吧?或者因为http://trac.webkit.org/projects/webkit/wiki/S60Webkit有成功案例?又或者是因为Mozilla/Firefox已经太过肥大,没法适应手机的需要?拭目以待后续发展吧。这同时让我想起了OpenOffice,好像至今没有人真正开始将它移植到手机平台。所以目前的开源手机平台上始终没有一个可以和微软Office抗衡的开源办公软件。这不能不说是一个遗憾啊。不知道Google是不是希望我们在手机上用Google Doc吧?至少目前从模拟器里来运行看起来还是惨不忍睹。

  3. 优化了的图形显示。这个就比较牛了。支持2D之外,还支持通过OpenGL ES 1.0标准支持3D,甚至还有可选的硬件加速. OpenGL ES 1.0是参照OpenGL 1.3标准制定的。ESembedded systems(嵌入式系统)的缩写。

    不知道这和Java3D又是什么关系。是另起炉灶吗?希望不是,但是谁知道呢。

  4. SQLite数据存储。 SQLite是一个开源的数据库。它非常小,而且最特殊的是它的协议。它是public的。就是没有协议,全宇宙的共通财产,你爱怎么处置都行。

  5. 媒体格式支持。据说支持各种视频,音频及图片格式,如MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF等。不过不知是不是支持rm格式?如果支持,是移动rm还是标准rm

  6. GSM (2G),EDGE(2.75G),3G, 蓝牙,Wifi等。

  7. 数码相机,GPS等。

  8. 丰富的开发资源。废话。那个系统不提供啊。

    好了就是这些了。

    突然想起来,Sun也收购了一家生产手机操作系统的公司savaje。一直看到http://www.savaje.com/上说 Sun已经完成了对savaje的收购。据说就是Java Mobile FX(见http://www.sf.org.cn/news/industry/200707/20070716092839.html)。


    多一种选择对最终用户来说终归是好事,不过开发人员就比较头疼了。

My Tags:

( 2007年11月17日, 01:48:43 下午 CST ) [Listen] Permalink 评论 [1]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

20071114 星期三 2007年11月14日

关于"老外"

最近看到一篇外国朋友的文章认为"老外"是中国人对外国人不尊重的称呼. 仔细想了想,觉得作为中国人,并没有在"老外"这个词赋予贬义. 个人认为这是对外国人的一种亲切的称呼,或者至少是中性的一个称呼. 或许那位外国误解了"老"的意思. "老"在这里并不能理解为"年老的","老外"也不能理解为"年老的外国人". 老除了表示年龄大的,还有一些其他的用法. 就像"老师"不能理解为"年老的师傅". 当然从词源上讲"老师"可能真的是来源自"年老的师傅",但是现在已经成为一种固定的称呼的. 还有一类"老"的用法例如"老兄","老弟","老姐" 这一类,更多的是一种昵称,某种程度上表示"固定的","长期的",例如"老朋友",就是表示认识很久了的长期的朋友.  再有就是"老张","老王","老李"之类这些词中的"老",他们可以用来称呼比你大的人,某种程度上是表示"年老的",但是这个地方却是一种尊称,表示所称呼的对象有资历. 这种称呼可以作为第二人称或第三人称用. 比如可以尊称你正在谈话的对方,也可以是第三方. 如果一个老外这样称呼一个中国朋友,那么你的朋友会感觉你非常尊重他,也会认为你的中文比较有水准. 比如我姓李,别人就可以称呼我为"老李". (当然现在还是叫"小李"的多.:) ,偶尔被人称为老李还有点怪怪).

基于以上的原因我认为"老外"的"老"基本上介于"老师"的"老"和"老兄"的老之间. 基本上是一种固定的称呼,甚至是某种昵称.  历史上在中文中却是有一些对外国人的蔑称,例如"洋人","洋鬼子"等. 这些都是特定历史条件下的产物,是时,外国人凭着坚船厉炮任意凌辱中国人,所以中国人对外国人也没有好的称呼. 现在时过境迁,这些蔑称也没人用了.

 语言还真是有有意思的东西. 单一个"老"字就那么有意思.

My Tags:

( 2007年11月14日, 10:57:18 下午 CST ) [Listen] Permalink 评论 [1]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists