<?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>Zero_Dogg's blog &#187; drakSimpleConf</title>
	<atom:link href="http://blog.zerodogg.org/category/projects/draksimpleconf/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zerodogg.org</link>
	<description>Geeky comments on geeky things</description>
	<lastBuildDate>Mon, 27 Sep 2010 16:37:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>drakSimpleConf</title>
		<link>http://blog.zerodogg.org/2006/09/16/draksimpleconf/</link>
		<comments>http://blog.zerodogg.org/2006/09/16/draksimpleconf/#comments</comments>
		<pubDate>Sat, 16 Sep 2006 14:50:12 +0000</pubDate>
		<dc:creator>Zero_Dogg</dc:creator>
				<category><![CDATA[drakSimpleConf]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://blog.iamaturtle.org/?p=67</guid>
		<description><![CDATA[I&#8217;ve been thinking of a method of creating simple configuration UIs. Take the following config file: RunMode = Inetd AuthMode = Closed Restricted = true To create a simple configuration GUI for this I would write something like this: filename is /etc/example.conf setting RUNMODE can be (Inetd, Daemon) setting AUTHMODE can be (Closed, Open) option [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking of a method of creating simple configuration UIs.</p>
<p>Take the following config file:<br />
<code>RunMode = Inetd<br />
AuthMode = Closed<br />
Restricted = true</code></p>
<p>To create a simple configuration GUI for this I would write something like this:<br />
<code>filename is /etc/example.conf<br />
setting RUNMODE can be (Inetd, Daemon)<br />
setting AUTHMODE can be (Closed, Open)<br />
option RunMode is RUNMODE with name "Run mode" and tooltip "Which mode to run in"<br />
option AuthMode is AUTHMODE with name "Authentication mode" and tooltip "Which mode to use for authentication"<br />
option Restricted is BOOLEAN with name "Enable restriction" and tooltip "Enable this if you want to enable restriction of user rights"</code></p>
<p>The initial filename option selects which file the config file is.<br />
The first &#8220;setting&#8221; defines a type of entry in the config file that can be either of the value &#8220;Inetd&#8221; or &#8220;Daemon&#8221;. This would create a drop-down widget where you can select &#8220;Inetd&#8221; and &#8220;Daemon&#8221;.<br />
The second setting defines the same for &#8220;Closed&#8221; and &#8220;Open&#8221;.<br />
The first &#8220;option&#8221; defines that the option in the config file &#8220;RunMode&#8221; is of the type &#8220;RUNMODE&#8221; and the name of the option that is displayed in the GUI is &#8220;Run mode&#8221; and it has a tooltip saying &#8220;Which mode to run in&#8221;<br />
The second is the same.<br />
The third one defines that the option &#8220;Restricted&#8221; is of the predefined type &#8220;BOOLEAN&#8221; (which is predefined to be true/false, this creates a checkbox instead of a drop-down box).</p>
<p>Now begin your slaughtering. This is still just an idea. There is no code yet. What do you think of the concept of creating a whole configuration GUI for an app using a single file like this? I&#8217;m thinking it would be okay for daemons and such.<br />
What do you think of the syntax? I just grabbed it out of my head today and thought it <i>might</i> work. I want the syntax to be simple and human-readable. The point is that you should be able to hack together a GUI for any program with a simple configuration file in a few minutes.</p>
<p>Flame me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zerodogg.org/2006/09/16/draksimpleconf/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

