<?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>HM2K.com</title>
	<atom:link href="/feed" rel="self" type="application/rss+xml" />
	<link>http://hm2k.com</link>
	<description>The research of an internet entrepreneur and IT consultant</description>
	<lastBuildDate>Tue, 08 Feb 2011 12:57:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>rglob.php</title>
		<link>http://hm2k.com/posts/rglob-php</link>
		<comments>http://hm2k.com/posts/rglob-php#comments</comments>
		<pubDate>Tue, 08 Feb 2011 12:55:24 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=689</guid>
		<description><![CDATA[Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions. I chose the rglob() function. I first wrote the simple recursive glob() function rglob for php.net back in 2008. I chose it because (according to Google Analytics) it&#8217;s the second most popular PHP function in [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions.</p>
<p>I chose the <a href="http://code.google.com/p/hm2k/source/browse/trunk/code/php/functions/rglob.php">rglob() function</a>.<span id="more-689"></span></p>
<p>I first wrote the simple <a href="http://www.google.co.uk/search?&amp;q=recursion">recursive</a> glob() function <a href="http://www.php.net/manual/en/function.glob.php#87221">rglob for php.net back in 2008</a>.</p>
<p>I chose it because (according to Google Analytics) it&#8217;s the second most popular PHP function in my open source code collection, which means people are actually using it and it&#8217;s more simpler yet comprehensive than the most popular (file_post_contents).</p>
<p>The proof is there that you are actually using it, so now perhaps you can do something for me&#8230;</p>
<div style="border: 1px solid #2D73A5; padding: 2px; width: 100px; text-align: center;"><a style="text-decoration: none;" href="http://projects.westhost.com/contest/php/function/rglob/123"><img src="http://projects.westhost.com/contest/php/images/thumb.png" alt="" /><br />
<span style="padding: 2px;">Vote for my PHP code on WestHost</span></a></div>
<p>Thanks!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/rglob-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Subversion on a cPanel Server</title>
		<link>http://hm2k.com/posts/installing-subversion-on-a-cpanel-server</link>
		<comments>http://hm2k.com/posts/installing-subversion-on-a-cpanel-server#comments</comments>
		<pubDate>Tue, 21 Dec 2010 17:37:50 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=684</guid>
		<description><![CDATA[It should be easy right? Just &#8220;yum install subversion&#8221;. Nope. You get this error message: Error: Missing Dependency: perl(URI) &#62;= 1.17 is needed by package It&#8217;s not a problem in CentOS, no, it&#8217;s a restriction created by cPanel to control what is installed using yum. Here&#8217;s what you do: Edit your &#8220;/etc/yum.conf&#8221; file. Remove &#8220;perl*&#8221; from [...]


Related posts:<ol><li><a href='/posts/installing-ioncube-loader-with-cpanel-on-centos' rel='bookmark' title='Permanent Link: Installing IonCube Loader with cPanel on CentOS'>Installing IonCube Loader with cPanel on CentOS</a> <small>There seems to be limited details of how this is...</small></li>
<li><a href='/posts/error-no-dbpath-has-been-set' rel='bookmark' title='Permanent Link: error: no dbpath has been set'>error: no dbpath has been set</a> <small>I&#8217;ve recently been having trouble with a OpenVZ VPS upgraded...</small></li>
<li><a href='/posts/the-requested-url-cpanel-was-not-found-on-this-server' rel='bookmark' title='Permanent Link: The requested URL /cpanel was not found on this server'>The requested URL /cpanel was not found on this server</a> <small>If you run cPanel servers, then you may at some...</small></li>
<li><a href='/posts/freebsd-socks-proxy-for-mirc' rel='bookmark' title='Permanent Link: Setting up a FreeBSD socks proxy server for use with mIRC'>Setting up a FreeBSD socks proxy server for use with mIRC</a> <small>I&#8217;m getting fed up with my current IRC BNC software....</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It should be easy right? Just &#8220;yum install subversion&#8221;.</p>
<p>Nope. You get this error message:</p>
<blockquote><p>Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package</p></blockquote>
<p><span id="more-684"></span>It&#8217;s not a problem in CentOS, no, it&#8217;s a restriction created by cPanel to control what is installed using yum.</p>
<p>Here&#8217;s what you do:</p>
<ul>
<li>Edit your &#8220;/etc/yum.conf&#8221; file.</li>
<li>Remove &#8220;perl*&#8221; from the &#8220;exclude&#8221; line.</li>
<li>Run your &#8220;yum install subversion&#8221;</li>
<li>Add the &#8220;perl*&#8221; back to the &#8220;exclude&#8221; line in the yum file.</li>
</ul>
<p>That&#8217;s it! It will install as expected.</p>


<p>Related posts:<ol><li><a href='/posts/installing-ioncube-loader-with-cpanel-on-centos' rel='bookmark' title='Permanent Link: Installing IonCube Loader with cPanel on CentOS'>Installing IonCube Loader with cPanel on CentOS</a> <small>There seems to be limited details of how this is...</small></li>
<li><a href='/posts/error-no-dbpath-has-been-set' rel='bookmark' title='Permanent Link: error: no dbpath has been set'>error: no dbpath has been set</a> <small>I&#8217;ve recently been having trouble with a OpenVZ VPS upgraded...</small></li>
<li><a href='/posts/the-requested-url-cpanel-was-not-found-on-this-server' rel='bookmark' title='Permanent Link: The requested URL /cpanel was not found on this server'>The requested URL /cpanel was not found on this server</a> <small>If you run cPanel servers, then you may at some...</small></li>
<li><a href='/posts/freebsd-socks-proxy-for-mirc' rel='bookmark' title='Permanent Link: Setting up a FreeBSD socks proxy server for use with mIRC'>Setting up a FreeBSD socks proxy server for use with mIRC</a> <small>I&#8217;m getting fed up with my current IRC BNC software....</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/installing-subversion-on-a-cpanel-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trac TCL for eggdrop</title>
		<link>http://hm2k.com/posts/trac-tcl-for-eggdrop</link>
		<comments>http://hm2k.com/posts/trac-tcl-for-eggdrop#comments</comments>
		<pubDate>Wed, 15 Dec 2010 13:46:18 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=680</guid>
		<description><![CDATA[I&#8217;ve recently had some fun installing Trac project management software on CentOS5. After finally getting it successfully installed and setup I decided to have a play around with a TCL script for eggdrop. This eggdrop script will allow you to return ticket information from Trac to an IRC channel. However, the EggdropTicketInfoIntegration trac.tcl originally written by mvanbaak for [...]


Related posts:<ol><li><a href='/projects/eggtcl' rel='bookmark' title='Permanent Link: eggdrop tcl'>eggdrop tcl</a> <small>These are TCL scripts I have created for eggdrop. License...</small></li>
<li><a href='/posts/seen-script-for-mirc-updated' rel='bookmark' title='Permanent Link: Seen script for mIRC updated'>Seen script for mIRC updated</a> <small>Looking for someone? huh? Well, look no further, this script...</small></li>
<li><a href='/posts/tinysong-tcl-script-for-eggdrop' rel='bookmark' title='Permanent Link: TinySong TCL script for Eggdrop'>TinySong TCL script for Eggdrop</a> <small>If you&#8217;ve not heard of TinySong, you&#8217;re missing out! TinySong...</small></li>
<li><a href='/projects/notepod' rel='bookmark' title='Permanent Link: notepod'>notepod</a> <small>What is notepod? Originally notepod is a TCL script for...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently had some fun <a href="http://hm2k.googlecode.com/svn/trunk/code/shell/setup_trac.sh">installing Trac project management software on CentOS5</a>.</p>
<p>After finally getting it successfully installed and setup I decided to have a play around with a TCL script for eggdrop.</p>
<p>This eggdrop script will allow you to return ticket information from Trac to an IRC channel.<br />
<span id="more-680"></span></p>
<p>However, the <a href="http://trac-hacks.org/wiki/EggdropTicketInfoIntegration">EggdropTicketInfoIntegration trac.tcl</a> originally written by mvanbaak for Trac v0.10 back in 2007 had become heavily outdated.</p>
<p>Of course, I decided to step up to the mark and make a few improvements to the script&#8230;</p>
<blockquote><p># 0.1   &#8211; almost a complete rewrite<br />
#       &#8211; removed flood control, not needed<br />
#       &#8211; removed curl support, outdated<br />
#       &#8211; added dcc command<br />
#       &#8211; improved header<br />
#       &#8211; improved channel flag check<br />
#       &#8211; fixed regex patterns<br />
#       &#8211; fixed spelling errors<br />
#       &#8211; added customisation settings<br />
#       &#8211; improved package checking<br />
#       &#8211; improved debugging<br />
#       &#8211; added not found error<br />
#       &#8211; added basic authorization support<br />
#       &#8211; fixed syntax errors</p></blockquote>
<p>Anyway, it seems to work pretty well now and I have a few improvements I&#8217;m looking to implement in the future.</p>
<p>Here&#8217;s the download:</p>
<ul>
<li><a href="http://hm2k.googlecode.com/svn/trunk/code/tcl/trac.tcl">trac.tcl</a></li>
</ul>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='/projects/eggtcl' rel='bookmark' title='Permanent Link: eggdrop tcl'>eggdrop tcl</a> <small>These are TCL scripts I have created for eggdrop. License...</small></li>
<li><a href='/posts/seen-script-for-mirc-updated' rel='bookmark' title='Permanent Link: Seen script for mIRC updated'>Seen script for mIRC updated</a> <small>Looking for someone? huh? Well, look no further, this script...</small></li>
<li><a href='/posts/tinysong-tcl-script-for-eggdrop' rel='bookmark' title='Permanent Link: TinySong TCL script for Eggdrop'>TinySong TCL script for Eggdrop</a> <small>If you&#8217;ve not heard of TinySong, you&#8217;re missing out! TinySong...</small></li>
<li><a href='/projects/notepod' rel='bookmark' title='Permanent Link: notepod'>notepod</a> <small>What is notepod? Originally notepod is a TCL script for...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/trac-tcl-for-eggdrop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error: no dbpath has been set</title>
		<link>http://hm2k.com/posts/error-no-dbpath-has-been-set</link>
		<comments>http://hm2k.com/posts/error-no-dbpath-has-been-set#comments</comments>
		<pubDate>Sat, 11 Dec 2010 20:39:19 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[rpmdb]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=676</guid>
		<description><![CDATA[I&#8217;ve recently been having trouble with a OpenVZ VPS upgraded from CentOS4 to CentOS5, here&#8217;s what I&#8217;m seeing when trying to rum a yum install of mod_python: [root@coffee ~]# yum install mod_python Loaded plugins: fastestmirror error: no dbpath has been set error: cannot open Packages database in /%{_dbpath} Traceback (most recent call last): File &#8220;/usr/bin/yum&#8221;, [...]


Related posts:<ol><li><a href='/posts/installing-subversion-on-a-cpanel-server' rel='bookmark' title='Permanent Link: Installing Subversion on a cPanel Server'>Installing Subversion on a cPanel Server</a> <small>It should be easy right? Just &#8220;yum install subversion&#8221;. Nope. You...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">I&#8217;ve recently been having trouble with a OpenVZ VPS upgraded from CentOS4 to CentOS5, here&#8217;s what I&#8217;m seeing when trying to rum a yum install of mod_python:</div>
<blockquote>
<div>[root@coffee ~]# yum install mod_python</div>
<div id="_mcePaste">Loaded plugins: fastestmirror</div>
<div id="_mcePaste">error: no dbpath has been set</div>
<div id="_mcePaste">error: cannot open Packages database in /%{_dbpath}</div>
<div id="_mcePaste">Traceback (most recent call last):</div>
<div id="_mcePaste">File &#8220;/usr/bin/yum&#8221;, line 29, in ?</div>
<div id="_mcePaste">yummain.user_main(sys.argv[1:], exit_code=True)</div>
<div id="_mcePaste">File &#8220;/usr/share/yum-cli/yummain.py&#8221;, line 309, in user_main</div>
<div id="_mcePaste">errcode = main(args)</div>
<div id="_mcePaste">File &#8220;/usr/share/yum-cli/yummain.py&#8221;, line 157, in main</div>
<div id="_mcePaste">base.getOptionsConfig(args)</div>
<div id="_mcePaste">File &#8220;/usr/share/yum-cli/cli.py&#8221;, line 187, in getOptionsConfig</div>
<div id="_mcePaste">self.conf</div>
<div id="_mcePaste">File &#8220;/usr/lib/python2.4/site-packages/yum/__init__.py&#8221;, line 664, in &lt;lambda&gt;</div>
<div id="_mcePaste">conf = property(fget=lambda self: self._getConfig(),</div>
<div id="_mcePaste">File &#8220;/usr/lib/python2.4/site-packages/yum/__init__.py&#8221;, line 239, in _getConfig</div>
<div id="_mcePaste">self._conf = config.readMainConfig(startupconf)</div>
<div id="_mcePaste">File &#8220;/usr/lib/python2.4/site-packages/yum/config.py&#8221;, line 804, in readMainConfig</div>
<div id="_mcePaste">yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)</div>
<div id="_mcePaste">File &#8220;/usr/lib/python2.4/site-packages/yum/config.py&#8221;, line 877, in _getsysver</div>
<div id="_mcePaste">idx = ts.dbMatch(&#8216;provides&#8217;, distroverpkg)</div>
<div id="_mcePaste">TypeError: rpmdb open failed</div>
</blockquote>
<div>Here&#8217;s how to fix it:</div>
<blockquote>
<div>[root@coffee ~]# rm /dev/urandom</div>
<div id="_mcePaste">rm: remove regular file `/dev/urandom&#8217;? y</div>
<div id="_mcePaste">[root@coffee ~]# mknod -m 644 /dev/urandom c 1 9</div>
</blockquote>
<p>Nothing else seems to work, but this does indeed seem to solve the problem.</p>
<p>Perhaps I&#8217;ll finally get Trac installed&#8230;</p>


<p>Related posts:<ol><li><a href='/posts/installing-subversion-on-a-cpanel-server' rel='bookmark' title='Permanent Link: Installing Subversion on a cPanel Server'>Installing Subversion on a cPanel Server</a> <small>It should be easy right? Just &#8220;yum install subversion&#8221;. Nope. You...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/error-no-dbpath-has-been-set/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVZ: Container already locked</title>
		<link>http://hm2k.com/posts/openvz-container-already-locked</link>
		<comments>http://hm2k.com/posts/openvz-container-already-locked#comments</comments>
		<pubDate>Fri, 10 Dec 2010 13:22:39 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=673</guid>
		<description><![CDATA[f you received this message when you try and stop the VE&#8230; [root@server ~]# vzctl stop 104 Container already locked Here&#8217;s how to fix it: Delete the lock file [root@server ~]# rm /vz/lock/104.lck rm: remove regular file `/vz/lock/104.lck'? y Kill the checkpoint [root@server ~]# vzctl chkpnt 104 --kill Killing... I also submitted this article onto the [...]


Related posts:<ol><li><a href='/posts/freebsd-62-usrports-no-such-file-or-directory' rel='bookmark' title='Permanent Link: FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;'>FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;</a> <small>I recently setup a new FreeBSD 6.2 server, only to...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>f you received this message when you try and stop the VE&#8230;</p>
<pre>[root@server ~]# vzctl stop 104
Container already locked</pre>
<p><span id="more-673"></span>Here&#8217;s <em>how to</em> fix it:</p>
<ul>
<li>Delete the lock file</li>
</ul>
<pre>[root@server ~]# rm /vz/lock/104.lck
rm: remove regular file `/vz/lock/104.lck'? y</pre>
<ul>
<li>Kill the checkpoint</li>
</ul>
<pre>[root@server ~]# vzctl chkpnt 104 --kill
Killing...</pre>
<p>I also submitted this article onto the OpenVZ Wiki entitled &#8220;<a href="http://wiki.openvz.org/Container_already_locked">Container already locked</a>&#8220;.</p>
<p>I did this because, there was nothing found on the OpenVZ website with regards to this before now:</p>
<blockquote><p>Your search &#8211; site:openvz.org &#8220;Container already locked&#8221; &#8211; did not match any documents.</p></blockquote>
<p>Hope this helps!</p>


<p>Related posts:<ol><li><a href='/posts/freebsd-62-usrports-no-such-file-or-directory' rel='bookmark' title='Permanent Link: FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;'>FreeBSD 6.2 &#8220;/usr/ports: No such file or directory&#8221;</a> <small>I recently setup a new FreeBSD 6.2 server, only to...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/openvz-container-already-locked/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the ip address of a seized website</title>
		<link>http://hm2k.com/posts/find-the-ip-address-of-a-seized-website</link>
		<comments>http://hm2k.com/posts/find-the-ip-address-of-a-seized-website#comments</comments>
		<pubDate>Wed, 01 Dec 2010 00:27:53 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=667</guid>
		<description><![CDATA[So your favorite site is now displaying the following message: This domain name has been seized by ICE &#8211; Homeland Security Investigations In this example we will use the recently seized domain &#8220;torrent-finder.com&#8221;. What &#8220;ICE&#8221; have done is changed the IP address that the domain resolved to, to one of their own. The easiest way [...]


Related posts:<ol><li><a href='/posts/email-address-on-your-website' rel='bookmark' title='Permanent Link: email address on your website'>email address on your website</a> <small>This is something that people don&#8217;t seem to realise, and...</small></li>
<li><a href='/posts/pingotron' rel='bookmark' title='Permanent Link: Pingotron'>Pingotron</a> <small>I&#8217;ve been meaning to publish a post about Pingotron for...</small></li>
<li><a href='/posts/what-is-a-valid-email-address' rel='bookmark' title='Permanent Link: What is a valid email address?'>What is a valid email address?</a> <small>With the on-going abuse to email based systems, we are...</small></li>
<li><a href='/posts/tracking-an-ip-address' rel='bookmark' title='Permanent Link: Tracking an IP address'>Tracking an IP address</a> <small>In my job I have to manage lots of machines...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So your favorite site is now displaying the following message:</p>
<blockquote><p>This domain name has been seized by ICE &#8211; Homeland Security Investigations</p></blockquote>
<p>In this example we will use the recently seized domain &#8220;torrent-finder.com&#8221;.</p>
<p>What &#8220;ICE&#8221; have done is changed the IP address that the domain resolved to, to one of their own.</p>
<p>The easiest way to see what the IP address currently is, is by using the &#8220;ping&#8221; command:</p>
<blockquote><p>[hm2k@server~]$ ping torrent-finder.com<br />
PING torrent-finder.com (74.81.170.110) 56(84) bytes of data.</p>
<p>&#8212; torrent-finder.com ping statistics &#8212;<br />
1 packets transmitted, 0 received, 100% packet loss, time 0ms</p></blockquote>
<p><span id="more-667"></span></p>
<p>We can see that &#8220;torrent-finder.com&#8221; domain currently resolves to the &#8220;74.81.170.110&#8243; IP address.</p>
<p>We know this is the incorrect IP as visiting <a href="http://74.81.170.110/">74.81.170.110</a> in your browser beings up the &#8220;seized&#8221; notice.</p>
<p>So what&#8217;s the real IP? Here&#8217;s how you find out:</p>
<p>First of all you need to <a href="http://en.wikipedia.org/wiki/Whois">Whois</a> the domain name. There are various ways you can do this, from using a program to sending raw commands to the whois server yourself. In this case we will use a whois website:</p>
<ul>
<li><a href="http://whoisx.co.uk/torrent-finder.com">torrent-finder.com</a></li>
</ul>
<p>The Whois record should show the following details which we will find useful:</p>
<blockquote>
<pre>   Domain servers in listed order:
      NS51.DOMAINCONTROL.COM
      NS52.DOMAINCONTROL.COM
</pre>
</blockquote>
<p>Now, here&#8217;s what you do to find the right IP:</p>
<blockquote><p>[hm2k@server~]$ nslookup torrent-finder.com NS51.DOMAINCONTROL.COM<br />
Server:         NS51.DOMAINCONTROL.COM<br />
Address:        216.69.185.26#53</p>
<p>Name:   torrent-finder.com<br />
Address: 208.101.51.57</p></blockquote>
<p>So, there you have it: the real IP. Let&#8217;s just check that by visiting <a href="http://208.101.51.57/">208.101.51.57</a> in our browser.</p>
<p>Ah yes, that&#8217;s it, the real site pops up.</p>
<p>Now it&#8217;s up to you. To make life easier for yourself you could now go ahead and add these newly found details to your <a href="http://en.wikipedia.org/wiki/Hosts_%28file%29">hosts file</a> so you don&#8217;t have to look them up again.</p>
<p><strong>It doesn&#8217;t work!?</strong></p>
<p>Unfortunately, this doesn&#8217;t work for every domain as &#8220;ICE&#8221; seem to have changed some domains (eg: cartoon77.com) to have NS1.SEIZEDSERVERS.COM and NS2.SEIZEDSERVERS.COM as the name servers.</p>
<p>A little set back, however <a href="http://www.google.co.uk/search?q=cartoon77.com+dns">a little fishing on Google</a> and you will soon come across the correct name servers.</p>
<blockquote><p>[hm2k@server ~]$ nslookup cartoon77.com NS1.DNSPOD.NET<br />
Server:         NS1.DNSPOD.NET<br />
Address:        121.12.116.83#53</p>
<p>Name:   cartoon77.com<br />
Address: 174.137.55.5</p></blockquote>
<p>Again, that&#8217;s the real IP. However, with this one you&#8217;ll have to add it into your <a href="http://en.wikipedia.org/wiki/Hosts_%28file%29">hosts file</a> for this to work, which should look like this, for example:</p>
<blockquote><p>174.137.55.5 cartoon77.com<br />
174.137.55.5 www.cartoon77.com</p></blockquote>
<p>Hey presto! Get to your <em>favorite</em> seized sites in a couple of clicks.</p>
<p><strong>Update</strong></p>
<p>Based on this I have now started a project that provides you with an alternative hosts file as a work around.</p>
<ul>
<li><a href="http://code.google.com/p/deicer/">Visit the deicer project</a></li>
</ul>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='/posts/email-address-on-your-website' rel='bookmark' title='Permanent Link: email address on your website'>email address on your website</a> <small>This is something that people don&#8217;t seem to realise, and...</small></li>
<li><a href='/posts/pingotron' rel='bookmark' title='Permanent Link: Pingotron'>Pingotron</a> <small>I&#8217;ve been meaning to publish a post about Pingotron for...</small></li>
<li><a href='/posts/what-is-a-valid-email-address' rel='bookmark' title='Permanent Link: What is a valid email address?'>What is a valid email address?</a> <small>With the on-going abuse to email based systems, we are...</small></li>
<li><a href='/posts/tracking-an-ip-address' rel='bookmark' title='Permanent Link: Tracking an IP address'>Tracking an IP address</a> <small>In my job I have to manage lots of machines...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/find-the-ip-address-of-a-seized-website/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exim on another port for smtp</title>
		<link>http://hm2k.com/posts/exim-on-another-port-for-smtp</link>
		<comments>http://hm2k.com/posts/exim-on-another-port-for-smtp#comments</comments>
		<pubDate>Thu, 25 Nov 2010 14:58:35 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[25]]></category>
		<category><![CDATA[587]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[three]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=661</guid>
		<description><![CDATA[When a business I know had trouble with their broadband I was fortunately able to get them back online by using the redundant mobile broadband on the router. The only issue then was that they couldn&#8217;t send email on port 25 through the Three mobile network. The solution is to change the outgoing SMTP from [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>When a business I know had trouble with their broadband I was fortunately able to get them back online by using the redundant mobile broadband on the router.</p>
<p>The only issue then was that they <a href="http://www.three.co.uk/Help_Support/Mobile_Broadband_Help">couldn&#8217;t send email on port 25 through the Three mobile network</a>.</p>
<p>The solution is to change the outgoing SMTP from port 25 to port 587.</p>
<p>Because I keep forgetting myself, here&#8217;s how you do it on cPanel:</p>
<p><span id="more-661"></span>You can run Exim on another port by going to the <em>Service Manager</em> in WebHost Manager and then enabling <em>exim on another port</em> and choosing the port number.</p>
<p>If it&#8217;s still not working, your firewall (iptables) is probably blocking it, so here&#8217;s what you need to do:</p>
<p>First find the iptables for port 25:</p>
<blockquote><p>root@server [/]# iptables-save | grep port 25<br />
-A INPUT -i venet0 -p tcp -m tcp &#8211;dport 25 -j ACCEPT<br />
-A INPUT -i venet0 -p tcp -m tcp &#8211;sport 25 -j ACCEPT<br />
-A OUTPUT -o venet0 -p tcp -m tcp &#8211;sport 25 -j ACCEPT<br />
-A OUTPUT -o venet0 -p tcp -m tcp &#8211;dport 25 -j ACCEPT</p></blockquote>
<p>Once you have that, copy each line and replace 25 with 587 and enter those in, like so:</p>
<blockquote><p>root@server[/]# iptables -A INPUT -i venet0 -p tcp -m tcp &#8211;dport 587 -j ACCEPT<br />
root@server[/]# iptables -A INPUT -i venet0 -p tcp -m tcp &#8211;sport 587 -j ACCEPT<br />
root@server[/]# iptables -A OUTPUT -o venet0 -p tcp -m tcp &#8211;sport 587 -j ACCEPT<br />
root@server[/]# iptables -A OUTPUT -o venet0 -p tcp -m tcp &#8211;dport 587 -j ACCEPT</p></blockquote>
<p>Finally, you should check it works by using telnet from another machine:</p>
<blockquote><p>[user@server2~]$ telnet mail.server.example.com 587<br />
Trying 1.2.3.4&#8230;<br />
Connected to mail.server.example.com (1.2.3.4).<br />
Escape character is &#8216;^]&#8217;.<br />
220-server.example.com ESMTP Exim 4.69 #1 Fri, 26 Nov 2010 16:54:07 +0000<br />
220-We do not authorize the use of this system to transport unsolicited,<br />
220 and/or bulk e-mail.</p></blockquote>
<p>If you see a message similar to the above it has worked, so now you can save iptables and restart the service:</p>
<ul>
<li>iptables-save</li>
<li>service iptables restart</li>
</ul>
<p>Done!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/exim-on-another-port-for-smtp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK Business License</title>
		<link>http://hm2k.com/posts/uk-business-license</link>
		<comments>http://hm2k.com/posts/uk-business-license#comments</comments>
		<pubDate>Wed, 24 Nov 2010 13:48:07 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Base]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[uk]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=655</guid>
		<description><![CDATA[We recently had an issue with a US based company who asked us for the following: Copy of your business license via PDF/JPG scanned (preferred) and emailed or faxed We went on to explain that we don&#8217;t have a business license, they clearly didn&#8217;t understand and they proclaimed: Most cities and many counties do require [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>We recently had an issue with a US based company who asked us for the following:</p>
<blockquote><p>Copy of your business license via PDF/JPG scanned (preferred) and emailed or faxed</p></blockquote>
<p>We went on to explain that we don&#8217;t have a business license, they clearly didn&#8217;t understand and they proclaimed:<span id="more-655"></span></p>
<blockquote><p>Most cities and many counties do require businesses &#8212; even tiny home-based sole proprietorship &#8212; to register with them and pay at least a minimum tax. In return, your business will receive a business license or tax registration certificate. Even if they do not require you to have one in the UK, we do. We must have something on files stating something along the lines that you are allowed to conduct business in your country.</p></blockquote>
<p>I explained that in the UK there is no such thing as a business license, that is why there is no requirement.</p>
<p>I also stated that:</p>
<ul>
<li>We are registered with HMRC to pay our tax, but they do not  provide a license, certificate or otherwise. Just a tax return form,  which you fill out and return every year.</li>
<li>We do not have a &#8220;Certificate of Incorporation&#8221; as a business is not a corporation.</li>
<li>We do not have a &#8220;local business office&#8221;, we have a Chambers of  Commerce, who, if contacted, will say same thing.</li>
</ul>
<p>To which they replied:</p>
<blockquote><p>To clarify, you are telling me there is absolutely nothing you can show us to prove that you are a registered business or allowed to conduct business in the UK?</p>
<p>&#8230;</p>
<p>There must be something from your government you can provide that will show us you are a business.</p></blockquote>
<p>I went on to explain that our government provides no method to register with them  as a business and that in the UK you become a business as soon as you  begin trading as a business. Of course, we are registered with the  government for tax, but they only provide the tax return form.</p>
<p>To which they replied:</p>
<blockquote><p>Thank you for your reply. After reviewing your detailed information and further investigation we found the information you provided is correct, and you do not need a business license.</p></blockquote>
<p>So, that&#8217;s right folks: You don&#8217;t need a business license to run a business in the UK.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/uk-business-license/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>British fuel cost per mile</title>
		<link>http://hm2k.com/posts/british-fuel-cost-per-mile</link>
		<comments>http://hm2k.com/posts/british-fuel-cost-per-mile#comments</comments>
		<pubDate>Thu, 11 Nov 2010 19:18:41 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=651</guid>
		<description><![CDATA[I was trying to work out how to estimate how much fuel was costing me per mile at the moment based upon my car&#8217;s average mpg. It&#8217;s not so easy because you have to convert from miles per gallon to pence per liter, not only that but it&#8217;s an imperial gallon. Surely there&#8217;s a calculator [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I was trying to work out how to estimate how much fuel was costing me per mile at the moment based upon my car&#8217;s average mpg.</p>
<p>It&#8217;s not so easy because you have to convert from miles per gallon to pence per liter, not only that but it&#8217;s an imperial gallon.</p>
<p>Surely there&#8217;s a calculator out there that could do this for me to save me having to remember how to work it out.</p>
<p>There wasn&#8217;t, but I had an idea.</p>
<p><span id="more-651"></span>Recently I&#8217;ve been playing with WolframAlpha, however, I&#8217;ve found it has some garbage in garbage out issues. That is, most of the time it thinks what you&#8217;re putting in is garbage so it outputs garbage.</p>
<p>I soon discovered that there was a pattern to how you have to enter the calculation to get it to return the result you want.</p>
<p>Once I&#8217;d figured out the right instruction I discovered their &#8220;widgets&#8221;.</p>
<p>This lets you make a &#8220;widget&#8221; which makes it easy to enter the details to work out the calculations. This way the instruction is always the same.</p>
<p>You can also put the widget on your website or blog.</p>
<p>So here it is:<br />
<script id="WolframAlphaScript7f8987ece495e29ff9ee3d48544e26cb" src="http://www.wolframalpha.com/widget/widget.jsp?id=7f8987ece495e29ff9ee3d48544e26cb" type="text/javascript"></script></p>
<ul>
<li><a href="http://developer.wolframalpha.com/widgets/gallery/view.jsp?id=7f8987ece495e29ff9ee3d48544e26cb">Find out more</a></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/british-fuel-cost-per-mile/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TinySong TCL script for Eggdrop</title>
		<link>http://hm2k.com/posts/tinysong-tcl-script-for-eggdrop</link>
		<comments>http://hm2k.com/posts/tinysong-tcl-script-for-eggdrop#comments</comments>
		<pubDate>Sun, 06 Jun 2010 15:59:35 +0000</pubDate>
		<dc:creator>hm2k</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[eggdrop]]></category>
		<category><![CDATA[grooveshark]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[TCL]]></category>
		<category><![CDATA[tinysong]]></category>

		<guid isPermaLink="false">http://hm2k.com/?p=612</guid>
		<description><![CDATA[If you&#8217;ve not heard of TinySong, you&#8217;re missing out! TinySong allows you to share music using a short URL using Grooveshark. I have created a very simple script that connects to the TinySong API. The TinySong TCL script for Eggdrop allows you to search for a track using tinysong.com and return the artist, title, album [...]


Related posts:<ol><li><a href='/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
<li><a href='/projects/eggtcl' rel='bookmark' title='Permanent Link: eggdrop tcl'>eggdrop tcl</a> <small>These are TCL scripts I have created for eggdrop. License...</small></li>
<li><a href='/projects/pagerank' rel='bookmark' title='Permanent Link: Google RageRank Script'>Google RageRank Script</a> <small>Update: See this script in action at pagerankviewer.com The Google...</small></li>
<li><a href='/posts/trac-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Trac TCL for eggdrop'>Trac TCL for eggdrop</a> <small>I&#8217;ve recently had some fun installing Trac project management software...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve not heard of TinySong, you&#8217;re missing out!</p>
<p>TinySong allows you to share music using a short URL using Grooveshark.</p>
<p>I have created a very simple script that connects to the <a href="http://www.tinysong.com/api">TinySong API</a>.</p>
<p><span id="more-612"></span></p>
<p>The TinySong TCL script for Eggdrop allows you to search for a track using tinysong.com and return the artist, title, album and url.</p>
<p>It works as follows:</p>
<blockquote><p>&gt; .song Midnight Juggernauts &#8211; Nine Lives<br />
&lt;Bot&gt; HM2K, * TinySong: Midnight Juggernauts &#8211; Nine Lives [Dystopia] &lt;http://tinysong.com/uAb8&gt;</p></blockquote>
<ul>
<li><a href="http://hm2k.googlecode.com/svn/trunk/code/tcl/tinysong.tcl">Download tinysong.tcl</a></li>
</ul>
<p>Enjoy!</p>


<p>Related posts:<ol><li><a href='/posts/universal-currency-converter-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Universal Currency Converter TCL for Eggdrop'>Universal Currency Converter TCL for Eggdrop</a> <small>This is a currency converter written in TCL for Eggdrop,...</small></li>
<li><a href='/projects/eggtcl' rel='bookmark' title='Permanent Link: eggdrop tcl'>eggdrop tcl</a> <small>These are TCL scripts I have created for eggdrop. License...</small></li>
<li><a href='/projects/pagerank' rel='bookmark' title='Permanent Link: Google RageRank Script'>Google RageRank Script</a> <small>Update: See this script in action at pagerankviewer.com The Google...</small></li>
<li><a href='/posts/trac-tcl-for-eggdrop' rel='bookmark' title='Permanent Link: Trac TCL for eggdrop'>Trac TCL for eggdrop</a> <small>I&#8217;ve recently had some fun installing Trac project management software...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://hm2k.com/posts/tinysong-tcl-script-for-eggdrop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.923 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-02-08 13:53:53 -->
