<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">

<channel>
	<title>Planet PLD</title>
	<link>http://planet.pld-linux.org/</link>
	<language>pl</language>
	<description>Planet PLD - http://planet.pld-linux.org/</description>

<item>
	<title>Patryk Zawadzki: Django: TestCase i testowanie szablonów</title>
	<guid>http://room-303.com/blog/?p=851</guid>
	<link>http://room-303.com/blog/2010/03/15/django-testcase-i-testowanie-szablonow/</link>
	<description>&lt;p&gt;Bardzo brzydki hack, oparty o &lt;a href=&quot;http://code.djangoproject.com/attachment/ticket/7611/7611.diff&quot;&gt;załącznik do ticketu 7611&lt;/a&gt;. Czyści wewnętrzny cache Django, ale pozwala testować działanie kodu opierającego się o renderowanie szablonów bez ryzyka, że aplikacja owe szablony nadpisze:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;
&lt;pre&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;os&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sys&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;django.conf&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;django.template&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;loader&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;django.test&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TestCase&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;TemplateTestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;_pre_setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_template_setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
        &lt;span class=&quot;nb&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_pre_setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;_post_teardown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_template_teardown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
        &lt;span class=&quot;nb&quot;&gt;super&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_post_teardown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;_template_setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;hasattr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'template_loaders'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
            &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_old_template_loaders&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_LOADERS&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_LOADERS&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;template_loaders&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;loader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;template_source_loaders&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;hasattr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'template_dirs'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
            &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_old_template_dirs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_DIRS&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;test_dir&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sys&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;modules&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;__module__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;__file__&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_DIRS&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;test_dir&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dirname&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;template_dirs&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;_template_teardown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;hasattr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'_old_template_loaders'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_LOADERS&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_old_template_loaders&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;loader&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;template_source_loaders&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;hasattr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'_old_template_dirs'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TEMPLATE_DIRS&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_old_template_dirs&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Użycie:&lt;/p&gt;
&lt;div class=&quot;highlight&quot;&gt;
&lt;pre&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;TestSomething&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;TemplateTestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;template_loaders&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'django.template.loaders.app_directories.load_template_source'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,)&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;test_foo&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;pass&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://room-303.com/blog/2010/03/15/django-testcase-i-testowanie-szablonow/&quot;&gt;Django: TestCase i testowanie szablonów&lt;/a&gt; © &lt;a href=&quot;http://room-303.com/blog/&quot; rel=&quot;cc:attributionurl&quot;&gt;Patryk Zawadzki&lt;/a&gt;, &lt;a rel=&quot;license&quot; href=&quot;http://creativecommons.org/licenses/by-nc-sa/2.5/pl/&quot;&gt;Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Poland&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;</description>
	<pubDate>Mon, 15 Mar 2010 17:03:55 +0000</pubDate>
</item>
<item>
	<title>Jacek Konieczny: Zabawa w video</title>
	<guid>http://blog.jajcus.net/2010/03/12/zabawa-w-video/</guid>
	<link>http://blog.jajcus.net/2010/03/12/zabawa-w-video/</link>
	<description>Żonka porobiła Krzysiowi trochę filmików swoją komórką i w końcu chciała to opublikować. Moim zadaniem było znaleźć coś czym się to uda obrobić… 

 Obróbką video się nigdy nie bawiłem… zobaczyłem co tam mamy w PLD. Wszystko co miało coś wspólnego z KDE odrzuciłem z góry. Znalazłem jakieś PiTiVi i Cinelerra. Poza tym wiedziałem, że i Blender (program do grafiki 3D) ma jakiś edytor video. Do testów zabrałem się na laptopie żony… raczej słabiutkim… 

 Cinelerrę odpaliłem, załadowałem jeden filmik z komórki, wcisnąłem play… zobaczyłem jak to się muli… i dałem sobie spokój. Wyglądało to też jakoś… dziwnie. 

 PiTiVi wyglądało w miarę normalnie… ale trochę trwało zanim mi się udało tam jakiś filmik załadować… okazało się, że brakowało mi wielu modułów do GStreamer'a. Gdy już wszystko działało… okazało się, że to „wszystko” to prawie nic. Skleić filmiki razem to i cat potrafi ;) 

 Został Blender. Na początku oczywiście odrzucał ten kosmiczny interfejs użytkownika. No, trzeba przyznać, że „bardzo oryginalny”… w każdym razie różny od wszystkiego co się na co dzień używa.  Jednak jak już się załapie co i jak to nie jest taki zły. I zasobów nie zżera wiele (zawsze mnie to fascynowało – Blender to jeden z niewielu programów z OpenGL, które jakoś da się bez sprzętowego wspomagania używać), i funkcji trochę ma… dla kogoś kto w obróbce video nie jest nawet amatorem to aż za wiele. 

 Trochę zabawy z tym cudem i udało się w „coś” połączyć dwa filmiki i parę zdjęć. Skorzystam z okazji i od razu  z HTML5 wypróbuję (proszę docenić, że żadnego Flasha nie potrzeba)… 


   
     
   Tu jest filmik dla tych, co mają dość nowe przeglądarki, innych zapraszam do Iki ;)
   


 Jakby ktoś pytał o muzykę, to Ika gdzieś znalazła… ja tylko wklejam gotowe „dzieło”… jakby coś ;-)</description>
	<pubDate>Fri, 12 Mar 2010 21:11:04 +0000</pubDate>
</item>
<item>
	<title>Paweł Kwiatkowski: równouprawnienie kobiet</title>
	<guid>tag:blogger.com,1999:blog-604707300970488561.post-870757551451607881</guid>
	<link>http://pozar-w-burdelu.blogspot.com/2010/03/rownouprawnienie-kobiet.html</link>
	<description>W Dzień Kobiet każdego roku powraca ożywiona dyskusja o pozycji kobiety w społeczeństwie i równouprawnieniu (a konkretnie jego braku). Moje drogie Panie, z okazji waszego święta pragnę, zakomunikować Wam, że aktualny stan utrzymuje się tylko dlatego że poza gadaniem nie robicie nic by sobie pomóc.&lt;br /&gt;&lt;br /&gt;Zacznijmy od początku, wielkim krokiem do równouprawnienia była Pierwsza Wojna Światowa. W społeczeństwach o silnie uszczuplonych zasobach mężczyzn kobiety po prostu musiały zacząć wykonywać męskie zawody. Od tamtego czasu równouprawnienie rosło, jednak nie uzyskało satysfkacjonującego poziomu.&lt;br /&gt;&lt;br /&gt;Jest jednak sposób by temu zaradzić. Zacznijmy od tego, że kobiety stanowią 52% procent społeczeństwa, zatem w krajach demokratycznych sa w stanie w wyborach wybrać na każde stanowisko Państwowe kobiety lub mężczyzn przychylnych kobietom. Tak wybrani politycy będą mogli przeforsować każde prawo, ze zmianą konstytucji włącznie. Kobiety mogły by prawnie zdyskryminować mężczyzn i wprowadzić najdziwaczniejsze ustawy jakie przyszły by im do głowy.&lt;br /&gt;&lt;br /&gt;Zatem moje drogie, nie na Manifę, ale do urn!&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/tracker/604707300970488561-870757551451607881?l=pozar-w-burdelu.blogspot.com&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</description>
	<pubDate>Mon, 08 Mar 2010 12:39:01 +0000</pubDate>
</item>
<item>
	<title>Jacek Konieczny: Wiosna się trzyma</title>
	<guid>http://blog.jajcus.net/2010/03/07/wiosna-sie-trzyma/</guid>
	<link>http://blog.jajcus.net/2010/03/07/wiosna-sie-trzyma/</link>
	<description>Słonko wyszło, to na dzisiejszy niedzielny spacerek postanowiłem wziąć aparat, żeby odwołać ogłoszone tydzień temu nadejście wiosny. Jednak, ku mojemu zdziwieniu, raczej nazbierałem materiały pokazujące, że, mimo mrozu i śniegu, wiosna miejscami wciąż się trzyma: 















 Krysia mnie dziś wyciągnęła na plac Grunwaldzki, żeby się wyszaleć na tamtejszym placu zabaw:</description>
	<pubDate>Sun, 07 Mar 2010 14:31:21 +0000</pubDate>
</item>
<item>
	<title>Aredridel Stewart: Sea Vegetable and Garlic Dressing</title>
	<guid>http://aredridel.livejournal.com/265060.html</guid>
	<link>http://aredridel.livejournal.com/265060.html</link>
	<description>1/2 cup canola oil&lt;br /&gt;2 tablespoons balsamic vinegar&lt;br /&gt;1 tablespoon lime juice&lt;br /&gt;1 tablespoon ume plum vinegar&lt;br /&gt;1 tablespoons soy sauce&lt;br /&gt;1 tablespoon kelp granules&lt;br /&gt;1 tablespoon dulse flakes&lt;br /&gt;1-2 tablespoons brown rice syrup&lt;br /&gt;4-5 cloves of garlic, chopped fine&lt;br /&gt;&lt;br /&gt;Just mix and shake. The syrup and carageenan in the kelp together make a decent emulsifier, so this separates more slowly than other vinaigrettes.</description>
	<pubDate>Sat, 06 Mar 2010 18:40:49 +0000</pubDate>
</item>

</channel>
</rss>
