1 JS 的 eclipse插件安装
(1)插件: spket.
(2)更新连接(Update Site): http://www.spket.com/update/
2 Linux下 firefox 报错 Could not initialize the browser's security component
linux下 firefox启动时 出现如下警告时
"Could not initialize the browser's security component. The most likely cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behavior when accessing security features.".
可能的原因:
(1) 硬盘空间不够,在硬盘都狂大的现在这个年代,这个可能性比较小了
(2) profile文件夹里面cert8.db文件权限不对,一般来讲 profile文件夹为 ~/.mozilla/firefox/xxxxxxxx.default/ 到里面把cert8.db的权限改为可读写(一定不能是只读)。
(3) profile文件夹里面cert8.db文件出了问题,这个时候就干脆把它删除,删除之前记得要关闭firefox。再重新启动,又会重新生成一个文件, ok了
参考:http://support.mozilla.com/pl/kb/Could+not+initialize+the+browser+security+component
3 使用Vmware安装Ubuntu 10.04后登录界面键盘无法输入
(1) 开机界面右下角单击小人图案,再单击“Universal Access Perferences”(通用访问首选项),出现“Universal Access Perferences”对话框,在对话框中选中“Use on-screen keyboard”(使用屏幕键盘),以开启屏幕键盘功能,这时会在登录界面的左上角出现一个屏幕键盘;
(2) 重新启动打开屏幕键盘输入密码
(3) 进入系统之后,修改/etc/default/console-setup的文件内容
打开一个终端,在命令行中输入:sudo gedit /etc/default/console-setup ,调用Gedit文本编辑器打开/etc/default/console-setup配置文件,修改内容如下:
原来为:
XKBMODEL="SKIP"
XKBLAYOUT="us"
XKBVARIANT="U.S. English"
XKBOPTIONS=""
改为:
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
(4) 重启系统,这样在登录界面就可以使用键盘了。
4 Ubuntu切换成root用户
wangxiaoming@ubuntu:~$ sudo passwd root
[sudo] password for wangxiaoming:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
wangxiaoming@ubuntu:~$ sudo reboot
这样重启之后,即可选择root用户登录。
5 Android根目录新建文件夹
比如: Android根目录没有/tmp文件夹,很多C/C++程序则会用到这个目录,我们可如下进行创建:
#mount -o remount rw /
#cd /
#mkdir tmp
6 查询文件中的某个字符串
find /tmp -name "*.cpp" | xargs -n50 grep mystring
[参考文献] http://wenku.baidu.com/view/5e4070160b4e767f5acfce0b.html
7 Ubuntu下Curses安装
apt-get install libncurses5-dev
8 Mingw 加入 VC/VS 支持
先用写字板打开"C:\MinGW\msys\1.0\msys.bat",在文件的最开头增加以下内容:
call "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
然后保存文件并退出写字板。