IT log

moral & concision is my dream.

i was afflicted with wordpress

wordpress 功能太强了, 插件太多了, 模板太炫了, 调试太痛苦了.

我所中意的 DePo Masthead Theme 暂时无法使用了, 因为下载后会发现 bug 太多了, 远远比不上在 wordpress.com 上的最新版本, 我是越修改页面越乱, 不过我总算知道了, 使用后台的 HTML Editor 中的 more 按钮添加 <!–more–> 在发布后就会只出现 Read more… , 作为分隔符隐藏了后面的文字, 这样就可以加速页面载入和避免长长的全文输出而破坏页面美观了.

最后我还是把模板更改回了一起用了的 iNove了, 不愧是以前 wordpress.org 上排名第一(现在排名第二)的 free theme, 简单大方, 最重要的是页面布局的兼容性非常之好, 而且还是咱们中国造.

下面是我更改为 iNove Theme 后的 IT log Screenshot:


Read more…

posted by Leon Tsang in Live - Work and Struggle and have Comments (3)

Download DePo Masthead Theme Here

DePo Masthead Theme 似乎是仿照纽约时报的样式做的( 我记得以前在哪个网站上看到过一个报纸是这种风格 ).

更改模板前后的博客图片如下:

可以从图片上看出 DePo Masthead 会在首页调用博文时禁止HTML代码 只显示纯文本, 这种处理有两种好处, 就是使得首页加载速度更快, 另外就是使得博客整体页面风格更加统一, 不过完全禁止HTMl并不是一个很好注意, 我希望在对其修改后能实现在每个文章前面固定显示一张主题图片, 然后截取固定文章行数, 使得页面整齐.

原来在 wordpress.com 上使用的模板 DePo Masthead 我一直很喜欢, 但该该设计者把下载地址总指向 wordpress.com 或 wordpress.org 的论坛, 没有一个独立的下载包, 所以导致我误解为这个模板只是为 wordpress.com 官方网站定制的而个人不能免费使用.

今天在借助 coral cdn 成功的访问 wordpress 论坛后, 终于找到了 DePo Masthead Download URL , 只要把下列所有文件和图片下载后放到一个文件夹中, 然后上传到博客的 wp-content\themes 目录中就可以再后台调用了.

下载链接如下:

Revision 1994: /depo-masthead

Revision 1994: /depo-masthead/images

posted by Leon Tsang in Live - Work and Struggle and have No Comments

using plugins within firefox and thunderbird

最初只是为了更换一下 firefox 和 thunderbird 的 plugins Themes 而访问了 mozilla.org.

在卸载掉 aero theme 后, 没找到其他合适的皮肤, 但发现了带有更换大量皮肤功能且会更新的 Personas (make changing the look of the browser as easy as changing your shirt) .

firefox 以后更换皮肤就轻松多了,  我觉得这个 Personas 如果发展得好的话, 将来会垄断 mozilla 所有软件的皮肤市场, 以后软件自带的 Tools – Add0-ons – Themes 功能如果不进行重大升级的话, 将会沦为摆设.

这个网址可用来查看 Personas 中最受欢迎的皮肤样式: http://www.getpersonas.com/gallery/All/Popular

如果说在 firefox 中找到了 Personas 算做一个轻松旅程的话, 那么相对而言 Thunderbird 的 plugins 更新和使用过程就太痛苦了.

Thunderbird 的 skin theme 更换从冷色 Cobalt 到暖色且更快 Slivermel, 这个过程倒是没有什么障碍.

接着我用 gContactSync 代替 Zindus 来同步本地的邮件地址簿到 google mail contacts 中, 之所以舍弃 Zindus , 是因为 gContactSync 对于 gmail 地址簿格式专注, 解决了很多兼容问题, 并模仿 gmail contacts 修改了 Thunderbird 中默认地址簿格式.

最最郁闷的是使用扩展插件 Stationery ( Allow you to use HTML files as templates for mail. Also allow custom template in replies or forwarded mail! ) 中遇到的问题, 因为我测试这个信纸插件是发送到 foxmail 中用webmail mail.foxmail.com  来查看的,  但因为从前不知道在 webmail 界面中查看 html 格式邮件会被屏蔽掉很多样式, 所以会误以为是这个插件或是客户端问题使得邮件信纸不能正常显示.

如果再详细描述我在遇到问题后不断试验, 以及查找资料的过程, 那我估计今天就不用睡觉了. 我就先对我发现包括 gmail 和 foxmail 网站上的 webmail 问题进行一下总结, 然后再列出三个对我解决问题最有帮助的网址以及内容摘要.

webmail 对 html 格式邮件样式过滤/屏蔽的总结:

1. 屏蔽 body 标签中的 background 属性;

2. 屏蔽所有标签中的样式 style 属性中的 background 以及相关属性;

3. 屏蔽所有标签中的样式 style 属性中的 position, z-index 等用来定位的属性.

几个有价值的关于邮件 内嵌/嵌入 不带附件显示图片的文章:

用Java Mail发送带有图片附件的html格式邮件 http://www.sudu.cn/info/html/edu/20071219/119776.html

用Java Mail发送带有图片的html格式的邮件,针对于显示图片,一般有两种方法。

1. 图片存在于服务器上,我们只需要把图片在服务器的的链接放进去即可。
这种发式比较简单,不过这种方法有些缺陷:
图片不支持离线浏览;
每次浏览邮件需要访问web服务,增加服务器负担;
若图片以二进制的方式存在于数据库或是动态生成的,则无法有效的解决。

2. 把图片以附件的方式发送出去,这种方式非常适用于图片存在于数据库中的情况

Creating complex mails with inline images http://kb.mozillazine.org/Creating_complex_mails_with_inline_images

The HTML format allows to place an image within the message text rather than as an attachment. There are several ways how to do this. This section describes including an image from a local file, whereas the next section describes inserting an image located at a remote server.

How to Add a Background Image to a Message in Mozilla Thunderbird http://email.about.com/od/mozillathunderbirdtips/qt/et040905.htm

A white background is not to be sneezed at, but the splendor of a colorful, classy or artistic image is a welcome change now and then. In Mozilla Thunderbird, you can make an image your background.

posted by Leon Tsang in Live - Work and Struggle and have No Comments