<?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>Operations and other mysteries</title>
	<atom:link href="http://blogs.operationaldynamics.com/andrew/feed" rel="self" type="application/rss+xml" />
	<link>http://blogs.operationaldynamics.com/andrew</link>
	<description>Comments and notes by Andew Cowie</description>
	<lastBuildDate>Mon, 30 Jan 2012 07:10:57 +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>My sound hardware didn&#8217;t vanish, honest</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/my-sound-hardware-didnt-vanish-honest</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/my-sound-hardware-didnt-vanish-honest#comments</comments>
		<pubDate>Mon, 30 Jan 2012 07:10:57 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[GNOME Desktop]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=605</guid>
		<description><![CDATA[I&#8217;ve been having intermittent problems with sound not working. Usually restarting (ie, killing) PulseAudio has done the trick but today it was even worse; the sound hardware mysteriously vanished from the Sound Settings capplet. Bog knows what&#8217;s up with that, but buried in &#8220;Sound Troubleshooting&#8221; I found &#8220;Getting ALSA to work after suspend / hibernate&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having intermittent problems with sound not working. Usually restarting (ie, killing) PulseAudio has done the trick but today it was even worse; the sound hardware mysteriously vanished from the Sound Settings capplet. Bog knows what&#8217;s up with that, but buried in &#8220;<a href="https://help.ubuntu.com/community/SoundTroubleshooting">Sound Troubleshooting</a>&#8221; I found &#8220;Getting ALSA to work after suspend / hibernate&#8221; which contains this nugget:</p>

<blockquote>
  <p>The alsa &#8220;force-reload&#8221; command  will kill all running programs using the sound driver so the driver itself is able to be restarted.</p>
</blockquote>

<p>Huh. Didn&#8217;t know about that one. But seems reasonable, and sure enough,</p>

<pre><code>$ /sbin/alsa force-reload
</code></pre>

<p>did the trick.</p>

<p>That wiki page goes on to detail adding a script to <code>/etc/pm/sleep.d</code> to carry this out after every resume. That seems excessive; I know that sometimes drivers don&#8217;t work or hardware doesn&#8217;t reset after the computer has been suspended or hibernated, but in my case the behaviour is only intermittent, and seems related to having docked (or not), having used an external USB headphone (or not), and having played something with Flash (which seems to circumvent PulseAudio. Bad). Anyway, one certainly doesn&#8217;t want to kill all one&#8217;s audio-using programs just because you suspended! But as a workaround for whatever it is that&#8217;s wrong today, nice.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/my-sound-hardware-didnt-vanish-honest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poisoning DNS perhaps a bad idea</title>
		<link>http://blogs.operationaldynamics.com/andrew/engineering/internet/poisoning-dns-perhaps-a-bad-idea</link>
		<comments>http://blogs.operationaldynamics.com/andrew/engineering/internet/poisoning-dns-perhaps-a-bad-idea#comments</comments>
		<pubDate>Tue, 20 Dec 2011 04:00:51 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=600</guid>
		<description><![CDATA[This is insane. I&#8217;m sitting at a café in Sydney using their hotspot. Went to search for something, and I kept getting strange looking &#8220;site not found&#8221; pages. Huh? Thy were working a few hours ago. So I started digging. The café&#8217;s upstream ISP is &#8220;Optus&#8221;, one of the major Australian carriers. To my astonishment [...]]]></description>
			<content:encoded><![CDATA[<p>This is insane. I&#8217;m sitting at a café in Sydney using their hotspot. Went to search for something, and I kept getting strange looking &#8220;site not found&#8221; pages. Huh? Thy were working a few hours ago. So I started digging.</p>

<p>The café&#8217;s upstream ISP is &#8220;Optus&#8221;, one of the major Australian carriers. To my astonishment I found that Optus&#8217;s DNS servers are <strong>interfering</strong> with Google searches, stealing their DNS lookups and serving results pages on their own (shitty quality) branded search instead! Try <code>https:</code>? No connection; and <a href="https://plus.google.com/">Google+</a> wouldn&#8217;t load either.</p>

<p>Obviously as soon as realized what&#8217;s going on I immediately changed DNS servers to something reliable. Before I did I found a tiny &#8220;about this page&#8221; link at the bottom of the heinous Optus search results page, where I was told how great this was for me, but how I could opt out of their &#8220;default&#8221; search engine if I wanted to but was warned this was an &#8220;advanced setting&#8221;.</p>

<p>Seriously, what do Optus think they&#8217;re doing? From a commercial standpoint, do they really think that their captive audience matters to anyone advertising on the web? Of course not, but in the mean time they&#8217;re certainly going to alienate customers who just maybe actually do want to use (in this case) Google sites.</p>

<p>There&#8217;s a bigger issue, though. Unaltered answers to DNS queries is a backbone of net neutrality. That&#8217;s <em>our</em> problem, but once carriers start poisoning nameservers in their own favour it will be but a blink before everyone is doing it to each other and lookups will become worthless. While I&#8217;m sure the morons in Marketing who thought that sabotaging DNS queries would be a good idea won&#8217;t be worried about the wreckage that will cause for everyone else, such a war wouldn&#8217;t be good for any of the companies involved, either. And meanwhile, if they <em>really</em> want everyone to learn how to install an app to &#8220;fix&#8221; the internet&#8230;</p>

<p>Of course, this is only a taste of what we&#8217;ll be in for when the communications minister finally gets his compulsory <a href="http://nocleanfeed.com/">Great Firewall of Australia</a> censorship in place, but one thing at a time. If you&#8217;re looking for internet access down here, clearly Optus or anything that uses their network should be blacklisted.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/engineering/internet/poisoning-dns-perhaps-a-bad-idea/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Haskell</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/haskell/learning-haskell</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/haskell/learning-haskell#comments</comments>
		<pubDate>Mon, 28 Nov 2011 05:35:22 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[Haskell]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=570</guid>
		<description><![CDATA[In the land of computer programming, newer has almost always meant better. Java was newer than C, and better, right? Python was better than Perl. Duh, Ruby is better than everything, so they&#8217;d tell you. But wait, Twitter is written in Scala. Guess that must be the new hotness, eh? Haskell has been around for [...]]]></description>
			<content:encoded><![CDATA[<p>In the land of computer programming, newer has almost always meant better. Java was newer than C, and better, right? Python was better than Perl. Duh, Ruby is better than everything, so they&#8217;d tell you. But wait, Twitter is written in Scala. Guess that must be the new hotness, eh?</p>

<p>Haskell has been around for quite a while; somehow I had it in my head that it was outdated and only for computer science work. After all, there are always crazy weirdos out there in academia working on obscure research languages — at least, that&#8217;s the perspective from industry. After all, we&#8217;re the ones getting real work done. All <em>you&#8217;re</em> doing is sequencing the human genome. <em>We</em> invented Java 2 Enterprise Edition. Take that, ivory tower.</p>

<p>The newness bias is strong, which is why I was poleaxed to find people I respect like <a href="http://www.mega-nerd.com/erikd/Blog/">Erik de Castro Lopo</a> and <a href="http://blog.kfish.org/">Conrad Parker</a> working hard in, of all things, Haskell. And now they&#8217;re encouraging <em>me</em> to program in it, too (surely, cats and dogs are sleeping together this night). On their recommendation I&#8217;ve been learning a bit, and much to my surprise, it turns out Haskell is vibrant, improving, and really cutting edge.</p>

<h2>The next thing</h2>

<p>I get the impression that people are tired of being told that the some cool new thing makes everything else they&#8217;ve been doing irrelevant. Yet many professional programmers (and worse, fanboy script kiddies) are always looking to the next big thing, the next cool language. Often the very people you respect about a topic have already moved on to something else (there&#8217;s a book deal in it for them if they can write it fast enough).</p>

<p>But still; technology is constantly changing and there&#8217;s always pressure to be doing the latest and greatest. I try my best to resist this sort of thing, just in the interest of actually getting anything done. Not always easy, and the opposite trap is to adopt a bunker mentality whereby you defend what you&#8217;re doing against all comers. Not much learning going on there either.</p>

<p>There is, however, a difference between the latest new thing and learning something new.</p>

<p>One of the best things about being active in open source is the opportunity to meet people who you can look up to and learn from. I may know a thing or two about operations and crisis and such, but my techie friends and colleagues are <em>my</em> mentors when it comes to software development and computer engineering. One thing they have taught me over the years is the value of setting out deliberately to &#8220;stretch&#8221; your mind. Specifically, experimenting with a new programming language that is not your day-to-day working environment, but something that will force your to learn new ways of looking at problems. These guys are professionals; they recognize that whatever your working language(s) are, you&#8217;re going to keep using them <em>because you get things done there</em>. It&#8217;s not about being seduced by the latest cool project that some popular blogger would have you believe is the be-all-and-end-all. Rather, in stretching, you might be able to bring ideas back to your main work and just might improve thereby. I think there is wisdom there.</p>

<h2>Should I attempt to learn Haskell?</h2>

<p>I&#8217;ve had an eye on functional programming for a while now; who hasn&#8217;t? Not being from a formal computer science or mathematics background &#8212; (&#8220;<em>damnit Jim, I&#8217;m an engineer, not an english major</em>&#8221; when called upon to defend my atrocious spelling) &#8212; the whole &#8220;omigod, like, everything is function and that&#8217;s like, totally cool&#8221; mantra isn&#8217;t <em>quite</em> as compelling by itself as it might be. But lots of people I respect have been going on about functional programming for a while now, and it seemed a good direction to stretch. So I asked which language should I learn?</p>

<p>My colleagues suggested Haskell for a number of reasons. That cutting edge research was happening there and that increasingly powerful things were being implemented in the compiler and runtime as a result sounded interesting. That Haskell being a pure functional language (I didn&#8217;t know yet what that meant but that&#8217;s beside the point) would really force me to learn a functional way of doing at things (as opposed to some others where you can do functional things but can easily escape those constraints; pragmatic, perhaps, but since the idea was to learn something new, that made Haskell sound good rather than perceiving this as a limitation). Finally, they claimed that you could express problems concisely (brevity good, though not if it&#8217;s so dense that it&#8217;s write-only).</p>

<p>Considering a new language (or, within a language, considering various competing frameworks for web applications, graphical user interface, production deployment, etc) my sense is that when we look at such things we are all fairly quick to judge, based on our own private aesthetic. Does it look clean? Can I do things I need to do with this easily? How do the authors conceive of the problem space? (in web programming especially, a given framework will make some things easy and other things nigh on impossible; you need to know what world-view you&#8217;re buying into). </p>

<p>I don&#8217;t know about you, but <strong>elegance</strong> by itself and in the abstract is not sufficient. Elegance is probably the most highly valued characteristic of good engineering design, but it must be coupled with <strong>practicality</strong>. In other words, does the design get the job done? So before I was willing to invest time learning Haskell, I wanted to at least have some idea that I&#8217;d be able to use it for something more than just academic curiosity.</p>

<p>Incidentally, I&#8217;m not sure the Haskell community does itself many favours by glorifying in how clever you can be in the language; the implied corollary is that you can&#8217;t do anything without being exceedingly clever about it. If true, that would be tedious. I get the humour of the commentary that as we gain experience we tend to overcomplicate things, as seen in the <a href="http://www.willamette.edu/~fruehr/haskell/evolution.html">many different ways</a> there are to express a factorial function. But I saw that article linked from almost every thread about how clever you can be with Haskell; is that the sort of thing that you want to use as an introduction for newcomers? Given the syntax is so different from what people are used to in mainstream C-derived programming languages, the code there just looks like mush. The fact that there are people who studied mathematics are doing theorem proving in the language is fascinating, but the tone is very elevated as a result. A high bar for a newcomer — even a professional with 25 years programming experience — to face.</p>

<p>It became clear pretty fast that I wouldn&#8217;t have the faintest idea what I was looking at, but I still tried to see if I could get a sense of what using Haskell would be like. Search on phrases like &#8220;haskell performance&#8221;, &#8220;haskell in production&#8221;, &#8220;commercial use of haskell&#8221;, &#8220;haskell vs scala&#8221;, and so on. You get more than enough highly partisan discussion. It&#8217;s quick to see people love the language. It&#8217;s a little harder to evidence see it being used in anger, but eventually I came across pages like <a href="http://www.haskell.org/haskellwiki/Haskell_in_industry">Haskell in Industry</a> and <a href="http://contemplatecode.blogspot.com/search/label/HWN">Haskell Weekly News</a> which have lots of interesting links. That pretty much convinced me it&#8217;d be worth giving it a go.</p>

<h2>A brief introduction</h2>

<p>So here I am, struggling away learning Haskell. I guess I&#8217;d have to say I&#8217;m still a bit dubious, but the wonderful <a href="http://learnyouahaskell.com/">beginner tutorial</a> called <em>Learn You A Haskell For Great Good</em> (No Starch Press) has cute illustrations. <code>:)</code> The other major starting point is <em>Real World Haskell</em> (O&#8217;Reilly). You can flip through it <a href="http://book.realworldhaskell.org/">online</a> as well, but really, once you get the idea, I think you&#8217;ll agree it&#8217;s worth having both in hard copy.</p>

<p>Somewhere along the way my investigations landed me on discussion of something called &#8220;software transactional memory&#8221; as an approach to concurrency. Having been a Java person for quite some years, I&#8217;m quite comfortable with multi-threading &#91;and exceptionally tired of the rants from people who insist that you should only write single threaded programs&#93;, but I&#8217;m also aware that concurrency can be hard to get right and that solving bugs can be nasty. The idea of applying the database notion of transactions to memory access is fascinating. Reading about STM led me to this (short, language agnostic) <a href="http://blip.tv/oreilly-open-source-convention/oscon-2007-simon-peyton-jones-322473">keynote</a> given at OSCON 2007 by one Simon Peyton-Jones, an engaging speaker and one of the original authors of GHC. Watching the video, I heard him mention that he had done an &#8220;introduction to Haskell&#8221; earlier in the conference. Huh. Sure enough, linked from <a href="http://research.microsoft.com/en-us/um/people/simonpj/papers/haskell-tutorial/index.htm">here</a>, are his slides and the video they took.</p>

<p>Watching the tutorial implies a non-trivial investment in time, and a bit of care to manually track the slides with him as he is presenting, but viewing it all the way through was a <strong>very</strong> rewarding experience. By the time I watched this I&#8217;d already read <em>Learn You A Haskell</em> and a goodly chunk of <em>Real World Haskell</em>, but if anything that made it even more fascinating; I suppose I was able to concentrate more on what he was saying for the emphasis on <em>why</em> things in Haskell are the way they were.</p>

<p>I was quite looking forward to how he would introduce I/O to an audience of beginners; like every other neophyte I&#8217;m grinding through learning what &#8220;<a href="http://news.ycombinator.com/item?id=1202002">monads</a>&#8221; are and how they enable pure functional programming to coexist with side effects. Peyton-Jones&#8217;s discussion of IO turns up towards the end (<a href="http://blip.tv/file/325646">part 2</a> at :54:36), when this definition went up on a slide:</p>

<div style="font-family: monospace;">
<pre>
IO (<span style="color: darkgreen;">a</span>) :: <span style="color: darkgreen;">World</span> -> (<span style="color: darkgreen;">a</span>, <span style="color: darkgreen;">World</span>)
</pre>
</div>

<p>accompanied by this description:</p>

<blockquote>
  <p>&#8220;You can think of it as a function that takes a <span style="color: darkgreen;"><code>World</code></span> to a pair of <span style="color: darkgreen;"><code>a</code></span> and a new <span style="color: darkgreen;"><code>World</code></span> &#8230; a rather egocentric functional programmer&#8217;s view of things 
  in which your function is center of the universe, and the entire world sort of goes in one side of your function, gets modified a bit by your function, and emerges, in a purely functional way, in a freshly minted world which comes out the other&#8230;&#8221;</p>
  
  <p>&#8220;Oh, so that&#8217;s a metaphor?&#8221; asked one of his audience.</p>
  
  <p>&#8220;Yes. The world does <em>not</em> actually disappear into your laptop. But you can think of it that way if you like.&#8221;</p>
</blockquote>

<p>Ha. <code>:)</code></p>

<h2>Isolation and reusability</h2>

<p>A moment ago I mentioned practicality. The most practical thing going these days is the web problem, i.e. using a language and its toolchain to do web programming. Ok, so what web frameworks are there for Haskell? Turns out there are a few. Two newer ones in particular, <a href="http://www.yesodweb.com/page/about">Yesod</a> and the <a href="http://snapframework.com/">Snap Framework</a>. Their raw performance as web servers looks <em>very</em> impressive, but the real question is how does writing web pages &amp; application logic go down? Yesod&#8217;s approach, called &#8220;<a href="http://www.yesodweb.com/book/templates">Hamlet</a>&#8220;, doesn&#8217;t do much for me. I can see why type safety across the various pieces making up a web page would be something you&#8217;d aspire to, but it ain&#8217;t happening (expecting designers to embed their work in a pseudo-but-not-actually HTML language has been tried before. Frequently. And it&#8217;s been a bust every time). Snap, on the other hand, has something called &#8220;<a href="http://snapframework.com/docs/tutorials/heist/">Heist</a>&#8220;. Templates are pure HTML and when you need to drop in programmatically generated snippets you do so with a custom tag that gets substituted in at runtime. That&#8217;s alright. As for writing said markup from within code there&#8217;s a different project called &#8220;<a href="http://hackage.haskell.org/packages/archive/blaze-html/latest/doc/html/Text-Blaze.html">Blaze</a>&#8221; which looks easy enough to use.</p>

<p>Reading a <a href="http://stackoverflow.com/questions/5645168/comparing-haskells-snap-and-yesod-web-frameworks">thread</a> about Haskell web programming, I saw explicit acknowledgement on the part of framework authors from all sides that it would be possible to mix and match, at least in theory. If you like Yesod&#8217;s web server but would rather to use Snap&#8217;s Heist template engine, you could probably do so. You&#8217;d be in for all the glue code and knowing what you&#8217;re about, but this still raises an interesting point.</p>

<p>A big deal with Haskell &#8212; and one of the core premises of programming in a functional language that emphasizes purity and modularity &#8212; is that you can rely on code from other libraries not to interfere with <em>your</em> code. It&#8217;s more than just &#8220;no global variables&#8221;; pure functions are self contained, and when there <em>are</em> side effects (as captured in IO and other monads) they are explicitly marked and segregated from pure code. In IT we&#8217;ve talked about reusable code for a long time, and we&#8217;ve all struggled with it: the sad reality is that in most languages, when you call something you have few guarantees that nothing <em>else</em> is going to happen over and above what you&#8217;ve asked for. The notion of a language and its runtime explicitly going out of its way to inhibit this sort of thing is appealing.</p>

<h2>Hello web, er world</h2>

<p>Grandiose notions aside, I wanted to see if I could write something that felt &#8220;clean&#8221;, even if I&#8217;m not yet proficient in the language. I mentioned above that I liked the look of Snap. So, I roughed out some simple exercises of what using the basic API would be like. The fact that I am brand new at Haskell of course meant it took a lot longer than it should have! That&#8217;s ok, I learnt a few things along the way. I&#8217;ll probably blog separately about it, but after an essay about elegance and pragmatism, I thought I should close with some code. The program is just a little ditty that echos your HTTP request headers back to you, running <a href="http://kernel.operationaldynamics.com:58080/headers">there</a>. You can decide for yourself if the <a href="http://research.operationaldynamics.com/src/explorations/replace/Experiment.hs">source</a> is aesthetically pleasing; &#8217;tis a personal matter. I think it&#8217;s ok, though I&#8217;m not for a moment saying that it&#8217;s &#8220;good&#8221; style or anything. I will say that with Haskell I&#8217;ve already noticed that what looks deceptively simple often takes a lot of futzing to get the types right &#8212; but I&#8217;ve also noticed that when something does finally compile, it tends to be <em>very</em> close to being done. Huh.</p>

<p>So here I am freely admitting that I was quite wrong about Haskell. It&#8217;s been a bit of a struggle getting started, and I&#8217;m still a bit sceptical about the syntax, but I think the idea of leveraging Haskell shows promise, especially for server-side work.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/haskell/learning-haskell/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A good GNOME 3 Experience</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gnome-3-experience</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gnome-3-experience#comments</comments>
		<pubDate>Mon, 21 Nov 2011 06:28:32 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[GNOME Desktop]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=536</guid>
		<description><![CDATA[I&#8217;ve been using GNOME 3 full time for over 9 months, and I find it quite usable. I&#8217;ve had to learn some new usage patterns, but I don&#8217;t see that as a negative. It&#8217;s a new piece of software, so I&#8217;m doing my best to use it the way it&#8217;s designed to be used. Sure, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using GNOME 3 full time for over 9 months, and I find it quite usable. I&#8217;ve had to learn some new usage patterns, but I don&#8217;t see that as a negative. It&#8217;s a new piece of software, so I&#8217;m doing my best to use it the way it&#8217;s designed to be used. </p>

<p>Sure, it&#8217;s different than GNOME 2. It&#8217;s vastly different. But it <strong>is</strong> a new UI paradigm. The GNOME 2 experience was over 9 years old, and largely based on the experience inherited from the old Windows 95 muxed with a bit of CDE. There were so many things that the GNOME hackers wanted to do &#8212; and lots of things all the UI studies said needed changing &#8212; that the old pattern simply couldn&#8217;t support.</p>

<p>Still, a lot of people are upset. Surprise. Most recently it&#8217;s been people running Debian Testing who just recently found that their distro has migrated its packages from GNOME 2.32 to GNOME 3.x. Distros like Ubuntu have been shipping GNOME 2.32 for ages; but it has been well over 2 years since anyone actually worked on that code. It&#8217;s wonderful that nothing has changed for you in all that time &#91;a true Debian Stable experience!&#93; but I think it&#8217;s a bit odd not to expect that something that was widely advertised as being such a different user experience is &#8230; different.</p>

<p><em>What I find annoying about these conversations is that if they had gone and bought an Apple laptop with Mac OS X on it they would be perfectly reasonably working through learning how to use a new Desktop and not complaining about it at all. But here we are admonishing the GNOME hackers had the temerity to do something new and different.</em></p>

<h2>Installing</h2>

<p>I went to some trouble to run GNOME 3 on Ubuntu Linux during the Natty cycle; that was a bit of work but I needed to be current; now with Oneiric things are mostly up to date. GNOME 3.0 was indeed a bit of a mess, but then so was GNOME 2.0. The recently released 3.2 is a big improvement. And it looks like the list of things that seem  targeted to 3.4 will further improve things.</p>

<p>I&#8217;m now running GNOME 3 on a freshly built Ubuntu Oneiric system; I just did a &#8220;command line&#8221; install of Ubuntu and then installed <code>gdm</code>, <code>gnome-shell</code>, <code>xserver-xorg</code> and friends. Working great, and not having installed <code>gnome-desktop</code> saved me a huge amount of baggage. Of course a normal Oneiric desktop install and then similarly installing and switching to gnome-shell would work fine too; either way you probably want to enable the  <code>ppa:gnome3-team/gnome3</code> PPA.</p>

<h2>Launchers</h2>

<p>One thing I do recommend is mapping (say) <strong><code>CapsLock</code></strong> as an additional &#8220;<code>Hyper</code>&#8221; and then <strong><code>Caps</code></strong> + <strong><code>F1</code></strong> .. <strong><code>Caps</code></strong> + <strong><code>F12</code></strong> as launchers. I have epiphany browser on <strong><code>F1</code></strong>, evolution on <strong><code>F2</code></strong>, my IRC client on <strong><code>F3</code></strong> and so on. Setting up <strong><code>Caps</code></strong> + <strong><code>A</code></strong> as to do <code>gnome-terminal --window</code> means you can pop a term easily from anywhere. You do the mapping in:</p>

<pre><code>    System Settings → Keyboard Layout → Layout tab → Options...
</code></pre>

<p>and can set up launchers via:</p>

<pre><code>    System Settings → Keyboard → Shortcuts tab → "Custom Shortcuts" → `[+]` button
</code></pre>

<p><em>(you&#8217;d think that&#8217;d all just be in one capplet, but anyway)</em></p>

<p>Not that my choices matter, <em>per se</em>, but to gives you an idea:</p>

<table>
<tr>
<th>Accelerator</th><th>Launches</th><th>Description</th>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F1</code></b></td>
<td><code>epiphany</code></td>
<td>Web browser (primary)</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F2</code></b></td>
<td><code>evolution</code></td>
<td>Email mail</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F3</code></b></td>
<td><code>pidgin</code></td>
<td>IRC client</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F4</code></b></td>
<td><code>empathy</code></td>
<td>Jabber client</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F5</code></b></td>
<td><code>firefox</code></td>
<td>Web browser (alternate)</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F6</code></b></td>
<td>shotwell</td>
<td>Photo manager</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F7</code></b></td>
<td><code>slashtime</code></td>
<td>Timezone utility</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F8</code></b></td>
<td><code>rhythmbox</code></td>
<td>Music player</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F9</code></b></td>
<td><code>eclipse</code></td>
<td>Java IDE</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F10</code></b></td>
<td><code>devhelp</code></td>
<td>GTK documentation</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F11</code></b></td>
<td><code>gucharmap</code></td>
<td>Unicode character picker</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>F12</code></b></td>
<td><code>gedit</code></td>
<td>Text editor</td>
</tr>
<tr>
<td><b><code>Caps</code></b> + <b><code>Z</code></b></td>
<td><code>gnome-terminal --window</code></td>
<td>New terminal window</td>
</tr>
</table>

<p>That means I only use the Overview&#8217;s lookup mechanism (ie typing <strong><code>Win</code></strong>, <strong><code>T</code></strong>, <strong><code>R</code></strong>, <strong><code>A</code></strong>&#8230; in this case looking for the Project Hamster time tracker) for outlying applications. The rest of the time it&#8217;s <strong><code>Caps</code></strong> + <strong><code>F12</code></strong> and bang, I&#8217;ve got GEdit in front of me.</p>

<p>Of course you can also set up the things you use the most on the &#8220;Dash&#8221; (I think that&#8217;s what they call it) as favourites. I&#8217;ve actually stopped doing that (I gather the original design didn&#8217;t have favourites at all); I prefer to have it as an alternative view of things that are actually running.</p>

<h2>Extensions</h2>

<p>People love plugin architectures, but they&#8217;re quite the anti-pattern; over and above the software maintenance headache (evolving upstream constantly breaks APIs used by plugins, for one example; the nightmare of packaging plugins safely being another) before long you get people installing things with contradictory behaviour and which completely trash the whole experience that your program was designed to have in the first place. </p>

<p>Case in point is that it didn&#8217;t take long after people discovered how to use the extension mechanism built into gnome-shell for people to start using it to implement &#8230; GNOME 2. Gawd.</p>

<p>Seeking that certainly is <em>not</em> my recommendation; as I wrote above the point of GNOME 3 and it&#8217;s new shell is to enable a new mode of interaction. Still, everyone has got their itches and annoyances, and so for my friends who can&#8217;t live without their GNOME 2 features, I thought I&#8217;d point out a few things.</p>

<p>There are a collections of <a href="http://live.gnome.org/GnomeShell/Extensions">GNOME Shell Extensions</a> some of which appear to be packaged, i.e. <code>gnome-shell-extensions-drive-menu</code> for an plugin which gives you some kind of menu when removable devices are inserted. I&#8217;m not quite sure what the point of that is; the shell already puts something in the tray when you&#8217;ve got removable media. Whatever floats your boat, I guess. Out in the wild are a bunch more. The charmingly named <a href="http://intgat.tigress.co.uk/rmy/extensions/index.html">GNOME Shell Frippery</a> extensions by Ron Yorston has a bunch of plugins to recreate GNOME 2 features. Most are things I wouldn&#8217;t touch with a ten-foot pole (a bottom panel? Who needs it? Yo, hit the <strong><code>Win</code></strong> key to activate the Overview and you see everything!).</p>

<p>My personal itch was wanting to have 4 fixed workspaces. The &#8220;Auto Move Workspaces&#8221; plugin from <code>gnome-shell-extensions</code> was close (and would be interesting if its experience and UI were properly integrated into the primary shell experience), but the &#8220;Static Workspaces&#8221; plugin from <code>gnome-shell-frippery</code> did exactly the trick. Now I have four fixed workspaces and I can get to them with <strong><code>Caps</code></strong> + <strong><code>1</code></strong> .. <strong><code>Caps</code></strong> + <strong><code>4</code></strong>. Hurrah.</p>

<p>You install the plugin by dropping the <code>Static_Workspaces@rmy.pobox.com/</code> directory into <code>~/.local/share/gnome-shell/extensions/</code>, then restarting the Shell via <strong><code>Alt</code></strong> + <strong><code>F2</code></strong>, <strong><code>R</code></strong>, and then firing up <code>gnome-tweak-tool</code> and activating the extension:</p>

<pre><code>    Advanced Settings → Shell Extension tab → switch "Static Workspaces Extension" to "On"
</code></pre>

<p>Hopefully someone will Debian package <code>gnome-shell-frippery</code> soon.</p>

<h2>Not quite properly integrated</h2>

<p>Having to create custom launchers and fiddle around with plugins just to get things working? &#8220;Properly integrated&#8221; this ain&#8217;t, and that&#8217;s my fault. I respect the team hacking on GNOME 3, and I know they&#8217;re working hard to create a solid experience. I feel dirty having to poke and tear their work apart. Hopefully over the next few release cycles things like this will be pulled into the core and given the polish and refined experience that have always been what we&#8217;ve tried to achieve in GNOME. What would be really brilliant, though, would be a way to capture and export these customizations. Especially launchers; setting that up on new machines is a <em>pain</em> and it&#8217;d be lovely to be able to make it happen via a package. Hm.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gnome-3-experience/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring Server to Server Jabber capability in Openfire 3.7.0</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/packaging/fix-openfire-s2s-3-7-0</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/packaging/fix-openfire-s2s-3-7-0#comments</comments>
		<pubDate>Fri, 23 Sep 2011 03:36:38 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[Packaging]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=523</guid>
		<description><![CDATA[We upgraded our Jabber from Openfire 3.6.4 to 3.7.0 but suddenly it wasn&#8217;t talking to others who had self-signed certificates (despite having been told that was ok; in such circumstances Jabber offers a &#8220;dialback&#8221; to weakly establish TLS connectivity). It was breaking with messages like: Error trying to connect to remote server: net.au (DNS lookup: [...]]]></description>
			<content:encoded><![CDATA[<p>We upgraded our Jabber from Openfire 3.6.4 to 3.7.0 but suddenly it wasn&#8217;t talking to others who had self-signed certificates (despite having been told that was ok; in such circumstances Jabber offers a &#8220;dialback&#8221; to weakly establish TLS connectivity). It was breaking with messages like:</p>

<pre><code> Error trying to connect to remote server: net.au (DNS lookup: net.au:5269)
</code></pre>

<p>in the logs. Took a while to isolate that (Java stack traces in server logs, how I hate thee), but that led me to this <a href="http://community.igniterealtime.org/thread/43966">discussion</a> about the problem.</p>

<p>Turns out to be, more or less, this <a href="http://issues.igniterealtime.org/browse/OF-443">issue</a>.</p>

<p>Back to the original thread, comment by Gordon Messmer turns the trick; he isolated the specific problem and provided a <a href="http://community.igniterealtime.org/servlet/JiveServlet/download/210618-10600/R11784.patch.zip">patch</a> which you can reverse apply. Since I had already downloaded the 3.7.1 <a href="http://bamboo.igniterealtime.org/browse/OPENFIRE-NIGHTLYDEB-286/">nightly build</a> <code>.deb</code> and installed it (which did <em>not</em> fix the problem), but with a patch in hand, I was then able to follow the advice of &#8220;Devil&#8221; to <a href="http://daredavil2014.livejournal.com/3003.html">rebuild the server and replace the <code>openfire.jar</code> manually</a>.</p>

<p>Obviously I will rebuild the <code>.deb</code> in question shortly, but I can confirm that reverting that specific change does restore server to server functionality with people you used to be able to connect to fine.</p>

<p>Meanwhile 3.7.1, alpha though it may be, does seem to have a fair few fixes in it. We&#8217;ll keep that for now.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/packaging/fix-openfire-s2s-3-7-0/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting a kvm image on a host system</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/research/mounting-a-kvm-image-on-a-host-system</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/research/mounting-a-kvm-image-on-a-host-system#comments</comments>
		<pubDate>Thu, 22 Sep 2011 13:34:34 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[Research]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=511</guid>
		<description><![CDATA[Needed to mount a KVM disk image on a host system without booting the guest. I&#8217;ve used kvm-nbd in the past, but that&#8217;s more for exporting a filesystem from a remote server (and, in any event, we now use Sheepdog for distributing VM images around). Found a number of references to using losetup but wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Needed to mount a KVM disk image on a host system without booting the guest. I&#8217;ve used <code>kvm-nbd</code> in the past, but that&#8217;s more for exporting a filesystem from a remote server (and, in any event, we now use Sheepdog for distributing VM images around).</p>

<p>Found a number of references to using <code>losetup</code> but wanted something simpler; doing the loop part automatically has been a &#8220;take for granted&#8221; thing for years.</p>

<p>It turns out that if your image is in <code>kvm-img</code>&#8216;s &#8220;raw&#8221; format already then you can pretty much access it directly. We found this <a href="http://en.wikibooks.org/wiki/QEMU/Images#Mounting_an_image_on_the_host">article</a>, dated 2009, which shows you can do it pretty quickly; assuming that the partition is the first (or only one) in the disk image:</p>

<pre><code># mount -o ro,loop,offset=32256 dwarf.raw /mnt
#
</code></pre>

<p>which <em>does</em> work!</p>

<p>I&#8217;m a bit unclear about the offset number; where did that come from?</p>

<p>An <a href="http://blog.dustinkirkland.com/2008/10/mounting-kvm-disk-image.html">earlier post</a> mentioned something called <code>kpartx</code>. Given a disk, it will identify partitions and make them available as devices in via the device mapper. Neat. Hadn&#8217;t run into that one before.</p>

<p>This <a href="http://www.linuxquestions.org/questions/linux-virtualization-90/how-to-mount-a-kvm-image-file-787557/#post3856523">comment</a> on Linux Questions suggested using <code>kpartx</code> directly as follows:</p>

<pre><code># kpartx -a dwarf.raw 
# mount -o ro /dev/mapper/loop0p1 /mnt
#
</code></pre>

<p>Nice.</p>

<p>Incidentally, later in that thread is mention of how to calculate offsets using <code>sfdisk -l</code>, however that doesn&#8217;t help if you don&#8217;t already have the disk available in <code>/dev</code>. But you can use the very same <code>kpartx</code> to get the number of cylinders:</p>

<pre><code># kpartx -l dwarf.raw 
loop0p1 : 0 16777089 /dev/loop0 63
#
</code></pre>

<p>Ah ha; 63 sectors × 512 byte block size is 32256. So now we know where they got the number from; adjust your own mounts accordingly. <code>:)</code></p>

<p>AfC</p>

<p><strong>Comments</strong>:</p>

<ol>
<li>Pádraig Brady wrote in, saying &#8220;I find <code>partx</code> is overkill. I&#8217;ve been using the following <a href="http://www.pixelbeat.org/scripts/lomount.sh">script</a> for years; <code>lomount.sh dwarf.raw 1 /mnt</code> is how you might use it.&#8221; Interesting use of <code>fdisk</code>, there.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/research/mounting-a-kvm-image-on-a-host-system/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix your icons package</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/fix-your-icons-package</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/fix-your-icons-package#comments</comments>
		<pubDate>Sun, 21 Aug 2011 02:07:34 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[GNOME Desktop]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=505</guid>
		<description><![CDATA[Updating today, suddenly a whole bunch of icons are broken; GNOME shell was presenting everything with a generic application diamond as its icon. Bah. I noticed gnome-icon-theme was one of the packages that bumped. It turns out that package is now only a limited subset of the GNOME icon set and that you have to [...]]]></description>
			<content:encoded><![CDATA[<p>Updating today, suddenly a whole bunch of icons are broken; GNOME shell was presenting everything with a generic application diamond as its icon. Bah.</p>

<p>I noticed <code>gnome-icon-theme</code> was one of the packages that bumped. It turns out that package is now only a limited subset of the GNOME icon set and that you have to install <code>gnome-icon-theme-full</code> to get the icons you actually need. Bah², but now everything is back the way it should be.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/fix-your-icons-package/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing from pyblosxom to WordPress</title>
		<link>http://blogs.operationaldynamics.com/andrew/meta/pyblosxom-to-wordpress</link>
		<comments>http://blogs.operationaldynamics.com/andrew/meta/pyblosxom-to-wordpress#comments</comments>
		<pubDate>Thu, 18 Aug 2011 04:38:44 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[Mindless Link Propegation]]></category>

		<guid isPermaLink="false">http://blogs.operationaldynamics.com/andrew/?p=496</guid>
		<description><![CDATA[Importing to WordPress from &#91;py&#93;blosxom is not as easy as it could be. I ended up writing some PHP to loop over my posts and call wp_insert_post() for each one. Nifty, almost, except that preserving a category hierarchy is a bear. One massive gotcha: the post bodies are sanitized on import so if you&#8217;re using [...]]]></description>
			<content:encoded><![CDATA[<p>Importing to WordPress from &#91;py&#93;blosxom is not as easy as it could be. I ended up writing some PHP to loop over my posts and call <code>wp_insert_post()</code> for each one. Nifty, almost, except that preserving a category hierarchy is a bear.</p>

<p>One massive gotcha: the post bodies are sanitized on import so if you&#8217;re using something like <a href="http://michelf.com/projects/php-markdown/">Markdown</a> for formatting you get a real mess when it &#8220;helpfully&#8221; converts <code>&gt;</code> characters to HTML entities, swallows URLs properly enclosed in <code>&lt;&gt;</code>, etc. There is a workaround, thankfully:</p>

<pre><code>#
# The WordPress post function sanitizes all input, and this
# includes escaping bare '&gt;' characters to HTML entities.
# This is most unhelpful when importing Markdown data.
#

    kses_remove_filters();
</code></pre>

<p>and then you can safely call insert without your content getting munged:</p>

<pre><code>#
# Construct post and add.
#

    $post = array(
            'post_title' =&gt; $title,
            'post_name' =&gt; $slug,
            'post_content' =&gt; $content,
            'post_category' =&gt; array($category),
            'post_date' =&gt; $date,
            'post_status' =&gt; "publish",
            'post_author' =&gt; 2,
    );      

    $result = wp_insert_post($post), true);

    if (is_wp_error($result)) {
            echo "ERROR\n";
            echo print_r($result);
    } else {
            echo "New post ID: $result\n";
    }
</code></pre>

<p>etc.</p>

<p>Like I said, it&#8217;s a royal pita to figure out the category ID; you need to use the raw ID numbers from the database, not symbolic names or slugs. Ugh.</p>

<p>My blog&#8217;s RSS feed is now <code>http://blogs.operationaldynamics.com/andrew/feed</code>. I did my best to preserve post times, guids, etc, but there came a point where it just wasn&#8217;t going to get any closer; sorry if you get dups in your reader or planet.</p>

<p>Incidentally, what we all knew as &#8220;WordPress MU&#8221; is now called a &#8220;Network Install&#8221;. Go figure, but if you need multi-site aka multi-blog aka multi-user installation you really need to read &#8220;<a href="http://codex.wordpress.org/Create_A_Network">Create A Network</a>&#8221; for instructions. Do this setup before creating (or importing) content unless you want the joy and bliss of reinstalling several times.</p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/meta/pyblosxom-to-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java-gnome 4.1.1 released</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-1-1-release</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-1-1-release#comments</comments>
		<pubDate>Mon, 11 Jul 2011 14:56:20 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[java-gnome]]></category>

		<guid isPermaLink="false">http://java-gnome-4-1-1-release</guid>
		<description><![CDATA[This post is an extract of the release note from the NEWS file which you can read online &#8230; or in the sources from Bazaar. java-gnome 4.1.1 (11 Jul 2011) To bump or not to bump; that is the question This is the first release in the 4.1 series. This introduces coverage of the GNOME [...]]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://java-gnome.sourceforge.net/">
<img src="http://java-gnome.sourceforge.net/images/java-gnome_LargeLogo.png" border="0" width="100" height="107"></a></center></p>

<p><em>This post is an extract of the release note from the</em> <code>NEWS</code> <em>file which you can read <a href="http://java-gnome.sourceforge.net/NEWS.html">online</a> &#8230; or in the
<a href="http://research.operationaldynamics.com/bzr/java-gnome/mainline/NEWS">sources</a> from Bazaar.</em></p>

<hr />

<h1>java-gnome 4.1.1  (11 Jul 2011)</h1>

<p><em>To bump or not to bump; that is the question</em></p>

<p>This is the first release in the 4.1 series. This introduces coverage of the
GNOME 3 series of libraries, notably GTK 3.0. There was a fairly significant API
change from GTK 2.x to 3.x, and we&#8217;ve done our best to accommodate it.</p>

<h2>Drawing with Cairo, which you were already doing</h2>

<p>The biggest change has to do with drawing; if you have a custom widget (ie, a
DrawingArea) then you have to put your Cairo drawing code in a handler for the
<a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Widget.Draw.html"><code>Widget.Draw</code></a> signal rather than what used to be
<code>Widget.ExposeEvent</code>. Since java-gnome has ever only exposed drawing via
Cairo, this change will be transparent to most developers using the library.</p>

<p>Other significant changes include colours: instead of the former <code>Color</code> class
there&#8217;s now RGBA; you use this in calls in the <code>override...()</code> family instead
of <code>modify...()</code> family; for example see Widget&#8217;s
<a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Widget.html#overrideColor(org.gnome.gtk.StateFlags,%20org.gnome.gdk.RGBA)"><code>overrideColor()</code></a>.</p>

<h2>Orientation is allowed now</h2>

<p>Widgets that had abstract base classes and then concrete horizontal and
vertical subclasses can now all be instantiated directly with an Orientable
parameter. The most notable example is Box&#8217;s <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Box.html#Box(org.gnome.gtk.Orientation,%20int)"><code>&lt;init&gt;()</code></a> (the
idea is to replace <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/VBox.html">VBox</a> and <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/HBox.html">HBox</a>, which upstream is going to do away
with). Others are <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Paned.html">Paned</a>, various Range subclasses such as
<a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Scrollbar.html">Scrollbar</a>. <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Separator.html">Separator</a>, <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/ToolBar.html">Toolbar</a>, and <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/ProgressBar.html">ProgressBar</a> now implement
Orientable as well.</p>

<p>There&#8217;s actually a new layout Container, however. Replacing Box and Table
is <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/Grid.html">Grid</a>. Grid is optimized for GTK&#8217;s new height-for-width geometry
management and should be used in preference to other Containers.</p>

<p>The <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/ComboBox.html">ComboBox</a> API was rearranged somewhat. The text-only type is now
<a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/ComboBoxText.html">ComboBoxText</a>; the former ComboBoxEntry is gone and replaced by a ComboBox
property. This is somewhat counter-intuitive since the behaviour of the Widget
is so dramatically different when in this mode (ie, it looks like a
ComboBoxEntry; funny, that).</p>

<h2>Other improvements</h2>

<p>It&#8217;s been some months since our last release, and although most of the work
has focused on refactoring to present GTK 3.0, there have been numerous other
improvements. Cairo in particular has seen some refinement in the area of
Pattern and <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/freedesktop/cairo/Filter.html">Filter</a> handling thanks to Will Temperley, and coverage of
additional <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/TextView.html">TextView</a> and <a href="http://java-gnome.sourceforge.net/doc/api/4.1/org/gnome/gtk/TextTag.html">TextTag</a> properties, notably relating to
paragraph spacing and padding.</p>

<p>Thanks to Kenneth Prugh, Serkan Kaba, and Guillaume Mazoyer for their help
porting java-gnome to GNOME 3.</p>

<hr />

<p><em>You can download java-gnome&#8217;s sources from</em> <a href="http://ftp.gnome.org/pub/GNOME/sources/java-gnome/4.1/"><code>ftp.gnome.org</code></a>, <em>or easily checkout a branch from</em> &#8216;<code>mainline</code>&#8216;<em>:</em></p>

<pre style="background: black; color: white; margin: 10px; padding: 12px;">
$ bzr checkout bzr://research.operationaldynamics.com/bzr/java-gnome/mainline java-gnome
</pre>

<p><em>though if you&#8217;re going to do that you&#8217;re best off following the instructions in the</em> <a href="http://java-gnome.sourceforge.net/HACKING.html"><code>HACKING</code></a> <em>guidelines.</em></p>

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-1-1-release/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java-gnome 4.0.20 released</title>
		<link>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-0-20-release</link>
		<comments>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-0-20-release#comments</comments>
		<pubDate>Mon, 11 Jul 2011 14:53:42 +0000</pubDate>
		<dc:creator>Andrew Cowie</dc:creator>
				<category><![CDATA[java-gnome]]></category>

		<guid isPermaLink="false">http://java-gnome-4-0-20-release</guid>
		<description><![CDATA[This post is an extract of the release note from the NEWS file which you can read online. java-gnome 4.0.20 (11 Jul 2011) This will be the last release in the 4.0 series. It is meant only as an aide to porting over the API bump between 4.0 and 4.1; if your code builds against [...]]]></description>
			<content:encoded><![CDATA[<p><center><a href="http://java-gnome.sourceforge.net/">
<img src="http://java-gnome.sourceforge.net/images/java-gnome_LargeLogo.png" border="0" width="100" height="107"></a></center></p>

<p><em>This post is an extract of the release note from the</em> <code>NEWS</code> <em>file which you can read <a href="http://java-gnome.sourceforge.net/NEWS.html#4.0.20">online</a>.</em></p>

<hr />

<h1>java-gnome 4.0.20 (11 Jul 2011)</h1>

<p>This will be the last release in the 4.0 series. It is meant only as an aide to
porting over the API bump between 4.0 and 4.1; if your code builds against
4.0.20 without reference to any deprecated classes or methods then you can be
fairly certain it will build against 4.1.1 when you finally get a system that
has GTK 3.0 and the other GNOME 3 libraries on it.</p>

<hr />

<p>AfC</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.operationaldynamics.com/andrew/software/java-gnome/java-gnome-4-0-20-release/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

