Win7破解LoadRunner的问题
WIN7在破解LoadRunner,添加license时,报如下错误:
—————————————————
cannot save the license information because access to the registry is denied.
Please provide the current user with write permission for the HKEY_LOCAL_MACHINEregistry key.
The detailed instructions can be found
in the Readme file.
---------------------------------------------------
解决办法是在运行LoadRunner时右键选择以管理员身份运行,便可正常添加。OK!
golba-100: AEAMAUIK-YAFEKEKJJKEEA-BCJGI
web-10000: AEABEXFR-YTIEKEKJJMFKEKEKWBRAUNQJU-KBYGB
golba-1000:AEACFSJI-YASEKJJKEAHJD-BCLBR 使用说明:
1、正常安装完LR9.1后,先解压删除.rar。然后双击deletelicense.exe
2、然后解压替换.rar,将其中的2个DLL文件拷贝到"C:\Program Files\HP\LoadRunner\bin\"下替换原有文件
3、进入LR,输入以上的序列号即可
根据SVN信息自动生成升级补丁包
/**
* 使用说明:
* 注意:在使用之前需保证本地和SVN上的数据保持一致。
*
* 使用方法:
* 1. 查看SVN日志,将日志复制到一个文本文件 war.txt 中
* 2. 配置参数,需对以下几个参数进行配置:(对于目录路径可以不用斜杠结尾)
* destPath: 生成的打包文件夹。
* workPath: 服务器下部署目录。
* 3. 执行完成之后,查看日志 log/fatwar.log 如果没有任何异常且没有错误提示信息(在最后),则表示执行成功。
* 如果执行成功,那么在日志中最后会提示生成的打包地址。
*/
public class FatWarMain
{
private final static Logger log = LogManager.getLogger(FatWarMain.class);
public static String destPath = null; // 放生成的WAR路径
public static String txtPath = “war.txt”; // 将SVN信息复制到该文本文件中
public static String workPath = null; // 注意此目录需配置为服务器目录,eclipse工作目录可能不存在JSP文件
public static void main(String[] args)
{
setResourceAttributeValue();
if (workPath == null || “”.equals(workPath))
{
log.info(“请配置参数,参数值不能为空!”);
return;
}
if (!new File(workPath).exists())
{
log.info(“指定服务器部署目录不存在,请检查路径是否正确!”);
return;
}
log.info(“destPath:” + destPath + ” workPath:” + workPath);
StringBuffer errinfo = new StringBuffer();
BufferedReader reader = null;
try
{
reader = new BufferedReader(new FileReader(txtPath));
String string = null;
while ((string = reader.readLine()) != null)
{
log.info(“SVN信息:” + string);
if (string.contains(“/ProductCode/”))
{
String filename = string.substring(string.lastIndexOf(‘/’) + 1);
log.info(“获取文件名:” + filename);
if (filename.endsWith(“.java”)) // 编译之后生成class文件,且要考虑内部类的情况
{
final String temp = filename.substring(0, filename.indexOf(“.java”)); // 去掉扩展名之后的文件名
String classDir = workPath + “/WEB-INF/classes” + string.substring(string.indexOf(“/ProductCode/”) + 12, string.lastIndexOf(‘/’));
final String destDir = destPath + “/WEB-INF/classes” + string.substring(string.indexOf(“/ProductCode/”) + 12, string.lastIndexOf(‘/’));
File[] files = new File(classDir).listFiles(new FileFilter() {
public boolean accept(File file)
{
if (file.getName().equals(temp + “.class”) || file.getName().startsWith(temp + “$”))
{
String dest = destDir + “/” + file.getName();
log.info(“原文件路径:” + file.getPath());
log.info(“目标文件路径:” + dest);
Handle.copyFile(file, new File(dest));
return true;
}
return false;
}});
if (files.length == 0)
{
log.warn(“在路径 ” + classDir + ” 下找不到编译之后的文件,源文件名:” + filename);
errinfo.append(“SVN信息:” + string + “\n在路径 ” + classDir + ” 下找不到编译之后的文件,源文件名:” + filename + “\n”);
}
log.info(“该SVN信息处理完成!\n”);
}
else // 对于其他类型文件
{
String sourceFile = workPath + “/WEB-INF/classes” + string.substring(string.indexOf(“/ProductCode/”) + 12);
String destFile = destPath + “/WEB-INF/classes” + string.substring(string.indexOf(“/ProductCode/”) + 12);
log.info(“原文件路径:” + sourceFile);
log.info(“目标文件路径:” + destFile);
Handle.copyFile(new File(sourceFile), new File(destFile));
log.info(“该SVN信息处理完成!\n”);
}
}
else if (string.contains(“/WebContent/”))
{
String sourceFile = workPath + string.substring(string.indexOf(“/WebContent/”) + 11);
String destFile = destPath + string.substring(string.indexOf(“/WebContent/”) + 11);
log.info(“原文件路径:” + sourceFile);
log.info(“目标文件路径:” + destFile);
Handle.copyFile(new File(sourceFile), new File(destFile));
log.info(“该SVN信息处理完成!\n”);
}
else if (string.trim().length() > 0)
{
log.warn(“该SVN信息不能被解析!\n”);
errinfo.append(“\nSVN信息:” + string + “\n该SVN信息不能被解析!\n”);
}
}
String errorinfostr = errinfo.toString();
if (errorinfostr.length() > 0)
{
log.error(“\n以下是错误信息:\n” +
“————————————————————————————————————————-” +
errorinfostr);
}
else
{
log.info(“运行成功,打包地址:” + destPath);
}
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
if (reader != null)
{
reader.close();
}
}
catch (IOException e)
{
}
}
}
public static void setResourceAttributeValue()
{
BufferedReader reader = null;
String string = “”;
try
{
reader = new BufferedReader(new FileReader(“config/res.txt”));
boolean b = false;
while ((string = reader.readLine()) != null)
{
String key = string.substring(0, string.indexOf(‘=’));
String value = string.substring(string.indexOf(‘=’) + 1).trim();
if (key.equals(“destPath”))
{
FatWarMain.destPath = value;
b = true;
}
if (key.equals(“workPath”))
{
FatWarMain.workPath = value;
}
}
if (!b)
{
FatWarMain.destPath = String.valueOf(new Date().getTime());
}
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
if (reader != null)
{
reader.close();
}
}
catch (IOException e)
{
e.printStackTrace();
}
}
}
}
———————————————————-
public class Handle
{
/**
* 拷贝文件
* @param source 原文件
* @param dest 目标文件
*/
public static void copyFile(File source, File dest)
{
FileInputStream inputStream = null;
FileOutputStream outputStream = null;
try
{
if (!dest.exists())
{
dest.getParentFile().mkdirs();
}
inputStream = new FileInputStream(source);
outputStream = new FileOutputStream(dest);
byte[] bs = new byte[8192];
int size = 0;
while ((size = inputStream.read(bs)) != -1)
{
outputStream.write(bs, 0, size);
}
outputStream.flush();
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
if (outputStream != null)
{
outputStream.close();
}
}
catch (IOException e)
{
}
try
{
if (inputStream != null)
{
inputStream.close();
}
}
catch (IOException e)
{
}
}
}
}
——————————————————-
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=info, file, stdout
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d [%p] %m%n
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
# log4j.appender.logfile.MaxBackupIndex=10
# log4j.appender.logfile.MaxFileSize=102400KB
log4j.appender.file.File=log/fatwar.log
log4j.appender.file.append=false
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%p] %m%n
NeoBux – 点击轻松网赚美元
NeoBux是目前全球人气最旺的点击网赚站,Alexa世界排名1382名,成立1年多以来已经向数百万会员支付了1100多万美元佣金!NeoBux会员每点击1个广告可以赚取1-1.5美分,每天有4、5个广告可点击,你的下线每点击1个广告你可以赚取0.5-1美分。如果升级为黄金会员,你的可点广告、广告佣金、下线佣金等将翻番。在NeoBux中你不但可以直接发展下线,也可以租用下线帮你点广告,赚到2美元即可请款,使用AlertPay可立即到账,同时也支持PayPal,最重要的是信誉好。
点击左面的“REGISTER NOW”按钮
Username: 用户名
Password: 密码
Password confirmation: 密码确认
Email: 邮箱
AlertPay/PayPal Email: AlertPay或PayPal账户邮箱
Birth Year: 出生年份
Image Verification: 校验码
点下面“CONTINUE”按钮
先不要关闭本页,打开你的邮箱,将确认信中的一长串激活码贴到页面中的对应文本框中,输入下面的验证码,点“FINISH REGISTRATION”按钮完成注册。
注意:如果你填写的邮箱和你的AlertPay或PayPal账户邮箱不是一个邮箱,要分别进入不同邮箱获取那一长串激活码,贴到对应的文本框中。
登陆的时候输入用户名、密码、验证码即可,Secondary Password(二次密码)不用输,这个是增加登陆安全性的,你可以在个人信息中设置。
登陆后点右上角View Advertisements,你会看到广告,金色五星代表可点的广告,点击后面的广告链接,再点小红点即可点开广告,广告页面完全载入后,左上角可见进度条,直到出现绿色对勾你的收入才进账,这时可以关闭该页面,点击下一个广告,一次只能点一个广告。
Banners中可以看到发展下线链接和广告图片,但要注册满30天,广告点击超过100次才能发展直接下线。你可以先到Rented中租赁下线帮你点广告赚钱,租赁是要花钱的。
NeoBux帮助:http://www.neobux.com/?u=a
NeoBux帮助中文版:http://translate.google.cn/translate?…&sl=en&tl=zh-CN
中文版是使用Google翻译自动在线翻译的,不能保证准确度,如果你还有其它地方看不明白,也别忘了使用Google翻译帮你在线翻译一下。
两台笔记本通过无线连接共享上网
2 然后把2台电脑无线网卡的IP地址配成一个网段内,你可以将与A的无线网卡的地址配成:
地址:10.10.10.1
掩码:255.255.255.252
网关:不必填
DNS:填上电信的DNS(不知道的话问电信)
B的无线网卡的地址配成:
地址:10.10.10.2
掩码:255.255.255.252
网关:10.10.10.1
DNS:填上电信的DNS(不知道的话问电信)
这样就连接就做好了
3 现在打开A的宽带拨号连接,在属性-高级-Internet连接共享中,把”允许其他网络用户通过此计算机的Internet连接来连接”前面选中,再确定,然后拨号就可以了!
4 注意要把2台电脑的无线网卡设置成点对点模式,不会的话搜索下”笔记本无线网卡互联”.然后B加入A的无线网络就好.这时会发现2台电脑可以共享上网了.
5 还有一点,只有电信/网通没有禁止多台共享上网,你才可以2台同时上,否则的话是没有办法共享上网了.
WINRAR 3.9版本破解的方法
之前,我们用同样的方法破解过WINRAR3.80正式版。WINRAR 3.9版本破解的方法也如下:
1.首先到http://www.winrar.com.cn下载Winrar3.8正式版,并且进行安装.(好像是废话……)
2.新建一个文本文件(名字是”RarReg”,扩展名是”.txt”),将下面部分的内容复制到文本文件中.
RAR registration data
Federal Agency for Education
1000000 PC usage license
UID=b621cca9a84bc5deffbf
6412612250ffbf533df6db2dfe8ccc3aae5362c06d54762105357d
5e3b1489e751c76bf6e0640001014be50a52303fed29664b074145
7e567d04159ad8defc3fb6edf32831fd1966f72c21c0c53c02fbbb
2f91cfca671d9c482b11b8ac3281cb21378e85606494da349941fa
e9ee328f12dc73e90b6356b921fbfb8522d6562a6a4b97e8ef6c9f
fb866be1e3826b5aa126a4d2bfe9336ad63003fc0e71c307fc2c60
64416495d4c55a0cc82d402110498da970812063934815d81470829275
3.最后一步把名字是”RarReg.txt”的文件扩展名”txt”改成”key”,使文件”RarReg.txt”改名成”RarReg.key”,好了把修改好的”RarReg.key”文件拷贝到Winrar的安装目录就好了,打开你的Winrar看看还有没有讨厌的提示框呢?^_^
注意事项:
文件的名字是”RarReg”注意大小写,文件的扩展名是”.key”.祝你成功……
FreeSurveyASIA – 国内专业免费调查赚钱网站
Free8已经在2009年9月30日收到了FreeSurveyASIA调客网的付款,信誉可以!
FreeSurveyASIA调客网(简称:调客网)是国内的一家专业免费调查赚钱网站,据Free8观察调客网主要是以代理国外大型调查公司的调查项目为主,调查结算也是以美元为单位。调客网基本上每月有1、2个调查项目,每个完成调查问卷佣金1-2美元,你的帐户中佣金累计达到3美元就可以申请提现。 阅读全文
火山互联免费VPS推荐码
最新火山互联免费VPS推荐码、推荐码共享、推荐码提交 请访问 http://vps.ardy.cn
| 邀请码 | 添加时间 | 过期时间 |
|---|---|---|
| 100024410_20090925193 | 2009-08-28 22:30:49 | 2009-09-25 |
| 100023166_20090919432 | 2009-08-20 23:12:44 | 2009-09-19 |
| 100016612_20090908320 | 2009-08-19 17:14:59 | 2009-09-08 |
| 100023195_20090917989 | 2009-08-18 05:59:29 | 2009-09-17 |
| 100024184_20090923235 | 2009-08-28 02:35:02 | 2009-09-23 |
| 100023596_20090919871 | 2009-08-20 23:12:56 | 2009-09-19 |
| 100022092_20090909862 | 2009-08-11 09:33:32 | 2009-09-09 |
| 100023195_20090917988 | 2009-08-20 23:12:21 | 2009-09-17 |
| 100022391_20090911877 | 2009-08-13 10:51:50 | 2009-09-11 |
| 100019386_20090923712 | 2009-08-24 05:00:30 | 2009-09-23 |
| 100023822_20090921971 | 2009-08-22 12:02:09 | 2009-09-21 |
| 100024431_20090925137 | 2009-08-26 00:52:17 | 2009-09-25 |
| 100021737_20090906527 | 2009-08-10 11:56:00 | 2009-09-06 |
| 100023633_20090920168 | 2009-08-30 02:09:15 | 2009-09-20 |
| 100022452_20090911896 | 2009-08-12 19:34:06 | 2009-09-11 |
| 100022230_20090910078 | 2009-08-11 12:54:08 | 2009-09-10 |
| 100025406_20090930527 | 2009-08-31 09:20:15 | 2009-09-30 |
| 100023462_20090918681 | 2009-08-19 00:23:18 | 2009-09-18 |
| 100017394_20090910679 | 2009-08-30 13:35:04 | 2009-09-10 |
| 100021744_20090906169 | 2009-08-20 23:11:21 | 2009-09-06 |
| 100022890_20090915219 | 2009-08-16 19:36:11 | 2009-09-15 |
| 100022021_20090908211 | 2009-08-14 12:03:20 | 2009-09-08 |
| 100021395_20090904925 | 2009-08-11 19:39:17 | 2009-09-04 |
| 100024640_20090926581 | 2009-08-29 20:36:14 | 2009-09-26 |
| 100022243_20090910765 | 2009-08-11 14:29:05 | 2009-09-10 |
| 100024853_20090927721 | 2009-08-30 02:14:10 | 2009-09-27 |
| 100025244_20090930539 | 2009-08-31 09:51:29 | 2009-09-30 |
| 100016612_20090908321 | 2009-08-20 23:12:29 | 2009-09-08 |
| 100022783_20090915948 | 2009-08-20 23:11:48 | 2009-09-15 |
| 100024363_20090925759 | 2009-08-26 17:55:43 | 2009-09-25 |
| 100021446_20090905042 | 2009-08-11 09:32:45 | 2009-09-05 |
| 100022616_20090913703 | 2009-08-14 08:50:30 | 2009-09-13 |
| 100021807_20090909378 | 2009-08-11 14:29:21 | 2009-09-09 |
| 100017796_20090918095 | 2009-08-19 17:16:37 | 2009-09-18 |
| 100024357_20090928843 | 2009-08-29 15:43:28 | 2009-09-28 |
| 100018261_20090915719 | 2009-08-17 19:06:01 | 2009-09-15 |
wordpress随机显示图片日志
WordPress随机显示数篇日志的图片并链接到日志上,也可以显示最新的日志图片。代码如下:
<?php
$dock = new WP_Query();
$dock->query( ‘showposts=6′ );
while( $dock->have_posts() ) : $dock->the_post();
?>
<li>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”>
<!–<img src=”<?php echo get_post_meta( $post->ID, “Image”, true ); ?>” width=”74px” height=”74px” alt=”<?php the_title(); ?>” /> –><?php if( get_post_meta($post->ID, “Image”, true) ): ?>
<img src=”<?php echo get_post_meta($post->ID, “Image”, true); ?>” width=”74px” height=”74px” alt=”<?php the_title(); ?>” />
<?php else: ?>
<img src=”http://wpjunction.com/themes/brown/wp-content/themes/Brown/images/ads-125-125.jpg” width=”74px” height=”74px” alt=”<?php the_title(); ?>” />
<?php endif; ?>
</a></li>
<?php
endwhile;
?>


