<?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>Cubelogic Improv &#187; coding</title>
	<atom:link href="http://cubelogic.org/act/category/coding/feed" rel="self" type="application/rss+xml" />
	<link>http://cubelogic.org/act</link>
	<description>against corporate evil # improvise # improve # act # fuck those corporate aliens</description>
	<lastBuildDate>Sat, 17 Apr 2010 08:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>ART &amp;&amp; CODE symposium video: Hackety Hack, why the lucky stiff</title>
		<link>http://cubelogic.org/act/262</link>
		<comments>http://cubelogic.org/act/262#comments</comments>
		<pubDate>Thu, 02 Jul 2009 06:51:27 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[abstractions]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[language]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/art-code-symposium-video-hackety-hack-why-the-lucky-stiff.html</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="451" height="248"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5047563&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5047563&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="451" height="248"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/262/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>â€œIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.â€</title>
		<link>http://cubelogic.org/act/261</link>
		<comments>http://cubelogic.org/act/261#comments</comments>
		<pubDate>Thu, 02 Jul 2009 06:47:22 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[abstractions]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[language]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/%e2%80%9cit-is-practically-impossible-to-teach-good-programming-to-students-that-have-had-a-prior-exposure-to-basic-as-potential-programmers-they-are-mentally-mutilated-beyond-hope-of-regeneration.html</guid>
		<description><![CDATA[&#8211; Edsger W. Dijkstra (1975) How do we tell truths that might hurt? src]]></description>
			<content:encoded><![CDATA[<p>&#8211;  Edsger W. Dijkstra (1975)<br />
<em>How do we tell truths that might hurt?</em> <a href="http://www.vimeo.com/5047563">src</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/261/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thank you for the details, Eclipse</title>
		<link>http://cubelogic.org/act/226</link>
		<comments>http://cubelogic.org/act/226#comments</comments>
		<pubDate>Fri, 26 Sep 2008 17:19:52 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/thank-you-for-the-details-eclipse.html</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href='http://cubelogic.org/act/wp-content/uploads/2008/09/eclipse-error4.png' title='eclipse-error-4.png'><img src='http://cubelogic.org/act/wp-content/uploads/2008/09/eclipse-error-4.png' alt='eclipse-error-4.png' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/226/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDFKit patch for Freetype related errors (SplashFTFont.cc)</title>
		<link>http://cubelogic.org/act/192</link>
		<comments>http://cubelogic.org/act/192#comments</comments>
		<pubDate>Sat, 17 May 2008 04:34:22 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/pdfkit-patch-for-freetype-related-errors-splashftfontcc.html</guid>
		<description><![CDATA[For whoever needs to compile the unsupported PDFKit framework (probably i conjunction with GWorkspace) and incurs in the following errors: SplashFTFont.cc:17:10: error: #include expects "FILENAME" or &#60;FILENAME&#62; SplashFTFont.cc: In constructor â€˜SplashFTFont::SplashFTFont(SplashFTFontFile*, SplashCoord*)â€™: SplashFTFont.cc:46: error: â€˜FT_New_Sizeâ€™ was not declared in this scope SplashFTFont.cc: In member function â€˜virtual SplashPath* SplashFTFont::getGlyphPath(int)â€™: SplashFTFont.cc:219: error: invalid conversion from â€˜int (*)(FT_Vector*, [...]]]></description>
			<content:encoded><![CDATA[<p>For whoever needs to compile the <a href="http://home.gna.org/gsimageapps/">unsupported</a> <a href="http://www.gnustep.it/enrico/pdfkit/">PDFKit framework</a> (probably i conjunction with <a href="http://www.gnustep.it/enrico/gworkspace">GWorkspace</a>) and incurs in the following errors:</p>
<blockquote><p><code><br />
SplashFTFont.cc:17:10: error: #include expects "FILENAME" or &lt;FILENAME&gt;<br />
SplashFTFont.cc: In constructor â€˜SplashFTFont::SplashFTFont(SplashFTFontFile*, SplashCoord*)â€™:<br />
SplashFTFont.cc:46: error: â€˜FT_New_Sizeâ€™ was not declared in this scope<br />
SplashFTFont.cc: In member function â€˜virtual SplashPath* SplashFTFont::getGlyphPath(int)â€™:<br />
SplashFTFont.cc:219: error: invalid conversion from â€˜int (*)(FT_Vector*, void*)â€™ to â€˜int (*)(const FT_Vector*, void*)â€™<br />
SplashFTFont.cc:219: error: invalid conversion from â€˜int (*)(FT_Vector*, void*)â€™ to â€˜int (*)(const FT_Vector*, void*)â€™<br />
SplashFTFont.cc:219: error: invalid conversion from â€˜int (*)(FT_Vector*, FT_Vector*, void*)â€™ to â€˜int (*)(const FT_Vector*, const FT_Vector*, void*)â€™<br />
SplashFTFont.cc:219: error: invalid conversion from â€˜int (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)â€™ to â€˜int (*)(const FT_Vector*, const FT_Vector*, const FT_Vector*, void*)â€™<br />
SplashFTFont.cc:224: error: â€˜FT_Glyphâ€™ was not declared in this scope<br />
SplashFTFont.cc:224: error: expected `;' before â€˜glyphâ€™<br />
SplashFTFont.cc:238: error: â€˜glyphâ€™ was not declared in this scope<br />
SplashFTFont.cc:238: error: â€˜FT_Get_Glyphâ€™ was not declared in this scope<br />
SplashFTFont.cc:243: error: â€˜FT_OutlineGlyphâ€™ was not declared in this scope<br />
SplashFTFont.cc:243: error: expected `)' before â€˜glyphâ€™<br />
SplashFTFont.cc:248: error: â€˜glyphâ€™ was not declared in this scope<br />
SplashFTFont.cc:248: error: â€˜FT_Done_Glyphâ€™ was not declared in this scope<br />
</code></p></blockquote>
<p><a href="http://cubelogic.org/dev/PDFKit/pdfkit-freetype-err.patch">here&#8217;s a patch</a> to fix those errors. (I had them on Debian 2.6.18-4-686.)</p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/192/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building GIMP on Mac OS X</title>
		<link>http://cubelogic.org/act/170</link>
		<comments>http://cubelogic.org/act/170#comments</comments>
		<pubDate>Sat, 01 Mar 2008 02:27:43 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/building-gimp-on-mac-os-x.html</guid>
		<description><![CDATA[Just a few notes about this, because the instructions available at wiki.gimp.org/gimp/HowToCompileGimp/MacOSX are really great. The only things I might add are: - If you&#8217;re thinking about usign Fink instead of MacPorts, don&#8217;t. I tried that way and it was hell. Reasons: MacPorts had more of the packages I needed, and more updated. - MacPorts [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few notes about this, because the instructions available at <a href="http://wiki.gimp.org/gimp/HowToCompileGimp/MacOSX">wiki.gimp.org/gimp/HowToCompileGimp/MacOSX</a> are really great.  The only things I might add are: </p>
<p>- If you&#8217;re thinking about usign Fink instead of MacPorts, don&#8217;t.  I tried that way and it was hell.  Reasons: MacPorts had more of the packages I needed, and more updated.</p>
<p>- MacPorts is indeed your friend and I used it to install almost all the packages mentioned in the previous how-to: git-core, freetype, fontconfig, libart_lgpl, XML::Parser (p5-xml-parser on MacPorts, but I actually think the GTK build already installs it), LCMS, py-cairo, pyGOObject and PyGTK; in any case, just run (e.g.) <code>port search cairo</code> to find what you&#8217;re looking for. </p>
<p>- build <a href="http://gegl.org/babl">BABL</a> and <a href="http://gegl.org">GEGL</a>: be sure to get GEGL v0.0.16+ or refer to <a href="http://cubelogic.org/act/building-gegl-and-babl-on-mac-os-x.html">this page</a>.  You still need to manually copy gegl.pc to the installation path:</p>
<pre><code>sudo cp ~/Desktop/gegl-0.0.16/gegl.pc /usr/local/lib/pkgconfig/
</code></pre>
<p>- finally run:</p>
<pre><code>$ ./autogen.sh  --without-mng --without-alsa --disable-alsatest --without-x --with-libtiff --enable-gtk-doc LDFLAGS="-L/opt/gtk/lib -L/opt/local/lib" CPPFLAGS="-I/opt/gtk/include -I/opt/local/include" --prefix=/opt/gimp
</code></pre>
<p><!-- -I/usr/local/include --><br />
ignore the warnings about the m4 files (See http://www.gimp.org/source/howtos/stable-cvs-build.html ).<br />
Note about libtiff: either one of &#8220;<code>--with-libtiff</code>&#8221; or &#8220;<code>--without-libtiff</code>&#8221; options is needed, otherwise <code>./configure</code> will complain.<br />
Note: if you don&#8217;t care about the docs, add a <code>--disable-gtk-doc</code> option to avoid building the GTK docs.</p>
<pre><code>$ make</code></pre>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/170/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upcoming GEGL release for OS X</title>
		<link>http://cubelogic.org/act/169</link>
		<comments>http://cubelogic.org/act/169#comments</comments>
		<pubDate>Tue, 26 Feb 2008 23:45:00 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/upcoming-gegl-release-for-os-x.html</guid>
		<description><![CDATA[Update on GEGL for Mac OS X: upcoming release 0.0.16 will build on Mac OS X. Those guys were indeed fast in fixing the reported build problems. Thanks! Technorati Tags: gegl, gimp Update: GEGL 0.0.16 was released!]]></description>
			<content:encoded><![CDATA[<p>Update on <a href="http://cubelogic.org/act/building-gegl-and-babl-on-mac-os-x.html">GEGL for Mac OS X</a>: upcoming release 0.0.16 <a href="https://lists.XCF.Berkeley.EDU/lists/gegl-developer/2008-February/000784.html">will build</a> on Mac OS X.  Those guys were indeed fast in fixing the reported build problems.  Thanks!<br />
<span class="technorati_tags_label">Technorati Tags: <a href="http://www.technorati.com/tags/gegl" rel="tag">gegl</a>, <a href="http://www.technorati.com/tags/gimp" rel="tag">gimp</a></span><br />
Update: GEGL 0.0.16 was released!</p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/169/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building GEGL and BABL on Mac OS X</title>
		<link>http://cubelogic.org/act/166</link>
		<comments>http://cubelogic.org/act/166#comments</comments>
		<pubDate>Thu, 21 Feb 2008 22:52:39 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cubelogic.org/act/building-gegl-and-babl-on-mac-os-x.html</guid>
		<description><![CDATA[Since GEGL depends on BABL, we&#8217;ll build BABL first. Note: this was done on PPC 10.4.11. There are 2 ways to build BABL, either from the tarballs or from svn. The svn &#8220;bleeding edge&#8221; way has no problems at the time of this writing: $ svn co http://svn.gnome.org/svn/babl/trunk/ babl-trunk $ cd babl-trunk $ ./autogen.sh $ [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://www.gegl.org">GEGL</a> depends on <a href="http://www.gegl.org/babl/">BABL</a>, we&#8217;ll build BABL first. Note: this was done on PPC 10.4.11.</p>
<p>There are 2 ways to build BABL, either from the tarballs or from svn.  The svn &#8220;bleeding edge&#8221; way has no problems at the time of this writing:</p>
<pre><code>$ svn co http://svn.gnome.org/svn/babl/trunk/ babl-trunk
$ cd babl-trunk
$ ./autogen.sh
$ make
$ sudo make install
</code></pre>
<p>However, if you build from the current source releases at <a href="ftp://ftp.gtk.org/pub/babl/">ftp://ftp.gtk.org/pub/babl/</a> on OS X, you might incur into the error: &#8220;<code>unrecognized option '-shared'</code>&#8220;.  (gcc that comes with OS X doesn&#8217;t support the <code>-shared</code> option.)  E.g. I verified this problem on the 0.0.18 tarball.  To fix this, you can just edit the <code>./extensions/Makefile</code>:</p>
<pre><code>#LDFLAGS =  -shared
LDFLAGS =  -dynamiclib	# OSX setting
#SHREXT = .so
SHREXT = .dylib       	# OSX setting
</code></pre>
<p>then run make again.</p>
<p>Once BABL is installed, let&#8217;s do GEGL.  <a href="https://lists.XCF.Berkeley.EDU/lists/gegl-developer/2008-February/000780.html">At the time of this writing</a>, GEGL doesn&#8217;t officially build on OS X. </p>
<p>If you build GEGL from the tarballs, you might incur in similar &#8220;<code>-shared</code>&#8221; errors as for BABL. (E.g. the 0.0.14 tarball is affected by this problem).  Building from svn <a href="https://lists.XCF.Berkeley.EDU/lists/gegl-developer/2008-February/000778.html">initially gave me a few errors</a> which were quickly fixed in a few hours, so it&#8217;s simply as:</p>
<pre><code>$ svn co http://svn.gnome.org/svn/gegl/trunk/ gegl-trunk
$ cd gegl-trunk
$ ./autogen.sh
$ make
$ sudo make install
</code></pre>
<p>Only problem here is that the build failed on the sample compositions with errors like:</p>
<pre><code>--[Updating sample compositions]--
./OpenRaster-00.xml
make[5]: *** No rule to make target `OpenRaster-00.png'. Stop.
</code></pre>
<p>(Similar errors for OpenRaster-01.xml, OpenRaster-04.xml, clones.xml.)  I figured this was not essential and ran make install anyway.  The library files seemed to get installed (<code>/usr/local</code>) so hopefully that&#8217;s enough.  However, the <code>gegl.pc</code> file did NOT get installed, so I had to copy it manually.  Assuming you installed GEGL in the default <code>/usr/local</code> tree:</p>
<pre><code>$ cp gegl-trunk/gegl.pc /usr/local/lib/pkgconfig/ </code></pre>
<p>This build seemed good enough to build GIMP with it.  So, there you have it.  I guess the morale here is, sometimes svn is just better than a tarball.</p>
<p><strong>Update: these bugs seem <a href="https://lists.XCF.Berkeley.EDU/lists/gegl-developer/2008-February/000784.html">fixed now</a>. Cool!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://cubelogic.org/act/166/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

