`
zhlu32
  • 浏览: 22239 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
原文链接:http://www.renaebair.com/2010/08/11/my-husband-is-a-programmer-i-have-no-idea-what-that-means/     I met my husband 11 years ago. I was carrying my guitar into my dorm room on freshman move-in day at the University of Southern Maine. I saw him eyeing my guitar with great interest. When he kno ...
#!/bin/bash # v.0.0.1 # create by jackbillow at 2007.10.15 # nginx - This shell script takes care of start ing and stopping nginx. # # chkconfig: - 60 50 # description: nginx [engine x] is light http web/proxy server # that answers incoming ftp service requests. # processname: nginx # config ...
Lazy allocation simply means not allocating a resource until it is actually needed.   Here is an example in Java:   public class Fruit { private static final Map<String,Fruit> types = new HashMap<String, Fruit>(); private final String type; // using a private co ...
实用Android开发工具和资源精选 http://www.starming.com/g.php?u=74_8528 Android Quick Tip: Using the Quick Contact Badge 使用快捷 http://www.starming.com/g.php?u=74_8521 Android SDK: Introduction to Gestures 手势 http://www.starming.com/g.php?u=74_8486 Creating a Mobile Version of Your Site 创建手机版站点 http://w ...
       connectbot是一个基于android平台的Secure Shell的客服端。它的最终目标是建立手机和pc的一个安全的连接,通过这个连接你可以在一个shell里面使手机和pc互相传送文件。   后台代码设计 ConnectBot设计使多个SSH的session在后台被打开 TerminalManager extends android.app.Service TerminalBridge TerminalView
telnet默认端口23 ssh默认端口22 Telnet:Tcp/IP终端仿真协议(TCP/IP Terminal Emulation Protocol):通过TCP建立服务器与客户机之间的连接。连接后,TELNET服务器与客户机进入协商阶段(决定可选项),选定双方都支持连接操作每个连接系 ...
在上传2M以上文件出现异常如下: [@APPNAME@] ERROR [http-80-3] MultiPartRequest.parse(130) | org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException : the request was rejected because its size (102147245) exceeds the configured maximum (50097152) [@APPNAME@] ERROR [http-80-3] FileUpl ...
1、首先设置IP Java代码 sudo gedit /etc/network/interface   sudo gedit /etc/network/interface   2、将打开的文件内容删除并加上以下内容   Java代码 auto eth0       iface eth0 inet static      address 192.168.1.168      netmask 255.255.255.0      gateway 192.168.1.1   auto eth0 if ...

ssh服务

连接两个linux机器,实现互相传送文件。如果服务端没有安装openssh-server,出现connection refused。   1、apt-get install openssh-server   2、/etc/init.d/ssh restart   3、传送文件  scp  file  root@ip:/root      (实现把file文件拷贝到ip机器上的/root目录下面)   4、传送文件夹   scp -r directory root@ip:/root    (实现把directory文件夹拷贝到ip机器上的/root目录下面)
1. 查看内核版本命令: 1) [root@q1test01 ~]# cat /proc/version    Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com ) (gcc version 3.4.4 20050721 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005 2) [root@q1test01 ~]# uname -a    Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT ...
1 、JDK 安装配置 选用最新的版本6.0. 打开终端,执行以下命令: sudo apt-get install sun-java6-jdk 按照提示做就是了。 配置 JAVA 环境变量 : sudo gedit /etc/environment 在其中添加如下两行: CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib JAVA_HOME=/usr/lib/jvm/java-6-sun ...
jibx基础简介一 一 JiBX 简介 JiBX 是一个绑定 XML 数据到 Java 对象的框架。JiBX 用一个绑定定义文挡(binding definition document)来定义 XML 数据与 Java 对象转换的规则,这个文挡就是联系 XML 数据与 Java 对象之间的桥梁。 这里有必要先介绍两个数据绑定术语 marshal 和 unmarshal,marshal 是由 Java 对象生成 XML 文挡,unmarshal 是根据 XML 文挡建立 Java 对象。 使用 JiBX 的过程分成两个过程,一个是 binding comp ...
public class UploadFile extends ActionSupport { private static final long serialVersionUID = 1L; private File file; private String fileName; private String ext; private static final String downloadPath=ServletActionContext.getServletContext().getRealPath("/")+"img"; ...
1、以key-value对存储的信息        代码中所需的信息,可以以key-valu对的形式写到配置文件中。如HardDiskProperties.properties放于src目录下 disk=c capacity=8G        测试代码     public class BaseKeyValue { public static void main(Strin ...
abstract和interface的区别:   OCP open-closed principle开闭原则,即设计一个模块的时候,应当使这个模块在不被修改的前提下别扩展,在不修改源码的情况下改变这个模块的行为。抽象是实现ocp的关键。   1)从编程的角度看,(1)abstract是一个类而interface是一个接口。所以在继承的时候,只能继承一个abstract但是可以实现多个interface。(2)abstract中可以定义变量,默认是friendly,其值可以在子类中修改;interface里面的变量都必须定义成常量,切不可修改。(3)abstract中可以定义正常的方法,但 ...
Global site tag (gtag.js) - Google Analytics