`
yuanzher
  • 浏览: 29997 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
文章列表

kill shell process

#! /bin/sh # export DIR=$PWD LOG_NAME=ExternalMS_shutdownms.txt LOG_DIR=$DIR date > $LOG_DIR/$LOG_NAME echo "********************************************* " >>$LOG_DIR/$LOG_NAME echo "Hi This is External MS Server shutdownms.sh log " >>$LOG_DIR/$LOG_NAME ...

extjs3.4中转

临时有用
只是自己中转一下。有其它类依赖的。 package test.yuan; import java.util.Random; /** * @author Syy * */ public class GenerateLisence { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String mac=MacAdressUtil.getMacAddress(); System. ...
Java中存在着两种Random函数: 一、java.lang.Math.Random;   调用这个Math.Random()函数能够返回带正号的double值,该值大于等于0.0且小于1.0,即取值范围是[0.0,1.0)的左闭右开区间,返回值是一个伪随机选择的数,在该范围内(近似)均匀分布。例子如下: package IO; import java.util.Random; public class TestRandom { public static void main(String[] args) { // 案例1 ...
public class NumberUtil { /** * int整数转换为4字节的byte数组 * * @param i * 整数 * @return byte数组 */ public static byte[] intToByte4(int i) { byte[] targets = new byte[4]; targets[3] = (byte) (i & 0xFF); targets[2] = (byte) (i >> 8 & 0xFF); targets[1] ...
#!/bin/sh #!/usr/tcl/bin/expect -f export thisDir=$(cd $(dirname $BASH_SOURCE) && pwd) echo $thisDir pwd cd $thisDir echo "*" echo "*" echo "*" echo "*" echo "ɾ³ý¾ÉµÄ°æ±¾Îļþ" echo "*" echo "*" echo "* ...
转自:http://blog.csdn.net/baggio328/article/details/1780707 在java中,配置文件一般主要是两种形式:xml文件或者property文件。但大部分人都习惯使用ini文件,而且ini文件的分节以及注释功能,比起xml,也是易懂易用的。 在vc中类库中有读写ini文件的标准函数。在dephi或其他语言中,也可以用windows的api函数来读写ini文件。但在java中似乎没有现成的类和方法可供使用。虽然java可以通过加载dll文件的方法来调用windows的api,但总觉得不够正宗。 package mytools; im ...

JAVA DES 学习

    博客分类:
  • java
import java.io.IOException; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; public class DesUtil { ...

java MD5

    博客分类:
  • java
import java.security.MessageDigest; /** * 对密码进行加密和验证的类 */ public class CipherUtil{ //十六进制下数字到字符的映射数组 private final static String[] hexDigits = {"0", "1", "2", "3", "4", "5", "6", " ...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userdao': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource ...
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.jface.viewers.ColumnWeightData; import org.eclipse.jface.viewers.TableLayout; import org.eclipse.jface.viewers.TableViewer; import org.eclipse.swt.SWT; import org.eclipse.swt.events.DisposeEvent; import ...
Global site tag (gtag.js) - Google Analytics