作者:matrix
发布时间:2013 年 9 月 19 日
分类:零零星星
windows8 64bit下安装AutoCAD2012。附注册机
CAD2012中文版64bit 下载:
百度网盘: http://pan.baidu.com/share/link?shareid=3586116122&uk=3238236832
1.解压,打开setup.exe安装 ,输入序列号和密钥:
安装序列号(任选其一): 666-69696969, 667-98989898, 400-45454545
密匙: 001D1
勾选需要安装的内容
- 安装成功后启动cad,进入激活界面。
注意:这里激活需要联网,否则无法获取激活需要的申请号
3.确保联网后点击激活,会得到申请号。
如果出现如下图这样的红色错误提示,点击关闭按钮再试试 。直到出现申请号,要不然无法激活.欢迎留言。。。
4.启动注册机KeyGen-64bit.exe,粘贴激活界面的申请号至注册机中的 Request 栏中,点击 Generate 算出激活码,并点击 Mem Patch 键,否则无法激活,提示注册码不正确。
5.选择“我具有Autodesk提供的激活码”,并复制注册机 Activation 中的激活码至“输入激活码”栏中,并点击“下一步”。
6.激活成功
说明:每个电脑的申请号是不同的建议自己联网申请。
具体激活过程或许有出入,仅供参考,可下面留言。。。
解决安装失败:
1.确保cad解压到的路径不包含中文。 ERROR示例: d:/TMD软件/cad
2.如果电脑上安装了.NET4.0 请卸载,之后再安装官方版本:http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=17718
参考:http://bbs.PCbeta.com/viewthread-1211473-1-1.html
作者:matrix
发布时间:2013 年 9 月 17 日
分类:兼容并蓄 零零星星
smarthosts能干啥子 你懂得, 大号防火墙嘛
可以顺利打开一些网站,提高某些国外服务的打开或下载速度。
地址:https://code.google.com/p/smarthosts/
目前迁移到:
https://www.projecth.us/sources
https://github.com/zxdrive/imouto.host/blob/master/imouto.host.txt
https://www.dropbox.com/sh/lw0ljk3sllmimpz/sMifu8lErM
使用:
修改电脑里的hosts文件为smarthosts里面的北京服务器1内容。
win系统路径:c:/windows/system32/drive/etc/hosts
修改hosts文件,建议把文件拖到桌面后再用记事本修改,之后再放回etc目录里面。
说明:
某些网站需要您使用https方式打开,例如:
Facebook: https://www.facebook.com 建议多尝试。
之后咱去推特、facebook都谋问题啦
作者:matrix
发布时间:2013 年 9 月 17 日
分类:兼容并蓄 零零星星
网盘资源搜索器
可以搜索百度网盘、快传、华为网盘、千军万马、115网盘、即得网盘的资源,可谓神器。
下载:http://www.400gb.com/file/29289242
http://pan.baidu.com/share/link?shareid=2982448600&uk=3238236832
p2p资源搜索
下载:http://www.400gb.com/file/43394730
http://pan.baidu.com/s/1y5fnn
运行P2P Seacher.exe,如图注意右下角显示是否已连接
p2psearcher 资源搜索器 4.0(这东东不定时抛锚,不建议使用)
下载:
http://www.400gb.com/file/43395539
http://pan.baidu.com/s/1d6y52
运行的时候也要注意右下角提示是否连接。
ps:
2013/12/11添加p2p资源搜索器
此类神器的作用,呵呵 你娃晓得。
作者:matrix
发布时间:2013 年 9 月 16 日
分类:Wordpress 零零星星
用ZeroClipboard跨浏览器实现复制到剪切板,兼容ie、chrome、firefox等等支持flash的浏览器。
ZeroClipboard以前在google代码的项目404,发现个神似ZeroClipboard的zClip 项目:http://www.steamdev.com/zclip/
其余项目:可以参考http://zeroclipboard.org/
网上关于ZeroClipboard的有很多,有些不能用 看着也杂~
下面记录自用ZeroClipboard的代码。点击查看最新版本的简单设置
ZeroClipboard version: "1.0.7"
js和swf下载:
http://www.400gb.com/file/28619600
http://pan.baidu.com/share/link?shareid=3611655227&uk=3238236832
步骤:
1.修改压缩包中zpCOPY.js的第九行:
moviePath: 'zpCOPY.swf', // URL to movie
确保zpCOPY.swf路径的正确,建议使用绝对地址(形如https://www.hhtjim.com/zpCOPY.swf)。
2.在需要调用复制的页面加入js代码:
<script type="text/javascript" src="https://www.hhtjim.com/zpCOPY.js"></script>
<script type="text/javascript">
var clip = null;
function $(id) { return document.getElementById(id); }
function init() {
clip = new ZeroClipboard.Client();
clip.setHandCursor(true);
clip.setText($('text').value);
clip.glue('anniu');
clip.addEventListener( "complete", function(){
alert("复制成功!");
});
clip.addEventListener( "load", function(client) {
client.movie.title="复制本文固定链接";
});
}
</script>
说明:
第1行的js地址可自定义
第8、9行的text、anniu为第3步代码中对应的id值
第10、11行是复制后的弹窗提示。
3.同上,放在那页面,适当位置添加:
<body onLoad="init()"></body>
<textarea style="display:none" id="text" ><?php the_permalink() ?></textarea>
<a id="anniu" href='javascript:void(0);' title="复制本文链接">+复制链接</a>
说明:
第1行的onLoad="init()"为打开页面即加载init函数。缺少此行会导致加载flash失败。
第2行为需要复制的文本内容。这里的复制的内容是<textarea里的<?php the_permalink() ?>返回的WordPress文章网址。
经测试无法复制其他标签的文字,只有<textarea标签里的可用。由于文本框有点占位置,所以做了隐藏style="display:none"。
第3行为点击复制的那个按钮。
4.之后就成功了。
经本地测试chrome 版本 28.0.1500.95 m、ie10、firefox 23.0.1 复制成功!
本地测试于NGRO主题 💡
弹窗提示
参考:http://www.myext.cn/webkf/27383.html
http://keleyi.com/a/bjac/3wjq3xm2.htm
zclip DEMO:http://www.steamdev.com/zclip/
需要调用JQ库和zclip.min.js:
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://file.icycat.com/view/js/jquery.zclip.min.js"></script>
然后是复制的按钮和文本代码:
<a type="button" id="anniu" class="btn" > 复制 </a>
<a style="display:none" id="wenben"> 复制:https://www.hhtjim.com </a>
<script type="text/javascript">
$(document).ready(function(){$("#anniu").zclip({path:"http://file.icycat.com/view/js/ZeroClipboard.swf",copy:$("#wenben").text(),afterCopy:function(){$(this).css("color","#777");$(this).text("复制成功")}})});
</script>
说明:第1行 复制按钮为 id="anniu"
第2行 复制的文本是 id="wenben"的内容
3-4行 加载配置的swf文件路径,复制按钮、复制的文本ID以及复制成功后变成“复制成功”的样式。
代码参考来自:http://file.icycat.com/
作者:matrix
发布时间:2013 年 9 月 7 日
分类:兼容并蓄 零零星星
添加自动识别百度外链的文件名以及后缀 中抓取页面标题的方式有点落后,这次稍微修改,使用关于正则匹配的函数。
相关代码:
$fp = file_get_contents($quurlXX);//$quurlXX为百度网盘地址
preg_match_all ("/title\>.*\<\/title/",$fp,$titleList, PREG_PATTERN_ORDER);//使用preg_match_all正则匹配数据并保存到$titleList数组中
//echo $titleList[0][0] ;
$zhuaqian=strpos($titleList[0][0],"title>");
$zhuahou=strpos($titleList[0][0],"_免费高速下载|百度云 网盘-分享无限制");
$xinzhi=substr($titleList[0][0],6,$zhuahou-6); //取适当的两个位置中间的值也就是文件名
$zz = 'http://www.hhtjim.com/bdwl/'.$urlcode.'/'.$uk.'/'.$xinzhi;
echo $zz;
这次抓取的话相对于以前要好些了,除非度娘又把文件名后面的那一串串“_免费高速下载|百度云 网盘-分享无限制”给改了,要不我这又失效了。
bapi.php下载:
http://www.400gb.com/file/29243856
http://pan.baidu.com/share/link?shareid=1490940073&uk=3238236832
这次又调整 外链程序到v0.3。之前用的奶酪博客首发解析百度网盘 V3.1 直链下载 ,后来发现 破博客 的 百度网盘音乐外链源码 更简单实用。
更新提取百度网盘下载链接:
if(isset($_GET['baiu'])){
$baiduURL=explode("?baiu=",$_SERVER["REQUEST_URI"]);//取?baiu=后面的百度网盘链接地址
$bai_url = $baiduURL[1];
$bai_src = file_get_contents($bai_url);
preg_match('|MusicPlayer\("(.*)"|U', $bai_src, $bai_res);//匹配源码里面的下载地址并跳转
$bai_songurl = $bai_res[1];
preg_match('|dlink\\\":\\\"(.*)\\\"|U', $bai_src, $bai_res);
$bai_songurl = str_replace("\\\\", "", $bai_res[1]);
header("location:$bai_songurl");
}
说明:相关代码来自破博客的 百度网盘音乐外链源码 。
将上面代码保存到php文件中,执行示例:/*.php?baiu=百度网盘分享地址(支持新老版本)
作者:matrix
发布时间:2013 年 9 月 2 日
分类:零零星星
转换地址:http://link.hhtjim.com
(外链接口已经修改,请到link.hhtjim.com转换)
接口地址:https://www.hhtjim.com/xiami.php?u=虾米网音乐地址
虾米网音乐地址例如:http://www.xiami.com/song/1772146363?spm=a1z1s.6659513.0.0.eu3WwL
或者http://www.xiami.com/song/1772146363放到接口地址上都可以调用自动下载。
用过上次百度网盘外链应用再升级的模板后觉得js的就是漂亮,再借着 Liang's 源码,拿着.htaccess伪静态实现外链地址静态化的实践成果搞定起来的确没那么大的障碍了。
记录过程:
一.修改php源码,添加取得虾米网音乐地址的id值,也就是下面代码的 变量$mp3_id
<?php
/*取得song/后面的音乐ID:$MUsicID
正确链接例如:http://www.xiami.com/song/1772146363?spm=a1z1s.6659513.0.0.eu3WwL
若链接这样http://www.xiami.com/song/play?ids=/song/playlist/id/175153022/object_name/default/object_id/0
则需要 $aa = explode('/',$getturl);
$mp3_id = $aa[8]; //第8个数组
*/
isset($_GET['u']);
$quurl = $_GET['u'];
$getturl = $quurl;
$aa = explode('/',$getturl);
$mp3_id = $aa[4];
代码说明:取得网址的U参数(也就是那虾米的音乐网址)的值后再以“/”分割字符串,得到第4个数组。下面会需要网址跳转,尾巴上添加header("Location: $url");
笔记:
示例地址:http://www.xiami.com/song/1772146363?spm=a1z1s.6659513.0.0.eu3WwL 以“/”分割字符串
第一数组:http:/ (像是吧)
第二数组:www.xiami.com
第三:song
第四:1772146363?spm=a1z1s.6659513.0.0.eu3WwL
奇怪的是将带有?spm=a1z1s.6659513.0.0.eu3WwL 的音乐id值带入到获取音乐id的php中竟然正常返回外链地址。这里只带入音乐id也是正确的。
explode()函数参考:http://www.w3school.com.cn/php/func_string_explode.asp
二.想的是由我这www.hhtjim.com的链接跳转到虾米的直链,这就需要添加伪静态规则。
RewriteRule ^xiami/([0-9]+)\.mp3?$ /xiami.php?u=http://www.xiami.com/song/$1 [L]
说明:
http:// w w w . hhtjim.com/xiami.php?u=http://www.xiami.com/song/1770832884
===>跳转到
http://w w w . hhtjim.com/xiami/1770832884.mp3
三.之后再修改 虾米音乐外链 | HHTJim.Com Web App 就可行啦! 哈哈。
这个模板的功能是用js写的。部分js代码:
<script type="text/javascript">
function getNewLink() {
var inputUrl = document.getElementById("inputUrl");
var file_value = "";
var file_type = document.getElementsByName("file_type");
var hostname = "http://" + "www.hhtjim.com" + "/xiami/";//window.location.hostname为本地url.可替换掉www.hhtjim.com
for (var i = 0; i < file_type.length; i++) {
if (file_type[i].checked) {
file_value = file_type[i].value;
break;
}
};
var file_other = document.getElementById("file_other");
file_other_text = document.getElementById("file_other_text");
var outputUrl = document.getElementById("outputUrl");
var abc = inputUrl.value.substring(inputUrl.value.indexOf('g/') + 2);
// var abc = inputUrl.value.substring(inputUrl.value.indexOf('g/') + 2 ,inputUrl.value.indexOf('?spm') );
// var abc = inputUrl.value.substring(inputUrl.value.indexOf('id/') + 3 ,inputUrl.value.indexOf('/ob') );
// indexOf():http://www.w3school.com.cn/js/jsref_indexOf.asp
//replace():替换用 http://www.w3school.com.cn/js/jsref_replace.asp
//substring():http://www.w3school.com.cn/js/jsref_substring.asp
// test():http://www.w3school.com.cn/js/jsref_test_regexp.asp
//var reg = /^\d+\/xiami\/+\d+$/;//注意\后面的/
var reg = /^([0-9]+)+$/;
if (!reg.test(abc)) {
alert("链接错误,请核对尺码后入座!!!再点击获取~");
inputUrl.focus();
return false;
}
if (file_value == 'other') {
outputUrl.value = hostname + abc + "." + "mp3";
} else {
outputUrl.value = hostname + abc + "." + "mp3";
}
}
</script>
又要用到js,再笔记下。
var abc:申明变量abc
indexOf()确定某个字符首次出现的位置,函数参考:http://www.w3school.com.cn/js/jsref_indexOf.asp
replace()替换作用,参考: http://www.w3school.com.cn/js/jsref_replace.asp
substring()根据indexOf()确定某个字符首次出现的位置来提取字符串,参考:http://www.w3school.com.cn/js/jsref_substring.asp
test()比较字符串,参考:http://www.w3school.com.cn/js/jsref_test_regexp.asp
还有就是正则表达式,这里用的/^([0-9]+)+$/来表示全数字的音乐id。
目前虾米音乐外链 | HHTJim.Com Web App支持3种虾米的url来转换,都是歌曲单文件,其实最终只是获得那个id,都可以自己的手动改的。
1.例如:http://www.xiami.com/song/1819190
2.例如:http://www.xiami.com/song/1819190?spm=a1z1s.6659513.0.0.BMIFmS
3.例如:http://www.xiami.com/song/play?ids=/song/playlist/id/1819190/object_name/default/object_id/0
其余的额也没什么可记。
Liang 在http://www.ifoouu.com/note/47.html贴出的源码正是太漂亮了,给出音乐id就可以得到外链地址。再次 感谢!
10-3添加更精简的php获取方法:
<?php
function curl_get($url,$post=false,$carry_ua=true){
$ch=curl_init($url);
if($carry_ua){
curl_setopt($ch, CURLOPT_HTTPHEADER, array('User-Agent:Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16'));
}
if ($post) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$get_url = curl_exec($ch);
curl_close($ch);
return $get_url;
}
//echo curl_get($st_url);
$st_url='http://www.xiami.com/song/1772222342';
$st_con=curl_get($st_url);
//$st_rex="/src='(.*?)'>Your browser/";
$st_rex="/\"url\":\"(.*?)\",\"/";
preg_match($st_rex, $st_con,$st_matchs);
$st_rurl=$st_matchs[1];
$st_head='m'.rand(0,9);
$st_rurl=str_replace('mg', $st_head, $st_rurl);
$real_file_url = $st_rurl;
$real_file_url = str_replace('\\','',$real_file_url);//将\删除
echo $real_file_url;
?>
说明:其中16行的URL地址为虾米网的音乐链接
代码来自LIANG的http://www.ifoouu.com/note/68.html中提取。
curl的确好啊
14-3-16 添加官方虾米接口:
例:http://www.xiami.com/app/iphone/song/id/1772222342
打开后可以看到:
{"song_id":"1772222342","default_resource_id":"10855342","length":"250","category":null,"listen_file":"\/aliyunos\/874\/117874\/1680443259\/1772222342_10855342_l.mp3","album_id":"1680443259","name":"\u4f60\u7684\u6211\u7684","artist_name":"\u6881\u535a","artist_id":"117874","title_url":"nidewode","recommends":"331","singers":"\u6881\u535a","title":"\u4f60\u7684\u6211\u7684","album_logo":"http:\/\/img.xiami.net\/images\/album\/img74\/117874\/16804432591380527751_2.png","location":"http:\/\/m5.file.xiami.com\/874\/117874\/1680443259\/1772222342_10855342_l.mp3?auth_key=d94ae2db825f166c3c76c901ae79343c-1395014400-0-null","low_size":"10023705","file_size":null,"low_hash":"d272d5c12629274af5ed42d71d51fb55","whole_hash":"d272d5c12629274af5ed42d71d51fb55","content_hash":"d272d5c12629274af5ed42d71d51fb55","content_size":"10023705","lock_lrc":"2","lyric":"http:\/\/img.xiami.net\/lyric\/42\/1772222342_13804511043990.lrc","year_play":"0","grade":"-1","album_url":"http:\/\/www.xiami.com\/app\/iphone\/albuminfo?id=1680443259&uid=","artist_url":"http:\/\/www.xiami.com\/app\/iphone\/artistinfo?id=117874&uid=","isad":"0"}
里面的location即mp3下载地址。
14-07-19 添加虾米歌曲链接地址破解算法
php代码:
$id = '1772222342';//虾米音乐ID
$DataUrl = 'http://www.xiami.com/widget/xml-single/uid/0/sid/'.$id;//xml数据
$xml_array=simplexml_load_file($DataUrl); //将XML中的数据,读取到数组对象中
foreach($xml_array as $tmp){
$location = $tmp->location;
}
echo de_Location($location);
/*
虾米下载地址解码函数@de_Location
github项目:https://github.com/Flowerowl/xiami/blob/master/xiami.php
*/
function de_Location($location){
$loc_2 = (int)substr($location, 0, 1);
$loc_3 = substr($location, 1);
$loc_4 = floor(strlen($loc_3) / $loc_2);
$loc_5 = strlen($loc_3) % $loc_2;
$loc_6 = array();
$loc_7 = 0;
$loc_8 = '';
$loc_9 = '';
$loc_10 = '';
while ($loc_7 < $loc_5){
$loc_6[$loc_7] = substr($loc_3, ($loc_4+1)*$loc_7, $loc_4+1);
$loc_7++;
}
$loc_7 = $loc_5;
while($loc_7 < $loc_2){
$loc_6[$loc_7] = substr($loc_3, $loc_4 * ($loc_7 - $loc_5) + ($loc_4 + 1) * $loc_5, $loc_4);
$loc_7++;
}
$loc_7 = 0;
while ($loc_7 < strlen($loc_6[0])){
$loc_10 = 0;
while ($loc_10 < count($loc_6)){
$loc_8 .= isset($loc_6[$loc_10][$loc_7]) ? $loc_6[$loc_10][$loc_7] : null;
$loc_10++;
}
$loc_7++;
}
$loc_9 = str_replace('^', 0, urldecode($loc_8));
return $loc_9;
}
github:https://github.com/Flowerowl/xiami
参考:http://www.myhack58.com/Article/html/3/92/2013/38705.htm
MP3 TEST :
http: / / link.hhtjim.com/xiami/1772355885.mp3
作者:matrix
发布时间:2013 年 8 月 28 日
分类:兼容并蓄 零零星星
新版本地址:http://d.hhtjim.com/bai.html
这次又是借着itiyun.com童鞋的源码来完美晋升到了精简漂亮的界面。
旧版本就有点落后+难看死了。。。
新版下载:http://www.400gb.com/file/28753605
旧版:http://www.400gb.com/file/28753662
可查看>>
作者:matrix
发布时间:2013 年 8 月 16 日
分类:兼容并蓄 零零星星
借用baidu-pan-proxy升级百度网盘外链应用 提到了百度网盘的外链:
https://www.hhtjim.com/bdwl.php?/get/2053194229/3238236832类似于这种外链地址总有点不爽。
利用apache服务器的rewrite编写规则就可以实现外链地址的静态化(带伪字):
https://www.hhtjim.com/bdwl/2053194229/3238236832 类似于这种的 很爽~
步骤: 阅读剩余部分 »
- 1
... - 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23