Linux User Blog Union
http://network.feedsky.com/lubu

圈子简介
Linux,更多的是一种文化,一种精神,而与技术、商业无关。拥抱linux,享受开源~

圈子公告
只要愿意和所有人分享你和Linux之间的故事,欢迎加入该博客群~
创建者:yegle
分类: IT-互联网
成员数: 9
订阅数:7
Tag: system  operating  source  open  Linux 
创建时间:2008-04-11
作者:rocrocket
Linux, Thoughts and
时间:2008-05-14

为wine设计一个广告:(要求演员说前两句话时痛不欲生,说最后一句话时眉开眼笑,对演员来说应该不难~~)

实况,一直是我转移到Linux平台后的痛~

投回windows怀抱的想法一直蠢蠢欲动。

但现在不会了,因为我有了Wine!

系统环境

发行版本:Fedora 8
内核版本:2.6.24.4-64
桌面系统:GNOME 2.20.3

软件环境

wine版本:0.9.60 (wine是一个在Linux平台模拟windows环境的软件)
可以从官网www.winehq.org下载
D3DX9_dll_update.zip
下载地址:www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip
PES6:从迅雷上面下载的WECN版本,绿色免安装。

安装步骤

1 执行:winecfg,选择audio标签,并禁掉声卡
2 用wine命令安装D3DX9_dll_update.zip
2.1 首先用unzip解压
2.2 然后运行Install/DXSETUP.exe进行安装
3 将免安装游戏的目录”Pro Evolution Soccer 6”拷贝到~/.wine/drive_c/Program Files/目录下
4 用文本阅读器(如Leappad)打开其中的后缀是reg的文件,即注册表文件,里面的内容为需要导入注册表的信息。同时用打开regedit命令打开wine中的windows注册表,将reg文件中的内容按要求自己手动写入注册表中。
4.1 reg文件内容为:
[HKEY_LOCAL_MACHINESOFTWAREKONAMIPES6]

[HKEY_LOCAL_MACHINESOFTWAREKONAMIPES6PES6]
“installdir”=”C::Pro Evolution Soccer 6”
“lang_e”=dword:00000001
“lang_f”=dword:00000000
“lang_g”=dword:00000000
“lang_i”=dword:00000000
“lang_s”=dword:00000000
“lang_p”=dword:00000000
“installfrom”=”H:”
“code”=”A6V9D5HXPT62H4PFWA45″
[HKEY_LOCAL_MACHINESOFTWAREKONAMIPES6PES61.0]
4.2 注册表如图:

5 进入游戏目录运行其中的设置工具:wine setting.exe将游戏画面模式设置成640×480,并且画面质量调整到最低。
运行游戏
务必记住要将目录调整到~/.wine/drive_c/Program Files/ Pro Evolution Soccer 6目录下,在运行wine来执行pes6.exe,否则会报错“AFS cannot find !”。切记!

游戏截图

测试

没有测试网络互联,其他的功能都可以实现,包括手柄,包括联赛,包括进度存储:D
大家测试测试其他功能:)

ps:帖子内容有一部分是参照wine官网的说明,一部分是自己的摸索~~呵呵

作者:yegle
一阁Blog
时间:2008-05-14

查了一下找到这个命令:

obexftp -b 00:18:8D:6D:C9:55 --channel 9 --put opera-mini-4.1.11313-advanced-int.jar

其中:

-b指定手机的蓝牙设备号。可通过打开蓝牙后执行sudo hcitool inq来获得

–channel指定obex push的channel号。可通过sdptool browse <蓝牙设备号>并在结果中找OBEX PUSH字样来获取这个channel号

–put指定传送的文件

看了一下好像没什么困难的,抽个时间用zenity写个图形前端好了,非GNOME和KDE用户居然没有合适的工具通过蓝牙传文件……囧了……



作者:mlsx
Linux|系统管理|WEB
时间:2008-05-13
之前kmail使用得还挺好,后来我安装了KDE4,kmail还是基于KDE3,一开始,在KDE4环境下,使用kmail也没用问题。

后来不知道怎么回事,kmail就出现了一个状况,不接收邮件了。每次点击“检查邮件”,它立刻就报告“没用新邮件”,其实邮件服务器上新邮件多着呢。

删除了配置文件,不行,由POP3换成IMAP,也不行,IMAP状态下,一直处于接收信息状态。

只好重新登录KDE3环境下,发现居然可以收邮件,难道是KDE4环境下暂时对KDE3的kmail兼容性不够好?

但是,后来又不知道我怎么折腾的,在KDE4下又能收邮件了,我真是不记得我做了什么。

结果了,前几天,故障又发生了,这次我折腾了很多次,也折腾了很多天,包括删除配置文件,重装kmail,甚至创建一个新账号来使用kmail,当然包括登录KDE3环境,
上述方式均不奏效。但是。。。。。。,root账号是可以收邮件了。我把root账号的kmail相关配置信息覆盖普通用户的信息,也无效,删除一些KDE的配置信息,还是无效


尝试debug,strace等方法追踪kmail,也没用获得什么好的效果,goole上也没用见到类似我这样的信息。

真是把我郁闷得不行。

其实我本来是不太喜欢kmail的,因为很早以前用过,总是有这样或者那样的问题,这次转过来就是想尝试完全用Qt的程序看看如何。

看来还是不行,konqueror的兼容性相比firefox还是有差距(虽然khtml更接近W3C标准)。

现在用的KDE4也不是很稳定。

先还是换回thunderbird吧,等基于KDE4的kmail出来,再尝试了。

有人遇到和我同样的问题吗?有什么好的解决办法?


Tags - ,
作者:rocrocket
Linux, Thoughts and
时间:2008-05-13

2008年5月12日
四川省汶川县发生7.8级地震
东亚和南亚全部有震感
官方报道死亡3000~5000人

听到这个消息,心很沉。

2008年,多事之秋。南方冰灾,火车相撞,祖国统一问题,四川地震(希望此处是句号,而不是…)
难道一件世界举世瞩目的好事需要用如此多的厄运来换取么?

塞翁失马,话虽有理,但“失”也是有限度的,老天爷不该这样考验中国的。

祝福中国,我的祖国!

作者:mlsx
Linux|系统管理|WEB
时间:2008-05-13

地震前

直接回家,按照以下列表来检查措施是否到位:

  1. 指导所有家庭成员(尤其是老年人)如何切断自来水和电源
  2. 清晰地标注好水,煤气,电源的开关的状态,如果使用天然气,必要时可以拧紧管道处的开关,以关闭天然气。
  3. 修复脱落的屋顶
  4. 把开水机洗碗机,干燥机,洗衣机绑在一起固定住,防止它们因移动而破坏水管,煤气管道
  5. 固定住高度较高或较笨重的家具,把分量重的物品放在位置较低的架子上
  6. 固定镜子,字画,防止从墙上摔下来
  7. 把床和椅子搬到远离烟囱和窗户的位置,床上不要放笨重的物品。拉好的窗帘能帮助防止碎玻璃掉到床上。
  8. 在电视机,电脑和其他小家电的底部铺上防滑垫,或用其他物品来固定
  9. 锁住橱柜,防止里面的物品洒落下来
  10. 把易燃物品放置在远离火源的地方,或远离容易被溅到的地方
  11. 咨询房屋专家能够保护房子的措施
  12. 如果住在多层大楼,联系物业如何保证房间的安全

地震中

如果在室内:躲,盖,抓

  1. 待在室内
  2. 尽可能躲在大件家具下,例如桌,椅,床或者任何比较坚固的家具
  3. 保护住你的头以防被坠落物体击伤
  4. 抓住你的躲藏物以保证你始终被遮盖着
  5. 如果无法找到坚固的家具,或者你在走廊上,尽量贴着或者蹲在墙边。
  6. 如果你在商场内,立刻前往最近的柜台
  7. 远离窗户以及放有重物的架子
  8. 如果你在学校,立刻躲在桌子下面并且紧紧抓住。背朝窗户。
  9. 如果你在轮椅上,锁定轮子并且护住你的头和脖子。

如果在户外

  1. 留在户外
  2. 离开楼房,呆在开阔地带
  3. 如果你在非常拥挤的公共地方, 躲避在不会被踩踏到的地方.

如果你在车上

  1. 立刻将车不会停在阻碍交通的安全处。把道路让给援救与急救车辆
  2. 远离桥梁,天桥,地道,楼房等任何可能倒塌的建筑物
  3. 熄火并留在车内
  4. 收听广播听从官方的指示
  5. 不要离开汽车如果有电线缠绕,等待救援
  6. 如果需要帮助在车窗上安置求助指示牌
  7. 如果在公车上,留在你的座位上直到公车停稳。立刻走到安全处。如果找不到,保持蹲踞姿势并护住你的头防止被掉落物体砸伤

在地震中需要避免的事项

  1. 门口。门可能会突然关上引起伤害
  2. 窗户,书架,高家具和电灯。可能会被玻璃碎片或者重物击伤
  3. 电梯。如果地震发生时你在电梯里,立刻按下所有的楼层按钮尽快出去
  4. 电线。至少离开10米防止伤害
  5. 海边。地震可能导致海啸。

震后

保持镇静.有能力的前提下请帮助身边的人

  1. 对余震保持警惕
  2. 通过电视或者广播得到官方的消息.听从官方的指挥.将电话听筒放回座机.只在紧急的情况下打电话寻求帮助
  3. 为保护自己远离碎片,尤其是碎玻璃,请穿上质地坚固的鞋和具有保护作用的外套.
  4. 检查一下自己的家是否有结构上或者别的的损坏.如果您觉得自己的家并不安全,请不要再次进入
  5. 如果您不得不离开自己的家,请带上急救箱和别的一些必备物品.用清晰的留言条来告知他人你在哪里.为了资源可能的稀缺性,不要浪费食物和水
  6. 在不确定是否有燃气泄露或者易燃液体泄露的情况下,不要点燃火柴或者触碰电器开关
  7. 如果水龙头仍可使用,马上在浴缸里储满水,以防活水源被切断.请记住您的热水器水箱里的水(触碰热水器前请确认水不是烫的)或者是马桶水箱里的水也可以使用.
  8. 在您不确定抽水绳是否断裂的情况下,请不要抽马桶
  9. 小心清理任何的倾斜物或者是碎片.请戴上必要的手部和眼部保护设施.
  10. 在确认家人安全后,请帮助关心邻居家的情况.如果发现有人被困请安排救援工作或者在您无法提供安全帮助的情况下寻求紧急帮助
  11. 如果您养宠物,尽可能找到它们并且安抚它们.如果您需要被疏散,请带它们去一个事先设置好的避难处.
  12. 如果需要帮助,请在你家窗户上张贴'请求帮助'的字样.
  13. 请对地震造成的间接影响保持警惕.虽然地面的摇晃是地震的主要破坏,还有一些间接影响也可能十分具有破坏性.例如,大楼的倾倒,准饱和砂土变得柔软且不稳定,盆地可能有水塌方,以及海岸边可能产生的海哮

Before an eartuquake: How preparedness checklist

Go through your home, imagining what could happen to each part of it, if shaken by a violent earthquake. Check off the items that you have completed in this list.

  1. Teach everybody in the family (if they are old enough) how to turn off the water and electricity.
  2. Clearly label the on-off positions for the water, electricity and gas. If your home is equipped with natural gas: tie or tape the appropriate wrench on or near the pipe, to turn off the gas, if necessary.
  3. Repair loose roof shingles.
  4. Tie the water heater to studs along with other heavy appliances (stove, washer, dryer), especially those that could break gas or water lines if they shift or topple.
  5. Secure top-heavy furniture and shelving units to prevent tipping. Keep heavy items on lower shelves.
  6. Affix mirrors, paintings and other hanging objects securely, so they won’t fall off hooks.
  7. Locate beds and chairs away from chimneys and windows. Don’t hang heavy pictures and other items over beds. Closed curtains and blinds will help stop broken window glass from falling on beds.
  8. Put anti-skid pads under TVs, computers and other small appliances, or secure them with Velcro or other such product.
  9. Use child-proof or safety latches on cupboards to stop contents from spilling out.
  10. Keep flammable items and household chemicals away from heat and where they are less likely to spill.

During an earthquake

Wherever you are when an earthquake starts, take cover immediately. Move a few steps to a nearby safe place if need be. Stay there until the shaking stops

If you are indoors: “DROP, COVER, HOLD”

  1. Stay inside.
  2. Drop under heavy furniture such as a table, desk, bed or any solid furniture.
  3. Cover your head and torso to prevent being hit by falling objects.
  4. Hold onto the object that you are under so that you remain covered.
  5. If you can't get under something strong, or if you are in a hallway, flatten yourself or crouch against an interior wall.
  6. If you are in a shopping mall, go into the nearest store.
  7. Stay away from windows, and shelves with heavy objects.
  8. If you are at school, get under a desk or table and hold on. Face away from windows.
  9. If you are in a wheelchair, lock the wheels and protect the back of your head and neck.

If you are outdoors

  1. Stay outside.
  2. Go to an open area away from buildings.
  3. If you are in a crowded public place, take cover where you won’t be trampled.

If you are in a vehicle

  1. Pull over to a safe place where you are not blocking the road. Keep roads clear for rescue and emergency vehicles.
  2. Avoid bridges, overpasses, underpasses, buildings or anything that could collapse.
  3. Stop the car and stay inside.
  4. Listen to your car radio for instructions from emergency officials.
  5. Do not attempt to get out of your car if downed power lines are across it. Wait to be rescued.
  6. Place a HELP sign in your window if you need assistance.
  7. If you are on a bus, stay in your seat until the bus stops. Take cover in a protected place. If you can’t take cover, sit in a crouched position and protect your head from falling debris.

AVOID the following in an earthquake

  1. Doorways. Doors may slam shut and cause injuries.
  2. Windows, bookcases, tall furniture and light fixtures. You could be hurt by shattered glass or heavy objects.
  3. Elevators. If you are in an elevator during an earthquake, hit the button for every floor and get out as soon as you can.
  4. Downed power lines – stay at least 10 meters away to avoid injury.
  5. Coastline. Earthquakes can trigger large ocean waves called tsunamis.

After an earthquake

Stay calm. Help others if you are able.

  1. Be prepared for aftershocks.
  2. Listen to the radio or television for information from authorities. Follow their instructions.Place telephone receivers back in their cradles; only make calls if requiring emergency services.
  3. Put on sturdy shoes and protective clothing to help prevent injury from debris, especially broken glass.
  4. Check your home for structural damage and other hazards. If you suspect your home is unsafe, do not re-enter.
  5. If you have to leave your home, take your emergency kit and other essential items with you. Post a message in clear view, indicating where you can be found. Do not waste food or water as supplies may be interrupted.
  6. Do not light matches or turn on light switches until you are sure there are no gas leaks or flammable liquids spilled. Use a flashlight to check utilities and do not shut them off unless damaged. Leaking gas will smell.
  7. If tap water is still available immediately after the earthquake, fill a bathtub and other containers in case the supply gets cut off. If there is no running water, remember that you may have water available in a hot water tank (make sure water is not hot before touching it) and toilet reservoir (not the bowl).
  8. Do not flush toilets if you suspect sewer lines are broken.
  9. Carefully clean up any spilled hazardous materials. Wear proper hand and eye protection.
  10. Check on your neighbors after looking after members of your own household. Organize rescue measures if people are trapped or call for emergency assistance if you cannot safely help them.
  11. If you have pets, try to find and comfort them. If you have to evacuate, take them to a pre-identified pet-friendly shelter.
  12. Place a HELP sign in your window if you need assistance.
  13. Beware of secondary effects. Although ground shaking is the major source of earthquake damage, secondary effects can also be very destructive. These include landslides, saturated sandy soils becoming soft and unstable, flooding of low-lying areas and tsunamis washing over coastlines.

Tags - ,
作者:mlsx
Linux|系统管理|WEB
时间:2008-05-13

地震前

直接回家,按照以下列表来检查措施是否到位:

  1. 指导所有家庭成员(尤其是老年人)如何切断自来水和电源
  2. 清晰地标注好水,煤气,电源的开关的状态,如果使用天然气,必要时可以拧紧管道处的开关,以关闭天然气。
  3. 修复脱落的屋顶
  4. 把开水机洗碗机,干燥机,洗衣机绑在一起固定住,防止它们因移动而破坏水管,煤气管道
  5. 固定住高度较高或较笨重的家具,把分量重的物品放在位置较低的架子上
  6. 固定镜子,字画,防止从墙上摔下来
  7. 把床和椅子搬到远离烟囱和窗户的位置,床上不要放笨重的物品。拉好的窗帘能帮助防止碎玻璃掉到床上。
  8. 在电视机,电脑和其他小家电的底部铺上防滑垫,或用其他物品来固定
  9. 锁住橱柜,防止里面的物品洒落下来
  10. 把易燃物品放置在远离火源的地方,或远离容易被溅到的地方
  11. 咨询房屋专家能够保护房子的措施
  12. 如果住在多层大楼,联系物业如何保证房间的安全

地震中

如果在室内:躲,盖,抓

  1. 待在室内
  2. 尽可能躲在大件家具下,例如桌,椅,床或者任何比较坚固的家具
  3. 保护住你的头以防被坠落物体击伤
  4. 抓住你的躲藏物以保证你始终被遮盖着
  5. 如果无法找到坚固的家具,或者你在走廊上,尽量贴着或者蹲在墙边。
  6. 如果你在商场内,立刻前往最近的柜台
  7. 远离窗户以及放有重物的架子
  8. 如果你在学校,立刻躲在桌子下面并且紧紧抓住。背朝窗户。
  9. 如果你在轮椅上,锁定轮子并且护住你的头和脖子。

如果在户外

  1. 留在户外
  2. 离开楼房,呆在开阔地带
  3. 如果你在非常拥挤的公共地方, 躲避在不会被踩踏到的地方.

如果你在车上

  1. 立刻将车不会停在阻碍交通的安全处。把道路让给援救与急救车辆
  2. 远离桥梁,天桥,地道,楼房等任何可能倒塌的建筑物
  3. 熄火并留在车内
  4. 收听广播听从官方的指示
  5. 不要离开汽车如果有电线缠绕,等待救援
  6. 如果需要帮助在车窗上安置求助指示牌
  7. 如果在公车上,留在你的座位上直到公车停稳。立刻走到安全处。如果找不到,保持蹲踞姿势并护住你的头防止被掉落物体砸伤

在地震中需要避免的事项

  1. 门口。门可能会突然关上引起伤害
  2. 窗户,书架,高家具和电灯。可能会被玻璃碎片或者重物击伤
  3. 电梯。如果地震发生时你在电梯里,立刻按下所有的楼层按钮尽快出去
  4. 电线。至少离开10米防止伤害
  5. 海边。地震可能导致海啸。

震后

保持镇静.有能力的前提下请帮助身边的人

  1. 对余震保持警惕
  2. 通过电视或者广播得到官方的消息.听从官方的指挥.将电话听筒放回座机.只在紧急的情况下打电话寻求帮助
  3. 为保护自己远离碎片,尤其是碎玻璃,请穿上质地坚固的鞋和具有保护作用的外套.
  4. 检查一下自己的家是否有结构上或者别的的损坏.如果您觉得自己的家并不安全,请不要再次进入
  5. 如果您不得不离开自己的家,请带上急救箱和别的一些必备物品.用清晰的留言条来告知他人你在哪里.为了资源可能的稀缺性,不要浪费食物和水
  6. 在不确定是否有燃气泄露或者易燃液体泄露的情况下,不要点燃火柴或者触碰电器开关
  7. 如果水龙头仍可使用,马上在浴缸里储满水,以防活水源被切断.请记住您的热水器水箱里的水(触碰热水器前请确认水不是烫的)或者是马桶水箱里的水也可以使用.
  8. 在您不确定抽水绳是否断裂的情况下,请不要抽马桶
  9. 小心清理任何的倾斜物或者是碎片.请戴上必要的手部和眼部保护设施.
  10. 在确认家人安全后,请帮助关心邻居家的情况.如果发现有人被困请安排救援工作或者在您无法提供安全帮助的情况下寻求紧急帮助
  11. 如果您养宠物,尽可能找到它们并且安抚它们.如果您需要被疏散,请带它们去一个事先设置好的避难处.
  12. 如果需要帮助,请在你家窗户上张贴'请求帮助'的字样.
  13. 请对地震造成的间接影响保持警惕.虽然地面的摇晃是地震的主要破坏,还有一些间接影响也可能十分具有破坏性.例如,大楼的倾倒,准饱和砂土变得柔软且不稳定,盆地可能有水塌方,以及海岸边可能产生的海哮

Before an eartuquake: How preparedness checklist

Go through your home, imagining what could happen to each part of it, if shaken by a violent earthquake. Check off the items that you have completed in this list.

  1. Teach everybody in the family (if they are old enough) how to turn off the water and electricity.
  2. Clearly label the on-off positions for the water, electricity and gas. If your home is equipped with natural gas: tie or tape the appropriate wrench on or near the pipe, to turn off the gas, if necessary.
  3. Repair loose roof shingles.
  4. Tie the water heater to studs along with other heavy appliances (stove, washer, dryer), especially those that could break gas or water lines if they shift or topple.
  5. Secure top-heavy furniture and shelving units to prevent tipping. Keep heavy items on lower shelves.
  6. Affix mirrors, paintings and other hanging objects securely, so they won’t fall off hooks.
  7. Locate beds and chairs away from chimneys and windows. Don’t hang heavy pictures and other items over beds. Closed curtains and blinds will help stop broken window glass from falling on beds.
  8. Put anti-skid pads under TVs, computers and other small appliances, or secure them with Velcro or other such product.
  9. Use child-proof or safety latches on cupboards to stop contents from spilling out.
  10. Keep flammable items and household chemicals away from heat and where they are less likely to spill.

During an earthquake

Wherever you are when an earthquake starts, take cover immediately. Move a few steps to a nearby safe place if need be. Stay there until the shaking stops

If you are indoors: “DROP, COVER, HOLD”

  1. Stay inside.
  2. Drop under heavy furniture such as a table, desk, bed or any solid furniture.
  3. Cover your head and torso to prevent being hit by falling objects.
  4. Hold onto the object that you are under so that you remain covered.
  5. If you can't get under something strong, or if you are in a hallway, flatten yourself or crouch against an interior wall.
  6. If you are in a shopping mall, go into the nearest store.
  7. Stay away from windows, and shelves with heavy objects.
  8. If you are at school, get under a desk or table and hold on. Face away from windows.
  9. If you are in a wheelchair, lock the wheels and protect the back of your head and neck.

If you are outdoors

  1. Stay outside.
  2. Go to an open area away from buildings.
  3. If you are in a crowded public place, take cover where you won’t be trampled.

If you are in a vehicle

  1. Pull over to a safe place where you are not blocking the road. Keep roads clear for rescue and emergency vehicles.
  2. Avoid bridges, overpasses, underpasses, buildings or anything that could collapse.
  3. Stop the car and stay inside.
  4. Listen to your car radio for instructions from emergency officials.
  5. Do not attempt to get out of your car if downed power lines are across it. Wait to be rescued.
  6. Place a HELP sign in your window if you need assistance.
  7. If you are on a bus, stay in your seat until the bus stops. Take cover in a protected place. If you can’t take cover, sit in a crouched position and protect your head from falling debris.

AVOID the following in an earthquake

  1. Doorways. Doors may slam shut and cause injuries.
  2. Windows, bookcases, tall furniture and light fixtures. You could be hurt by shattered glass or heavy objects.
  3. Elevators. If you are in an elevator during an earthquake, hit the button for every floor and get out as soon as you can.
  4. Downed power lines – stay at least 10 meters away to avoid injury.
  5. Coastline. Earthquakes can trigger large ocean waves called tsunamis.

After an earthquake

Stay calm. Help others if you are able.

  1. Be prepared for aftershocks.
  2. Listen to the radio or television for information from authorities. Follow their instructions.Place telephone receivers back in their cradles; only make calls if requiring emergency services.
  3. Put on sturdy shoes and protective clothing to help prevent injury from debris, especially broken glass.
  4. Check your home for structural damage and other hazards. If you suspect your home is unsafe, do not re-enter.
  5. If you have to leave your home, take your emergency kit and other essential items with you. Post a message in clear view, indicating where you can be found. Do not waste food or water as supplies may be interrupted.
  6. Do not light matches or turn on light switches until you are sure there are no gas leaks or flammable liquids spilled. Use a flashlight to check utilities and do not shut them off unless damaged. Leaking gas will smell.
  7. If tap water is still available immediately after the earthquake, fill a bathtub and other containers in case the supply gets cut off. If there is no running water, remember that you may have water available in a hot water tank (make sure water is not hot before touching it) and toilet reservoir (not the bowl).
  8. Do not flush toilets if you suspect sewer lines are broken.
  9. Carefully clean up any spilled hazardous materials. Wear proper hand and eye protection.
  10. Check on your neighbors after looking after members of your own household. Organize rescue measures if people are trapped or call for emergency assistance if you cannot safely help them.
  11. If you have pets, try to find and comfort them. If you have to evacuate, take them to a pre-identified pet-friendly shelter.
  12. Place a HELP sign in your window if you need assistance.
  13. Beware of secondary effects. Although ground shaking is the major source of earthquake damage, secondary effects can also be very destructive. These include landslides, saturated sandy soils becoming soft and unstable, flooding of low-lying areas and tsunamis washing over coastlines.

作者:mlsx
Linux|系统管理|WEB
时间:2008-05-13
到目前为止地震夺去的人数快上万了,而其中有不少是祖国的未来。

为什么每次发生这样的灾难是,学校总是首当其冲,学校总是最容易坍塌!

我知道的,在GMD时期,一个地方,最好的建筑一定是属于学校,而现在一个地方最好的建筑属于谁呢?


我们总是说要关心下一代,下一代是祖国的未来,可是在行动上我们又做了什么?这不是喝几杯牛奶的问题,也不是发几只铅笔的问题。较好的生存(不是生活)条件才是最基本的。


愿那些逝去的人们在天堂过得幸福,天堂上不会有地震了吧。



Tags - ,
作者:mlsx
Linux|系统管理|WEB
时间:2008-05-12
帖子来自 http://blog.solrex.cn/go/6...
---------------------------------------------------------

我的笔记本是 DELL Latitude D630,从一开始使用我就发现 D630 的硬盘在正常使用中会经常发出“咯吱、咯吱”的响声(不是光驱,比光驱的咯吱声音要小得多),虽然我在 BIOS 里设置了硬盘模式为 Quiet。我一直认为这是正常现象,读取硬盘总会发出声响的。去年我曾经注意到 Ubuntu 的一个硬盘操作 BUG 引起了广泛的关注,但是在新闻中只提到了在电池模式下出现的问题,我也就没有仔细去浏览,而且我想随着 Ubuntu 升级,这个 BUG 应该被早已 fix。


  

但是今天我被一个事实给吓到了:我一直习以为常的“咯吱、咯吱”声居然是系统 BUG!而且这个 BUG 同样存在于 Windows 和 Linux 。

  

令我信服这一点的是,在我应用了 Ubuntu Bug 列表中提供的解决方案后,Ubuntu 下的硬盘“咯吱、咯吱”声消失了,而 Windows XP 下仍然会发出这种声音。

  
  

重要评论 by 徐宥:windows 没有专门的笔记本版, 电源管理的策略都是沿用桌面的. 如果节能设置为一直打开, 是没有问题的.

  
  

简单的来说,这个 BUG 讲述的是笔记本电脑的电源管理的一个问题:笔记本为了保持低功耗,采用了一个方法,就是在不使用硬盘的时候,将硬盘磁头 park 起来;需要使用的时候,再 unpark 磁头。而在实际使用中,这个节电策略被滥用了,导致过于频繁的 park/unpark 磁头,造成磁盘寿命变短,而且会带来磁盘“咯吱、咯吱”的噪声。这是很多笔记本电脑硬盘使用时间不超过一年的一个原因。

  

一些文章中介绍,一般磁盘设计承受的加载循环计数最多为 600,000 次,而当超过 300,000 次的时候磁盘的响应速度就会变慢,所以平均每小时的加载循环次数应该在 15 次左右,这样才能保证大约 4 年不关机的使用寿命。而我正常使用 7 个月的 D630 平均每小时加载循环次数为 76 次,是设计次数的 5 倍!!

  

有一个工具可以用来检测笔记本电脑硬盘的加载循环计数 smartmontools, 这是开源软件,有 Linux 和 Windows 版本,在 Ubuntu 下可以直接 apt-get。Ubuntu 下用 sudo smartctl -a /dev/sda 命令,Windows 命令行下用类似的命令,可以打印出磁盘的检测信息,主要关注下面两行:
9 Power_On_Hours 0×0032 099 099 000 Old_age Always - 1647
193 Load_Cycle_Count 0×0032 037 037 000 Old_age Always - 126354

  

Power_On_Hours 就是硬盘使用的总时间,Load_Cycle_Count 就是加载循环计数,二者相除,就能得到每小时加载循环次数,比如我的就是 126354/1647 = 76 次,5倍于设计水平,看了真让我感到恐怖。

  

Ubuntu 下推荐的解决方案有一个,我简化了一下,将下面的内容保存成一个脚本文件 fix_hdd.sh,用 sudo sh fix_hdd.sh 运行,然后重启即可:
cat &gt; 99-hdd-spin-fix.sh &lt;&lt; EOF
#!/bin/sh
hdparm -B 255 /dev/sda
EOF
chmod a+x 99-hdd-spin-fix.sh
cp 99-hdd-spin-fix.sh /etc/acpi/suspend.d/
cp 99-hdd-spin-fix.sh /etc/acpi/resume.d/
cp 99-hdd-spin-fix.sh /etc/acpi/start.d/

  

使用这个解决方案后,我发现在 Ubuntu 下我的 D630 磁盘不会发出频繁的“咯吱”声了,用 smartctl 检测发现 Load_Cycle_Count 增加的非常慢,问题应该是解决了。然后我重启到 Windows XP 下,发现仍有“咯吱”声,用 smartctl 测试了一下,在 20 分钟内大约有 18 个加载循环,和 76 次每小时的平均计数差不多,说明 windows 下也存在这个问题。

  

这就有点儿让我想不通了,Linux 下出现问题很容易理解,硬件厂商对 Linux 的支持本来就弱,为什么 Windows 下也会有这个问题?我想这些硬盘厂商在出品之前肯定对硬盘在各种情况下的表现进行过很多次测试,Windows 下的测试应该是最重要的一个吧。难道是故意的?

详细的BUG,请看High frequency of load/unload cycles on some hard disks may shorten lifetime

--------------------------我是分隔线----------------------------

在我的笔记本上,使用时间是6793小时,磁头循环加载次数是187728次,

187728/6793 = 27.8 次,这也比平均设计个加载次数高了将近2倍。


Tags -
作者:yegle
一阁Blog
时间:2008-05-12

Solidot上看见的新闻,去官网看了看演示的demo,简直太震撼了!

转一个来炫一下~~下面这个可不是flash~~~




作者:yegle
一阁Blog
时间:2008-05-12

Solidot上看见的新闻,去官网看了看演示的demo,简直太震撼了!

转一个来炫一下~~下面这个可不是flash~~~





享受Rss订阅统计和发行管理服务, 马上使用Feedsky。
图文版权归原作者所有,模版版权归Feedsky所有