<?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>Christina Sng dot com &#187; Coding</title>
	<atom:link href="http://christinasng.com/category/blog/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://christinasng.com</link>
	<description>Thrilling Web Adventures of a Retired Tech Guru</description>
	<lastBuildDate>Sat, 28 Aug 2010 06:12:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>BlogPress introduces HTML tags</title>
		<link>http://christinasng.com/blogpress-introduces-html-tags/</link>
		<comments>http://christinasng.com/blogpress-introduces-html-tags/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 06:12:02 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone Apps]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[blogging on iPhone]]></category>
		<category><![CDATA[BlogPress]]></category>
		<category><![CDATA[HTML tags]]></category>

		<guid isPermaLink="false">http://christinasng.com/blogpress-introduces-html-tags/</guid>
		<description><![CDATA[BlogPress is giving its competitors a serious run for their money. It is just introduced HTML tags and a promise of more things to come. It is still definitely the best blogging app for iPhone by far. That said, it just crashed when I clicked Save and Create New but when I started the app [...]]]></description>
			<content:encoded><![CDATA[<p>BlogPress is giving its competitors a serious run for their money. It is just introduced HTML tags and a promise of more things to come. It is still definitely the best blogging app for iPhone by far.</p>
<p><center><a href='http://christinasng.com/wp-content/uploads/2010/08/CC72F3F7-8FF5-4CEA-AA9C-C8C07E984F4Biphone_photo.jpg'><img src='http://christinasng.com/wp-content/uploads/2010/08/CC72F3F7-8FF5-4CEA-AA9C-C8C07E984F4Biphone_photo.jpg' border='0' width='400' height='600' style='margin:5px'></a></center></p>
<p><center><a href='http://christinasng.com/wp-content/uploads/2010/08/3DAEF762-7323-4544-B4E1-6BE038D22938iphone_photo.jpg'><img src='http://christinasng.com/wp-content/uploads/2010/08/3DAEF762-7323-4544-B4E1-6BE038D22938iphone_photo.jpg' border='0' width='400' height='600' style='margin:5px'></a></center><br />
That said, it just crashed when I clicked Save and Create New but when I started the app again, the post had been saved so no big. Use Save Draft Only till this bug is fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/blogpress-introduces-html-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twittering on WordPress</title>
		<link>http://christinasng.com/twittering-on-wordpress/</link>
		<comments>http://christinasng.com/twittering-on-wordpress/#comments</comments>
		<pubDate>Sun, 25 May 2008 19:15:09 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.christinasng.com/?p=31</guid>
		<description><![CDATA[The Twittering begins! I&#8217;ve finally got Twitter on both my main blogs, this one and Strange Machines. Although there are tons of Twitter plugins for WordPress blogs (and having installed 2 that don&#8217;t seem to work), I found it easiest to cut and paste the custom HTML and Javascript Twitter code myself. Here&#8217;s how: 1. [...]]]></description>
			<content:encoded><![CDATA[<p>The Twittering begins!</p>
<p>I&#8217;ve finally got Twitter on both my main blogs, this one and <a href="http://www.mephala.com">Strange Machines</a>. Although there are <a href="http://www.quickonlinetips.com/archives/2007/04/10-best-twitter-tools-for-wordpress-blogs/" target="_new">tons of Twitter plugins for WordPress blogs</a> (and having installed 2 that don&#8217;t seem to work), I found it easiest to cut and paste the <a href="http://twitter.com/badges/" target="_new">custom HTML and Javascript Twitter code</a> myself.</p>
<p>Here&#8217;s how:</p>
<p>1. First ensure your Twittering is <strong>set to public</strong>.</p>
<p>At Twitter, go to <strong>Settings</strong> -&gt; unclick <strong>Protect my Updates</strong> -&gt; Save.</p>
<p>2. Now, each theme is a bit tricky. This one actually doesn&#8217;t have any Sidebars defined (you&#8217;ll see when you click Widgets), so what I had to do was:</p>
<p>A. Head to <strong>Design -&gt; Theme Editor -&gt; Sidebar</strong></p>
<p>and right after <strong>&lt;div class=&#8221;sidebar&#8221;&gt;<br />
</strong></p>
<p>paste the <strong>HTML/Javascript code</strong> from the Twitter badge site. Click <a href="http://twitter.com/badges/html">here</a> to get yours.</p>
<p><strong>Update File</strong> and you&#8217;re done.</p>
<p>B. If you do have your <strong>Sidebar Widgets</strong> enabled, go to <strong>Design -&gt; Widgets</strong></p>
<p>and add a <strong>Text widget</strong>.</p>
<p>Copy and paste the <strong>HTML/Javascript code from Twitter</strong> wholesale into the text area.</p>
<p>Save and you&#8217;re done!</p>
<p>Happy Twittering. <img src='http://christinasng.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/twittering-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Align it Right in WordPress</title>
		<link>http://christinasng.com/align-it-right/</link>
		<comments>http://christinasng.com/align-it-right/#comments</comments>
		<pubDate>Sun, 25 May 2008 18:42:12 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Alignment]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.christinasng.com/?p=30</guid>
		<description><![CDATA[When fixing your alignment from the left, don&#8217;t forget to specify an equal white space distance from the right too. As you&#8217;ve probably noticed, I have added Twitter updates on the top right hand box there to humanise the blog a little. -&#62; The default setting in Stylesheet flushed it right against the margin which [...]]]></description>
			<content:encoded><![CDATA[<p>When fixing your alignment from the left, don&#8217;t forget to specify an equal white space distance from the right too.</p>
<p>As you&#8217;ve probably noticed, I have added Twitter updates on the top right hand box there to humanise the blog a little. <img src='http://christinasng.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  -&gt;</p>
<p>The default setting in Stylesheet flushed it right against the margin which is ugly and awful design.</p>
<p>To fix it, simply open your <strong>Design -&gt; Theme Editor -&gt; Stylesheet</strong>.</p>
<p>Look for the line: <strong>.sidebar ul </strong></p>
<p>and add: <strong>padding-right: 10px;</strong></p>
<p>Tweak as needed till both left and right white spaces look equidistant.</p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/align-it-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Alignment on WordPress</title>
		<link>http://christinasng.com/fixing-alignment-on-wordpress/</link>
		<comments>http://christinasng.com/fixing-alignment-on-wordpress/#comments</comments>
		<pubDate>Fri, 09 May 2008 20:33:18 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Alignment]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.christinasng.com/?p=25</guid>
		<description><![CDATA[I confess it has been a long time since I have had to edit someone else&#8217;s code. Admittedly these days it is easier to build a site with customisable templates (themes, here on WordPress) but it takes time to understand what another developer has written and immerse your vision into their code. If it is [...]]]></description>
			<content:encoded><![CDATA[<p>I confess it has been a long time since I have had to edit someone else&#8217;s code. Admittedly these days it is easier to build a site with customisable templates (themes, here on WordPress) but it takes time to understand what another developer has written and immerse your vision into their code.</p>
<p>If it is straightforward HTML, it is quite easy. Remember, I&#8217;m a dinosaur. I use tables. Even on my Blogdrive blogs, I had handwritten my own code since they run from 3 files only. Now that I am on WordPress, running on someone else&#8217;s CMS has forced me to adopt more CSS edits amidst a varied file structure with each theme which may contain numerous files.</p>
<p>Still it is a fun challenge. I&#8217;ve been fiddling with the <strong>pixel sizes</strong> in the <strong>padding</strong>, <strong>font sizes</strong>, <strong>margins</strong>, and <strong>letter-spacings</strong>. But ultimately, when all fails to nudge that text into alignment, the easiest solution is to <strong>reword the text</strong>. And so I have. <img src='http://christinasng.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Two windows open (<em>stylesheet</em> and <em>header</em>, in my case), click save twice, and press F5 to refresh the blog. Repeat till it looks right. (See &#8220;about&#8221; in top right header for final product.)</p>
<p>Deciphering a code written by another is almost like getting to know someone and learning to understand them. You click until you figure out the file structure, then you stare at the code till you get which tag represents which item.</p>
<p>Finally, when you&#8217;re ready, you move some lines around such that it makes more sense to you, neaten the code so that it is easier for you to edit, and finally tweak the code such that it represents what you had in mind. Hmm&#8230; that sounds like a relationship indeed.</p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/fixing-alignment-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Coding Tips: Alignment around Images</title>
		<link>http://christinasng.com/wordpress-coding-tips-alignment-around-images/</link>
		<comments>http://christinasng.com/wordpress-coding-tips-alignment-around-images/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 19:32:56 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Alignment]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.christinasng.com/techgoddess/?p=7</guid>
		<description><![CDATA[In WordPress, you&#8217;ll need to find an alternative to the usual hspace and vspace tags. Here&#8217;s a great suggestion from the WordPress Codex. In the stylesheet, paste this: img.left { padding: 4px; margin: 0 7px 2px 0; display: inline; } And in your markup code in whichever file you&#8217;re editing, e.g. About, in my case, [...]]]></description>
			<content:encoded><![CDATA[<p>In WordPress, you&#8217;ll need to find an alternative to the usual <strong>hspace</strong> and <strong>vspace</strong> tags.</p>
<p>Here&#8217;s a great suggestion from the WordPress Codex. In the stylesheet, paste this:</p>
<blockquote>
<pre>img.left { <strong>padding</strong>: 4px; <strong>margin</strong>: 0 7px 2px 0; display: inline; }</pre>
</blockquote>
<p><br clear=all><br />
And in your markup code in whichever file you&#8217;re editing, e.g. About, in my case, code it like this:</p>
<blockquote>
<pre>&lt;img src=http://www.whereveryourpicis.com/pic.gif class=left&gt;</pre>
</blockquote>
<p><br clear=all><br />
Tweak the <strong>padding</strong> and <strong>margins</strong> till they align nicely. And you&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/wordpress-coding-tips-alignment-around-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding Tip: Add a Favicon</title>
		<link>http://christinasng.com/coding-tip-add-a-favicon/</link>
		<comments>http://christinasng.com/coding-tip-add-a-favicon/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 16:37:00 +0000</pubDate>
		<dc:creator>Christina</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.christinasng.com/?p=13</guid>
		<description><![CDATA[1. Create your desired image 16x16px in an image editor and save it as a gif, jpg, png, or ico file, depending on which version your web host or blog provider supports. (WordPress uses favicon.ico). 2. Upload it into your root folder. 3. Insert this code between your &#60;head&#62;&#60;/head&#62; tags. &#60;link rel=&#8221;shortcut icon&#8221; href=&#8221;http://domain.com/favicon.ico&#8221; type=&#8221;image/x-icon&#8221;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>1. Create your desired image 16x16px in an image editor and save it as a gif, jpg, png, or ico file, depending on which version your web host or blog provider supports. (WordPress uses favicon.ico).</p>
<p>2. Upload it into your root folder.</p>
<p>3. Insert this code between your &lt;head&gt;&lt;/head&gt; tags.</p>
<p><span style="font-size: xx-small;">&lt;link rel=&#8221;shortcut icon&#8221; href=&#8221;http://domain.com/favicon.ico&#8221; type=&#8221;image/x-icon&#8221;&gt;<br />
&lt;link rel=&#8221;icon&#8221; href=&#8221;http://domain.com/favicon.ico&#8221; type=&#8221;image/x-icon&#8221;&gt;</span></p>
<p>In WordPress, this would be your Header (header.php) file but you insert this code instead:</p>
<p><span style="font-size: xx-small;">&lt;link rel=&#8221;shortcut icon&#8221; href=&#8221;&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt;/favicon.ico&#8221; /&gt;</span></p>
<p>4. Save and reload. Your icon should appear next to your address bar now!</p>
]]></content:encoded>
			<wfw:commentRss>http://christinasng.com/coding-tip-add-a-favicon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
