<?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>Musings &#187; BLOG</title>
	<atom:link href="http://blog.fpmurphy.com/tag/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.fpmurphy.com</link>
	<description>of an OS plumber</description>
	<lastBuildDate>Wed, 11 Jan 2012 19:14:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Favicon Issues</title>
		<link>http://blog.fpmurphy.com/2008/12/favicon-issues.html</link>
		<comments>http://blog.fpmurphy.com/2008/12/favicon-issues.html#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:52:00 +0000</pubDate>
		<dc:creator>fpmurphy</dc:creator>
				<category><![CDATA[Favicon]]></category>
		<category><![CDATA[BLOG]]></category>

		<guid isPermaLink="false">http://blog.fpmurphy.com/2008/12/favicon-issues.html</guid>
		<description><![CDATA[<p>Today I decided to add some color to my blog by adding a picture to my profile and to the title bar.&#160;&#160; As soon as I have my profile picture in place, I decided that it would be a good idea to use this same picture to add a favicon to my blog.&#160;&#160;Bad mistake!&#160;&#160;Turns out that Blogger.com does not allow you to upload a favicon (AKA shortcut icon) file.&#160;&#160;Instead you are expected to link to a shortcut icon file residing on another host.</p> <p>Well, I decided that I did not want to set up another account on another host just to display a favicon so I figured that there must be some way of embedding the shortcut icon in my Blogger template.&#160;&#160;After some experimentation I have managed to embed a shortcut icon in my template such that the shortcut icon is displayed correctly with Firefox.</p> <p>Here is the code I inserted into my template just after the &#60;title&#62; line. &#60;link rel="shortcut icon" type="image/x-icon" href="data:image/x-icon;base64, AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAEAABILAAASCwAAAAEA AAABAAAHCgwACAoMAAoLDAAGDRIACA0RAAgOFAANEBIADxITABQREQAUFBIAEBUYABIXHQAYFRMA DhgjABEcLAAbHyUAFyIsABwmLgAbIjUAGSs5ACMeGAAoIx8AJiUjACEgKQAlJigAJycoACUlLwAp JikALSotACAuNgAhLjkAKikyAC4tMgAiMTsAJjQ9AC8xMQAqMTsAKzM9AC0yPAA5MSwAMjcwADAw OwA0Pj4AODM2ADo1NgA7NTcAPDc4AB42bAAbNncAISxRACY4SQAqNkUALTZCACs7WwA4OUcAOj9I ADE+XwAjO2QALTtvAC49agAiOnoAJjh8ACg1cgA7QjcAPENBADdHVQA7RlMAO05cADZSaQA/VWgA QTMxAEQ5OABARjgAREg9AFdMPQBeST0Ack03AH5MMAB8UjcAT0xKAEBOWwBBUVoAS1tTAFdISQBc UVAAQFhpAEVYaQBGXG8ASV5pAEhdbwBCXXUAUGVcAFJkXQBUZl8ARmV/AEhjdwBLZ34AT2d8AFdi ZQBdbWQAWmdwAFlrdgBea3cAXXJqAF1yawBhTUYAa1NEAGNRXwBoVlMAa1hRAHRSQABwWksAcVpL AHJZSQB1WEsAelhEAH1ZQgB4WksAfl5NAGRcZgBmXWsAb2VXAHJqXQB+YFAAYGluAGN0bgBjem8A b3J5AG5+eABufX0AcGNgAH5uZwB9bnoAfHN+AHp4eAAeM4oAIjuHACo7kwAlQoAALkqFACpBlAAv RpwALE6rADNXpwA3WKwAMlWyADNWtgA0U7oAOVaxADhetAA5W7kAOmKvADpitwA9ZL0ANEzAADdQ wAA+Y8gAQFWQAEhngABJaIAASmuDAEdikQBNc44AT3ubAE98nwBSboQAWHaLAFl4jQBTepcAU32d AF9/lgBOb6sAZF6CAGB1ggBgdoUAZnmHAEFzzQBSfOMAcoR8AFqIqAB5jYYAeY+IAHqOkAB9jJ4A fpKGAH+TjAB/mJQAZoqkAGqTrgBikrUAYpO0AGKUtgBmmLwAaZOwAGqdvwB7i6EAVYfIAFGL2ABW jt0ATpHnAFmN5wBWleQAXJ/vAGqdwQBro8oAbaPIAIBTOgCHY04Ai2BDAIhjTQCCZFAAjGdSAIpy ZwCLd20Aj356AJN4YACPjIoAhYiSAIaNlwCBkYkAgZSMAIGVjACAlo0AgZeOAIKXkACDmZEAg5mS AICZlACFmpIAhpiSAIaakwCGnJUAiZySAJKfjwCMopkAkaWcAJSonwCZqJgAiae2AJ+jpgCer6YA layzAJe1rACZsKcAtpiKAKCnrACnqacAqqakAKerswChs6kAsLCwAKrBtAC0xbQAtMa0AAAAAAAA AAAAw7V+Z2ddfvK4uuLl87Ln+X+GY1tdUj/t6rrk4ObmufDY1HyAKD8/YvrquOK0tODl1FNk+CxJ L6Hp/PO54IF6avTWZe83Ty/FxPH823nSTkzV2q3vcVOPycrJ7tdN0dPShben98+Lk7HGx6t7cm1s VITZr/p3MD2MkLCdR0YsLS1KeWb2eIeJm7CZkWtObnN0QBgQIDY8jZSQlY6s0HVxcQMTDQQOiJqW mJKKEhQWJ0ujpEQyDzE+Ojg7NQYFAwIMqbO9vSIIGBsbHCALCgYBAFq9wsuoMxcaHyklHSEeEQhD VWBeVUE0JCZCV1ZZpaanoqCgX1FYqru8vGFQYMDNzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" /&#62; <p>How did I come up with this base64 image string?&#160;&#160;First of all, I created a favicon.ico file from my profile picture using the free favicon generator at iconj.com.&#160;&#160;Then I used another free tool Base64 Online Encoder to convert the contents of the favicon.ico file into a base64 string which I then embedded into the HTML &#60;link&#62; element as shown above.</p> <p>Here is what it looks like when this blog is viewed using Firebox.</p> <p></p> <p>As you can see the favicon displays correctly on both a tabbed window and the toolbar.&#160;&#160;However this hack does not work for any version of Internet Explorer or Safari that I know of. </p> <p>Incidently, the image used to create the blog title bar came from recent photograph taken at dawn on Panglao Island, PH by Ms P. Correia.</p> ]]></description>
		<wfw:commentRss>http://blog.fpmurphy.com/2008/12/favicon-issues.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Displaying Source Code in a Post</title>
		<link>http://blog.fpmurphy.com/2008/12/this-is-test-post-1-include-2-3-int-4.html</link>
		<comments>http://blog.fpmurphy.com/2008/12/this-is-test-post-1-include-2-3-int-4.html#comments</comments>
		<pubDate>Tue, 09 Dec 2008 06:35:00 +0000</pubDate>
		<dc:creator>fpmurphy</dc:creator>
				<category><![CDATA[blogspot]]></category>
		<category><![CDATA[display source code]]></category>
		<category><![CDATA[BLOG]]></category>

		<guid isPermaLink="false">http://blog.fpmurphy.com/2008/12/displaying-source-code-in-a-post.html</guid>
		<description><![CDATA[<p>I generally include source code of one kind or another in my postings.&#160;&#160;Being used to the &#60;code&#62;, &#038;lt/code&#038;gt tags commonly available in user forums such as www.unix.com, I was surprised to find that no such facility was available for use on Blogger.&#160;&#160;I searched around the Internet and came across similar complaints from other users and various suggestions and means of formating code so that it is attractively and usefully displayed in a post.&#160;&#160;After trying a number of methods and formats developed by others and generally being unhappy with the results, I decided that my best approach was to develop and incorporate a custom CSS element for displaying source code into my Blogger layout template.</p> <p>Here is the CSS element which I am using to display the source code in this post: /* Custom styling ----------------------------- */ .displaybox, .displaybox pre { font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; color: black; background-color: RGB(245,218,199); border: 1px dashed #999999; line-height: 14px; padding: 5px; overflow: auto; width: 100% } <p>I added this code to my blog template in the &#60;b:skin&#038;gt section of the template just about the Comments section.</p> <p>Here is a sample of the output for a simple C function.&#160;&#160;No changes had to be made to the source code except to change the include header angle brackets to &#38;lt; and &#38;gt; respectively. #include &#60;shell.h&#62; int b_hello(int argc, char *argv[], void *extra { if (argc != 2) { printf("Usage: hello arg\n"); return(2); } printf("Hello %s\n", argv[1]); return(0); } <p>This custom CSS element in my blog template will not eliminate the need to make any changes to source code before including the code in a post but it does simplify things.&#160; &#160;With this CSS element in place, the only parts of the source code that I should have to manually edit in order to display correctly are angle brackets, ampersands and quotation marks.</p> <p>UPDATE 07/01/2009 This post was written when I was using Blogspot. I am now using WordPress on my own web site.</p> ]]></description>
		<wfw:commentRss>http://blog.fpmurphy.com/2008/12/this-is-test-post-1-include-2-3-int-4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

