星期五 小雨 22~25℃

友吧首页侧栏选项卡部位细节完善

昨天仓促完成,今天完善了一下细节:

  1. “顶起的 TOP 9 排序”昨晚 Ryan 已修改正常;
  2. “言论”加小头像和发言数,以形象化;
  3. “顶起”加向上图标和顶起数,以形象化。

shtml支持include以中文命名的文件

例如:<!–#include virtual="测试文件.htm"–>

有一篇老文 用shtml来include网页文件(开启SSI) (google一下能搜到一堆)说 shtml 不能包含以中文命名的文件,会报错:“处理 SSI 文件时出错 – Error processing SSI file”,但我昨天和今天尝试,均发现是可以的,并且 utf-8 和 gb2312 都可以。

不过如果不是特别必要,还是建议用英文来命名。我做这个实验,也正是因为我遇到了特别必要的情形:在友吧的“博友”侧栏包含以作者名命名的htm,这样可以用现成的字段,而不用再增加一个字段,也不用修改每篇文章,只需改一下模板文件即可。


The Tale of Echo
from: http://www.storyarts.org/library/nutshell/stories/echo.html

A Greek Myth

Hera, the Queen of Mt. Olympus, cast a spell over her servant Echo for talking too much. As a punishment, Echo could henceforth only repeat what someone else said.

Poor Echo! She was in love with handsome Narcissus, and yearned to tell him so! One day Echo saw Narcissus admiring himself in a clear pond. Looking at his reflection, he vainly said to the face in the water, "I love you."

Echo repeated, "I love you," and meant it. But Narcissus thought it was his reflection that spoke and stood gazing at himself until he died and Hermes led him away to the Land of the Dead. Echo pined for him till she, too, faded away. All that was left of her was her voice that can still be heard in certain hollow places, senselessly repeating the words of others.

星期四 多云 阵雨 21~29℃

Google Chrome 与网页制作人员

从昨天到今天,已经看了很多文章,有褒有贬。我用过之后,第一感觉很舒服,速度极快(快得我都有些不敢相信),界面简洁。但是进入友吧的 dede 后台管理一看,傻眼,后台编辑器使用的 js 调用不了。

我就想,网站制作人员此前要兼容 ie 和 ff 已经够痛苦了,此后呢?

体验了一天,另发现几个不兼容的地方:

1、鲜果左上角的“添加频道”,不能添加,也关闭不了“添加窗口”。
2、抓虾的右键菜单错位。

看起来,多为 js 兼容问题。

结合我的使用习惯,一天要看很多文章,打开很多网页,所以当然要求快,以提高效率。从今天起,用 Chrome 代替我用了四年的 GreenBrowser.


自动升级的 IE7 无法卸载

最大的不悦是窗口闲置久了,再切换到该窗口,拖慢系统的现象很严重,不得已强行结束它。然而发现并不能卸载。网上查了下,原来是因为升级 SP3 的缘故,SP3 会强制升级浏览器为 IE7。

禁用了仿冒网站筛选器。关闭还不行,要禁用。另外关闭了一些我觉得没大用处的设置,用起来感觉舒服了些。


友吧首页左侧加入选项卡

友吧首页左侧已加入选项卡,不过在做的过程中遇到一个相当不解的事情,下面这段 JS 在 IE、Opera、Chrome 下都能正常运行,唯独在 FF 下没有反应,相当的不解。有知情的朋友看到这里的话,还请指点一二:

function changeTag(num) {
  if(num==1){
    speakA.style.display="block";
    speakB.style.display="none";
  }
  if(num==2){
    speakA.style.display="none";
    speakB.style.display="block";
 }
}

另,顶起的 TOP 9 排序尚有问题。


The Smuggler
from: http://www.storyarts.org/library/nutshell/stories/smuggler.html

A Tale from the Middle East

A clever smuggler came to the border with a donkey. The donkey’s back was heavily laden with straw. The official at the border was suspicious and pulled apart the man’s bundles till there was straw all around, but not a valuable thing in the straw was found. "But I’m certain you’re smuggling something," the official said, as the man crossed the border.

Now each day for ten years the man came to the border with a donkey. Although the official searched and searched the straw bundles on the donkey’s back, he never could find anything valuable hidden in them.

Many years later, after the official had retired, he happened to meet that same smuggler in a marketplace and said, "Please tell me, I beg you. Tell me, what were you smuggling? Tell me, if you can."

"Donkeys," said the man.

星期三 晴转多云 20~29℃

有些地方 8 月 14 过中秋的原因

早上在沙县小吃买馄饨,和店家聊天时说到中秋,听闻他们那里过中秋是 8 月 14,原因是从前土匪会在 8 月 15 这天来抢劫,提前一天过了中秋,等土匪来就没的抢了。

没有打听他们是沙县的哪个乡镇。

这让我想起我们家乡农历 7 月 15 的节日,有些地方是 15,有些地方是 14,我的家族是 14,不知是否也和避匪有关。


关于长远规划 ( 思考 )

友吧的一些早期图片在传的时候没有规划好,目录零乱,今天统一整理一下,幸而不是很多。由此已可见规划的重要性。记得以前说过,对于长远的东西,没有规划好,做得越多,返工也就越多。

可以联想到的有很多,昨天正好有一位旧时同事与我聊天,所以就联想到了职业生涯的规划。

这位是中搜的同事,05 年的,大概有一年多或者两年没联系了,昨天突然找我聊天,问起,已经不做程序员,改行做销售了,产品是黄金。问为什么转行,原话如下:

哎~不做了哎~做技术年纪么太大了,又没有更好的平台,趁早转转型算了。

今天,更换平台的人比比皆是,但是愿意花几年时间为自己搭建平台的人并不多,最大的原因可以说是缺乏长远规划的意识。

推荐一篇文章:挖一口属于自己的井


新网域名管理地址更换

旧的地址(已经登录不了):http://www.paycenter.com.cn/domainmanage/management.htm
新的地址:http://dcp.xinnet.com/Modules/agent/domain/domain_manage.jsp

老张的 blog 出了问题,要换空间,问我域名管理地址,我发过去,不料登录出错,我自己试了下,确实登录不了。问了代理的财富猪才知道新网域名管理地址改了,但是他也不知道具体的地址是什么。他向新网客服咨询,对方没回复。此时是 13:40,可能新网是 14:00 才上班。

还好搜到了新的登录地址。感谢 zhan.us 记录下这个新地址。


The Honeybee’s Sting
from: http://www.storyarts.org/library/nutshell/stories/honeybee.html

A Tale from Ancient Greece

Zeus, the King of Mount. Olympus, was giving out gifts to beasts and birds and insects one day. To his surprise, the little honeybee came before his throne and said, "Of all the gifts you could give to me, only one will do. I’d like the power to inflict great pain whenever I choose to."

"What an awful wish!" said great Zeus, "I will grant it. I hereby give you a sharp sting. But, I’m sure you’ll use this weapon carefully in times of anger and strife. You’ll only get to use it once, for using it will cost you your life."

And to this day, the little honeybee dies after it stings.

星期二 晴转多云 21~31℃

出门遇老张,大悦

极少有在上下班路上遇到朋友,早上出门经过“德胜东村”站台时,愕然看见老张正在站台边跷首张望。上前拍一下肩,看那架势,似乎要和我比一比谁更吃惊。

昨天刚录到一篇 拥有快乐一天的七种方法,原来要快乐一天,一些随机因素还是要计算在内的。


IE7 的刷新和停止按钮

昨天没找到 IE7 的刷新按钮,今天到网上搜“ie7刷新按钮”,看到了,就在地址栏的右边,此前我还使劲在自定义命令栏里去找。

不过这一搜发觉一个现象,IE7 把“刷新”和“停止”按钮放在那个位置,确实不太符合旧习惯。

有一篇题目干脆就叫 没有刷新按钮是ie7最不爽的地方,结果被“热烈欢迎火星大王光临地球”,这样一来我也沾光了。


意见和建议的区别

意见:带有反对的意思,在反对的基础上提出看法。
建议:在不反对的基础上做一个良性的修正。

参考:http://zhidao.baidu.com/question/1304027.html


友吧取消 AdSense“链接单元”

单价太低,基本上一点击一分,且极少点击,放在顶部那么重要的位置,错误的策划。


photoshop 的切片

一直不习惯用 PS 的切片,全是用 FW 来切的,今天狠下心来尝试一下 PS 的切片,发觉还是不错的。

以前不习惯用,是因为导出时会把一些没用的空白图片也一起导出,今天发现,使用“切片选择工具”双击切片,把切片类型设成“无图像”,导出时就不会把该切片导出了。

不过不可以删除切片,否则还是会自动生成切片,导出时又会导出空白图片了。

还可以像 FW 一样命名各切片。

我用 PS 切片,主要用于导出 gif.


The Tale of Bausis & Philemon
from: http://www.storyarts.org/library/nutshell/stories/bausis.html

A Greek Myth

Zeus, the king of Mount. Olympus, came down to visit the country folk disguised as a beggar. People turned him away until he came to the house of a poor elderly couple, Bausis and Philemon. Bausis and Philemon shared their simple meal of bread and wine with their guest. Oddly enough, the wine jug never emptied and there was more bread after each slice was cut. It was then that Bausis and Philemon realized that this was no ordinary visitor, but a god from Mount Olympus.

They bowed low and apologized for the simple food they had to offer. Zeus replied, "When you have shared your best, there is never a need to apologize."

In return for their generosity, Zeus granted them their only wish: to remain together always. and so when Bausis and Philemon died, an oak and a linden tree grew with their trunks entwined around each other, on the spot where the couple was buried.

留言簿   1 楼   lemon
2008-8-28 22:10:04

哥们,广告不易太多,别把自己的排名做下去,自己的网站是分享心得,不是用来盈利的~


回复:谢谢提醒,我心里有底的:)
来个比喻,多数人订阅博客时,都选择自己喜欢的,退订自己不喜欢的。我会选择大部分自己喜欢的,但是也会留几个不喜欢的。一方面可以了解自己的反方向,另一方面也可以锻炼自己的心胸。所以,排名要上,广告也要放,这其中只是一个度的问题,要考虑的问题诸如放的位置怎么样?是否影响阅读?是否诱导欺诈点击?等等。。我曾经也反对博客放广告,后来又说,广告,是可以既作为广告,也作为装饰的。我对自己的思维转变一向很慎重,我想这应该也是我得以不断螺旋前进的原因。见风转舵要不得,思维固化同样要不得。结合了你的建议,将侧栏 AD 由两个减为一个。感谢建议:)

星期一 晴转多云 早晨起来于阳台之上顿感秋意,拂我肤的不是秋风又是何风?

自动升级到 IE7、Service Pack 3

记得 IE7 刚出来时,好不容易才尝到鲜,现在倒好,自动升级了,且两个字特别扎眼:“免费”。

本来我一直用不习惯 IE7,只在它刚出来时用过一小阵子,今天看到是自动升级,那就升吧,大概现在比当初要成熟许多了。

此前另一个不装 IE7 的原因是,越来越多人装 IE7,反倒要用 IE6 调试变得不方便了,而用于调试的 IE6 独立版用起来怎么也不太爽手。所以自己留着,需要用 IE7 调试时我一般就问 Ryan。但现在我自己装了 IE7,需要用 IE6 调试时,不知道要问谁了。还是这样吧:公司升到 IE7,家里还用 IE6.

正寻思间,已升级重启完毕,忽又见一更新,是 XP Service Pack 3 (KB936929),一并升级了吧。

用了一天 IE7,发现有一个问题,从 IE7 刚上市到现在一直都存在:开着一个窗口,不断用该窗口调试,久了,访问越来越慢,最后干脆就访问不了了,重启一下 IE 又恢复正常了。

这个问题也是我当初不高兴使用 IE7 的原因之一,没想到过去快两年了这个老问题依然健在。不过坚持的时间好像久了一些,记得尝鲜那时,抽风的频率明显比现在高。

以致今天下午我还以为友吧服务器出问题了(迁到万网一个月来还没出过问题),郁闷之间突然想起 IE7 的这个老毛病,重启一下 IE,果然就正常了。


冰淇淋 blog 上线

http://www.mppyes.cn/

冰淇淋是新交 ^^


开始整理友吧旧事

友吧快一周年了,开始整理一些东西,准备在 9 月 30 日周年那天作为总结发布。总结是为了更好的计划未来,这是我为什么每天写日志总结当天事情的最大原因。我一直相信,一个人,好的习惯越多,成功的概率就越高,而不断培养新的好习惯,则是一个最大的好习惯。


友吧首页“吧友互动”修改

位置由“左下”改成“中下”,由“纯文本”改成“头像 + 文本”。原“互动”位置改成“非自由分享”。


Anansi Goes Fishing
from: http://www.storyarts.org/library/nutshell/stories/anansi.html

A Folktale from West Africa

Foolish Anansi thought he could trick a fisherman into doing his work for him. "Let’s go fishing," he suggested.

"Very well," said the fisherman, who was clever and quite wise to Anansi’s tricks. "I’ll make the nets and you can get tired for me."

"Wait," said Anansi, "I’ll make the nets and you can get tired for me!" Anansi made nets as his friend pretended to be tired. They caught four fish.

The fisherman said, "Anansi, you take these. I’ll take tomorrow’s catch. It might be bigger."

Greedily imagining the next day’s catch, Anansi said, "No, you take these and I’ll take tomorrow’s fish."

But the next day, the nets were rotting away and no fish were caught. The fisherman said, "Anansi, take these rotten nets to market. You can sell them for much money."

When Anansi shouted, "Rotten nets for sale!" in the marketplace, people beat him with sticks.

"Some partner you are," Anansi said to the fisherman as he rubbed his bruises. "I took the beatings. At least you could have taken the pain."

Anansi never tried to trick the fisherman again!

第103天:诸葛斥魏延(思考)

星期日 小雨转多云

诸葛斥魏延 ( 思考 )

关羽攻长沙,因守将黄忠英勇,多日未取。正郁之间,不料守将魏延叛主献城。回见刘备,众皆大喜,唯孔明不悦,骤道:“来人!将魏延拿下!”

众人惊愕,刘备问曰:“魏延乃有功之人,军师为何如此?”

孔明曰:“食其禄而杀其主,是不忠也;居其地而献其城是不义也。如此不忠不义之之人,何以为臣。故先斩之,以绝后患!”

关羽请求赦免,刘备亦道:“若杀此人,恐降者人人自危,望军师饶恕。”

孔明遂至魏延之前斥道:“今后在主公帐下,勿生异心。如若不然,我好歹取你首级。”

星期六 小雨

z-blog 数据库连接不上的一种原因

正在操作 blog,突然提示“数据库连接错误”“对象关闭时,不允许操作”“没有权限”,后台无法登录,所有动态页都访问不了,很是蹊跷。到官方论坛上查,也有一些用户遇到这问题。友吧此前用数字引擎的空间,也常发生动态页不能访问的情形,都是由于服务器原因。我想这一次多半也是服务器的原因,索性关机睡觉,一个小时后重开机,果然可以了。

使用 z-blog 的用户如果遇到此问题,不必惊慌,多半是空间方的问题,不用瞎担心 z-blog 程序出了什么错。先联系 IDC 准没有错,告知对方“动态页访问不了,数据库连接不上”,我想这个问题在他们看来早已是家常便饭了,即刻就能解决。

如果不急的话,不妨也像我一样先睡一觉,一觉起来还连接不上再联系也不迟。


继续处理 blog 细节

没有球约,没有友约,继续处理 blog 的一些细微之处:

  1. 将中间版块与侧栏整合到一个 div 里,以避免中间版块内容少时侧栏与页脚重叠。此前侧栏使用了 position:absolute,故而出现重叠。
  2. blockquote 样式
  3. 分页的当前页码样式
  4. 修复 bug:鼠标经过分页码时,页脚跟着抖动 ( IE )。在分页所在 div 加上 float:left
  5. 首页侧栏添加 Tags

星期五 阴

<strong>和<b>标签的区别

两者看上去都是加粗。<strong>除了使文字看上去加粗外,还有内在的强调作用,这点主要体现在 SEO 中,搜索引擎会更重视<strong>标签内的元素。而<b>则仅仅用于显示粗体。即<strong>是逻辑标签,<b>是实体标签。如果只想在页面中显示为粗体,那么建议用<b>,而不要用<strong>,以免引起搜索引擎的“误解”。

参考:http://zhidao.baidu.com/question/5370384.html


梦见 IE8 用户

昨晚梦见一位 IE8 用户打开我的 blog,内页侧栏的“新近日志”隐藏文字的样式在 IE8 下无效。


减少侧栏 AD,blog 重构告一段落

早上看到 lemon 的留言:

哥们,广告不易太多,别把自己的排名做下去,自己的网站是分享心得,不是用来盈利的~

考虑之后,将侧栏 AD 由两个减为一个。感谢 lemon 的建议。

另,发言区的样式修改完毕。至此,blog 重构告一段落,下周开始又要继续友吧了。九月份的计划是完成基础建设的扫尾,十月份将开始 UCH 之旅。


The Traveler & The Nut Tree
from: http://www.storyarts.org/library/nutshell/stories/traveler.html

A Tale from India

A traveler who stopped to rest under a nut tree noticed a huge pumpkin growing on a thin vine.

"How foolish are the ways of nature," the traveler muttered. "If things were as they should be, this big, strong tree would hold the large pumpkins, and the spindly vine would hold the nuts. Now if I made the world, that is how I’d have done it!"

At that moment, from high up in the tree, a small nut fell and hit him squarely on the head. Startled, he looked up into the branches and thought, "Forgive my arrogance! If it were a big pumpkin that fell out of the tree onto my head, it most certainly would have killed me!"

星期四

旧日志重新编辑完毕

从第94天起对转到新版的旧日志进行重编辑,到今天编辑完毕。对每篇日志主要进行了以下操作:

  1. 将<br />换成<p>
  2. 分隔线用<hr />代替****
  3. 摘要用<ol>列表。

Blog 尚有一些细节需要处理:

  1. blockquote 的样式
  2. 日志发言区的样式(回复、每条留言之间,等…)
  3. RSS 订阅
  4. 其他细微的部分

z-blog的撤消功能

在排版视图下才能进行撤消与反撤消,在源代码视图下不行。如果在源代码视图下进行了修改,突然发现按 ctrl+z 无法撤消,不用急,切换到排版视图后即可 ctrl+z.


友吧会员空间档案页的照片尺寸修改

此前为固定 320*240,现改为不定,使照片外框与照片之间看起来更自然。


什么叫一线城市?二线城市?三线城市?
来自:http://zhidao.baidu.com/question/45112318.html

解释有以下几种:

  1. 一线城市是指直辖市;二线城市是指省会城市、经济特区和各省综合实力排名前三名的城市。
  2. 一线城市是指北京、上海、广州等大城市。 二线城市包括各省省会及沿海城市。三线城市是指比较发达的中小城市。
  3. 一线城市是指1992年国家规定的5个特区和6个城市;二线城市指省会城市、直辖市和单列市;三线城市则指有战略意义的大中城市和经济总量较大的小城市,比如宁波、温州、东莞。
  4. 一线城市是指1992年允许合资试点的五个特区、六大城市;二线城市是指1999年扩大合资试点的省会、直辖市和计划单列市;三线城市是指有战略意义的大中城市。—— 来源:中国社会科学院财政与贸易经济研究所

Cat Woman
from: http://www.storyarts.org/library/nutshell/stories/catwoman.html

A Tale from Greece

There was once a man who had a beautiful cat. She was so loving that one day he wished out loud, "Dear Cat, if you were only a woman, I’d marry you!"

Aphrodite, the goddess of love, heard his wish and changed the cat into a beautiful woman. The man and the cat woman were married and lived quite happily together until one night . . .

The beautiful woman was sitting on her bed and into the room came a mouse. She crouched on her hands and knees, pounced on the mouse, and began to eat it, much to her husband’s alarm!

Aphrodite looked down from the clouds and, seeing this, turned the woman back into a cat. Aphrodite chuckled, "I can change the outer appearance of a creature, but to truly make a difference, I guess I must change its inner character first!"