1.软格 待机状态下输入 *#7370# ,系统会提示你是否恢复出厂设置,选择【是】,密码默认是:12345。这个时候等待手机重启就可以了,选择【是】后,千万不要断电!必须等到手机再次进入桌面才可以操作,最后设置好正确的时间就可以。 2.硬格 先关机,然后先同时按住这三个键【发射、3、*】不要松开,然后开机,仍然不要松开手,一直到 蓝色的【NOKIA】显示并闪动后,再松手。这个时候等待手机重启就可以了,选择【是】后,千万不要断电!必须等到手机再次进入桌面才可以操作,最后设置好正确的时间就可以。
vendredi 5 octobre 2012
lundi 24 septembre 2012
去掉vim 中的^M
使用下面的命令
^V 是ctrl+V,^M是ctrl+M。
因此最终的终端显示应该是:
:%s/^M//g
-
%s/^V^M//g
其中:^V 是ctrl+V,^M是ctrl+M。
因此最终的终端显示应该是:
:%s/^M//g
-
jeudi 20 septembre 2012
Problem: Server Ode v1.x Server at localhost failed to start.
when you want to start the Apache ODE server, you may have this problem:
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Analyse: miss the tomcat-juli.jar in the Classpath
check by: echo $CLASS_PATH
if the reply is empty, that is.
so you can add the tomcat-juli.jar into the classpath.
Solution:
1. double-click on the ODE server entry in the Servers view; this should open the server configuration editor

2. in the configuration editor, click the "Open launch configuration" link
3. select "Classpath" in the launch configuration dialog and then "Add externals jars..."
4. navigate to your $CATALINA_HOME/bin and select the tomcat-juli.jar

Hope that helps
Bob
this solution comes from the eclipse forum:
http://www.eclipse.org/forums/index.php/m/760341/
-
java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
Analyse: miss the tomcat-juli.jar in the Classpath
check by: echo $CLASS_PATH
if the reply is empty, that is.
so you can add the tomcat-juli.jar into the classpath.
Solution:
1. double-click on the ODE server entry in the Servers view; this should open the server configuration editor
2. in the configuration editor, click the "Open launch configuration" link
3. select "Classpath" in the launch configuration dialog and then "Add externals jars..."
4. navigate to your $CATALINA_HOME/bin and select the tomcat-juli.jar
Hope that helps
Bob
this solution comes from the eclipse forum:
http://www.eclipse.org/forums/index.php/m/760341/
-
文件权限
ls -l: 查看文件权限
e.g.
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ ls -l
total 32
-rw-r--r--@ 1 chenwang staff 3005 Jul 22 2011 bpelc
-rwxr-xr-x@ 1 chenwang staff 2097 Jul 22 2011 bpelc.bat
-rw-r--r--@ 1 chenwang staff 3017 Jul 22 2011 sendsoap
-rwxr-xr-x@ 1 chenwang staff 2109 Jul 22 2011 sendsoap.bat
chmod:修改文件权限
e.g. 修改sendsoap script 权限,使得获取执行权限
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ chmod 777 sendsoap
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ ls -l
total 32
-rw-r--r--@ 1 chenwang staff 3005 Jul 22 2011 bpelc
-rwxr-xr-x@ 1 chenwang staff 2097 Jul 22 2011 bpelc.bat
-rwxrwxrwx@ 1 chenwang staff 3017 Jul 22 2011 sendsoap
-rwxr-xr-x@ 1 chenwang staff 2109 Jul 22 2011 sendsoap.bat
【转】chmod 命令使用
在Unix和Linux的各种操作系统下,每个文件(文件夹也被看作是文件)都按读、写、运行设定权限。
例如我用ls -l命令列文件表时,得到如下输出:
-rw-r--r-- 1 apple users 2254 2006-05-20 13:47 tt.htm
从 第二个字符起rw-是说用户apple有读、写权,没有运行权,接着的r--表示用户组users只有读权限,没有运行权,最后的r--指其他人 (others)只有读权限,没有写权和运行权。这是系统默认设置,我可以改写tt.htm,同组的人和其他人只有权读,没人有权运行,因为只是一个 html文件,不必运行。这在Novell的directory services之前很先进。
读、写、运行三项权限可以用数字表示,就是r=4,w=2,x=1。所以,上面的例子中的rw-r--r--用数字表示成644。
反过来说777就是rwxrwxrwx,意思是该登录用户(可以用命令id查看)、他所在的组和其他人都有最高权限。
再多说一句。我用chmod o-r tt.htm命令改权限,o-r是others的权限中减掉读。结果是
-rw-r----- 1 bu users 2254 2006-05-20 13:47 tt.htm
如果用命令chmod 777 tt.htm,结果是
-rwxrwxrwx 1 bu users 2254 2006-05-20 13:47 tt.htm
任何人都有读、写、运行三项权限。
---------------------------------------------
指令名称 : chmod
使用权限 : 所有使用者
使用方式 : chmod [-cfvR] [--help] [--version] mode file...
说明 : Linux/Unix 的档案存取权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所存取。
参数格式 :
mode : 权限设定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中
u : 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。
+ : 表示增加权限、- 表示取消权限、= 表示唯一设定权限。
r : 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。 -c : 若该档案权限确实已经更改,才显示其更改动作
-f : 若该档案权限无法被更改也不要显示错误讯息
-v : 显示权限变更的详细资料
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更)
--help : 显示辅助说明
--version : 显示版本
范例 :将档案 file1.txt 设为所有人皆可读取 :
chmod ugo+r file1.txt
将档案 file1.txt 设为所有人皆可读取 :
chmod a+r file1.txt
将档案 file1.txt 与 file2.txt 设为该档案拥有者,与其所属同一个群体者可写入,但其他以外的人则不可写入 :
chmod ug+w,o-w file1.txt file2.txt
将 ex1.py 设定为只有该档案拥有者可以执行 :
chmod u+x ex1.py
将目前目录下的所有档案与子目录皆设为任何人可读取 :
chmod -R a+r *
此外chmod也可以用数字来表示权限如 chmod 777 file
语法为:chmod abc file
其中a,b,c各为一个数字,分别表示User、Group、及Other的权限。
r=4,w=2,x=1
若要rwx属性则4+2+1=7;
若要rw-属性则4+2=6;
若要r-x属性则4+1=7。
范例:
chmod a=rwx file 和chmod 777 file效果相同
chmod ug=rwx,o=x file和chmod 771 file效果相同
若用chmod 4755 filename可使此程式具有root的权限
e.g.
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ ls -l
total 32
-rw-r--r--@ 1 chenwang staff 3005 Jul 22 2011 bpelc
-rwxr-xr-x@ 1 chenwang staff 2097 Jul 22 2011 bpelc.bat
-rw-r--r--@ 1 chenwang staff 3017 Jul 22 2011 sendsoap
-rwxr-xr-x@ 1 chenwang staff 2109 Jul 22 2011 sendsoap.bat
chmod:修改文件权限
e.g. 修改sendsoap script 权限,使得获取执行权限
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ chmod 777 sendsoap
chenwang@~/Applications/apache-ode-war-1.3.5/bin$ ls -l
total 32
-rw-r--r--@ 1 chenwang staff 3005 Jul 22 2011 bpelc
-rwxr-xr-x@ 1 chenwang staff 2097 Jul 22 2011 bpelc.bat
-rwxrwxrwx@ 1 chenwang staff 3017 Jul 22 2011 sendsoap
-rwxr-xr-x@ 1 chenwang staff 2109 Jul 22 2011 sendsoap.bat
【转】chmod 命令使用
在Unix和Linux的各种操作系统下,每个文件(文件夹也被看作是文件)都按读、写、运行设定权限。
例如我用ls -l命令列文件表时,得到如下输出:
-rw-r--r-- 1 apple users 2254 2006-05-20 13:47 tt.htm
从 第二个字符起rw-是说用户apple有读、写权,没有运行权,接着的r--表示用户组users只有读权限,没有运行权,最后的r--指其他人 (others)只有读权限,没有写权和运行权。这是系统默认设置,我可以改写tt.htm,同组的人和其他人只有权读,没人有权运行,因为只是一个 html文件,不必运行。这在Novell的directory services之前很先进。
读、写、运行三项权限可以用数字表示,就是r=4,w=2,x=1。所以,上面的例子中的rw-r--r--用数字表示成644。
反过来说777就是rwxrwxrwx,意思是该登录用户(可以用命令id查看)、他所在的组和其他人都有最高权限。
再多说一句。我用chmod o-r tt.htm命令改权限,o-r是others的权限中减掉读。结果是
-rw-r----- 1 bu users 2254 2006-05-20 13:47 tt.htm
如果用命令chmod 777 tt.htm,结果是
-rwxrwxrwx 1 bu users 2254 2006-05-20 13:47 tt.htm
任何人都有读、写、运行三项权限。
---------------------------------------------
指令名称 : chmod
使用权限 : 所有使用者
使用方式 : chmod [-cfvR] [--help] [--version] mode file...
说明 : Linux/Unix 的档案存取权限分为三级 : 档案拥有者、群组、其他。利用 chmod 可以藉以控制档案如何被他人所存取。
参数格式 :
mode : 权限设定字串,格式如下 : [ugoa...][[+-=][rwxX]...][,...],其中
u : 表示该档案的拥有者,g 表示与该档案的拥有者属于同一个群体(group)者,o 表示其他以外的人,a 表示这三者皆是。
+ : 表示增加权限、- 表示取消权限、= 表示唯一设定权限。
r : 表示可读取,w 表示可写入,x 表示可执行,X 表示只有当该档案是个子目录或者该档案已经被设定过为可执行。 -c : 若该档案权限确实已经更改,才显示其更改动作
-f : 若该档案权限无法被更改也不要显示错误讯息
-v : 显示权限变更的详细资料
-R : 对目前目录下的所有档案与子目录进行相同的权限变更(即以递回的方式逐个变更)
--help : 显示辅助说明
--version : 显示版本
范例 :将档案 file1.txt 设为所有人皆可读取 :
chmod ugo+r file1.txt
将档案 file1.txt 设为所有人皆可读取 :
chmod a+r file1.txt
将档案 file1.txt 与 file2.txt 设为该档案拥有者,与其所属同一个群体者可写入,但其他以外的人则不可写入 :
chmod ug+w,o-w file1.txt file2.txt
将 ex1.py 设定为只有该档案拥有者可以执行 :
chmod u+x ex1.py
将目前目录下的所有档案与子目录皆设为任何人可读取 :
chmod -R a+r *
此外chmod也可以用数字来表示权限如 chmod 777 file
语法为:chmod abc file
其中a,b,c各为一个数字,分别表示User、Group、及Other的权限。
r=4,w=2,x=1
若要rwx属性则4+2+1=7;
若要rw-属性则4+2=6;
若要r-x属性则4+1=7。
范例:
chmod a=rwx file 和chmod 777 file效果相同
chmod ug=rwx,o=x file和chmod 771 file效果相同
若用chmod 4755 filename可使此程式具有root的权限
dimanche 16 septembre 2012
【转】如何在Mac下显示Finder中的所有文件
如何在Mac下显示Finder中的所有文件
defaults write com.apple.Finder AppleShowAllFiles YES
然后重启Finder,方法是按住Option键,单击Dock上的Finder图标不放,大概2秒后将在Finder图标上出现一个菜单,单击Relaunch,Finder即重启。
defaults write com.apple.Finder AppleShowAllFiles NO
mercredi 29 août 2012
latex 字体大小
\fontsize{6pt}{0.25cm}\selectfont
6pt: 字体大小
0.25cm: 行距
6pt: 字体大小
0.25cm: 行距
dimanche 3 juin 2012
setting primary monitor in Ubuntu
vijayp@ike:~$ xrandr --output HDMI1 --primary
In case you don't know what your display is called, just run "xrandr" on its own. This is what my laptop says:
vijayp@ike:~$ xrandr Screen 0: minimum 320 x 200, current 2880 x 1200, maximum 8192 x 8192 VGA1 disconnected (normal left inverted right x axis y axis) LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 261mm x 163mm 1280x800 60.0*+ 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 HDMI1 connected 1600x1200+1280+0 (normal left inverted right x axis y axis) 367mm x 275mm 1600x1200 60.0*+ 1280x1024 75.0 60.0 1152x864 75.0 1024x768 75.1 60.0 800x600 75.0 60.3 640x480 75.0 60.0 720x400 70.1 DP1 disconnected (normal left inverted right x axis y axis)
Inscription à :
Articles (Atom)