<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hacklog &#187; 奇技淫巧</title>
	<atom:link href="http://ihacklog.com/cat/internet_software/tips/feed" rel="self" type="application/rss+xml" />
	<link>http://ihacklog.com</link>
	<description>荒野无灯weblog</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:30:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>摘抄两段有意思的代码，“不管你们信不信，反正我信了”</title>
		<link>http://ihacklog.com/software/tips/funny-code.html</link>
		<comments>http://ihacklog.com/software/tips/funny-code.html#comments</comments>
		<pubDate>Mon, 26 Dec 2011 06:15:29 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5238</guid>
		<description><![CDATA[“不管你们信不信，反正我信了”: 123456789101112131415try &#123; &#160; &#160; if &#40;you.believe&#40;it&#41; &#124;&#124; !you.believe&#40;it&#41; &#41; &#160; &#160; &#123; &#160; &#160; &#160; &#160; I.believe&#40;it&#41;; &#160; &#160; &#125; &#125; catch &#40;Excep...]]></description>
			<content:encoded><![CDATA[<p>“不管你们信不信，反正我信了”:</p>
<div class="codecolorer-container java default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">try</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>you.<span style="color: #006633;">believe</span><span style="color: #009900;">&#40;</span>it<span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>you.<span style="color: #006633;">believe</span><span style="color: #009900;">&#40;</span>it<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; I.<span style="color: #006633;">believe</span><span style="color: #009900;">&#40;</span>it<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Exception</span></a> ex<span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aexception+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Exception</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;It's a miracle!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">finally</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; it.<span style="color: #006633;">justHappened</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>有人把“你爱，或者不爱我，爱就在那里，不增不减”写成了一段C#代码：<br />
（经<a href="http://phoetry.me/" target="_blank">phoetry</a>提醒，稍息修改了一个关键字）</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">while</span> <span style="color: #008000;">&#40;</span>you<span style="color: #008000;">.</span><span style="color: #0000FF;">Love</span><span style="color: #008000;">&#40;</span>me<span style="color: #008000;">&#41;</span> <span style="color: #008000;">||</span> <span style="color: #008000;">!</span>you<span style="color: #008000;">.</span><span style="color: #0000FF;">Love</span><span style="color: #008000;">&#40;</span>me<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><br />
<span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; love<span style="color: #008000;">++;</span><br />
&nbsp; &nbsp; love<span style="color: #008000;">--;</span><br />
<span style="color: #008000;">&#125;</span></div></td></tr></tbody></table></div>
<p>摘自老赵的博客：<a href="http://blog.zhaojie.me/2011/08/from-the-code-of-no-matter-you-believe-it-or-not.html" target="_blank">谈谈年度最佳代码“不管你们信不信，反正我信了”</a></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5238";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5238" title="Permanent Link to 摘抄两段有意思的代码，“不管你们信不信，反正我信了”" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5238</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年06月2日  //  <a href="http://ihacklog.com/php/original/qiguaidecuowucannotredeclareclass.html" title="奇怪的错误Cannot redeclare class ">奇怪的错误Cannot redeclare class </a> (2)</li><li>2008年12月27日  //  <a href="http://ihacklog.com/software/tips/%e5%8f%91%e7%8e%b0%e8%b0%b7%e6%ad%8c%e9%9f%b3%e4%b9%90%e6%90%9c%e7%b4%a2%e4%b9%8b%e5%90%8e%e5%8f%88%e4%b8%80%e5%8f%91%e7%8e%b0.html" title="发现”谷歌音乐搜索”之后又一发现">发现”谷歌音乐搜索”之后又一发现</a> (0)</li><li>2011年07月11日  //  <a href="http://ihacklog.com/software/development-tool/netbeans-ide-php-plugins.html" title="NetBeans IDE 中开发 PHP 应用程序之几个比较强力的插件">NetBeans IDE 中开发 PHP 应用程序之几个比较强力的插件</a> (2)</li><li>2008年02月22日  //  <a href="http://ihacklog.com/software/tips/%e5%b7%a7%e7%94%a8ie%e7%bc%93%e5%ad%98%e5%92%8cwinhex%e4%b8%8b%e7%94%b5%e5%bd%b1mp3.html" title="巧用IE缓存和winhex下电影,mp3">巧用IE缓存和winhex下电影,mp3</a> (0)</li><li>2011年12月6日  //  <a href="http://ihacklog.com/software/scripts/indent-shell-script-under-linux-kernel-directory.html" title="Linux内核文件中的indent脚本">Linux内核文件中的indent脚本</a> (0)</li><li>2011年01月1日  //  <a href="http://ihacklog.com/server/ubuntu-server/ubuntu-svn-setup.html" title="ubuntu下svn服务器的安装配置">ubuntu下svn服务器的安装配置</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/funny-code.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>让你的笔记本运行起来更有效率的10个小技巧[win32]</title>
		<link>http://ihacklog.com/software/tips/10-ways-to-make-your-laptop-run-more-efficiently.html</link>
		<comments>http://ihacklog.com/software/tips/10-ways-to-make-your-laptop-run-more-efficiently.html#comments</comments>
		<pubDate>Tue, 20 Dec 2011 03:51:59 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=5198</guid>
		<description><![CDATA[本文转自：《10 Ways to Make Your Laptop Run More Efficiently》 其实这篇文章中说的10个小技巧个人认为有一两个是算不上什么技巧的。这里主要是从这篇文章中下载了两个软件，一个是CCleaner ,另一个是Defraggler. 觉得这两个软件都不错，如果你有更好的，欢迎推荐给我~~ Whether it’s for work or pleasure, a laptop can be a real joy. However, if your laptop is ...]]></description>
			<content:encoded><![CDATA[<p>本文转自：《<a href="http://techie-buzz.com/featured/10-ways-to-make-your-laptop-run-more-efficiently.html" target="_blank">10 Ways to Make Your Laptop Run More Efficiently</a>》</p>
<p>其实这篇文章中说的10个小技巧个人认为有一两个是算不上什么技巧的。这里主要是从这篇文章中下载了两个软件，一个是CCleaner ,另一个是Defraggler.<br />
觉得这两个软件都不错，如果你有更好的，欢迎推荐给我~~ <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' />  </p>
<p>Whether it’s for work or pleasure, a laptop can be a real joy. However, if your laptop is not running as fast as it did when it was new, it may be time for some routine maintenance and cleanup.</p>
<p><img title="slow_pc_cartoon" src="http://static.ihacklog.com/wp-files/2011/12/slow_pc_cartoon.gif" alt="slow_pc_cartoon" width="343" height="250" border="0" /></p>
<p>Here are a few simple tips that you can use to make your laptop run faster, and last longer:</p>
<ol>
<li>
<h3>整理你的笔记本磁盘碎片</h3>
<p>?on a regular basis – at least once a week. Your computer breaks all of your files up into many pieces, and scatters them throughout your hard drive.? What defragmenting does is take all these mixed and scattered pieces, and re-organizes them neatly into a space where they can be easily accessed more quickly –?<a href="http://www.piriform.com/defraggler" target="_blank">defraggler下载</a>.</li>
<p><a href="http://static.ihacklog.com/wp-files/2011/12/defraggler.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/12/defraggler-493x400.png" alt="" title="defraggler" width="493" height="400" class="alignnone size-medium wp-image-5202" /> </a></p>
<li>
<h3>清理你的笔记本注册表</h3>
<p>. One of the most important parts of Windows is the registry. Fatal errors to your laptop can occur from disfiguration or corruption of this section. The most common cause of registry problems is buggy software installation.? Keep your registry clean and consider getting and running a registry cleaner from time to time. There are many of these programs available online, and some of them are even free –?<a href="http://www.piriform.com/ccleaner/download/standard" target="_blank">CCleaner</a>.</li>
<p><a href="http://static.ihacklog.com/wp-files/2011/12/CCleaner.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/12/CCleaner-550x375.png" alt="" title="CCleaner" width="550" height="375" class="alignnone size-medium wp-image-5203" /> </a></p>
<li>
<h3>整理好你的硬盘</h3>
<p>?of unnecessary programs and files such as entertainment, games, music, pictures, etc. If you allow them to add up, these files can clog the hard drive and slow it down. If your hard drive is too full, it can also cause problems with your computer’s RAM and processing capability. This can lead to significant slow-downs and frequent crashes –<a href="http://techie-buzz.com/utilites/windows-cleanup-freeware.html" target="_blank">Windows Cleanup for Fast and Fun Cleanups</a>.</li>
<li>
<h3>有安全防护吗？</h3>
<p>You need to run a good anti-virus program and spyware/adware program at least once a week, if not more. Many people do this every day at start-up. Most of these programs are able to run automatically on their own schedule without your assistance, which can save you a lot of time –?<a href="http://techie-buzz.com/tag/free-antivirus" target="_blank">The Best Free Antivirus and Malware protection</a>.</li>
<li>
<h3>经常清空回收站（事实上我都是直接shift+delete的）</h3>
<p>?It doesn’t do you a lot of good to delete all that unnecessary junk if it’s just going to sit in your Recycle Bin. No one likes taking out the trash but it needs to be done! –?<a href="http://techie-buzz.com/techie-buzz-search-results?cx=partner-pub-2703385610225771:4q7jy0-xpuo&amp;cof=FORID:11&amp;ie=ISO-8859-1&amp;q=recycle+bin&amp;sa=&amp;siteurl=techie-buzz.com/tag/free-antivirus" target="_blank">Recycle Bin tips and tricks</a>.</li>
<li>
<h3>经常清空Internet缓存文件</h3>
<p>?This cannot be stressed or emphasized enough. Every time you go to a site on the web or open a file, a temporary copy is made and kept in your hard drive. They may be called “temporary” but they’re there for a long time. The more you have on your system, the more they’re going to slow down your laptop. Whether you’re running Firefox, Chrome or Internet Explorer, find out how to clear your browser’s cache, and do it regularly –?<a href="http://techie-buzz.com/tips-and-tricks/how-to-delete-index-dat-file.html" target="_blank">Delete Internet History, Cache and More</a>.</li>
<li>
<h3>禁止不必要的软件随系统自动启动</h3>
<p>. Many programs want to start running as soon as you boot up your computer. Although these programs may not always be visible on your desktop, they’re still running in the background and sucking up your valuable RAM. This can significantly slow down the laptop as time goes by. Find out how to modify your “msconfig”, and manually remove these programs from launching on startup. You won’t be removing them from your computer, just preventing them from running every time you start up your computer –?<a href="http://techie-buzz.com/techie-buzz-search-results?cx=partner-pub-2703385610225771:4q7jy0-xpuo&amp;cof=FORID:11&amp;ie=ISO-8859-1&amp;q=startup+managers&amp;sa=&amp;siteurl=techie-buzz.com/tips-and-tricks/how-to-delete-index-dat-file.html" target="_blank">The Best Startup Managers</a>.</li>
<li>
<h3>Keep your laptop running cool</h3>
<p>. Avoid keeping your laptop directly on a soft surface such as your bed or couch. It needs to be able to breather freely and allow air to circulate. Otherwise, your processor might overheat, causing slow-downs, crashes and even physical damage to components.</li>
<li>
<h3>卸载不使用的软件</h3>
<p>. Any programs that are not being used are just taking up space on your hard drive. Please note that deleting a program folder is not the same as uninstalling. Make sure to properly remove programs using the Uninstall function in your Control Panel. Otherwise, you could just end up creating more problems –?<a href="http://techie-buzz.com/utilites/add-remove-program-alternatives-for-windows.html" target="_blank">Best Uninstallers for Windows</a>.</li>
<li>
<h3>如有必要，加大你的内存</h3>
<p>. If you have a tendency of having many large programs all opened at once, you may not have enough RAM on your system. Look into purchasing some new RAM. Prices are very reasonable, and it’s a cost-effective way to increase the speed and efficiency of your laptop.</li>
</ol>
<p>If you follow the advice listed in this article, you can possibly get an extra 2 or 3 years of life from your laptop before you’ll need to replace it.</p>
<p>But remember… before doing any kind of work on your system, it’s vital that you create a backup copy of all your most important data. This way, you’ll be prepared in the unlikely event that something goes wrong.</p>
<p><strong>Also Read:</strong></p>
<ul>
<li><a href="http://techie-buzz.com/tips-and-tricks/top-10-checklist-after-reinstallation-of-os.html" target="_blank">10 Things to do Before and After re-installing your OS</a></li>
<li><a href="http://techie-buzz.com/tech-news/things-to-do-before-throwing-away-your-old-pc.html" target="_blank">Things to do Before Throwing Away your PC</a></li>
</ul>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=5198";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=5198" title="Permanent Link to 让你的笔记本运行起来更有效率的10个小技巧[win32]" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=5198</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年08月27日  //  <a href="http://ihacklog.com/server/apache-rewrite-wordpress-move.html" title="mod_rewrite乾坤大挪移">mod_rewrite乾坤大挪移</a> (1)</li><li>2008年12月16日  //  <a href="http://ihacklog.com/php/wordpress/wpskills/wordpress-publish-weblog-via-windows-live-writer.html" title="wordpress通过windows live writer发布日志设置方法">wordpress通过windows live writer发布日志设置方法</a> (1)</li><li>2011年12月11日  //  <a href="http://ihacklog.com/memory/hacklog/fuck-your-mama-xmedia.html" title="抓抓手机伴侣(XMedia) v4.62，你妹，还我环境变量">抓抓手机伴侣(XMedia) v4.62，你妹，还我环境变量</a> (3)</li><li>2008年12月22日  //  <a href="http://ihacklog.com/server/nginx%e7%9a%84rewrite%e8%ae%be%e7%bd%ae%e5%8f%8a%e7%a4%ba%e4%be%8b.html" title="Nginx的Rewrite设置及示例">Nginx的Rewrite设置及示例</a> (0)</li><li>2008年12月31日  //  <a href="http://ihacklog.com/php/%e3%80%90%e8%bd%ac%e5%b8%96%e3%80%91%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e4%bd%a0%e6%b7%b1%e5%85%a5%e8%ae%a4%e8%af%86%e6%98%be%e5%8d%a1.html" title=" 【转帖】手把手教你深入认识显卡"> 【转帖】手把手教你深入认识显卡</a> (0)</li><li>2009年04月23日  //  <a href="http://ihacklog.com/memory/kongjianzhuanyichenggong.html" title="空间转移成功！">空间转移成功！</a> (7)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/10-ways-to-make-your-laptop-run-more-efficiently.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>opnet 14.5 + VS2008 + win7＝麻烦</title>
		<link>http://ihacklog.com/software/tips/opnet-14-5-vs2008-win7-trouble-and-the-solution.html</link>
		<comments>http://ihacklog.com/software/tips/opnet-14-5-vs2008-win7-trouble-and-the-solution.html#comments</comments>
		<pubDate>Wed, 16 Nov 2011 04:36:05 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>
		<category><![CDATA[opnet]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[win7]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4987</guid>
		<description><![CDATA[北邮那个ftp上已经只有两个文件了，下载了也没用的。 我是在　http://iask.sina.com.cn/u/1819539183/ish?folderid=147344　下载的，共18个分卷压缩包，不得不说，电信的网速确实还不错，晚上下载的，基本上2－3MBps左右。没一会就下载完成。 安装之前先切断网络。（拔掉网线？禁用连接？客官请随意 ） 热身运动：环境变量设置 我的vs2008是安装在D:\software\Microsoft Visual Studio 9.0，我只装了vc. Environ...]]></description>
			<content:encoded><![CDATA[<p>北邮那个ftp上已经只有两个文件了，下载了也没用的。<br />
我是在　http://iask.sina.com.cn/u/1819539183/ish?folderid=147344　下载的，共18个分卷压缩包，不得不说，电信的网速确实还不错，晚上下载的，基本上2－3MBps左右。没一会就下载完成。<br />
安装之前先切断网络。（拔掉网线？禁用连接？客官请随意 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  ）</p>
<h3>热身运动：环境变量设置</h3>
<p>我的vs2008是安装在<strong>D:\software\Microsoft Visual Studio 9.0</strong>，我只装了vc.<br />
Environment Settings for 32-bit Windows platforms are as below:</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000099;">DevEnvDir</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">D:\software\Microsoft Visual Studio 9.0\Common7\IDE</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\Common7\IDE<br />
<span style="color: #000099;">Framework35Version</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">v3.5</span><br />
<br />
<span style="color: #000099;">FrameworkDir</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">C:\WINDOWS\Microsoft.NET\Framework</span><br />
<br />
<span style="color: #000099;">FrameworkVersion</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">v2.0.50727</span><br />
<br />
<span style="color: #000099;">INCLUDE</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\ATLMFC\INCLUDE<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\INCLUDE<span style="color: #666666; font-style: italic;">;</span><br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include<span style="color: #666666; font-style: italic;">;</span><br />
<br />
<span style="color: #000099;">LIB</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\ATLMFC\LIB<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\LIB<span style="color: #666666; font-style: italic;">;</span><br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib<span style="color: #666666; font-style: italic;">;</span><br />
<br />
<span style="color: #000099;">LIBPATH</span><span style="color: #000066; font-weight:bold;">=</span><br />
C:\WINDOWS\Microsoft.NET\Framework\v3.5<span style="color: #666666; font-style: italic;">;</span><br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\ATLMFC\LIB<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\LIB<span style="color: #666666; font-style: italic;">;</span><br />
<br />
<span style="color: #000099;">PATH</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\Common7\IDE<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\BIN<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\Common7\Tools<span style="color: #666666; font-style: italic;">;</span><br />
C:\WINDOWS\Microsoft.NET\Framework\v3.5<span style="color: #666666; font-style: italic;">;</span><br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727<span style="color: #666666; font-style: italic;">;</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC\VCPackages<span style="color: #666666; font-style: italic;">;</span><br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin<span style="color: #666666; font-style: italic;">;</span><br />
<br />
<br />
<br />
<span style="color: #000099;">VCINSTALLDIR</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\VC<br />
<br />
<span style="color: #000099;">VS90COMNTOOLS</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span>\Common7\Tools\<br />
<br />
<span style="color: #000099;">VSINSTALLDIR</span><span style="color: #000066; font-weight:bold;">=</span><br />
D:\software\Microsoft Visual Studio <span style="">9.0</span><br />
<br />
<span style="color: #000099;">WindowsSdkDir</span><span style="color: #000066; font-weight:bold;">=</span><br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\</div></td></tr></tbody></table></div>
<h3>软件安装</h3>
<p>Models_145A_PL1目录下面的是model安装文件，进入下面的windows目录，执行models_14.5.A_PL1_27-Feb-2008.exe<br />
再进入modeler_docs_28-Jan-2008_win\Windows，执行modeler_docs_145A_7015_28Jan2008.exe安装文档，最后安装modeler_145A_PL1_7116_win\Windows\modeler_145A_7116.exe ,安装license server时注意选择standalone模式。<br />
再从OPNET.Modeler.14.5.License.Maker-FFS.rar解压出来OPNET.Modeler.14.5.License.Maker-FFS.exe并放到opnet安装目录\14.5.A\sys\pc_intel_win32\bin目录下面，打开OPNET Modeler 14.5，然后执行OPNET.Modeler.14.5.License.Maker-FFS.exe<br />
关闭OPNET Modeler 14.5再打开，然后点击菜单里的license manager,可以看到生成了1000个license.此时就可以正常使用OPNET Modeler了。<br />
貌似这样就完了，其实没完。 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  </p>
<h3>测试安装成功与否</h3>
<p>新建一project,至于项目要加些什么东西，自己搞定啊，用过opnet的应该都能很容易搞定这个的，不多说了。<br />
点击run，simulation kernel选择optimized,时间选择短一点，0.2吧，测试一下而已。<br />
好了，错误信息弹出来了，说无法找到msvcr90.dll，op_runsim_opt.exe无法执行。于是求助于神一样的google.<br />
已经确认无效的解决方案：<br />
<del datetime="2011-11-16T08:51:19+00:00">1,从D:\software\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT复制msvcr90.dll等到<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin</strong>目录下面或C:\WINDOWS\system32目录下面<br />
2,复制<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin\manifest_NET2008</strong>目录下面文件到<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin\</strong>目录下面</del></p>
<p>最后，在Joey的空间找到了<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fhi.baidu.com%2Fiamjoey%2Fblog%2Fitem%2Fbe610125af5c2f154d088d49.html%230" target="_blank">答案</a>。<br />
先复制<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin\manifest_NET2008</strong>目录下面文件到<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin\</strong>目录下面，再到<strong>opnet安装目录\14.5.A\sys\pc_intel_win32\bin\</strong>目录下面执行如下四条命令：</p>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Mt.exe <span style="color: #66cc66;">-</span>manifest op_runsim.exe.manifest <span style="color: #66cc66;">-</span>outputresource<span style="color: #FF1010; font-weight: bold;">:op_runsim.exe;1</span><br />
Mt.exe <span style="color: #66cc66;">-</span>manifest op_runsim_opt.exe.manifest <span style="color: #66cc66;">-</span>outputresource<span style="color: #FF1010; font-weight: bold;">:op_runsim_opt.exe;1</span><br />
Mt.exe <span style="color: #66cc66;">-</span>manifest op_runsim_mtdev.exe.manifest <span style="color: #66cc66;">-</span>outputresource<span style="color: #FF1010; font-weight: bold;">:op_runsim_mtdev.exe;1</span><br />
Mt.exe <span style="color: #66cc66;">-</span>manifest op_runsim_dev.exe.manifest <span style="color: #66cc66;">-</span>outputresource<span style="color: #FF1010; font-weight: bold;">:op_runsim_dev.exe;1</span></div></td></tr></tbody></table></div>
<p>再仿真试一下，ok，这次成功了。查看结果：<br />
<a href="http://static.ihacklog.com/wp-files/2011/11/opnet_result_success.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/11/opnet_result_success-550x396.png" alt="" title="opnet_result_success" width="550" height="396" class="alignnone size-medium wp-image-4988" /> </a></p>
<hr />
C 运行时错误 R6034</p>
<p>http://msdn.microsoft.com/zh-cn/library/ms235560(v=VS.90).aspx</p>
<p>如何：将清单嵌入到 C/C++ 应用程序 </p>
<p>http://msdn.microsoft.com/zh-cn/library/ms235591(v=VS.90).aspx</p>
<p>Mt.exe </p>
<p>http://msdn.microsoft.com/en-us/library/aa375649.aspx</p>
<p>这些就是解决问题的方法了~</p>
<hr />
环境变量设置win32/win64</p>
<blockquote><p>FAQ ID:         2099</p>
<p>Question:         What are the proper system environment settings for Microsoft Visual Studio 2008 compiler to work with release 14.5 or later [for 32-bit and 64-bit Windows]?<br />
Answer:         This FAQ is provided as a courtesy for OPNET users to help with the initial configuration of Microsoft Visual C++; OPNET Technical Support does not officially support system administration for non-OPNET products. The following variables need to be specified for proper operation of MSVC++ with OPNET. (Depending on how MSVC was installed, these variables may have already been set by the MSVC installation process).</p>
<p>As of 14.5 PL0,OPNET supports Microsoft Visual Studio 2008.</p>
<p>Notelease refer to FAQ 1685 for MSVS 2005, FAQ 1219 for .NET 2003 and FAQ 783 for .NET 2002 settings.</p>
<p>&#8212;<br />
Note that you must ensure your system environment is set up correctly. Here is the list of environment settings that should be added or set in the System Variables on your computer.<br />
(Note: If the variable name already exists, make sure that the value associated for that variable exists. If not, you must add the below value to the variable. Consult your System Administrator or Microsoft technical support for assistance. This FAQ is provided as a courtesy only.)</p>
<p>NOTE: The following settings assume that Visual Studio 2008 has been installed using the default installation directory settings and that your Windows directory is C:\Windows. If these are not the settings you have, then you must adjust the following settings accordingly.</p>
<p>Environment Settings for 32-bit Windows platforms are as below:</p>
<p>DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE</p>
<p>Framework35Version=v3.5</p>
<p>FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework</p>
<p>FrameworkVersion=v2.0.50727</p>
<p>INCLUDE=<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;</p>
<p>LIB=<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;</p>
<p>LIBPATH=<br />
C:\WINDOWS\Microsoft.NET\Framework\v3.5;<br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;</p>
<p>PATH=<br />
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;<br />
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;<br />
C:\WINDOWS\Microsoft.NET\Framework\v3.5;<br />
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;</p>
<p>VCINSTALLDIR=<br />
C:\Program Files\Microsoft Visual Studio 9.0\VC</p>
<p>VS90COMNTOOLS=<br />
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\</p>
<p>VSINSTALLDIR=<br />
C:\Program Files\Microsoft Visual Studio 9.0</p>
<p>WindowsSdkDir=<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\</p>
<p>Environment Settings for 64-bit Windows platforms are as below:</p>
<p>Framework35Version=v3.5</p>
<p>FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64</p>
<p>FrameworkVersion=v2.0.50727</p>
<p>INCLUDE=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;</p>
<p>LIB=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\x64;</p>
<p>LIBPATH=<br />
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;<br />
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;</p>
<p>Path=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64;<br />
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;<br />
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\x64;<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin</p>
<p>VCINSTALLDIR=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC</p>
<p>VS90COMNTOOLS=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\</p>
<p>VSINSTALLDIR=<br />
C:\Program Files (x86)\Microsoft Visual Studio 9.0</p>
<p>WindowsSdkDir=<br />
C:\Program Files\Microsoft SDKs\Windows\v6.0A\</p>
<p>To ensure that the MSVS 2008 is installed correctly, open a Command Prompt and type “cl” to invoke the compiler. Then type “link” to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation.</p>
<p>After this, you can start OPNET Modeler and run simulations as usual.
</p></blockquote>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4987";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4987" title="Permanent Link to opnet 14.5 + VS2008 + win7＝麻烦" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4987</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年08月29日  //  <a href="http://ihacklog.com/software/cool_software_share/setup-win7-custom-file-extension-icons.html" title="Win7文件类型图标自定义">Win7文件类型图标自定义</a> (3)</li><li>2011年07月14日  //  <a href="http://ihacklog.com/software/tips/things-to-do-after-win7-installation.html" title="win7安装完后要做的16件事">win7安装完后要做的16件事</a> (24)</li><li>2011年07月14日  //  <a href="http://ihacklog.com/software/tips/get-quicklunch-bar-back-for-windows-7.html" title="找回WIN7中消失的快速启动栏">找回WIN7中消失的快速启动栏</a> (2)</li><li>2011年07月12日  //  <a href="http://ihacklog.com/server/iis/win7-iis-7-5-setup.html" title="win7 IIS 7.5 安装配置">win7 IIS 7.5 安装配置</a> (3)</li><li>2011年05月7日  //  <a href="http://ihacklog.com/linux/archlinux/install-win7-and-archlinux-part-2.html" title="win7/archlinux双系统安装手记（二）">win7/archlinux双系统安装手记（二）</a> (0)</li><li>2011年05月4日  //  <a href="http://ihacklog.com/linux/archlinux/install-win7-and-archlinux-part-1.html" title="win7/archlinux双系统安装手记（一）">win7/archlinux双系统安装手记（一）</a> (7)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/opnet-14-5-vs2008-win7-trouble-and-the-solution.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>what is my IP</title>
		<link>http://ihacklog.com/software/tips/what-is-my-ip.html</link>
		<comments>http://ihacklog.com/software/tips/what-is-my-ip.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 05:31:40 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4981</guid>
		<description><![CDATA[如果你问google: what is my IP 它会告诉你的。 经测试，中文版的google不行。 喜欢这篇文章吗?请订阅本站 RSS feed 或 作者：荒野无灯 出处：Hacklog【荒野无灯weblog】 声明: 本站遵循 署名-非商业性使用-相同方式共享 2.5 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】 本文链接: http://ihacklog.com/?p=4981 相关日志2010年06月8日 // windows下的功能强大的netsh命令 (0)2010年05...]]></description>
			<content:encoded><![CDATA[<p>如果你问google:<br />
<a href="https://www.google.com/#hl=en&#038;sugexp=kjrmc&#038;cp=11&#038;gs_id=16&#038;xhr=t&#038;q=what+is+my+IP&#038;tok=j_QF8x8bzBz1K--LJ_T-7A&#038;pq=what%2Bis%2Bmy%2Bip&#038;pf=p&#038;sclient=psy-ab&#038;newwindow=1&#038;biw=1366&#038;bih=655&#038;source=hp&#038;pbx=1&#038;oq=what+is+my+IP&#038;aq=0&#038;aqi=g2g-c1g1&#038;aql=f&#038;gs_sm=&#038;gs_upl=&#038;bav=on.2,or.r_gc.r_pw.,cf.osb&#038;fp=638562478932eb61" target="_blank">what is my IP</a><br />
它会告诉你的。<br />
<a href="http://static.ihacklog.com/wp-files/2011/11/what_is_my_IP.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/11/what_is_my_IP-550x317.png" alt="" title="what_is_my_IP" width="550" height="317" class="alignnone size-medium wp-image-4982" /> </a></p>
<p>经测试，中文版的google不行。</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4981";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4981" title="Permanent Link to what is my IP" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4981</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2010年06月8日  //  <a href="http://ihacklog.com/net/powerful-netsh.html" title="windows下的功能强大的netsh命令">windows下的功能强大的netsh命令</a> (0)</li><li>2010年05月30日  //  <a href="http://ihacklog.com/software/tips/use-https-google-in-firefox.html" title="让firefox地址栏搜索默认使用https的google">让firefox地址栏搜索默认使用https的google</a> (2)</li><li>2010年03月26日  //  <a href="http://ihacklog.com/software/tips/google-apps-standard.html" title="Google 企业应用套件试玩">Google 企业应用套件试玩</a> (7)</li><li>2010年03月23日  //  <a href="http://ihacklog.com/memory/hacklog/google-hk.html" title="从今天起，我用google hk了">从今天起，我用google hk了</a> (19)</li><li>2009年11月15日  //  <a href="http://ihacklog.com/software/tips/hello-google.html" title="Hello Google!">Hello Google!</a> (8)</li><li>2009年06月17日  //  <a href="http://ihacklog.com/software/cool_software_share/pichuliquanzidongpeizhiipdizhiwangguandns.html" title="批处理全自动配置IP地址,网关,dns">批处理全自动配置IP地址,网关,dns</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/what-is-my-ip.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>玩转Android之无线连网和远程控制</title>
		<link>http://ihacklog.com/software/tips/android-wifi-connection-and-remote-control-setup.html</link>
		<comments>http://ihacklog.com/software/tips/android-wifi-connection-and-remote-control-setup.html#comments</comments>
		<pubDate>Tue, 18 Oct 2011 06:03:45 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4949</guid>
		<description><![CDATA[在android上的term个人认为最好用的当属Android-Terminal-Emulator了。 不过触屏的爪机打起英文来真是蛋疼，还是通过电脑来操作比较爽，因此，就有了在android上安装sshd的想法了，然后通过无线与笔记本连接起来，再登录ssh，爽YY啊。 虽说用adb shell也可弹出一个shell来的，但那个得装个android sdk &#8230; 然后是上网啦，移动的流量刷刷d,心痛啊。通过笔记本的无线网卡上wifi,让网络资源得到充分利用。 由于有了wifi和ssh，sftp,...]]></description>
			<content:encoded><![CDATA[<p>在android上的term个人认为最好用的当属<a href="http://ihacklog.com/l.php?url=https%3A%2F%2Fgithub.com%2Fjackpal%2FAndroid-Terminal-Emulator" target="_blank">Android-Terminal-Emulator</a>了。<br />
不过触屏的爪机打起英文来真是蛋疼，还是通过电脑来操作比较爽，因此，就有了在android上安装sshd的想法了，然后通过无线与笔记本连接起来，再登录ssh，爽YY啊。<br />
虽说用adb shell也可弹出一个shell来的，但那个得装个android sdk &#8230;<br />
然后是上网啦，移动的流量刷刷d,心痛啊。通过笔记本的无线网卡上wifi,让网络资源得到充分利用。<br />
由于有了wifi和ssh，sftp,传文件也不用插usb了，直接通过无线传即可。</p>
<p>这里我把方法记录一下，有喜欢折腾的童鞋可参考一二。</p>
<p>以下操作，root权限是必须的。</p>
<p>无线网络连接是从笔记本电脑连接手机的ssh和sftp的必要条件，因此先弄好无线。</p>
<h3>0&#215;01.搞定无线连接</h3>
<p>a.ad-hoc方案<br />
在笔记本上建立ad-hoc连接，等待爪机去连。<br />
我刷的系统是基于CyanogenMod  7 修改的，默认已经支持Ad-hoc网络了（2.x默认是不能识别ad-hoc网络的），因此，免去了一大麻烦。<br />
如不支持，可去网上下wpa_supplicant的patch过后的5.0或6.0版。怎么查看手机wpa_supplicant的版本？</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wpa_supplicant <span style="color: #660033;">-v</span></div></td></tr></tbody></table></div>
<p>ad-hoc方案是用于xp系统和linux下不支持master模式的无线网卡这两种情况的。如果你只用win7的话，大可不必担心ad-hoc这个问题了。我的intel无线网卡在Linux下不支持master(AP)模式，因此只能用ad-hoc来带手机了。<br />
因此现在的主要任务是如何在笔记本上建立对等网的连接。</p>
<p>windows下面对等网的建立比较简单，可用netsh或点击鼠标搞定。<br />
我目前已经没有保留xp了，简单地说下win7下组建对等网的方法：<br />
进入“网络和共享中心”<br />
选择“设置新的连接或网络”<br />
在向导中选择“设置无线临时（计算机到计算机）网络”，点击 下一步<br />
输入“网络名”以及“安全密钥”（这里也可不设置密钥，这样手机可不用输入密钥直接连接上），并点击“下一步”<br />
单击“启用Internet连接共享”按钮，以开启共享网络<br />
xp下面与此类似。</p>
<p>linux下面：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> wlan0 up<br />
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> wlan0 192.168.137.1 netmask 255.255.255.0<br />
iwconfig wlan0 mode ad-hoc<br />
iwconfig wlan0 channel auto<br />
iwconfig wlan0 essid hyadhoc<br />
iwconfig wlan0 key open</div></td></tr></tbody></table></div>
<p>为什么要设置137这个网段呢？这个是为了偷懒的。因为在windows 7下面建立软件AP时系统默认设置的ip就是这个段的，而且，有时候，这个ip不可以修改，并且，假如你不想在windows下面装dhcp的话，那么爪机就得设置为使用静态ip了，设置为这个段方便在各个系统里面使用。</p>
<p>好了，现在Linux下面已经建立了一个等待连接的ad-hoc连接，开放式，无需密码。<br />
然后是dhcp配置了，经测试，cm 7 （我现在用的android版本为 2.3.7)确实可以发现ad-hoc网络，不过使用静态ip去连ad-hoc却是不行的。<br />
表现的情况为：不断重复“连接”/“断开”，根本没法用。。。<br />
于是我配置了dncp,这下一连接上就ok了，稳定了。</p>
<p>我用的archlinux，</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> <span style="color: #660033;">--needed</span> dhcp</div></td></tr></tbody></table></div>
<p>然后稍微配置下：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dhcpd.conf<br />
subnet 192.168.137.0 netmask 255.255.255.0 <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; range 192.168.137.26 192.168.137.30;<br />
&nbsp; option domain-name-servers 192.168.137.1,8.8.8.8;<br />
&nbsp; option domain-name <span style="color: #ff0000;">&quot;internal.huangye.com&quot;</span>;<br />
&nbsp; option routers 192.168.137.1;<br />
&nbsp; option broadcast-address 192.168.137.255;<br />
&nbsp; default-lease-time <span style="color: #000000;">600</span>;<br />
&nbsp; max-lease-time <span style="color: #000000;">7200</span>;<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>一定要配置网关和dns,不然android爪机没法上网。<br />
192.168.137.1,8.8.8.8 是两个dns,前面那个是本机无线网卡的ip,为什么用本机？在天朝，你懂的。当然，如果你不想搞dns的话，就填写isp的dns ip吧。<br />
其实呢，这里的ip段设置为  192.168.137.26/30就ok了，这样刚好有两个ip地址，别人插不进来，呵呵。<br />
同样，用24位的网络号是偷懒，呵呵。</p>
<p>打开爪机的无线网络设置，应该可以看到ssid为hyadhoc的连接了。连接成功后可以看到爪机获取到的ip地址。<br />
对于xp的话，可以使用静态ip试一下(我没有测试，估计不可行),如不行的话，放个小dhcp服务器就Ok了。不用整那么大的块头的东西，用tftpd那个小工具里的dhcp功能就ok了。以前我ghost网克时用它来做tftp和dhcp服务器。<br />
还找到一个用于windows的小巧的dncp服务器daemon: <a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fwww.dhcpserver.de%2Fdhcpsrv.htm" target="_blank">dhcp server</a><br />
android 通过windows　dhcp server获取ip 图：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/win-dhcp.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/win-dhcp-550x383.png" alt="" title="win-dhcp" width="550" height="383" class="alignnone size-medium wp-image-4959" /> </a></p>
<p>b.软AP方案<br />
此方案适合 windows 7 且网卡支持“承载网络” ||  Linux 且网卡支持Master模式的 情况。<br />
win7架软ap：<br />
丢个脚本吧：</p>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">@</span>echo <span style="color: #0080FF; font-weight: bold;">off</span><br />
color f2<br />
<span style="color: #FF1010; font-weight: bold;">::netsh wlan show drivers</span><br />
<span style="color: #FF1010; font-weight: bold;">::netsh wlan set hostednetwork mode=allow</span><br />
<span style="color: #FF1010; font-weight: bold;">::netsh wlan set hostednetwork ssid=huangye key=密钥</span><br />
<br />
net start ALG<br />
net start RasAuto<br />
net start MpsSvc<br />
netsh wlan start hostednetwork<br />
<span style="color: #0000FF;">pause</span></div></td></tr></tbody></table></div>
<p>注释部分的表示只需要执行一次的命令，其它的每次系统重启后都要执行才能开启承载网络。<br />
如有线网卡是有互联网访问权限的话，将此网络共享给无线软件ap的网络连接即可。</p>
<p>对于linux下软ap的设置，前面我已经写过一篇文章了：《<a href="http://ihacklog.com/?p=4923">Linux下用hostapd架无线AP</a>》<br />
这里不再述。</p>
<p>为了验证一下连接是否正常，ping一下：<br />
打开 terminal emulator,然后 ping -c4 192.168.137.1 </p>
<p>0&#215;02.让爪机共享笔记本的网络<br />
现在虽然连接上了，爪机却是不可以上网的。<br />
对于winxp或win7,其实上面已经说到了。<br />
可以在网卡属性里面把有线网卡的网络共享给你设置了对等网络的那个连接，这样就ok了。<br />
对于linux,可用iptables搞定。<br />
你如果偷懒，可用一句搞定：</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-o</span> eth0 <span style="color: #660033;">-j</span> MASQUERADE</div></td></tr></tbody></table></div>
<p>不过我不太喜欢用MASQUERADE。<br />
其中a.b.c.d是本机有线网卡的ip,此有线网卡是连接了互联网的。wlan0为ad-hoc网卡。</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
iptables <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-t</span> filter <span style="color: #660033;">-P</span> FORWARD DROP<br />
<span style="color: #666666; font-style: italic;">#忽略RESET报文</span><br />
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--tcp-flags</span> RST RST <span style="color: #660033;">-j</span> DROP<br />
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> eth0 <span style="color: #660033;">-j</span> ACCEPT<br />
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> wlan0 <span style="color: #660033;">-j</span> ACCEPT<br />
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> lo <span style="color: #660033;">-j</span> ACCEPT<br />
iptables <span style="color: #660033;">-A</span> INPUT <span style="color: #660033;">-i</span> wlan0 <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> ESTABLISHED,RELATED <span style="color: #660033;">-j</span> ACCEPT<br />
<span style="color: #666666; font-style: italic;">#客户端MAC绑定</span><br />
iptables <span style="color: #660033;">-A</span> FORWARD <span style="color: #660033;">-m</span> mac <span style="color: #660033;">--mac-source</span> 这里是你的爪机无线网卡的mac地址 <span style="color: #660033;">-j</span> ACCEPT<br />
iptables <span style="color: #660033;">-A</span> FORWARD <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> ESTABLISHED,RELATED <span style="color: #660033;">-j</span> ACCEPT<br />
<span style="color: #666666; font-style: italic;">#iptables nat 透明代xx理</span><br />
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-o</span> eth0 <span style="color: #660033;">-s</span> 192.168.137.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> <span style="color: #660033;">-j</span> SNAT <span style="color: #660033;">--to</span> a.b.c.d<br />
<span style="color: #666666; font-style: italic;">#开启内核转发功能</span><br />
<span style="color: #666666; font-style: italic;">#echo 1 &gt;/proc/sys/net/ipv4/ip_forward</span></div></td></tr></tbody></table></div>
<p>注意若你的机子没有开启转发功能的话，别忘记开启一下。</p>
<p>好了，现在流量无限，想下啥，就下啥。 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' />  </p>
<h3>
<h3>0&#215;02.ssh 和sftp</h3>
<p>这里在android上架设ssh服务端我用的是SSHDroid 这个免费app,可到market下载安装。sshd可随时停止和启动，亦可开机自启动（我可不会这么做，我电池才1350 mAh）。软件使用很简单，基本无需配置，安装后记得设置一个密码就ok了。<br />
装上这个以后，可以从笔记本通过ssh和sftp访问爪机啦。<br />
要修改文件什么的，或者传东西到sd卡里面，现在都不用插USB了，直接无线搞定。</p>
<p>ssh账号名为root,ip即是手机无线网卡的当前ip.密码即是刚才设定的密码。sftp也是一样。</p>
<p>登录后软件提示：<br />
Use &#8216;root&#8217; on rooted devices otherwise any username works ，说如果没有root的话用户名随便填写。<br />
登录了：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/rooted-htc-g8-1.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/rooted-htc-g8-1-550x345.png" alt="" title="rooted-htc-g8-1" width="550" height="345" class="alignnone size-medium wp-image-4950" /> </a></p>
<p>查看所有接口：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/netcfg-htc-g8-2.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/netcfg-htc-g8-2-550x275.png" alt="" title="netcfg-htc-g8-2" width="550" height="275" class="alignnone size-medium wp-image-4951" /> </a></p>
<p>查看无线网络接口：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/iwconfig-htc-g8.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/iwconfig-htc-g8-498x400.png" alt="" title="iwconfig-htc-g8" width="498" height="400" class="alignnone size-medium wp-image-4952" /> </a></p>
<p>通过sftp传文件：<br />
<a href="http://static.ihacklog.com/wp-files/2011/10/sftp-htc-g8.png" class="tinybox2"  onclick="TINY.box.show({image:this.href,boxid:'frameless',animate:true,fixed:false});return false;"  title="Click to enlarge（点击查看大图）" ><img src="http://static.ihacklog.com/wp-files/2011/10/sftp-htc-g8-550x293.png" alt="" title="sftp-htc-g8" width="550" height="293" class="alignnone size-medium wp-image-4953" /> </a><br />
由于sftp是加密链接，因此传输速率可能不会非常理想，我目前测试过，基本上可以稳定在160kB/s 以上。</p>
<p>另外，android中还有另外一个sshd软件（收费的）: Quicksshd<br />
cm wiki面也介绍了一种方法：http://wiki.cyanogenmod.com/wiki/Howto:_Connect_to_Device_with_SSH</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4949";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4949" title="Permanent Link to 玩转Android之无线连网和远程控制" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4949</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2011年10月8日  //  <a href="http://ihacklog.com/linux/archlinux/use-hostapd-to-setup-wireless-access-point-under-linux.html" title="Linux下用hostapd架无线AP">Linux下用hostapd架无线AP</a> (3)</li><li>2009年08月14日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/ubuntuqiyong3dxiaoguohouchuxiancuowu.html" title="UBUNTU启用3d效果后出现错误">UBUNTU启用3d效果后出现错误</a> (1)</li><li>2008年12月25日  //  <a href="http://ihacklog.com/server/%e9%98%b2%e6%ad%a2%e7%9b%97%e9%93%be%e5%9b%be%e7%89%87%ef%bc%88%e8%af%91%ef%bc%89.html" title="防止盗链图片（译）">防止盗链图片（译）</a> (0)</li><li>2011年12月13日  //  <a href="http://ihacklog.com/php/wordpress/plugins/make-codecolorer-be-compatible-with-wp-3-3.html" title="修正codecolorer与WP 3.3兼容性">修正codecolorer与WP 3.3兼容性</a> (5)</li><li>2011年06月12日  //  <a href="http://ihacklog.com/xml_html_css_js_ajax/most-used-css-tricks.html" title="Most used CSS tricks">Most used CSS tricks</a> (0)</li><li>2010年11月5日  //  <a href="http://ihacklog.com/software/tips/install-msn-on-win2003.html" title="win2003安装msn">win2003安装msn</a> (6)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/android-wifi-connection-and-remote-control-setup.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTC G8(wildfire)刷机记</title>
		<link>http://ihacklog.com/software/tips/htc-g8wildfire-root.html</link>
		<comments>http://ihacklog.com/software/tips/htc-g8wildfire-root.html#comments</comments>
		<pubDate>Mon, 17 Oct 2011 12:48:41 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>
		<category><![CDATA[HTC G8]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[s-off]]></category>
		<category><![CDATA[wildfire]]></category>
		<category><![CDATA[刷机]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4947</guid>
		<description><![CDATA[话说现在后悔当初买了这玩意了。 可玩性不大，连root和刷机都这么麻烦。。。 HBOOT-1.01.0002 S-ON 要刷机，先得把hboot降级到1.01.0001　，后面还有一些步骤。。。 准备工具： 降级需要用到的工具：buzzdowngrade.zip http://ifile.it/41qve0f ROM文件： buzz_2.3.7_1.6-Beta1_GoAPK.zip ROOT工具： SuperOneClickv1.7-ShortFuse android 驱动： adb_driver_ht...]]></description>
			<content:encoded><![CDATA[<p>话说现在后悔当初买了<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fforum.xda-developers.com%2Fwiki%2FHTC_Wildfire" target="_blank">这玩意</a>了。<br />
可玩性不大，连root和刷机都这么麻烦。。。<br />
HBOOT-1.01.0002<br />
S-ON</p>
<hr />
<p>要刷机，先得把hboot降级到1.01.0001　，后面还有一些步骤。。。<br />
准备工具：<br />
降级需要用到的工具：buzzdowngrade.zip</p>
<p>http://ifile.it/41qve0f</p>
<p>ROM文件：<br />
buzz_2.3.7_1.6-Beta1_GoAPK.zip</p>
<p>ROOT工具：<br />
SuperOneClickv1.7-ShortFuse</p>
<p>android 驱动：<br />
adb_driver_htc.zip</p>
<p>刷recovery的工具：<br />
reflash_package.exe</p>
<p>revolutionary-0.4pre4.zip</p>
<hr />
<h3>首先，搞定s-on</h3>
<p>打开Buzzdowngrade文件夹，先安装里面的HTCDriver3.0.0.007.exe，这时就是在安装HTC的驱动（也可以自己下载个最新版的HTC SYNC。当然，我们只用到里面的HTC DRIVER,真正的HTC SYNC软件一定要卸载掉，只保留HTC DRIVERS部分）。<br />
驱动装好后把TF卡插在手机里，手机开机后插上电脑，找到新硬件，自动装好。</p>
<p>因为在破解的时候手机要重起到BOOTLOADER界面下的HBOOT模式和FASTBOOT模式下，在这2种模式下也要安装驱动。<br />
在3种模式下的驱动都要装好，1、正常开机状态下（USB调试模式一定要勾选）2、HBOOT模式下，正常关机后按“音量-”和电源开机键开机进入的界面，装好驱动（很多人反映说在HBOOT下的驱动装不上，其实只要在HBOOT模式下手机插上电脑，电脑会发现新硬件，这时用手动安装，浏览驱动指向附件里的Android USB Driver文件夹，就一定能装上）3、在HBOOT模式下的驱动装好后直接按一下电源键，手机会进入到FASTBOOT模式下，这时也要安装驱动（这部分驱动和在WINDOWS下的驱动是一样的，电脑会自动找到并安装好）。  </p>
<p>上面的驱动装好后，再把手机正常开机，插上电脑，选择磁盘模式，因为等下要做金卡，电脑会认你的储存卡。执行附件中的step1.bat,<br />
注意usb调试一定要开启。此脚本会执行一些命令，如果没有看到错误信息就OK,最后弹自动执行GoldCardTool.exe让你制作金卡。（其实后来我发现，刷第3方rom根本不用金卡）。后来我发现，我这tf卡制作成金卡以后，手机就没办法识别了，一插上去提示卡已移除。。。<br />
这部分就省略了吧。基本就是　get CID,到http://psas.revskills.de/?q=goldcard获取golacard.img　之类的。<br />
做完金卡写入mmc patch后便把手机的连接模式改成<strong>仅充电</strong>模式，执行step2.bat .<br />
这个时候要注意，千万不能断开手机与电脑的数据线，而且，在执行step1.bat和step2.bat之间手机千万不能手动重起。期间手机会自动重起2-3次，时间大约再5-10分钟左右，这个过程其实是在向手机刷入官方RUU的一个WWE的ROM<br />
这个WWE的官方版本会把G8的HBOOT从1.01.0002降为1.01.0001<br />
等待step2.bat这个窗口完成，完成后手机自动重起进入FASTBOOT，你再看你的HBOOT后面是不是HBOOT-1.01.0001，虽然还是S-ON</p>
<p>拔电池，把电池仓里面手机的SN记下来,或者你可以开机后到系统信息那里看sn号。</p>
<hr />
<p>下面让它变成s-off:<br />
正常开机，连上电脑选仅充电模式，记得进设置里面把USB的调试模式勾选( Menu > Settings > Applications > Development)。<br />
打开http://revolutionary.io/　，下载revolutionary-0.4pre4.zip<br />
再在下面的选择框中选好你的机型、HBOOT版本（1.01.0001）<br />
填入SN，点Generate key，得到 beta key，复制并保存到txt文件中。</p>
<p>执行revolutionary.exe　，填入beta key　，<br />
这一步中，还会问你是否到网上自动下载一个高版本的recovery，选择yes.<br />
SUCCESS 后，手机也会自动重起到HBOOT下，现在再看看，已经S-OFF，HBOOT-6.01.1002　.</p>
<hr />
<h3>接下来获取ROOT权限</h3>
<p>我首先用的reflash_package.exe，并没有root成功。<br />
用SuperOneClickv1.9.1-ShortFuse也没有成功，到get os version 就不动了。<br />
后来用SuperOneClickv1.7-ShortFuse　，默认是psneuter，不过我用这个没有root成功，程序卡死，失去响应了，然后选择rageagainstthecage　，再点root,这次成功了。去应用程序里面看，那个邪恶的图标出现啦，sodiselei. <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' />  </p>
<hr />
<h3>刷刷刷</h3>
<p>正常启动，注意开启usb调试。<br />
把buzz_2.3.7_1.6-Beta1_GoAPK.zip复制到sd卡或tf卡根目录下面，退出磁盘。<br />
关机，取下电池再安放好。然后按下音量下键和开机键，进入hboot,选择recovery,再按电源键进入recovery,进入以后，按上下音量键选择，按光学轨迹球enter相应选项。<br />
先 “Wipe data/factory reset”<br />
再“Wipe cache partition”<br />
再进入 Install zip from SDcard<br />
选择 Choose zip from SDcard<br />
再选择buzz_2.3.7_1.6-Beta1_GoAPK.zip<br />
这个过程几分钟即可搞定。<br />
安装完了再选择Reboot system now重启。<br />
注：sd卡里面的文件现在已经可以删除掉了。</p>
<p>开机，漂亮的CyanogenMod版android出现啦。</p>
<hr />
<h3>测试</h3>
<p>打电话，语音和原版的几乎一样清晰，信号强度也不错，上移动cmnet,连wifi 都没有问题，蓝牙传输测试也ok,usb磁盘功能测试ok,短信功能，market正常，google同步正常，声音正常，摄像拍照正常。不过觉得原版的拍照软件更好用。<br />
目前发现的唯一问题是：gps无法使用。据说是radio版本太低，不过很多人都说刷radio有风险，如无信号问题最好不要刷。<br />
我下载了安智网的大星星制作的G8_Radio_13.55.55.24H_3.35.20.10.zip　，没刷成功，安装时installation aborted.<br />
大概意思是安装脚本过时还是怎么的。先不管了，用着。。。别搞得真刷成砖头了 <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  </p>
<hr />
<p>用的ROM文件：</p>
<p>http://bbs.anzhi.com/thread-4699422-1-1.html</p>
<p>主要参考：</p>
<p>http://bbs.anzhi.com/thread-3836155-1-1.html</p>
<p>http://forum.xda-developers.com/showthread.php?t=1145035</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4947";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4947" title="Permanent Link to HTC G8(wildfire)刷机记" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4947</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年11月9日  //  <a href="http://ihacklog.com/php/wordpress/wpskills/wordpress-commont-author-link-redirect.html" title="Wordpress评论链接重定向跳转（修正代码）">Wordpress评论链接重定向跳转（修正代码）</a> (60)</li><li>2010年11月11日  //  <a href="http://ihacklog.com/software/tips/windows-live-messenger-2009-v-14-0-8117-416-ad-remove.html" title="Windows Live Messenger 2009(版本 14.0.8117.416) 手动去广告方法">Windows Live Messenger 2009(版本 14.0.8117.416) 手动去广告方法</a> (4)</li><li>2009年05月24日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/ubuntufenquhewenjianxitongdexuanze.html" title="Ubuntu 分区和文件系统的选择">Ubuntu 分区和文件系统的选择</a> (0)</li><li>2011年10月18日  //  <a href="http://ihacklog.com/software/tips/android-wifi-connection-and-remote-control-setup.html" title="玩转Android之无线连网和远程控制">玩转Android之无线连网和远程控制</a> (1)</li><li>2008年02月22日  //  <a href="http://ihacklog.com/php/skills/%e5%9c%a8php%e4%b8%ad%e7%94%a8%e6%ad%a3%e5%88%99%e9%99%a4%e5%8e%bbhtml%e6%a0%87%e7%ad%be%e7%9a%84%e6%96%b9%e6%b3%95.html" title="在PHP中用正则除去html标签的方法">在PHP中用正则除去html标签的方法</a> (0)</li><li>2008年12月29日  //  <a href="http://ihacklog.com/memory/%e9%82%a3%e6%97%b6%e7%9a%84%e4%bb%96%e4%bb%ac.html" title="那时的他们 ">那时的他们 </a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/htc-g8wildfire-root.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ffmpeg 转换avi视频为flv</title>
		<link>http://ihacklog.com/software/tips/ffmpeg-convert-avi-video-to-flv.html</link>
		<comments>http://ihacklog.com/software/tips/ffmpeg-convert-avi-video-to-flv.html#comments</comments>
		<pubDate>Thu, 06 Oct 2011 13:20:33 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4914</guid>
		<description><![CDATA[下载地址：http://ffmpeg.org/download.html linux一般可直接从源install之。 1ffmpeg -i Steve_Jobs-Stanford_Commencement_Speech.avi -ab 128k -ar 22050 -b:v 1700k -r 15 -s 640x480 Steve_Jobs-Stanford_Commencement_Speech.flv 视频 以15 fps frame rate 帧频 -b:v 1700kbps bitrate 比特率...]]></description>
			<content:encoded><![CDATA[<p>下载地址：http://ffmpeg.org/download.html<br />
linux一般可直接从源install之。</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> Steve_Jobs-Stanford_Commencement_Speech.avi <span style="color: #660033;">-ab</span> 128k <span style="color: #660033;">-ar</span> <span style="color: #000000;">22050</span> -b:v 1700k <span style="color: #660033;">-r</span> <span style="color: #000000;">15</span> <span style="color: #660033;">-s</span> 640x480 Steve_Jobs-Stanford_Commencement_Speech.flv</div></td></tr></tbody></table></div>
<p>视频<br />
以15 fps frame rate 帧频<br />
-b:v 1700kbps bitrate 比特率,调整这个可以改变视频清晰度<br />
-s 帧大小,640&#215;480是　vga<br />
音频<br />
-ar是audio sampling frequency，音频采样率，　22050　Hz<br />
-ab audio bitrate音频比特率</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4914";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4914" title="Permanent Link to ffmpeg 转换avi视频为flv" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4914</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2011年06月12日  //  <a href="http://ihacklog.com/xml_html_css_js_ajax/10-best-css-hacks.html" title="最常用的10条CSS hacks">最常用的10条CSS hacks</a> (5)</li><li>2011年10月17日  //  <a href="http://ihacklog.com/software/tips/htc-g8wildfire-root.html" title="HTC G8(wildfire)刷机记">HTC G8(wildfire)刷机记</a> (7)</li><li>2011年08月20日  //  <a href="http://ihacklog.com/php/habari/infinitescroll-for-habari.html" title="原创插件：infiniteScroll for Habari">原创插件：infiniteScroll for Habari</a> (0)</li><li>2011年12月6日  //  <a href="http://ihacklog.com/linux/archlinux/solution-to-opera-11-52-crash-problem-under-archlinux.html" title="opera 11.52 在archlinux 下crash问题解决办法">opera 11.52 在archlinux 下crash问题解决办法</a> (7)</li><li>2011年09月30日  //  <a href="http://ihacklog.com/software/development-tool/sublime-text-2-tips-and-tricks.html" title="Sublime Text 2 小技巧和小诀窍">Sublime Text 2 小技巧和小诀窍</a> (7)</li><li>2009年09月10日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/ubuntu-ruijie-connection.html" title="UBUNTU 下锐捷连网方法">UBUNTU 下锐捷连网方法</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/ffmpeg-convert-avi-video-to-flv.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>常用Bookmarklets分享</title>
		<link>http://ihacklog.com/software/tips/useful-bookmarklets.html</link>
		<comments>http://ihacklog.com/software/tips/useful-bookmarklets.html#comments</comments>
		<pubDate>Mon, 03 Oct 2011 18:49:39 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4895</guid>
		<description><![CDATA[划词翻译 尚译可以说是目前我用过的最好的翻译类bookmarklet了，强烈推荐！ 尚译 （把它拖动到书签栏或者右击添加为书签即可） 浏览其他页面时，点击书签栏中的“尚译”，即会在页面右上角显示“译”图片，并会显示加载状态； 单击击“译”图片，可以控制尚译暂停翻译； 双击“译”图片，可以关闭尚译； 按住“译”图片，拖到到页面任意区域； 在翻译面板上会显示面板显示的时间，可以点击暂停或关闭按钮控制； 沪江小D @依云推荐。这个也是划词搜索，不过仅限于划“词”，如果你划出词组或者句子的话，它不会理你的。个人觉...]]></description>
			<content:encoded><![CDATA[<h3>划词翻译</h3>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fcomsome.com%2Fsomeyi%2F" target="_blank">尚译</a>可以说是目前我用过的最好的翻译类bookmarklet了，强烈推荐！  <img src='http://ihacklog.com/wordpress/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /><br />
<a href="javascript:void((function(){if(window.Como&#038;&#038;window.Como.someyi){Como.someyi.open()}else{var a=document.createElement('script');a.setAttribute('type','text/javascript');var b=document.charset?document.charset:document.characterSet;var c=b.toLowerCase()=='gb2312'?'pack-gb2312.js':'pack-utf8.js';a.setAttribute('src','http://yi.comsome.com/'+c);document.getElementsByTagName('head').item(0).appendChild(a);Text.prototype.tagName='#text'}})())">尚译</a> （把它拖动到书签栏或者右击添加为书签即可）<br />
浏览其他页面时，点击书签栏中的“尚译”，即会在页面右上角显示“译”图片，并会显示加载状态；<br />
单击击“译”图片，可以控制尚译暂停翻译；<br />
双击“译”图片，可以关闭尚译；<br />
按住“译”图片，拖到到页面任意区域；<br />
在翻译面板上会显示面板显示的时间，可以点击暂停或关闭按钮控制；</p>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fdict.yeshj.com%2Fhelp%2Fcrossdict.aspx" target="_blank">沪江小D</a><br />
<a href="#comment-4811" target="_blank">@依云</a>推荐。这个也是划词搜索，不过仅限于划“词”，如果你划出词组或者句子的话，它不会理你的。个人觉得比麻花藤的那个云词典要简洁好用。<br />
<a href="javascript:void((function(){hjelm=document.createElement('script');hjelm.setAttribute('src','http://dict.yeshj.com/app/js/dict_ajax.js');document.body.appendChild(hjelm);})())" target="_blank">小D划词 </a>（把它拖动到书签栏或者右击添加为书签即可）</p>
<h3>词典类</h3>
<p> QQ云词典（ <a href="#comment-4786">@neverno</a> 推荐的），不过划词翻译功能不及尚译，比如你选择一块文字或者多选几个文字时，它就提示：“<strong>抱歉，没有找到结果。</strong>”。<br />
<a href="javascript:void((function(d){if(!!d){d.toggle();return;};var src='http://dict.qq.com/cloudgetjs';var e=document.createElement('script');e.setAttribute('src',src);document.getElementsByTagName('head')[0].appendChild(e);})(window.QQCloudDict))" target="_blank">QQ云词典</a></p>
<h3>输入法</h3>
<p>其实搜狐云输入法很早就推出了，不过它没有五笔版的，个人基本上不用拼音，因此，如果要云的话，我只能选麻花藤的抠抠云输入法了。<br />
<a href="javascript:(function(q){q?q.toggle():function(d,j){j=d.createElement('script');j.async=true;j.src='//ime.qq.com/fcgi-bin/getjs';j.setAttribute('ime-cfg','lt=2&#038;im=212');d=d.getElementsByTagName('head')[0];d.insertBefore(j,d.firstChild)}(document)})(window.QQWebIME)" target="_blank">QQ云五笔</a></p>
<h3>页面翻译</h3>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Ftranslate.google.com%2Ftranslate_buttons" target="_blank">google翻译</a><br />
<a href="javascript:var t=((window.getSelection&#038;&#038;window.getSelection())||(document.getSelection&#038;&#038;document.getSelection())||(document.selection&#038;&#038;document.selection.createRange&#038;&#038;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&#038;hl=en&#038;langpair=auto|zh-CN&#038;tbb=1&#038;ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&#038;hl=en&#038;langpair=auto|zh-CN&#038;tbb=1&#038;ie='+e;};" target="_blank">点此添加Chinese (Simplified)</a>（把它拖动到书签栏或者右击添加为书签即可）</p>
<h3>Cookies查看</h3>
<p><a href='javascript:alert("Cookies%20stored%20by%20this%20host%20or%20domain:\n\n"%20+%20document.cookie.replace(/;%20/g,"\n"));' target="_blank">view cookies</a>（把它拖动到书签栏或者右击添加为书签即可）</p>
<h3>Cookies删除</h3>
<p><a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fostermiller.org%2Fbookmarklets%2Fcookies.html" target="_blank">Stephen Ostermiller&#8217;s Cookies Bookmarklets</a>用于清除当前域的cookies,我给它增加了一个确认选择，以防止误点击造成不必要的后果。<br />
<a href='javascript:void((function(){if(confirm("Are you sure to delete the cookies?")){var a,b,c,e,f;f=0;a=document.cookie.split("; ");for(e=0;e<a.length&#038;&#038;a[e];e++){f++;for(b="."+location.host;b;b=b.replace(/^(?:%5C.|[^%5C.]+)/,"")){for(c=location.pathname;c;c=c.replace(/.$/,"")){document.cookie=(a[e]+"; domain="+b+"; path="+c+"; expires="+new Date((new Date()).getTime()-1e11).toGMTString());}}}alert("Expired "+f+" cookies");} })())' target="_blank">Clear Cookies</a>（把它拖动到书签栏或者右击添加为书签即可）</p>
<h3>代理访问</h3>
<p>这是我根据google翻译写的一个方便用nb.dai.li(就是7dai.li,fuck GxxFooW,我还是用点号分隔此名称吧，希望这网站一直能用)来浏览网站的bookmarklet.<br />
喜欢就点击<a href="javascript:var t=((window.getSelection&#038;&#038;window.getSelection())||(document.getSelection&#038;&#038;document.getSelection())||(document.selection&#038;&#038;document.selection.createRange&#038;&#038;document.selection.createRange().text));t = t.toString() !='' ? t : location.href; if(t.substring(0,4) != 'http' ){t = prompt('Can not get the URL,please put it here','http://');}if( t != null &#038;&#038; t !='' ){location.href='http://www.nbdaili.com/web.php?url='+t+'&#038;srvnum=1'};" target="_blank">nbdaili.it</a>把它添加到浏览器吧<br />
支持直接通过.代.理访问当前URL<br />
支持从网页选择URL后通过.代.理访问。</p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4895";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4895" title="Permanent Link to 常用Bookmarklets分享" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4895</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2009年04月25日  //  <a href="http://ihacklog.com/php/wordpress/theme/weigreen-islandzhutizengjiaxianshizifenleigongneng.html" title="为green-island主题增加显示子分类功能">为green-island主题增加显示子分类功能</a> (0)</li><li>2010年03月1日  //  <a href="http://ihacklog.com/php/wordpress/plugins/about-codecolorer.html" title="关于codecolorer这个插件">关于codecolorer这个插件</a> (0)</li><li>2010年05月15日  //  <a href="http://ihacklog.com/server/php-error-while-loading-shared-libraries-libfreetype-so-6.html" title="PHP编译出错：error while loading shared libraries: libfreetype.so.6">PHP编译出错：error while loading shared libraries: libfreetype.so.6</a> (3)</li><li>2011年05月28日  //  <a href="http://ihacklog.com/software/scripts/speed-up-your-firefox-under-linux.html" title="让你的firefox飞起来">让你的firefox飞起来</a> (0)</li><li>2011年05月29日  //  <a href="http://ihacklog.com/linux/archlinux/archlinux-wireless-network-setup.html" title="Archlinux 连无线网手记">Archlinux 连无线网手记</a> (1)</li><li>2008年12月19日  //  <a href="http://ihacklog.com/php/java%e5%85%a5%e9%97%a8%e6%b5%85%e8%b0%88dao%e6%a8%a1%e5%bc%8f.html" title="Java入门:浅谈DAO模式">Java入门:浅谈DAO模式</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/useful-bookmarklets.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>刷新DNS缓存的方法</title>
		<link>http://ihacklog.com/software/tips/how-to-flush-the-dns-cache.html</link>
		<comments>http://ihacklog.com/software/tips/how-to-flush-the-dns-cache.html#comments</comments>
		<pubDate>Mon, 03 Oct 2011 14:32:37 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[DNS缓存]]></category>
		<category><![CDATA[flushdns]]></category>
		<category><![CDATA[刷新]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4889</guid>
		<description><![CDATA[这个经常用到的。 1.windows 1ipconfig /flushdns 2.linux 12345/etc/rc.d/init.d/nscd restart # OR nscd -i hosts #archlinux below /etc/rc.d/nscd restart 3.Mac OS 1234#Mac OS X Leopard lookupd -flushcache #Mac OS X dscacheutil -flushcache via : http://www.techiecorner...]]></description>
			<content:encoded><![CDATA[<p>这个经常用到的。</p>
<h3>1.windows </h3>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ipconfig <span style="color: #66cc66;">/</span>flushdns</div></td></tr></tbody></table></div>
<h3>2.linux</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>nscd restart <br />
<span style="color: #666666; font-style: italic;"># OR </span><br />
nscd <span style="color: #660033;">-i</span> hosts<br />
<span style="color: #666666; font-style: italic;">#archlinux below</span><br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>nscd restart</div></td></tr></tbody></table></div>
<h3>3.Mac OS</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#Mac OS X Leopard</span><br />
lookupd <span style="color: #660033;">-flushcache</span><br />
<span style="color: #666666; font-style: italic;">#Mac OS X</span><br />
dscacheutil <span style="color: #660033;">-flushcache</span></div></td></tr></tbody></table></div>
<p>via :<br />
<a href="http://ihacklog.com/l.php?url=http%3A%2F%2Fwww.techiecorner.com%2F35%2Fhow-to-flush-dns-cache-in-linux-windows-mac%2F" target="_blank">http://www.techiecorner.com/35/how-to-flush-dns-cache-in-linux-windows-mac/</a></p>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4889";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4889" title="Permanent Link to 刷新DNS缓存的方法" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4889</a>
            </p>
             </div><h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011年10月7日  //  <a href="http://ihacklog.com/linux/archlinux/set-dnsmasq-as-dns-cache-server.html" title="Linux下用dnsmasq做dns cache server">Linux下用dnsmasq做dns cache server</a> (7)</li><li>2011年10月7日  //  <a href="http://ihacklog.com/linux/archlinux/pdnsd-cache-server-setup.html" title="Linux下用pdnsd做dns缓存服务器">Linux下用pdnsd做dns缓存服务器</a> (5)</li><li>2010年04月10日  //  <a href="http://ihacklog.com/server/setup-bind-proxy-server-under-windows-7.html" title="Windows下安装BIND作为DNS缓存服务器">Windows下安装BIND作为DNS缓存服务器</a> (11)</li><li>2009年12月1日  //  <a href="http://ihacklog.com/software/cool_software_share/acrylic-win-dns-cache-server.html" title="Acrylic:让你在win一分钟建立DNS缓存服务器">Acrylic:让你在win一分钟建立DNS缓存服务器</a> (3)</li><li>2009年11月4日  //  <a href="http://ihacklog.com/server/using-bind9-setup-cache-and-local-dns-server.html" title="bind9架設域名服务器及配置">bind9架設域名服务器及配置</a> (2)</li><li>2009年06月17日  //  <a href="http://ihacklog.com/software/cool_software_share/pichuliquanzidongpeizhiipdizhiwangguandns.html" title="批处理全自动配置IP地址,网关,dns">批处理全自动配置IP地址,网关,dns</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/how-to-flush-the-dns-cache.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>删除k115.net这个流氓快捷启动项的方法</title>
		<link>http://ihacklog.com/software/tips/fuck-k115-net.html</link>
		<comments>http://ihacklog.com/software/tips/fuck-k115-net.html#comments</comments>
		<pubDate>Fri, 09 Sep 2011 07:08:41 +0000</pubDate>
		<dc:creator>荒野无灯</dc:creator>
				<category><![CDATA[奇技淫巧]]></category>

		<guid isPermaLink="false">http://ihacklog.com/?p=4780</guid>
		<description><![CDATA[今日无意间发现在我win7的快捷启动项里面藏着一个名为“启动Internet Explorer 浏览器”的快捷启动项，观其图标，一眼便看出此非系统原有。 直接点删除，提示有程序正在使用它，不能删除。 个人最反感这种搞劫持的了。 不用360，不用金山，不用瑞星。持刀cmd杀之。 此流氓文件名为： 1启动 Internet Explorer 浏览器.url 而其它启动项后缀皆为 .lnk 且此流氓文件属性为只读，当前用户亦无删除权限。 且看cmd如何取其狗头： 第一步：将流氓打回原形 123taskkill ...]]></description>
			<content:encoded><![CDATA[<p>今日无意间发现在我win7的快捷启动项里面藏着一个名为“启动Internet Explorer 浏览器”的快捷启动项，观其图标，一眼便看出此非系统原有。<br />
直接点删除，提示有程序正在使用它，不能删除。<br />
个人最反感这种搞劫持的了。<br />
不用360，不用金山，不用瑞星。持刀cmd杀之。</p>
<p>此流氓文件名为：</p>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">启动 Internet Explorer 浏览器.url</div></td></tr></tbody></table></div>
<p>而其它启动项后缀皆为 .lnk<br />
且此流氓文件属性为只读，当前用户亦无删除权限。<br />
且看cmd如何取其狗头：<br />
第一步：<strong>将流氓打回原形</strong></p>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">taskkill <span style="color: #66cc66;">/</span>f <span style="color: #66cc66;">/</span>im explorer.exe<br />
cd <span style="color: #66cc66;">%</span>userprofile<span style="color: #66cc66;">%</span>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch<br />
dir <span style="color: #66cc66;">/</span>a</div></td></tr></tbody></table></div>
<p>第二步：<strong>让其无所遁形</strong>（命令中的<strong>HuangYe</strong>为当前用户名）：</p>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">takeown <span style="color: #66cc66;">/</span>F <span style="color: #66cc66;">*</span>.url<br />
成功<span style="color: #FF1010; font-weight: bold;">: 此文件(或文件夹): &quot;启动 Internet Explorer 浏览器.url&quot; 现在由用户 &quot;HuangYe-PC\HuangYe&quot; 所有。</span><br />
<br />
cacls <span style="color: #ff0000;">&quot;启动 Internet Explorer 浏览器.url&quot;</span>　<span style="color: #66cc66;">/</span>T <span style="color: #66cc66;">/</span>E <span style="color: #66cc66;">/</span>G HuangYe<span style="color: #FF1010; font-weight: bold;">:F</span><br />
处理的文件<span style="color: #FF1010; font-weight: bold;">: C:\Users\HuangYe\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\启动 Internet Explorer 浏览器.url</span><br />
attrib <span style="color: #66cc66;">-</span>r <span style="color: #66cc66;">-</span>s <span style="color: #ff0000;">&quot;启动 Internet Explorer 浏览器.url&quot;</span></div></td></tr></tbody></table></div>
<p>第三步：<strong>取其首级</strong></p>
<div class="codecolorer-container winbatch default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="winbatch codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">del <span style="color: #66cc66;">/</span>f <span style="color: #66cc66;">/</span>q <span style="color: #ff0000;">&quot;启动 Internet Explorer 浏览器.url&quot;</span><br />
删除文件 <span style="color: #66cc66;">-</span> C<span style="color: #FF1010; font-weight: bold;">:\Users\HuangYe\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\启动 Internet Explorer 浏览器.url</span><br />
start explorer.exe</div></td></tr></tbody></table></div>

<script type="text/javascript"> 
var cur_host=top.location.hostname;
var huangye_host="ihacklog.com";
if ( huangye_host != cur_host) 
{
	var cur_url=top.location.href;
	//top.location.href = cur_url.replace(cur_host,huangye_host);
	top.location.href = "http://ihacklog.com/?p=4780";
}
</script> 			
<div class='sub'><h4>喜欢这篇文章吗?</h4><p>请订阅本站 <a class="feed" style="font-family:Consolas,'DejaVu Sans Mono',monospace,'Comic Sans MS',Monaco;font-size:14px;" href="http://ihacklog.com/feed" onclick="prompt(&#39;URL:&#39;, this.href); return false;">RSS feed</a> 或<a style="display:inline-block;width:90px;margin-bottom:-8px;" target="_blank" href="http://list.qq.com/cgi-bin/qf_invite?id=5899d1ae341c4fb741adf6648000fbaf3ef47b98e2a163da"><img border="0" alt="填写您的邮件地址，订阅我们的精彩内容：" src="http://rescdn.list.qq.com/zh_CN/htmledition/images/qunfa/manage/picMode_dark_s.png" /></a></p></div>
                <!-- 版权声明开始 -->
   		<div id="permissions">
		作者：<a href="http://ihacklog.com">荒野无灯</a><br/>
		出处：<span style="color: #333300;"><a target="_blank"  href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span><br/>
                <!-- 版权声明结束 -->
                <!-- 协议声明开始 -->
            <p>
            <strong>声明:</strong> 本站遵循 <span style="color: #ff0000;"><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank"> 署名-非商业性使用-相同方式共享 2.5</a> </span>共享协议. 转载请注明转自<span style="color: #333300;"><a target="_blank" href="http://ihacklog.com"><strong>Hacklog</strong>【荒野无灯weblog】</a></span>
            </p>
                <!-- 协议声明结束 -->
                
             <p>
             本文链接:  <a  target="_blank"  href="http://ihacklog.com/?p=4780" title="Permanent Link to 删除k115.net这个流氓快捷启动项的方法" onclick="prompt(&#39;URL:&#39;, this.href); return false;">http://ihacklog.com/?p=4780</a>
            </p>
             </div><h3  class="related_post_title">随机日志</h3><ul class="related_post"><li>2008年12月7日  //  <a href="http://ihacklog.com/php/skills/make-your-php-code-portable.html" title="Make your PHP code portable">Make your PHP code portable</a> (0)</li><li>2012年02月3日  //  <a href="http://ihacklog.com/php/wordpress/plugins/hacklog-gravatar-cache.html" title="gravatar头像缓存插件——Hacklog Gravatar Cache 2.2 正式版发布">gravatar头像缓存插件——Hacklog Gravatar Cache 2.2 正式版发布</a> (2)</li><li>2008年12月31日  //  <a href="http://ihacklog.com/php/%e4%b8%bb%e6%9d%bf%e7%b3%bb%e5%88%97%e7%9f%a5%e8%af%86%ef%bc%9a%e5%b9%b6%e5%8f%a3%e4%b8%b2%e5%8f%a3.html" title="主板系列知识：并口/串口">主板系列知识：并口/串口</a> (1)</li><li>2010年03月6日  //  <a href="http://ihacklog.com/php/framework/codeigniter-vs-thinkphp.html" title="关于CI与TP">关于CI与TP</a> (0)</li><li>2009年05月24日  //  <a href="http://ihacklog.com/linux/ubuntu-desktop/yongminglingxingjiagualinuxdewenjianxitongjianjie.html" title="用命令行加挂Linux的文件系统简介 ">用命令行加挂Linux的文件系统简介 </a> (1)</li><li>2011年06月1日  //  <a href="http://ihacklog.com/software/powerfulvim/how-to-debug-php-with-vim-and-xdebug-on-linux.html" title="在Linux下面用vim和XDebug调试PHP">在Linux下面用vim和XDebug调试PHP</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://ihacklog.com/software/tips/fuck-k115-net.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

