辋川集

木末芙蓉花,山中发红萼,涧户寂无人,纷纷开且落

By - 陳 思敬

Post Format

aside – Typically styled without a title. Similar to a Facebook note update. gallery – A gallery of images. Post will likely contain a gallery shortcode and will have image attachments. status – A short status update, similar to a Twitter status update.

By - 陳 思敬

Wiki伪静态化和Post Rivision清除

周五下班之后,完成了MediaWiki的URL伪静态化,WordPress和MediaWiki的.htaccess策略互不干扰,很不错。 我是借这个应用完成的:https://shorturls.redwerks.org 并没有完全看懂Apache mod_rewrite的文档: http://httpd.apache.org/docs/current/rewrite/ http://httpd.apache.org/docs/current/mod/mod_rewrite.html 因为Wiki安装在子目录,redwerks 的指引也一度误导我,他们不推荐这样的词条路径: /wiki/$1

By - 陳 思敬

清理WordPress冗余数据库

在我休假的这段时间,WordPress两次关停,从阿里云的邮件件,可能的原因有二: 数据库体积过大; 网络负载高过; 控制台显示,数据库达到48M,对于如此小的一个站点,确实大了,可是WordPress自2.6开始,一直自动备份每一个修改版,如果不借助第三方的工具,可能无法清理这些数据。 至于网络负载,从百度统计的数据看,10月3日九点打开服务到十一点第二次关停,正常的用户访问只有4个PV,而网络日志显示有2487条记录,来自阿里云的IP却异常之多,其它则为谷歌、百度的爬虫。一个邪恶的猜测:

By - 陳 思敬

MediaWiki HTML 插入外链图片

我的MediaWiki搭建在万网虚拟主机之上,受到很多限制,不能通过经典的GeSHi+Pygmentize实现语法高亮,最后曲线救国,找到了基于Alex Gorbatchev SyntaxHighlighter 的插件,不再依赖Python,终于像个Programming Wiki的样子。 语法高亮解决了,另一个隐痛就是图片问题,一则MediaWiki配置上传很不容易,建站伊始,即尝试过,告败;二则,虚拟主机的空间有限,本身也存不了多少图片。一度使用Confluence的公开空间保存图片,但也不太方便。后来在同事的启发下,申请了七牛云的免费存储空间,只要保持10元余额,即可享用自定义域名的10G空间,用户体验还不错,主要用于WordPress图床服务。但回过头来又想攻克MediaWiki的图片,终于在昨天深夜,找到HTMLTags,安装成功之后,简单配置如下:

By - 陳 思敬

Add footnotes to WordPress

Easy Footnotes is a WordPress plugin for easily adding footnotes to your WordPress posts. Fitting name, eh? Easy Footnotes is simple to use. Activate the plugin and then start adding footnotes to your WordPress posts using the shortcode [note]Footnote content[/note]. Easy Footnotes will automatically count up your footnotes (feetnotes) and inserts a number where the footnote shortcode is placed as

By - 陳 思敬

Two WordPress hotkey plugins

Note: Before focusing on WordPress, most of my daily writings were posted in Confluence. I love the hot keys of Confluence, which are really time and energy saver. About a year ago, I wrote some simple client code to mirror the Confluence’s actions. But it was too simple, almost ugly. Worse, it cannot run properly on Windows. When I copy

By - 陳 思敬

The Elegant Icon Font – 360 Of The Best Free Icons For The Modern Web. Romangie 主题使用的分类图标,就是 ElegantIcons,从 style.css 中可以查到。上午试图猜测 data-icon 的属性,修改 Status 的图标,几乎用了一个小时,无果。 中午理性思考,发现源头,参考官方的文档,成功解决问题。同时也修改了 Standard 的图标,并找到漏网之鱼:搜索结果页。 一个图标能抵很多文字,插件开发或者应用开发,除 bootstrap 集成的icon之外,还可以直接用第三方的,比如大名鼎鼎的Font Awesome,还有这个轻量级的 Elegant Icon Font。它们其实都是字体,我们可以自己调色,以和应用的主色协调。

By - 陳 思敬

Keep Note

在涉水轻舟的博客上,发现一系列的笔记工具: cherrytree CintaNotes keepnote 依次简介: cherrytree A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file.