<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Artur's Blog &#187; Uncategorized</title>
	<atom:link href="http://artur.marnik.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://artur.marnik.net</link>
	<description>past, present and future in web development</description>
	<lastBuildDate>Tue, 04 Oct 2011 14:37:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to set up your own Postfix server on Debian</title>
		<link>http://artur.marnik.net/how-to-set-up-your-own-postfix-server-on-debian/</link>
		<comments>http://artur.marnik.net/how-to-set-up-your-own-postfix-server-on-debian/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 02:47:50 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://artur.marnik.net/?p=41</guid>
		<description><![CDATA[I have many problems with sending an emails from my hosting provider.
Sometimes email just get to the spam folder and<a href="http://artur.marnik.net/how-to-set-up-your-own-postfix-server-on-debian/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I have many problems with sending an emails from my hosting provider.<br />
Sometimes email just get to the spam folder and user never gets it. If it was an important email it is a big problem.</p>
<p>I have purchased a VPS with my own dedicated IP address just to create a SMTP server.<br />
My server is on Debian 5.0 and I have chosen Postfix as my mail server.<br />
Installation is as easy as &#8220;apt-get install postfix&#8221;.</p>
<p>Everything worked as expected (I have followed few online tutorials) and I got my server up and running with small exception &#8211; I WASN&#8217;T ABLE TO SEND EMAILS <img src='http://artur.marnik.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I kept getting errors:</p>
<p>Sep  3 02:55:49 debian postfix/qmgr[22990]: 68BB22B125: from=&lt;sender@mail.myserver.com&gt;, size=621, nrcpt=1 (queue active)<br />
Sep  3 02:56:19 debian postfix/smtp[23055]: connect to gmail.com[xxx.xxx.xxx.xxx]:25: Connection timed out<br />
Sep  3 02:56:19 debian postfix/smtp[23055]: 68BB22B125: to=&lt;user@gmail.com&gt;, relay=none, delay=1010, delays=980/0.02/30/0, dsn=4.4.1, status=deferred (connect to gmail.com[xxx.xxx.xxx.xxx]:25: Connection timed out)</p>
<p>It took me few hours of research and dozen of different configuration tests etc but solution was as easy as setting:</p>
<p>disable_dns_lookups = no</p>
<p>in /etc/postfix/main.cf</p>
<p>hope it help someone and saves you a lot of time</p>
]]></content:encoded>
			<wfw:commentRss>http://artur.marnik.net/how-to-set-up-your-own-postfix-server-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jak przekonwertowa? baz? danych z ogonkami na UTF8</title>
		<link>http://artur.marnik.net/jak-przekonwertowac-baze-danych-z-ogonkami-na-utf8/</link>
		<comments>http://artur.marnik.net/jak-przekonwertowac-baze-danych-z-ogonkami-na-utf8/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 03:01:09 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://artur.marnik.net/?p=26</guid>
		<description><![CDATA[Podczas tworzenia jednego z moich serwisów (www.rabatek.pl) pope?ni?em bardzo du?y b??d: zaraz po ustanowieniu po??czenia do bazy nie zmieni?em kodowania<a href="http://artur.marnik.net/jak-przekonwertowac-baze-danych-z-ogonkami-na-utf8/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Podczas tworzenia jednego z moich serwisów (<a href="http://www.rabatek.pl" target="_blank">www.rabatek.pl</a>) pope?ni?em bardzo du?y b??d: zaraz po ustanowieniu po??czenia do bazy nie zmieni?em kodowania na UTF8 (domy?lnie bylo latin1). Wszystko przez to ?e po raz pierwszy postanowi?em skorzysta? z klasy PEAR::MDB2 i mi to umkn??o.</p>
<p>W ka?dym b?d? razie strona ju? sobie istnieje kilka miesi?cy i wszystko super dzia?a &#8211; do czasu. W wersji beta przerobi?em wyszukiwark? i okaza?o si?, ?e jak wpisz? np. &#8220;Wroc?aw&#8221; to nic nie znajduje &#8211; wszystko przez te piekielne ogonki. Baza ma ju? w tej chwili kilka tysi?cy rekordów wi?c r?czne poprawianie odpada ca?kowicie.</p>
<p>Z pomoc? przyszed? bardzo prosty skrypt PHP. Napisa?em go w 15 minut i nie ma w nim kontroli b??dów, komentarzy itp &#8211; po prostu wykonuje swoj? robot? i tyle.</p>
<p>Postanowi?em si? tym skryptem z wami podzieli? gdy? wiem ?e nie tylko ja mam problem z ogonkami.</p>
<p>Uwagi i komentarze mile widziane</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_HOST'</span><span style="color: #339933;">,</span>              <span style="">'twoje_ip'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_USER'</span><span style="color: #339933;">,</span>               <span style="">'user_do_bazy'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_PASS'</span><span style="color: #339933;">,</span>               <span style="">'haslo_do_bazy'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_NAME'</span><span style="color: #339933;">,</span>               <span style="">'nazwa_bazy'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_CHARSET'</span><span style="color: #339933;">,</span>            <span style="">'UTF8'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_NAMES'</span><span style="color: #339933;">,</span>               <span style="">'UTF8'</span><span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="">'DB_COLLATION'</span><span style="color: #339933;">,</span>         <span style="">'utf8_general_ci'</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> chars_translate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000088;">$org_letters</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'Ä…'</span><span style="color: #339933;">,</span><span style="">'Ä‡'</span><span style="color: #339933;">,</span><span style="">'Ä™'</span><span style="color: #339933;">,</span><span style="">'Å‚'</span><span style="color: #339933;">,</span><span style="">'Å„'</span><span style="color: #339933;">,</span><span style="">'Ã³'</span><span style="color: #339933;">,</span><span style="">'Å›'</span><span style="color: #339933;">,</span><span style="">'Åº'</span><span style="color: #339933;">,</span><span style="">'Å¼'</span><span style="color: #339933;">,</span><span style="">'Ä„'</span><span style="color: #339933;">,</span><span style="">'Ä†'</span><span style="color: #339933;">,</span><span style="">'Ä˜'</span><span style="color: #339933;">,</span><span style="">'Å'</span><span style="color: #339933;">,</span><span style="">'Åƒ'</span><span style="color: #339933;">,</span><span style="">'Ã“'</span><span style="color: #339933;">,</span><span style="">'Åš'</span><span style="color: #339933;">,</span><span style="">'Å¹'</span><span style="color: #339933;">,</span><span style="">'Å»'</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000088;">$utf8_letters</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'ó'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'Ó'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #339933;">,</span><span style="">'?'</span><span style="color: #009900;">&#41;</span>;;
    <span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$org_letters</span><span style="color: #339933;">,</span> <span style="color: #000088;">$utf8_letters</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$string</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span>DB_HOST<span style="color: #339933;">,</span> DB_USER<span style="color: #339933;">,</span> DB_PASS<span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;error connection to the database: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span>DB_NAME<span style="color: #339933;">,</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;error selecting a database: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$tables</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">// odczytaj wszystkie tabele</span>
<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SHOW TABLE STATUS &quot;</span>;
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="">'Comment'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="">'VIEW'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$tables</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="">'Name'</span><span style="color: #009900;">&#93;</span>;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// pobierz dane ze starych tabeli</span>
<span style="color: #000088;">$records</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tables</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$table</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * FROM &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span>;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000088;">$records</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color:#800080;">0</span>;
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&amp;</span>gt; <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$records</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> chars_translate<span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span>;
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$i</span>++;
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// ustaw poprawne kodowanie</span>
<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET CHARACTER SET &quot;</span><span style="color: #339933;">.</span>DB_CHARSET<span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET NAMES &quot;</span><span style="color: #339933;">.</span>DB_NAMES<span style="color: #009900;">&#41;</span>;
<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET collation_connection = &quot;</span><span style="color: #339933;">.</span>DB_COLLATION<span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #666666; font-style: italic;">// stworz nowe tabele i wypelnij je danymi</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tables</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$table</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;CREATE TABLE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;_new LIKE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span>;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$records</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">continue</span>;
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$columns</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array_keys</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$records</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color:#800080;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;INSERT INTO &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;_new (&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$columns</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;) VALUES &quot;</span>;
&nbsp;
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$records</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$query</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;('&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;','&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'),&quot;</span>;
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color:#800080;">0</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #666666; font-style: italic;">// skasuj stara tabele</span>
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;DROP TABLE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span>;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #666666; font-style: italic;">// zmien nazwe tabeli</span>
    <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;RENAME TABLE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;_new TO &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span>;
    <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span>;
&nbsp;
    <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;gotowy &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$table</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
    <span style="color: #990000;">flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;KONIEC<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://artur.marnik.net/jak-przekonwertowac-baze-danych-z-ogonkami-na-utf8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Cytrynowka&#8221; Polish Lemon Vodka</title>
		<link>http://artur.marnik.net/cytrynowka-polish-lemon-vodka/</link>
		<comments>http://artur.marnik.net/cytrynowka-polish-lemon-vodka/#comments</comments>
		<pubDate>Tue, 19 May 2009 02:31:08 +0000</pubDate>
		<dc:creator>Artur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cytrynowka]]></category>
		<category><![CDATA[lemon]]></category>
		<category><![CDATA[vodka]]></category>

		<guid isPermaLink="false">http://artur.marnik.net/?p=18</guid>
		<description><![CDATA[I was supposed to write about web development but recently I found my old recipe on how to make your<a href="http://artur.marnik.net/cytrynowka-polish-lemon-vodka/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I was supposed to write about web development but recently I found my old recipe on how to make your own &#8216;cytrynowka&#8217;. All you need is:</p>
<ul>
<li>1L 190 proof alcohol (I use EVERCLEAR <em>190 PROOF</em> GRAIN ALCOHOL)</li>
<li>8-10 lemons (depends on size)</li>
<li>1.5 cups of sugar</li>
<li>little bit of salt</li>
<li>1L of water</li>
</ul>
<p>- Ok so to start you have to wash lemons and cut off the ends (and throw them away). Cut all lemons into the pieces (about 1/4 &#8211; 1/2 inch in size).</p>
<p>- Put lemon pieces into the metal bowl or pot, add sugar, salt and one cup of water. <strong>Add Everclear.</strong> Squeeze the lemons very well and leave like that for about 2 hours (don&#8217;t forget because it will become bitter if you keep it to long)</p>
<p>- soak and remove lemon pieces, filter everything (use gauze pads to filter out even the smallest pieces of lemon). Add 3 glasses of water</p>
<p>- in about 2-3 days filter everything again</p>
<p>- 5 days later it is ready to drink <img src='http://artur.marnik.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  best served chilled in shot glasses <img src='http://artur.marnik.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://artur.marnik.net/cytrynowka-polish-lemon-vodka/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

