星期二

ZBlog SEO优化技巧

小明推荐了这篇文章
ZBlog SEO优化技巧
http://www.yueseo.com/SEO/115.html

看了下,文章页加 h1 的建议比较有价值,这是之前没有留意到的,也是小明刚刚提醒的。


和小明交流网站长期发展的一个细节问题 ( & 小明 )

上午和小明在 MSN 上,先是提了“友吧文荐”作为blog插件的一些建议,已经作了记录,核心内容是用 xml 作数据,用 js 作传递中介。之后聊到了下面的话题:

小明 说:
对了,友吧收录文章,有没有给作者留言啊?

小明 说:
其实可以给作者的blog留言

小明 说:
一是告诉对方,转载了,然后这也是一个推广方式

zhugao 说:
我是担心另人只会想到我们是在推广,所以没有

小明 说:
你看20ju.com 转载的文章只要能留言的,都留言了

zhugao 说:
因为现在居心不良的人太多了,前一次我在蓝色上遇到一次后再不发了

zhugao 说:
随他去吧

zhugao 说:
只要自己做好了版权声明就好了

小明 说:
其实这个是个好方法,转载文章的blog 很有可能是友吧目标用户.

小明 说:
其实这个是个好方法,转载文章的blog的游客 很有可能是友吧目标用户.

zhugao 说:
这个先记下,因为我每次看到别人在某人的blog里留下这样的字,就很反感,相信很多人都会和我一样的感觉

zhugao 说:
包括博主本人

小明 说:
其实留言可以多说一些对文章的看法,这样表明看过之后觉得很好才转载的,然后友吧本身的品味,我相信作者也不会太排斥

zhugao 说:
这个倒是不错的

zhugao 说:
只是这就突然有软文的味道了,哈哈。。。

小明 说:
呵呵,

zhugao 说:
总之这样做,反感的人还是会比理解的人多得多的。尤其在现在这个乱七八糟的社会里,人们没事做,就知道乱猜,你看中国奖牌数都有这样的意思,加起来是08512258什么的。。。

zhugao 说:
地震时间

zhugao 说:
还有刘的那个号码

zhugao 说:
我们踏踏实实做好自己的事才是最好紧的 推广的事情是要到很背后的事了

zhugao 说:
坚持做下去,总会有希望的,哈哈。。。

zhugao 说:
不用急。。。

小明 说:
我现在也是感觉,做好的东西,比流量重要

zhugao 说:
那当然,那是短期目光与长期目光的区别

小明 说:
好的东西自然有人会帮你宣传

zhugao 说:
你看你刚才那个什么21ju,它的定位一下就是给人的感觉是一种三流网站的感觉

小明 说:
20ju

zhugao 说:
是啊,哈哈。。。

小明 说:
草根网,刚刚开始还行

小明 说:
现在充斥着软文

zhugao 说:
说什么酒香不怕巷子深的时代已经过去了,其实是现代社会的人们太浮澡,经不起酿酒的时间了,才这么说的

zhugao 说:
总之坚持自己的初衷,不要随便被环境影响,是很重要的

小明 说:

小明 说:
和朱兄聊事,总能得到一些体会


安装 Windows Live Writer

先安装了zblog的“Windows Live Writer支持”插件,再安装好 Windows Live Writer,试了一下,感觉不如在线编辑爽手。


地址栏也支持../的写法?

今天使用z-blog的sitemap插件生成sitemap,一看生成后的地址形式是:
http://www.zhugao.cn/blog/../today/2008/150.html

正想着这个插件很弱智,把地址复制到地址栏,真的可以认的,跳到了
http://www.zhugao.cn/today/2008/150.html

sitemap插件很弱智,还好浏览器聪明着。用 IE、FF、Opera试了下,都是认得这写法的,只是不知道这样的地址是不是符合sitemap规范,最担心的是会不会被当成跳转而被惩罚?


The Sunflower
From: http://www.storyarts.org/library/nutshell/stories/sunflower.html

The Sunflower
A Tale from Ancient Greece

Clytie was a sea nymph who wore beautiful green gowns woven of seaweed. Her long, golden hair floated about her at the bottom of the sea. One day a mermaid sang her a song about a golden light above the water. Clytie wanted to see it!

She swam to the surface and climbed onto the shore. She saw the golden light described in the song. . . It was the sun! She stood happily gazing at it all day. When she at last turned to the water, she saw her reflection. Her golden hair had become yellow petals; her green gown had become leaves. Her tiny feet had become roots. She had become a sunflower, a small image of the sun she loved.

To this day, the sunflowers turn on their stems all through the day so that they can gaze upon the sun as it travels the sky.

星期一

结合朋友们的建议,重构后的blog作了一些改进

昨晚重构后的blog上线后,收到几条建议。

一是冰淇淋的:

文章内容预览是否可以取消,这样看起来有点乱,没有以前那么一目了然了。个人认为没什么必要,一般看标题就能明白大致意思了,而且我想既然是自己想看的文章,大多都会直接点击进去看。

一是 applewar 的:

  1. 觉得比原来乱,因为你的字全是黑的,而且标题那么大,给人很挤的感觉。
  2. 文章概要里,列成1 2 3 4,如果是列表比较好,现在全横在一起了。

冰淇淋的建议我之前也考虑过,不过因为限于标题字数的限制,无法列出所有小标题,所以需要在文章摘要里列出所有的小标题。这正是旧版没有做到的。

结合applewar的建议,作了如下更改:

  1. 列表标题由16px改为14px;
  2. 摘要由一行改成多行列表;
  3. 站点全局行距由 20px 改成 22px

经过这三点修改后,拥挤感明显降低了很多。感谢applewar,也感谢冰淇淋在第一时间的建议:)


CSS限制单行显示

.test { width:定义宽度; white-space:nowrap; overflow:hidden }

white-space:nowrap 为限制单行,尤其用于英文时,这个属性必不可少;
overflow:hidden 如果超出宽度则隐藏。


关于z-blog插件Totoro的“相关设置”问题

第一条是:设置系统审核阈值(默认50,阈值越小越严格,低于0则使游客的评论全进入审核):

我按提示输入负值后(本意为使游客的评论全进入审核),结果这个“相关设置”项就消失了。下载了插件重新安装一下才解决问题。随后在官方论坛上找到相关帖,确实需要重新安装才可以解决。

见:http://bbs.rainbowsoft.org/viewthread.php?tid=26124


ul默认的list-style-type

全局 ul 用了list-style-type:none,要在局部用默认的小实心圆ico,发现是这个:
list-style-type:disc

顺便试了下,实心小方形是 square


English log

A Tale from India

Three fish lived in a pond. One was named Plan Ahead, another was Think Fast, and the third was named Wait and See. One day they heard a fisherman say that he was going to cast his net in their pond the next day.

Plan Ahead said, "I’m swimming down the river tonight!

Think Fast said, "I’m sure I’ll come up with a plan.

Wait and See lazily said, "I just can’t think about it now!"

When the fisherman cast his nets, Plan Ahead was long gone. But Think Fast and Wait and See were caught!

Think Fast quickly rolled his belly up and pretended to be dead. "Oh, this fish is no good!" said the fisherman, and threw him safely back into the water. But, Wait and See ended up in the fish market.

That is why they say, "In times of danger, when the net is cast, plan ahead or plan to think fast!"

印度寓言:三只鱼
翻译:朱高
注:此译文已发布在友吧躺思 http://www.friends8.com/base/200808/1247.shtml

池塘里有三只鱼。一只叫“有备无患”,第二只叫“随机应变”,第三只叫“等等再说”。一天,它们听到风声,一个渔人第二天要来这个池塘撒网。

“有备无患”说:“我得在今晚赶紧游到河里去!”

“随机应变”说:“到时我自有办法。”

“等等再说”懒洋洋的动动嘴:“管它呢,我现在懒得动。”

第二天当渔人撒下渔网时,“有备无患”早已游走,“随机应变”和“等等再说”则入了渔网。

“随机应变”迅速鼓起它的肚皮装死。“哦,这只鱼看起来不太好!”渔人说着就把“随机应变”放回了池塘。而“等等再说”则在鱼市场结束了自己的生命。

感悟:“危难来临前,应早做防备!”

星期日

blog重构完成

使用 Z-Blog 1.8.80722 重构 blog,今天上线。


遇到一位同年同月同日生的网友 ( & 劉Lets )

聊了有不短一段时间了,今天突然收到 劉 Lets 的 QQ 消息:

哈哈 朱高,还真的没想哦,我今天上friends8 进你的档案看,才晓得你是和我同年同月同日的生日哦。不过还到有一点疑问的是,你是几时的?只是我自己也不清楚我是几时的。呵呵

回复 劉 Lets:我也不知道我是几时生的:)


z-blog浏览计数器的一个有趣问题

发现如果在文章内容页底部使用dreamweaver9自带的插入flash的js代码,则z-blog计数器将失效。遇到这个问题,可以使用swfobject.js来插入flash,这样可以保证计数器有效。

估计是z-blog计数器的js与dreamweaver9自带的js有冲突造成的。

使用排除法,一段段代码排除,不料问题竟出在最后这段看起来毫无关系的js,实在花了不少冤枉时间。

2008-8-23 星期六

blog被dmoz收录,alexa工具条上出现相关网站

今天无意发现blog被dmoz收录了,目录:
Top: World: Chinese Simplified: 社会: 人物: 个人网站: 博客 (257)

三年多过去了,alexa工具条上也终于出现了相关网站。我相信这和被dmoz收录是有关系的,因为友吧上线半年左右时,被dmoz收录后就在alexa上出现了相关网站,而blog虽然上线三年多,今天刚被收录,也刚在工具条上看到有相关网站。


<hr>水平线再究

此前(第93天)提到,水平线 hr 默认由上下各 1px 的 border 组成,而今天发现,它事实上还有左右 border,以及一个 height,可以看以下效果:

hr { border-top:#FF0000 3px solid; border-right:#FFFF00 3px solid; border-bottom:#0066FF 3px solid; border-left:#CC00FF 3px solid; height:20px; background-color:#669966 }

以下是一条标准的 hr 虚线:

hr { border-top:0; border-bottom:#A0A0A0 1px dashed; height:1px }

小细节:假如没有 height:1px,若不定义左右 border 为 0 ,在 FF 下,会看到左右各有一小点,那便是 1px 的 border. 以下为一例:

hr { border-top:#A0A0A0 1px dashed; border-bottom:#F4F4F4 1px dashed; border-right:0; border-left:0 }


<p> 标签在 IE 与 FF 下的尽可能同等行距

默认下,FF 的 P 上下 margin 为 12px,而 IE 的 P 上下 margin 比这个值大,为了达到在 IE 与 FF 下的尽可能同等行距,可以给 P 赋固定值。

p { margin:14px 0 14px 0 }


心理障碍者的心理 ( & 某同学 )

今晚面对面倾听了一位心理上有障碍的朋友的倾诉,有一个环节,他一口气讲了半个小时。总的来说是,生活摆在他面前只是索然无味,生活只是毫无目标,毫无寄托。

不过我想,至少他还是很愿意说出他的心理想法,仅仅这一点,病情应该不算极度严重。我建议他在家里弄台电脑,要能上网的,因为我相信,在今天,网络是可以治疗某些心理病的。试想一下,生活在一个萧条到只有十几户人家的小区里,晚间更是静得可怕。在这种环境下,网络将是何等重要。

又建议他去看心理医生,趁现在还愿意对人倾诉时去看,比后期不愿意对人倾诉时再去看,应该是比较适时的。

走时我心里想,一个人,到底是因有心理病才导致生活没有目标感呢?还是因为生活没有目标感才导致心理病呢?就好像是先有鸡还是先有蛋一样,实在难以说清,又或者两者皆有互为因果的关系。

2008-8-22 星期五

会员资料“不可更改”的 Bug 修复

接到网友反馈,会员资料不可更改,提示“更改资料出错,请检查输入是否合法”。昨晚 Ryan 已修复此 Bug。

感谢反馈的网友:劉 Lets培培


新版blog进度

已经录完了“交流选”,并录了部分旧版“今天”。


周瑜的心胸 ( 思考 )

在面对共同的敌人曹操时,尚想着害孔明杀刘备,且极易受激,纵有一身才华,只死于此心胸矣。


English log

A Tale from West Africa

Turtles used to live on the land, they say, until the time a clever turtle was caught by some hunters. They brought him to their village and placed the turtle before the Chief, who said, "How shall we cook him?"

"You’ll have to kill me first," said the turtle, "and take me out of this shell."

"We’ll break your shell with sticks," they said.

"That’ll never work," said the turtle, "Why don’t you throw me in the water and drown me?!"

"Excellent idea," said the Chief. They took the turtle to the river and threw him into the water to drown him.

They were congratulating themselves on their success in drowning the turtle, when two little green eyes poked up in the water and the laughing turtle said, "Don’t get those cooking pots out too fast, foolish people! As he swam away he said, "I think I’ll spend most of my time from now on, safely in the water."

It has been that way ever since!

2008-8-21 星期四

z-blog 文章页侧栏的“最近发表”限制字数显示的样式(标题后显示省略号…)

参考:z-blog官方论坛搜索

限制“最近发表”宽度使不折行:
#ulPrevious LI { width:238px; white-space:nowrap; word-break:keep-all; overflow:hidden; text-overflow:ellipsis }

(注:word-break:keep-all 可能不需要)

去除“最近发表”前面的日期
.article-date { display:none }

Flx blog 上线

早上窥见了这个地方:www.92flx.cn

另,Flx 今天更改了友吧首页轮换 banner 中的“读吧”图片。

水平线 <hr> 样式定义

水平线默认由上下各 1px 的 border 组成,可分别定义:

hr { border-top:(style); border-bottom:(style) }

也可以使 border:0,定义高宽,然后用 background-image 指定线型背景图片

English log

A Tale from West Africa

Anansi the Spider hated to share! When Turtle came to his house at mealtime, he said, "I can’t give you food until you’ve washed your dusty feet!"

Turtle licked his lips when he saw the big plate of steaming food, but politely walked to the stream to wash. When he returned, the plate was empty. "Good meal," Anansi said, patting his full stomach.

"One good meal deserves another!" said Turtle. "Come to my house for dinner tomorrow." Turtle fixed a fine dinner at the bottom of the river. "Come on down and eat!" he said.

Anansi filled his jacket pockets with stones so that he would be weighted down enough to stay at the river’s bottom and eat. "It’s impolite to wear a jacket to dinner!" Turtle said, "Take it off!"

But when greedy Anansi took off his jacket, he floated back up to the surface of the water and hungrily watched Turtle eat his fill!

 

2008-8-20 星期三

友吧首页“读吧”“玩吧”缩略图动态化

Ryan 今天完成了这一优化:鼠标经过“读吧”“玩吧”标题,缩略图随之变化。
JS 在 IE, FF, Opera 下测试通过。


引用js时出现中文乱码的解决方法

今天在新版 blog 内引用“友吧文荐”的 js 时出现乱码(新版 blog 使用 utf-8 编码)。网上查到在引用时加入如下参数,问题解决。

charset="gb2312"

不过用 google 在线翻译时,这样引用进来的内容却翻译不了。问了 Ryan,说暂时没有别的方法。


English log

A Tale from India

When Tiger jumped on Fox, Fox cried out, "How dare you attack the King of the Jungle!"

Tiger looked at him in amazement, "Nonsense! You are not King!"

"Certainly I am," replied Fox, "All the animals run from me in terror! If you want proof, come with me." Fox went into the forest with Tiger at his heels. When they came to a herd of deer, the deer saw Tiger behind Fox and ran in all directions.

They came to a group of monkeys. The monkeys saw Tiger behind Fox and they fled. Fox turned to Tiger and said, "Do you need more proof than that? See how the animals flee at the very sight me?!"

"I’m surprised, but I’ve seen it with my own eyes. Forgive me for attacking you, Great King." Tiger bowed low and with great ceremony he let Fox go.

2008-8-19 星期二

blog完成程序更换模板搭建

今天完成了更换到 z-blog 的模板搭建工作,准备将“交流选”及“今天”的文章录到新的程序中,其余作为“旧的回忆”。新版将在完成“交流选”及“今天”的文章录入后正式上线。


删除流量统计的地址收藏

为了避免自己习惯性的进入查看流量,今天删除了公司电脑中的流量统计地址,只在每天下班后在家里看。


贤人 ( 思考 )

司马徽谓刘备曰:“将军之所以未成大事,是因为左右没有贤人扶佐。”

刘备二拜孔明未见,张飞盛怒,欲前往擒之来见刘备。刘备斥道:“曹操因身边有众多谋士,方得以击败袁绍。孙权统领江东六郡八十一州,尚在招贤纳士。他们霸业将成,而我却依俯刘表,据守这新野弹丸之地,此皆因缺少出谋划策调兵遣将之大贤也。”


English log

A shepherd-boy, who watched a flock of sheep near a village, brought out the villagers three or four times by crying out, "Wolf! Wolf!" and when his neighbors came to help him, laughed at them for their pains.

The Wolf, however, did truly come at last. The Shepherd-boy, now really alarmed, shouted in an agony of terror: "Pray, do come and help me; the Wolf is killing the sheep"; but no one paid any heed to his cries, nor rendered any assistance. The Wolf, having no cause of fear, at his leisure lacerated or destroyed the whole flock.

There is no believing a liar, even when he speaks the truth.

2008-8-18 星期一

z-blog列表中的 <p> 标签问题

<p> 标签内首行在 ie 和 ff 中的兼容性问题,使 z-blog 的文章列表在 ie 和 ff下看会出现间距不同。其实这个 p 我认为是没有必要用的,但不知 z-blog 为什么要加入,本想找到文件,把 p 去掉,不过没有找到所在文件,就只好用样式来处理了。

.post-body P { margin:0 }

然后在论坛里找到了去掉 p 签的方法:
http://bbs.rainbowsoft.org/thread-25714-1-1.html

所以,解决这个问题的方法有两个,一个是用 css,一个是在程序里干脆去掉生成 p.


女友修键盘

昨晚打羽毛球回到家,开门进房间很惊讶的发现女友蹲在地上在用螺丝刀拧什么,走近一看,竟然是在拆键盘。

……

女友告诉我症状:例如按下j,它会jjjjjj…按下k,它会kkkkkk…

前后花了不下一个小时,相当强悍,我也趁这个机会见识了一下键盘的内脏。接上一试,女友大喜,之前的问题修好了,但是有好几个键失灵了。

今晚得去买块新的了。。。

这对于我来说,是一大惊喜,女友在性格上迈出了一大步。我想以后每次提起这事,我们都会一个劲傻笑的。虽然我一开始责怨不停,不过之后我发觉错不在她,而在于我。这个是中国传统教育遗留下来的问题,我不知不觉的被毒害了。

从现在开始,出了问题,一定不能先责怨。


林丹籍贯

昨晚看决赛,听解说员提起,惊知是同乡,今早一查,是隔壁的上杭。

昨晚的比赛与媒体事先的渲染可谓大相径庭,李宗伟明显状态不佳,两局仅得20分,几乎是林丹一人的表演,观赏性不足,本是巅峰对决,却似倚强凌弱。


再思购房

今天录到肥耗子先生的这篇 暗降浮动购房“昏”,其中提到三类购房者。

“第一类需求为投资性需求或投机性需求,这种需求对市场的反映十分灵敏,市场一旦出现风吹草动,对需求的影响就非常灵敏;第二类需求为升级换代型,其目的是为了提高居住质量,或因为家庭人口的增加而被迫小房换大房,这种需求的刚性不太强;第三类为自住需求,而且基本上属于首次置业,这种需求特征比较刚性。”

肥耗子的建议是:

“说一下到底谁应该买房。我想上述三类购房者,投资型的不需要我说,他们早已经从楼市烟消云散;而对于升级换代型的购房者,也许暂时的等待是一个明智的选择,当然如果遇见自己十分中意、且性价比非常高的房子,选择出手绝对不是一个坏主意;至于最后一种购房者,我的建议是该出手是就出手,如果你没有资格购买经济适用房和限价房,那么赶紧乘机购房,当然在和开发商侃价的时候要毫不手软,因为你要记得,我们都是社会的弱势群体,既然没有资本受到保障住房的惠顾,那么先买一套绝对不会错。

与我昨天的想法看似吻合。


Start reading from today

http://www.en8848.com.cn
http://www.storyarts.org/library/nutshell/index.html
http://www.eastoftheweb.com/short-stories/fictionindex.html
http://online.wsj.com/public/us
http://www.nytimes.com

The Ant and the Grasshopper
http://www.en8848.com.cn/gushi/children/200705/52316.html

In a field one summer’s day a Grasshopper was hopping about, chirping and singing to its heart’s content. An Ant passed by, bearing along with great toil an ear of corn he was taking to the nest.

"Why not come and chat with me," said the Grasshopper, "instead of toiling and moiling in that way?"

"I am helping to lay up food for the winter," said the Ant, "and recommend you to do the same."

"Why bother about winter?" said the Grasshopper; "We have got plenty of food at present." But the Ant went on its way and continued its toil.

When the winter came the Grasshopper had no food and found itself dying of hunger – while it saw the ants distributing every day corn and grain from the stores they had collected in the summer. Then the Grasshopper knew: It is best to prepare for days of need.

2008-8-17 星期日

郭嘉之死 ( 思考 )

曹操于碣石之上,谓众将曰:“诸君年齿,皆与我相当,惟奉孝最少。我欲托以后事,不期中年夭折,使我心肠崩裂!奉孝死,乃天丧我也!”乃赋诗:“东临碣石,以观沧海。水何澹澹,山岛竦峙。树木丛生,百草丰茂。秋风萧瑟,洪波涌起。日月之行,若出其中;星汉灿烂,若出其里。幸甚至哉,歌以咏志。”


房租涨了,欲买二手房

今天房东告知,房租自下月起从 550 涨到 650,水电网费加起来,接近 800。

给老张打电话,提及买二手房。老张说,还可以把一个房间租出去。这方案听起来不错,月供就只相当于现在的房租。不过可能会因房客的介入,使生活紊乱些许。

另一个方案是女友出的,不如买套一室一厅。算起来,月供也只相当于现在的房租。数年后再伺机买新房。

两套方案保留。今年以来的降价潮似乎尚未波及杭州。如此一来,短期内还是要继续“睡在月光下”了。