Warning: Consider replacing your battery

I was using my Acer laptop this morning and this warning just popped out.

Some useful information was found here: http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/consider-replacing-your-battery-issue-in-windows-7/b2ffdaa5-e62f-47dd-9336-da268e0f54ed

1st of all, run the command prompt with administrator privileges and in command prompt, change the destination path to C:\ and then type POWERCFG -ENERGY. It will scan ur battery status and after 1 minute, it will generate a report which will be saved in the same destination in which the command had been performedi.e C:\. Open the energy report and check the battery's designed capacity and the last full charge. There will be a difference in both values as well as in the red columns (which are the warnings)it will be saying that battery has been charged below 40%. Note the last full charge reading and then perform the below given steps...this was mine figures: -

Battery:Battery Information
Battery ID SANYO GC86508SAT0
Manufacturer SANYO
Serial Number  
Chemistry Lion
Long Term 1
Design Capacity 44400
Last Full Charge 30470  (it was at 11780, now see the difference by yourself)

charge the battery completely, after that, start using laptop on battery and unplug the charger. Use the laptop until it automatically shut down itself. When it gets shutdown, On it again without plugging the charger and start using the laptop until and unless the battery is totally emptied. Then plug in the charger and  start charging battery, again perform the same steps, after that,  run the POWERCFG -ENERGY and check the last full charge reading. Perform these steps until ur last full charge crosses the 40% of the design capacity. still facing problem, then contact me on*** Email address is removed for privacy ***, cell # +(removed).

Ubuntu下使用fluxbox1.3.2

因为用的是虚拟机,Ubuntu在gnome下跑很卡。今天实在是无法忍受了,于是换成了fluxbox,虽然简陋,但快了很多。之前gnome的时候开机后用free查看只有5M左右的内存未占用,而现在fluxbox下则有将近100M。

就是配置是纯文本的,有些麻烦。我没怎么去修改配置文件,就做了两点改动:

1. 更换壁纸

现在终端使用fbsetbg命令设定当前壁纸:

fbsetbg ~/Pictures/Ubuntu/12120908577176.jpg

然后要保存这个设置,在 ~/.fluxbox/init 文件中加入:

session.screen0.rootCommand: fbsetbg -l 

2. 更换系统字体

由于默认的系统字体不支持中文,所以窗口标题有中文的地方都变成了一个小方格。又因为字体是在style中设定的,所以要修改当前style的配置文件。我使用的是zimek_green风格,所以要修改它的配置文档。

先要确定一下系统中有哪些支持中文的字体,使用fc-list命令查看所有字体,在从列表中找到有显示汉字的字体名称。我选用了 WenQuanYi Zen Hei。

切换到/usr/share/fluxbox/styles/zimek_green的位置,用编辑器打开其中的theme.cfg文件,找到标题为Fonts的section,可以看到默认字体是Sans,将之全部改为 WenQuanYi Zen Hei。

之后不用重启,先切换为其它style再切回来就可以了。

 

记一下之后会常用的快捷键(在~/.fluxbox/keys里面设置):
显示桌面: Win + m
XTerm: Alt + F1
运行: Alt + F2
Gedit: Alt + g
Firefox: Alt + f
Thunar: Alt + t
 

 

REF:

Fluxbox配置点滴

5分钟Fluxbox指南

Fluxbox的设置

Source Code Reading

操作系统:linux, minix (Tanenbaum's books)
服务器:nginx, apache
编程语言:lua, python
数据库:redis, sqllite
自然语言处理:lucene

 

REF:
http://www.ituring.com.cn/minibook/19

Fcitx didn't work

I've installed fcitx google-pinyin on my Ubuntu some days back, but it only worked under Dash Home. Having done some blind search on web, I found that something called 'Xim' critical. So I checked out some env-var related to Xim.

> $XMODIFIERS
> command not found: @im=ibus

OK here's the problem. And this page really helped me out. Problem was solved after I ran the command below and restarted the system.

> im-switch -s fcitx

My 1st post

So this is the first post. Hello world then!