星期日

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。

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

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

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

2008-8-16 星期六

“系统时间调不了”的一个解决方法

今天发现这个“系统时间调不了”的问题与 ARP 防火墙有关,退出防火墙即可调整时间。


孙策之死,袁绍之败 ( 思考 )

郭嘉谓孙策:轻而无备,性急少谋,乃匹夫之勇,他日必死于小人之手。
孙策之死得已证。

曹操谓袁绍:色厉胆薄,好谋无断;干大事而惜身,见小利而忘命。
官渡之战得以证。只惜了田丰沮授一代谋士。

田丰得知袁绍 70 万大军不敌曹操 7 万军,全军覆没,只带 800 余骑而归,在牢中道:“我的死期到了。袁将军外宽而内忌,不念忠诚,若胜而喜,田丰犹有生路。今大败而归,羞于见我,田丰不望生矣!”话音落间,袁绍来使即现:“奉主公之命,取田丰首级回报。”

性急则杀身,无断则害人损己。当警之。

2008-8-15 星期五

体验z-blog

和 CMS 比起来还是有比较大的差别,改模板不太习惯,还好也是很快就上手了。

找 静态首页生成插件 实在找了好一会,终于在这里找到了
http://bbs.rainbowsoft.org/thread-19201-1-1.html

如果程序是装在test.com/blog/类似这样的目录下,那么要在根目录下生成静态需要在插件中设置成../index

同样的,目录存放也可以用../test/test来指向到根目录下的其他目录。

更多插件请到这里
官方认证推荐插件列表
http://bbs.rainbowsoft.org/thread-23126-1-1.html

总的来说,第一天用起来很舒服。现在知道了,做blog,真的没必要用cms,那相当于杀鸡用牛刀,费力不说,还不一定有杀鸡刀快。

感谢小明。


English log

对于学语言来说,在理解了基本的句型结构之后,更重要的是如何运用. 所以老师给我们布置的作业就是,用四种句型结构各造五个句子. 下面是经老师批改后我的作业,希望能帮助你进一步理解句型结构.

(注:红体字为主语,蓝体字为谓语 找出主谓是理解复杂句型的关键)

详细页 >>