2009-10-04 20:21
装完fedora 10后
1.安装CPAN
yum install perl-CPAN
2.安装perl shell
perl -MCPAN -e 'install Psh'
3.安装Term::ReadLine::Gnu
perl -MCPAN -e 'install Term::ReadLine::Gnu'
4.编写 .pshrc
$ENV{'TERM'}="xterm"
alias ls ls --color
alias ll ls -l
alias la ls -a
option ps1=sub { "$ENV{PWD} \\\$";}
|
2009-09-01 16:51
LINUX8.0下SAMBA的配置方法
2004-04-23 15:18 pm
来自:Linux文档
现载:Www.8s8s.coM
地址:无名
SMB的配置
从光盘中找到与SAMBA相关的文件,执行
rpm –ivh samba-common-2.2.5-10
rpm –ivh samba-2.2.5-10
rpm –ivh samba-client-2.2.5-10
然后进入/etc/samba执行vi smb.conf 命令,文件编辑如下:
[global]
workgroup=cbaccess
netbios name=Hello
server string=Hello’s Linux Server |
2009-08-19 12:37
http://ut.actcn.net:81/perl/ut/topic_show.cgi?id=4678&bpg=1&age=0
译者注:本文译自PerlMonth— www.perlmonth.com,作者很幽默,但是有些语言我也翻译不出精髓,如果你读得不通或者觉得翻译的与你所理解的有所不同,可以查看原文—— http://www.perlmonth.com/columns/begin/begin.html?issue=11&print=1
这个月我们来一起学习如何调试PerlCGI脚本。这里所有的技巧和方法都是简单明了的;大多数方法你可能在你编程的第一课里就已经学到了,我说的是你要 经过正式的Per |
2009-08-13 14:26
http://uksbsguy.com/blogs/doverton/archive/2007/07/23/how-to-get-the-office-assistant-office-2003-to-work-in-windows-vista-i-e-remove-the-quot-not-enough-memory-quot-error-messages.aspx
How to get the Office Assistant (Office 2003) to work in Windows Vista, i.e. remove the "Not enough memory" error messages
new download location for x64 systems]
I have been asked this question several times a |
2009-06-08 21:49
2009-06-08 12:21
find . -maxdepth 0 -name '*' -exec urcommand {} \;
eg: find . -maxdepth 0 -name '*.log' -exec rm {} \; |
2009-06-06 11:18
发布于: 软件开发网 来源:互联网 作者:佚名 时间:1970-01-01 点击:
38
大家都知道Windows系统能在通知区域自动隐藏不活动的图标,这是个非常实用的功能。但是,日积月累之下,通知区域的图标越来越多,有的是很久之前的图标,甚至该软件已经卸载,于是我们想办法怎么把他清理掉。
图标的增多带来了臃肿,现在教大家一个简单的方法来清理通知 |
2009-05-06 13:38
看到一篇新闻里有提到FF的一个插件,网页里的单词的第2..(n-1)为随机调换位置.这种scremble text的方式却不会影响我们阅读.尝试下载那个插件,发现时旧版本的FF用的.根据作者的reference页,重新制作了一个基于Javascript的Scramble开关
测试页代码:
<body>
jumbled text
<a href="javascript:function%20scramble_text(s){if%20(s.nodeType==3){s.nodeValue=s.nodeValue.replace(/\b([a-z])([a-z]+)([a-z])\b/gi,function(t,a,b,c){b=b.split(/\B/);for(var%20i=b.lengt |
2009-05-05 10:44
How do I ask the user for a password?
(This question has nothing to do with the web. See a different FAQ for that.)
There's an example of this in crypt). First, you put the terminal into "no echo" mode, then just read the password normally. You may do this with an old-style ioctl() function, POSIX terminal control (see POSIX or its documentation the Camel Book), or a call to the stty program, with varying degrees of portability.
You can also do this for mos |
2009-04-21 23:17
package newPackage2; class Fruit { public String location = "Beijing"; public Fruit() { System.out.println("This is the base class' constructor " ); } public void getLocation() { System.out.println("Fruit getLocation:" + location); } } class Apple extends Fruit { public String location = "Shandong"; public Apple() { System.out.println("This is the derive |
2009-04-02 19:44
file_1=$1
SUBJ="Send mail from Unix with file attachments"
TO=root
CC=root
(
cat << EOF
To : ${TO}
Subject : ${SUBJ}
Cc : ${CC}
EOF
cat << EOF
HOPE THIS WORKS
This sample E-mail message demonstrates how one can attach
files when sending messages with the Unix sendmail utility.
EOF
uuencode ${file_1} ${file_1##*/}
# uuencode ${file_2} ${file_2##*/}
# uuencode ${file_3} ${file_3##*/}
|
2009-03-31 14:23
001 ASCII Table (7-bit)
002 (ASCII = American Standard Code for Information Interchange)
003
004 Decimal Octal Hex Binary Value
|
2009-03-20 21:48
2009-03-20 00:07
作者:不详 来源:vista123 加入时间:2008-05-29
Windows的“离开”模式类似于待机(或休眠),它可以关闭大部分设备的电源以达到节电的目的,并且在需要的时候能快速返回到工作状态。但是离开模式更要比待机“技高一筹”,在“离开”状态下,影音处理、BT下载、文件复制等操作依然在进行,真是省电、工作两不误。
在XP下设置离开模式,需要额外安装一个补丁程序才行。而在Vista下早已内嵌了这一功能,我们要做的就是激活它。
单击“开始 |
2009-03-09 13:39
Linux系统攻略 关于vi替换命令的使用说明
http://school.21tx.com 2008年01月03日 赛迪网 sixth
vi/vim 中可以使用 :s 命令来替换字符串。以前只会使用一种格式来全文替换,今天发现该命令有很多种写法(vi 真是强大啊,还有很多需要学习),记录几种在此,方便以后查询。
:s/vivian/sky/ 替换当前行第一个 |
|
|