03 2014 档案

摘要:Java中的transient,是用于声明序列化的时候不被存储的。例子:package ThreadTest;/** * Created with IntelliJ IDEA. * User: Blank * Date: 14-3-29 * Time: 下午12:03 */import java.io.*;import java.util.*;class Logon implements Serializable { private Date date = new Date(); private String username; private transient Strin... 阅读全文
posted @ 2014-03-29 12:14 丶Blank 阅读(1651) 评论(0) 推荐(0)
摘要:thread.Join把指定的线程加入到当前线程,可以将两个交替执行的线程合并为顺序执行的线程。比如在线程B中调用了线程A的Join()方法,直到线程A执行完毕后,才会继续执行线程B。t.join(); //调用join方法,等待线程t执行完毕t.join(1000); //等待 t 线程,等待时间是1000毫秒。下面是一段JDK中的代码: /** * Waits at most millis milliseconds for this thread to * die. A timeout of 0 means to wait forever. */... 阅读全文
posted @ 2014-03-28 20:58 丶Blank 阅读(75389) 评论(7) 推荐(3)
摘要:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes a word?A sequence of non-space characters constitutes a word.Could the input string contain leading or trailing spaces?Yes. Howev 阅读全文
posted @ 2014-03-24 19:06 丶Blank 阅读(281) 评论(0) 推荐(0)
摘要:Shockwave Flash 是 Adobe Flash Player下的一个小插件,你可以在Google商店中找到并下载。通常来讲,Shckwave Flash会在安装Flash Player的时候自动开启,但是插件本身是不是会出点小问题(这里需要Adobe的技术人员来解决)。但是作为终端用户同样可以解决此类问题。1. 首先到Adobe官方网站下载最新的Flash Playerhttp://get2.adobe.com/flashplayer/并安装。2. 安装后打开Chrome,在地址栏内输入“Chrome://Plugins”,然后点击“Details”。3. 在Adobe Flash 阅读全文
posted @ 2014-03-22 20:50 丶Blank 阅读(10566) 评论(0) 推荐(0)
摘要:一、首先安装中文支持: su root yum install "@Chinese Support" exit yum remove ibus 注销再登陆 二、安装fcitx 下载fcitx输入法源码,百度搜索即可,我下载的是华军软件园提供的“Fcitx 小企鹅输入法 4.0 正式版”。 先安装fcitx所依赖的库: yum install gettext gettext-devel libXft libXft-devel libXpm libXpm-devel 解压缩源码包: unzip fcitx-4.0.0.tar.zip tar zxf fcitx-4.0.0.ta 阅读全文
posted @ 2014-03-22 15:13 丶Blank 阅读(336) 评论(0) 推荐(0)
摘要:#include 文件状态,是unix/linux系统定义文件状态所在的伪标准头文件。含有类型与函数: dev_t st_dev Device ID of device containing file. ino_t st_ino File serial number. mode_t st_mode Mode of file (see below). nlink_t st_nlink Number of hard links to the file. uid_t st_uid User ID of file. gid_t st_gid Group ID of file. dev_t st_rde 阅读全文
posted @ 2014-03-22 10:33 丶Blank 阅读(13242) 评论(0) 推荐(2)
摘要:配置SecureCrt 和 ubuntu1. 首先要明白什么是ssh?可以把ssh看做是telnet的加强版,telnet的密码和信息都是不加密的,而ssh则加密。2. 开启ubuntu上的ssh功能先安装,安装后就自动开启了.sudo apt-get install openssh-server openssh-client3. 安装secureCRT4. 查看ubuntu的ipifconfig(注意是ifconfig,不是windows上的ipconfig)5. 连接secureCRT => Quick Connect, 连接ubuntu, 输入ubuntu的id和pwd6. 汉字乱 阅读全文
posted @ 2014-03-06 19:25 丶Blank 阅读(267) 评论(0) 推荐(0)
摘要:参考http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory1.OnCentOS 5.8, yum installglibc-devel.i386 OnCentOS 6.3, yum installglibc-devel.i686.2.OnCentOS 5you will need to doyum install libstdc++-devel.i386 OnCentOS 6you will need to doyum install libstdc++-devel.i686然后修改 阅读全文
posted @ 2014-03-04 20:02 丶Blank 阅读(1110) 评论(0) 推荐(0)