<?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>XBMC &#187; malloc</title>
	<atom:link href="http://xbmc.org/malloc/feed/" rel="self" type="application/rss+xml" />
	<link>http://xbmc.org</link>
	<description></description>
	<lastBuildDate>Thu, 03 May 2012 02:35:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>gnitting can be fun, too!</title>
		<link>http://xbmc.org/malloc/2008/11/18/gnitting-can-be-fun-too/</link>
		<comments>http://xbmc.org/malloc/2008/11/18/gnitting-can-be-fun-too/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 04:37:30 +0000</pubDate>
		<dc:creator>malloc</dc:creator>
				<category><![CDATA[Frontpage]]></category>
		<category><![CDATA[autoconf]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://xbmc.org/malloc/?p=12</guid>
		<description><![CDATA[The first task I&#8217;ve taken up for the next release of XBMC is to clean up our build system.  As it stands now, XBMC is a hassle to build on any Linux distrobution except Ubuntu.  This is mostly the fault of our configure and Makefiles not conforming to expected standards.  I&#8217;d also like to get [...]]]></description>
			<content:encoded><![CDATA[<p>The first task I&#8217;ve taken up for the next release of XBMC is to clean up our build system.  As it stands now, XBMC is a hassle to build on any Linux distrobution except Ubuntu.  This is mostly the fault of our configure and Makefiles not conforming to expected standards.  I&#8217;d also like to get our Mac release to build using configure/make as well.  Since I&#8217;m not autoconf expert, I started doing some research.  The first thing I stumbled upon was the Gnits Standards.  Wow, they&#8217;ve thought of everything!  It&#8217;s time to jump down the rabbit hole and see where this takes me.  If you&#8217;re interested in learning more about the GNU build system, you may want to take a look as well: <a href="http://en.wikipedia.org/wiki/Gnits_Standards">http://en.wikipedia.org/wiki/Gnits_Standards</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xbmc.org/malloc/2008/11/18/gnitting-can-be-fun-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple&#039;s Gamma Bug</title>
		<link>http://xbmc.org/malloc/2008/09/05/apples-gamma-bug/</link>
		<comments>http://xbmc.org/malloc/2008/09/05/apples-gamma-bug/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 21:02:14 +0000</pubDate>
		<dc:creator>malloc</dc:creator>
				<category><![CDATA[Frontpage]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[wasted time]]></category>

		<guid isPermaLink="false">http://xbmc.org/malloc/?p=9</guid>
		<description><![CDATA[I was recently looking into the fade effect on OS X which happens when you switch from windowed mode to full screen and vice versa.  I thought it&#8217;d be better if it only faded the effected display, so I started looking into a great example from Apple.  There was an issue though.  After [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently looking into the fade effect on OS X which happens when you switch from windowed mode to full screen and vice versa.  I thought it&#8217;d be better if it only faded the effected display, so I started looking into a great <a href="http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/FadeEffects.html">example</a> from Apple.  There was an issue though.  After retrieving the current gamma value, and subsequently setting the value (to the value just retrieved!) the display would get brighter.  Odd, that should only happen if I turn the gamma down.  Well, as it turns out, the CGGetDisplayTransferByFormula function doesn&#8217;t actually calculate the current gamma correctly.  If you toss the values retrieved from CGGetDisplayTransferByTable into excel and have it calculate the value for you, you&#8217;ll see that it doesn&#8217;t match up.  The solution was to just throw out the value and calculate it in code.  Thanks Apple, you just wasted my week.</p>
<p>For those interested (pay attention Apple!), the following code will do the trick.  Note that M_LN2 is the natural log of 2, defined in math.h.<br />
<code>
<pre>
CGGetDisplayTransferByFormula(display,
    &amp;redMin, &amp;redMax, &amp;redGamma,
    &amp;greenMin, &amp;greenMax, &amp;greenGamma,
    &amp;blueMin, &amp;blueMax, &amp;blueGamma);

CGGetDisplayTransferByTable(display, 3, redTable, greenTable, blueTable, &amp;sampleCount);

redGamma = (CGGammaValue)(log(redTable[2] / redTable[1]) / M_LN2);
greenGamma = (CGGammaValue)(log(greenTable[2] / greenTable[1]) / M_LN2);
blueGamma = (CGGammaValue)(log(blueTable[2] / blueTable[1]) / M_LN2);
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://xbmc.org/malloc/2008/09/05/apples-gamma-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scrollback buffer in GNU screen</title>
		<link>http://xbmc.org/malloc/2008/08/18/scrollback-buffer-in-gnu-screen/</link>
		<comments>http://xbmc.org/malloc/2008/08/18/scrollback-buffer-in-gnu-screen/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 16:36:14 +0000</pubDate>
		<dc:creator>malloc</dc:creator>
				<category><![CDATA[Frontpage]]></category>
		<category><![CDATA[dev env]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://xbmc.org/malloc/?p=7</guid>
		<description><![CDATA[If you enjoy the command prompt in Linux/OS X as much as I do, then I hope you&#8217;ve been aquainted with screen.  If not, think of it like tabs in your browser.  Except now you can go to a different computer and pull up your browser with all those same tabs already opened.  The one [...]]]></description>
			<content:encoded><![CDATA[<p>If you enjoy the command prompt in Linux/OS X as much as I do, then I hope you&#8217;ve been aquainted with screen.  If not, think of it like tabs in your browser.  Except now you can go to a different computer and pull up your browser with all those same tabs already opened.  The one thing that sucks about screen is that you can&#8217;t scroll up to see the history.  This makes it difficult if a bunch of shit is being dumped to the terminal and you need to look through it.  Well, it turns out that it does exist, and it&#8217;s way more awesome then I ever could have imagined.  It&#8217;s got a search feature!  Interested?  Read up on it <a href="http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xbmc.org/malloc/2008/08/18/scrollback-buffer-in-gnu-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching to OS X</title>
		<link>http://xbmc.org/malloc/2008/08/12/switching-to-os-x/</link>
		<comments>http://xbmc.org/malloc/2008/08/12/switching-to-os-x/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 14:14:38 +0000</pubDate>
		<dc:creator>malloc</dc:creator>
				<category><![CDATA[Frontpage]]></category>
		<category><![CDATA[dev env]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://xbmc.org/malloc/?p=4</guid>
		<description><![CDATA[I recently switched to developing on Mac OS X from Linux, both at work and XBMC.  I must say that the move went a lot smoother than expected in many respects because I can open up Terminal and pretend I&#8217;m on Linux.  However, the most frustrating thing about that is how Apple decided to map [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched to developing on Mac OS X from Linux, both at work and XBMC.  I must say that the move went a lot smoother than expected in many respects because I can open up Terminal and pretend I&#8217;m on Linux.  However, the most frustrating thing about that is how Apple decided to map the home and end keys.  Luckily, there&#8217;s an easy <a href="http://tech.inhelsinki.nl/gnu_developement_under_mac_os_x/">fix</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://xbmc.org/malloc/2008/08/12/switching-to-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

