博客主机

Eclipse 使用技巧

Alt+左箭头,右箭头        以在编辑窗口切换标签 Alt+上下箭头,                以自动选择鼠标所在行,并将其上下移动 Ctrl+f6                        ...

检测Java对象所占内存大小

Don't pay the price for hidden class fieldsBy Vladimir Roubtsov, JavaWorld.com, 08/16/02 Recently, I helped design a Java server application that resembled an in-memory database. That is, we biased the design toward caching tons of data in memory to provide super-fast query performance. Once we got the prototype running, we naturally decided to profile the data memory footpr...

软件项目版本号的命名格式

版本控制比较普遍的 3 种命名格式 : 一、 GNU 风格的版本号命名格式 : 主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]] 英文对照 : Major_Version_Number.Minor_Version_Number[.Revision_Number[.Build_Number]] 示例 : 1.2.1, 2.0, 5.0.0 build-13124 二、 Windows 风格的版本号命名格式 : 主版本号 . 子版本号 [ 修正版本号 [. 编译版本号 ]] 英文对照 : Major_Version_Number.Minor_...

数字摘要

public static void main(String[] args) { String old =""; try { for (int i = 0; i < 10; i++) { String beforeDegist = "asdf"; System.out.println("摘要前:" + beforeDegist); // 初始信息要转换成字节流的形式 byte[] plainText; plainText = beforeDegist.getBytes("UTF-8"); ...

ubuntu svn subclipse

If you are running Ubuntu 8.04 and you install Eclipse 3.4 with subclipse 1.4, you will probably get the "unable to load default svn client" error when trying to add a repository. Here it is how I solved this problem. I assume that you have the 'subversion' and 'libsvn-java' packages already installed (if not, please do install them, and then follow the instructions). 1) Go ...

任务

1.实现完整的Rank View2.在run dialog里添加选择算法的选项,包括trantula,CBI等,以便算出Rank

JVM监控工具介绍

jstatd启动jvm监控服务。它是一个基于rmi的应用,向远程机器提供本机jvm应用程序的信息。默认端口1099。实例:jstatd -J-Djava.security.policy=my.policy my.policy文件需要自己建立,内如如下:grant codebase "file:$JAVA_HOME/lib/tools.jar" { permission java.security.AllPermission;};这是安全策略文件,因为jdk对jvm做了jaas的安全检测,所以我们必须设置一些策略,使得jstatd被允许作网络操作 jp...

统计代码行数的类

import java.io.File;import java.io.FileNotFoundException;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException; public class CountCodeLines { static int codeLines = 0; static int whiteLines = 0; static int commentLines = 0; static int tatolLines = 0; static boolean bComment = false; public static void main(String[] args) { StringBuffer pat...

毕设告休5天,先考试

前景: 修改instrument使用thread而不是vm,加快速度 修改testcasemodify仅仅修改相关类,需要研究一下junit或者使用soot查看resolveclass,加快速度 从xml文件中读取suspicious文件,构造新的problems view,并根据constructure.xml结构化视图,添加marker 增加副产品中的coverage分析。 ----------------- 以上需要在中期前完成 1月1号开始写报告和做PPT,10号中期答辩。 增加cfg中的分析浏览。

Get main class name

1 2 3 4 5 6 7 8 9 Map a = Thread.getAllStackTraces(); for(Thread t : a.keySet()){ if ("main".equals(t.getName())){ StackTraceElement[] stack = t.getStackTrace (); StackTraceElement main = stack[stack.length - 1]; String mainClass = main.getClassName (&...
Copyright © 小小的数据技术梦想 保留所有权利.   Theme  Ality 浙ICP备12043346号-1

用户登录

分享到: