<?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>ThePizzy.net/blog &#187; Web</title>
	<atom:link href="http://thepizzy.net/blog/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://thepizzy.net/blog</link>
	<description>Solving the complex in 140 characters or less...</description>
	<lastBuildDate>Mon, 02 Jan 2012 15:55:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Hamachi Web Status Images</title>
		<link>http://thepizzy.net/blog/2009/09/hamachi-web-status-images/</link>
		<comments>http://thepizzy.net/blog/2009/09/hamachi-web-status-images/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 16:05:13 +0000</pubDate>
		<dc:creator>[[Neo]]</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[tsnLocal.net]]></category>
		<category><![CDATA[hamachi]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://thepizzy.net/blog/?p=474</guid>
		<description><![CDATA[Update&#8230; Unfortunately, LogMeIn figured out they forgot about that page, I guess when people started reading this post and hitting it on their servers. They have removed the text status...]]></description>
			<content:encoded><![CDATA[<h2>Update&#8230;</h2>
<p>Unfortunately, LogMeIn figured out they forgot about that page, I guess when people started reading this post and hitting it on their servers. They have removed the text status as well as all the others, and I can&#8217;t figure out why they would do such a thing.</p>
<p>I&#8217;m also not sure what they&#8217;re offering as an alternative either. So if you know, please leave a comment below. Thanks.</p>
<h2>Depreciated Process&#8230;</h2>
<p><img class="alignleft size-full wp-image-628" title="LogMeIn Hamachi Logo" src="http://thepizzy.net/blog/wp-content/uploads/2009/09/hamachi1.jpg" alt="" width="384" height="189" />A while back, I started a project called <a href="http://thepizzy.net/blog/?s=tsnlocal">tsn.lcl or tsnlocal</a>, but gave up on it when my electricity bill hit $400 in a month.</p>
<p>Today, I decided to fix up the domain name and get it back on the internet &#8211; at least to remove it from GoDaddy&#8217;s Parking Page &#8211; where they&#8217;re making money, not me, off of it.</p>
<p>When I got it <a href="http://tsnlocal.net" target="_blank">published</a> I noticed that none of the Hamachi Web Status images worked anymore, and that the <a href="https://my.hamachi.cc/status/image.php?5.28.161.250">link to such an image</a>, redirected to their login page for your Hamachi Management Dashboard. However, upon further investigation, I found that there was not only an Image version of those status instances, but also a <a href="https://my.hamachi.cc/status/text.php?5.28.161.250">text version</a>.</p>
<p>I really wanted to show the online status of all my machines again, so I wrote my own php script to parse that text data, and created some simple images to show on the website based on the returned status.</p>
<p>So here&#8217;s the code so you can do the same thing&#8230;</p>
<h2>The PHP Function</h2>
<p>{code type=php}&lt;?php<br />
function hamachiImg($ip) {<br />
$url = &#8220;https://my.hamachi.cc/status/text.php?$ip&#8221;;<br />
$status = file_get_contents($url);<br />
$status = preg_replace(&#8216;/\d*\.\d*\.\d*.\d* /&#8217;, &#8221;, $status);<br />
$image_url = &#8220;./images/$status.png&#8221;;<br />
return $image_url;<br />
}<br />
?&gt;{/code}<br />
This code creates a $url variable with the address to the text status, based on the $ip that is passed to it. Then it requests the data, removes the ip address and the trailing space, leaving only the status text. On the server, I have a collection of images with the 4 different statuses as their file name, and with that an $image_url is created to be returned.</p>
<p>The 4 possible statuses are:</p>
<ul>
<li><img class="alignnone" title="hamachi-online" src="http://tsnlocal.net/images/online.png" alt="" width="16" height="17" /> &#8211; online</li>
<li><img class="alignnone" title="hamachi-offline" src="http://tsnlocal.net/images/offline.png" alt="" width="16" height="17" /> &#8211; offline</li>
<li><img class="alignnone" title="hamachi-unknown" src="http://tsnlocal.net/images/unknown.png" alt="" width="16" height="17" /> &#8211; unknown</li>
<li><img class="alignnone" title="hamachi-error" src="http://tsnlocal.net/images/error.png" alt="" width="16" height="17" /> &#8211; error</li>
</ul>
<h2>The HTML Code and PHP Function Call</h2>
<p>Once you have your php function in the page (I stuck mine before the first &lt;html&gt; tag), you can use the php function to insert the image url when you pass it an IP&#8230;<br />
{code type=html}&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td style=&#8221;width: 100%&#8221;&gt;[[Neo]]:&lt;/td&gt;<br />
&lt;td style=&#8221;width: 100%&#8221;&gt; &lt;img src=&#8221;&lt;?php echo hamachiImg(&#8217;5.37.117.104&#8242;); ?&gt;&#8221;&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;{/code}<br />
<a href="http://thepizzy.net/blog/wp-content/uploads/2009/09/hamachi-example.png"><img class="alignright size-full wp-image-477" title="hamachi-example" src="http://thepizzy.net/blog/wp-content/uploads/2009/09/hamachi-example.png" alt="hamachi-example" width="210" height="201" /></a>Once you&#8217;ve done that, assuming you have entered a valid hamachi IP address, the results should look something like the image at right.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/hamachi' rel='tag' target='_blank'>hamachi</a>, <a class='technorati-link' href='http://technorati.com/tag/images' rel='tag' target='_blank'>images</a>, <a class='technorati-link' href='http://technorati.com/tag/status' rel='tag' target='_blank'>status</a>, <a class='technorati-link' href='http://technorati.com/tag/vpn' rel='tag' target='_blank'>vpn</a>, <a class='technorati-link' href='http://technorati.com/tag/Web' rel='tag' target='_blank'>Web</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://thepizzy.net/blog/2009/09/hamachi-web-status-images/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ShoZu and Picasa Web Albums</title>
		<link>http://thepizzy.net/blog/2007/04/shozu-and-picasa-web-albums/</link>
		<comments>http://thepizzy.net/blog/2007/04/shozu-and-picasa-web-albums/#comments</comments>
		<pubDate>Sat, 07 Apr 2007 16:55:16 +0000</pubDate>
		<dc:creator>[[Neo]]</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[tsnMobile]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[backup storage]]></category>
		<category><![CDATA[cell phone]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[computer hard drive]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[picasa web albums]]></category>
		<category><![CDATA[shozu]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://thepizzy.net/blog/?p=77</guid>
		<description><![CDATA[So, I downloaded ShoZu for my cell phone to upload pics to the intarwebs&#8230;and I&#8217;m not excited about it. I put it on the phone to upload pics to Picasa...]]></description>
			<content:encoded><![CDATA[<p>So, I downloaded ShoZu for my cell phone to upload pics to the intarwebs&#8230;and I&#8217;m not excited about it. I put it on the phone to upload pics to Picasa Web Albums, and I think that works fine&#8230;but it&#8217;s the crap that it tacks on to the end of the description to put its spam out there for people to get it too. I&#8217;m not a fan of forced promotion in my things by someone else&#8217;s software. If I want to link you, I&#8217;ll link you.</p>
<p>On the other hand, I have a slightly better experience to report with Picasa Web Albums &#8211; More space and more albums allowed than flickr. The only down side, is the un-integrated mobile uploading&#8230;and that you have to use their software. I&#8217;m hoping that they get sub-categories as well in there, because that would clean up my album&#8217;s front page, and help keep things organized. I&#8217;ve only used it for one day though so far, but I have uploaded nearly 350MB of pictures. I&#8217;m using it as a backup storage for my photos on my computer. I&#8217;ve already lost the pictures of my friends once when my computer hard drive crashed. That ended an era in my life, and I had to start over. I don&#8217;t want that to happen again.</p>
<p>I&#8217;ll probably write more when I find something new, or a better way to do something with these two apps.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/album' rel='tag' target='_blank'>album</a>, <a class='technorati-link' href='http://technorati.com/tag/apps' rel='tag' target='_blank'>apps</a>, <a class='technorati-link' href='http://technorati.com/tag/backup+storage' rel='tag' target='_blank'>backup storage</a>, <a class='technorati-link' href='http://technorati.com/tag/cell+phone' rel='tag' target='_blank'>cell phone</a>, <a class='technorati-link' href='http://technorati.com/tag/computer' rel='tag' target='_blank'>computer</a>, <a class='technorati-link' href='http://technorati.com/tag/computer+hard+drive' rel='tag' target='_blank'>computer hard drive</a>, <a class='technorati-link' href='http://technorati.com/tag/flickr' rel='tag' target='_blank'>flickr</a>, <a class='technorati-link' href='http://technorati.com/tag/photos' rel='tag' target='_blank'>photos</a>, <a class='technorati-link' href='http://technorati.com/tag/Picasa' rel='tag' target='_blank'>Picasa</a>, <a class='technorati-link' href='http://technorati.com/tag/picasa+web+albums' rel='tag' target='_blank'>picasa web albums</a>, <a class='technorati-link' href='http://technorati.com/tag/shozu' rel='tag' target='_blank'>shozu</a>, <a class='technorati-link' href='http://technorati.com/tag/Web' rel='tag' target='_blank'>Web</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://thepizzy.net/blog/2007/04/shozu-and-picasa-web-albums/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[[Oracle]] and tsnlocal.net</title>
		<link>http://thepizzy.net/blog/2006/09/oracle-and-tsnlocalnet/</link>
		<comments>http://thepizzy.net/blog/2006/09/oracle-and-tsnlocalnet/#comments</comments>
		<pubDate>Thu, 21 Sep 2006 22:14:00 +0000</pubDate>
		<dc:creator>[[Neo]]</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[the-spot.net]]></category>
		<category><![CDATA[The-Spot.Network]]></category>
		<category><![CDATA[thepizzy.net]]></category>
		<category><![CDATA[tsnLocal.net]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[[[Oracle]]]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[chat rooms]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dns control]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[email server]]></category>
		<category><![CDATA[email settings]]></category>
		<category><![CDATA[exodus]]></category>
		<category><![CDATA[FileZilla]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[hamachi]]></category>
		<category><![CDATA[instant messaging]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Jabber]]></category>
		<category><![CDATA[jabber client]]></category>
		<category><![CDATA[jabber server]]></category>
		<category><![CDATA[Jabbin]]></category>
		<category><![CDATA[nameserver]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql capabilities]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webpage]]></category>
		<category><![CDATA[webserver]]></category>
		<category><![CDATA[Wildfire]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://thepizzy.net/blog/?p=73</guid>
		<description><![CDATA[I&#8217;ve spent the last two weeks working on getting [[Oracle]] into the role she was designed to play&#8230;but have found it to be a bit more involved than I realized....]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-1191" title="oracle" src="http://thepizzy.net/blog/wp-content/uploads/2007/10/oracle-150x150.png" alt="" width="150" height="150" />I&#8217;ve spent the last two weeks working on getting [[Oracle]] into the role she was designed to play&#8230;but have found it to be a bit more involved than I realized.</p>
<p>Originally, I set up the server to be a <a title="[[Oracle]] Reborn, tsnlocal goes up beta" href="http://thepizzy.net/blog/2006/09/oracle-reborn-tsnlocal-goes-up-beta/" target="_blank">web server with php and sql capabilities</a>. Then I realized I needed to FTP files to the web server, so I installed <a href="http://filezilla.sourceforge.net/" target="_blank">FileZilla Server</a>. Once that was done, I started working on the webpage for tsnlocal.net. I got it up, and then wanted to play around with some other type of server, and decided on a Jabber server for instant messaging. I installed <a href="http://www.jivesoftware.org/index.jsp" target="_blank">Wildfire</a>.</p>
<p>Wildfire is extremely easy to setup and install &#8211; so once I finished that, I looked for a Jabber client. My first choice was a VoIP client called <a href="http://www.jabbin.com/int/" target="_blank">Jabbin</a>, but I couldn&#8217;t get it to connect to the server &#8211; probably because I don&#8217;t have a VoIP Protocol on the server to support it. So I went with what we use at work, <a href="http://exodus.jabberstudio.org/: target=">Exodus</a>. It&#8217;s a fairly functional Jabber client &#8211; with chat rooms, IM rosters, subscriptions, and file transfer&#8230;and a bunch of other stuff, including plugins.</p>
<p>Once the Jabber service was set up, and I figured out how to connect to it, I realized that telling people to use my dyndns domain name was not going to work. So I had to figure out how to get my Godaddy.com domain name to link directly to my IP address. But, come to find out, I have to have a Top Level Domain for an IP address, or my dyndns must be a nameserver registered with the NS Registry, in order to use it as a nameserver. I spent 2 days setting up BIND on Windows XP (because there was very little help on the internet for how to do it). Then I jacked around with the Total DNS control settings on godaddy, and got the webserver to work like it should &#8211; almost.</p>
<p>So now you can join the jabber server with yourname@jabber.tsnlocal.net. Now that I had that working, I noticed that there were email settings like pop.tsnlocal.net and smtp.tsnlocal.net that could be set up, so I decided to look into running my own email server. I got in #bloodshotgamer on irc.gamesurge.net and asked some of the tecky people I talk to in there what they&#8217;d recommend. Duck-Lap recommended qmail for linux, but mentined <a href="http://mailenable.com" target="_blank">MailEnable</a> for Windows. I was hoping for an IMAP service so I could run the webpage side of it, but that was not included with this. I might upgrade the service to something new later on, but for now, this was easy to install, and has easy administration, which is what I&#8217;m looking for since most of these other services aren&#8217;t critical to the function of the server. BIND was about the only thing that was hell to configure&#8230;everything else was easily figured out once I had the info and a general grasp of what it does and how it does it.</p>
<p>So now, [[Oracle]] does these things:<br />
- Web Server (Apache, PHP, MySQL)<br />
- FTP Server<br />
- DNS Server<br />
- Email Server<br />
- Jabber Server<br />
- TeamSpeak Voicechat Server<br />
- Hamachi server<br />
- Google Desktop distributed indexing server for the hamachi shares (the essence of tsnlocal)<br />
- and a keep-alive for the dyndns service linking my IP to the dynamic domain</p>
<p>That&#8217;s a lot for a little box&#8230;but I&#8217;m not done yet &#8211; I need to put ssh on it so I can telnet into it. I&#8217;m sure there are other things that I will find to do with it as time goes on too.</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/bind' rel='tag' target='_blank'>bind</a>, <a class='technorati-link' href='http://technorati.com/tag/chat+rooms' rel='tag' target='_blank'>chat rooms</a>, <a class='technorati-link' href='http://technorati.com/tag/DNS' rel='tag' target='_blank'>DNS</a>, <a class='technorati-link' href='http://technorati.com/tag/dns+control' rel='tag' target='_blank'>dns control</a>, <a class='technorati-link' href='http://technorati.com/tag/domain+name' rel='tag' target='_blank'>domain name</a>, <a class='technorati-link' href='http://technorati.com/tag/dyndns' rel='tag' target='_blank'>dyndns</a>, <a class='technorati-link' href='http://technorati.com/tag/Email' rel='tag' target='_blank'>Email</a>, <a class='technorati-link' href='http://technorati.com/tag/email+server' rel='tag' target='_blank'>email server</a>, <a class='technorati-link' href='http://technorati.com/tag/email+settings' rel='tag' target='_blank'>email settings</a>, <a class='technorati-link' href='http://technorati.com/tag/exodus' rel='tag' target='_blank'>exodus</a>, <a class='technorati-link' href='http://technorati.com/tag/FileZilla' rel='tag' target='_blank'>FileZilla</a>, <a class='technorati-link' href='http://technorati.com/tag/FTP' rel='tag' target='_blank'>FTP</a>, <a class='technorati-link' href='http://technorati.com/tag/godaddy' rel='tag' target='_blank'>godaddy</a>, <a class='technorati-link' href='http://technorati.com/tag/hamachi' rel='tag' target='_blank'>hamachi</a>, <a class='technorati-link' href='http://technorati.com/tag/instant+messaging' rel='tag' target='_blank'>instant messaging</a>, <a class='technorati-link' href='http://technorati.com/tag/internet' rel='tag' target='_blank'>internet</a>, <a class='technorati-link' href='http://technorati.com/tag/Jabber' rel='tag' target='_blank'>Jabber</a>, <a class='technorati-link' href='http://technorati.com/tag/jabber+client' rel='tag' target='_blank'>jabber client</a>, <a class='technorati-link' href='http://technorati.com/tag/jabber+server' rel='tag' target='_blank'>jabber server</a>, <a class='technorati-link' href='http://technorati.com/tag/Jabbin' rel='tag' target='_blank'>Jabbin</a>, <a class='technorati-link' href='http://technorati.com/tag/nameserver' rel='tag' target='_blank'>nameserver</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_blank'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/pop' rel='tag' target='_blank'>pop</a>, <a class='technorati-link' href='http://technorati.com/tag/server' rel='tag' target='_blank'>server</a>, <a class='technorati-link' href='http://technorati.com/tag/setup' rel='tag' target='_blank'>setup</a>, <a class='technorati-link' href='http://technorati.com/tag/smtp' rel='tag' target='_blank'>smtp</a>, <a class='technorati-link' href='http://technorati.com/tag/sql' rel='tag' target='_blank'>sql</a>, <a class='technorati-link' href='http://technorati.com/tag/sql+capabilities' rel='tag' target='_blank'>sql capabilities</a>, <a class='technorati-link' href='http://technorati.com/tag/VoIP' rel='tag' target='_blank'>VoIP</a>, <a class='technorati-link' href='http://technorati.com/tag/Web' rel='tag' target='_blank'>Web</a>, <a class='technorati-link' href='http://technorati.com/tag/web+server' rel='tag' target='_blank'>web server</a>, <a class='technorati-link' href='http://technorati.com/tag/webpage' rel='tag' target='_blank'>webpage</a>, <a class='technorati-link' href='http://technorati.com/tag/webserver' rel='tag' target='_blank'>webserver</a>, <a class='technorati-link' href='http://technorati.com/tag/Wildfire' rel='tag' target='_blank'>Wildfire</a>, <a class='technorati-link' href='http://technorati.com/tag/Windows' rel='tag' target='_blank'>Windows</a>, <a class='technorati-link' href='http://technorati.com/tag/%5B%5BOracle%5D%5D' rel='tag' target='_blank'>[[Oracle]]</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://thepizzy.net/blog/2006/09/oracle-and-tsnlocalnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

