<?xml version="1.0" encoding="utf-8" ?>

<rss version="0.91" >
<channel>
<title>The new balance</title>
<link>http://jdv.me.uk/</link>
<description>James Valentine explores the fringes of the work/life balance, with interesting results...</description>
<language>en</language>
<image>
        <url>http://jdv.me.uk/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: The new balance - James Valentine explores the fringes of the work/life balance, with interesting results...</title>
        <link>http://jdv.me.uk/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Uplifting Bible quote</title>
    <link>http://jdv.me.uk/archives/152-Uplifting-Bible-quote.html</link>

    <description>
        I keep seeming to bump into these today. Here&#039;s a good one:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&quot;For I know the plans I have for you&quot; declares our Lord Jesus Christ, &quot;they are plans to prosper you, to give you a hope and a future and not to destroy you.&quot;&lt;/blockquote&gt; That&#039;s from the Book of Jeremiah Chapter 29, verse 11.&lt;br /&gt;
&lt;br /&gt;
According to Wikipedia, Jeremiah had a happy early life, but has come to be known by scholars as the &quot;weeping prophet&quot; due to his rather touching Book of Lamentations, one of the four he wrote in the present day Bible canon. His spiritual role as a prophet was to point out where people were going wrong in their relationship with God and to bring the bad news of God&#039;s anger and frustration to the communities who ignored God. 
    </description>
</item>
<item>
    <title>Aphorism #271 In every Occupation if you know little stick to the safest</title>
    <link>http://jdv.me.uk/archives/151-Aphorism-271-In-every-Occupation-if-you-know-little-stick-to-the-safest.html</link>

    <description>
        Another good one from &lt;a href=&quot;http://en.wikipedia.org/wiki/Baltasar_Graci%C3%A1n&quot; title=&quot;Read all about him on Wikipedia&quot;&gt;Balthazar Gracian&lt;/a&gt;. I take this approach with people&#039;s production systems...&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Aphorism #271 In every Occupation if you know little stick to the safest.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;If you are not respected as subtle, you will be regarded as sure. On the other hand, a man well trained can plunge in and act as he pleases. To know little and yet seek danger is nothing else than to seek ruin. In such a case take stand on the right hand, for what is done cannot be undone. Let little knowledge keep to the king&#039;s highway, and in every case, knowing or unknowing, security is shrewder than singularity.&lt;/blockquote&gt; 
    </description>
</item>
<item>
    <title>Cryptographic Hash Functions UNO Component for OpenOffice.org</title>
    <link>http://jdv.me.uk/archives/150-Cryptographic-Hash-Functions-UNO-Component-for-OpenOffice.org.html</link>

    <description>
        You, like me, might be wanting to create MD5 hashes in OpenOffice Calc spreadsheets. You, like me, might be wondering why the &lt;a href=&quot;http://extensions.services.openoffice.org&quot; title=&quot;Oh dear&quot;&gt;OpenOffice repository for Extensions&lt;/a&gt; is unusable.&lt;br /&gt;
&lt;br /&gt;
If this is true then like me, you might want a link to the &lt;a href=&quot;http://extensions.services.openoffice.org/e-files/3010/4/Cryptographic.oxt&quot; title=&quot;Get it here!&quot;&gt;Cryptographic Hash Functions UNO Component for OpenOffice.org&lt;/a&gt;, because the extensions site is not working very well at the moment.&lt;br /&gt;
&lt;br /&gt;
I did what anyone would have done and filched the link from &lt;a href=&quot;http://webcache.googleusercontent.com/search?q=cache:Wuh9iatLpdAJ:extensions.services.openoffice.org/en/project/Cryptographic+http://extensions.services.openoffice.org/en/project/Cryptographic&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=uk&amp;client=ubuntu&amp;source=www.google.com&quot;&gt;Google&#039;s cache of the page&lt;/a&gt;. 
    </description>
</item>
<item>
    <title>Renaming files Part I: inserting before the extension</title>
    <link>http://jdv.me.uk/archives/149-Renaming-files-Part-I-inserting-before-the-extension.html</link>

    <description>
        I wanted to put some text before the extension on some files. I had been doing that with a rename regex, matching the extension, then replacing it with extra-bit+the extension. Messy. This is much nicer. Thanks to &lt;a href=&quot;http://movingtofreedom.org/2008/04/01/regex-match-filename-base-and-extension/&quot; title=&quot;Regex tutorial&quot;&gt;movingtofreedom&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$ ls&lt;br /&gt;
after_1.jpg   before_const_1.jpg  before_const_3.jpg  detail_1.jpg&lt;br /&gt;
after_2.jpg   before_const1.jpg   before_const3.jpg   detail_2.jpg&lt;br /&gt;
before_1.jpg  before_const_2.jpg  before_const_4.jpg  detail_3.jpg&lt;br /&gt;
before_2.jpg  before_const2.jpg   before_const4.jpg&lt;br /&gt;
&lt;br /&gt;
$ rename &#039;s/(.+?)(\.[^.]*$|$)/$1_sm$2/g&#039; *&lt;br /&gt;
$ ls&lt;br /&gt;
after_1_sm.jpg   before_2_sm.jpg        before_const_2_sm.jpg  before_const3_sm.jpg   detail_1_sm.jpg&lt;br /&gt;
after_2_sm.jpg   before_const_1_sm.jpg  before_const2_sm.jpg   before_const_4_sm.jpg  detail_2_sm.jpg&lt;br /&gt;
before_1_sm.jpg  before_const1_sm.jpg   before_const_3_sm.jpg  before_const4_sm.jpg   detail_3_sm.jpg&lt;br /&gt;
&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
As you can see, that lovely little regex (With two backreferences, I must say) allowed me to add _sm before each filename extension. As you expect, I batch-resized these images to thumbnail size with the excellent mogrify. 
    </description>
</item>
<item>
    <title>Voiceover profile - have a listen</title>
    <link>http://jdv.me.uk/archives/148-Voiceover-profile-have-a-listen.html</link>

    <description>
        So much for all that &quot;last post&quot; nonsense. As people have been asking, here&#039;s a link to my &lt;a href=&quot;http://voice123.com/jamesvalentine&quot; title=&quot;Hear me read!&quot;&gt;Voice123.com profile&lt;/a&gt;, where you can hear me talking in my serious and silly voices.&lt;br /&gt;
&lt;br /&gt;
I&#039;m hoping to get some voiceover work using this as my showreel, so if you know anyone who wants their answerphone message doing (or a nice, long, expensive car commericial would be nice), please send them my details! I&#039;m competing with &lt;a href=&quot;http://harlanhogan.com/&quot; title=&quot;That other famous voice&quot;&gt;Harlan Hogan&lt;/a&gt; and, naturally &lt;a href=&quot;http://www.jonbriggs.com/&quot; title=&quot;Another famous voice&quot;&gt;John Briggs&lt;/a&gt;, self-styled &quot;on-air male&quot; of Weakest Link fame. 
    </description>
</item>
<item>
    <title>The last post right here for a while?</title>
    <link>http://jdv.me.uk/archives/147-The-last-post-right-here-for-a-while.html</link>

    <description>
        I will be posting on &lt;a href=&quot;http://blog.jdv.me.uk&quot;&gt;my Travel Blog&lt;/a&gt; for a while. It is much easier for me to update, simply by sending it e-mail. It&#039;s address is simply blog.jdv.me.uk so you can find it and bookmark it easily.&lt;br /&gt;
&lt;br /&gt;
If I think of anything which doesn&#039;t relate to travel, and if I have the time, I might still post here. But for the moment, the &lt;a href=&quot;http://blog.jdv.me.uk&quot;&gt;Travel Blog&lt;/a&gt; is the place to be! 
    </description>
</item>
<item>
    <title>Joy</title>
    <link>http://jdv.me.uk/archives/146-Joy.html</link>

    <description>
        Something I found on &lt;a href=&quot;http://quora.com&quot;&gt;Quora&lt;/a&gt; (try it: you&#039;ll love it) which made me think I might be on the right track!&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&#039;Weep and you weep alone! - What a lie this is! Weep and you will find a million crocodiles to weep with you. The world is forever weeping. The world is drenched in tears... But joy, joy is a kind of ecstatic bleeding, a disgraceful sort of contentment which overflows from every pore of your being. You can&#039;t make people joyous by being joyous yourself. Joy has to be generated by oneself: it is or it isn&#039;t. Joy is founded on something too profound to be understood or communicated.&lt;br /&gt;
&lt;br /&gt;
To be joyous is to be a madman in a world of sad ghosts.&#039;&lt;br /&gt;
&lt;br /&gt;
-Henry Miller&lt;br /&gt;
&lt;br /&gt;
&lt;/blockquote&gt; 
    </description>
</item>
<item>
    <title>Redshift to reduce eyestrain at night</title>
    <link>http://jdv.me.uk/archives/145-Redshift-to-reduce-eyestrain-at-night.html</link>

    <description>
        If your monitor, like mine, is a little bright and on the blue side, you might appreciate &lt;a href=&quot;http://jonls.dk/redshift/&quot;&gt;Redshift&lt;/a&gt; available on Linux and Windows (with caveats). It takes your location and the time of day and alters your monitor settings to make the colours match daylight during the day and tungsten during the night. You can tweak the settings quite a lot. I don&#039;t like the screen getting so red during the night - it&#039;s a cheap laptop screen so the colours are bad enough as it is without too much more messing around.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the command I&#039;m using on Linux, using Medmenham as my geographical location. You can easily get latitude and longitude for any place using Google maps: find the place, and the lat/lng is after &lt;strong&gt;&amp;amp;ll= &lt;/strong&gt; in the URL when you click &lt;strong&gt;Link&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
gtk-redshift -l 51.556459:-0.834851 -t 5700:4900 -g 0.8 -m vidmode&lt;br /&gt;
&lt;/code&gt; 
    </description>
</item>
<item>
    <title>Setting up phpm for offline use - parsing the PHP docbook manual</title>
    <link>http://jdv.me.uk/archives/144-Setting-up-phpm-for-offline-use-parsing-the-PHP-docbook-manual.html</link>

    <description>
        If you want to create an up-to-date function list for use with phpm, you&#039;ll need to update the manualparser.php recommended in the original article to work on PHP5. I&#039;ll tell you for free that this is going to be difficult: for starters the &lt;a href=&quot;http://web.archive.org/web/20041206211514/phpvolcano.com/articles/manual/index.php&quot;&gt;original article&lt;/a&gt; is no longer properly online (there&#039;s a &lt;a href=&quot;http://web.archive.org/web/20041206211514/phpvolcano.com/articles/manual/index.php&quot;&gt;cached version&lt;/a&gt; on the Wayback Machine) and the code is broken as it relies on a deprecated method of the DirectoryIterator class.&lt;br /&gt;
&lt;br /&gt;
You&#039;ll also need to get hold of the PHP manual docbook source. All the instructions for doing so refer to old CVS users: SVN is used these days. This is what you need to know:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$ svn checkout http://svn.php.net/repository/phpdoc/modules/doc-en ./phpdoc-en&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
So, to save you time, I&#039;ve suffered all the pitfalls and mended the code myself - it runs cleanly. You&#039;ll find it on &lt;a href=&quot;https://github.com/jdvalentine/parsemanual&quot;&gt;my GitHub&lt;/a&gt; along with more explanation in the README. Fetch the lot down, put it in the same directory as you download phpdoc-en and run parseit.php.&lt;br /&gt;
&lt;br /&gt;
Here are some links to the resources I used: I&#039;m mainly putting them here in the hopes that they will trackback to the various blogs and that people might actually find this...:&lt;br /&gt;
&lt;br /&gt;
- Håvard Eide&#039;s &lt;a href=&quot;http://eide.org/2009/01/02/phpm/&quot;&gt;phpm post&lt;/a&gt;. Did he write the original version of this parser? I&#039;m not sure, but he certainly wrote phpm&lt;br /&gt;
- &lt;a href=&quot;http://www.phpdeveloper.org/news/11663&quot;&gt;http://www.phpdeveloper.org/news/11663&lt;/a&gt;&lt;br /&gt;
 
    </description>
</item>
<item>
    <title>Have you ever read a more scary prayer than this?</title>
    <link>http://jdv.me.uk/archives/143-Have-you-ever-read-a-more-scary-prayer-than-this.html</link>

    <description>
        Paul my vicar has been blogging again, this time about &lt;a href=&quot;http://revpaulh.wordpress.com/2011/01/14/renewing-our-vow-and-covenant/&quot;&gt;Renewing our Vow and Covenant&lt;/a&gt;, and he mentioned a prayer that I hadn&#039;t heard of, but it might just be the scariest, most challenging prayer I&#039;ve ever heard. It&#039;s called the Methodist Covenant prayer. I got shivers when I read it.&lt;br /&gt;
&lt;br /&gt;
I am no longer my own but yours.&lt;br /&gt;
Put me to what you will,&lt;br /&gt;
rank me with whom you will;&lt;br /&gt;
put me to doing,&lt;br /&gt;
put me to suffering;&lt;br /&gt;
let me be employed for you,&lt;br /&gt;
or laid aside for you,&lt;br /&gt;
exalted for you,&lt;br /&gt;
or brought low for you;&lt;br /&gt;
let me be full,&lt;br /&gt;
let me be empty,&lt;br /&gt;
let me have all things,&lt;br /&gt;
let me have nothing:&lt;br /&gt;
I freely and wholeheartedly yield all things&lt;br /&gt;
to your pleasure and disposal.&lt;br /&gt;
And now, glorious and blessed God,&lt;br /&gt;
Father, Son and Holy Spirit,&lt;br /&gt;
you are mine and I am yours. Amen&lt;br /&gt;
&lt;br /&gt;
There is no clever language here, nothing I can&#039;t understand, just the most pure expression of supplication, submission and admission to God that I&#039;ve ever read. Even though the first line is simply a recognition that we didn&#039;t make ourselves and that God&#039;s creating Spirit is responsible for our existence, it puts it in a new light. It recognises that God is the God of the Old Testament as well as the new: isn&#039;t it tempting to think of God only as a benign, gentle, useful, protecting watcher when it is so much more than that. God is love, and love happens in pretty explosive, cruel-to-be-kind, hands-on, forthright way sometimes, and that&#039;s just with humans. Why don&#039;t we treat God as capable of that same kind of tough love?&lt;br /&gt;
&lt;br /&gt;
Great stuff. 
    </description>
</item>
<item>
    <title>MXToolbox SuperTool - great for domain and DNS checking</title>
    <link>http://jdv.me.uk/archives/142-MXToolbox-SuperTool-great-for-domain-and-DNS-checking.html</link>

    <description>
        I&#039;ve written my first &lt;a href=&quot;http://mycroft.mozdev.org/search-engines.html?author=James+Valentine&quot;&gt;search plugin on MyCroft&lt;/a&gt;, for the excellent &lt;a href=&quot;http://mxtoolbox.com/SuperTool.aspx&quot; title=&quot;Network and domain diagnostics from a handy web interface&quot;&gt;SuperTool&lt;/a&gt;. I can&#039;t believe that out of 22,000 plugins, mine is the first for such a brilliant tool. Take a look and try it out - you won&#039;t regret it. Better than a lot of pay-for ones, in my view, but there&#039;s a special place in my heart for the free, oddly named and somewhat spartan &lt;a href=&quot;http://www.dnscolos.com/&quot; title=&quot;A nice, free DNS checking tool&quot;&gt;dnscolos&lt;/a&gt;. My web hosts often use &lt;a href=&quot;http://www.intodns.com&quot; title=&quot;Another great DNS testing tool&quot;&gt;intoDNS&lt;/a&gt; which I rather like as well, and gets new tests and features periodically.&lt;br /&gt;
&lt;br /&gt;
(How do I manage to sound like I&#039;m advertising, even when I&#039;ve nothing to gain? Must be that boundless enthusiasm...) 
    </description>
</item>
<item>
    <title>Checking credit on a Vodafone dongle</title>
    <link>http://jdv.me.uk/archives/141-Checking-credit-on-a-Vodafone-dongle.html</link>

    <description>
        More a less a note to self, if you&#039;re using a Vodafone TopUp and Go dongle on Linux, you&#039;ll quickly find there&#039;s no nice way to check your remaining credit. On Windows, you can use the button so labelled in the Vodafone connect software. On Linux, that&#039;s not really an option!&lt;br /&gt;
&lt;br /&gt;
The answer is to pop open your trusty copy of minicom so proceed thusly:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
minicom -s&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
In the resulting settings menu, change the serial port configuration so that your device is set up. The most likely choice is /dev/ttyUSB0 or /dev/ttyUSB0 rather than /dev/ttyS8 or whatever the default on your system is. Then go to &#039;exit&#039; in the menu, which should take you into minicom.&lt;br /&gt;
&lt;br /&gt;
What we do now is to simulate pressing that button, so, paste in (so that it happens quickly), and follow with Enter:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
AT+CUSD=1,&quot;*&amp;1345;&quot;,15&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
You may have to have a few goes. What you get back should look like this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
+CUSD: 0,&quot;#14.66.&quot;,0 &lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Which is your dongle&#039;s way of saying £14.66 remaining.&lt;br /&gt;
&lt;br /&gt;
I don&#039;t know how up-to-date this figure is, and for the record, I think £15/GB is extortionate (I&#039;m paying £15 for 5GB for my own 3 dongle with a rolling one-month contract by Direct Debit).&lt;br /&gt;
&lt;br /&gt;
This will only work for Vodafone dongles (and TopUp and Go mobiles, I suppose if you&#039;ve hooked yours up by USB). The approach might work for other setups, though. 
    </description>
</item>
<item>
    <title>ttytter extension for posting to Instapaper</title>
    <link>http://jdv.me.uk/archives/140-ttytter-extension-for-posting-to-Instapaper.html</link>

    <description>
        I have forked &lt;a href=&quot;https://github.com/reuteras/my-ttytter-addons/blob/master/later.pl&quot;&gt;reuteras&#039; extension for posting twitter URLs to del.icio.us&lt;/a&gt; and make it post to &lt;a href=&quot;http://www.instapaper.com&quot;&gt;Instapaper&lt;/a&gt; instead. You can find my efforts in &lt;a href=&quot;https://github.com/jdvalentine/my-ttytter-addons&quot;&gt;my GitHub repo&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
It isn&#039;t as clever as I would like it to be:&lt;br /&gt;
- only accounts without a password are working at the moment&lt;br /&gt;
- I&#039;m not using HTTP basic auth as I just can&#039;t get it to work&lt;br /&gt;
&lt;br /&gt;
To try it you need to do the following: &lt;br /&gt;&lt;a href=&quot;http://jdv.me.uk/archives/140-ttytter-extension-for-posting-to-Instapaper.html#extended&quot;&gt;Continue reading &quot;ttytter extension for posting to Instapaper&quot;&lt;/a&gt;
    </description>
</item>
<item>
    <title>If you need a fresh proxy, here's the list I use</title>
    <link>http://jdv.me.uk/archives/139-If-you-need-a-fresh-proxy,-heres-the-list-I-use.html</link>

    <description>
        I remember when the days of finding a fresh, fast, geographically local anonymous proxy to surf behind were fraught with difficulties. Some Russians ran a list I used, but it was often out-of-date and the proxies on it didn&#039;t work for long.&lt;br /&gt;
&lt;br /&gt;
I now go here for a fresh proxy when I need one:&lt;br /&gt;
&lt;a title=&quot;A good list of fresh HTTP proxies&quot; href=&quot;http://www.ip-adress.com/proxy_list/&quot;&gt;http://www.ip-adress.com/proxy_list/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
That site also allows you to test a proxy for Reverse DNS, actual location and so on, right from the list.&lt;br /&gt;
&lt;br /&gt;
These are HTTP proxies mainly, rather than SOCKS5 ones which you might want if you need a full range of ports from Windows, but they suit my needs, getting me out of corporate networks and around restrictive ISPs, etc. I expect I will use them heavily whilst travelling when I come across certain states which are somewhat restrictive about where their citizens might surf. Like Western news websites. 
    </description>
</item>
<item>
    <title>To avoid Adobe's Download Manager (DLM), try FTP!</title>
    <link>http://jdv.me.uk/archives/138-To-avoid-Adobes-Download-Manager-DLM,-try-FTP!.html</link>

    <description>
        Fed up with having to download a download manager in order to fetch a little piece of proprietary software, I&#039;m recommending people use the FTP site which Adobe runs. Head over to:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;ftp://ftp.adobe.com/pub/adobe/reader/&quot;&gt;ftp://ftp.adobe.com/pub/adobe/reader/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You&#039;ll find the version you need quite quickly, and a choice of MSI or EXE installer. 
    </description>
</item>

</channel>
</rss>
