<?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>nukeitdotorg &#187; Tutorials</title> <atom:link href="http://nukeit.org/category/tutorials/feed/" rel="self" type="application/rss+xml" /><link>http://nukeit.org</link> <description>Digital Medication</description> <lastBuildDate>Mon, 08 Feb 2010 16:49:23 +0000</lastBuildDate> <generator>http://wordpress.org/?v=3.0-alpha</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Windows 7 GodMode All Options</title><link>http://nukeit.org/windows-7-godmode-all-options/</link> <comments>http://nukeit.org/windows-7-godmode-all-options/#comments</comments> <pubDate>Tue, 05 Jan 2010 05:01:03 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[GodMode]]></category> <category><![CDATA[Options]]></category> <category><![CDATA[windows 7]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4647</guid> <description><![CDATA[Here&#8217;s an easy hack for Windows 7 x64 and x86 that gives you access to many options in one place.To activate a GodMode folder, create a new folder somewhere and rename it to this string:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
This hack appears to work on Vista x86 but not x64.
]]></description> <content:encoded><![CDATA[<p>Here&#8217;s an easy hack for Windows 7 x64 and x86 that gives you access to many options in one place.</p><p><a
href="http://cdn.nukeit.org/wp-content/uploads/2010/01/windows-7-godmode-all-options.jpg"><img
class="alignnone size-full wp-image-4648" title="windows-7-godmode-all-options" src="http://nukeit.org/wp-content/uploads/2010/01/windows-7-godmode-all-options.jpg" alt="windows 7 x64 godmode all options" width="541" height="5201" /></a></p><p>To activate a GodMode folder, create a new folder somewhere and rename it to this string:</p><pre>GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</pre><p>This hack appears to work on Vista x86 but not x64.</p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/windows-7-godmode-all-options/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Feed Content Theft Prevention</title><link>http://nukeit.org/feed-content-theft-prevention/</link> <comments>http://nukeit.org/feed-content-theft-prevention/#comments</comments> <pubDate>Fri, 09 Oct 2009 10:43:59 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[atom]]></category> <category><![CDATA[autoblog]]></category> <category><![CDATA[content theft]]></category> <category><![CDATA[feed]]></category> <category><![CDATA[prevention]]></category> <category><![CDATA[rss]]></category> <category><![CDATA[scrapers]]></category> <category><![CDATA[thieves]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4582</guid> <description><![CDATA[
There isn&#8217;t much you can do to protect your feed content that a scraper can&#8217;t use Yahoo Pipes and a few cute regex&#8217;s to sidestep. Blocking Yahoo pipes is not the best idea since people actually use it for non-nefarious purposes. Here are a few things you can do (with PHP?) to prevent the regex ]]></description> <content:encoded><![CDATA[<p><img
src="http://farm3.static.flickr.com/2293/2276970138_0337ebfe44.jpg" alt="Secure Pump by david.nikonvscanon, on Flickr" width="540" height="403" title="Feed Content Theft Prevention" /><br
/> There isn&#8217;t much you can do to protect your feed content that a scraper can&#8217;t use Yahoo Pipes and a few cute regex&#8217;s to sidestep. Blocking Yahoo pipes is not the best idea since people actually use it for non-nefarious purposes. Here are a few things you can do (with PHP?) to prevent the regex filters meant to remove your tracking pixels and other stuff from being removed without undesirable consequences.</p><p>Dynamically generated tags &#8211; Very basic regex filters can be defeated if you place a dynamic class in front of your tracking pixels:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;92934abc123&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;yourimg&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div><p>Chance are the autoblogger won&#8217;t bother to sort out all the different image classes. This won&#8217;t prevent them from removing all images (or tags) though. How about some slick html then?</p><p>Set this up for RSS only:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;</span>
<span style="color: #009900;">Your plaintext excerpt here.</span>
<span style="color: #009900;">&quot;</span>&gt;</span></pre></div></div><p>Maybe you could add a fake ad to that:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ads.yourdomain.com/fakead.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;</span>
<span style="color: #009900;">Your plaintext excerpt here.</span>
<span style="color: #009900;">&quot;</span>&gt;</span></pre></div></div><p>Or fake feed flare:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feeds.feedburner.com/~ff/slashfilm?a=ynIB-icScgo:Hzwy1PtmAKc:I9og5sOYxJI&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;</span>
<span style="color: #009900;">Your plaintext excerpt here.</span>
<span style="color: #009900;">&quot;</span>&gt;</span></pre></div></div><p>Another (unproven) idea is to use Google&#8217;s newfound acceptance of cross domain canonical tags. Basically, you just throw it in there and hope Googlebot is a little relaxed as to where<link> tags show up.</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;canonical&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://yourdomain/thepost/&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://nukeit.org/feed-content-theft-prevention/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>What&#8217;s lurking in your webappsstore sqlite database? [Firefox]</title><link>http://nukeit.org/whats-lurking-in-your-webappsstore-sqlite-database-firefox/</link> <comments>http://nukeit.org/whats-lurking-in-your-webappsstore-sqlite-database-firefox/#comments</comments> <pubDate>Wed, 09 Sep 2009 23:26:51 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[ccleaner]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[sqlite]]></category> <category><![CDATA[webappsstore]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4485</guid> <description><![CDATA[Probably a lot more personal information than anyone would care to have stored in an open, easily accessible manner. This DOM Storage file is one of many so called &#8220;supercookies&#8221; that most of today&#8217;s cleaning utilities fail to remove. Other &#8220;supercookies&#8221; include identifiable data stored by various Flash, JavaScript, and Java userData methods.
&#160;
Interestingly, Firefox 3.5&#8217;s ]]></description> <content:encoded><![CDATA[<p>Probably a lot more personal information than anyone would care to have stored in an open, easily accessible manner. This DOM Storage file is one of many so called &#8220;supercookies&#8221; that most of today&#8217;s cleaning utilities fail to remove. Other &#8220;supercookies&#8221; include identifiable data stored by various Flash, JavaScript, and Java userData methods.<br
/> &nbsp;<br
/> Interestingly, Firefox 3.5&#8217;s &#8220;Private Browsing&#8221; information makes no mention as to whether or not it stores data in webappsstore.sqlite, I haven&#8217;t verified this, but I would expect it to be explicitly mentioned in the list of &#8220;Private Browsing&#8221; features.</p><pre>http://support.mozilla.com/en-US/kb/Private+Browsing</pre><p>&nbsp;<br
/> &nbsp;<br
/> Luckily, it&#8217;s a snap to view the contents with an SQLite viewer, and easy to remove too.<br
/> &nbsp;<br
/> I used SQLite Manager for Firefox to view the contents of webappsstore.sqlite:<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/webappsstore-privacy.png"><img
class="alignnone size-full wp-image-4483" style="zIndex:1000000" title="webappsstore privacy" src="http://nukeit.org/wp-content/uploads/2009/09/webappsstore-privacy.png" alt="webappsstore privacy" width="500" height="199" /></a></p><pre>http://code.google.com/p/sqlite-manager/</pre><p>&nbsp;<br
/> I guess a better article might be written on the subject of why Bing has stored my <strong>actual home address</strong> in an insecure, unencrypted, non-cookie format for later retrieval&#8230;<br
/> &nbsp;<br
/> &nbsp;</p><h4>webappsstore.sqlite MozillaZine entry:</h4><blockquote><p>Deleting webappsstore.sqlite will delete any data web sites have stored there. A new file will be created when it is needed.</p></blockquote><pre>http://kb.mozillazine.org/Webappsstore.sqlite</pre><p>So removing it shouldn&#8217;t be any more harmful than normal cache/cookie removal.<br
/> &nbsp;<br
/> &nbsp;<br
/> I&#8217;m a fan of CCleaner, but I was surprised to find that it didn&#8217;t remove this db file by default. Adding it to the list of files to manually delete is a snap:</p><pre>C:\Users\xxxx\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxxxx.default\webappsstore.sqlite</pre><p><a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/ccleaner-include-files-to-delete.png"><img
class="alignnone size-full wp-image-4484" title="ccleaner include files to delete" src="http://nukeit.org/wp-content/uploads/2009/09/ccleaner-include-files-to-delete.png" alt="ccleaner include files to delete" width="500" height="283" /></a></p><pre>http://www.ccleaner.com/</pre><p>&nbsp;<br
/> &nbsp;</p><h4>Now where is the option to keep sites from storing data here in the first place?</h4><p>Well, it appears you can go to <strong>about:config</strong> and change <strong>dom.storage.enabled</strong> to <strong>false</strong>, but the MozillaZine for this option doesn&#8217;t detail what other effects this might have.</p><pre>http://kb.mozillazine.org/Dom.storage.enabled</pre>]]></content:encoded> <wfw:commentRss>http://nukeit.org/whats-lurking-in-your-webappsstore-sqlite-database-firefox/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Change status of all Wordpress posts with MySQL</title><link>http://nukeit.org/change-status-of-all-wordpress-posts-with-mysql/</link> <comments>http://nukeit.org/change-status-of-all-wordpress-posts-with-mysql/#comments</comments> <pubDate>Thu, 03 Sep 2009 00:25:45 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[phpMyAdmin]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4414</guid> <description><![CDATA[Sometimes you just want to archive everything. It&#8217;s really easy with a few simple SQL statements. I just used phpMyAdmin but you can do it directly if you want.
Examples:
Change published posts to draftsUPDATE `wp_posts` SET `post_status` = 'draft' WHERE `post_status` = 'publish'InheritUPDATE `wp_posts` SET `post_status` = 'draft' WHERE `post_status` = 'inherit'Future(scheduled)UPDATE `wp_posts` SET `post_status` = ]]></description> <content:encoded><![CDATA[<p>Sometimes you just want to archive everything. It&#8217;s really easy with a few simple SQL statements. I just used phpMyAdmin but you can do it directly if you want.</p><p>Examples:<br
/> <strong>Change published posts to drafts</strong></p><div
class="wp_syntax"><div
class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`wp<span style="color: #008080; font-weight: bold;">_</span>posts`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'draft'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'publish'</span></pre></div></div><p><strong>Inherit</strong></p><div
class="wp_syntax"><div
class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`wp<span style="color: #008080; font-weight: bold;">_</span>posts`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'draft'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'inherit'</span></pre></div></div><p><strong>Future(scheduled)</strong></p><div
class="wp_syntax"><div
class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`wp<span style="color: #008080; font-weight: bold;">_</span>posts`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'draft'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'future'</span></pre></div></div><p><strong>UPDATE</strong><br
/> After setting every post to draft you may want to republish posts containing a certain term:</p><div
class="wp_syntax"><div
class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">UPDATE</span> <span style="color: #008000;">`wp<span style="color: #008080; font-weight: bold;">_</span>posts`</span> <span style="color: #990099; font-weight: bold;">SET</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>status`</span> <span style="color: #CC0099;">=</span> <span style="color: #008000;">'publish'</span> <span style="color: #990099; font-weight: bold;">WHERE</span> <span style="color: #008000;">`post<span style="color: #008080; font-weight: bold;">_</span>content`</span> <span style="color: #CC0099; font-weight: bold;">LIKE</span> <span style="color: #008000;">'<span style="color: #008080; font-weight: bold;">%</span>searchterm<span style="color: #008080; font-weight: bold;">%</span>'</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://nukeit.org/change-status-of-all-wordpress-posts-with-mysql/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Interesting things you find in a 404 error log</title><link>http://nukeit.org/interesting-things-you-find-in-a-404-error-log/</link> <comments>http://nukeit.org/interesting-things-you-find-in-a-404-error-log/#comments</comments> <pubDate>Wed, 02 Sep 2009 22:06:26 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[404]]></category> <category><![CDATA[attacks]]></category> <category><![CDATA[bing]]></category> <category><![CDATA[bots]]></category> <category><![CDATA[chinacomm]]></category> <category><![CDATA[commentluv]]></category> <category><![CDATA[error]]></category> <category><![CDATA[lfi]]></category> <category><![CDATA[redirection]]></category> <category><![CDATA[rfi]]></category> <category><![CDATA[scanners]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4402</guid> <description><![CDATA[I&#8217;ve been using redirection to keep 404 error logs on my site for some time. Occasionally I let it get too big and clear it out. Today I checked on it after a few hours and found some interesting errors in a fairly short time frame.
First off, we have a bot that appears to originate ]]></description> <content:encoded><![CDATA[<p>I&#8217;ve been using redirection to keep 404 error logs on my site for some time. Occasionally I let it get too big and clear it out. Today I checked on it after a few hours and found some interesting errors in a fairly short time frame.</p><p>First off, we have a bot that appears to originate from China. It seems to be scanning for random rar files such as 8.27.rar, 8.28.rar, and so on. I can only assume that its looking for a toolkit or bot package of some kind&#8230; possibly one that it can hack into and hijack for itself. Just speculation&#8230; I&#8217;m sure someone <em>could</em> tell me exactly what this is if they wanted&#8230;<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/chinacomm.png"><img
class="alignnone size-full wp-image-4403" title="chinacomm" src="http://nukeit.org/wp-content/uploads/2009/09/chinacomm.png" alt="chinacomm Interesting things you find in a 404 error log" width="347" height="530" /></a></p><p>Next we have a typical RFI scan bot digging around where it shouldn&#8217;t. This is likely the most common attack your server will experience. Cheap botherders looking for easy roots&#8230;<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/rfiscan.png"><img
class="alignnone size-full wp-image-4404" title="rfiscan" src="http://nukeit.org/wp-content/uploads/2009/09/rfiscan.png" alt="rfiscan Interesting things you find in a 404 error log" width="500" height="100" /></a></p><p>Another bot scanning for remote file inclusion vulnerabilities to exploit:<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/rfi2.png"><img
class="alignnone size-full wp-image-4405" title="rfi2" src="http://nukeit.org/wp-content/uploads/2009/09/rfi2.png" alt="rfi2 Interesting things you find in a 404 error log" width="500" height="252" /></a></p><p>Here is an interesting &#8220;attack&#8221; looking for certain files used by Wordpress plugins. In this case, the person (a spammer) is looking for certain files used by CommentLuv, a plugin that allows for easy &#8220;dofollow&#8221; backlinks. There are a few bots and scripts out there that scrape search engine results looking for signs of these plugins, then the list is exported and another piece of code searches through the resulting urls to see if any of them actually have the code.<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/missingplugins2.png"><img
class="alignnone size-full wp-image-4407" title="missingplugins2" src="http://nukeit.org/wp-content/uploads/2009/09/missingplugins2.png" alt="missingplugins2 Interesting things you find in a 404 error log" width="486" height="94" /></a><br
/> Here is another example of this type of activity from today:<br
/> <a
href="http://cdn.nukeit.org/wp-content/uploads/2009/09/missingplugins.png"><img
class="alignnone size-full wp-image-4406" title="missingplugins" src="http://nukeit.org/wp-content/uploads/2009/09/missingplugins.png" alt="missingplugins Interesting things you find in a 404 error log" width="451" height="128" /></a></p><p>Even less interesting is Bing bots constant bombardment of really ancient non existent files that have been on my site for MANY months. I don&#8217;t know where it got this list of my files to spider, but it really ought to find a better source. Even slow ass Yahoo slurp hasn&#8217;t touched these old files in forever&#8230;</p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/interesting-things-you-find-in-a-404-error-log/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>w3af on windows 7 with python 2.6.2</title><link>http://nukeit.org/w3af-on-windows-7-with-python-2-6-2/</link> <comments>http://nukeit.org/w3af-on-windows-7-with-python-2-6-2/#comments</comments> <pubDate>Sat, 15 Aug 2009 00:15:45 +0000</pubDate> <dc:creator>fuzion</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[python 2.6.2]]></category> <category><![CDATA[w3af]]></category> <category><![CDATA[windows 7]]></category><guid
isPermaLink="false">http://nukeit.org/?p=4289</guid> <description><![CDATA[
Coming soon!
]]></description> <content:encoded><![CDATA[<p><a
href="http://nukeit.org/http://nukeit.org/wp-content/uploads/2009/08/w3af-win7.png"><img
class="alignnone" title="w3af windows 7" src="http://nukeit.org/http://nukeit.org/wp-content/uploads/2009/08/w3af-win7.png" alt="w3af win7 w3af on windows 7 with python 2.6.2" width="500" height="375" /></a></p><h2>Coming soon!</h2> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/w3af-on-windows-7-with-python-2-6-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Piwik &#8211; Single install for multiple domains</title><link>http://nukeit.org/piwik-single-install-for-multiple-domains/</link> <comments>http://nukeit.org/piwik-single-install-for-multiple-domains/#comments</comments> <pubDate>Sat, 27 Jun 2009 20:29:47 +0000</pubDate> <dc:creator>nukeit</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[add]]></category> <category><![CDATA[analytics]]></category> <category><![CDATA[automatic]]></category> <category><![CDATA[piwik]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://nukeit.org./?p=4095</guid> <description><![CDATA[
There are a couple of benefits for running a single Piwik installation for multiple domains such as a single database, single install and easy tracking from a single control panel. We can also expect more accurate results because many people such as myself use NoScript and have it set up to automatically allow top level ]]></description> <content:encoded><![CDATA[<p><a
href="http://cdn.nukeit.org/wp-content/uploads/2009/06/piwik.jpg"><img
src="http://nukeit.org/wp-content/uploads/2009/06/piwik.jpg" alt="piwik Piwik   Single install for multiple domains" title="piwik" width="300" height="300" class="alignleft size-full wp-image-4100" /></a><br
/> There are a couple of benefits for running a single Piwik installation for multiple domains such as a single database, single install and easy tracking from a single control panel. We can also expect more accurate results because many people such as myself use NoScript and have it set up to automatically allow top level sites by default.<br
/> As more browsers start to wise up to XSS problems, we&#8217;ll all eventually have problems with external JS and by having our own analytics we stay a step ahead. The benefits of using your own tracking software rather than relying on the big G&#8217;s or others are obvious, but if you&#8217;d like to know more, be sure to check out Piwik&#8217;s site: http://piwik.org/<br
/> &nbsp;<br
/> &nbsp;</p><p>Now to the good stuff. It&#8217;s really an easy process, and this is just one of many ways you can do it:</p><p>Download and install Piwik to a folder outside your publicly accessible space.</p><p>Create symbolic links to each of your domains folders:</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> domain1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ..<span style="color: #000000; font-weight: bold;">/</span>piwik<span style="color: #000000; font-weight: bold;">/</span> track
<span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>domain2<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ..<span style="color: #000000; font-weight: bold;">/</span>piwik<span style="color: #000000; font-weight: bold;">/</span> track
<span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>domain3<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ..<span style="color: #000000; font-weight: bold;">/</span>piwik<span style="color: #000000; font-weight: bold;">/</span> track</pre></div></div><p>etc&#8230;</p><p>Add meta nofollow tags to the templates:</p><div
class="wp_syntax"><div
class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">NAME</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ROBOTS&quot;</span> <span style="color: #000066;">CONTENT</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;NOINDEX, NOFOLLOW&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></div></div><p><code>plugins/Login/templates<br
/> plugins/CoreHome/templates</code></p><p>And add it to piwik/robots.txt if you want:</p><p><code>#Disallow everything<br
/> User-agent: *<br
/> Disallow: /<br
/> Disallow: /*<br
/> Disallow: */*<br
/> Disallow: *.*<br
/> Disallow: *<br
/> Disallow: .</code></p><p>Next you can log in to your Piwik install from any of your domains like this:<br
/> <code>http://domain1.com/track/</code></p><p>Then you can add your site and it will create tracking code for the domain your are logged in from.</p><p>You can manage and view your data for any domain from any other domain since its a single installation.</p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/piwik-single-install-for-multiple-domains/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Mass unlinking in Wordpress</title><link>http://nukeit.org/mass-unlinking-in-wordpress/</link> <comments>http://nukeit.org/mass-unlinking-in-wordpress/#comments</comments> <pubDate>Sat, 06 Jun 2009 23:59:17 +0000</pubDate> <dc:creator>nukeit</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[about]]></category> <category><![CDATA[images]]></category> <category><![CDATA[leak]]></category> <category><![CDATA[Links]]></category> <category><![CDATA[News]]></category> <category><![CDATA[posts]]></category> <category><![CDATA[themes]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://nukeit.org./?p=4006</guid> <description><![CDATA[So yeah, nofollow doesn&#8217;t work like it used to. Your only options if you care about PR leaks are to either remove the links or to just ignore it. I&#8217;ll show you how you can unlink all external links on your WP blog using a regex and John Godley&#8217;s Search Unleashed plugin.
First, you want to ]]></description> <content:encoded><![CDATA[<p>So yeah, nofollow doesn&#8217;t work like it used to. Your only options if you care about PR leaks are to either remove the links or to just ignore it. I&#8217;ll show you how you can unlink all external links on your WP blog using a regex and John Godley&#8217;s Search Unleashed plugin.</p><p>First, you want to prevent new urls from being posted. You&#8217;ll need to do a couple of theme edits.<br
/> Remove Comment Links in Wordpress:</p><p>Edit Theme > comments.php ; Remove the url form:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">            &lt;div class=&quot;form-label&quot;&gt;&lt;label for=&quot;url&quot;&gt;&lt; ?php _e('Website', 'sandbox') ?&gt;&lt;/label&gt;&lt;/div&gt;
            &lt;div class=&quot;form-input&quot;&gt;&lt;input id=&quot;url&quot; name=&quot;url&quot; type=&quot;text&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_author_url</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; maxlength=&quot;</span><span style="color: #cc66cc;">50</span><span style="color: #0000ff;">&quot; tabindex=&quot;</span><span style="color: #cc66cc;">5</span><span style="color: #0000ff;">&quot; /&gt;&lt;/div&gt;</span></pre></div></div><p>Use search regex plugin to remove the link:</p><p>http://wordpress.org/extend/plugins/search-regex/</p><p>To remove all commentluv links from comments:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>.<span style="color: #339933;">*</span>last blog post.<span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span></pre></div></div><p>Remove all http links:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>http.<span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span></pre></div></div><p>Remove only the link:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>a href.<span style="color: #339933;">*</span><span style="color: #3366CC;">&quot;&gt;)
(&lt;/a&gt;)</span></pre></div></div><p>Unlink &#8220;a class&#8221; links:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>a <span style="color: #003366; font-weight: bold;">class</span>.<span style="color: #339933;">*</span><span style="color: #3366CC;">&quot;&gt;(.*?)&lt;/a&gt;)</span></pre></div></div><p>replace with $1</p><p>Unlink &#8220;a href&#8221; links with their url target as quoted plaintext (without killing image links):</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>a \s<span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span>\w<span style="color: #339933;">+</span>\s<span style="color: #339933;">*=</span>\s<span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span>\w<span style="color: #339933;">+|</span><span style="color: #3366CC;">&quot;[^&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #3366CC;">&quot;|'[^']*'))*?<span style="color: #000099; font-weight: bold;">\s</span>*href<span style="color: #000099; font-weight: bold;">\s</span>*=<span style="color: #000099; font-weight: bold;">\s</span>*(?&lt;url&gt;<span style="color: #000099; font-weight: bold;">\w</span>+|&quot;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^</span><span style="color: #3366CC;">&quot;]*&quot;</span><span style="color: #339933;">|</span><span style="color: #3366CC;">'[^'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #3366CC;">')(?:(?:<span style="color: #000099; font-weight: bold;">\s</span>+<span style="color: #000099; font-weight: bold;">\w</span>+<span style="color: #000099; font-weight: bold;">\s</span>*=<span style="color: #000099; font-weight: bold;">\s</span>*)(?:<span style="color: #000099; font-weight: bold;">\w</span>+|&quot;[^&quot;]*&quot;|'</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^</span><span style="color: #3366CC;">']*'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*?&gt;</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^&lt;</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">+&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div><p>replace with $1</p><p>Unlink everything including images:</p><div
class="wp_syntax"><div
class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #339933;">&lt;</span>a <span style="color: #009900;">&#91;</span>\s<span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">^&gt;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*?</span>href<span style="color: #009900;">&#91;</span>\s<span style="color: #009900;">&#93;</span><span style="color: #339933;">?=</span><span style="color: #009900;">&#91;</span>\s\<span style="color: #3366CC;">&quot;']*(.*?)[<span style="color: #000099; font-weight: bold;">\&quot;</span>']*.*?&gt;([^&lt; ]+|.*?)?&lt;<span style="color: #000099; font-weight: bold;">\/</span>a&gt;)
&lt;/a&gt;</span></pre></div></div><p>replace with $2</p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/mass-unlinking-in-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Add Bing to Wordpress XML Sitemap Generator</title><link>http://nukeit.org/add-bing-to-wordpress-xml-sitemap-generator/</link> <comments>http://nukeit.org/add-bing-to-wordpress-xml-sitemap-generator/#comments</comments> <pubDate>Thu, 04 Jun 2009 08:31:01 +0000</pubDate> <dc:creator>nukeit</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[about]]></category> <category><![CDATA[automatic]]></category> <category><![CDATA[bing]]></category> <category><![CDATA[features]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[News]]></category> <category><![CDATA[ping]]></category> <category><![CDATA[posts]]></category> <category><![CDATA[sitemap]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://nukeit.org./?p=3992</guid> <description><![CDATA[**UPDATE**
MSN has been replaced by Bing in the latest version:
New in Version 3.1.3 (2009-06-07):
* Changed MSN Live Search to Bing
* Exclude categories also now exludes the category itself and not only the posts
* Pings now use the new WordPress HTTP API instead of ]]></description> <content:encoded><![CDATA[<p>**UPDATE**<br
/> MSN has been replaced by Bing in the latest version:</p><blockquote><p>New in Version 3.1.3 (2009-06-07):</p><p> * Changed MSN Live Search to Bing<br
/> * Exclude categories also now exludes the category itself and not only the posts<br
/> * Pings now use the new WordPress HTTP API instead of Snoopy<br
/> * Fixed bug that in localized WP installations priorities could not be saved<br
/> * The sitemap cron job is now cleared after a manual rebuild or after changing the config<br
/> * Adjusted style of admin area for WP 2.8 and refreshed icons<br
/> * Disabled the “Exclude categories” feature for WP 2.5.1, since it doesn’t have the required functions yet</p></blockquote><p>Like many WP users, I have Google XML Sitemaps installed to automatically generate new sitemaps and ping major search engines after every new post. I wanted to add Bing to the list so i dug around the code a bit and figured out that Bing&#8217;s sitemap ping service is almost exactly the same as MSN&#8217;s. It doesn&#8217;t take much to get Bing added to the list of search engines:</p><p><strong>sitemap-core.php:382</strong></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_usedBing</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_bingUrl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_bingSuccess</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_bingStartTime</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$_bingEndTime</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> StartBingPing<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_usedBing <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingUrl <span style="color: #339933;">=</span> <span style="color: #000088;">$url</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingStartTime <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetMicrotimeFloat</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> EndBingPing<span style="color: #009900;">&#40;</span><span style="color: #000088;">$success</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingEndTime <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetMicrotimeFloat</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingSuccess <span style="color: #339933;">=</span> <span style="color: #000088;">$success</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> GetBingTime<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingEndTime <span style="color: #339933;">-</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_bingStartTime<span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div><p><strong>sitemap-core.php:1047</strong></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_options<span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;sm_b_pingbing&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>				<span style="color: #666666; font-style: italic;">//Auto ping Bing</span></pre></div></div><p>sitemap-core.php:2254</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #666666; font-style: italic;">//Ping Bing</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetOption</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;b_pingbing&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pingUrl</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$sPingUrl</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.bing.com/webmaster/ping.aspx?siteMap=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pingUrl</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartBingPing</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sPingUrl</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$pingres</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">RemoteOpen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sPingUrl</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pingres</span><span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">NULL</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$pingres</span><span style="color: #339933;">===</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pingres</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;Thanks for submitting your sitemap&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">===</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndBingPing</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_lastError<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndBingPing</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#125;</span></pre></div></div><p><strong>sitemap-ui.php:650</strong></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">									<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span>_usedBing<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
										<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span>_bingSuccess<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
											<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li&gt;&quot;</span> <span style="color: #339933;">.</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;BING was &lt;b&gt;successfully notified&lt;/b&gt; about changes.&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sitemap'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
											<span style="color: #000088;">$at</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetBingTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
											<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$at</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
												<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li class=\sm_optimize<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%time%&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$at</span><span style="color: #339933;">,</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;It took %time<span style="color: #009933; font-weight: bold;">% s</span>econds to notify BING.com, maybe you want to disable this feature to reduce the building time.&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sitemap'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
											<span style="color: #009900;">&#125;</span>
										<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
											<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;li class=<span style="color: #000099; font-weight: bold;">\&quot;</span>sm_error<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #009933; font-weight: bold;">%s</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$status</span><span style="color: #339933;">-&gt;</span>_bingUrl<span style="color: #339933;">,</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'There was a problem while notifying BING.com. View result'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sitemap'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
										<span style="color: #009900;">&#125;</span>
									<span style="color: #009900;">&#125;</span></pre></div></div><p><strong>sitemap-ui.php:767</strong></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">							&lt;li&gt;
								&lt;input type=&quot;checkbox&quot; id=&quot;sm_b_pingbing&quot; name=&quot;sm_b_pingbing&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-/&gt;</span>sg<span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetOption</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;b_pingbing&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #009900; font-weight: bold;">true</span>?<span style="color: #0000ff;">&quot;checked=<span style="color: #000099; font-weight: bold;">\&quot;</span>checked<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
								&lt;label for=&quot;sm_b_pingbing&quot;&gt;&lt; ?php _e('Notify BING about updates of your Blog', 'sitemap') ?&gt;&lt;/label&gt;&lt;br /&gt;
								&lt;small&gt;&lt; ?php echo str_replace(&quot;%s&quot;,$this-&gt;sg-&gt;GetRedirectLink('sitemap-lwt'),__('No registration required, but you can join the BING Webmaster Tools to check crawling statistics.','sitemap')); ?&gt;&lt;/small&gt;
							&lt;/li&gt;</pre></div></div><p>After you&#8217;ve modified the files, check go to your admin section > Settings > XML-Sitemap and regenerate your sitemap manually. You should see &#8220;BING was successfully notified about changes.&#8221; right under the MSN entry. Way to go!</p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/add-bing-to-wordpress-xml-sitemap-generator/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to compile a list of new Entrecarders to drop on</title><link>http://nukeit.org/how-to-compile-a-list-of-new-entrecarders-to-drop-on/</link> <comments>http://nukeit.org/how-to-compile-a-list-of-new-entrecarders-to-drop-on/#comments</comments> <pubDate>Tue, 17 Mar 2009 23:35:22 +0000</pubDate> <dc:creator>nukeit</dc:creator> <category><![CDATA[Featured]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[dom]]></category> <category><![CDATA[drop]]></category> <category><![CDATA[dropping]]></category> <category><![CDATA[drops]]></category> <category><![CDATA[entrecard]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[Links]]></category> <category><![CDATA[News]]></category> <category><![CDATA[ping]]></category> <category><![CDATA[posts]]></category> <category><![CDATA[script]]></category> <category><![CDATA[site]]></category> <category><![CDATA[source]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://nukeit.org/?p=3844</guid> <description><![CDATA[<p
style="text-align: center;"><a
href="http://cdn.nukeit.org/wp-content/uploads/2009/03/3341848881_eb5e0ef68f.jpg"><img
class="size-medium wp-image-3858 aligncenter" title="http://www.flickr.com/photos/ondersetgonas/" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/3341848881_eb5e0ef68f-300x225.jpg" alt="http://www.flickr.com/photos/ondersetgonas/" width="300" height="225" /></a></p><p>Dropping on new Entrecarders can have many benefits, though EC&#8217;s use of Javascript in their category browser makes it hard to drop on multiple users without hours of tedious clicking. In this post, I&#8217;ll show you how you can create an easy to use link list of the newest members.<br
/></p]]></description> <content:encoded><![CDATA[<p
style="text-align: center;"><img
class="size-medium wp-image-3858 aligncenter" title="http://www.flickr.com/photos/ondersetgonas/" src="http://nukeit.org/wp-content/uploads/2009/03/3341848881_eb5e0ef68f-300x225.jpg" alt="http://www.flickr.com/photos/ondersetgonas/" width="300" height="225" /></p><p>Dropping on new Entrecarders can have many benefits, though EC&#8217;s use of Javascript in their category browser makes it hard to drop on multiple users without hours of tedious clicking. In this post, I&#8217;ll show you how you can create an easy to use link list of the newest members.<br
/> 1. Install some Firefox extensions<br
/> Linky will allow you to highlight and open up to 99 links in new tabs.<br
/> DOM inspector will allow you to see the actual page source generated by Entrecard&#8217;s Javascript.</p><p>2. Get a decent text editor<br
/> Notepad++ is an excellent FOSS text editor with many additional capabilities.<br
/> OR<br
/> EmEditor (30-day trial) is possibly the best non-FOSS editor around.</p><p>3. Grep for Win32</p><p>Once you have your extensions, editor, and grep installed, go to your EC Category viewer sorted by newest members:</p><p>http://entrecard.com/category/browser?order_by=newest</p><p>Set the EC browser to view 24 rows and wait until it&#8217;s fully loaded.<br
/> <img
class="alignnone size-medium wp-image-3846" title="catnew" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/catnew-300x70.jpg" alt="catnew 300x70 How to compile a list of new Entrecarders to drop on" width="300" height="70" /><br
/> Fire up your DOM inspector by clicking Tools &gt; DOM Inspector in your Firefox menu. Once in, click this green button to activate the node inspector:<br
/> <img
class="alignnone size-full wp-image-3845" title="dom1" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/dom1.jpg" alt="dom1 How to compile a list of new Entrecarders to drop on" width="93" height="55" /><br
/> Now click on an card on the EC Category viewer and you&#8217;ll see a red box appear around it. Switch back to the DOM inspector and you&#8217;ll notice that the tree has expanded and highlighted an entry below the cat_results id. Click the arrow to expand cat_results and you should see the following:</p><p><img
class="alignnone size-medium wp-image-3847" title="dom2" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/dom2-300x82.jpg" alt="dom2 300x82 How to compile a list of new Entrecarders to drop on" width="300" height="82" /></p><p><img
class="alignnone size-medium wp-image-3848" title="dom3" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/dom3-300x102.jpg" alt="dom3 300x102 How to compile a list of new Entrecarders to drop on" width="300" height="102" /></p><p>Right click on the cat_results DIV and click &#8220;Copy XML&#8221;. Paste it into your text editor of choice. You should see one very long bit of code. Browse to the next page of Category viewer results and repeat the last few steps until you have 3 or 4 lines.</p><p><img
class="alignnone size-medium wp-image-3849" title="edit1" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/edit1-300x29.jpg" alt="edit1 300x29 How to compile a list of new Entrecarders to drop on" width="300" height="29" /></p><p>Save your text file to your desktop and launch your command prompt by clicking Start &gt; Run &gt; cmd &gt; OK<br
/> In your command prompt window, type the following to change directories to your desktop where your file is saved:<br
/> <code>cd Desktop</code></p><p>Now using grep, you can filter out all the url&#8217;s hidden away in the text file.<br
/> <code>grep -Po "\/t\/oc\/\d+" DOM.txt &gt;&gt; newec.txt</code></p><p>You may need to run grep with the full path if that didn&#8217;t work:<br
/> <code>"C:\Program Files\GnuWin32\bin\grep.exe" -Po "\/t\/oc\/\d+" DOM.txt &gt;&gt; newec.txt</code></p><p><img
class="alignnone size-medium wp-image-3850" title="edit2" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/edit2-126x300.jpg" alt="edit2 126x300 How to compile a list of new Entrecarders to drop on" width="126" height="300" /><br
/> Now open your new text file in your editor and do a search and replace.<br
/> Find:<br
/> <code>/t/oc/</code><br
/> Replace with:<br
/> <code>&lt;a href="http://entrecard.com/t/oc/</code></p><p>Now add the last bit of that html using your editors macro function.<br
/> Click to position your cursor at the end of the first line.<br
/> Start recording your macro<br
/> Paste the following at the end of the first line:<br
/> <code>"&gt;.&lt;/a&gt;</code></p><p>Now hit the down arrow and then the End key on your keyboard to move to the next line and position the cursor at the end of the line.<br
/> Stop recording and run the macro with options. Set it to run one less than the total number of lines in your file, or until the end.<br
/> Optionally, you may wish to insert &lt;br /&gt; between every 99 links since Linky can only open 99 at a time.</p><p><img
class="alignnone size-medium wp-image-3851" title="edit3" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/edit3-300x190.jpg" alt="edit3 300x190 How to compile a list of new Entrecarders to drop on" width="300" height="190" /><br
/> Save your file as newec.html and open in Firefox.</p><p>Once your page is up in Firefox, you&#8217;ll see a ton of &#8220;&#8230;..&#8221; links. Highlight a few of them and right click to open selected links in tabs with Linky. You&#8217;ll want to uncheck &#8220;Select already visited links&#8221; to keep from reopening sites you&#8217;ve already dropped on.</p><p><img
class="alignnone size-medium wp-image-3852" title="linky" src="http://cdn.nukeit.org/wp-content/uploads/2009/03/linky-300x87.jpg" alt="linky 300x87 How to compile a list of new Entrecarders to drop on" width="300" height="87" /></p><p>Voila! You&#8217;ll likely notice more than a few sites don&#8217;t have widgets, usually due to newb bloggers spending hours trying to figure out how to add the script to their sites&#8230;<br
/> Enjoy <img
src='http://cdn.nukeit.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How to compile a list of new Entrecarders to drop on" /></p> ]]></content:encoded> <wfw:commentRss>http://nukeit.org/how-to-compile-a-list-of-new-entrecarders-to-drop-on/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 10/30 queries in 0.032 seconds using disk
Content Delivery Network via cdn.nukeit.org

Served from: perfora.net @ 2010-03-12 13:29:04 -->