CentOS 6启用Apache2 WebDAV模块

iPad上的iWork支持使用WebDAV存取文件,以下是在CentOS 6上启用WebDAV步骤:

1.检查httpd.conf中的配置信息,找到如下部分,并去掉相应的注释

2.配置虚拟主机,添加WebDAV配置
如将网站的/webdav 目录指向实际目录 /var/www/webdav,并设置存取权限

实际形成的VirtualHost配置文件如下:

3.添加新用户

/var/www/passwd.dav 为上面所指定的AuthUserFile路径
-c 表示不存在用户时创建,执行命令后按照提示设置密码

4.重启Apache

5.测试配置是否生效
启动小卡车(Transmit),找到WebDAV选项卡,输入连接信息

我们上面设置的是网站的/webdav目录,因此Initial Path需要填写/webdav
在iPad上则输入完整服务器地址 http://example.com/webdav
测试成功后便可在支持WebDAV的设备上自由的存取信息啦。
-EOF-

一周开源项目集锦(2011/11/01)

QualityBots
A tool for automated comparison of website layouts across multiple Chrome versions.
http://code.google.com/p/qualitybots/

Test Analytics
Test Analytics is a web application that allows rapid generation of a project’s ACC model — an alterative to a test plan that is faster to create and of more practical value.
http://code.google.com/p/test-analytics/

Script Cover
Javascript code coverage detector for web pages in Chrome
http://code.google.com/p/script-cover/

Google Tasks Porter
http://code.google.com/p/google-tasks-porter/
Demo https://google-tasks-porter.appspot.com/

Google APIs Client Library for Objective-C
http://code.google.com/p/google-api-objectivec-client/

Bootstrap
Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.
http://twitter.github.com/bootstrap/

heatmap.js
JavaScript Library for HTML5 canvas based heatmaps
http://www.patrick-wied.at/static/heatmapjs/

Google JS Test
Google JS Test is a fast javascript unit testing framework that runs on the V8 engine, without needing to launch a full browser.
http://code.google.com/p/google-js-test/

iCal(iPhone/iPad/Mac)添加中国农历和节日方法

不管是Mac上的上的日历,还是iPhone上的日历最初都是空空一片,只有日起和星期,有时候我们还希望能够看到对应的农历和节日信息。当然了,有时间的朋友可以一个一个的输进入,偷懒的朋友可以导入别人输入好共享出来的日历信息。

好消息是苹果有提供已经输入好的这些信息的共享日历,我们只需要添加到我们的日历中即可。
这张页面上列有苹果现有的共享日历清单:
http://www.apple.com/downloads/macosx/calendars/index_abc2.html

访问该页并找到自己想要的添加的日历,点击下载,浏览器会自动打开iCal并询问你是否添加该日历,点击订阅,等待载入日历信息,点击确定后,改日历就添加进你的iCal中了。

如果想要订阅的日历暂时隐藏不显示,选择日历,去掉前面的钩就不在日历上显示。

目前苹果提供的中国日历有三个,分别是:
中国节假日 http://www.apple.com/downloads/macosx/calendars/chinesepublicholidaycalendar_appleinc.html

中国农历(简体)http://www.apple.com/downloads/macosx/calendars/chineselunarholidaycalendarsimplified.html

中国农历(繁体)

除此之外,还有可以通过手动输入添加,进入”设置”—>”邮件、通讯录、日历”—>”添加账户…”—>”其他”—>”添加已订阅的日历”,然后输入要订阅的日历地址:
中国节假日:ical.mac.com/ical/China32Public32Holidays.ics
中国农历(简体):ical.mac.com/ical/China32Lunar32Simplified32Holidays.ics
中国农历(繁体):ical.mac.com/ical/China32Lunar32Traditional32Holidays.ics

点击”下一步”,然后”存储”,稍等片刻就可以在日历程序中看到订阅的日历了。
-EOF-

平时开发你用什么编辑器?

做个小调查,说说你平时开发都用些啥编辑器?有些朋友是只在IDE环境下开发,故IDE也在此列。

以下是我知道的编辑器/IDE清单,不在此列的请补充。
1. Notepad/Notepad++
2. Aptana
3. Eclipse
4. Visual Studio
5. Xcode
6. Dreamweaver
7. Textmate
8. Coda
9. vi/vim
10. Emacs
11. Espresso
12. BBEdit
13. WebStrom
14. sublimeText 2
15. editplus
…请您补充

我自己:上班使用Notepad++;在家使用Textmate/Xcode

我在v2ex,新浪微博,腾讯微博分别创建了这个投票,你可以直接回复本文参与,或者依你的喜好参与这三个平台的其一。

V2EX http://www.v2ex.com/t/20110
新浪微博 http://vote.weibo.com/vid=1079712
腾讯微博 http://url.cn/0PuqsK

谢谢你的参与!
-EOF-

结构化Web编程语言Dart

Google发布的结构化Web编程语言Dart
地址 http://www.dartlang.org/

支持在浏览器上 (Chrome, Safari 5+, Firefox 4+) 和服务器上运行。在浏览器运行需使用编译器转换成JavaScript代码。

示例:

官方有提供一个名为Dartboard的工具由于在浏览器中编写和调试代码。

Dartboard http://try-dart-lang.appspot.com/(被墙)

官方示例代码:
http://code.google.com/p/dart/

貌似被墙,先转一分语言规范文档文档到墙内,没有深入学习,故不做过多介绍。
[download id=”52″]

Updated:
由于Dartboard被墙无法访问,挂了个反向代理,供喜欢尝试Dart的朋友使用 http://dart.ioio.name/

Updated2:
官方Dartboard地址 http://try.dartlang.org/ (某些地区应该可以访问)

-EOF-