Tag Archive for 'WordPress'

Page 2 of 2

WordPress and My Life

含泪播种的人一定能含笑收获

wordcodess封锁:这几天发生了不少事,Wikipedia再次被封锁,Blogsopt又一次开放,为什么会发生这样的情况,让人觉得生活没有保障,说不定哪天你就会被XX掉,逃亡吧,如果我有实力,早就说拜拜了。

价值:这一周多少都在摆弄这个BLOG,什么优化啊,什么界面啊,让我感觉也没有什么大的变化,有一点到是被我肯定了,Google Adsense能够赚钱,网络广告也能够赚钱,不过国内的广告商似乎不是那么值得信任,至少我是这么认为的。昨天看了Keso的一篇新文章:世界能有多平?倒是很有意思。

日志:在这个wordcodess上写日志有1年了,虽然不是第一个日志,却是坚持写得最久的一个,现在在DH上,我想到了明年10月份,我还会在DH继续这个日志,时间过得出奇的快,在页面体现的是上一个10月到这个11月,在记忆中,却不知怎么去搜索。搜索… 不知道什么时候开始搜索在我的生活占据了很重要的位置,可能没有Internet我们也是在一直搜索,只不过表现形式不一样了。

Q币:1美圆兑换8Q币,科幻小说中加入这样的情节倒是不错的,听说某某某要对Q币下毒手了,原因?大家都知道,1个Q币=1¥是什么概念?虚拟的东西总是不好的,就象精神鸦片,虚拟的货币,那就更该下地狱了,至少有人是这么认为的。

未知:有人抱怨gmail异常垃圾,因为发给163的邮件总是收不到,当然肯定也收不到163发来的邮件;但是更多的人相信是网易的单方面行为,前几天网易的邮件工程师出来说明了一下为收不到gmail的邮件

  1. Gmail和国内邮件服务商之间存在一种不知名的防火墙,这个设备的存在可能直接导致某类邮件的收发畅通问题(超时、退信、直接断开或者Discard)
  2. 也是这个设备的存在,会干扰Gmail与国内邮件服务商之间某些TCP连接的状态,也就是更改SMTP会话状态.这个tcp修改动作,会严重影 响网易邮件系统MTA服务程序对连接状态的计数统计功能,相应也干扰了网易mta与gmai mta之间的连接,造成一些邮件延迟

对于以上种种,我只能感叹在外求学的朋友们以及在外生活的朋友的幸福,不发表更多言论,不卷入不必要的麻烦,这就是某人在某个地点在某个时代的生存之道。

断网:网络创造了无数的财富,创造了无数的奇迹,断网?是开历史的倒车是在审视过去展望未来,有人喜欢第一个,有人喜欢第三个,而我哪个都不喜欢,因为断网就发生在身上。

Share

未完成

发现自己在wordcodess中还有几个在 “Drafts” 中的日志:

  • Rails on Ruby fastcgi install
  • 使用Javascript+CSS实现圆角效果
  • Linux 与 Web 开发简介

来成都已经有两个月了,突然感觉时间的无情,想想人生会有几个两个月呢?不知道明天会发生什么事,所以每天都是新的,哲学家这么说,其实所有的人都是这么说。
—-
日志还没写完,天府的服务器被攻击了。现在才才恢复,都不知道写到哪里了,又不想去想。不过刚刚一直在听周杰伦给梁静茹写的新歌“失忆”,还不错哦~~

Share

博客的Feed终于正常了

FeedBurner博客的feed(RSS)差不多半年来都是“坏”掉的 ,可能不止半年了吧 :( ,这两天没放假。所以决定把它修复了。
查看了WordPress support 上了一些资料,知道是由于PHP脚本的 前后的空白行引起的,但是我查看了大部分的PHP脚本后都没有结果,最后按照这个方法,在禁用了一两个插件后终于ok了。
资料:

update/Oct,7,2006

今天终于找到原因了,结果是我使用的一个 recent comments 这个插件最后的一个空行。

Share

我使用的WordPress插件

Plugin Version Description
Audio player 1.2.2 Highly configurable single track mp3 player. By Martin Laine.
Extended Live Archives 0.10beta-r18 Implements a dynamic archive, inspired by Binary Bonsai and the original Super Archives by Jonas Rabbe. Visit the ELA option panel to initialize the plugin. By Arnaud Froment.
Akismet 1.15 Akismet checks your comments against the Akismet web serivce to see if they look like spam or not. You need a WordPress.com API key to use this service. You can review the spam it catches under “Manage” and it automatically deletes old spam after 15 days. Hat tip: Michael Hampton and Chris J. Davis for help with the plugin. By Matt Mullenweg.
CodeHighlight 1.0 Beta 3.1.1 Adds syntax highlighting to your code, or simply allows you to post workable code not affected by the WordPress text replacement features. By Chroder.
CoolCode 3.3 Adds syntax highlighting and line number to your code, base on Text_Highlighter. By andot.
FAlbum 0.6.6 A plugin for displaying your Flickr photosets and photos in a gallery format on your Wordcodess site. By Elijah Cornell.
Hello Dolly 1.5 This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page. By Matt Mullenweg.
o42-CC 0.1.1 Select CC license, automatically sign your work. Configure in Options → o42-CC. By Michael Renzmann.
Feedburner Feed Replacement 2.02 Forwards all feed traffic to Feedburner while creating a randomized feed for Feedburner to pull from. By Steve Smith.
Show recent comments V2 2.5 Show latest 5 comments and a piece of the comment… By McMike.
Related Posts 2.02 Returns a list of the related entries based on active/passive keyword matches. By Alexander Malov & Mike Lu.
Spam Karma 2 2.2 r3 Ultimate Spam Killer for WordPress. Activate the plugin and go to Manage >> Spam Karma 2 to configure. See Spam Karma 2 >> About for details. By dr Dave.
Google Sitemaps 2.7.1 This generator will create a Google compliant sitemap of your WordPress blog.
By Arne Brachhold
.
StatTraq 1.0a beta This plugin will allow you to keep track of every hit on your public WordPress site (note that it does not track admin activity) By Randy Peterman.
TechnoTag 1.2.4 Allows Technorati tags within . Use to use a different tag word than what’s between the tags. Will also allow adding ‘ttag’ custom values for the post for listing at the end of each post and/or ‘ttaglist’ of comma seperated words. By Keith McDuffee.
Ultimate Tag Warrior: Tag Archive 1.0 Renders an archive view, based on tags. Depends on Ultimate Tag Warrior 2.5.1+ By Christine Davis.
Ultimate Tag Warrior 3.1 UTW2: Like UTW1, but with even greater justice. Allows tagging posts in a non-external-system dependent way; with a righteous data structure for advanced tagging-mayhem. By Christine Davis.
Ultimate Tag Warrior 1.3 Legacy Add tags to wordcodess. Tags and tag/post associations are seperated out for great justice. By Christine Davis.
Random Quotes 1.3 This plugin allows you to embed random quotes into your pages. It also has a spiffy management tool in the administrative console. By Dustin Barnes.
WP-PageRank 0.5 Display the Google PageRank? of the current page. By Jan Grewe.
Tiger Style Administration 1.3 After working with WordPress for several months now, I felt the Administration area needed a little “freshening up”. I wanted the utility to feel more like an application, and less like a traditional website.
By Steve Smith
.
WordPress Database Backup 1.7 On-demand backup of your WordPress database. By Scott Merrill.
Share

close visual rich editor of wordpress 2.0

The option of “Users should use the visual rich editor by default” is unusable in wordcodess 2.0 default.So we need close it by hand.For example,i close it for firefox and Opera 2-9 as bellow.

modify the function “user_can_richedit” in wp-admin/admin-functions.php

1
2
3
4
5
6
7
8
9
10
11
<?php
function user_can_richedit() {
    if ( 'true' != get_user_option('rich_editing') )
        return false;

    if ( codeg_match('!opera[ /][2-9]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT']) )
        return false;

    return true; // Best guess
}
?>

as:

1
2
3
4
5
6
7
8
9
10
11
<?php
function user_can_richedit() {
    if ( 'true' != get_user_option('rich_editing') )
        return false;

    if ( codeg_match('!opera[ /][2-9]|konqueror|Firefox|safari!i', $_SERVER['HTTP_USER_AGENT']) )
        return false;

    return true; // Best guess
}
?>
Share

WordPress plugin: Random Quotes

Random Quotes very simple and smarty plugin for diplay random quotes I installed.

Features

  • It uses the database to store quotes, not a text file.
  • It has a spiffy administrative interface (screenshot).
  • You can call up a random quote, or a specific quote in your pages
  • New: You can make a page with all your quotes.
  • You can turn certain quotes “off,” without actually deleting them
  • The quote layouts are done with CSS, so you can stick them anywhere and style them yourself (or follow my instructions below)

API

  • wp_quotes_random();: Displays a random quote, in a div with classes as indicated in the installation instructions
  • wp_quotes($id);: Displays a specific quote by quote ID. Useful if you want to embed a quote in a page, maybe?
  • <!–wp_quotes_page–>: Putting this in any post or page entry will spew the entire list of quotes in your database
Share

WordPress plugin: Coolcode

Coolcode is a powerful plugin for programming code, adds syntax highlighting to your code. It base on Text_Highlighter and CodeHighlight. There is a list show which language it can work on.

  1. actionscript
  2. cpp
  3. css
  4. diff
  5. dtd
  6. html
  7. java
  8. javascript
  9. mysql
  10. perl
  11. php
  12. python
  13. ruby
  14. sql
  15. xml

Your can download the lastest version at here.

How to use?

Simple use

1
2
<code>
your script here

Highlight your script

1
2
<code lang="you language name">
your script here

Don't display the line number

1
2
<code linenum="off">
Your script here

Download as a file

1
2
<code download="file.txt">
Your script here

And you can use the 3 options together.

Share