摘要: p.test {word-wrap:break-word;}‘normal’Lines may break only at allowed break points. However, the restrictions introduced by ‘word-break: keep-all’ may be relaxed to match ‘word-break: normal’ if there are no otherwise-acceptable break points in the line.‘break-word’An unbreakable "word" ma 阅读全文
posted @ 2013-02-27 13:36 酱油猫 阅读(241) 评论(0) 推荐(0) 编辑
摘要: The simple statement 'print' with no items is equivalent to 'print $0': it prints the entire current record. To print a blank line, use 'print ""', where "" is the empty string. To print a fixed piece of text, use a string constant, such as "Don't 阅读全文
posted @ 2013-02-27 13:20 酱油猫 阅读(1939) 评论(0) 推荐(0) 编辑
摘要: 1.ps -efL可以按线程显示。(linux中)2.使用grep 一个文件的时候,如何让它显示文件名呢?可以多grep 一个文件就显示文件名了。如: grep XXX file1 /dev/null3.使用如下sql查看standby中的哪些archive可以删除即已经应用到standby中。select 'arch_' || MAX(RESETLOGS_ID) || '_' || THREAD# || '_' || MAX(SEQUENCE#) || '.arc' as filename from v$archived_log 阅读全文
posted @ 2013-01-30 17:59 酱油猫 阅读(155) 评论(0) 推荐(0) 编辑
摘要: consoleUse the console command to enter RSC console mode and connect to the server console from the RSC shell. When you use this command, the system displays a standard Solaris login prompt. If RSC is not designated as the server console, nothing is displayed.You must have C level user permission to 阅读全文
posted @ 2013-01-22 17:24 酱油猫 阅读(229) 评论(0) 推荐(0) 编辑
摘要: CSS3新属性word-wrap:break-word;The word-wrap property allows long words to be able to be broken and wrap onto the next line.很好用啊。解决了我们用的hdwiki无法正常显示粘贴进去的内容的问题。 阅读全文
posted @ 2013-01-21 14:13 酱油猫 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ldapmodify -h hostname -p port -D "cn=Directory Manager" -a -c -f /tmp/result.ldif-a add entry. 在后面的文件中不用出现changetype语句,只需要正常的ldif文件即可。-c 遇到错误继续执行下面的语句。如果不加,遇到错误就直接退出了。只在Solaris 9中测试过。 阅读全文
posted @ 2013-01-21 13:51 酱油猫 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 没写过代码的人用github真是遭罪。各种概念不懂。最后总算用了起来。。开始$git config --global user.name "xxx"$git config --global user.email "XXX@163.com"$git config --global http.proxy http://192.168.1.50:8010$git clone https://github.com/xxx/xxxChat.git$git checkout addFeature然后开始各种写。然后:$git add --all$git commit 阅读全文
posted @ 2013-01-14 17:30 酱油猫 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 使用npm安装socket.io时遇到如下错误:npm ERR! Error: Invalid protocolnpm ERR! at Request.init (/opt/nodejs/lib/node_modules/npm/node_modules/request/main.js:308:31)npm ERR! at new Request (/opt/nodejs/lib/node_modules/npm/node_modules/request/main.js:103:8)npm ERR! at request (/opt/nodejs/lib/node_mo... 阅读全文
posted @ 2013-01-07 16:27 酱油猫 阅读(3730) 评论(0) 推荐(0) 编辑
摘要: http://brandonhutchinson.com/wiki/X11Forwarding_needs_xorg-x11-xauthIn this example on a RHEL 5 system, X11Forwarding is enabled in /etc/ssh/sshd_config, but cookie-based access will not work until the xorg-x11-xauth package and its dependency (libXmu) are installed.$ grep X11Forwarding /etc/ssh/ssh 阅读全文
posted @ 2012-12-24 13:41 酱油猫 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 1. 查看一个文件属于哪个rpm (CentOS 6.2)#rpm -qf /usr/bin/ssh //这里要使用绝对路径openssh-clients-3.9p1-8.RHEL4.242. 查看哪些进程占用的CPU高(Solaris 10)#prstat -avm3. mount CIFS in Linux (CentOS 6.2)#yum install cifs-utils#mount -t cifs -o username=XXX@XX.com.cn,password=XXX //192.168.1.1/common /mnt关于cifs-utils, (原来是samba中的一部分。 阅读全文
posted @ 2012-12-20 16:38 酱油猫 阅读(153) 评论(0) 推荐(0) 编辑