Thursday, January 23, 2014

生活点滴

1) Plymouth Rock 是在波士顿的比较便宜的保险公司,如果找agent,一定要问最便宜的那种

2) 如果你的路由配置好了,却上不了网,很有可能电脑的wireless驱动需要更新

3) 在windows7下,如果你的无限网络ssid旁边有个小插,你学要打开command prompt, 然后输入regedit, 然后ctrl+F 搜索NetworkList, 可以清空或删除之前的所有配置, 删除之前的ssid,重启电脑。Wala~

4) 波士顿的Excise Tax在三月才回放在网上

5)租车的时候,把自己的保险带过去,extend liability

6) 在chrome上安装adobe flash 插件
sudo add-apt-repository ppa:skunk/pepper-flash
sudo apt-get update
sudo apt-get install pepflashplugin-installer

sudo vim /etc/chromium-browser/default
add . /usr/lib/pepflashplugin-installer/pepflashplayer.sh
after the CHROMIUM_FLAGS="" line

7) 从virtual machine拷贝文件到local machine,
scp -P 2222 username@localhost:/home/username/targetfiles .

8) 关于 supervisor的配置
http://type.so/linux/supervisor-install-and-configure.html

9) sudo lshw查看硬件配置信息

10) 配置 AMD GPU Driver
sudo aticonfig --px-igpu #for integrated intel card
sudo aticonfig --px-dgpu #for discrete amd card

看现在显卡信息, fglrxinfo

11) 在html里面贴代码的时候,需要用 html entity encode/decode装换一下。
http://htmlentities.net/

12) ctrl + U 看chrome webpage的source code

13)  auto login for xfce on debian
aptitude install lightdm
sudo dpkg-reconfigure gdm
change to lightdm
sudo vim /etc/lightdm/lightdm.conf
add user name to autologin-user=

14) change default login section for debian 7.3
update-alternatives --config x-session-manager

15) 在GIMP中,去除图片背景
right click on image -> layer
go to Transparency-> Add alpha channel
Select Fuzzy Select Tools,
copy, export

16)