<?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"
	>

<channel>
	<title>openSUSE Lizards &#187; Michal Marek</title>
	<atom:link href="http://lizards.opensuse.org/author/michal-m/feed/" rel="self" type="application/rss+xml" />
	<link>http://lizards.opensuse.org</link>
	<description></description>
	<pubDate>Wed, 27 Aug 2008 19:45:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Accessing the Build Service from Eclipse</title>
		<link>http://lizards.opensuse.org/2008/08/13/accessing-the-build-service-from-eclipse/</link>
		<comments>http://lizards.opensuse.org/2008/08/13/accessing-the-build-service-from-eclipse/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 10:50:22 +0000</pubDate>
		<dc:creator>Michal Marek</dc:creator>
		
		<category><![CDATA[Build Service]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=129</guid>
		<description><![CDATA[One of this year&#8217;s Google Summer of Code projects is a an Eclipse plugin to access the Build Service, developed by Long Hong from Beijing. If you are interested, read on.

While there are still issues to be solved, I think it&#8217;s in a state that everybody can try it out. Grab a package from my [...]]]></description>
			<content:encoded><![CDATA[<p>One of this year&#8217;s Google Summer of Code projects is a <a href="http://code.google.com/soc/2008/suse/appinfo.html?csaid=DFC9A170A95499CD">an Eclipse plugin to access the Build Service</a>, developed by Long Hong from Beijing. If you are interested, read on.</p>
<p><a href="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-1.png"><img class="aligncenter size-medium wp-image-122" src="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-1-small.png" alt="open Build Service perspective" /></a></p>
<p>While there are still issues to be solved, I think it&#8217;s in a state that everybody can try it out. <a href="http://software.opensuse.org/search?baseproject=home:michal-m:gsoc2008&amp;q=eclipse-bs-plugin">Grab a package</a> from my home project, launch eclipse and open the Build Service perspective. Please note that the package itself is a bit experimental and was only tested to work on openSUSE 11.0. Enjoy! <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-2.png"><img class="aligncenter size-medium wp-image-125" src="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-2-small.png" alt="screenshot of the properties view" /></a></p>
<p><a href="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-3.png"><img class="aligncenter size-medium wp-image-125" src="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-3-small.png" alt="screenshot of the remote view" /></a></p>
<p><a href="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-4.png"><img class="aligncenter size-medium wp-image-125" src="http://lizards.opensuse.org/wp-content/uploads/2008/08/eclipse-bs-4-small.png" alt="screenshot of the build result view" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/08/13/accessing-the-build-service-from-eclipse/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trick of the Day: Reboot as User</title>
		<link>http://lizards.opensuse.org/2008/07/18/trick-of-the-day-reboot-as-user/</link>
		<comments>http://lizards.opensuse.org/2008/07/18/trick-of-the-day-reboot-as-user/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 13:25:12 +0000</pubDate>
		<dc:creator>Michal Marek</dc:creator>
		
		<category><![CDATA[Desktop]]></category>

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=107</guid>
		<description><![CDATA[$ reboot
-bash: reboot: command not found
$ /sbin/reboot
reboot: must be superuser.
In KDE / GNOME, you can just click reboot in the menu and your session sends a message to display manager, which runs as root and does the dirty job of rebooting or shutting down your machine. Unfortunately, things are not that easy if you are [...]]]></description>
			<content:encoded><![CDATA[<pre>$ reboot
-bash: reboot: command not found
$ /sbin/reboot
reboot: must be superuser.</pre>
<p>In KDE / GNOME, you can just click reboot in the menu and your session sends a message to display manager, which runs as root and does the dirty job of rebooting or shutting down your machine. Unfortunately, things are not that easy if you are using a simpler window manager or want to <a href="http://bugzilla.gnome.org/show_bug.cgi?id=118091">shutdown from a script</a>. Sure, there is sudo, but that has to be configured first to work without password. Luckily, after a couple of hours of googling (only to find helpful advice as &#8220;this can be done easily with ConsoleKit or hal&#8221;), reading documentation of dbus, {Console,Policy}Kit and hal and clicking in qdbusviewer, I finally found a way with hal+dbus:</p>
<pre>$ dbus-send --system --dest=org.freedesktop.Hal \
  --type=method_call --print-reply \
  /org/freedesktop/Hal/devices/computer \
  org.freedesktop.Hal.Device.SystemPowerManagement.Reboot</pre>
<p>To shutdown, just replace Reboot with Shutdown. I&#8217;m going to add this to the default icewm configuration, so that the logout menu <a href="https://bugzilla.novell.com/show_bug.cgi?id=406156">finally works</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/07/18/trick-of-the-day-reboot-as-user/feed/</wfw:commentRss>
		</item>
		<item>
		<title>learning ruby&#8230;</title>
		<link>http://lizards.opensuse.org/2008/05/26/learning-ruby/</link>
		<comments>http://lizards.opensuse.org/2008/05/26/learning-ruby/#comments</comments>
		<pubDate>Mon, 26 May 2008 16:26:23 +0000</pubDate>
		<dc:creator>Michal Marek</dc:creator>
		
		<category><![CDATA[Build Service]]></category>

		<category><![CDATA[Packaging]]></category>

		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=32</guid>
		<description><![CDATA[Recently, I wanted to show how the buildservice makes packaging easier by creating a specfile template for you (just click the &#8220;Create RPM SPEC file templat&#8221; checkbox when creating a new package). Unfortunatelly, the template it creates is not really useful for someone not skilled in writing spec files. Also, it&#8217;s just a static template, [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I wanted to show how the buildservice makes packaging easier by creating a specfile template for you (just click the &#8220;Create RPM SPEC file templat&#8221; checkbox when creating a new package). Unfortunatelly, the template it creates is not really useful for someone not skilled in writing spec files. Also, it&#8217;s just a static template, so you have to write the summary and description even though you have just entered both in the web form. Definitely nothing to show off to newbies ;-). But knowing that the buildservice developers have more important stuff to do, and wanting to learn something new, I decided give it a try and fix it myself.</p>
<p>My idea is: The buildservice api asks a set of questions, which are presented by the client (webclient, osc, &#8230;) to the user, and creates a specfile based on these questions. Also, the api tries to suggest good defaults where possible. After spending some time learning ruby, rails and the api code, I have an ugly 200 line patch to the api that generates a working specfile for <a href="http://www.gnu.org/software/hello/">GNU hello</a> ;-).</p>
<p><a href="http://michal.markovi.net/images/bs-wizard-2008-05-26.png"><img src="http://michal.markovi.net/images/bs-wizard-2008-05-26-thumb.png" alt="wizard in action" /></a></p>
<p>The user interface part is not yet done, but should be easy. What&#8217;s more chalenging is adding heuristics to &#8220;do the right thing&#8221;: detecting the build system (autotools, cmake, Makefile.PL, etc), detecting build dependencies, and so on. Right now, it only extracts the version number from the tar name.</p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/05/26/learning-ruby/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
