Screen
#
http://neophob.com/2007/04/gnu-screen-cheat-sheet/
CMD Description screen -ls list all ( format: pid.session_name ) screen create session screen -S session_name create session with name screen -r session_name re-attach screen -dr session_name de- & re- attach /_ force detach and then attach, use this when previous attachment is dropped due to network failure _/ screen -wipe remove dead kill <pid> kill session killall screen kill all C+a , C+d detach C+a, [ / Esc, C+u / C+d scroll half a page ref C+a, [ / Esc, Page Up /Down scroll a full page (cursor up/down is moving the cursor) NA switch session //can NOT find a good method screen windows (tabs)
#
C+a , c create new window C+a , A set window name C+a , w window list C+a , " choose window C+a , d detach window C+a , ?
...
64 bit only
#
in: /etc/apt/sources.list
add: deb http://cran.rstudio.com/bin/linux/ubuntu precise/
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9
// [i didn’t do this step] sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
// if not R is not updated, then will get error: package ‘shiny’ is not available (for R version 2.14.1)
// then follow ref 2 (official intro):
sudo apt-get install r-base
sudo su - -c “R -e "install.
...
To Enter BIOS/Setup
#
vmware
#
reboot Ctrl Alt Insert setup F2 boot menu ESC
Linux/Nix OS
#
[Reset Root Password, Forget Password, Reset Password]
Shift while booting (Esc for v9 earlier version);
Highlight the normal booting item (which is highlighted by default);
’e’ to edit;
Find the line starts with linux ....;
Delete … quiet splash $vt_handoff …,
Change ro (read only) to rw, and add init=/bin/bash to the end of the line;
...
如果administrator之前没有密码, 可以F8进入安全模式, 再用命令行操作:
net user <username> /active:yes
net user <username> <theNewPass>
Connect to Mysql
#
http://dev.mysql.com/downloads/connector/net/
http://www.360doc.com/content/07/0630/11/14386_586808.shtml
装了cygwin和mosh. 稍早的mosh版本需要perl的一个包, 结果就是装不上, 还以为cygwin有问题, 最后发现新版的mosh已经用c替换了, 那个Perl的包有问题. Perl在走下坡么? 要完蛋了?
话说我blog貌似有不明输出??? 有空再查吧, 幸好我只是当作记事本用 ….
Adding a Product
#
Catalog > Manage Products > Add New Then you will be in page “New Product (Default)”,
SKU is a string to trace a series of products, like “nike.women.top.size.32”.
Status should be “enabled”.
URL key is mandatory, dash separated English words, like “nike-women-top”.
Visibility, it is suggested to use the default “Catalog & Search” value.
Click left column to choose "Price" The “Tax Class” is mandatory.
...
Config App for email (no extra gateway)
#
1. Authorize Google as a sender. (SPF)
http://support.google.com/a/bin/topic.py?hl=en&topic=1409901
2. Confirm mail sender via public key. (DKIM)
http://support.google.com/a/bin/answer.py?hl=en&answer=174126
先mark一下, 待用.
搜了一下 http://bit.ly/18Nbz4N , http://coolshell.cn/articles/2589.html
常见的压力测试工具:
apache自带的ab; jmeter http://www.cnblogs.com/wang1988ming/archive/2012/08/01/2618550.html pylot grinder http://grinder.sourceforge.net/ siege web bench http_load
REF:
http://coolshell.cn/articles/2589.html
http://blog.csdn.net/lxlmj/article/details/6881224
Fatal error: Call to undefined function mb_strlen()
#
apt-get / yum search mbstring ; apt-get / yum install php-mbstring ... http://blog.fity.cn/post/187/
Fatal error: Call to undefined function imagecreate()
#
and it takes a lot of time to upload a image.
apt-get install php5-gd http://www.php.net/manual/en/image.installation.php
Warning: It is not safe to rely on the system’s timezone settings
#
Solution: modify php.ini:
date.timezone = Asia/Shanghai http://stackoverflow.com/questions/2213608/php-configuration-it-is-not-safe-to-rely-on-the-systems-timezone-settings
Set Include Path in PHP File
#
set_include_path(get_include_path() .
...