<?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; Thomas Schraitle</title>
	<atom:link href="http://lizards.opensuse.org/author/thomas-schraitle/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>Hackweek: Create a Condensed Monospace Font</title>
		<link>http://lizards.opensuse.org/2008/08/27/hackweek3-create-a-condensed-monospace-font/</link>
		<comments>http://lizards.opensuse.org/2008/08/27/hackweek3-create-a-condensed-monospace-font/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 19:45:41 +0000</pubDate>
		<dc:creator>Thomas Schraitle</dc:creator>
		
		<category><![CDATA[Artwork]]></category>

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

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

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=138</guid>
		<description><![CDATA[You see it every day, you normally don't think about it, but it is nevertheless important: fonts.]]></description>
			<content:encoded><![CDATA[<p>You see it every day, you normally don&#8217;t think about it, but it is nevertheless important: Fonts.</p>
<p>Obviously we need fonts to communicate with each other, especially in digital media. A whole industry create thousends of fonts for different task: for books, magazines, headlines, comics, funerals, weddings, and much, much more.</p>
<p>However, these fonts are not free and as such cost money. Unfortunately, in the past there was a lack of good looking, professional fonts. The situation nowadays are getter better and better as we have very promising open source fonts: DejaVu, Gentium, LinuxLibertine, to name a few. Without these, our world of characters would be very small and we would have a limited choice only. It&#8217;s a pity that all these beautiful fonts don&#8217;t have a condensed monospace version. This would be <em>very useful</em>, for example you can have more characters on a line and you don&#8217;t have to break them into pieces.</p>
<p>As I haven&#8217;t found a suitable font for me, I thought why not create one? Of course, I could have used one of the above, apply some transformations and be happy (or not). But this is not really creative, so I thought why not design something totally new? So I have chosen this project for Hackweek.</p>
<p>Let&#8217;s make it clear: It is really hard and nobody really know the time and sweat that goes into a font. To create a really good looking font it is really a challenge&#8212;and obviously not possible during Hackweek. But I think, to create something new and gain some experience, this can be a lot of fun. <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So here is the rough procedure that I used for this font:</p>
<ol>
<li>Draw some sketches</li>
<li>Scan it with a scanner</li>
<li>Import the image into Fontforge into the background</li>
<li>Rescale the image</li>
<li>(Re)draw manually the lines, straight and curved. You could try to use a tool that automates this task, but the results were not very satisfying.</li>
<li>Expand the lines and make the &#8220;flesh&#8221; of the glyph.</li>
<li>Remove any overlaps</li>
<li>Adjust the width, curve, etc.</li>
<li>Make a print out, look at it, and repeat some of the steps&#8230;</li>
</ol>
<p>As I learn more and more of FontForge, these tasks become (hopefully) easier.  The font is similar to Dejavu Mono, but not identical. The result of all these steps is shown in this graphic (be warned, obscure text ahead):</p>
<p><img src="http://www.suse.de/~toms/hackweek3/toms-mono.png" alt="Toms Mono" /></p>
<p>As you can see I have drawn the <a href="http://en.wikipedia.org/wiki/Majuscule">majuscules</a> only. I will try to implement the <a href="http://en.wikipedia.org/wiki/Lower_case">minuscles</a> and other characters too, at the latest of the next Hackweek. <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Funny, but <a href="http://jimmac.musichall.cz/log/?p=439">jimmac</a> is working also on a font too. Good luck to you! <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I will publish the font when I think it is in a somehow useful state. It will be released under an open source license (probably Open Font License or GPL, I don&#8217;t know yet).</p>
<p>Feedback welcome! <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/08/27/hackweek3-create-a-condensed-monospace-font/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to search more efficiently in Bugzilla with pybugz</title>
		<link>http://lizards.opensuse.org/2008/06/19/how-to-search-more-efficiently-in-bugzilla-with-pybugz/</link>
		<comments>http://lizards.opensuse.org/2008/06/19/how-to-search-more-efficiently-in-bugzilla-with-pybugz/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 06:58:39 +0000</pubDate>
		<dc:creator>Thomas Schraitle</dc:creator>
		
		<category><![CDATA[Accessibility]]></category>

		<category><![CDATA[Quality Assurance]]></category>

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

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

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

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

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=70</guid>
		<description><![CDATA[If you just want to search for bugs in Bugzilla, it's (a bit) painful: start the browser, type in the URL, insert your login and password and try to find out where to go. There is an easier way to do: pybugz for commandline lovers!]]></description>
			<content:encoded><![CDATA[<p>If you just want to search for bugs in Bugzilla, it&#8217;s (a bit?) painful: start the browser, type in the URL, insert your login and password and try to find out where to go. There is an easier way to do: <a href="http://www.liquidx.net/pybugz/">pybugz</a> for commandline lovers!</p>
<p>Thanks to Peter Poeml, get this very useful Python script from <a href="http://software.opensuse.org/search?baseproject=ALL&amp;p=1&amp;q=pybugz">here</a>. After you have installed it you need only two steps to configure it:</p>
<ol>
<li>
<p>Create a file <span>~/.bzuser</span> and insert your Bugzilla login.</p>
</li>
<li>
<p>Login into Bugzilla and insert your password. This creates the file <span>~/.bugz_cookie</span>:</p>
<p><code>$  /usr/bin/bugz-login</code>
</li>
</ol>
<p>The script knows several subcommands, its interface is similar to CVS or Subversion. You can search, get, post, modify, attach and download an attachment, all with this utility. For example, if you want all bugs about &#8220;XML&#8221;, regardless of the product or component, you just type:</p>
<p> <code>$ bugz search xml</code></p>
<p>That gives the following output:</p>
<p> <code>&nbsp;* Using https://bugzilla.novell.com/<br />
&nbsp;* Searching for 'XML'<br />
&nbsp;[ deleted a lot of lines ]</code></p>
<p>Maybe you want to narrow your search for KDE and specific products? No problem, here is an example:</p>
<p> <code>$ bugz search KDE --product="openSUSE 11.0"<br />
&nbsp;* Using https://bugzilla.novell.com/<br />
&nbsp;* Searching for 'KDE' with the following options:<br />
&nbsp;*    product              = ['openSUSE 11.0']<br />
 113512 kde-maintainers      Firefox in KDE - Only Uses GNOME Programs<br />
 170055 dmueller             Firefox sets desktop background for Gnome under KDE<br />
 176179 kde-maintainers      User can&#8217;t edit properties for default notifications under KDE Storage Media and entries disepeared !<br />
 203548 sbrabec              workrave-kde is an empty applet by default<br />
 [... and many more ...]</code></p>
<p>Of course, if you know the bug number you can retrieve it with:</p>
<p>  <code>$ bugz get 378240</code></p>
<p>and it will list all the details of the bug. Very useful! I haven&#8217;t tried the other subcommands yet, but I think they are also very convenient.</p>
<p>There are many more things to discover. So, when was your last time searching for bugs? <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/06/19/how-to-search-more-efficiently-in-bugzilla-with-pybugz/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Query your XML with xpathgrep.py</title>
		<link>http://lizards.opensuse.org/2008/06/09/query-your-xml-with-xpathgreppy/</link>
		<comments>http://lizards.opensuse.org/2008/06/09/query-your-xml-with-xpathgreppy/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 13:32:16 +0000</pubDate>
		<dc:creator>Thomas Schraitle</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

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

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

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

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=52</guid>
		<description><![CDATA[Maybe you know this problem: You have a couple of XML files and you need a specific information. Probably everybody would think of grep or similar tools first. But maybe your query is a bit more complicated than just a simple piece of text. What do do?]]></description>
			<content:encoded><![CDATA[<p>Maybe you know this problem: You have a couple of XML files and you need a specific information. Probably everybody would think of grep or similar tools first. But maybe your query is a bit more complicated than just a simple piece of text. What do do?</p>
<p>Recently I&#8217;ve found a very useful command line utility, which is probably not very known. It&#8217;s named xpathgrep.py and you can get it from the <a href="http://codespeak.net/svn/lxml/trunk/tools/xpathgrep.py">lxml repository</a> (you need lxml too). Let&#8217;s assume we have the following DocBook file:</p>
<pre><em>File db.xml</em>
&lt;?xml version=&#8221;1.0&#8243;?&gt;
&lt;book&gt;
  &lt;title&gt;My Cooking Book&lt;/title&gt;
  &lt;chapter&gt;
    &lt;title&gt;Ingredients&lt;/title&gt;
    &lt;para&gt;&#8230;&lt;/para&gt;
  &lt;/chapter&gt;
  &lt;chapter id=&#8221;howtocook&#8221;&gt;
    &lt;title&gt;How to cook&lt;/title&gt;
    &lt;para&gt;&#8230;&lt;/para&gt;
  &lt;/chapter&gt;
&lt;/book&gt;</pre>
<p>Now, if I want to get all the titles I have to use a <a href="http://www.w3.org/TR/xpath">XPath</a> (which is a <span>path description language for XML</span>, similar to Unix/Linux paths, but more powerful). To get all title elements all I have to do is to write <span style="mono;">//title</span>, regardless of the level:</p>
<p><code>$ <strong>xpathgrep.py</strong> //title db.xml</code></p>
<p>and I get this:</p>
<p><code>&lt;title&gt;My Cooking Book&lt;/title&gt;<br />
<br />
&lt;title&gt;Ingredients&lt;/title&gt;<br />
<br />
&lt;title&gt;How to cook&lt;/title&gt;<br />
</code></p>
<p>Nice, isn&#8217;t it? Probably you say: &#8220;But, hey, I can get this with grep too!&#8221; Yes, but if you want just all chapter titles, you have a problem with grep. With XPath and xpathgrep.py I only modify my XPath expression a bit:</p>
<p><code>$ <strong>xpathgrep.py</strong> //chapter/title db.xml</code></p>
<p>Now this reduces the above output just to the wanted chapter titles. And I can extent my query just for all chapters that doesn&#8217;t have an id attribute:</p>
<p><code>$ <strong>xpathgrep.py</strong> &#8216;//chapter[not(@id)]/title&#8217; db.xml</code></p>
<p>(You need the apostroph because of the shell.) The tool outputs this:</p>
<p><code>&lt;title&gt;Ingredients&lt;/title&gt;</code></p>
<p>That&#8217;s nice, isn&#8217;t it? There are a lot of more to discover. A few hours ago I send a small patch to the lxml-devel mailinglist to support namespaces. Hopefully, it will be accepted. <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/06/09/query-your-xml-with-xpathgreppy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Toms´ Musings about&#8230;</title>
		<link>http://lizards.opensuse.org/2008/06/07/toms-musings/</link>
		<comments>http://lizards.opensuse.org/2008/06/07/toms-musings/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 10:03:53 +0000</pubDate>
		<dc:creator>Thomas Schraitle</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://lizards.opensuse.org/?p=49</guid>
		<description><![CDATA[Some time ago, I saw this posting about the new blogging platform. Well, I played with this a idea a bit and thought, this would be a good opportunity.  
So who am I? Well, I&#8217;m with SUSE (or SuSE, S.u.S.E.?) since 2000 and mainly in charge with documentation. Apart from that, I&#8217;m known to [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago, I saw <a href="http://news.opensuse.org/2008/05/07/blogging-platform-for-opensuse-launched/">this posting</a> about the new blogging platform. Well, I played with this a idea a bit and thought, this would be a good opportunity. <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>So who am I? Well, I&#8217;m with SUSE (or SuSE, S.u.S.E.?) since 2000 and mainly in charge with documentation. Apart from that, I&#8217;m known to attack heavily XML and XSLT stylesheets, to some degree I work also with Python. As you have suspected, yes, I&#8217;m also a long time DocBook user (should I say advocate?) and helped migrated our old LaTeX sources to DocBook years ago. And I love to play with typography and the like.</p>
<p>Yes, you guessed it: It&#8217;s very likely that I will write about DocBook, XML, XSLT, Python, typography and anything in between. Of course, anything what I think it interesting too.</p>
<p>Stay tuned! <img src='http://lizards.opensuse.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://lizards.opensuse.org/2008/06/07/toms-musings/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
