May 24, 2006

免费的1G网络硬盘

从 digg 上看到了免费的网络硬盘 - www.box.net
非常好用,非常简单,没有广告,免费空间仅有 1G 容量限制。
利用 WebDAV支持直接 mount(就是 iDisk 使用的传输协议,在 Windows 可以使用映射驱动器)。

Windows 的使用方法参考:http://diglog.com/view/2728

首先去 https://www.box.net/signup 注册一个账号。
注册内容非常简单,仅需要填写电子邮件和密码即可。

Box.net sign up screenshot

注册完成之后会回到登录区,输入刚才填入的用户名和密码即可,然后便进入了管理主页面,可以在这里新建目录,上传文件等等操作。

Default folder list

界面非常简单,使用了 Ajax 技术,所有操作都是即时的,每个图标右上角都有一个小向下三角,点击后会弹出菜单进行操作。
非常好的一点是可以为文件添加更加详细的 Info,还能使用 Tags,还能设置 Public 共享和 Private 共享。
唯一需要注意的是删除文件,需要在 Edit 对话框中进行。
同时在 Safari 中是不能依靠拖拽上传文件的。

前面提到 Box.net 使用了 WebDAV 技术,这样便可以向访问本地驱动器一样访问 Box.net。

在 Mac 中可以直接使用 Go(转到)菜单中的 Connect to server(连接到服务器)。
Mac OS X - Connect to server menu

在弹出的对话框中输入如下:
Connect to server

然后输入你注册的用户名和密码

Enter password

回车后就可以看见 box.net 上的文件了~

Box.net at local host

之后我们便可以像操作本机上的文件一样操作 Box.net。
除了系统自带的 Connect to server,我们还可以使用大名鼎鼎的文件传输工具 Transmit,它同样支持 WebDAV。

而在 Linux 之上,我们也可以利用 Konqueror 3 以上版本或者 GNOME 的 Connect to server,gnome-vfs 会为我们做好一切。
或者使用 DavFS,直接将 box.net 作为一个文件系统加载:http://dav.sourceforge.net/

作为一个网络硬盘最大的好处是它可以作为你的 Data storage,这样你可以申请一个免费的网络空间,然后把大东西都放在 box.net 上,然后再在网页里调用它。就像下面这样 ;-)

点击文件图标后文件会直接下载,无论什么格式都不会显示在浏览器中,也无法复制链接。
那就点击好了,然后在 Firefox/Safari 的下载管理器中复制链接,IE 用户就要比较郁闷咯 >_<

May 23, 2006

最近在混 Xoops

在 Xoops 上看到 DJ 写的一段话,非常有感触。
----------
源要开,开了之后还要积极参与,形成良性循环。如果只是把别人做好的开源项目或产品拿来包装一下再发布,甚至做成自己的商业产品盈利,这至多只能算是利用开源项目,拿来主义。
---------

原文在:http://xoops.org.cn/modules/wordpress/?p=277

May 15, 2006

vim 7.0 release one week ago

Actually I had build it the day after release in my mac.

This version have three new features important for me:

  • Tab support

  • Online English syntax check

  • Automatic completion for development



Here's my vim resource profile, modified based others, just unpack it and place it to $HOME.
http://www.kuangxuqing.com/wp-content/uploads/vimrc.gz

Tab support
To create a new tab just input:
: tabe
or press CTRL-N with my vim resource profile.

it will be looks like this:
New vim tab.

If you want to switch tabs, just input:
: tabn
or tabp
You also can press CTRL-/ for next tab.

Close tab just enter:
: close
or CTRL-D.

If you want to close all the tabs, or quit vim directly, just enter:
:qa (enter for Quit All)

Online English syntax check
In previous version, you also can check your spell with aspell or other programs, or other vim plugins.
But the intergration spell check is first built-in in this version.

To enable spell check. just enter:
: setlocal spell spelllang=en

You will see like below, the wrong words will be highlight by red color.

Vim spell check

If also can select other languages if your vim release words database, you can check it in /usr/share/vim/vim70/spell/ directory.

Automatic completion for development
With this feature, vim goes to be a project center from a normal editor.
In the vim announce, professed to it support C, HTML, Ruby, Python, PHP and the others ready.

I had just only tested C.

vim 7 function complete

To use syntax completion, just press CTRL-X, vim will print:
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y)

In this mode, these key means:
^]: Tag completion
^D: Definition completion
^F: File name completion
^I: Path pattern completion
^K: Dictionary pattern completion
^L: Whole line completion
^N: Keyword Local completion
^O: Omni completion
^V: Command-line completion

Other information about new vim, please check vim web site:
www.vim.org

About Me

My photo
This web site recorded something interesting about free software, photographics, music, other stuff and a little tic.

My new website location in www.kuangxuqing.com