Whisht Wind


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

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

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

Weblog menu

Feeds

Recent Entries

Today's referrers

今日点击: 4700

Locations of visitors to this page

20080512 星期一 2008年05月12日

地震

四川汶川县发生了7.8级大地震,据说几乎整个东亚都有感。

地球真是太不安全了,好多地震啊,看看这个吧,最近地球上所有的5级以上的地震,每天n次:

http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/quakes_big.php

[Read More]

My Tags:

( 2008年05月12日, 05:20:00 下午 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

20080511 星期日 2008年05月11日

Wine发布了1.0-rc1接近1.0了

今天无意间拿Wine在我的Ubuntu上运行了一下NetBeans的Windows版。让我吃惊的是居然毫无问题的运行了。执行了一下wine --version,居然发现已经是1.0-rc1了。
是个不错的消息,毕竟还有好多软件,游戏只有Windows版,有了Wine至少在某种程度上可以在linux上使用他们了。

为了方便使用OpenSolaris的朋友,我在OpenSolaris上编译了一个。需要的可以试试: 

wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2

下载之后unzip,然后用pkgadd安装。

bunzip  wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2

 

pkgadd -d wine-1.0-rc1-solaris-5.11-i86pc.pkg

安装路径为 /usr/local/wine.使用前请将/usr/local/wine/bin加入到PATH中:

 

 

  export PATH=$PATH:/usr/local/wine/bin

 开始使用了:

wine --version

wine notepad

....


 

 

[Read More]

My Tags:

( 2008年05月11日, 08:52:16 下午 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

20080502 星期五 2008年05月02日

Foxbeans 1.0.1.13 Released

Download it here: http://plugins.netbeans.org/PluginPortal/faces/PluginListPage.jsp?search=foxbeans

Foxbeans is a netbeans plugin to support
create Mozilla/Firefox/Thunderbird addons/extensions using netbeans.
You can also import an existing addons project to netbeans.
Changes on previous releases:

Add importing project support.

Add an options to configure the installed mozilla applications to used
while do the testing. Add the selected mozilla application to the
project node as a refer. Please don't modify files under Application
node unless you what you are doing.



New functions added to 1.0.1.13:

Add i18n support for xul file.

It will search and put the hard coded string for following attribute to a dtd file.

*=tooltiptext,label,accesskey,tooltiptextdown,tooltiptextup,title,

toolbar=toolbarname

label=value

key=key

New functions added to 1.0.1.11:

1. Add two functions to add/remove the missed language items from
properties/dtd locale files. Correct Language Files and minimize
Language Files. Correct will add missed string resources, this will
help if you want to release the files. Minimize will remove the string
resources which equal to the default "en-US" ones. This will help to
submit the upgraded files to http://www.babelzilla.org. babelzilla is a site to help localizing mozilla/Firefox addons.


2. Support add extensions to the testing env. You just need put the
addons you want to add to the test profiles to the extensions directory
under your project. They will be automatically installed. For example
you can put the javascript debugger there. XPI files or installed
folders are both supported. You can get the installed addon folders in
your /extensions folder. An small extension have been added by default. It will enable debug chrome files in javascript debugger.

Technorati Tags: , , , [Read More]

My Tags:

( 2008年05月02日, 06:28:56 下午 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

20080316 星期日 2008年03月16日

A patch to allow archive and download folder in mercurial repository with hgweb

Mercurial provides hgweb cgi scripts to allow you manage mercurial repositories using http server. And it allow download the archive of the repository as zip,tar.gz or tar.bz2. But it not allow you to download a whole sub folder as some other version control system web fronts. I create one patch to add this function. You can find it here.

Use  http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/  as an example. Follow this to set a mercurial repository over http. It's use sourceforge as an examples, but you can also use the similar to other isp if they provide python support.  You can also find the patch I created mercurial 0.9.4.

This is my first try on python. Let me know if you find some error/bug.

Thanks


[Read More]

My Tags:

( 2008年03月16日, 11:09:04 下午 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

为mercurial web cgi做了个打包下载文件夹的补丁

Mercurial提供了通过http方式维护代码仓库的cgi脚本,它支持打包下载整个仓库,却不支持打包下载子目录。所以我做了一个补丁来做这件事。你可以在这里下载它。http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/是一个部署之后的例子。你可以打包下载任何目录。

请参考 这个 在你的服务器上配置 mercurial,唯一的条件是你的服务器支持python。别忘了打我的补丁。

另外,我还做了用于mercurial 0.9.4的补丁

 

这是我第一次做python的东西。如果你发现其中有什么不妥请告诉我。

谢谢

Technorati Tags: , , , , ,

 

[Read More]

My Tags:

( 2008年03月16日, 10:55:03 下午 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

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 评论 [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

20080309 星期日 2008年03月09日

vmware上无法启动最新的Solaris的解决办法

最近在vmware上转了一下最新的OpenSolaris,发现安装完之后无法启动,就是在Grub时候黑屏了没响应。后来发现是启动时识别虚拟机的处理器的问题。可能导致不知道是启动64位版还是32位版。处理的办法是明确的告诉Grub去启动32位的操作系统核心。

具体步骤如下:
首先我们要启动进去,方法是在grub界面里编辑一下启动参数。机器启动之后在grub界面里按e键编辑第一个启动项目,你会看到如下两行:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS

module$ /platform/i86pc/$ISADIR/boot_archive
我们要做得是在每一行上敲e键,编辑他们,删除其中的
$ISADIR/. 每一行改完之后按回车返回。最终看起来是这样的:
kernel$ /platform/i86pc/kernel/unix -B $ZFS-BOOTFS

module$ /platform/i86pc/boot_archive

然后按b键启动即可。

每次这样改也不是办法,所以我们要到grub的配置里去改一下,加一个启动32为内核的选项。
首先要登录为root。
执行 zfs mount rpool 以便访问grub的配置。它在/rpool/boot/grub/menu.lst.
用vi打开它,找到ADDED BY BOOTADM所在的行,在它的前面加入如下三行:

title OpenSolaris 32 bit
kernel$ /platform/i86pc/kernel/unix -B $ZFS-BOOTFS


module$ /platform/i86pc/boot_archive


保存就行了。下次启动就自动进入32位模式。

Nexenta Core Platform也有类似的问题,处理方法类似,只不过找到menu.lst的方法不同。
在nexenta上你需要 mount -F zfs syspool /mnt 加载zfs池。要编辑的文件在/mnt/boot/grub/menu.lst.


编辑前:

编辑后:


启动之后:



Technorati Tags: , , , , , ,

( 2008年03月09日, 11:33:40 下午 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

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

20080213 星期三 2008年02月13日

虚拟化大行其道 - Sun正在收购Innotek

春节大采购!Sun在宣布收购MySql之后最近又宣布收购Innotek。如果你不知道Innotek,那么VirtualBox呢?VirtualBox是一个类似VMware的虚拟机软件。还是开源的。它可以运行在Windows, Linux, Macintosh和 OpenSolaris上。 最逗的是仅仅在Sun宣布收购Innotek的前一天,Innotek发布OpenSolaris版的VirtualBox.
抓紧时间试用一下VirtualBox吧 http://www.virtualbox.org/wiki/Downloads.


Technorati Tags: , , ,

( 2008年02月13日, 07:24:23 下午 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