<?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>LoriB.me&#187; code</title>
	<atom:link href="http://lorib.me/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://lorib.me</link>
	<description>New home of LBnuke</description>
	<lastBuildDate>Wed, 01 Feb 2012 19:54:33 +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>Display Custom Fields In &amp; Out of The Loop</title>
		<link>http://lorib.me/code-snippets/display-custom-fields-in-out-of-the-loop/</link>
		<comments>http://lorib.me/code-snippets/display-custom-fields-in-out-of-the-loop/#comments</comments>
		<pubDate>Wed, 25 May 2011 14:24:56 +0000</pubDate>
		<dc:creator>Lori</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[The Loop]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lorib.me/?post_type=lbn_snippet&#038;p=2995</guid>
		<description><![CDATA[INSIDE THE LOOP: OUTSIDE THE LOOP: No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<h3>INSIDE THE LOOP:</h3>
<pre class="brush: php; title: ; notranslate">
&lt;?php

if ( get_post_meta($post-&gt;ID, 'custom-field-name', true) ) :
	echo get_post_meta($post-&gt;ID, 'custom-field-name', true);
	endif;

?&gt;</pre>
<h3>OUTSIDE THE LOOP:</h3>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	global $wp_query;
	$postid = $wp_query-&gt;post-&gt;ID;
	echo get_post_meta($postid, 'custom-field-name', true);
	wp_reset_query();

?&gt;
</pre>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://lorib.me/code-snippets/display-custom-fields-in-out-of-the-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chalkboard Color Scheme for Komodo</title>
		<link>http://lorib.me/2009/03/03/chalkboard-color-scheme-for-komodo/</link>
		<comments>http://lorib.me/2009/03/03/chalkboard-color-scheme-for-komodo/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 23:20:16 +0000</pubDate>
		<dc:creator>Lori</dc:creator>
				<category><![CDATA[Code / Dev]]></category>
		<category><![CDATA[Geekery]]></category>
		<category><![CDATA[Mac Stuff]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://lorib.me/?p=830</guid>
		<description><![CDATA[This color scheme is updated regularly. (View Updates) Komodo Edit 5 has been my default code editor for the past week or so. It is much faster and nicer to look at than previous versions that I have tried. I switch default code editors almost as often as I switch default browsers. There are so [...]<h4>Related posts:<ol>
<li><a href='http://lorib.me/2009/07/18/20-favorite-mac-apps-of-the-moment/' rel='bookmark' title='21 Favorite Mac Apps of the Moment'>21 Favorite Mac Apps of the Moment</a> <small>Update (8/3/09): Added SuperDuper! to list and changed title. Just...</small></li>
<li><a href='http://lorib.me/2006/08/07/lbnuke-50/' rel='bookmark' title='LBnuke 5.0'>LBnuke 5.0</a> <small>The spam. I can&#8217;t deal with it anymore. I am...</small></li>
<li><a href='http://lorib.me/2007/03/20/plugin-update/' rel='bookmark' title='Plugin Update'>Plugin Update</a> <small>I have given up on the Share This plugin for...</small></li>
</ol></h4>]]></description>
			<content:encoded><![CDATA[<p><del datetime="2011-12-28T18:15:16+00:00">This color scheme is updated regularly.</del> (<a href="#updates">View Updates</a>)</p>
<div id="attachment_3041" class="wp-caption aligncenter" style="width: 451px"><img class="size-full wp-image-3041" title="Komodo PHP Sample" src="http://lorib.me/wp-content/uploads/2009/03/php21.png" alt="Komodo PHP Sample" width="441" height="202" /><p class="wp-caption-text">Komodo PHP Sample</p></div>
<p><a href="http://activestate.com/komodo_edit/">Komodo Edit 5</a> has been my default code editor for the past week or so. It is much faster and nicer to look at than previous versions that I have tried. I switch default code editors almost as often as I switch default browsers. There are so many good ones out there, but none feels exactly right. Considering I spend most of my days switching between browsers and editor, I like to keep up with the latest that is available for mac.</p>
<p>One of the things I am most picky about in an editor is the color scheme. It is very hard for me to find schemes that I can stand to stare at for long periods of time. Schemes with white/light backgrounds and colored text are usually too bright for me and dark schemes are usually either too high or too low contrast. For this reason, I usually end up making my own.</p>
<p>If anyone else is using Komodo Edit (or <a href="http://www.activestate.com/komodo/">Komodo IDE</a>) and is similarly picky about color schemes, I have made it available for download.</p>
<p style="text-align: center;"><a href="http://dl.dropbox.com/u/169113/LB_Chalkboard.ksf.zip">Click here to download the LB Chalkboard scheme</a></p>
<div id="attachment_3025" class="wp-caption aligncenter" style="width: 481px"><img class="size-full wp-image-3025" title="Komodo CSS" src="http://lorib.me/wp-content/uploads/2011/06/komodo-css-2.png" alt="Komodo CSS sample" width="471" height="254" /><p class="wp-caption-text">Komodo CSS Sample</p></div>
<p style="text-align: left;">I should mention that the only language specific colors I made changes to are PHP, CSS, HTML, XML, and JavaScript. Also, I am still changing things as I come across them.</p>
<p><a name="updates"></a></p>
<p class="caption small"><strong>Update (3/4/09):</strong> Changed CSS comment color from green to default grey.</p>
<p class="caption small"><strong>Update (3/21/09): </strong>Downloaded the trial version of Komodo IDE 5 yesterday and noticed that schemes switched over automatically. [<strong>update</strong>: bought Komodo IDE 5 after trial expired. Still loving it (1/17/10)]</p>
<p class="caption small"><strong>Update (3/24/09): </strong>Fixed issue with some defaults changing from white to black text after update to Komodo 5.1. Added language specific colors for Smarty.</p>
<p class="caption small"><strong>Update (8/23/09): </strong>Changed Common Syntax bracehighlight background color from dark grey to yellow for increased visibility.</p>
<p class="caption small"><strong>Update (9/17/09): </strong>Changed Find highlighting indicator background color from yellow to green for increased readability.</p>
<p class="caption small"><strong>Update (1/17/10): </strong>Changed Tag matching indicator background color from orange to light blue for increased readability.</p>
<p class="caption small"><strong>Update (4/20/10): </strong>Identifiers color added for JavaScript.</p>
<p class="caption small"><strong>Update (5/30/10): </strong>Changed colors of identifiers and strings for JavaScript because the orange identifiers were burning out my retinas. Identifiers are now off-white and strings are light orange.</p>
<p class="caption small"><strong>Update (10/14/10): </strong>A few settings were changed slightly after installing Komodo 6.0. Still assessing whether I will change them back or keep them as is.</p>
<p class="caption small"><strong>Update (6/1/11): </strong>CSS identifier color changed to increase readability, reduce eye-strain, and match other scheme colors better.</p>
<p class="caption small"><strong>Update (7/9/11): </strong>All is well in Komodo 7.0-alpha3 except for the new HTML5 scheme not matching at all. Will get to that if I can ever find some time.</p>
<p class="caption small"><strong>Update (12/28/11): </strong>This scheme has been included as a default scheme in Komodo 7 and is now called Dark_Chalkboard. Thanks to ActiveState for including it.</p>
<h4>Related posts:<ol>
<li><a href='http://lorib.me/2009/07/18/20-favorite-mac-apps-of-the-moment/' rel='bookmark' title='21 Favorite Mac Apps of the Moment'>21 Favorite Mac Apps of the Moment</a> <small>Update (8/3/09): Added SuperDuper! to list and changed title. Just...</small></li>
<li><a href='http://lorib.me/2006/08/07/lbnuke-50/' rel='bookmark' title='LBnuke 5.0'>LBnuke 5.0</a> <small>The spam. I can&#8217;t deal with it anymore. I am...</small></li>
<li><a href='http://lorib.me/2007/03/20/plugin-update/' rel='bookmark' title='Plugin Update'>Plugin Update</a> <small>I have given up on the Share This plugin for...</small></li>
</ol></h4>]]></content:encoded>
			<wfw:commentRss>http://lorib.me/2009/03/03/chalkboard-color-scheme-for-komodo/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Plugin Update</title>
		<link>http://lorib.me/2007/03/20/plugin-update/</link>
		<comments>http://lorib.me/2007/03/20/plugin-update/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 20:38:39 +0000</pubDate>
		<dc:creator>Lori</dc:creator>
				<category><![CDATA[Geekery]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://lorib.me/2007/03/20/plugin-update/</guid>
		<description><![CDATA[I have given up on the Share This plugin for now. No time to mess with it anymore. I am back to using the social bookmarks plugin, but I like the way Share This works and looks much better. When I have more time, I will try again. Yesterday, I added the WP-chgFontSize plugin, which [...]<h4>Related posts:<ol>
<li><a href='http://lorib.me/2007/03/22/more-wordpress-plugins/' rel='bookmark' title='More WordPress Plugins'>More WordPress Plugins</a> <small>The first plugin of today is not actually a wordpress...</small></li>
<li><a href='http://lorib.me/2007/05/16/wordpress-22-upgrade/' rel='bookmark' title='WordPress 2.2 Upgrade'>WordPress 2.2 Upgrade</a> <small>I am starting to believe that the days of the...</small></li>
<li><a href='http://lorib.me/2006/11/06/wordpress-love/' rel='bookmark' title='WordPress Love'>WordPress Love</a> <small>I love wordpress. My first thought about making new websites...</small></li>
</ol></h4>]]></description>
			<content:encoded><![CDATA[<p>I have given up on the <a href="http://alexking.org/projects/wordpress">Share This</a> plugin for now. No time to mess with it anymore. I am back to using the social bookmarks plugin, but I like the way Share This works and looks much better. When I have more time, I will try again. </p>
<p>Yesterday, I added the <a href="http://www.rodenas.org/blog/2007/03/08/wp-chgfontsize/trackback/">WP-chgFontSize</a> plugin, which is pretty cool. I wish it used ems or percentages instead of pixels for the font-sizes, but can see how that might get tricky with the javascript. I added some code to include a link to return to the default font size. It was bugging me that the only way I could return to the default size was to delete the cookie from my computer. I like to have an &#8216;undo&#8217; option whenever possible. If anyone else is interested in having this option, here is the code:</p>
<p>In the wp-chgfontsize.js file, right after this <code>else</code> block (around line 82):</p>
<p><code allow="none">			} else {<br />
				document.write('&nbsp;<a href="javascript:void(0);" onclick="chgFontSize_increase();"><img src="' + chgfontsize_imgincdea.src + '" title="Increase Font Size" alt="A+" id="chgfontsizeimginc" /></a>&nbsp;');<br />
			}</code></p>
<p>Add this:</p>
<p><code allow="none">document.write('&nbsp;<a href="javascript:void(0);" onclick="chgFontSize_change(15);" title="Default Font Size">default</a>');</code></p>
<p>Replace the <code>15</code> with whatever your default font size is.</p>
<p>Just when I thought I was finished experimenting with plugins for today, I realized that even when using <code allow="none"><code></code> tags, the code was not displaying right in this post. Hyperlinks were actual working hyperlinks, image tags were showing the image, and <code>&nbsp;</code> html codes were making spaces. </p>
<p>Enter my newest plugin, <a href="http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/">Code Markup</a>, which makes the code tags work right. It is kind of annoying to use a plugin for something that is supposed to happen automatically, but it seemed like the quickest, easiest solution to make it work. </p>
<p>Still, you gotta love that there is a wordpress plugin for just about everything! I am using 26 of them right now on this site.</p>
<h4>Related posts:<ol>
<li><a href='http://lorib.me/2007/03/22/more-wordpress-plugins/' rel='bookmark' title='More WordPress Plugins'>More WordPress Plugins</a> <small>The first plugin of today is not actually a wordpress...</small></li>
<li><a href='http://lorib.me/2007/05/16/wordpress-22-upgrade/' rel='bookmark' title='WordPress 2.2 Upgrade'>WordPress 2.2 Upgrade</a> <small>I am starting to believe that the days of the...</small></li>
<li><a href='http://lorib.me/2006/11/06/wordpress-love/' rel='bookmark' title='WordPress Love'>WordPress Love</a> <small>I love wordpress. My first thought about making new websites...</small></li>
</ol></h4>]]></content:encoded>
			<wfw:commentRss>http://lorib.me/2007/03/20/plugin-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  lorib.me/tag/code/feed/ ) in 1.04411 seconds, on Feb 9th, 2012 at 12:08 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 9th, 2012 at 1:08 pm UTC -->
