<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tech on Ricky Moorhouse</title>
    <link>https://rickymoorhouse.uk/categories/tech/</link>
    <description>Recent content in Tech on Ricky Moorhouse</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Mon, 24 Jun 2013 19:46:28 +0000</lastBuildDate>
    <atom:link href="https://rickymoorhouse.uk/categories/tech/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Blog hosting wonderings...</title>
      <link>https://rickymoorhouse.uk/blog/2013/blog-hosting-wonderings-2/</link>
      <pubDate>Mon, 24 Jun 2013 19:46:28 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2013/blog-hosting-wonderings-2/</guid>
      <description>&lt;p&gt;A while back I had an e-mail from my web hosting company saying they were increasing the price for the package I was using. This got me thinking about whether the route I&#39;d taken for hosting was the best option and if I&#39;m getting my money&#39;s worth there. For reference I had a reseller hosting package, hosting a few sites for family members using not very much disk space or bandwidth - certainly not near the allowance on the package. So I started thinking about what I would do if it was just my site, and this is my thinking out loud/somewhere to document my ideas/findings:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tweeting Google Calendar reminders with Postmark</title>
      <link>https://rickymoorhouse.uk/blog/2012/tweeting-google-calendar-reminders-with-postmark/</link>
      <pubDate>Fri, 27 Jan 2012 12:41:09 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2012/tweeting-google-calendar-reminders-with-postmark/</guid>
      <description>&lt;p&gt;A while back I wrote my &lt;a href=&#34;http://samespirit.net/ricky/2009/09/15/google-calendar-to-twitter/&#34;&gt;original script&lt;/a&gt; to tweet event reminders from Google Calendar and it&#39;s been through a couple of iterations since and been broken for a while. Well finally I got round to update it to use OAuth to connect to twitter using the &lt;a href=&#34;https://github.com/abraham/twitteroauth&#34;&gt;twitteroauth library&lt;/a&gt; and switched to using &lt;a href=&#34;http://blog.postmarkapp.com/post/15687406657/introducing-postmark-inbound-easily-parse-replies-other&#34;&gt;Postmark Inbound&lt;/a&gt; for handling the incoming e-mail.&lt;/p&gt;&#xA;&lt;p&gt;What you will need&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Web hosting with php&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;A Google calendar attached to a Gmail account&lt;/p&gt;</description>
    </item>
    <item>
      <title>Get your advent calendars here</title>
      <link>https://rickymoorhouse.uk/blog/2011/get-your-advent-calendars-here/</link>
      <pubDate>Fri, 02 Dec 2011 11:58:13 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2011/get-your-advent-calendars-here/</guid>
      <description>&lt;p&gt;Yes I know it&#39;s now the 2nd December so this is a day late, but here&#39;s a list of the online advent calendars I&#39;ve seen so far (and I&#39;ll probably keep adding to it!)&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://24ways.org/&#34;&gt;24 Ways&lt;/a&gt; - Web development tutorial every day till Christmas&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://advent.dts.edu/&#34;&gt;DTS Advent Devotionals&lt;/a&gt; - A devotional each day on the names of Jesus&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://2011.adfont-calendar.com/&#34;&gt;Adfont Calendar&lt;/a&gt; - A free webfont every day in advent&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;http://www.prezzorestaurants.co.uk/advent&#34;&gt;Prezzo&lt;/a&gt; - A competition to win vouchers each day&lt;/p&gt;</description>
    </item>
    <item>
      <title>Firewall rules for Synergy in iptables</title>
      <link>https://rickymoorhouse.uk/blog/2011/firewall-rules-for-synergy-in-iptables/</link>
      <pubDate>Wed, 05 Oct 2011 12:02:31 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2011/firewall-rules-for-synergy-in-iptables/</guid>
      <description>&lt;p&gt;For a while I&#39;ve been turning off iptables to let my secondary machine connect as &lt;a href=&#34;http://synergy2.sourceforge.net&#34;&gt;synergy&lt;/a&gt; client to let me use one keyboard and mouse across both machines.  Finally today I decided to set up the rules properly to do it, so here&#39;s how:&lt;/p&gt;&#xA;&lt;p&gt;Create a new rule file in the iptables chain directory for incoming rules:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo vi /etc/iptables.d/filter/INPUT/53-custom-synergys.rule&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;with the following lines in it:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;# Allows incoming flows for Synergy.&#xA;-A INPUT -p tcp -m tcp --dport 24800 -j ACCEPT&#xA;-A INPUT -p udp -m udp --dport 24800 -j ACCEPT&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Restart iptables for the rules to take effect&lt;/p&gt;</description>
    </item>
    <item>
      <title>Distraction free writing - Artsy Editor or Wordpress 3.2</title>
      <link>https://rickymoorhouse.uk/blog/2011/distraction-free-writing-artsy-editor-or-wordpress-3-2/</link>
      <pubDate>Thu, 14 Jul 2011 12:10:47 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2011/distraction-free-writing-artsy-editor-or-wordpress-3-2/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://rickymoorhouse.files.wordpress.com/2011/07/artsy-popup.png&#34;&gt;&lt;img src=&#34;http://rickymoorhouse.files.wordpress.com/2011/07/artsy-popup.png&#34; alt=&#34;&#34;&gt;&lt;/a&gt;For a while I&#39;ve been following the updates on a new plugin for Wordpress - &lt;a href=&#34;http://artsyeditor.com/&#34;&gt;Artsy Editor&lt;/a&gt; which gives you a completely clean page in which to write your post with easy access to the formatting options through a popup which appears &lt;em&gt;intelligently&lt;/em&gt; when you select text, as seen in the image above. You can also drag an image into the editor to upload and insert it where you are typing. All in all it works really smoothly.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Delete directories older than 90 days</title>
      <link>https://rickymoorhouse.uk/blog/2010/delete-directories-older-than-90-days/</link>
      <pubDate>Thu, 21 Jan 2010 10:25:16 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2010/delete-directories-older-than-90-days/</guid>
      <description>&lt;p&gt;&lt;code&gt;find /var/log/hostdb/* -type d -mtime +90 -exec rm -rf {} ;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;-type d&#xA;only look at directories, f would be files&#xA;-mtime +90&#xA;modified time greater than 90 days ago&lt;/p&gt;</description>
    </item>
    <item>
      <title>Load CSV data into MySQL</title>
      <link>https://rickymoorhouse.uk/blog/2010/load-csv-data-into-mysql/</link>
      <pubDate>Tue, 12 Jan 2010 11:20:58 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2010/load-csv-data-into-mysql/</guid>
      <description>&lt;code&gt;&#xA;    load data local infile &#39;&lt;em&gt;export.csv&lt;/em&gt;&#39; into table &lt;em&gt;table_name&lt;/em&gt;&#xA;    fields terminated by &#39;,&#39;&#xA;    enclosed by &#39;&#34;&#39;&#xA;    lines terminated by &#39;n&#39;&#xA;    (&lt;em&gt;field_list&lt;/em&gt;)&#xA;    &lt;/code&gt;</description>
    </item>
    <item>
      <title>Google Calendar to Twitter</title>
      <link>https://rickymoorhouse.uk/blog/2009/google-calendar-to-twitter/</link>
      <pubDate>Tue, 15 Sep 2009 12:14:20 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2009/google-calendar-to-twitter/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;http://samespirit.net/ricky/images/2009/gcal2twitter.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;For our &lt;a href=&#34;http://samespirit.net/momentum/&#34;&gt;Momentum men&#39;s events&lt;/a&gt; we have a &lt;a href=&#34;http://calendar.google.com&#34;&gt;Google Calendar&lt;/a&gt; that we use to manage the upcoming events, and this gets pulled into our website using the Wordpress plugin ICSCalendar. Recently I set up a &lt;a href=&#34;http://twitter.com/momentummen&#34;&gt;twitter account &lt;/a&gt; as well, and decided that it would be useful to provide reminders of events on there, which people could then follow and receive SMS updates for.&lt;/p&gt;&#xA;&lt;p&gt;Initially I had a look around to see what I could find, and came across &lt;a href=&#34;http://calendartweet.com&#34;&gt;Calendar Tweet&lt;/a&gt;, but that didn&#39;t do quite what I was looking for. Then I remembered &lt;a href=&#34;http://smtp2web.com&#34;&gt;smtp2web.com&lt;/a&gt;, which you can send e-mails to and it will post them to your website over http. So I set up our gmail account to forward the event reminders to my smtp2web e-mail address and built a PHP script to receive the content, parse it and send a nicely formatted message to twitter.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sharing a printer from XP to Vista</title>
      <link>https://rickymoorhouse.uk/blog/2009/sharing-a-printer-from-xp-to-vista/</link>
      <pubDate>Tue, 03 Mar 2009 20:19:01 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2009/sharing-a-printer-from-xp-to-vista/</guid>
      <description>&lt;p&gt;After quite a while of not being able to print from our laptop to the shared printer on our XP desktop, I finally got it working last night thanks to my Dad.&lt;/p&gt;&#xA;&lt;p&gt;Here&#39;s the instructions:&lt;/p&gt;&#xA;&lt;h4 id=&#34;make-sure-you-can-see-the-xp-computer-from-vista&#34;&gt;Make sure you can see the XP computer from Vista.&lt;/h4&gt;&#xA;&lt;p&gt;If you can&#39;t:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;make sure the workgroup is the same (as the defaults are different)&lt;/p&gt;&#xA;&lt;p&gt;In Vista, go to Computer, System Properties&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;make sure file and print sharing is allowed through the firewall - in our case we had to reset the firewall rules on our XP machine and re-add the ones we wanted for this to work:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Chop and chomp in perl</title>
      <link>https://rickymoorhouse.uk/blog/2008/chop-and-chomp-in-perl/</link>
      <pubDate>Tue, 16 Sep 2008 10:23:28 +0000</pubDate>
      <guid>https://rickymoorhouse.uk/blog/2008/chop-and-chomp-in-perl/</guid>
      <description>&lt;p&gt;Just a reminder, so I remember the difference! - chomp is a safer version of &amp;quot;chop&amp;quot; removes any trailing string that matches what perl thinks is a new line)&lt;/p&gt;&#xA;&lt;p&gt;`&#xA;$string = &amp;quot;abcdef&amp;quot;;&lt;br&gt;&#xA;chop($string) # $s is now f, $string is now abcde&lt;br&gt;&#xA;chomp($string) # $string is still now abcde&lt;/p&gt;&#xA;&lt;p&gt;$string = &amp;quot;abcdefn&amp;quot;;&lt;br&gt;&#xA;chomp($string) # $string is now abcdef&lt;br&gt;&#xA;`&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
