<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Glorat</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/" />
    <link rel="self" type="application/atom+xml" href="http://www.glorat.net/atom.xml" />
    <id>tag:www.glorat.net,2008-11-04://1</id>
    <updated>2010-09-11T11:08:58Z</updated>
    <subtitle>Experiments of a nuclear rodent</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>

<entry>
    <title>Witopia VPN Support</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2010/09/witopia-vpn-support.html" />
    <id>tag:www.glorat.net,2010://1.22</id>

    <published>2010-09-11T11:01:34Z</published>
    <updated>2010-09-11T11:08:58Z</updated>

    <summary>I just have to give a quick word about Witopia. They are VPN solution that most of my friends recommended I use when moving to China. So I signed up and it did exactly what it is advertised to do....</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I just have to give a quick word about <a href="http://www.witopia.net/">Witopia</a>. They are VPN solution that most of my friends recommended I use when moving to China. So I signed up and it did exactly what it is advertised to do. On a super fast connection in my temporary China accomodation, I could see how it performed... and it did extremely well!<br /><br />Since moving to my more permanent home with a 1MB line that rarely performs that locally, there has been a performance degradation that has made it unusable. Now to their credit, I had an online chat with these guys complaining about speed (don't us techies hate tickets about "it's slow, please help?") and they did actually make some suggestions and found something that worked for me! They were also clearly technically competent in their field. What a difference this can make!<br /><br />So here is a thumbs up to these guys. On the other side, I do think there must be some capacity issue somewhere - maybe with the Expo - that, who knows, some other provider may have less issue with but such professional support is gold dust and wins hands down.<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>Shopping for home cooked dinner in Shanghai</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2010/08/shopping-for-home-cooked-dinner-in-shanghai.html" />
    <id>tag:www.glorat.net,2010://1.20</id>

    <published>2010-08-13T15:01:43Z</published>
    <updated>2010-08-13T15:09:02Z</updated>

    <summary>I clearly have no idea whether I&apos;m an expat or a Chinese. Even my Ayi thought my shopping list was really odd and thought the supermarket was trying to scam me (by a whole £1)! So my first home cooked...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="shanghai" label="shanghai" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I clearly have no idea whether I'm an expat or a Chinese. Even my Ayi thought my shopping list was really odd and thought the supermarket was trying to scam me (by a whole £1)! So my first home cooked meal, here is what I bought - in prices converted back to GBP<br /><br /><ul><li>£0.68 - Pork Loin x2 Portions (34p each)</li><li>£0.34 - Large portion of chinese vegetables, enough for 2 days</li><li>£0.50 - Garlic, 3 bulbs</li><li>£0.55 - Large ginger</li><li>£1.53 - Bottle of oyster sauch<br /></li><li>£2.15 - Bottle of soy sauce</li><li>£0.50 - Bottle of oil</li><li>£0.84 - Two bottles of sports drink (Ayi thought it was expensive water)</li><li>£4.50 - Bottle of Ariel liquid<br /></li></ul> So really, my home cooked dinner tonight cost roughly... 75p!<br /><br />I couldn't wash my clothes for that price.<br />]]>
        
    </content>
</entry>

<entry>
    <title>Mojito Recipe</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2010/08/mojito-recipe.html" />
    <id>tag:www.glorat.net,2010://1.19</id>

    <published>2010-08-08T16:03:50Z</published>
    <updated>2010-08-08T16:13:06Z</updated>

    <summary>I succeeded in making a Mojito better than most of the bars I&apos;ve been to lately. It took several attempts but got something pretty good in the end. The only thing missing was a lack of some really fresh mint...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="mojito" label="mojito" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I succeeded in making a Mojito better than most of the bars I've been to lately. It took several attempts but got something pretty good in the end. The only thing missing was a lack of some really fresh mint to get that minty taste that really makes a difference.<br /><br />So for as much for the benefit of my memory as much as anything else, here is the recipe. For one glass, you will need:<br /><ul><li>One shot of Cuban white rum</li><li>One shot of carbonated water</li><li>A small handful of mint leaves</li><li>Two small limes</li><li>Two tablespoons of cane sugar water</li><li>Crushed ice<br /></li></ul> ]]>
        <![CDATA[And here are the steps<br /><br />First prepare the cane sugar water. You can apparently buy off the shelf but I made some manually with pot of a small amount of water and 2 blocks of cane sugar - that's quite a lot. Brown sugar is fine too of course. Simmer the water to dissolve the sugar. You want just enough water to dissolve the sugar but not much more or you'll water down the drink. It should end up a nice brown syrup colour<br /><br />Then to make one drink<br /><ul><li>Grab a handful of mint leaves and put into a pestle and mortar with a little brown sugar to act as an abrasive. Mash it up!</li><li>Squeeze a little lime juice into the mortar to help empty the contents into...</li><li>A glass, where you add one shot of rum and one shot of soda water</li><li>Fill the glass with crushed ice</li><li>Add the two tablespoons of cane sugar water</li><li>Squeeze in more lime juice. You'll want about 2 small limes worth of juice, or one large one</li></ul>That's it! There is some trial and error. My personal lessons have been<br /><ul><li>Cuban rum is best. Bacardi is fine</li><li>The mintyiness you get from mint is highly variable. If in doubt, add extra!</li><li>The sugar is also trial and error, depending on how concentrated the solution is</li></ul>Enjoy! I certainly did<br />]]>
    </content>
</entry>

<entry>
    <title>China road traffic</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2010/02/china-road-traffic.html" />
    <id>tag:www.glorat.net,2010://1.16</id>

    <published>2010-02-21T13:33:34Z</published>
    <updated>2010-02-21T14:02:44Z</updated>

    <summary>How can one begin to describe it? lonelyplanet.com sums up my own experience of the day walking around town.&quot;Crossing only when it is safe to do so could perch you at the side of the road in perpetuity, but don&apos;t...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="shanghai" label="shanghai" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[How can one begin to describe it? lonelyplanet.com sums up my own experience of the day walking around town.<br /><br />"Crossing only when it is safe to do so could perch you at the side of the road in perpetuity, but don't imitate the local tendency to cross without looking. The green man at traffic lights does not mean it is safe to cross. Instead, it means it is slightly safer to cross, but you can still be run down by traffic allowed to turn on red lights" - which is what nearly happened to me today!<br /><br />As for the poor cyclists out there, the advice is<br /><br />"Remember you will be on the lowliest transportation device in town, and 
buses, lorries, taxis, cars and scooters will ceaselessly honk at you, 
in that pecking order (just ignore them). [...] Note that cyclists never use lights at night and Chinese pedestrians favour dark clothing, so eat a lot of carrots and cycle carefully"<br /> <br /><br />Somehow I'm not tempted! And they all seem to go without helmets<br /><br />On the bright side, I nabbed lunch for a mere 15RMB today - and that's despite the fact I reckon I was overcharged. But then I couldn't read the menu and who can complain about a £1.50 lunch!<br />]]>
        
    </content>
</entry>

<entry>
    <title>How to put out a kitchen fire?</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2009/02/how-to-put-out-a-kitchen-fire.html" />
    <id>tag:www.glorat.net,2009://1.15</id>

    <published>2009-02-16T23:58:08Z</published>
    <updated>2009-02-17T00:18:42Z</updated>

    <summary>Kitchens are the number one place for a fire to start at home. I have an electrical jobs that take a while to start up and I stupidly walked away for no more than a minute while waiting to heat...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[Kitchens are the number one place for a fire to start at home. I have an electrical jobs that take a while to start up and I stupidly walked away for no more than a minute while waiting to heat a saucepan. Unfortunately, I'd switched on the wrong hob and a towel touching that hob caught fire. Stupidity! Fortunately, being the calm-headed sort, it wasn't too serious and I learned the following lessons should this happen to anyone else<br /><ul><li><b>Don't panic! </b>The good thing about kitchens is that a small fire won't usually spread. If it is large, you'd better be evacuating anyway. Otherwise, if things burn for another 10 seconds, nothing bad will happen. Stop and take a moment to plan what to do</li><li><b>Personal safety first</b>. If it is a large fire, your clothes might catch fire or if it is spreading fast, get out of there and get the experts to deal with it.<br /></li><li><b>Wet towels are your friend</b>. You probably don't have a fire extinguisher nearby but every kitchen has a towel. Drench it in water and use it to cover whatever is on fire, including other towels, chip pans etc. (Much better and safer than splashing water about... don't do that). Towels are probably the most effective way of cooling a fire you'll have handy</li><li><b>Lids and makeshift covers</b>. If wet towels aren't appropriate or you can't immediately get one, put a lid over your burning food or get a pan or wok to cover the fire, the aim being to starve the oxygen. This is easier than getting a wet towel over the target for fire-adverse people but usually isn't as effective as a wet towel unless you can seal off the fire and cut off the air<br /></li><li><b>Switch on the extractor fan</b>. Assuming you've contained the problem, you want to minimize the amount of smoke getting around the place. The smell lingers!</li><li><b>Prevention is better than cure</b>. Don't leave a hob on unattended is what I've learned. My punishment is to tell the world of my stupidity and if one other person learns something, it is worthwhile =)</li></ul>Anyway, in my case, one wet towel to cover the burning wet towel meant I suffered no damage other than a stinky flat<br />]]>
        
    </content>
</entry>

<entry>
    <title>Judge &apos;devastated&apos; as Heathrow robbery trial abandoned for third time, at cost of £22m</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/12/judge-devastated-as-heathrow-robbery-trial-abandoned-for-third-time-at-cost-of-22m.html" />
    <id>tag:www.glorat.net,2008://1.11</id>

    <published>2008-12-10T17:06:38Z</published>
    <updated>2008-12-10T17:23:06Z</updated>

    <summary>I&apos;d hate to have been part of this jury. 5 months into this high profile trial (give or take press restrictions), the jury were sent home. This is the third time the Heathrow robbery has been tried and again it...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Jury Service" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="juryservice" label="jury service" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I'd hate to have been part of this jury. 5 months into this high profile trial (give or take press restrictions), the jury were sent home. This is the <a href="http://www.timesonline.co.uk/tol/news/uk/crime/article5313522.ece">third time the Heathrow robbery has been tried</a> and again it failed to reach a conclusion. The first time it was a defendent's ill health, the second was a <a href="http://en.wikipedia.org/wiki/Hung_jury">hung jury</a> and this was ended in mysterious circumstances. The judge said:<br /><br />"I don't quite know how to say this, because it is the last thing I wanted to tell, you but I am afraid we are not going to be able to continue with this trial.<br /><br />"In the course of a major criminal trial like this one, events sometimes occur which create the risk of real injustice or unfairness to one side or the other and sometimes those events are so serious that the trial cannot continue.<br /><br />"That is what has happened in this case. It wouldn't be appropriate for me to give you any further information about what has occurred." <br /><br />The rumour is that the prosecution were just closing their case when after some deliberation the trial was halted. The jurors were certainly not best pleased. If our trial were to be stopped there would be outrage after 3 months of hearing the evidence!<br />]]>
        
    </content>
</entry>

<entry>
    <title>Rocket Science Problem</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/rocket-science-problem.html" />
    <id>tag:www.glorat.net,2008://1.9</id>

    <published>2008-11-26T21:02:38Z</published>
    <updated>2008-11-26T21:07:37Z</updated>

    <summary> Overview Here&apos;s a set of physics problems to challenge your knowledge of the concepts of energy and motion. Very few have come up with correct answer to all these problems (question 2 in particular) and I&apos;ve asked some very...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Physics" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="physics" label="physics" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[<h1> Overview </h1>
<p> Here's a set of physics problems to challenge your knowledge of the concepts of energy and motion. Very few have come up with correct answer to all these problems (question 2 in particular) and I've asked some very smart Maths and Physics phDs! The maths isn't that hard but you have to be very careful about what equations you use and what assumptions you make </p>
<p>Bonus questions are included that any good A-Level physicist should be able to answer but are not part of the main theme to these questions and are arguably not as hard. Usual assumptions can be made in these questions. Partial marks are given for estimates to answers! </p>
<p>&nbsp;</p>
<h1><a href="http://blog.glorat.net/mt-static/html/editor-content.html?cs=utf-8"></a> Updates </h1>
<ul><li> Assume g = 10 and is constant </li><li> This is NOT a trick question!!! It is all pure and simple physics </li><li> Assume Earth is flat </li></ul>
<p>&nbsp;</p>
<h1><a href="http://blog.glorat.net/mt-static/html/editor-content.html?cs=utf-8"></a> The questions </h1>
 1) <p>Alice, who weighs 100kg, steadly climbs a ladder at a constant velocity to a height of 10 meters and reaches the top after 100 seconds. </p>
<p> Question: What is the minimum energy needed for Alice to do this? </p>
<p> Bonus: What is the person's power output? </p>
<p> 2) </p>
<p>Bob, who also weighs 100kg, straps a rocket pack to his back and follows Alice as she climbs the ladder. That is, Bob also climbs through the air at constant velocity to 10 meters and reachers the top after 100 second.</p><p>For this problem, you can assume the mass of the jet fuel consumed is relatively small compared to the mass of Bob. However, if you feel it helps your calculations, you can assume that this is a pie powered jet pack. In 1) Alice eats a 1kg pie before starting uses up all that pie power to climb the lader. Similarly in 2) Bob puts the 1kg pie into his jet pack and uses it all up to get to the top<br /> </p>
<p> Question: What is the minimum energy needed for Bob to do this? </p>
<p>Question: Does the energy used in both cases depend on the time taken in getting to the top? If not, why not? If so, by how much? </p>
<p> 3) (Bonus problem) </p>
<p>Cain, who also weighs 100kg, puts himself into a human cannon and fires himself up into the air, just reaching the 10 meter height Question: What is the minimum energy needed from the cannon to do this? Bonus: How fast was Cain initially travelling as he left the cannon? </p>
<p> Assumptions: </p>
<ul><li> All energy conversion is perfectly efficient in terms of useful energy </li><li> Everyone is infinitely short </li><li> Bob's jet fuel is as light as you like and produces no heat </li><li> There is no air friction </li><li> ... other usual assumptions? </li></ul>
<p> For answers, email kevin at glorat dot net! </p>
]]>
        
    </content>
</entry>

<entry>
    <title>Movable Type with Class::Trigger 0.12</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/movable-type-with-classtrigger-012.html" />
    <id>tag:www.glorat.net,2008://1.8</id>

    <published>2008-11-22T21:39:45Z</published>
    <updated>2008-11-22T21:50:31Z</updated>

    <summary>In developing my extensions, I kept getting the following error:Got an error: mutiple trigger registration in one add_trigger() call is deprecated. at lib/MT/Entry.pm line 282Compilation failed in require at lib/MT/Compat/v3.pm line 12.BEGIN failed--compilation aborted at lib/MT/Compat/v3.pm line 12.Compilation failed in...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Movable Type" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[In developing my extensions, I kept getting the following error:<br /><pre>Got an error: mutiple trigger registration in one add_trigger() call is deprecated. at lib/MT/Entry.pm line 282<br />Compilation failed in require at lib/MT/Compat/v3.pm line 12.<br />BEGIN failed--compilation aborted at lib/MT/Compat/v3.pm line 12.<br />Compilation failed in require at lib/MT.pm line 1210.<br /></pre><br />The code in MT/Entry.pm is incompatible with Class::Trigger 0.12, which comes with recent versions of perl. If you have set up your paths incorrectly (like $ENV{'MT_HOME'}) or you have plugins that require a version later than the Class::Trigger 0.10 that comes with Movable Type, you will encounter this problem. In my case, I'm linking in external libraries that use the later version.<br /><br />To fix this, I'm using this patch:<br /><pre>--- lib/MT/Entry.pm&nbsp;&nbsp;&nbsp;&nbsp; (revision 3196)<br />+++ lib/MT/Entry.pm&nbsp;&nbsp;&nbsp;&nbsp; (working copy)<br />@@ -279,8 +279,12 @@<br />&nbsp;&nbsp;&nbsp;&nbsp; );<br />&nbsp;}<br /><br />+# Must use separate statements from Class::Trigger 0.12<br />&nbsp;MT::Placement-&gt;add_trigger(<br />&nbsp;&nbsp;&nbsp;&nbsp; post_save&nbsp;&nbsp; =&gt; \&amp;flush_category_cache,<br />+);<br />+<br />+MT::Placement-&gt;add_trigger(<br />&nbsp;&nbsp;&nbsp;&nbsp; post_remove =&gt; \&amp;flush_category_cache<br />&nbsp;);<br /></pre>Issue raised with Six Apart!<br />http://bugs.movabletype.org/default.asp?85080_etup<br />]]>
        
    </content>
</entry>

<entry>
    <title>Writing a letter to My Lord</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/writing-a-letter-to-my-lord.html" />
    <id>tag:www.glorat.net,2008://1.7</id>

    <published>2008-11-20T23:35:47Z</published>
    <updated>2008-11-20T23:46:46Z</updated>

    <summary>I discovered today that my trial has a chance of going beyond the end date of 19th December. This is particularly problematic since I fly out to Hong Kong on the 17th December, as I did tell His Lordship before...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Jury Service" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I discovered today that my trial has a chance of going beyond the end date of 19th December. This is particularly problematic since I fly out to Hong Kong on the 17th December, as I did tell His Lordship before the trial started.<br /><br />And I don't call him His Lordship to be pompous, that's really how to address judges. The standard address to a circuit judge in your typical UK criminal court would be "Your Honour" but in the Old Bailey they are one step up and we say "My Lord".<br /><br />So I have to write a nice little letter to the judge now to plead with him not to cancel my holiday plans! Yes, he does have the power to do that...<br /><br />References:<br /><a href="http://www.englishforums.com/English/HowToAddressAJudge/2/djngw/Post.htm">It will depend on which How to address a Judge?</a><br /><a href="http://www.englishforums.com/English/HowToAddressAJudge/2/djngw/Post.htm">Forms of address for the Judiciary</a><br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>Judgment day for the streetwise kids - Times Online</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/judgment-day-for-the-streetwise-kids---times-online.html" />
    <id>tag:www.glorat.net,2008://1.5</id>

    <published>2008-11-18T23:25:02Z</published>
    <updated>2008-11-19T00:14:18Z</updated>

    <summary>Those who know me personally may be aware that I&apos;m currently on jury service serving at the Central Criminal Court, also known as the &quot;Old Bailey&quot;. Being on jury service means you can&apos;t talk about your trial at all. Maybe...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Jury Service" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Personal" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="juryoldbailey" label="jury &quot;old bailey&quot;" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[Those who know me personally may be aware that I'm currently on jury service serving at the Central Criminal Court, also known as the "Old Bailey". Being on jury service means you can't talk about your trial at all. Maybe when the trial is over I'll blog about it some day.<br /><br />I can probably blog about something completely unrelated though. I saw a bunch of kids pass by the court the other day. Lo and behold, it turns out that The Times were reporting on their visit! I won't talk about my experiences but it is interesting to hear about others<br /><br /><a href="http://women.timesonline.co.uk/tol/life_and_style/women/families/article5149502.ece">http://women.timesonline.co.uk/tol/life_and_style/women/families/article5149502.ece</a><br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>Ubuntu 8.0.4 Hardy Gmail Smarthost setup with Exim4</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/ubuntu-804-hardy-gmail-smarthost-setup-with-exim4.html" />
    <id>tag:blog.glorat.net,2008:/glorat//1.2</id>

    <published>2008-11-04T22:11:52Z</published>
    <updated>2008-11-04T22:48:47Z</updated>

    <summary>I don&apos;t host my own email, it&apos;s not something I want to have to manage given the complexities of hosting your own and the many free email providers out there such as Google&apos;s gmail. Nevertheless, webapps still need to be...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="ubuntu" label="ubuntu" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[I don't host my own email, it's not something I want to have to manage given the complexities of hosting your own and the many free email providers out there such as Google's gmail. Nevertheless, webapps still need to be able to send mail and most will either use sendmail or SMTP. Unfortunately, setting up your own SMTP server for sending email is also not straightforward because if you cannot receive email, your server may be regarded as a spam provider by the outside world.<br /><br />My solution is to set up an SMTP server that routes all outgoing email to Gmail using Exim4's Smarthost facility.<br /> ]]>
        <![CDATA[The best guide I could find was at <a href="http://wiki.debian.org/GmailAndExim4">http://wiki.debian.org/GmailAndExim4</a> . It is reproduced here adapted for Ubuntu 8.0.4 which I am running hear. The steps to run as root or via sudo are<br /><ul><li><tt>apt-get install</tt> <span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span>(It should install the light daemon)</li><li><tt>dpkg-reconfigure&nbsp;exim4-config</tt></li><ul><li>Choose <b>mail sent by smarthost; no local mail</b></li><li>System mail name: Your chosen host name<br /></li><li>IP-addresses to listen on: <b>127.0.0.1</b> (You don't want to allow external connections!)</li><li>Other destinations for which mail is accepted: Leave blank</li><li>Visible domain name for local users: Your chosen host name</li><li>IP address or host name of the outgoing smarthost:&nbsp; <b>smtp.gmail.com::587</b></li><li>Keep number of DNS-queries minimal (Dial-on-Demand)? <b>No</b></li><li>Split configuration into small files? <b>Yes</b></li><li>Root and postmaster mail recipient: Leave blank</li></ul></ul><ul><li><tt>pico /etc/exim4/passwd.client</tt> or other favourite editor</li></ul>And add the following lines, substituting yourAccountName and y0uRpaSsw0RD as appropriate<br /><pre>gmail-smtp.l.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD <br /><span class="anchor" id="line-41"></span>*.google.com:yourAccountName@gmail.com:y0uRpaSsw0RD<br /><span class="anchor" id="line-42"></span>smtp.gmail.com:yourAccountName@gmail.com:y0uRpaSsw0RD</pre><ul><li><tt>update-exim4.conf</tt> <br /></li><li><tt>/etc/init.d/exim4 restart </tt>just for good measure<span class="anchor" id="line-66"></span><span class="anchor" id="line-67"></span></li></ul> ]]>
    </content>
</entry>

<entry>
    <title>I just finished installing Movable Type 4!</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2008/11/i-just-finished-installing-movable-type-4.html" />
    <id>tag:blog.glorat.net,2008://1.1</id>

    <published>2008-11-04T20:44:23Z</published>
    <updated>2008-11-04T20:44:23Z</updated>

    <summary>Welcome to my new blog powered by Movable Type. This is the first post on my blog and was created for me automatically when I finished the installation process. But that is ok, because I will soon be creating posts...</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        Welcome to my new blog powered by Movable Type. This is the first post on my blog and was created for me automatically when I finished the installation process. But that is ok, because I will soon be creating posts of my own!
        
    </content>
</entry>

<entry>
    <title>GD-Sharp for .NET Win32</title>
    <link rel="alternate" type="text/html" href="http://www.glorat.net/2005/01/gd-sharp-for-net-win32.html" />
    <id>tag:www.glorat.net,2005://1.10</id>

    <published>2005-01-11T12:00:00Z</published>
    <updated>2008-11-30T12:08:21Z</updated>

    <summary>GD-Sharp is a .NET wrapper for the GD Library, written by Mircea-Cristian Racasan, developed with mono for Linux and Windows. It is written in C# and it uses GD 2.x and more information about it can be found at http://gd-sharp.sourceforge.net/....</summary>
    <author>
        <name>Glorat</name>
        <uri>http://www.glorat.net</uri>
    </author>
    
        <category term="Software" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-US" xml:base="http://www.glorat.net/">
        <![CDATA[<a href="http://gd-sharp.sourceforge.net/">GD-Sharp</a> is a .NET wrapper for the GD Library, written by Mircea-Cristian Racasan, developed with <a href="http://www-go-mono.com/">mono</a> for Linux and Windows. It is written in C# and it uses GD 2.x and more information about it can be found at <a href="http://gd-sharp.sourceforge.net/">http://gd-sharp.sourceforge.net/</a>. The GD library itself is an ANSI C library for the dynamic creation of images. GD creates PNG, JPEG and GIF images, among other formats. It's home page is at <a href="http://www.boutell.com/gd/">http://www.boutell.com/gd/</a>
<p> I have extended GD-Sharp with the following which should make it back into the main GD-Sharp core shortly subject to a few unresolved issues. Also, unlike the main GD-Sharp library, this is target specifically for Win32/Microsoft .NET rather than mono. Visual Studio .NET 2003 projects are included in the source. </p>
<p>The patches have been integrated into the core codebase now so please visit the <a href="http://gd-sharp.sourceforge.net/">GD-Sharp</a> site for downloads and more information<br /></p>]]>
        <![CDATA[
<h3> Feature Status </h3> The current status as attached is a fully
functioning library with tests passing but some of the bootstrapping
for tests may not be set up correctly. The API (as I would envision it)
is still subject to change. <p> The new features are </p>
<ul><li> GIF Support </li><li> GIF Animation support </li><li> Type-safe Color return values </li><li> API enhancements to be more consistent with .NET </li><li> Various memory leak fixes and speedups with the interop </li><li> Support for building to the Microsoft .NET runtime rather than mono </li></ul>
<p> The current issues are </p>
<ul><li> Explicitly depends on gd 2.0.33 </li><li> Breaks GD-Sharp API (minorly) </li><li> Mono support not yet reintegrated </li></ul>
<p>The first issue is that GD has mangled export names in its current
version. The GD author is aware of this and hopefully will be sorted
out in future. In the mean time, all GD exports are reference by
ordinal to get things to work but this probably won't work with Mono.
Wait until the next GD release! </p>
<p>Updates to this patch will be posted here as well as changes. All
patches will be sent to the GD-Sharp author, I don't intend to maintain
a fork! The reason I'm really doing this is so that I can get animated
GIF support for my [[Ray Tracing]] program! </p>
<p>&nbsp;</p>
<h3> Usage </h3>
<p> To build from source, extract the zip file which should provide the
.NET 2003 project files that should be compilable. To run the sample
app and NUnit testsuites, you will need the bgd.dll file in the output
directory (this needs simplifying). This DLL can be
downloaded from the main GD website or directly from <a href="http://www.boutell.com/gd/http/gdwin32.zip">http://www.boutell.com/gd/http/gdwin32.zip</a> . Bear in mind only GD 2.0.33 is explicitly tested, other versions <em>probably won't</em> work. This dll is also included in the binaries zip file </p><br />]]>
    </content>
</entry>

</feed>

