`
Anddy
  • 浏览: 191774 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表
学java不看源码是上不了一个等级的! ================= 先搞一段关键代码,看过的大牛请移步! private static boolean toBoolean(String name) { return ((name != null) && name.equalsIgnoreCase("true")); }  Boolean 有两个构造函数, public Boolean(boolean value) {...} public Boolean(String s){...}  上面构造函数,你 ...
之前每次SSH连接的时候,需要输入密码,今天在google reader上看到这篇文章,让我解决了此问题。   http://blog.liuw.name/837   客户端配置文件所在位置:/etc/ssh/ssh_config SSH客户端的配置文件中有一个选项StrictHostKeyChecking,默认是“ask”,可以把它改为“no”,这样主机密钥就会在连接时自动加入到known_hosts中去。  
chmod 755 /usr/bin/*  这段代码直接导致很多应用程序无法正常工作,甚至连sudo 也出问题。 sudo 出现的错误:sudo: must be setuid root ,不知道怎么理解这个提示(有谁知道怎么理解的请指教!!!)。 查看sudo的权限: terminal 写道 -rwxr-xr-x 2 root root 127560 2010-09-01 04:38 sudo*   针对sudo出现的问题,网上的解决办法如下: chmod 4755 /usr/bin/sudo  (确保sudo的所有者是root) 这个命令跟chmod u+s ...
原因:今天中午把硬盘重新分区,弄出了3个逻辑分区,和3个主分区。其中3个逻辑分区和两个主分区为nfts格式的文件系统,剩下的一个是ext4格式文件系统。 ubuntu装在ext4这个分区里,而今天分区操作根本没涉及到ext4该分区。 错误提示信息提醒我们,grub被破坏了。难道之前安装的grub是管理整个硬盘分区以及启动的,如果是这样,那么修改其他分区对启动肯定有影响。   这句话提到的真正的原因:When you have made some new partition or just move partition, you will changed the orden of yo ...
There is actually a very easy solution for this. The mavenS W "eclipse:eclipse" goal will download any necessary dependencies and will update our project's .classpath to include these dependencies. The maven command using the eclipse:eclipse goal would be mvn eclipse:eclipse 导入到 ...
UDAS 的全称:uniform  data access source   我们应用服务器的UDAS可分为:Berkeley DB (BDB) 、OSCache、FlexCache 这三部分   Memcache : http://www.winterhack.com/archives/2598.html   Free & open source, high-performance, distributed memory object caching system , generic in nature, but intended for use in speeding u ...
选择fedora 12. 更改源 yum --nogpgcheck install http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm 安装 yum install gs ...
  期间遇到如下问题 Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.   yum search kernel yum install kernel.i686 yum install kernel.devel.i686 yum install kernel-PAE.i686 yum install ...
在打开windows分区下的文本文件,和下载下来的文本文件时会出乱码的情况,这种情况一般都是由于字符编码的源因。   1、 因为linux下缺省情况下是采用 UTF-8的,所以我们最好把GBK,GB2312,之类的字符编码加上去。步骤是,在终端输入gconf-editor调出gconf-editor(如果没有装,则先安装gconf-editor【非gconf-edit】)。     因为这步中我没有安装gconf-editor,使用yum安装:1、yum search  gconf-editor ;2、yum install gconf-editor 。 ...
下载下来是绿色版的,直接双击运行。   根本不用去使用yum来管理软件   Eclipse各种版本:http://www.eclipse.org/downloads/  
问题 :fedora自动更新后,之前的版本并没有删除     解决 : 1,修改grub.conf文件   2,删除/lib/modules/下之前的版本(rm命令加选项-rf删除目录)   3,重启     参考: fedora内核管理: http://fedora.linuxsir.org/main/?q=node/88 fedora文件目录的删除:http://hi.baidu.com/fedoraandme/blog/item/cc4a80fada4a511f6d22eb80.html
问题 :RT 解决办法 :修改/etc/fonts/conf.d/49-sansserif.conf   <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> < ...
转载:   http://fedora.linuxsir.org/main/?q=node/91
  Fedora 中关于sudo机制的一些事:   为了方便系统的管理,Fedora 8系列内置了sudo的机制,他的概念是,授权特定的用户可以执行一些root的命令。但是在Fedora 8安装之后,默认是没有打开这个功能的,要打开,可以按照如下方式操作。   ================================================================== 用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名 ...
///////////////////////////////////////////////////////////////////////////////////////// 文件类型:  普通文件 : 由ls -al显示出来的属性中,第一个属性为 [-],包括:  纯文本文件(ASCII)--cat命令; 二进制文件(binary); 数据格式的文件(data)--last命令; 录(directory):就是目录,第一个属性为 [d], 连接文件(link) :
Global site tag (gtag.js) - Google Analytics