<?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>KLPSTN</title>
	<atom:link href="http://tobias.klpstn.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tobias.klpstn.com</link>
	<description>demystify software engineering</description>
	<pubDate>Mon, 26 May 2008 20:41:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>First german django / european dojo meeting</title>
		<link>http://tobias.klpstn.com/2008/05/26/first-german-django-european-dojo-meeting/</link>
		<comments>http://tobias.klpstn.com/2008/05/26/first-german-django-european-dojo-meeting/#comments</comments>
		<pubDate>Mon, 26 May 2008 20:30:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tobias.klpstn.com/?p=16</guid>
		<description><![CDATA[There will be two great meetups during the Linuxtag in Berlin next weekend. One is the first get-together of the django-de community and the other will be the european dojo meeting. 
The german django people will meet on friday, 30.05.2008, 17:00 (of course german time) at the main entrance of the linuxtag congress center. You [...]]]></description>
			<content:encoded><![CDATA[<p>There will be two great meetups during the <a href="http://www.linuxtag.de">Linuxtag</a> in Berlin next weekend. One is the first get-together of the <a href="http://www.django-de.org">django-de</a> community and the other will be the european dojo meeting. </p>
<p>The german django people will meet on friday, 30.05.2008, 17:00 (of course german time) at the <a href="http://www.linuxtag.org/2008/de/besucher/anreise.html">main entrance of the linuxtag</a> congress center. You can find some additional information at <a href="http://upcoming.yahoo.com/event/727108/">yahoo</a> or <a href="http://venteria.com/events/65500-Django-User-Meetup-at-Linuxtag-2008">venteria</a>. If you want to join, just leave a message in #django-de on freenode.</p>
<p>For the dojo people there will be a meetup on saturday, 31.05.2008, 15:00 at the &#8220;Weltzeituhr&#8221; on the Alexanderplatz. Details are available on <a href="http://wolfram.kriesing.de/blog/index.php/2008/dojo-meetup-europe-2008-in-berlin">wolfram&#8217;s blog</a>. Have to note, that you could also achieve one of these <a href="http://wolfram.kriesing.de/blog/index.php/2008/t-shirts-for-dojomeetup-in-berlin">cool t-shirts</a>, if you appear :-).</p>
<p>Im really excited to meet the people of these two communities in person and hope that some djangonauts are also interested to meet the dojo folk and vice-versa. It would be great, if a lot of people will join us!</p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/05/26/first-german-django-european-dojo-meeting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Range slider with dojo</title>
		<link>http://tobias.klpstn.com/2008/05/19/range-slider-with-dojo/</link>
		<comments>http://tobias.klpstn.com/2008/05/19/range-slider-with-dojo/#comments</comments>
		<pubDate>Mon, 19 May 2008 20:43:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Dojo]]></category>

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

		<guid isPermaLink="false">http://tobias.klpstn.com/?p=13</guid>
		<description><![CDATA[A range slider landed in dojo today and at the same time this is my first dojo contribution :-). This highly motivates myself to step deeper into dojo. The dojox.form.RangeSlider extends the actual dijit.form.Slider component using two instead of one slider handle. An advantage of this approach is, that the slider immediately supports snapping, intermediate [...]]]></description>
			<content:encoded><![CDATA[<p>A range slider landed in <a href="http://www.dojotoolkit.org">dojo</a> today and at the same time this is my first dojo contribution :-). This highly motivates myself to step deeper into dojo. The <em>dojox.form.RangeSlider</em> extends the actual <em>dijit.form.Slider</em> component using two instead of one slider handle. An advantage of this approach is, that the slider immediately supports snapping, intermediate changes, a11y and you can already use the rules and rule labels of the <em>dijit.form.Slider</em> and of course all the themes of dojo.</p>
<p>Here is a screenshot of the actual version of the range slider:</p>
<p><a href='http://tobias.klpstn.com/wp-content/uploads/2008/05/range_slider_screenshot.png'><img src="http://tobias.klpstn.com/wp-content/uploads/2008/05/range_slider_screenshot.png" alt="A screenshot of the range slider" title="range_slider_screenshot" width="500" class="alignleft size-medium wp-image-15" /></a></p>
<p>A usecase of this  widget could be e.g. to narrow down a list of shopping products by price or changing a timeframe of flight offers with just one form element. It would be great, if this widget soon will be extended to support more specialized needs; something like a date range slider or a date and time range slider.</p>
<p>You can <a href="http://tobias.klpstn.com/dojo1.1/dojox/form/tests/test_RangeSlider.html">visit the test page of the range slider widget</a> or read some <a href="http://trac.dojotoolkit.org/ticket/6006">detailed information in the trac-ticket #6006</a>. Or you just check out the actual version of dojo and play with it :-).</p>
<p>This blog entry shall show, how simple it is to contribute to dojo without being a dojo committer. The barrier to contribute to this amazing project is low but professional and I can say that there are several great people in the dojo team who always try to help you out. I really love the friendly and open atmosphere of the dojo project and hope more people will recognize that in the future. For myself I just can say: Let&#8217;s <a href="http://www.dojotoolkit.org">dojo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/05/19/range-slider-with-dojo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dojo rating engine with dojo.gfx</title>
		<link>http://tobias.klpstn.com/2008/02/15/dojo-rating-engine-with-dojogfx/</link>
		<comments>http://tobias.klpstn.com/2008/02/15/dojo-rating-engine-with-dojogfx/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 12:34:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Dojo]]></category>

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

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

		<guid isPermaLink="false">http://www.klpstn.com/?p=11</guid>
		<description><![CDATA[
dojo.require("dojox.gfx.geo.Star");
dojo.require("dojox.widget.RatingGfx");

Now I&#8217;ve finished this promised extended rating widget, Wolfram started. This example should demonstrate a case, where geometric forms can be combined with other widgets and how simple it is to achieve a widget using vector graphics. dojox.gfx was a great help, because it prints the appropriate vector format for you (svg/vml/canvas) and the widget [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">
dojo.require("dojox.gfx.geo.Star");
dojo.require("dojox.widget.RatingGfx");
</script><br />
Now I&#8217;ve finished this promised <a href="/?p=4">extended rating widget</a>, <a href="http://wolfram.kriesing.de">Wolfram</a> started. This example should demonstrate a case, where geometric forms can be combined with other widgets and how simple it is to achieve a widget using vector graphics. <em>dojox.gfx</em> was a great help, because it prints the appropriate vector format for you (svg/vml/canvas) and the widget now works with ie, firefox and safari. I didn&#8217;t test other browsers, but it should also work, when it supports one of the above mentioned vector formats. The next will be to extend the approach of creating more geometric forms. Maybe there are some people out there, that have the ambition helping out.</p>
<h2>And here some examples</h2>
<p>Just mousover the stars and select your rating!</p>
<h3>Example 1</h3>
<pre class="prettyprint" id="html">
&lt;div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myStar"
jags="6" radiuses="40,20,30,20" hoverColor="#FF5F00" color="white" borderWidth="1" borderColor="#000000">&lt;/div>
&lt;div style="background: white; margin-top: 10px; border: 1px dotted black;"
value="4" dojoType="dojox.widget.RatingGfx" numStars="5" gfx="myStar">&lt;/div>
</pre>
<div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myStar" jags="6" radiuses="40,20,30,20" hoverColor="#FF5F00" color="white" borderWidth="1" borderColor="#000000"></div>
<div style="background: white; margin-top: 10px; border: 1px dotted black;" value="4" dojoType="dojox.widget.RatingGfx" numStars="5" gfx="myStar"></div>
<div class="clear"/>
<h3>Example 2</h3>
<pre class="prettyprint" id="html">
&lt;div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myOtherStar"
radiuses="10,5" hoverColor="#FF5F00" color="white" borderWidth="1" borderColor="#000000">&lt;/div>
&lt;div style="background: white; border: 1px dotted black;" value="2" dojoType="dojox.widget.RatingGfx" numStars="10" gfx="myOtherStar" onChange="dojo.query('#rating0Value')[0].innerHTML = this.value&#8221;>&lt;/div>
The value is: &lt;b>&lt;span id=&#8221;rating0Value&#8221;>2&lt;/span>&lt;/b>
</pre>
<div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myOtherStar" radiuses="10,5" hoverColor="#FF5F00" color="white" borderWidth="1" borderColor="#000000"></div>
<div style="background: white; border: 1px dotted black;" value="2" dojoType="dojox.widget.RatingGfx" numStars="10" gfx="myOtherStar" onChange="dojo.query('#rating0Value')[0].innerHTML = this.value"></div>
<p>The value is: <b><span id="rating0Value">2</span></b></p>
<h3>Example 3</h3>
<pre class="prettyprint" id="html">
&lt;div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myOtherStar" hoverColor="red"
color="white" borderWidth="0">&lt;/div>
&lt;div style="background: blue; border: 1px dotted black;" value="3" dojoType="dojox.widget.RatingGfx"
numStars="7" gfx="myOtherStar">&lt;/div>
</pre>
<div style="display: none;" dojoType="dojox.gfx.geo.Star" jsId="myOtherStar" hoverColor="red" color="white" borderWidth="0"></div>
<div style="background: blue; border: 1px dotted black;" value="3" dojoType="dojox.widget.RatingGfx" numStars="7" gfx="myOtherStar"></div>
<p>Stars and stripes <img src='http://tobias.klpstn.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h2>Technical details</h2>
<p>As you see in the above examples, one star-widget is created within html and is connected via the attribute <em>jsId</em> with the defined rating widget <em>dojox.widget.RatingGfx</em>. Note, that this star widget must be hidden with <em>display:none</em>. So in later version it could be possible to put in any geometric widget. For more examples, how to define a star, see my <a href="/?p=4">previous blog entry about star widgets</a>. If someone has a better idea to loose couple two widgets, i would be happy to get some input. This was the most elegant way I&#8217;ve found out.</p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/02/15/dojo-rating-engine-with-dojogfx/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Simple image masking with PIL</title>
		<link>http://tobias.klpstn.com/2008/02/10/simple-image-masking-with-pil/</link>
		<comments>http://tobias.klpstn.com/2008/02/10/simple-image-masking-with-pil/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 09:25:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Django]]></category>

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

		<guid isPermaLink="false">http://www.klpstn.com/?p=6</guid>
		<description><![CDATA[If you ever wanted to create custom images that are all masked by a surrounding frame, here is a solution using python (using PIL instead of a system call running ImageMagick). This example illustrates, how you use png-transparency. I&#8217;m using this within django for creating special thumbnails of uploaded video files. Maybe someone feels like [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever wanted to create custom images that are all masked by a surrounding frame, here is a solution using python (using PIL instead of a system call running ImageMagick). This example illustrates, how you use png-transparency. I&#8217;m using this within django for creating special thumbnails of uploaded video files. Maybe someone feels like writing a general django template-tag for that.</p>
<pre class="prettyprint" id="python">
from PIL import Image, ImageOps, ImageFilter
# the image we want to paste in the transparent mask
background = Image.open("my_background_image.jpg")
# the mask, where we insert our image
mask = Image.open("my_mask.png")
# mask, that we overlay
frame_mask = Image.open("my_frame_mask.png")
# smooth the mask a little bit, if you want
# mask = mask.filter(ImageFilter.SMOOTH)
# resize/crop the image to the size of the mask-image
cropped_image = ImageOps.fit(background, mask.size, method=Image.ANTIALIAS)
# get the alpha-channel (used for non-replacement)
cropped_image = cropped_image.convert("RGBA")
r,g,b,a = mask.split()
# paste the frame mask without replacing the alpha mask of the mask-image
cropped_image.paste(frame_mask, mask=a)
cropped_image.save("my_generated_image.png")
</pre>
<h3>The image for the background</h3>
<p><a href='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_background_image.jpg' title='The background image we want to insert'><img src='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_background_image.thumbnail.jpg' alt='The background image we want to insert' /></a><br />
<br class="clear" /></p>
<h3>The masks</h3>
<p><a href='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_mask.png' title='Mask for inserting the image'><img src='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_mask.png' alt='Mask for inserting the image' /></a><a href='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_frame_mask.png' title='Mask for the frame'><img src='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_frame_mask.png' alt='Mask for the frame' /></a></p>
<h3>And here the resulting film strip</h3>
<p><a href='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_generated_image.png' title='The resulting film strip'><img src='http://tobias.klpstn.com/wp-content/uploads/2008/02/my_generated_image.png' alt='The resulting film strip' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/02/10/simple-image-masking-with-pil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using dojo for creating geometric forms</title>
		<link>http://tobias.klpstn.com/2008/02/07/using-dojo-for-creating-geometric-forms/</link>
		<comments>http://tobias.klpstn.com/2008/02/07/using-dojo-for-creating-geometric-forms/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 21:46:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Dojo]]></category>

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

		<guid isPermaLink="false">http://www.klpstn.com/?p=4</guid>
		<description><![CDATA[
dojo.require("dojox.gfx.geo.Star");

The whole idea emerged from Wolfram&#8217;s new dojo widget. He created a rating widget, where he uses stars for setting a vote. Because it is using images for each star, you are sticked to the size of your images and also how the images are designed. So I&#8217;ve started to code a new widget, that [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript">
dojo.require("dojox.gfx.geo.Star");
</script></p>
<p>The whole idea emerged from <a href="http://wolfram.kriesing.de">Wolfram&#8217;s </a>new dojo widget. He created a <a href="http://trac.dojotoolkit.org/ticket/5778">rating widget</a>, where he uses stars for setting a vote. Because it is using images for each star, you are sticked to the size of your images and also how the images are designed. So I&#8217;ve started to code a new widget, that is creating a star as svg/vml/canvas by using the <em>dojox.gfx</em> library. It uses some simple parameters for designing your stars. As I proceeded, I recognized, that there is no javascript-library (or I didn&#8217;t saw it :-)), that can create simple (or more complex) geometric forms with just a few input parameters. In my opinion this could be a start to design a general dojox.gfx.geo library, where a base class is defined for common usage (like hovering and basic color schema) and subclasses for each geometric form. I&#8217;m thinking of spirals, arrows, stars, hearts and emoticons.</p>
<p>Here some usage examples of this star dojo widget.</p>
<h3>First the pretty result</h3>
<div style="clear:both;">
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" borderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" radiuses="20,6,12" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" radiuses="20,5,10,5" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="3" radiuses="20" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="4" radiuses="20" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,17" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,4" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<div style="float:left; width: 40px; height: 40px; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="5" radiuses="20,17,14,17" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
</div>
<div style="clear:both;"></div>
<h3>And here the sample code</h3>
<pre class="prettyprint" id="html">
&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" borderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" radiuses="20,6,12" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" radiuses="20,5,10,5" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="3" radiuses="20" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="4" radiuses="20" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,17" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,4" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>

&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="5" radiuses="20,17,14,17" hoverColor="#FF5A00"
color="#F1F3E9" borderWidth="1" hoverBorderWidth="1">&lt;/div>
</pre>
<h3>A big star! (Try the mouseover)</h3>
<div style="height: 500px; width: 500px; float:left; padding: 10px;" dojoType="dojox.gfx.geo.Star" borderColor="black" jags="30" radiuses="250,120,200,150,120" specialHoverColor='{type: "radial", r:250, cx: 250, cy: 250, colors: [{offset: 0, color: "#FFFFFF"}, {offset: 1, color: "#FF5A00"}]}' color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
<h3>Sample code for big star</h3>
<pre class="prettyprint" id="html">
&lt;div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="30" radiuses="250,200,250,150,200" specialHoverColor='{type: "radial", r:250, cx: 250, cy: 250, colors: [{offset: 0, color: "#FFFFFF"}, {offset: 1, color: "#FF5A00"}]}&#8217; color=&#8221;#F1F3E9&#8243; borderWidth=&#8221;1&#8243; hoverBorderWidth=&#8221;1&#8243;>&lt;/div>
</pre>
<p>The next step would be using this star widget within the above mentioned rating-engine. Maybe someone else has a better recommendation, where to use this kind of geometric forms within other widgets.</p>
<p>Here you can download an early version of this star widget:</p>
<p><a href='http://www.klpstn.com/wp-content/uploads/2008/02/star.js' title='First draft of the geometric star widget'>First draft of the geometric star widget</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/02/07/using-dojo-for-creating-geometric-forms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Startup</title>
		<link>http://tobias.klpstn.com/2008/02/06/startup/</link>
		<comments>http://tobias.klpstn.com/2008/02/06/startup/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 22:12:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.klpstn.com/?p=3</guid>
		<description><![CDATA[I&#8217;m planning to start my own blog since about 3 years. Now I&#8217;ve found the time to do so and I hope it will soon be filled with several helping issues concerning software engineering. At the moment I&#8217;m concentrating on python and javascript development, using the server framework django and the client-side framework dojo. At [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m planning to start my own blog since about 3 years. Now I&#8217;ve found the time to do so and I hope it will soon be filled with several helping issues concerning software engineering. At the moment I&#8217;m concentrating on python and javascript development, using the server framework <a href="http://www.djangoproject.com/">django</a> and the client-side framework <a href="http://www.dojotoolkit.org">dojo</a>. At times there also will be some recommendations of netlabel music (mainly electronic). Maybe there are some geeks out there, who appreciate that.</p>
]]></content:encoded>
			<wfw:commentRss>http://tobias.klpstn.com/2008/02/06/startup/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
