<?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>Kracked</title>
	<atom:link href="http://kracked.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kracked.com</link>
	<description>The K in K-Rad</description>
	<lastBuildDate>Sun, 30 Sep 2012 21:17:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Add a default fallback for get_post_thumbnail / featured image</title>
		<link>http://kracked.com/add-a-default-fallback-for-get_post_thumbnail-featured-image/</link>
		<comments>http://kracked.com/add-a-default-fallback-for-get_post_thumbnail-featured-image/#comments</comments>
		<pubDate>Sun, 30 Sep 2012 21:07:16 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[default thumbnail]]></category>
		<category><![CDATA[get_post_thumbnail]]></category>

		<guid isPermaLink="false">http://kracked.com/?p=124</guid>
		<description><![CDATA[Since WordPress doesn&#8217;t have any support for a &#8220;default thumbnail&#8221; and there isn&#8217;t any filters that works directly on get_post_thumbnail(),  the_post_thumbnail(), get_post_thumbnail_id(), get_the_post_thumbnail(), etc &#8211; we need to hook the filter get_post_metadata. /* * Fall back to a hard coded default thumbnail if a thumbnail doesn't already exist */ function custom_filter_get_post_metadata($metadata, $object_id, $meta_key, $single) { if(isset($meta_key)...  <a href="http://kracked.com/add-a-default-fallback-for-get_post_thumbnail-featured-image/" class="more-link" title="Read Add a default fallback for get_post_thumbnail / featured image">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead">Since WordPress doesn&#8217;t have any support for a &#8220;default thumbnail&#8221; and there isn&#8217;t any filters that works directly on <strong>get_post_thumbnail()</strong>,  <strong>the_post_thumbnail()</strong>,<strong> get_post_thumbnail_id()</strong>, <strong>get_the_post_thumbnail()</strong>, etc &#8211; we need to hook the filter <strong>get_post_metadata</strong>.</p>
<p><code>
<pre>
/*
* Fall back to a hard coded default thumbnail if a thumbnail doesn't already exist
*/
function custom_filter_get_post_metadata($metadata, $object_id, $meta_key, $single)
{

if(isset($meta_key) &amp;&amp; '_thumbnail_id' === $meta_key)
{
//Temporarily remove filter to fetch the real data, since it's not sent as a parameter to this filter
remove_filter('get_post_metadata', 'custom_filter_get_post_metadata', true, 4);

// Get real thumbnail id
$existing_thumbnail = get_post_meta($object_id,'_thumbnail_id',true);

// Set it to a fallback ID if it doesn't already exist
if (empty($existing_thumbnail)) $result = 3372; &lt;&lt; CHANGE THIS ID TO A ATTACHMENT ID!!!

// Re-enable the filter
add_filter('get_post_metadata', 'custom_filter_get_post_metadata', true, 4);

if(!empty($result))
return $result;
}

return $metadata;
}
add_filter('get_post_metadata', 'custom_filter_get_post_metadata', true, 4);
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/add-a-default-fallback-for-get_post_thumbnail-featured-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IRC &#8211; now even more legit for work</title>
		<link>http://kracked.com/irc-now-even-more-legit-for-work/</link>
		<comments>http://kracked.com/irc-now-even-more-legit-for-work/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 21:42:28 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[work vs leisure]]></category>
		<category><![CDATA[irc]]></category>

		<guid isPermaLink="false">http://kracked.com/?p=118</guid>
		<description><![CDATA[No news for us nerds: IRC is one of the best protocols for communication. There is clients for every OS, in all kind of flavors. And with help of an bouncer or using screen you will never lose track of the conversation after being AFK.  But it has been quite hard to pitch the 23(!)...  <a href="http://kracked.com/irc-now-even-more-legit-for-work/" class="more-link" title="Read IRC &#8211; now even more legit for work">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead">No news for us nerds: IRC is one of the best protocols for communication. There is clients for every OS, in all kind of flavors. And with help of an bouncer or using screen you will never lose track of the conversation after being AFK. <span id="more-118"></span></p>
<p>But it has been quite hard to pitch the 23(!) year old protocols to suits and art directors.</p>
<p>Enter <a href="http://grove.io">Grove</a>, a services that combines the best of both worlds:</p>
<div>
<div>
<blockquote><p>Grove provides its users hosting, user accounts, channel access controls, and searchable archives, as well as a swanky Web-based client. But it still allows all the benefits of an open protocol like IRC, so team members can use whatever client app they desire on any device. Grove lists a few recommended apps on different platforms, as well as the easy instructions for connecting, at <a href="https://grove.io/help/">grove.io/help</a>.</p></blockquote>
<p><a href="http://www.readwriteweb.com/hack/2011/11/groveio-hosted-searchable-irc.php">Grove.io: Hosted, Searchable IRC Chat For Teams</a> ( Via <a href="http://news.ycombinator.com/">Hacker News</a>)</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/irc-now-even-more-legit-for-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Almost snow</title>
		<link>http://kracked.com/almost-snow/</link>
		<comments>http://kracked.com/almost-snow/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 20:17:26 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[Egoshots]]></category>

		<guid isPermaLink="false">http://kracked.com/?p=69</guid>
		<description><![CDATA[Yesterdays cold disappeared as the rain came in a sticky form of something that with a big generosity could be called snow. The lousy weather was an great excuse to sleep in&#8230; The day has been filled with som adminstrative duties, WordPress (me and Ann is co-hacking a multi-language-multi-site setup for Bonnier Business Publishing) and SEO...  <a href="http://kracked.com/almost-snow/" class="more-link" title="Read Almost snow">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead"><a href="http://kracked.com/files/2010/11/Bild-2010-11-09-kl.-19.38-2.jpg"><img class="aligncenter size-full wp-image-70" title="Bild 2010-11-09 kl. 19.38 #2" src="http://kracked.com/files/2010/11/Bild-2010-11-09-kl.-19.38-2.jpg" alt="" width="640" height="480" /></a>Yesterdays cold disappeared as the rain came in a sticky form of something that with a big generosity could be called snow. The lousy weather was an great excuse to sleep in&#8230; The day has been filled with som adminstrative duties, <a href="http://kracked.com/category/wordpress/">WordPress</a> (me and <a href="http://annlickander.se/">Ann</a> is co-hacking a multi-language-multi-site setup for <a href="http://www.bonnierbusinesspublishing.se/">Bonnier Business Publishing</a>) and <a href="http://kracked.com/category/seo/">SEO</a> (working on a long tail strategy with <a href="http://www.flygstolen.se/">Flygstolen</a>). And yeah, during lunch I finally took myself the time to <a href="http://iphone24.se/ge-telefonen-en-micingang/">write a post on Iphone 24</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/almost-snow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chilly day and storage problems</title>
		<link>http://kracked.com/chilly-day-and-storage-problems/</link>
		<comments>http://kracked.com/chilly-day-and-storage-problems/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 17:48:32 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[Egoshots]]></category>
		<category><![CDATA[binero]]></category>
		<category><![CDATA[netapp]]></category>

		<guid isPermaLink="false">http://kracked.com/?p=65</guid>
		<description><![CDATA[The morning started a bit earlier than usually but it took exceptional long time to arrive to the office today. Just as I was about to leave home the monitoring alerts started beeping in the phone. Several customer sites suddenly went offline as one of Swedens biggest web hosts, Binero, experienced problems with its SAN...  <a href="http://kracked.com/chilly-day-and-storage-problems/" class="more-link" title="Read Chilly day and storage problems">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<a href="http://kracked.com/files/2010/11/IMG_19911.jpg"><img class="alignnone size-full wp-image-67" title="From Klarabergsviadukten" src="http://kracked.com/files/2010/11/IMG_19911.jpg" alt="" width="480" height="640" /></a>
<p class="lead">The morning started a bit earlier than usually but it took exceptional long time to arrive to the office today. Just as I was about to leave home the monitoring alerts started beeping in the phone. Several customer sites suddenly went offline as one of Swedens biggest web hosts, Binero, experienced problems with its SAN causing almost four hours of downtime. When everything finally was up and running I reported to owners of the websites and arrived to KB5 a few minutes after 2 pm.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/chilly-day-and-storage-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sunday November 7</title>
		<link>http://kracked.com/sunday-november-7/</link>
		<comments>http://kracked.com/sunday-november-7/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 19:58:58 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[Egoshots]]></category>
		<category><![CDATA[Procrastination]]></category>

		<guid isPermaLink="false">http://kracked.com/?p=53</guid>
		<description><![CDATA[Slow day at the office trying to upgrade a wordpress plugin to make it comptabile with version 3. Had a strange potato and salomon dinner with Anders Färdigh before he left for some late sunday night adventures.]]></description>
			<content:encoded><![CDATA[<a href="http://kracked.com/files/2010/11/Bild-2010-11-07-kl.-20.43.jpg"><img class="alignnone size-full wp-image-54" title="Bild 2010-11-07 kl. 20.43" src="http://kracked.com/files/2010/11/Bild-2010-11-07-kl.-20.43.jpg" alt="" width="640" height="480" /></a>
<p class="lead">Slow day at the office trying to upgrade a <a href="http://www.karamell.net/om/wordpress/">wordpress plugin</a> to make it comptabile with version 3. Had a strange potato and salomon dinner with <a href="http://www.andersfardigh.com/">Anders Färdigh</a> before he left for some late sunday night adventures.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/sunday-november-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doing it smooth with jQuery Cycle Plugin</title>
		<link>http://kracked.com/doing-it-smooth-with-jquery-cycle-plugin/</link>
		<comments>http://kracked.com/doing-it-smooth-with-jquery-cycle-plugin/#comments</comments>
		<pubDate>Sat, 08 May 2010 17:43:23 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://kracked.com/doing-it-smooth-with-jquery-cycle-plugin/</guid>
		<description><![CDATA[This is something that I wish I&#8217;ve found a few weeks ago&#8230; The jQuery Cycle Plugin is the result of some fine javascript craftsmanship by Mike Alsup (@malsup). The plugin offer a series of cool, yet easy to use, transition effects for your next web project. It work well both with images and random html!...  <a href="http://kracked.com/doing-it-smooth-with-jquery-cycle-plugin/" class="more-link" title="Read Doing it smooth with jQuery Cycle Plugin">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<img src="http://tuut.atdt.nu/a/e272f91247c52a9395c53c0d3461aa5a.jpg" alt="Do a a lot of cool stuff with jquery" />
<p class="lead">This is something that I wish I&#8217;ve found a few weeks ago&#8230;</p>
<p>The <a href="http://www.malsup.com/jquery/cycle/">jQuery Cycle Plugin</a> is the result of some fine javascript craftsmanship by Mike Alsup (@<a href="http://twitter.com/malsup">malsup</a>).</p>
<p>The plugin offer a series of cool, yet easy to use, transition effects for your next web project. It work well both with images and random html!</p>
<p><a href="http://www.malsup.com/jquery/cycle/int2.html">Check out the demos and be amazed</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/doing-it-smooth-with-jquery-cycle-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Domain sale until end of July! $6.89 for registrations, transfers &amp; renewals.</title>
		<link>http://kracked.com/domain-sale-until-end-of-july-689-for-registrations-transfers-renewals/</link>
		<comments>http://kracked.com/domain-sale-until-end-of-july-689-for-registrations-transfers-renewals/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 20:49:48 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[domains]]></category>

		<guid isPermaLink="false">http://bloggy.kracked.com/2007/07/17/domain-sale-until-end-of-july-689-for-registrations-transfers-renewals/</guid>
		<description><![CDATA[Until July 31:th &#8211; all customers that got totally $35 in order history at Kracked can enjoy slashed prices on new registrations, transfers and renewals on .com, .net, .info, .org, .biz, .name domains. This promo is also available for new customers who deposit atleast $35 into their account. Since Verisign&#8217;s announced price raise (7%) on...  <a href="http://kracked.com/domain-sale-until-end-of-july-689-for-registrations-transfers-renewals/" class="more-link" title="Read Domain sale until end of July! $6.89 for registrations, transfers &#38; renewals.">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead">Until July 31:th &#8211; all customers that got totally $35 in order history at Kracked can enjoy slashed prices on new registrations, transfers and renewals on <strong>.com, .net, .info, .org, .biz, .name</strong> domains. This promo is also available for new customers who deposit atleast $35 into their account. </p>
<p>
Since Verisign&#8217;s <a href="http://news.com.com/2100-1030_3-6173825.html">announced price raise </a>(7%) on October 15:th undoubtly will lead to higher costs for all domain owners this is the perfect oppurtunity to renew your domain portfolio for several years in advance.  </p>
<p>Until the end of the month we are also offering hosting dirt cheap: our start plan with 1GB storage is only <strong>$1.39 </strong>per month!</p>
<p>Login with your customer account (or create a new one) at the <a href="http://orders.kracked.com/">store </a> to enjoy these fantastic prices!</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/domain-sale-until-end-of-july-689-for-registrations-transfers-renewals/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>checking whether we are using the GNU C++ compiler&#8230; no</title>
		<link>http://kracked.com/checking-whether-we-are-using-the-gnu-c-compiler-no/</link>
		<comments>http://kracked.com/checking-whether-we-are-using-the-gnu-c-compiler-no/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 22:55:28 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[domains]]></category>

		<guid isPermaLink="false">http://bloggy.kracked.com/2007/06/30/checking-whether-we-are-using-the-gnu-c-compiler-no/</guid>
		<description><![CDATA[This one was cracking my nuts for a moment: when trying to install the freshest version of librtorrent on a vanilla unbutu boxÂ  I suddenly got this crazy error: checking whether we are using the GNU C++ compiler&#8230; no followed by: Â checking for proper overloaded template function disambiguation&#8230; no configure: error: your compiler does not...  <a href="http://kracked.com/checking-whether-we-are-using-the-gnu-c-compiler-no/" class="more-link" title="Read checking whether we are using the GNU C++ compiler&#8230; no">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead">This one was cracking my nuts for a moment:</p>
<p>when trying to install the freshest version of librtorrent on a vanilla unbutu boxÂ  I suddenly got this crazy error:</p>
<blockquote><p>checking whether we are using the GNU C++ compiler&#8230; no</p></blockquote>
<p>followed by:</p>
<blockquote><p>Â checking for proper overloaded template function disambiguation&#8230; no</p>
<p>configure: error: your compiler does not properly handle overloaded template function disambiguation</p></blockquote>
<p>Kinda crazy huh? Installing the package &#8216;g++&#8217; solved the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/checking-whether-we-are-using-the-gnu-c-compiler-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enough is enough</title>
		<link>http://kracked.com/enough-is-enough/</link>
		<comments>http://kracked.com/enough-is-enough/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 18:18:48 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[blah]]></category>

		<guid isPermaLink="false">http://bloggy.kracked.com/2007/06/19/enough-is-enough/</guid>
		<description><![CDATA[I&#8217;m really getting tired of all those spammers who auto-signup for a blog and then fill it with one crappy post ending with a a few junk links.Â  Really have to find out a good way to stop it.]]></description>
			<content:encoded><![CDATA[<p class="lead">I&#8217;m really getting tired of all those spammers who auto-signup for a blog and then fill it with one crappy post ending with a a few junk links.Â  Really have to find out a good way to stop it.</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/enough-is-enough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally a good perl IDE for OS X!</title>
		<link>http://kracked.com/finally-a-good-perl-ide-for-os-x/</link>
		<comments>http://kracked.com/finally-a-good-perl-ide-for-os-x/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 21:02:25 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://bloggy.kracked.com/2007/06/11/finally-a-good-perl-ide-for-os-x/</guid>
		<description><![CDATA[For years I&#8217;ve been using the fantastic editor SubEthaEdit for all my development work in OS X. I use it for pretty much everything: editing html, text files,Â  code perl and php stuff, but I&#8217;ve always missed good perl integration. It has been anoying to switch to a terminal window just to debug perl code...  <a href="http://kracked.com/finally-a-good-perl-ide-for-os-x/" class="more-link" title="Read Finally a good perl IDE for OS X!">Read more &#187;</a>]]></description>
			<content:encoded><![CDATA[<p class="lead">For years I&#8217;ve been using the fantastic editor <a href="http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.codingmonkeys.de%2Fsubethaedit%2F&amp;ei=_bVtRp-VGqL6QdjcrMMM&amp;usg=AFQjCNFbCCJQfxYKrSghyBdtc5eBpQd9Gg&amp;sig2=3bp2rYZluJS5_MmLrhF-kA">SubEthaEdit</a> for all my development work in OS X. I use it for pretty much everything: editing html, text files,Â  code perl and php stuff, but I&#8217;ve always missed good perl integration. It has been anoying to switch to a terminal window just to debug perl code when php editing is so swift.</p>
<p>A few days ago I stumbled over <a href="http://www.latenightsw.com/affrus/">Affrus</a> and it was love at first sight.</p>
<p>Affrus offer stepped execution with breakpoints and a whole bunch of advanced featuresÂ  that I miss from the well built Borland ide&#8217;s back in the DOS-days. The registration cost is almost $100 &#8211; but I&#8217;m happy to pay that when the evaluation period is over!</p>
]]></content:encoded>
			<wfw:commentRss>http://kracked.com/finally-a-good-perl-ide-for-os-x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
