<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://hugi.to/blog/styles/rss.css" type="text/css"?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>
 <channel>
  <title>Reto&#039;s Weblog</title>
  <link>http://hugi.to/blog</link>
  <description>&lt;p&gt;Just Blogging...&lt;/p&gt;
</description>
  <pubDate>Sat, 09 Jan 2010 02:51:23 +0100</pubDate>
  <generator>http://www.lifetype.net</generator>
    <item>
   <title>Back again?</title>
   <description>
    &lt;p&gt;
Hefty! It&#039;s been quiet here for almost 2 years, which feels like 20 on the internet, but then &lt;a href=&quot;http://web.archive.org/web/20080424043421/http://www.google.com/&quot; title=&quot;Google on archive.org&quot;&gt;Google still looks the same&lt;/a&gt; as on the &lt;a href=&quot;http://hugi.to/blog/archive/2008/04/24/mixed-tape-20-available-for-download&quot; title=&quot;Old Post written back in 2008 about Mixed Tabe 20&quot;&gt;24th of April 2008&lt;/a&gt;, right?
&lt;/p&gt;
&lt;p&gt;
Well, I&#039;ve started using &lt;a href=&quot;http://code.google.com/p/mycodedump/&quot; title=&quot;Link to my Google Code Project&quot;&gt;Google Code&lt;/a&gt; together with &lt;a href=&quot;http://mercurial.selenic.com/&quot; title=&quot;Mercurial Website&quot;&gt;Mercurial&lt;/a&gt; repositories to manage some of the codings I did. Most of them are probably not very useful, but then again, they where useful for me at some point in time and could be a starting point for others. Furthermore, using a Google Code project is a great way of backing up stuff that needs no privacy ;).
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://code.google.com/p/mycodedump/&quot; title=&quot;My Code Dump - a Google Code Project&quot;&gt;My code dump&lt;/a&gt; has two repositories so far:
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;CMS Made Simple stuff (like plugins, tools etc.), my CMS of choice for small websites. &lt;/li&gt;
	&lt;li&gt;Shell Scripts I wrote. Some to integrate with Nautilus, some to be used on the command line&lt;/li&gt;
&lt;/ul&gt;
BTW: I&#039;ll post important updates regarding &lt;a href=&quot;http://code.google.com/p/mycodedump/&quot;&gt;mycodedump&lt;/a&gt; on this blog.&lt;br /&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
   </description>
   <link>http://hugi.to/blog/archive/2010/01/08/back-again</link>
   <comments>http://hugi.to/blog/archive/2010/01/08/back-again</comments>
   <guid>http://hugi.to/blog/archive/2010/01/08/back-again</guid>
      <dc:creator>reto</dc:creator>
      
    <category>Programming</category>
      
    <category>Shell Dump</category>
      
    <category>Code</category>
         <pubDate>Fri, 08 Jan 2010 21:59:33 +0100</pubDate>
   <source url="http://hugi.to/blog/rss.php?blogId=1&amp;profile=rss20">Reto&#039;s Weblog</source>
     </item>
    <item>
   <title>Googlebot and Site Redirects</title>
   <description>
    &lt;p&gt;
At a first glance it seems like there is nothing on the web, that can hide from beeing indexed by Google. Not only html but 
&lt;a class=&quot;out&quot; href=&quot;http://www.google.com/help/faq_filetypes.html&quot;&gt;twelve(!) other filetypes&lt;/a&gt; are getting indexed at the moment.&lt;br /&gt;
But Google is much pickier as one could assume, whereas its reasons are evident and reasonable:
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;1. Redirects&lt;/strong&gt;&lt;br /&gt;
Googlebot (Google&#039;s Spider) doesn&#039;t follow the &amp;quot;http/1.1 302 Found&amp;quot;
status code (resource temporarily moved). Instead you should use a
&amp;quot;http/1.1 301 Moved Permanently&amp;quot; header to make Google follow the
redirect.&lt;br /&gt;
To make the long story short: If you&#039;re using PHP to do the redirect (and many are using PHP these days) you should add the 
status code header manually because PHP sends a 302 Found status code by default.&lt;br /&gt;
&lt;br /&gt;
This stops Google and therefore is only usefull if your site is really under maintenance at the moment:
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000bb&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&#039;Location:&amp;nbsp;http://www.foo.com/bar/&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;
This makes Google follow the redirect and index the Site:&amp;nbsp;
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000bb&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&#039;HTTP/1.1&amp;nbsp;301&amp;nbsp;Moved&amp;nbsp;Permanently&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&#039;Location:&amp;nbsp;http://www.foo.com/bar/&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;
If you prefer to do the redirects within an .htaccess
file (on Apache, of course), you could do it like this. Every Request
to foo.com/ is redirected to foo.com/bar/:&amp;nbsp;
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&amp;nbsp;#Redirect&amp;nbsp;(this&amp;nbsp;will&amp;nbsp;result&amp;nbsp;in&amp;nbsp;a&amp;nbsp;301&amp;nbsp;permanently&amp;nbsp;moved&amp;nbsp;status&amp;nbsp;code)&lt;br /&gt;
&amp;nbsp;RedirectMatch&amp;nbsp;permanent&amp;nbsp;^/$&amp;nbsp;http://www.foo.com/bar/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;
I expect it&#039;s faster and less resource intensive to set up an .htaccess file because there 
is no need to parse any php code at all. Though it won&#039;t matter in most cases anyway. (untested assumption)
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;2. Sessions&lt;/strong&gt;&lt;br /&gt;
Google doesn&#039;t follow links with a session attached. If you&#039;ve enabled session.use_trans_sid in your php.ini you should check if Google is requesting the page. If your site displays fine without the use of sessions simply don&#039;t start one if google is visiting. ;-)
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span style=&quot;color: #0000bb&quot;&gt;&amp;lt;?php&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff8000&quot;&gt;//&amp;nbsp;session&amp;nbsp;is&amp;nbsp;not&amp;nbsp;started&amp;nbsp;to&amp;nbsp;serve&amp;nbsp;google&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;stristr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&#039;HTTP_USER_AGENT&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;],&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000&quot;&gt;&#039;google&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&amp;nbsp;===&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;false&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;session_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #0000bb&quot;&gt;?&amp;gt;&lt;br /&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;
&lt;/div&gt;
&lt;p&gt;
Add as many search engine bots as you like. A more sophisticated method (like  &lt;a class=&quot;out&quot; href=&quot;http://php.net/preg_match&quot;&gt;regular expressions&lt;/a&gt;) is not needed here, but would of 
course work, too.
&lt;/p&gt;
   </description>
   <link>http://hugi.to/blog/archive/2003/10/02/googlebot-and-site-redirects</link>
   <comments>http://hugi.to/blog/archive/2003/10/02/googlebot-and-site-redirects</comments>
   <guid>http://hugi.to/blog/archive/2003/10/02/googlebot-and-site-redirects</guid>
      <dc:creator>reto</dc:creator>
      
    <category>How To</category>
      
    <category>Code</category>
         <pubDate>Thu, 02 Oct 2003 19:45:34 +0200</pubDate>
   <source url="http://hugi.to/blog/rss.php?blogId=1&amp;profile=rss20">Reto&#039;s Weblog</source>
     </item>
    <item>
   <title>SpamPoison</title>
   <description>
    SpamPoison generates virtually infinite numbers of bogus e-mail addresses to 
&amp;quot;poison&amp;quot; the e-mail databases of spammers using e-mail harvester tools to
gather e-mails over the web.&lt;br /&gt;
It can be used to help reduce the problem of spam on the Internet 
in general, and at sites using SpamPoison in particular.&lt;br /&gt;
&lt;br /&gt;
Each randomly generated website again generates random email addresses
and content and links to its self with pseudo-hyperlinks, trapping
badly engineered
address harvesting web crawlers, and to fool them into adding enormous
quantities of completely bogus e-mail addresses to the e-mail address
databases of the spammers, thus polluting those databases so badly that
they become essentially useless.&lt;br /&gt;
&lt;br /&gt;
SpamPoison is a port of the Perl script &#039;Wpoison&#039; by Ronald F. Guilmette.&lt;br /&gt;
&lt;strike&gt;Please visit monkeys.com/wpoison/
for detailed Informations on what SpamPoison is and why it could be usefull to you.&lt;/strike&gt;&lt;br /&gt;
The original Wpoison site seams to have disapeared. At least I can&#039;t
find anything but broken links to the original wpoison script. Well,
for more information on how to use the script, please download the
zipped package below. The included install.txt has some instructions on
how to set up your own spam-harvester trap.
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://hugi.to/mailme/&quot;&gt;SpamPoison Demo&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://hugi.to/downloads/files/php/SpamPoison.zip&quot;&gt;Download SpamPoison&lt;/a&gt; (zip, 759kb)
   </description>
   <link>http://hugi.to/blog/archive/2003/07/29/spampoison</link>
   <comments>http://hugi.to/blog/archive/2003/07/29/spampoison</comments>
   <guid>http://hugi.to/blog/archive/2003/07/29/spampoison</guid>
      <dc:creator>reto</dc:creator>
      
    <category>Programming</category>
      
    <category>Code</category>
         <pubDate>Tue, 29 Jul 2003 19:27:23 +0200</pubDate>
   <source url="http://hugi.to/blog/rss.php?blogId=1&amp;profile=rss20">Reto&#039;s Weblog</source>
     </item>
    <item>
   <title>SmileWare for EPOC ER5 Devices</title>
   <description>
    &lt;p&gt;
&lt;strong&gt;SmileWare is freeware&lt;/strong&gt; for EPOC32 devices. Actually, all my SmileWare is tested on a 
Psion S5 and on the ER5-SDK, which means that SmileWare should be compatible with all EPOC Machines. 
SmileWare is absolutely free, but I would like you to &lt;a class=&quot;in&quot; href=&quot;http://hugi.to/contact/&quot;&gt;send me a :-)&lt;/a&gt; or any comments and bug-reports!
&lt;/p&gt;
&lt;p&gt;
Smileware is written in OPL, which recently was opensourced! Please visit 
&lt;a class=&quot;out&quot; href=&quot;http://opl-dev.sourceforge.net/&quot;&gt;opl-dev.sourceforge.net&lt;/a&gt; for further information.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;LinkSwitch v3.00&lt;/strong&gt;&lt;br /&gt;
LinkSwitch is a very small application, which lets you switch on/off the remote link (RS232) easily.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;customizable shortcuts to switch the link on or off&lt;/li&gt;
	&lt;li&gt;icon on the Extras bar indicates whether the link is on or off&lt;/li&gt;
	&lt;li&gt;switches the remote link on, when the external power ist plugged in&lt;/li&gt;
	&lt;li&gt;checks whether you want to close LinkSwitch for backup or not&lt;/li&gt;
	&lt;li&gt;simply switch the link on or off by typing the LinkSwitch icon on the Extras bar&lt;/li&gt;
	&lt;li&gt;choose whether you want to close LinkSwitch for backup or not&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/projects/epoc/screens/LinkSwitch.jpg&quot;&gt;Screenshot&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/LinkSwitch.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
&lt;strong&gt;DayCount v2.20&lt;/strong&gt;&lt;br /&gt;
Ever wondered how many days remain until...&lt;br /&gt;
DayCount pops up at the switch on of your Psion and disappears 
again after a timeout of one to nine seconds.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;your very own message with up to 100 characters&lt;/li&gt;
	&lt;li&gt;icon on the Extras bar indicates whether the link is on or off&lt;/li&gt;
	&lt;li&gt;countdown up to the 2100-01-01&lt;/li&gt;
	&lt;li&gt;delay after switch on&lt;/li&gt;
	&lt;li&gt;choose whether you want to close DayCount for backup or not&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/projects/epoc/screens/DayCount.jpg&quot;&gt;Screenshot&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/DayCount.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
&lt;strong&gt;BattWatch v1.00&lt;/strong&gt;&lt;br /&gt;
As the name suggests, BattWatch keeps an eye on the batteries of your EPOC machine. 
It informs you when the voltage of the batteries ist too low.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;nothing really special, but I think it is pretty useful&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/projects/epoc/screens/BattWatch.jpg&quot;&gt;Screenshot&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/BattWatch.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
&lt;strong&gt;Sound5 v1.00&lt;/strong&gt;&lt;br /&gt;
Sound5 plays a sound file at every switch on of your EPOC device.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;nothing really special, anyway...&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/Sound5.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
&lt;strong&gt;Mute5 v1.10&lt;/strong&gt;&lt;br /&gt;
With Mute5 you can switch the sound/alarm on and off with one single click on the Mute5 icon in the Extras bar. 
The icon indicates whether the sound is switched on or off.&lt;br /&gt;
&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/Mute5_it.zip&quot;&gt;Italian version&lt;/a&gt; translated by &lt;a class=&quot;in&quot; href=&quot;mailto:digre@psion-it.com&quot;&gt;Stefano Di Gregorio&lt;/a&gt;.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;icon on the Extras bar indicates whether the sound is on or off&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/projects/epoc/screens/Mute5.jpg&quot;&gt;Screenshot&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/Mute5.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
&lt;strong&gt;Mute5x v1.00&lt;/strong&gt;&lt;br /&gt;
Mute5x automatically turns the alarm sound off, when your machine is connected to PsiWin and on again, 
when the remote link is disconnected. This is usefull if you sync your agenda with a PC scheduler and 
don&#039;t want your Psion and the PC making noise at the same time.&lt;br /&gt;
&lt;/p&gt;
Features:
&lt;ul&gt;
	&lt;li&gt;icon on the Extras bar indicates whether the sound is on or off&lt;/li&gt;
	&lt;li&gt;customizeable shortcuts to switch the sound on or off&lt;/li&gt;
	&lt;li&gt;switches the sound off, when connected to the desktop and vice versa&lt;/li&gt;
	&lt;li&gt;sis installation file&lt;/li&gt;
	&lt;li&gt;official UID&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/Mute5x.zip&quot;&gt;Download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;p&gt;
To install sis files from your PC using PsiWin earlier than v2.1, you have to install 
&lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/epocinst.zip&quot;&gt;EPOC Install&lt;/a&gt; (112kb) first. This program requires Win9x.&lt;br /&gt;
To install sis files directly form your EPOC machine, make sure you have an Add/remove 
icon in the Control panel. Else download the &lt;a class=&quot;in&quot; href=&quot;http://hugi.to/downloads/files/epoc/inst_te.zip&quot;&gt;Add/remove Control panel&lt;/a&gt; (25kb).
&lt;/p&gt;
   </description>
   <link>http://hugi.to/blog/archive/2000/08/21/smileware-for-epoc-er5-devices</link>
   <comments>http://hugi.to/blog/archive/2000/08/21/smileware-for-epoc-er5-devices</comments>
   <guid>http://hugi.to/blog/archive/2000/08/21/smileware-for-epoc-er5-devices</guid>
      <dc:creator>reto</dc:creator>
      
    <category>Code</category>
         <pubDate>Mon, 21 Aug 2000 19:42:31 +0200</pubDate>
   <source url="http://hugi.to/blog/rss.php?blogId=1&amp;profile=rss20">Reto&#039;s Weblog</source>
     </item>
   </channel>
</rss>