<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>mGz developer blog</title>
	
	<link>http://blog.mmx3.pl</link>
	<description>right alt user, google maps guru, ajax, php</description>
	<lastBuildDate>Sun, 22 Jan 2012 21:09:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MgzDeveloperBlog" /><feedburner:info uri="mgzdeveloperblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>PHP Tips n’ Tricks</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/2t7Wo4k4_X4/</link>
		<comments>http://blog.mmx3.pl/2012/01/22/php-tips-n-tricks/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 21:09:10 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Symfony 2.0]]></category>
		<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[tips n' tricks]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=317</guid>
		<description><![CDATA[Doskonała prezentacja Radosława Benkela dotyczą trików, które można wykorzystać w codziennej pracy z kodem php. PHP Tips &#38; Tricks View more presentations from Radosław Benkel]]></description>
			<content:encoded><![CDATA[<p>Doskonała prezentacja Radosława Benkela dotyczą trików, które można wykorzystać w codziennej pracy z kodem php.</p>
<div style="width:425px" id="__ss_10628104"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/singlespl/php-tips-tricks" title="PHP Tips &amp; Tricks" target="_blank">PHP Tips &amp; Tricks</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/10628104" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/singlespl" target="_blank">Radosław Benkel</a> </div>
</p></div>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/2t7Wo4k4_X4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2012/01/22/php-tips-n-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2012/01/22/php-tips-n-tricks/</feedburner:origLink></item>
		<item>
		<title>Symfony 1.4 w chmurze</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/uWEUW2RpvwY/</link>
		<comments>http://blog.mmx3.pl/2011/11/20/symfony-1-4-w-chmurze/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 15:16:29 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Symfony 1.4]]></category>
		<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[Amazon RDS]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[php 5]]></category>
		<category><![CDATA[symfony 1.4]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=313</guid>
		<description><![CDATA[Znalazłem doskonałą prezentacje autorstwa Krisa Wallsmitha dotyczącą uruchamiania symfony 1.4 w chmurze Amazonu. Opisuje ona: implementacje doctrine 1.2 na Amazon RDS, zarządzanie sesją na Amazon EC2, Upload Plików na Amazon S3, konfigurację środowiska na lokalne środowisko developerskie, deployment projektu do cloud&#8217;a. W sieci nie ma wiele przykładów co do tego typu implementacji symfony 1.4. Więc [...]]]></description>
			<content:encoded><![CDATA[<p>Znalazłem doskonałą prezentacje autorstwa <a href="http://www.slideshare.net/kriswallsmith" target="_blank">Krisa Wallsmitha</a> dotyczącą uruchamiania symfony 1.4 w chmurze Amazonu. Opisuje ona:</p>
<ul>
<li>implementacje doctrine 1.2 na <a href="http://aws.amazon.com/rds/" title="Amazon RDS" target="_blank">Amazon RDS</a>,</li>
<li>zarządzanie sesją na <a href="http://aws.amazon.com/ec2/" title="Amazon EC2" target="_blank">Amazon EC2</a>,</li>
<li>Upload Plików na <a href="http://aws.amazon.com/s3/" title="Amazon S3" target="_blank">Amazon S3</a>,</li>
<li>konfigurację środowiska na lokalne środowisko developerskie,</li>
<li>deployment projektu do cloud&#8217;a.</li>
</ul>
<p>W sieci nie ma wiele przykładów co do tego typu implementacji symfony 1.4. Więc uważam tę prezentacje jako cenne znalezisko. </p>
<div style="width:425px" id="__ss_3209080"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud" title="Symfony in the Cloud" target="_blank">Symfony in the Cloud</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/3209080" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/kriswallsmith" target="_blank">Kris Wallsmith</a> </div>
</p></div>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/uWEUW2RpvwY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/11/20/symfony-1-4-w-chmurze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/11/20/symfony-1-4-w-chmurze/</feedburner:origLink></item>
		<item>
		<title>Doctrine: Tworzenie tabel w utf-8</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/gjmv-ak4Vv4/</link>
		<comments>http://blog.mmx3.pl/2011/11/10/doctrine-tworzenie-tabel-w-utf-8/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 22:24:00 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[bez kategorii]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=293</guid>
		<description><![CDATA[Problem: Po zbudowaniu projektu symfony nie wyświetlają się na stronie polskie znaki znaki diakrytyczne. Diagnoza: Gdy serwer MySQL ma w domyślnej konfiiguracji charset Latin-2 oraz porównywanie jest również domyślnie ustalone na Latin-2, a my wykonamy php symfony doctrine:build --all --and-load --no-confirmation To dostaniemy piękną bazę danych na domyślnych ustawieniach. I przy wyświetlaniu polskich znaków diakrytycznych będą [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<blockquote><p>Po zbudowaniu projektu symfony nie wyświetlają się na stronie polskie znaki znaki diakrytyczne.</p></blockquote>
<p><strong>Diagnoza:</strong></p>
<p>Gdy serwer MySQL ma w domyślnej konfiiguracji charset Latin-2 oraz porównywanie jest również domyślnie ustalone na Latin-2, a my wykonamy</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php symfony doctrine:build <span style="color: #660033;">--all</span> <span style="color: #660033;">--and-load</span> <span style="color: #660033;">--no-confirmation</span></pre></div></div>

<p>To dostaniemy piękną bazę danych na domyślnych ustawieniach. I przy wyświetlaniu polskich znaków diakrytycznych będą wyskakiwały krzaki. By uchronić się przed taką sytuacją.</p>
<p><strong>Rozwiązanie:</strong></p>
<p>Należy zmodyfikować wszystkie tabele w schemacie (schema.yml) o dodatkowe opcje:</p>

<div class="wp_syntax"><div class="code"><pre class="yaml" style="font-family:monospace;">Tabela:
  columns:
    kolumna_1: {type: string(255)}
    kolumna_2: {type: clob}
  options:
    type: MyISAM
    collate: utf8_unicode_ci
    charset: utf8</pre></div></div>

<p>Options pozwala na ustalenie silnika MyISAM / InnoDB oraz metody porównań i kodowania znaków, o które nam chodzi.</p>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/gjmv-ak4Vv4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/11/10/doctrine-tworzenie-tabel-w-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/11/10/doctrine-tworzenie-tabel-w-utf-8/</feedburner:origLink></item>
		<item>
		<title>Mały fail po migracji.</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/s5xEREE8hHs/</link>
		<comments>http://blog.mmx3.pl/2011/11/10/maly-fail-po-migracji/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 22:10:46 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[czas wolny]]></category>
		<category><![CDATA[Webdevelopment]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=302</guid>
		<description><![CDATA[Od 22.10 blog był niedostępny dla czytelników. Ponieważ miała miejsce przeprowadzka na nowy serwer (linuxpl.com). Generator subdomen w panelu zostawił mi index.html w głównym katalogu Vhosta i tak oto ruch nie był kierowany na index.php W produkcji są 4 wpisy na tematy związane z Doctrine: Doctrine: behaviour NestedSet Doctrine: Tworzenie tabel w utf-8 Doctrine: uruchamianie [...]]]></description>
			<content:encoded><![CDATA[<p>Od 22.10 blog był niedostępny dla czytelników. Ponieważ miała miejsce przeprowadzka na nowy serwer (<a href="http://linuxpl.com/" target="_blank">linuxpl.com</a>). Generator subdomen w panelu zostawił mi index.html w głównym katalogu Vhosta i tak oto ruch nie był kierowany na index.php</p>
<p>W produkcji są 4 wpisy na tematy związane z Doctrine:</p>
<ul>
<li>Doctrine: behaviour NestedSet</li>
<li>Doctrine: Tworzenie tabel w utf-8</li>
<li>Doctrine: uruchamianie dodatkowych zapytań po build</li>
<li>Doctrine: behaviour geographical</li>
</ul>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/s5xEREE8hHs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/11/10/maly-fail-po-migracji/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/11/10/maly-fail-po-migracji/</feedburner:origLink></item>
		<item>
		<title>Optymalizowanie ilości Http requestów</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/R1GGg-7AyUE/</link>
		<comments>http://blog.mmx3.pl/2011/02/24/optymalizowanie-ilosci-http-requestow/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 22:18:25 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Optymalizacja]]></category>
		<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=221</guid>
		<description><![CDATA[Jednym ze sposobów na optymalizacje ilości requestów do strony, oraz zmniejszenie ilości przesyłanych danych z serwera jest łączenie i kompresowanie plików ze skryptami java script. Jest to możliwe gdy przeglądarka obsługuje taki format skompresowanych plików js. Musimy postępować w trzech krokach. Pierwszy z nich polega na utworzeniu reguł w pliku .htaccess by przekierowywać js na [...]]]></description>
			<content:encoded><![CDATA[<p>Jednym ze sposobów na optymalizacje ilości requestów do strony, oraz zmniejszenie ilości przesyłanych danych z serwera jest łączenie i kompresowanie plików ze skryptami java script. Jest to możliwe gdy przeglądarka obsługuje taki format skompresowanych plików js.</p>
<p><span id="more-221"></span>Musimy postępować w trzech krokach. Pierwszy z nich polega na utworzeniu reguł w pliku .htaccess by przekierowywać js na pliki js.gz, gdy przeglądarka obsługuje kompresje gzip. Natomiast kolejny krok polega na utworzeniu zbioru archiwów naszych skryptów by obniżyć wielkość transferu. Na dokładkę możemy połączyć wszystkie główne skrypty, które ładują się na każdej stronie w jedno duże archiwum.</p>
<p>By wyszukać wszystkie pliki js i skompresować je wystarczy że użyjemy prostej pętli for</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> js <span style="color: #660033;">-type</span> f \<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #660033;">-name</span> \<span style="color: #000000; font-weight: bold;">*</span>.js \<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #000000; font-weight: bold;">`</span>;
  <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;Generating <span style="color: #007800;">$file</span>.gz<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$file</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$file</span>.gz
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>W zbiorze na którym działa pętla wywołujemy polecenie find i wyszukujemy wszystki plików katalogu zdefiniowanym na sztywno ( w naszym przypadku js/ )</p>
<p>By połączyć główne skrypty w jedno duże archiwum posłużymy się listą plików zapisaną w pliku tekstowym, z której będziemy odczytywać linia po linii kolejne pliki do połączenia.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> = <span style="color: #ff0000;">&quot;--help&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot; &quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
  <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;$2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">outputfile</span>=<span style="color: #ff0000;">&quot;js/merged/$2&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span>  <span style="color: #ff0000;">&quot;--merging files -- <span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
    <span style="color: #007800;">jslist</span>=<span style="color: #ff0000;">&quot;$1.txt&quot;</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$jslist</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
      <span style="color: #007800;">index</span>=<span style="color: #000000;">0</span>
      <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$outputfile</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;Deleting existing merged file<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
        <span style="color: #c20cb9; font-weight: bold;">unlink</span> <span style="color: #007800;">$outputfile</span>
      <span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #007800;">$outputfile</span>
      <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
      <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> line ; <span style="color: #000000; font-weight: bold;">do</span>
        <span style="color: #666666; font-style: italic;">#MYARRAY[$index]=&quot;$line&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;Merging: <span style="color: #007800;">$line</span> <span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$line</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
          <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$line</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$outputfile</span>
        <span style="color: #000000; font-weight: bold;">else</span>
          <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;ERROR: File <span style="color: #007800;">$line</span> does not exists<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
        <span style="color: #000000; font-weight: bold;">fi</span>
        <span style="color: #007800;">index</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$index</span>+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #007800;">$jslist</span>       <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-fc</span> <span style="color: #007800;">$outputfile</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$outputfile</span>.gz
      <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;SUCCESS: Generated: <span style="color: #007800;">$outputfile</span>.gz <span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\r</span>&quot;</span>
    <span style="color: #000000; font-weight: bold;">else</span>
      <span style="color: #7a0874; font-weight: bold;">echo</span>  <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;ERROR&quot;</span>
      <span style="color: #7a0874; font-weight: bold;">exit</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
  <span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">&quot;ERROR: Parameter expected  try --help to get help&quot;</span>
  <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p><strong>Kroki algorytmu:</strong></p>
<ol>
<li>Sprawdzamy czy user wpisał &#8211;help. Jeżeli tak to wyświetlamy pomoc. W przeciwnym wypadku idź do kroku 2.</li>
<li>Definiujemy plik wyjściowy oraz listę plików do połączenia</li>
<li>Jeżeli istnieje plik z listą przejdź do kroku 4. W przeciwnym wypadku wyświetl błąd.</li>
<li>Jeżeli istnieje plik wyjściowy to usuń plik w przeciwnym wypadku utwórz pusty plik wyjściowy.</li>
<li>Dopóki read line z pliku $jslist, to  jeżeli plik źródłowy istnieje, to jego zawartość przekaż do pliku wyjściowego.  W przeciwnym wypadku wyświetl błąd</li>
<li>Spakuj plik wyjściowy</li>
</ol>
<p><strong>Konfiguracja .htaccess</strong><br />
By zmniejszyć transfer możemy wymusić na apache&#8217;u aby wysyłał pliki js skompresowane, jeżeli przeglądarka akceptuje skompresowane javascripty.</p>
<pre>&lt;IfModule mod_headers.c&gt;
&lt;FilesMatch "\.js.gz$"&gt;
ForceType text/javascript
Header set Content-Encoding: gzip
&lt;/FilesMatch&gt;
&lt;/IfModule&gt;
&lt;IfModule mod_rewrite.c&gt;
  RewriteCond %{HTTP:Accept-Encoding} gzip
  RewriteCond %{REQUEST_URI} \.js$
  RewriteCond %{REQUEST_FILENAME}.gz -f
  RewriteRule (.*)$ $1\.gz [L,QSA]
&lt;/IfModule&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/R1GGg-7AyUE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/02/24/optymalizowanie-ilosci-http-requestow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/02/24/optymalizowanie-ilosci-http-requestow/</feedburner:origLink></item>
		<item>
		<title>SQLSTATE[HY000]: General error: 1005 Can’t create table</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/tk0aQafZn8Y/</link>
		<comments>http://blog.mmx3.pl/2011/02/22/sqlstatehy000-general-error-1005-cant-create-table/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 09:40:42 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[doctrine]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Webdevelopment]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=252</guid>
		<description><![CDATA[Jeżeli przy próbie wywołania polecenia: $symfony doctrine:insert-sql Wyskakuje Ci błąd SQLSTATE[HY000]: General error: 1005 Can't create table 'TwojaBazaDanych.#sql-6c_2d' (errno: 121) To znaczy że mysql nie może utworzyć relacji między obiektami, z trywialnego powodu pole klucza obcego jest różnego typu od pola powiązanego w lokalnej tabeli. Np: INT =&#62; BIGINT Doctrine jako domyślny typ na Primiary [...]]]></description>
			<content:encoded><![CDATA[<p>Jeżeli przy próbie wywołania polecenia:</p>
<pre>$symfony doctrine:insert-sql</pre>
<p>Wyskakuje Ci błąd</p>
<pre>SQLSTATE[HY000]: General error: 1005 Can't create table 'TwojaBazaDanych.#sql-6c_2d' (errno: 121)
</pre>
<p>To znaczy że mysql nie może  utworzyć relacji między obiektami, z trywialnego powodu pole klucza obcego jest różnego typu od pola powiązanego w lokalnej tabeli.</p>
<p><span id="more-252"></span><br />
Np:</p>
<pre> INT =&gt; BIGINT</pre>
<p>Doctrine jako domyślny typ na Primiary Key wybiera integer(8) czyli BIGINT. Zatem jeśli zdefiniowałeś klucz obcy w schemacie obiektu o innej wielkości Integera To nie zadziała.</p>
<table>
<thead>
<tr>
<td><strong>schema.yml</strong></td>
<td><strong>typ w MySQl</strong></td>
<td><strong>typ w PostgreSQL</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>integer</td>
<td>integer</td>
<td>int/serial</td>
</tr>
<tr>
<td>integer(1)</td>
<td>tinyint</td>
<td>smallint/serial</td>
</tr>
<tr>
<td>integer(2)</td>
<td>smallint</td>
<td>smallint/serial</td>
</tr>
<tr>
<td>integer(3)</td>
<td>mediumint</td>
<td>int/serial</td>
</tr>
<tr>
<td>integer(4)</td>
<td>int</td>
<td>int/serial</td>
</tr>
<tr>
<td>integer(5)</td>
<td>bigint</td>
<td>bigint/bigserial</td>
</tr>
</tbody>
</table>
<p>Jeżeli po poprawkach schematu (config/doctrine/schema.yml) i przeprowadzeniu operacji:</p>
<pre>$symfony doctrine:build --model
$symfony doctrine:build --sql
$symfony doctrine:insert-sql
</pre>
<p>Jesteś pewien że błędów już nie ma w schemacie a w phpMyAdminie pola nie są identyczne. To polecam:</p>
<pre>DROP DATABASE TwojaBazaDanych;
CREATE DATABASE TwojaBazaDanych;
</pre>
<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/tk0aQafZn8Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/02/22/sqlstatehy000-general-error-1005-cant-create-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/02/22/sqlstatehy000-general-error-1005-cant-create-table/</feedburner:origLink></item>
		<item>
		<title>Java Szyfrowanie DES/ECB/NoPadding</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/XFvsCcuOtAM/</link>
		<comments>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbnopadding/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:19:44 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[kryptografia]]></category>
		<category><![CDATA[uczelnia]]></category>
		<category><![CDATA[DES]]></category>
		<category><![CDATA[Szyfrowanie]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=246</guid>
		<description><![CDATA[package list1; &#160; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.Arrays; &#160; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.KeyGenerator; import javax.crypto.NoSuchPaddingException; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; &#160; public class CW1 &#123; public static byte&#91;&#93; getKey&#40;int bytes&#41; throws NoSuchAlgorithmException&#123; KeyGenerator kGen = KeyGenerator.getInstance&#40;&#34;DES&#34;&#41;; byte&#91;&#93; key = new byte&#91;bytes&#93;; int i = 0; while&#40;i &#60; bytes&#41;&#123; kGen.init&#40;56&#41;; SecretKey sKey [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">list1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.InvalidKeyException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.NoSuchAlgorithmException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Arrays</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.BadPaddingException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.Cipher</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.IllegalBlockSizeException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.KeyGenerator</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.NoSuchPaddingException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.SecretKey</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.spec.SecretKeySpec</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CW1 <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> getKey<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> bytes<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">NoSuchAlgorithmException</span><span style="color: #009900;">&#123;</span>
		KeyGenerator kGen <span style="color: #339933;">=</span> KeyGenerator.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> key <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span>bytes<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">int</span> i <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">while</span><span style="color: #009900;">&#40;</span>i <span style="color: #339933;">&lt;</span> bytes<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			kGen.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">56</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
			SecretKey sKey <span style="color: #339933;">=</span> kGen.<span style="color: #006633;">generateKey</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> rawKey <span style="color: #339933;">=</span> sKey.<span style="color: #006633;">getEncoded</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> j <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#40;</span>j <span style="color: #339933;">&lt;</span> rawKey.<span style="color: #006633;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;</span><span style="color: #009900;">&#40;</span>j<span style="color: #339933;">+</span>i <span style="color: #339933;">&lt;</span> key.<span style="color: #006633;">length</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				key<span style="color: #009900;">&#91;</span>j<span style="color: #339933;">+</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> rawKey<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			i <span style="color: #339933;">=</span> i <span style="color: #339933;">+</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">return</span> key<span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">NoSuchAlgorithmException</span>,
			NoSuchPaddingException, <span style="color: #003399;">InvalidKeyException</span>,
			IllegalBlockSizeException, BadPaddingException <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">/*
		 * długość wiadomość musi być podzielna przez 8
		 * żeby można było użyć NoPadding
		 */</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> input <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;WiadomoscDoZakodowania!!&quot;</span>.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> encrypted <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> decrypted <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
		KeyGenerator kGen <span style="color: #339933;">=</span> KeyGenerator.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		SecretKey sKey <span style="color: #339933;">=</span> kGen.<span style="color: #006633;">generateKey</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> keyBytes <span style="color: #339933;">=</span> sKey.<span style="color: #006633;">getEncoded</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		Cipher cipher <span style="color: #339933;">=</span> Cipher.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DES/ECB/NoPadding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		cipher.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span>Cipher.<span style="color: #006633;">ENCRYPT_MODE</span>, <span style="color: #000000; font-weight: bold;">new</span> SecretKeySpec<span style="color: #009900;">&#40;</span>keyBytes, <span style="color: #0000ff;">&quot;DES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		encrypted <span style="color: #339933;">=</span> cipher.<span style="color: #006633;">doFinal</span><span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		cipher.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span>Cipher.<span style="color: #006633;">DECRYPT_MODE</span>, <span style="color: #000000; font-weight: bold;">new</span> SecretKeySpec<span style="color: #009900;">&#40;</span>keyBytes, <span style="color: #0000ff;">&quot;DES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		decrypted <span style="color: #339933;">=</span> cipher.<span style="color: #006633;">doFinal</span><span style="color: #009900;">&#40;</span>encrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		print<span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		print<span style="color: #009900;">&#40;</span>encrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		print<span style="color: #009900;">&#40;</span>decrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Arrays</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>input, decrypted<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> print<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> b<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Length: &quot;</span> <span style="color: #339933;">+</span> b.<span style="color: #006633;">length</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;---------------&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/XFvsCcuOtAM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbnopadding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbnopadding/</feedburner:origLink></item>
		<item>
		<title>Java szyfrowanie AES/ECB/PKCS5Padding</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/9skXeR82kGc/</link>
		<comments>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-aesecbpkcs5padding/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:18:17 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[kryptografia]]></category>
		<category><![CDATA[uczelnia]]></category>
		<category><![CDATA[AES]]></category>
		<category><![CDATA[Szyfrowanie]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=244</guid>
		<description><![CDATA[package list1; &#160; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.Arrays; &#160; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.KeyGenerator; import javax.crypto.NoSuchPaddingException; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; &#160; public class CW2 &#123; &#160; public static void main&#40;String&#91;&#93; args&#41; throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException &#123; byte&#91;&#93; input = &#34;Wiadomosc do zakodowania!&#34;.getBytes&#40;&#41;; &#160; KeyGenerator kGen = KeyGenerator.getInstance&#40;&#34;AES&#34;&#41;; kGen.init&#40;128&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">list1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.InvalidKeyException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.NoSuchAlgorithmException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Arrays</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.BadPaddingException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.Cipher</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.IllegalBlockSizeException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.KeyGenerator</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.NoSuchPaddingException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.SecretKey</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.spec.SecretKeySpec</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CW2 <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">NoSuchAlgorithmException</span>,
			NoSuchPaddingException, <span style="color: #003399;">InvalidKeyException</span>,
			IllegalBlockSizeException, BadPaddingException <span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> input <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Wiadomosc do zakodowania!&quot;</span>.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		KeyGenerator kGen <span style="color: #339933;">=</span> KeyGenerator.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;AES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		kGen.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		SecretKey sKey <span style="color: #339933;">=</span> kGen.<span style="color: #006633;">generateKey</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> rawKey <span style="color: #339933;">=</span> sKey.<span style="color: #006633;">getEncoded</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		SecretKeySpec sKeySpec <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SecretKeySpec<span style="color: #009900;">&#40;</span>rawKey, <span style="color: #0000ff;">&quot;AES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">// algorytm AES, tryb ECB, dopełnianie w PCKS#5</span>
		Cipher cipher <span style="color: #339933;">=</span> Cipher.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;AES/ECB/PKCS5Padding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		cipher.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span>Cipher.<span style="color: #006633;">ENCRYPT_MODE</span>, sKeySpec<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> encrypted <span style="color: #339933;">=</span> cipher.<span style="color: #006633;">doFinal</span><span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		cipher.<span style="color: #006633;">init</span><span style="color: #009900;">&#40;</span>Cipher.<span style="color: #006633;">DECRYPT_MODE</span>, sKeySpec<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> decrypted <span style="color: #339933;">=</span> cipher.<span style="color: #006633;">doFinal</span><span style="color: #009900;">&#40;</span>encrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		print<span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		print<span style="color: #009900;">&#40;</span>encrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		print<span style="color: #009900;">&#40;</span>decrypted<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//		System.out.println(MessageDigest.isEqual(input, decrypted));</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Arrays</span>.<span style="color: #006633;">equals</span><span style="color: #009900;">&#40;</span>input, decrypted<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> print<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">String</span><span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Length: &quot;</span> <span style="color: #339933;">+</span> b.<span style="color: #006633;">length</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;---------------&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/9skXeR82kGc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-aesecbpkcs5padding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-aesecbpkcs5padding/</feedburner:origLink></item>
		<item>
		<title>Java Szyfrowanie DES/ECB/SKCS5Padding</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/2B7LtUdZApo/</link>
		<comments>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbskcs5padding/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 16:15:55 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[kryptografia]]></category>
		<category><![CDATA[uczelnia]]></category>
		<category><![CDATA[DES]]></category>
		<category><![CDATA[Szyfrowanie]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=242</guid>
		<description><![CDATA[package main; &#160; import java.security.NoSuchAlgorithmException; &#160; import javax.crypto.Cipher; import javax.crypto.NoSuchPaddingException; import javax.crypto.spec.SecretKeySpec; &#160; public class Main &#123; public static void main&#40;String args&#91;&#93;&#41; &#123; &#160; try &#123; &#160; byte&#91;&#93; teskJawny = &#34;Teskt jawny&#34;.getBytes&#40;&#41;; &#160; byte&#91;&#93; klucz = &#34;klucz&#34;.getBytes&#40;&#41;; &#160; System.out.println&#40;XORCoderToString&#40;XORcoder&#40;teskJawny, klucz&#41;, klucz&#41;&#41;; &#160; &#160; &#160; &#160; byte&#91;&#93; keyBytes = null; SecretKeySpec key = new SecretKeySpec&#40;keyBytes,&#34;DES&#34;&#41;; &#160; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">main</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.security.NoSuchAlgorithmException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.Cipher</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.NoSuchPaddingException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.crypto.spec.SecretKeySpec</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> args<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> teskJawny <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Teskt jawny&quot;</span>.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> klucz <span style="color: #339933;">=</span>     <span style="color: #0000ff;">&quot;klucz&quot;</span>.<span style="color: #006633;">getBytes</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>XORCoderToString<span style="color: #009900;">&#40;</span>XORcoder<span style="color: #009900;">&#40;</span>teskJawny, klucz<span style="color: #009900;">&#41;</span>, klucz<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> keyBytes <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
		SecretKeySpec key <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SecretKeySpec<span style="color: #009900;">&#40;</span>keyBytes,<span style="color: #0000ff;">&quot;DES&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
			Cipher szyfr <span style="color: #339933;">=</span> Cipher.<span style="color: #006633;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DES/ECB/SKCS5Padding&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">NoSuchAlgorithmException</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// TODO Auto-generated catch block</span>
			e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span>NoSuchPaddingException e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// TODO Auto-generated catch block</span>
			e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Metoda wykonuje operacje XOR na podanych tablicach i zwraca wynik w nowej tablicy 
	 * @param msg tablica wiadomosci
	 * @param key tablica klucza
	 * @return tablica po operacji XOR
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> XORcoder<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> msg, <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> key<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> ret <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span>msg.<span style="color: #006633;">length</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
		<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>msg.<span style="color: #006633;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
			ret<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">^</span>key<span style="color: #009900;">&#91;</span>i<span style="color: #339933;">%</span>key.<span style="color: #006633;">length</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">return</span> ret<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * Metoda wykonuje operacje XOR i zwraca wynik w postaci tekstu
	 * @param msg testk do operacji XOR
	 * @param key klucza do operacji XOR
	 * @return teskt otrzymany po operacji XOR
	 */</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #003399;">String</span> XORCoderToString<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> msg, <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> key<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		StringBuilder sb<span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> StringBuilder<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> tmp <span style="color: #339933;">=</span>  XORcoder<span style="color: #009900;">&#40;</span>msg, key<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">byte</span> b <span style="color: #339933;">:</span> tmp<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			sb.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">char</span><span style="color: #009900;">&#41;</span>b<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #000000; font-weight: bold;">return</span> sb.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/2B7LtUdZApo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbskcs5padding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2011/02/13/java-szyfrowanie-desecbskcs5padding/</feedburner:origLink></item>
		<item>
		<title>WordPress dodawanie postów do facebook’a (facebook share)</title>
		<link>http://feedproxy.google.com/~r/MgzDeveloperBlog/~3/KjeO8mdEln4/</link>
		<comments>http://blog.mmx3.pl/2010/11/29/wordpress-dodawanie-postow-do-facebooka-facebook-share/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 21:06:04 +0000</pubDate>
		<dc:creator>Max Małecki</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.mmx3.pl/?p=236</guid>
		<description><![CDATA[Najprostszym sposobem by dołączyć możliwość podzielenia się postem na facebook&#8217;u jest instalacja wtyczki np. ShereThis. Jednak jeżeli nie chcemy nadmiernie obciążać WordPressa dodatkowymi pluginami i ładującym się trzy dni javascriptem. Można to zrobić w template. Wybór należy do Ciebie czy dodasz poniższy w pliku index.php, by link do udostępniania na FB był widoczny na stronie [...]]]></description>
			<content:encoded><![CDATA[<p>Najprostszym sposobem by dołączyć możliwość podzielenia się postem na facebook&#8217;u jest instalacja wtyczki np. ShereThis.</p>
<p>Jednak jeżeli nie chcemy nadmiernie obciążać WordPressa dodatkowymi pluginami i ładującym się trzy dni javascriptem. Można to zrobić w template.</p>
<p><span id="more-236"></span></p>
<p>Wybór należy do Ciebie czy dodasz poniższy w pliku index.php, by link do udostępniania na FB był widoczny na stronie głównej z postami  czy też w single.php.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.facebook.com/sharer.php?u=&amp;amp;t=&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span>
Podziel się na facebook<span style="color: #339933;">.</span>com
<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Kod ten należy umieścić w głównej pętli:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;post-id&quot;&gt;
&lt;h2&gt;&lt;a title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;entry&quot;&gt;
&lt;a href=&quot;http://www.facebook.com/sharer.php?u=&amp;amp;t=&quot; target=&quot;_blank&quot;&gt;Podziel się na facebook.com&lt;/a&gt;
&lt;/div&gt;</pre></div></div>

<img src="http://feeds.feedburner.com/~r/MgzDeveloperBlog/~4/KjeO8mdEln4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.mmx3.pl/2010/11/29/wordpress-dodawanie-postow-do-facebooka-facebook-share/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.mmx3.pl/2010/11/29/wordpress-dodawanie-postow-do-facebooka-facebook-share/</feedburner:origLink></item>
	</channel>
</rss>

