<?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>Qball's Weblog &#187; General</title>
	<atom:link href="http://blog.sarine.nl/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sarine.nl</link>
	<description>Beati pauperes spiritu</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:33:08 +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>Putting IfThenElse to work</title>
		<link>http://blog.sarine.nl/2011/12/30/putting-ifthenelse-to-work/</link>
		<comments>http://blog.sarine.nl/2011/12/30/putting-ifthenelse-to-work/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 18:49:13 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[IfThenElse]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1071</guid>
		<description><![CDATA[I blogged previous about IfThenElse..  It is a very simple tool, but combined with random other programs can become a fun and powerful tool: The following script locks my screen, puts jabber status on away when I turn off the lights in the room.  Unlocks the screen when turning the lights back on.. Also when <a href="http://blog.sarine.nl/2011/12/30/putting-ifthenelse-to-work/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I blogged previous about IfThenElse..  It is a very simple tool, but combined with random other programs can become a fun and powerful tool:</p>
<p>The following script locks my screen, puts jabber status on away when I turn off the lights in the room.  Unlocks the screen when turning the lights back on.. Also when I start vlc/totem/mplayer it will set my jabber status to away &#8220;watching a movie&#8221;.</p>
<p><a href="http://images.sarine.nl/IfThenElse/domo.dot.png"><img class="alignnone" src="http://images.sarine.nl/IfThenElse/domo.dot.png" alt="" width="1051" height="352" /></a></p>
<p>&nbsp;</p>
<p>This is all described in the following xml file:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1071code2'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10712"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
</pre></td><td class="code" id="p1071code2"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;interface<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseTimerTrigger&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_timer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;timeout&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseMultiAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;main_multiplier&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseChain&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_chain&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;if&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolCheck&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;check_light&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>./Scripts/domotica_check_light.sh<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;true_status&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;false_status&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compare_old_state&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;then&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseMultiAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;multiplier&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_off_action&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gnome-screensaver-command -a -l<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_off_action2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>mpc -h 192.150.0.106 stop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_off_action3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gajim-remote change_status away<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;else&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseMultiAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_on_action_multi&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_on_action&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gnome-screensaver-command -d<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;lights_on_action2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gajim-remote change_status online<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
										<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
									<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseChain&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;movie_chain&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;if&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolCheck&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;check_movie&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>./Scripts/check_movie.sh<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;true_status&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;false_status&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;compare_old_state&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;then&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;movie_on_action&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gajim-remote change_status away &quot;watching movie&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;child</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;else&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;IfThenElseExternalToolAction&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;movie_off_action&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;cmd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gajim-remote change_status online<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
								<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kill_child&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
							<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
						<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/child<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/interface<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/12/30/putting-ifthenelse-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waldo 2</title>
		<link>http://blog.sarine.nl/2011/12/29/waldo-2/</link>
		<comments>http://blog.sarine.nl/2011/12/29/waldo-2/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 18:57:32 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1069</guid>
		<description><![CDATA[Another run, as you can see it is developing differently here: &#160; I always find it fun to watch how it develops.]]></description>
			<content:encoded><![CDATA[<p>Another run, as you can see it is developing differently here:</p>
<p><img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00000100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00001100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00002100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00003100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00004100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00005100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00006100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00007100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00008100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00009100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00010100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00011100.svg.png" alt="" width="230" height="406" /></p>
<p><img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00012100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00014400.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00015500.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo2/test00016400.svg.png" alt="" width="230" height="406" /></p>
<p>&nbsp;</p>
<p>I always find it fun to watch how it develops.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/12/29/waldo-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EvO &#8211; Image vectorization using evolution</title>
		<link>http://blog.sarine.nl/2011/12/29/evo-image-vectorization-using-evolution/</link>
		<comments>http://blog.sarine.nl/2011/12/29/evo-image-vectorization-using-evolution/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 14:49:02 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1062</guid>
		<description><![CDATA[I promised to put this code online, so here it is. EvO. A small program that (with very crappy results) uses &#8216;genetic&#8217; algorithm to vectorize images. It is based on this blog post: http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/ I never finished it to produce nice results like the above blog post, but I had fun time writing it. It <a href="http://blog.sarine.nl/2011/12/29/evo-image-vectorization-using-evolution/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I promised to put this code online, so here it is. EvO. A small program that (with very crappy results) uses &#8216;genetic&#8217; algorithm to vectorize images.</p>
<p>It is based on this blog post: <a href="http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/">http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/</a></p>
<p>I never finished it to produce nice results like the above blog post, but I had fun time writing it.</p>
<p>It is written in vala. Code can be found on github:<a href="https://github.com/DaveDavenport/Evo"> https://github.com/DaveDavenport/Evo</a></p>
<p>An example (waldo): (see full gallery <a href="http://gallery.sarine.nl/?f=EvO%2FWaldo">here</a>)</p>
<p><img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00000100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00001100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00002100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00003100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00004100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00005100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00006100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00007100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00008100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00009100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00010100.svg.png" alt="" width="230" height="406" /><br />
<img class="alignnone" src="http://images.sarine.nl/EvO/Waldo/test00010900.svg.png" alt="" width="230" height="406" /></p>
<pre>../evo --help
Usage:
  evo [OPTION...] Evo

Help Options:
  -?, --help           Show help options

Application Options:
  -i, --input          Input file
  -j, --threads        Number of CPU threads to run
  -p, --population     Size of the popution (default 16)
  -n, --initial        Initial file
  -r, --render         Render file
  -w, --width          Output width
  -h, --height         Output height
  --output-png         Output png instead of svg</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/12/29/evo-image-vectorization-using-evolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If Then Else</title>
		<link>http://blog.sarine.nl/2011/12/27/if-then-else/</link>
		<comments>http://blog.sarine.nl/2011/12/27/if-then-else/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 20:51:37 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[IfThenElse]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1056</guid>
		<description><![CDATA[I wrote a small tool. in the past day. called IfThenElse (Yes needs a better name). The idea is simple: You have a trigger, for example a timeout. So for example every 10 minutes check the network state. When the network state is connected, Check every 2.5 minutes google reader for unread messages. When there <a href="http://blog.sarine.nl/2011/12/27/if-then-else/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wrote a small tool. in the past day. called <strong>IfThenElse</strong> (Yes needs a better name).<br />
The idea is simple:<br />
You have a trigger, for example a timeout.<br />
So for example every 10 minutes check the network state.<br />
When the network state is connected, Check every 2.5 minutes google reader for unread messages.<br />
When there are unread messages show a status icon&#8230;</p>
<p>Or in image form (this is generated from a working example):<br />
<a href="http://images.sarine.nl/IfThenElse/test.dot-1.png"><img class="alignnone" src="http://images.sarine.nl/IfThenElse/test.dot-1.png" alt="" width="794" height="485" /></a></p>
<p>&nbsp;</p>
<p>The whole thing is based on a one &#8216;main&#8217; program that calls external scripts to function.  The program itself is written in Vala, uses GtkBuilder to dynamically load &#8216;flows&#8217;  like the above one.</p>
<p>The main goal in the future is that I can do things like, pause the music when skype calls come in. Notify me every 10 minutes when there are items on my todo list. etc.</p>
<p>The program is not ready for use, but I am looking for some input/help.</p>
<p>In a list:</p>
<ul>
<li>Current input format is a GtkBuilder file.  This nicely &#8216;matches&#8217; the structure of the above flow (it is just an xml file).  But is not very user friendly to write.</li>
<li>So we either generate a gui to generate the chains? (should be easy, just allow user to draw a flowchart) or come up with a better file format.</li>
<li><strong>Use Cases</strong>.  This would help me decide what needs to be added. At the moment I have a timer trigger working, I can execute external programs for the check. Execute external programs as action or show an status icon..</li>
<li>Write examples helper scripts?   (allow directly calling of python scripts? javascript? using libpeas?)</li>
</ul>
<p>Please mail me (qball@gmpclient.org) or contact me on irc #gmpc @ irc.freenode.net.</p>
<p>Q</p>
<p>&nbsp;</p>
<p>Code can be found here: <a href="https://github.com/DaveDavenport/IfThenElse">https://github.com/DaveDavenport/IfThenElse</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/12/27/if-then-else/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiMonitorBackground</title>
		<link>http://blog.sarine.nl/2011/11/09/multimonitorbackground/</link>
		<comments>http://blog.sarine.nl/2011/11/09/multimonitorbackground/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 18:48:23 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1036</guid>
		<description><![CDATA[In git I fixed the multimonitorbackground tool, It will not set the background so even fake transparency tools pick it up. (like gnome-terminal). yes it is nothing special, but it works so much better then normal desktop set tools.]]></description>
			<content:encoded><![CDATA[<p>In git I fixed the <a href="https://github.com/DaveDavenport/MultiMonitorBackground">multimonitorbackground</a> tool, It will not set the background so even fake transparency tools pick it up. (like gnome-terminal).</p>
<p>yes it is nothing special, but it works so much better then normal desktop set tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/11/09/multimonitorbackground/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi Monitor Background</title>
		<link>http://blog.sarine.nl/2011/11/06/multi-monitor-background/</link>
		<comments>http://blog.sarine.nl/2011/11/06/multi-monitor-background/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 21:14:48 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1031</guid>
		<description><![CDATA[And 2 screenshots: For some reason though, gnome-terminal does not pick up the new background? anybody can tell me why? (it does when set with feh.)]]></description>
			<content:encoded><![CDATA[<p>And 2 screenshots:<br />

<a href='http://blog.sarine.nl/2011/11/06/multi-monitor-background/background-feh/' title='background-feh'><img width="150" height="150" src="http://blog.sarine.nl/wp-content/uploads/2011/11/background-feh-150x150.jpg" class="attachment-thumbnail" alt="background-feh" title="background-feh" /></a>
<a href='http://blog.sarine.nl/2011/11/06/multi-monitor-background/background-multimonitorbackground/' title='background-multimonitorbackground'><img width="150" height="150" src="http://blog.sarine.nl/wp-content/uploads/2011/11/background-multimonitorbackground-150x150.jpg" class="attachment-thumbnail" alt="background-multimonitorbackground" title="background-multimonitorbackground" /></a>
</p>
<p>For some reason though, gnome-terminal does not pick up the new background? anybody can tell me why? (it does when set with feh.)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/11/06/multi-monitor-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiMonitor Background settings.</title>
		<link>http://blog.sarine.nl/2011/11/06/multimonito-background-settings/</link>
		<comments>http://blog.sarine.nl/2011/11/06/multimonito-background-settings/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 19:40:04 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1023</guid>
		<description><![CDATA[I got sick and tired of no program being able to set desktop background on multimonitor setups. It either stretch it over the 2 desktops, or whatever, because most tools like xsetbg and feh assume it one screen. This tools sets one image scaled to the size of each monitor. Clipping the image (monitor is <a href="http://blog.sarine.nl/2011/11/06/multimonito-background-settings/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I got sick and tired of no program being able to set desktop background on multimonitor setups.<br />
It either stretch it over the 2 desktops, or whatever, because most tools like xsetbg and feh assume it one screen.</p>
<p>This tools sets one image scaled to the size of each monitor. Clipping the image (monitor is then centered on the image) is optional.<br />
It will never try to scale up the image.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1023code5'); return false;">View Code</a> CPP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10235"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
</pre></td><td class="code" id="p1023code5"><pre class="cpp" style="font-family:monospace;"><span style="color: #ff0000; font-style: italic;">/* multidesktopbackground.vala
 *
 * Copyright (C) 2011 Qball Cow &lt;qball @gmpclient.org&gt;
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see &lt;http: //www.gnu.org/licenses/&gt;.
 *
 * Author:
 * 	Qball Cow &lt;/qball&gt;&lt;qball @gmpclient.org&gt;
 */</span>
<span style="color: #0000ff;">using</span> Gtk<span style="color: #008080;">;</span>
&nbsp;
<span style="color: #ff0000; font-style: italic;">/**
 * Set the actual background on the X server
 */</span>
<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">void</span> set_background<span style="color: #008000;">&#40;</span>Gdk.<span style="color: #007788;">Window</span> root_window, Gdk.<span style="color: #007788;">Pixbuf</span> background_pb<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
		Gdk.<span style="color: #007788;">Pixmap</span> pixmap<span style="color: #008080;">;</span>
		Gdk.<span style="color: #007788;">Bitmap</span> bitmap<span style="color: #008080;">;</span>
		<span style="color: #666666;">// Grab server, without this, it won't work.</span>
		Gdk.<span style="color: #007788;">x11_grab_server</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #666666;">// Set background pixmap.</span>
		Gdk.<span style="color: #007788;">pixbuf_render_pixmap_and_mask</span><span style="color: #008000;">&#40;</span>background_pb,out pixmap, out bitmap, <span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		root_window.<span style="color: #007788;">set_back_pixmap</span><span style="color: #008000;">&#40;</span>pixmap, <span style="color: #0000ff;">false</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #666666;">// Otherwise the background will only update after being exposed.</span>
		<span style="color: #666666;">/// @todo can I trigger an expose event on GdkWindow?</span>
		root_window.<span style="color: #007788;">draw_pixbuf</span><span style="color: #008000;">&#40;</span>null,
				background_pb, <span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span>, 
				background_pb.<span style="color: #007788;">get_width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>, background_pb.<span style="color: #007788;">get_height</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>,
				Gdk.<span style="color: #007788;">RgbDither</span>.<span style="color: #007788;">NONE</span>, <span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #666666;">// Release</span>
		Gdk.<span style="color: #007788;">x11_ungrab_server</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #ff0000; font-style: italic;">/**
 * Option parser
 */</span>
string  clipping <span style="color: #000080;">=</span> null<span style="color: #008080;">;</span>
<span style="color: #0000ff;">const</span> GLib.<span style="color: #007788;">OptionEntry</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> entries <span style="color: #000080;">=</span> <span style="color: #008000;">&#123;</span>
        <span style="color: #008000;">&#123;</span><span style="color: #FF0000;">&quot;clipping&quot;</span>, <span style="color: #FF0000;">'c'</span>, <span style="color: #0000dd;">0</span>, GLib.<span style="color: #007788;">OptionArg</span>.<span style="color: #007788;">STRING</span>, ref clipping, <span style="color: #FF0000;">&quot;Enable clipping&quot;</span>, null<span style="color: #008000;">&#125;</span>,
        <span style="color: #008000;">&#123;</span>null<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #ff0000; font-style: italic;">/**
 * Main program
 */</span>
<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">int</span> main <span style="color: #008000;">&#40;</span>string<span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> argv<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">bool</span> clip <span style="color: #000080;">=</span> <span style="color: #0000ff;">false</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #ff0000; font-style: italic;">/**
	 * Parse command line list
	 */</span>
    GLib.<span style="color: #007788;">OptionContext</span> og <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> GLib.<span style="color: #007788;">OptionContext</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Evo&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
    og.<span style="color: #007788;">add_main_entries</span><span style="color: #008000;">&#40;</span>entries,null<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #0000ff;">try</span><span style="color: #008000;">&#123;</span>
		og.<span style="color: #007788;">parse</span><span style="color: #008000;">&#40;</span>ref argv<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span><span style="color: #0000ff;">catch</span> <span style="color: #008000;">&#40;</span>Error e<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		GLib.<span style="color: #007788;">error</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Failed to parse command line options: %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, e.<span style="color: #007788;">message</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
	<span style="color: #ff0000; font-style: italic;">/**
	 * Parse clipping
	 */</span>	
	<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>clipping <span style="color: #000040;">!</span><span style="color: #000080;">=</span> null<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>clipping.<span style="color: #007788;">down</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #000080;">==</span> <span style="color: #FF0000;">&quot;true&quot;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
			clip <span style="color: #000080;">=</span> <span style="color: #0000ff;">true</span><span style="color: #008080;">;</span>
		<span style="color: #008000;">&#125;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #ff0000; font-style: italic;">/**
	 * Get filename
	 */</span>
	<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>argv.<span style="color: #007788;">length</span>  <span style="color: #000040;">!</span><span style="color: #000080;">=</span> <span style="color: #0000dd;">2</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		GLib.<span style="color: #007788;">error</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Failed parsing commandlines&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
	string file <span style="color: #000080;">=</span> argv<span style="color: #008000;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #666666;">// Initialize GTK.</span>
	Gtk.<span style="color: #007788;">init</span><span style="color: #008000;">&#40;</span>ref argv<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #666666;">// Get display</span>
	Gdk.<span style="color: #007788;">Display</span> display <span style="color: #000080;">=</span> Gdk.<span style="color: #007788;">Display</span>.<span style="color: #007788;">get_default</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #666666;">// Get number of screens.</span>
	<span style="color: #0000ff;">int</span> num_screens <span style="color: #000080;">=</span> display.<span style="color: #007788;">get_n_screens</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #666666;">// Walk the screens.</span>
	<span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> screen <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span> screen <span style="color: #000080;">&lt;</span> num_screens <span style="color: #008080;">;</span> screen<span style="color: #000040;">++</span><span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		Gdk.<span style="color: #007788;">Screen</span> gscreen <span style="color: #000080;">=</span> display.<span style="color: #007788;">get_screen</span><span style="color: #008000;">&#40;</span>screen<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		Gdk.<span style="color: #007788;">Window</span> root_window <span style="color: #000080;">=</span> gscreen.<span style="color: #007788;">get_root_window</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #0000ff;">int</span> rw_width <span style="color: #000080;">=</span> gscreen.<span style="color: #007788;">get_width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		<span style="color: #0000ff;">int</span> rw_height <span style="color: #000080;">=</span> gscreen.<span style="color: #007788;">get_height</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
		<span style="color: #666666;">// Create background pixmap.</span>
		var background_pb <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> Gdk.<span style="color: #007788;">Pixbuf</span><span style="color: #008000;">&#40;</span>Gdk.<span style="color: #007788;">Colorspace</span>.<span style="color: #007788;">RGB</span>,<span style="color: #0000ff;">false</span>,<span style="color: #0000dd;">8</span>, rw_width, rw_height<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
&nbsp;
		<span style="color: #666666;">// Iterate over all the monitors and draw the image there.</span>
&nbsp;
		<span style="color: #666666;">// Get number of monitors.</span>
		<span style="color: #0000ff;">int</span> num_monitors <span style="color: #000080;">=</span> gscreen.<span style="color: #007788;">get_n_monitors</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		<span style="color: #0000ff;">for</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span> monitor <span style="color: #000080;">=</span> <span style="color: #0000dd;">0</span><span style="color: #008080;">;</span> monitor <span style="color: #000080;">&lt;</span> num_monitors<span style="color: #008080;">;</span> monitor<span style="color: #000040;">++</span><span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			Gdk.<span style="color: #007788;">Rectangle</span> rectangle<span style="color: #008080;">;</span>
			<span style="color: #666666;">// get monitor size</span>
			gscreen.<span style="color: #007788;">get_monitor_geometry</span><span style="color: #008000;">&#40;</span>monitor, out rectangle<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
			<span style="color: #666666;">// Gdk.Pixbuf loading and drawing inside.</span>
			<span style="color: #0000ff;">try</span>
			<span style="color: #008000;">&#123;</span>
				Gdk.<span style="color: #007788;">Pixbuf</span><span style="color: #008080;">?</span> pb <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> Gdk.<span style="color: #007788;">Pixbuf</span>.<span style="color: #007788;">from_file</span><span style="color: #008000;">&#40;</span>file<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
				<span style="color: #666666;">// Get size</span>
				<span style="color: #0000ff;">int</span> pb_width <span style="color: #000080;">=</span> pb.<span style="color: #007788;">get_width</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
				<span style="color: #0000ff;">int</span> pb_height <span style="color: #000080;">=</span> pb.<span style="color: #007788;">get_height</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
				<span style="color: #666666;">// Scaling</span>
				<span style="color: #0000ff;">double</span> x_scale <span style="color: #000080;">=</span> pb_width<span style="color: #000040;">/</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">double</span><span style="color: #008000;">&#41;</span>rectangle.<span style="color: #007788;">width</span><span style="color: #008080;">;</span>
				<span style="color: #0000ff;">double</span> y_scale <span style="color: #000080;">=</span> pb_height<span style="color: #000040;">/</span><span style="color: #008000;">&#40;</span><span style="color: #0000ff;">double</span><span style="color: #008000;">&#41;</span>rectangle.<span style="color: #007788;">height</span><span style="color: #008080;">;</span>
&nbsp;
				<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>x_scale <span style="color: #000080;">&gt;=</span> <span style="color: #0000dd;">1</span> <span style="color: #000040;">&amp;&amp;</span> y_scale <span style="color: #000080;">&gt;=</span> <span style="color: #0000dd;">1</span> <span style="color: #000040;">&amp;&amp;</span> clip<span style="color: #008000;">&#41;</span> 
				<span style="color: #008000;">&#123;</span>
					<span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>x_scale <span style="color: #000080;">&gt;</span> y_scale<span style="color: #008000;">&#41;</span>
					<span style="color: #008000;">&#123;</span>
						<span style="color: #0000ff;">int</span> new_width <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_width<span style="color: #000040;">/</span>y_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
						<span style="color: #0000ff;">int</span> new_height <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_height<span style="color: #000040;">/</span>y_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
						pb <span style="color: #000080;">=</span> pb.<span style="color: #007788;">scale_simple</span><span style="color: #008000;">&#40;</span>new_width, new_height, Gdk.<span style="color: #007788;">InterpType</span>.<span style="color: #007788;">HYPER</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
&nbsp;
						<span style="color: #0000ff;">int</span> x_offset <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>new_width <span style="color: #000040;">-</span> rectangle.<span style="color: #007788;">width</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
						<span style="color: #0000ff;">int</span> y_offset <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>new_height<span style="color: #000040;">-</span> rectangle.<span style="color: #007788;">height</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
						pb.<span style="color: #007788;">copy_area</span><span style="color: #008000;">&#40;</span>
								x_offset,y_offset,
								new_width<span style="color: #000040;">-</span>x_offset<span style="color: #000040;">*</span><span style="color: #0000dd;">2</span>,new_height<span style="color: #000040;">-</span>y_offset<span style="color: #000040;">*</span><span style="color: #0000dd;">2</span>,
								background_pb,
								rectangle.<span style="color: #007788;">x</span>, rectangle.<span style="color: #007788;">y</span>
								<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					<span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">else</span> <span style="color: #008000;">&#123;</span>
						<span style="color: #0000ff;">int</span> new_width <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_width<span style="color: #000040;">/</span>x_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
						<span style="color: #0000ff;">int</span> new_height <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_height<span style="color: #000040;">/</span>x_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
						pb <span style="color: #000080;">=</span> pb.<span style="color: #007788;">scale_simple</span><span style="color: #008000;">&#40;</span>new_width, new_height, Gdk.<span style="color: #007788;">InterpType</span>.<span style="color: #007788;">HYPER</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
&nbsp;
						<span style="color: #0000ff;">int</span> x_offset <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>new_width <span style="color: #000040;">-</span> rectangle.<span style="color: #007788;">width</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
						<span style="color: #0000ff;">int</span> y_offset <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span>new_height<span style="color: #000040;">-</span> rectangle.<span style="color: #007788;">height</span><span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span><span style="color: #008080;">;</span>
						pb.<span style="color: #007788;">copy_area</span><span style="color: #008000;">&#40;</span>
								x_offset,y_offset,
								new_width<span style="color: #000040;">-</span>x_offset<span style="color: #000040;">*</span><span style="color: #0000dd;">2</span>,new_height<span style="color: #000040;">-</span>y_offset<span style="color: #000040;">*</span><span style="color: #0000dd;">2</span>,
								background_pb,
								rectangle.<span style="color: #007788;">x</span>,rectangle.<span style="color: #007788;">y</span>
								<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					<span style="color: #008000;">&#125;</span>
				<span style="color: #008000;">&#125;</span>
				<span style="color: #0000ff;">else</span> <span style="color: #0000ff;">if</span><span style="color: #008000;">&#40;</span>x_scale <span style="color: #000080;">&gt;</span> y_scale<span style="color: #008000;">&#41;</span>
				<span style="color: #008000;">&#123;</span>
					<span style="color: #0000ff;">int</span> new_width <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_width<span style="color: #000040;">/</span>x_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					<span style="color: #0000ff;">int</span> new_height <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_height<span style="color: #000040;">/</span>x_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					pb <span style="color: #000080;">=</span> pb.<span style="color: #007788;">scale_simple</span><span style="color: #008000;">&#40;</span>new_width, new_height, Gdk.<span style="color: #007788;">InterpType</span>.<span style="color: #007788;">HYPER</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
&nbsp;
					pb.<span style="color: #007788;">copy_area</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span>,
							new_width, new_height,
							background_pb,
							rectangle.<span style="color: #007788;">x</span> <span style="color: #000040;">+</span> <span style="color: #008000;">&#40;</span>rectangle.<span style="color: #007788;">width</span><span style="color: #000040;">-</span>new_width<span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span>,
							rectangle.<span style="color: #007788;">y</span> <span style="color: #000040;">+</span> <span style="color: #008000;">&#40;</span>rectangle.<span style="color: #007788;">height</span><span style="color: #000040;">-</span>new_height<span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span>
							<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
				<span style="color: #008000;">&#125;</span>
				<span style="color: #0000ff;">else</span> 
				<span style="color: #008000;">&#123;</span>
					<span style="color: #0000ff;">int</span> new_width <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_width<span style="color: #000040;">/</span>y_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					<span style="color: #0000ff;">int</span> new_height <span style="color: #000080;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #0000ff;">int</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#40;</span>pb_height<span style="color: #000040;">/</span>y_scale<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
					pb <span style="color: #000080;">=</span> pb.<span style="color: #007788;">scale_simple</span><span style="color: #008000;">&#40;</span>new_width, new_height, Gdk.<span style="color: #007788;">InterpType</span>.<span style="color: #007788;">HYPER</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span> 
&nbsp;
					pb.<span style="color: #007788;">copy_area</span><span style="color: #008000;">&#40;</span><span style="color: #0000dd;">0</span>,<span style="color: #0000dd;">0</span>,
							new_width, new_height,
							background_pb,
							rectangle.<span style="color: #007788;">x</span> <span style="color: #000040;">+</span> <span style="color: #008000;">&#40;</span>rectangle.<span style="color: #007788;">width</span><span style="color: #000040;">-</span>new_width<span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span>,
							rectangle.<span style="color: #007788;">y</span> <span style="color: #000040;">+</span> <span style="color: #008000;">&#40;</span>rectangle.<span style="color: #007788;">height</span><span style="color: #000040;">-</span>new_height<span style="color: #008000;">&#41;</span><span style="color: #000040;">/</span><span style="color: #0000dd;">2</span>
							<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
&nbsp;
				<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #008000;">&#125;</span> <span style="color: #0000ff;">catch</span> <span style="color: #008000;">&#40;</span>Error e<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
				GLib.<span style="color: #007788;">error</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;Failed loading pixbuf: %s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>, e.<span style="color: #007788;">message</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #008000;">&#125;</span>
		set_background<span style="color: #008000;">&#40;</span>root_window, background_pb<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0000ff;">return</span> <span style="color: #0000dd;">1</span><span style="color: #008080;">;</span>
<span style="color: #008000;">&#125;</span>
<span style="color: #000080;">&lt;</span><span style="color: #000040;">/</span>qball<span style="color: #000080;">&gt;</span></pre></td></tr></table></div>

<p>compile with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1023code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10236"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1023code6"><pre class="bash" style="font-family:monospace;">valac <span style="color: #660033;">--pkg</span>=gtk+-<span style="color: #000000;">2.0</span>  MultiDesktopBackground.vala  <span style="color: #660033;">--pkg</span>=gdk-x11-<span style="color: #000000;">2.0</span> <span style="color: #660033;">--pkg</span>=x11</pre></td></tr></table></div>

<p>edit: updated it a bit and put in git: <a href="https://github.com/DaveDavenport/MultiMonitorBackground">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/11/06/multimonito-background-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Reader/GMail Theme  for wordpress.</title>
		<link>http://blog.sarine.nl/2011/11/06/google-readergmail-theme-for-wordpress/</link>
		<comments>http://blog.sarine.nl/2011/11/06/google-readergmail-theme-for-wordpress/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 13:40:16 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1021</guid>
		<description><![CDATA[I am one of the rare people that like the new google theme.. I would love to have a google worpress theme that matches it? anybody knows if this exists. (A GTK theme that matches it would be complete blizz) &#160;]]></description>
			<content:encoded><![CDATA[<p>I am one of the rare people that like the new google theme.. I would love to have a google worpress theme that matches it? anybody knows if this exists. (A GTK theme that matches it would be complete blizz)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/11/06/google-readergmail-theme-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome Music Player 11.11,</title>
		<link>http://blog.sarine.nl/2011/11/06/gnome-music-player-11-11/</link>
		<comments>http://blog.sarine.nl/2011/11/06/gnome-music-player-11-11/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 12:59:31 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[gmpc]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=1013</guid>
		<description><![CDATA[When doing the latest release (11.8) I planned to make another release this month (11.11). But as it currently looks this is going to be a problem. Again help welcome. Because off lack of time on my side and the magic vanishing action of  LibertyZero I strongly doubt I will will be able to make <a href="http://blog.sarine.nl/2011/11/06/gnome-music-player-11-11/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When doing the latest release (11.8) I planned to make another release this month (11.11). But as it currently looks this is going to be a problem. Again help welcome.</p>
<p>Because off lack of time on my side and the magic vanishing action of  LibertyZero I strongly doubt I will will be able to make a release this month. (Crap)</p>
<p>But a changelog so far:</p>
<h1>What&#8217;s New in 11.11</h1>
<ul>
<li>New sidebar. (<a title="GMPC Sidebar work" href="http://blog.sarine.nl/2011/10/11/gmpc-sidebar-work/">more info here</a>) Different view, ordering into categories, etc.</li>
<li>Removing status bar, moving status icons into sidebar.</li>
<li>Changed collapsed mode. (<a title="GMPC Sidebar work" href="http://blog.sarine.nl/2011/10/11/gmpc-sidebar-work/">more info here</a>)</li>
<li>Fixed keybindings for browsers and keybinding highlight mode. (<a title="GMPC keybinding ‘help’" href="http://blog.sarine.nl/2011/11/04/gmpc-keybinding-help/">more info</a>)</li>
<li>Move to <a title="GLYR" href="https://github.com/sahib/glyr" target="_blank">libglyr</a>. This is a big one. It removes a lot of functionality from GMPC and into GLYR.<br />
Metadata is something that is in constant flux, providers appear, gone missing, break api, etc. Having<br />
this in a separate library is good for GMPC maintainability.</li>
</ul>
<ul>
<li>&#8211; Remove metadata cache (now in libglyr)</li>
<li>&#8211; Remove metadata plugins (now provided by libglyr)</li>
<li>&#8211; Add separate Backdrops metadata type.</li>
<li><span style="color: #ff6600;">&#8211; Remove pixbuf cache (to be done)</span></li>
<li><span style="color: #ff6600;">&#8211; Replace metadata selector. (to be done)</span></li>
<li><span style="color: #000000;">AutoMPD: Run GMPC without setting up MPD. (<a title="GMPC Usability leap" href="http://blog.sarine.nl/2011/08/26/gmpc-usability-leap/" target="_blank">More info here</a>) </span></li>
</ul>
<h1>Improved in 11.11</h1>
<ul>
<li>Tooltips over sidebar.</li>
<li>Slight improvement to startup times.</li>
<li>Removal off old, deprecated code.</li>
</ul>
<p><a href="http://blog.sarine.nl/wp-content/uploads/2011/08/Screenshot-GMPC-Preferences.png"><img class="alignleft size-thumbnail wp-image-965" title="Screenshot-GMPC - Preferences" src="http://blog.sarine.nl/wp-content/uploads/2011/08/Screenshot-GMPC-Preferences-150x150.png" alt="" width="150" height="150" /></a></p>
<p><a href="http://blog.sarine.nl/wp-content/uploads/2011/11/gmpc-keybinding-highlight-small.png"><img class="size-thumbnail wp-image-1010 alignleft" title="gmpc-keybinding-highlight-small" src="http://blog.sarine.nl/wp-content/uploads/2011/11/gmpc-keybinding-highlight-small-150x150.png" alt="" width="150" height="150" /></a><a href="http://blog.sarine.nl/wp-content/uploads/2011/10/gmpc-sidebar1.png"><img class="alignleft size-thumbnail wp-image-987" title="gmpc-sidebar1" src="http://blog.sarine.nl/wp-content/uploads/2011/10/gmpc-sidebar1-150x150.png" alt="" width="150" height="150" /></a><a href="http://blog.sarine.nl/wp-content/uploads/2011/10/gmpc-sidebar2.png"><img class="alignleft size-thumbnail wp-image-986" title="gmpc-sidebar2" src="http://blog.sarine.nl/wp-content/uploads/2011/10/gmpc-sidebar2-150x150.png" alt="" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/11/06/gnome-music-player-11-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Covers can be good</title>
		<link>http://blog.sarine.nl/2011/10/15/covers-can-be-good/</link>
		<comments>http://blog.sarine.nl/2011/10/15/covers-can-be-good/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 21:58:07 +0000</pubDate>
		<dc:creator>Qball</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.sarine.nl/?p=996</guid>
		<description><![CDATA[Listen to this one completely: http://www.youtube.com/watch?v=XNeWvxWv2o0&#038;feature=related .]]></description>
			<content:encoded><![CDATA[<p>Listen to this one completely: <a href="http://www.youtube.com/watch?v=XNeWvxWv2o0&#038;feature=related">http://www.youtube.com/watch?v=XNeWvxWv2o0&#038;feature=related</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sarine.nl/2011/10/15/covers-can-be-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

