<?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>Codeistry blog</title> <atom:link href="http://codeistry.com/blog/feed/" rel="self" type="application/rss+xml" /><link>http://codeistry.com/blog</link> <description>Just another WordPress weblog</description> <lastBuildDate>Tue, 19 Apr 2011 21:59:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.2</generator> <item><title>gcalc updated</title><link>http://codeistry.com/blog/2011/04/gcalc-updated/</link> <comments>http://codeistry.com/blog/2011/04/gcalc-updated/#comments</comments> <pubDate>Tue, 19 Apr 2011 21:59:34 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Technical]]></category> <category><![CDATA[gcalc]]></category> <category><![CDATA[offtopic]]></category> <category><![CDATA[tools]]></category><guid
isPermaLink="false">http://codeistry.com/blog/?p=394</guid> <description><![CDATA[Just a quick note to say that the gcalc &#8211; Google Calculator command line/script has been fixed after Google mark-up changes broke it. Read the original post, or Download a new copy here.]]></description> <content:encoded><![CDATA[<p><a
href="http://codeistry.com/blog/wp-content/uploads/2011/04/Selection_308.png"><img
class="alignleft size-full wp-image-395" title="gcalc in use" src="http://codeistry.com/blog/wp-content/uploads/2011/04/Selection_308.png" alt="gcalc is used in a terminal." width="627" height="169" /></a></p><p>Just a quick note to say that the <a
title="gcalc: a command line version of Google Calculator" href="http://codeistry.com/blog/2009/04/gcalc-command-line-version-of-google-calculator/">gcalc &#8211; Google Calculator command line/script</a> has been fixed after Google mark-up changes broke it. <a
title="gcalc: a command line version of Google Calculator" href="http://codeistry.com/blog/2009/04/gcalc-command-line-version-of-google-calculator/">Read the original post</a>, or <a
href="http://www.codeistry.com/assets/files/gcalc.zip">Download a new copy here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2011/04/gcalc-updated/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Q&amp;A: Images of text vs. Webfonts</title><link>http://codeistry.com/blog/2010/11/qa-images-of-text-vs-webfonts/</link> <comments>http://codeistry.com/blog/2010/11/qa-images-of-text-vs-webfonts/#comments</comments> <pubDate>Sat, 20 Nov 2010 01:36:48 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Technical]]></category> <category><![CDATA[accessibility]]></category> <category><![CDATA[css]]></category> <category><![CDATA[design]]></category> <category><![CDATA[q&a]]></category> <category><![CDATA[webfont]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=350</guid> <description><![CDATA[A little while ago I got a question from a good friend and client of mine about using fonts on websites. This also applies to other ways of faking web fonts, like sIFR. As others have been asking me about this lately, I thought I&#8217;d put my answer up here, so that I can point [...]]]></description> <content:encoded><![CDATA[<p>A little while ago I got a question from a good friend and client of mine about using fonts on websites. This also applies to other ways of faking web fonts, like <a
href="http://www.mikeindustries.com/blog/sifr" rel="external">sIFR</a>. As others have been asking me about this lately, I thought I&#8217;d put my answer up here, so that I can point poeple at it in the future:</p><h2>Q:</h2><p>Please remind me about images of text vs real text on websites. Search engines search alt. text so why not have a navigation with images and nice typography rather than a limited selection of web fonts?</p><h2>A:</h2><p>It&#8217;s true that search engines search alt. text &#8211; and you can do it that way. If you&#8217;re determined to use images, you should probably also use a hidden <code>&lt;span&gt;Menu Text&lt;/span&gt;</code> inside the <code>&lt;a&gt;</code> element. These sort of work Ok, for the most part. The arguments for and against this are sort of like flash sites vs. real websites; one is the Right Thing To Do and one isn&#8217;t. You can make the wrong way work mostly Ok, if you work at it, but however hard you try, there are always downsides and you&#8217;re putting yourself at a slight disadvantage all the time.</p><h3>Why is real text better?</h3><p>There are a large number of little reasons why text is better than images; images are: harder to update when you change or add things to a site, harder to update when you change site designs or colours, much larger and slower to download, cause extra HTTP requests slowing down page loading even further, aren&#8217;t searchable (either by search engines, or users with ctrl+f), aren&#8217;t translatable, don&#8217;t zoom/re-flow as well on mobile devices, don&#8217;t render as well when zoomed or viewed as different resolutions, don&#8217;t print very well, aren&#8217;t as accessible, etc, etc&#8230;</p><h3>Even better&#8230;</h3><p>Also, I saved the best bit till last: You don&#8217;t need to choose any more! The &#8216;limited selection of web fonts&#8217; issue has gone away &#8211; you can now use any font you like, provided that you&#8217;ve got a license to use it on a website. As far as I can see, this makes using images of text completely obsolete &#8211; I can now think of no circumstances where using images of text is even remotely justifiable. Previously, the only argument in favour of images was &#8216;it looks nicer&#8217;; this solitary argument in their favour is now gone.</p><h4>Here are some resources that cover modern web fonts:</h4><ul><li><a
rel="external" href="http://nicewebtype.com/">http://nicewebtype.com/</a></li><li><a
rel="external" href="http://webfonts.info/wiki/index.php?title=What_are_webfonts%3F">http://webfonts.info/wiki/index.php?title=What_are_webfonts%3F</a> &#8211; this link also has a nice list of available web fonts, both commercial and open/free.</li></ul><p>Here are some examples of sexy looking websites that make good use of modern web fonts. Notice that all the text is normal, selectable, searchable text, even the sexy looking stuff:</p><h4>Some by me:</h4><ul><li><a
rel="external" href="http://joaobarao.com/">http://joaobarao.com/</a></li><li><a
rel="external" href="http://cubanblues.co.uk/">http://cubanblues.co.uk/</a></li></ul><h4>lots by others:</h4><ul><li><a
rel="external" href="http://nicewebtype.com/fonts/bello-and-proxima-nova/">http://nicewebtype.com/fonts/bello-and-proxima-nova/</a></li><li><a
rel="external" href="http://webfonts.info/wiki/index.php?title=Links_to_demo_pages">http://webfonts.info/wiki/index.php?title=Links_to_demo_pages</a></li><li><a
rel="external" href="http://opentype.info/blog/category/webfonts/">http://opentype.info/blog/category/webfonts/</a></li><li><a
rel="external" href="http://www.robinwood.de/blog/">http://www.robinwood.de/blog/</a></li><li><a
rel="external" href="http://www.brizk.com/">http://www.brizk.com/</a></li><li><a
rel="external" href="http://forabeautifulweb.com/blog">http://forabeautifulweb.com/blog</a></li><li><a
rel="external" href="http://ilovetypography.com/">http://ilovetypography.com/</a></li></ul><h3>How do I actually use webfonts then?</h3><p>The webfonts stuff is all just CSS, and pretty simple to use. You just tell it where the font file is, and give it a name:</p><pre class="brush: css; ">

@font-face {
font-family: &#039;DroidSansRegular&#039;;
src: url(&#039;/fonts/droidsans-regular.otf&#039;);
font-weight: normal;
font-style: normal;
}
</pre><p>then you just use it as normal:</p><pre class="brush: css; ">

p {
font-family: DroidSansRegular, Arial, sans-serif;
font-size: 18pt;
}
</pre><p>there are various tools which will write the (slightly more complex) cross-browser version of that. I used <a
rel="external" href="http://www.fontsquirrel.com/">FontSquirrel</a> for <a
rel="external" href="http://joaobarao.com/">http://joaobarao.com/</a> &#8211; you can see what it generates here: <a
rel="external" href="http://joaobarao.com/css/joao.css">http://joaobarao.com/css/joao.css</a> &#8211; all the @font-face stuff at the top is generated for you by <a
rel="external" href="http://www.fontsquirrel.com/">FontSquirrel</a>. I used two excellent free / open fonts: <a
rel="external" href="http://www.josbuivenga.demon.nl/fontin.html">Fontin</a> and <a
rel="external" href="http://www.droidfonts.com/">Droid Sans</a> on the <a
rel="external" href="http://joaobarao.com/">http://joaobarao.com/</a> site.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2010/11/qa-images-of-text-vs-webfonts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>I haven&#8217;t forgetten</title><link>http://codeistry.com/blog/2010/10/i-havent-forgetten/</link> <comments>http://codeistry.com/blog/2010/10/i-havent-forgetten/#comments</comments> <pubDate>Tue, 26 Oct 2010 22:21:22 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Non Technical]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=328</guid> <description><![CDATA[I haven&#8217;t forgotten about this blog &#8211; I&#8217;ve been away on Vacation in the UK, visiting friends &#8211; and then a few days in Vegas; back in the saddle now though! I&#8217;ll be adding more work to the portfolio and blogging more soon]]></description> <content:encoded><![CDATA[<p>I haven&#8217;t forgotten about this blog &#8211; I&#8217;ve been away on Vacation in the UK, visiting friends &#8211; and then a few days in Vegas; back in the saddle now though! I&#8217;ll be adding more work to the portfolio and blogging more soon <img
src='http://codeistry.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2010/10/i-havent-forgetten/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Portfolio updated</title><link>http://codeistry.com/blog/2010/09/portfolio-updated/</link> <comments>http://codeistry.com/blog/2010/09/portfolio-updated/#comments</comments> <pubDate>Mon, 13 Sep 2010 19:42:17 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Non Technical]]></category> <category><![CDATA[Technical]]></category> <category><![CDATA[codeistry_website]]></category> <category><![CDATA[inkscape]]></category> <category><![CDATA[portfolio]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=334</guid> <description><![CDATA[I&#8217;ve just added Twinbro into the Codeistry Portfolio, another job in my queue of jobs that need adding. I&#8217;d used the Twinbro website in my Sorfolio, so I thought I&#8217;d better put them onto the main portfolio site too. I&#8217;ve also updated all the thumbnail images in the portfolio, after I figured out which Inkscape [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just added <a
href="http://www.codeistry.com/portfolio/twinbo">Twinbro</a> into the Codeistry Portfolio, another job in my queue of jobs that need adding. I&#8217;d used the Twinbro website in my <a
rel="external" href="http://sortfolio.com/company/9334-codeistry">Sorfolio</a>, so I thought I&#8217;d better put them onto the main portfolio site too.</p><p><img
class="size-full wp-image-335 alignleft" title="Inkscape Image Supersample settings" src="http://www.codeistry.com/blog/wp-content/uploads/2010/09/inkscape-inage-supersample1.png" alt="Screenshots sowing the difference between the two Inkscape Image Supersample settings" width="360" height="560" /></p><p>I&#8217;ve also updated all the thumbnail images in the portfolio, after I figured out which Inkscape setting was degrading the quality. If you go into <a
rel="external" href="http://inkscape.org/">Inkscape</a> Settings, then Bitmaps and set the &#8216;Oversample bitmaps&#8217; setting to &#8217;16&#215;16&#8242;, you&#8217;ll get much nicer anti-aliasing on your bitmaps, especially if you&#8217;re rotating or resizing them.</p><p>I also took the opportunity to resize the thumbnails to make them a bit larger and to tidy up the formatting of the older ones, which looks much better.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2010/09/portfolio-updated/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Codeistry now on Sortfolio</title><link>http://codeistry.com/blog/2010/09/codeistry-now-on-sortfolio/</link> <comments>http://codeistry.com/blog/2010/09/codeistry-now-on-sortfolio/#comments</comments> <pubDate>Fri, 10 Sep 2010 00:30:01 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Non Technical]]></category> <category><![CDATA[business]]></category> <category><![CDATA[codeistry_website]]></category> <category><![CDATA[portfolio]]></category> <category><![CDATA[update]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=321</guid> <description><![CDATA[I just added Codeistry to Sortfolio, 37Signals portfolio hosting/aggregating thing for web developers. As usual for 37Signals stuff, Sortfolio is very slick, simple and easy to use. The only thing that I didn&#8217;t really like is the budget range &#8211; it doesn&#8217;t really fit my experience: Codeistry jobs are significantly more variable than these categories allow; I could [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://sortfolio.com/company/9334-codeistry"><img
class="size-full wp-image-322" title="Screenshot of the current Sortfolio page for Vancouver, showing the Codeistry entry, with a 'New' sticker." src="http://www.codeistry.com/blog/wp-content/uploads/2010/09/codeistry-on-sortfolio-vancouver.png" alt="Screenshot of the current Sortfolio page for Vancouver, showing the Codeistry entry, with a 'New' sticker." width="501" height="428" /></a></p><p><a
href="http://www.codeistry.com/blog/wp-content/uploads/2010/09/codeistry-on-sortfolio-vancouver.png"></a>I just added <a
title="See Codeistry's web development portfolio on Sortfolio" href="http://sortfolio.com/company/9334-codeistry">Codeistry to Sortfolio</a>, 37Signals portfolio hosting/aggregating thing for web developers. As usual for <a
href="http://37signals.com/">37Signals</a> stuff, Sortfolio is very slick, simple and easy to use. The only thing that I didn&#8217;t really like is the budget range &#8211; it doesn&#8217;t really fit my experience:</p><p><img
class="alignleft size-full wp-image-330" title="Sortfolio Budget Ranges" src="http://www.codeistry.com/blog/wp-content/uploads/2010/09/7059c5ff027b7f1285bc0c3c6402e4ca.png" alt="Sortfolio Budget Ranges: $3,000 and under; $3,000-$10,000; $10,000-$25,000; $25,000-$50,000; Over $50,000" width="359" height="151" />Codeistry jobs are significantly more variable than these categories allow; I could really do with a &#8216;$100 &#8211; $10,000&#8242; category. I don&#8217;t really want to drive away interesting smaller clients by saying that I only care about jobs that are over $3000, but I also do $10,000 jobs occasionally too. Hmmm&#8230;</p><p>Anyway, I&#8217;ll be updating the Codeistry entry over the next few days, adding more examples and screenshots. I&#8217;ll assess things in a couple of weeks and let you know if it works &#8211; and if I actually get any leads and new business via Sortfolio.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2010/09/codeistry-now-on-sortfolio/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>The Cobblers Kids</title><link>http://codeistry.com/blog/2010/08/the-cobblers-kids/</link> <comments>http://codeistry.com/blog/2010/08/the-cobblers-kids/#comments</comments> <pubDate>Tue, 31 Aug 2010 03:32:48 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Non Technical]]></category> <category><![CDATA[portfolio]]></category> <category><![CDATA[update]]></category> <category><![CDATA[website]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=312</guid> <description><![CDATA[&#8220;The Cobblers children have no shoes&#8221; &#8211; it&#8217;s an old expression but it&#8217;s very true &#8211; a busy cobbler will be so busy making shoes for customers that he has no time to make shoes for his own children. As Cobblers, so Web Developers, apparently. Anyway, I&#8217;ve now carved out some time in my schedule [...]]]></description> <content:encoded><![CDATA[<p>&#8220;The Cobblers children have no shoes&#8221; &#8211; it&#8217;s an old expression but it&#8217;s very true &#8211; a busy cobbler will be so busy making shoes for customers that he has no time to make shoes for his own children. As Cobblers, so Web Developers, apparently.</p><p>Anyway, I&#8217;ve now carved out some time in my schedule to devote solely to working on my own stuff, so I&#8217;ll be keeping this site up to date from now on.</p><p>As a start, I&#8217;ve added a new job to the portfolio. <a
href="http://www.codeistry.com/portfolio/the-cambridge-inter-faith-programme">A &#8216;new&#8217; website for The Cambridge Interfaith Programme</a>, completed at the end of 2009. I have a queue of other jobs to add, so expect to see a load more turning up soon.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2010/08/the-cobblers-kids/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Choosing syntax highlighting colours for the draw spaces Gedit plugin</title><link>http://codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/</link> <comments>http://codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/#comments</comments> <pubDate>Mon, 04 May 2009 18:55:11 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Technical]]></category> <category><![CDATA[development]]></category> <category><![CDATA[gedit]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[tools]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=297</guid> <description><![CDATA[I&#8217;ve recently upgraded to Ubuntu Jaunty &#8211; and therefore Gedit 2.26.1 &#8211; and I couldn&#8217;t figure out how to change the color of spaces shown by the &#8216;Draw Spaces&#8217; plugin. This used to be set in the plugin configuration, but you now do it in the syntax highlighting theme &#8211; but how? What do you [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.codeistry.com/blog/wp-content/uploads/2009/05/gedit-draw-spaces-colours.png"><img
class="alignleft size-full wp-image-298" src="http://www.codeistry.com/blog/wp-content/uploads/2009/05/gedit-draw-spaces-colours.png" alt="" width="612" height="309" /></a>I&#8217;ve recently upgraded to Ubuntu Jaunty &#8211; and therefore <a
href="http://projects.gnome.org/gedit/">Gedit</a> 2.26.1 &#8211; and I couldn&#8217;t figure out how to change the color of spaces shown by the &#8216;Draw Spaces&#8217; plugin. This used to be set in the plugin configuration, but you now do it in the syntax highlighting theme &#8211; but how? What do you need to add?</p><p>The closest that I got googling was this: <a
href="https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/348500">https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/348500</a> &#8211; which almost tells you but misses out the crucial bit of info.</p><p>So, I asked the fine folks in the <kbd>#gedit</kbd> room on <kbd>irc.gnome.org</kbd> and they enlightened me; you need to add this to your syntax theme file:</p><pre>&lt;style name="draw-spaces" foreground="tinted_grey"/&gt;</pre><p>Where tinted_gray is one of your theme&#8217;s colours. I would put it at the top somewhere, with the rest of the global stuff. You can look in the cobalt.xml file in /usr/share/gtksourceview-2.0/styles for an example of a theme which does this. I thought I&#8217;d put this here so anyone else who get&#8217;s stuck trying to change this has a better chance of Googling an answer.</p><p><a
href="http://www.codeistry.com/assets/files/twilight.xml">Download a modified version of the Gedit Twilight Theme, with this tweak added</a>. To install, put the file into your <kbd>~/.gnome2/gedit/styles/</kbd> folder and restart Gedit. Then just select the Twilight theme in Preferences.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2009/05/choosing-syntax-highlighting-colours-for-the-draw-spaces-gedit-plugin/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>MySQL Workbench 5.1.10 beta</title><link>http://codeistry.com/blog/2009/04/mysql-workbench-5110-beta/</link> <comments>http://codeistry.com/blog/2009/04/mysql-workbench-5110-beta/#comments</comments> <pubDate>Fri, 10 Apr 2009 19:23:59 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Technical]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[offtopic]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=289</guid> <description><![CDATA[The new MySQL Workbench is now in beta and is looking very good: You can import create scripts (mysqldumps), build diagrams yourself, with full drag and drop etc, and export create scripts. You can also annotate with text and images and export the diagrams as SVG, PDF, PNG etc&#8230; Here&#8217;s the PDF for the MODx [...]]]></description> <content:encoded><![CDATA[<p>The new MySQL Workbench is now in beta and is looking very good:</p><p><a
href="http://www.codeistry.com/blog/wp-content/uploads/2009/04/modx-in-mysql-workbench.png"><img
class="alignleft size-medium wp-image-290" title="MySQL Workbench 5.1.10 showing a MODx 0.9.6.3 database" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/modx-in-mysql-workbench-300x221.png" alt="MySQL Workbench 5.1.10 showing a MODx 0.9.6.3 database" width="300" height="221" /></a>You can import create scripts (mysqldumps), build diagrams yourself, with full drag and drop etc, and export create scripts. You can also annotate with text and images and export the diagrams as SVG, PDF, PNG etc&#8230; Here&#8217;s the PDF<a
href="http://www.codeistry.com/assets/files/MODx-in-MySQL-Workbench.pdf"> for the MODx 0.9.6.3 diagram shown</a>, along with the <a
href="http://www.codeistry.com/assets/files/MODx.mwb">MWB</a> (workbench) file. That diagram is just an imported mysqldump of a MODx DB &#8211; all I did was click the auto-arrange button.</p><p>It&#8217;s available for Linux (32 &amp; 64 bit), Mac and Windows. I&#8217;ve been playing with the 64bit version in Ubuntu and it seems to work great! More info on <a
href="http://dev.mysql.com/workbench/">their blog</a>, or get it here: <a
href="http://dev.mysql.com/downloads/workbench/5.1.html">http://dev.mysql.com/downloads/workbench/5.1.html</a></p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2009/04/mysql-workbench-5110-beta/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>gcalc: a command line version of Google Calculator</title><link>http://codeistry.com/blog/2009/04/gcalc-command-line-version-of-google-calculator/</link> <comments>http://codeistry.com/blog/2009/04/gcalc-command-line-version-of-google-calculator/#comments</comments> <pubDate>Fri, 10 Apr 2009 15:17:26 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Technical]]></category> <category><![CDATA[code]]></category> <category><![CDATA[fish]]></category> <category><![CDATA[gcalc]]></category> <category><![CDATA[offtopic]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=272</guid> <description><![CDATA[Here’s a command line version of Google Calculator: Download gcalc here: http://www.codeistry.com/assets/files/gcalc.zip It’s a little python script that talks to Google, using it&#8217;s calculator syntax. You&#8217;ll get the same answers if you type the queries into google To use the script, just download the zip file, extract the file inside and put it somewhere on [...]]]></description> <content:encoded><![CDATA[<p>Here’s a <a
href="http://www.codeistry.com/assets/files/gcalc.zip">command line version of Google Calculator</a>:<a
href="http://www.codeistry.com/assets/files/gcalc.zip"><img
class="alignnone size-full wp-image-280" title="gcalc command line tool in use" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot34.png" alt="gcalc command line tool in use" width="574" height="359" /></a></p><p><a
href="http://www.codeistry.com/assets/files/gcalc.zip">Download gcalc here: http://www.codeistry.com/assets/files/gcalc.zip</a></p><p><img
class="alignleft size-full wp-image-285" title="Using Google Calculator in firefox's search box." src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot36.png" alt="Using Google Calculator in firefox's search box." width="217" height="138" />It’s a little python script that talks to Google, using it&#8217;s calculator syntax. You&#8217;ll get the same answers if you type the queries into google</p><p>To use the script, just download the zip file, extract the file inside and put it somewhere on your path; I&#8217;ve started putting these kind of things in <kbd>~/bin</kbd>. I originally found the script here (http://vrai.net/page.php?block=scripts) but it didn’t work too well, so I fixed it up. I&#8217;ve tested it on Linux, but it should work anywhere Python is installed.</p><p>If you’re using that script on Linux, then <kbd>chmod +x gcalc</kbd> it to allow it to be executed. If you&#8217;re using Windows, you might have to add &#8216;.py&#8217; to the end of the filename. Then the syntax is very simple:</p><p><kbd>gcalc “1 hour 5 minutes in seconds”</kbd><br
/> 1 hour 5 minutes = 3900 seconds</p><p><kbd>gcalc “100 + 2 * 5″</kbd><br
/> 100 + (2 * 5) = 110</p><p><kbd>gcalc “41000 yen in british pounds”</kbd><br
/> 41,000 Japanese yen = 277.129372 British pounds</p><p>Here are <a
href="http://www.google.co.uk/help/calculator.html">complete instructions on the syntax that Google Calculator supports</a>.</p><p>Also, in the screenshot above I&#8217;m using Fish, the Friendly Interactive SHell because it does nice syntax highlighting, amongst many other cool things. <a
title="Friendly Interactive Shell" href="http://www.ibm.com/developerworks/aix/library/au-spunix_fish/?ca=dgr-jw06GoFish&amp;S_TACT=105AGX59&amp;S_CMP=GRsitejw06">Fish is here</a>, if you want it.</p><p>Have fun!</p><p><strong>Update</strong>: 2011-04-19: I&#8217;ve updated the script to work again, after Google markup changes broke it.</p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2009/04/gcalc-command-line-version-of-google-calculator/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Bunch of updates to the Codeistry site</title><link>http://codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/</link> <comments>http://codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/#comments</comments> <pubDate>Fri, 03 Apr 2009 16:25:54 +0000</pubDate> <dc:creator>Duncan Lock</dc:creator> <category><![CDATA[Non Technical]]></category> <category><![CDATA[accessibility]]></category> <category><![CDATA[codeistry_website]]></category> <category><![CDATA[modx]]></category> <category><![CDATA[update]]></category><guid
isPermaLink="false">http://www.codeistry.com/blog/?p=261</guid> <description><![CDATA[I&#8217;ve made a number of small updates to the Codeistry site today, which I&#8217;ve been queuing up on my local version for a while. I&#8217;ve made updates and corrections to my Accessibility made simple article, as well as minor updates to the 9 Steps to Improve your Small Business website and SEO for Fun and [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve made a number of small updates to the Codeistry site today, which I&#8217;ve been queuing up on my local version for a while. I&#8217;ve made updates and corrections to my <a
href="http://www.codeistry.com/about/accessibility">Accessibility made simple</a> article, as well as minor updates to the <a
href="http://www.codeistry.com/help/improve-your-small-business-website">9 Steps to Improve your Small Business website</a> and <a
href="http://www.codeistry.com/about/seo">SEO for Fun and Profit</a> ones.</p><p><img
class="alignleft size-full wp-image-264" title="Screenshot of MODx metadata field in page editor." src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot38.png" alt="Screenshot of MODx metadata field in page editor." width="469" height="261" />I&#8217;ve also souped up the metadata that gets output in the page&#8217;s code, so that I&#8217;m now outputting a meta description tag &#8211; this outputs whatever I&#8217;ve typed into the page&#8217;s Description field in MODx.</p><p><img
class="alignleft size-full wp-image-266" title="Screenshot of the MODx Meta Keywords system" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot39.png" alt="Screenshot of the MODx Meta Keywords system" width="320" height="256" />I&#8217;ve also started using MODx built in meta keywords system, so some pages now have some keywords set.</p><p>A little while age I also added a Creative Commons license to the page footer but forget to mention it on the blog. This means that the site&#8217;s content is now actually marked as copright of Codeistry now &#8211; which it wasn&#8217;t before. As I&#8217;ve chosen a Creative Commons Attribution Non-Commercial Share Alike license, this also means that anyone can re-use, re-mix, translate or re-purpose any of the stuff on here for whatever they want, provided it&#8217;s non-commercial and they credit the original source.</p><p>Anyway, here&#8217;s the old footer:</p><p><img
class="alignnone size-full wp-image-268" title="Screenshot of the old Codeistry page footer, before the new license" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot21.png" alt="Screenshot of the old Codeistry page footer, before the new license" width="597" height="226" /></p><p>and here&#8217;s the new one:</p><p><img
class="alignnone size-full wp-image-269" title="Screenshot of the Codeistry page footer, with the new Creative Commons license" src="http://www.codeistry.com/blog/wp-content/uploads/2009/04/screenshot22.png" alt="Screenshot of the Codeistry page footer, with the new Creative Commons license" width="595" height="301" /></p> ]]></content:encoded> <wfw:commentRss>http://codeistry.com/blog/2009/04/bunch-of-updates-to-the-codeistry-site/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss><!-- Cached page generated by WP-Super-Cache on 2012-05-18 22:03:16 -->
<!-- Compression = gzip -->
