<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Competition &#8220;Laugh or cry?&#8221;</title>
	<atom:link href="http://erka.kpumuk.info/development/competition-laugh-or-cry/feed/" rel="self" type="application/rss+xml" />
	<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/</link>
	<description>What logic builds, in passion is undone.</description>
	<lastBuildDate>Wed, 05 May 2010 14:19:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: exitTeam</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-14700</link>
		<dc:creator>exitTeam</dc:creator>
		<pubDate>Sat, 31 Jul 2010 23:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-14700</guid>
		<description>Hi,
As for me the best one is Dmytro Shteflyuk&#039;s example with date validation.
Btw, small addition to the leap year validation, it should be checked if it is divisible to 4, and not divisible to 100, but, if it is divisible to 400 then it is a leap year too :)

also some small todays example:

&lt;code lang=&quot;PHP&quot;&gt;ini_set(&#039;session.timeout&#039;, 28800);&lt;/code&gt;

hope you will like it :)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
As for me the best one is Dmytro Shteflyuk&#8217;s example with date validation.<br />
Btw, small addition to the leap year validation, it should be checked if it is divisible to 4, and not divisible to 100, but, if it is divisible to 400 then it is a leap year too <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>also some small todays example:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'session.timeout'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">28800</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>hope you will like it <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: COTOHA</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11912</link>
		<dc:creator>COTOHA</dc:creator>
		<pubDate>Sat, 31 Jul 2010 23:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11912</guid>
		<description>флудя в блоге ты, эрка, не остановишь волну народного гнева. обманутый народ, он, знаешь ли, беспощаден...</description>
		<content:encoded><![CDATA[<p>флудя в блоге ты, эрка, не остановишь волну народного гнева. обманутый народ, он, знаешь ли, беспощаден&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: COTOHA</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11829</link>
		<dc:creator>COTOHA</dc:creator>
		<pubDate>Sat, 31 Jul 2010 09:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11829</guid>
		<description>осталось только показать как этот SQL оптимизируется... потому как если нет, то что тут такого? просто бокс - сложный спорт и требует сложных SQL&#039;ей. :)</description>
		<content:encoded><![CDATA[<p>осталось только показать как этот SQL оптимизируется&#8230; потому как если нет, то что тут такого? просто бокс &#8211; сложный спорт и требует сложных SQL&#8217;ей. <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erka</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11814</link>
		<dc:creator>erka</dc:creator>
		<pubDate>Sat, 31 Jul 2010 00:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11814</guid>
		<description>Oooo... I have never seen a sql query like posted one.</description>
		<content:encoded><![CDATA[<p>Oooo&#8230; I have never seen a sql query like posted one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Kovyrin</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11813</link>
		<dc:creator>Alexey Kovyrin</dc:creator>
		<pubDate>Sat, 31 Jul 2010 23:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11813</guid>
		<description>While optimizing some customer application I&#039;ve found following SQL query:

&lt;code lang=&quot;sql&quot;&gt;
(SELECT
          country_code, region_name, towncity_name, venue_name, ticketing_number,
          shows.show_id, date, commission_id, locked, bouts.user, inserter,
          bouts.bout_id, rounds_scheduled, rounds_boxed, decision, bouts.division , result, time,
          boxer_a_id,
          boxer_a_weight,
          boxer_a.dob as boxer_a_dob,
          boxer_a.last_name as boxer_a_last_name,
          boxer_a.first_name as boxer_a_first_name,
          boxer_b_id,
          boxer_b_weight,
          boxer_b.dob as boxer_b_dob,
          boxer_b.last_name as boxer_b_last_name,
          boxer_b.first_name as boxer_b_first_name,
          judge1,
          jdg1_pts_a,
          jdg1_pts_b,
          judge1.last_name as judge1_last_name,
          judge1.first_name as judge1_first_name,
          judge2,
          jdg2_pts_a,
          jdg2_pts_b,
          judge2.last_name as judge2_last_name,
          judge2.first_name as judge2_first_name,
          judge3,
          jdg3_pts_a,
          jdg3_pts_b,
          judge3.last_name as judge3_last_name,
          judge3.first_name as judge3_first_name,
          referee,
          ref_pts_a,
          ref_pts_b,
          referee.last_name as referee_last_name,
          referee.first_name as referee_first_name
         FROM bouts
         JOIN shows ON bouts.show_id = shows.show_id
         JOIN venues ON shows.venue_id = venues.venue_id
         JOIN towncities ON venues.towncity_id = towncities.towncity_id
         JOIN humans AS boxer_a ON boxer_a.human_id = bouts.boxer_a_id
         JOIN humans AS boxer_b ON boxer_b.human_id = bouts.boxer_b_id
         JOIN humans AS referee ON referee.human_id = bouts.referee
         JOIN humans AS judge1 ON judge1.human_id = bouts.judge1
         JOIN humans AS judge2 ON judge2.human_id = bouts.judge2
         JOIN humans AS judge3 ON judge3.human_id = bouts.judge3
         WHERE
         (boxer_b_id = &#039;001616&#039;) AND result = &#039;SC&#039;) UNION (SELECT
          country_code, region_name, towncity_name, venue_name, ticketing_number,
          shows.show_id, date, commission_id, locked, bouts.user, inserter,
          bouts.bout_id, rounds_scheduled, rounds_boxed, decision, bouts.division , result, time,
          boxer_a_id,
          boxer_a_weight,
          boxer_a.dob as boxer_a_dob,
          boxer_a.last_name as boxer_a_last_name,
          boxer_a.first_name as boxer_a_first_name,
          boxer_b_id,
          boxer_b_weight,
          boxer_b.dob as boxer_b_dob,
          boxer_b.last_name as boxer_b_last_name,
          boxer_b.first_name as boxer_b_first_name,
          judge1,
          jdg1_pts_a,
          jdg1_pts_b,
          judge1.last_name as judge1_last_name,
          judge1.first_name as judge1_first_name,
          judge2,
          jdg2_pts_a,
          jdg2_pts_b,
          judge2.last_name as judge2_last_name,
          judge2.first_name as judge2_first_name,
          judge3,
          jdg3_pts_a,
          jdg3_pts_b,
          judge3.last_name as judge3_last_name,
          judge3.first_name as judge3_first_name,
          referee,
          ref_pts_a,
          ref_pts_b,
          referee.last_name as referee_last_name,
          referee.first_name as referee_first_name
         FROM bouts
         JOIN shows ON bouts.show_id = shows.show_id
         JOIN venues ON shows.venue_id = venues.venue_id
         JOIN towncities ON venues.towncity_id = towncities.towncity_id
         JOIN humans AS boxer_a ON boxer_a.human_id = bouts.boxer_a_id
         JOIN humans AS boxer_b ON boxer_b.human_id = bouts.boxer_b_id
         JOIN humans AS referee ON referee.human_id = bouts.referee
         JOIN humans AS judge1 ON judge1.human_id = bouts.judge1
         JOIN humans AS judge2 ON judge2.human_id = bouts.judge2
         JOIN humans AS judge3 ON judge3.human_id = bouts.judge3
         WHERE
         (boxer_a_id = &#039;001616&#039;) AND result = &#039;SC&#039;) ORDER BY date DESC;
&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>While optimizing some customer application I&#8217;ve found following SQL query:</p>
<div class="codecolorer-container sql vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; country_code<span style="color: #66cc66;">,</span> region_name<span style="color: #66cc66;">,</span> towncity_name<span style="color: #66cc66;">,</span> venue_name<span style="color: #66cc66;">,</span> ticketing_number<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shows<span style="color: #66cc66;">.</span>show_id<span style="color: #66cc66;">,</span> date<span style="color: #66cc66;">,</span> commission_id<span style="color: #66cc66;">,</span> locked<span style="color: #66cc66;">,</span> bouts<span style="color: #66cc66;">.</span>user<span style="color: #66cc66;">,</span> inserter<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bouts<span style="color: #66cc66;">.</span>bout_id<span style="color: #66cc66;">,</span> rounds_scheduled<span style="color: #66cc66;">,</span> rounds_boxed<span style="color: #66cc66;">,</span> decision<span style="color: #66cc66;">,</span> bouts<span style="color: #66cc66;">.</span>division <span style="color: #66cc66;">,</span> result<span style="color: #66cc66;">,</span> time<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a_id<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a_weight<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>dob <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_dob<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b_id<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b_weight<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>dob <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_dob<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg1_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg1_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge1_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge1_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg2_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg2_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge2_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge2_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg3_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg3_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge3_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge3_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> referee_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> referee_first_name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> bouts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> shows <span style="color: #993333; font-weight: bold;">ON</span> bouts<span style="color: #66cc66;">.</span>show_id <span style="color: #66cc66;">=</span> shows<span style="color: #66cc66;">.</span>show_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> venues <span style="color: #993333; font-weight: bold;">ON</span> shows<span style="color: #66cc66;">.</span>venue_id <span style="color: #66cc66;">=</span> venues<span style="color: #66cc66;">.</span>venue_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> towncities <span style="color: #993333; font-weight: bold;">ON</span> venues<span style="color: #66cc66;">.</span>towncity_id <span style="color: #66cc66;">=</span> towncities<span style="color: #66cc66;">.</span>towncity_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> boxer_a <span style="color: #993333; font-weight: bold;">ON</span> boxer_a<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>boxer_a_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> boxer_b <span style="color: #993333; font-weight: bold;">ON</span> boxer_b<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>boxer_b_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> referee <span style="color: #993333; font-weight: bold;">ON</span> referee<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>referee<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge1 <span style="color: #993333; font-weight: bold;">ON</span> judge1<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge2 <span style="color: #993333; font-weight: bold;">ON</span> judge2<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge3 <span style="color: #993333; font-weight: bold;">ON</span> judge3<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>boxer_b_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'001616'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> result <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'SC'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">UNION</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; country_code<span style="color: #66cc66;">,</span> region_name<span style="color: #66cc66;">,</span> towncity_name<span style="color: #66cc66;">,</span> venue_name<span style="color: #66cc66;">,</span> ticketing_number<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; shows<span style="color: #66cc66;">.</span>show_id<span style="color: #66cc66;">,</span> date<span style="color: #66cc66;">,</span> commission_id<span style="color: #66cc66;">,</span> locked<span style="color: #66cc66;">,</span> bouts<span style="color: #66cc66;">.</span>user<span style="color: #66cc66;">,</span> inserter<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bouts<span style="color: #66cc66;">.</span>bout_id<span style="color: #66cc66;">,</span> rounds_scheduled<span style="color: #66cc66;">,</span> rounds_boxed<span style="color: #66cc66;">,</span> decision<span style="color: #66cc66;">,</span> bouts<span style="color: #66cc66;">.</span>division <span style="color: #66cc66;">,</span> result<span style="color: #66cc66;">,</span> time<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a_id<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a_weight<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>dob <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_dob<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_a<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_a_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b_id<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b_weight<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>dob <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_dob<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boxer_b<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> boxer_b_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg1_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg1_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge1_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge1<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge1_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg2_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg2_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge2_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge2<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge2_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg3_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jdg3_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> judge3_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; judge3<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> judge3_first_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref_pts_a<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ref_pts_b<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">.</span>last_name <span style="color: #993333; font-weight: bold;">AS</span> referee_last_name<span style="color: #66cc66;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; referee<span style="color: #66cc66;">.</span>first_name <span style="color: #993333; font-weight: bold;">AS</span> referee_first_name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">FROM</span> bouts<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> shows <span style="color: #993333; font-weight: bold;">ON</span> bouts<span style="color: #66cc66;">.</span>show_id <span style="color: #66cc66;">=</span> shows<span style="color: #66cc66;">.</span>show_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> venues <span style="color: #993333; font-weight: bold;">ON</span> shows<span style="color: #66cc66;">.</span>venue_id <span style="color: #66cc66;">=</span> venues<span style="color: #66cc66;">.</span>venue_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> towncities <span style="color: #993333; font-weight: bold;">ON</span> venues<span style="color: #66cc66;">.</span>towncity_id <span style="color: #66cc66;">=</span> towncities<span style="color: #66cc66;">.</span>towncity_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> boxer_a <span style="color: #993333; font-weight: bold;">ON</span> boxer_a<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>boxer_a_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> boxer_b <span style="color: #993333; font-weight: bold;">ON</span> boxer_b<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>boxer_b_id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> referee <span style="color: #993333; font-weight: bold;">ON</span> referee<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>referee<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge1 <span style="color: #993333; font-weight: bold;">ON</span> judge1<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge2 <span style="color: #993333; font-weight: bold;">ON</span> judge2<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">JOIN</span> humans <span style="color: #993333; font-weight: bold;">AS</span> judge3 <span style="color: #993333; font-weight: bold;">ON</span> judge3<span style="color: #66cc66;">.</span>human_id <span style="color: #66cc66;">=</span> bouts<span style="color: #66cc66;">.</span>judge3<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #993333; font-weight: bold;">WHERE</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">&#40;</span>boxer_a_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'001616'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> result <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'SC'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> date <span style="color: #993333; font-weight: bold;">DESC</span>;</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: COTOHA</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11774</link>
		<dc:creator>COTOHA</dc:creator>
		<pubDate>Sat, 31 Jul 2010 16:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11774</guid>
		<description>At the end of the third week five finalists will be selected from all participating examples and everyone will be able to vote for the most worse code during a week (August 10 — August 16).
обман? ерка....</description>
		<content:encoded><![CDATA[<p>At the end of the third week five finalists will be selected from all participating examples and everyone will be able to vote for the most worse code during a week (August 10 — August 16).<br />
обман? ерка&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmytro Shteflyuk</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11772</link>
		<dc:creator>Dmytro Shteflyuk</dc:creator>
		<pubDate>Sat, 31 Jul 2010 14:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11772</guid>
		<description>Собственно и где же голосование? :-) Кажись провтыкали</description>
		<content:encoded><![CDATA[<p>Собственно и где же голосование? <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Кажись провтыкали</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: COTOHA</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11654</link>
		<dc:creator>COTOHA</dc:creator>
		<pubDate>Sat, 31 Jul 2010 19:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11654</guid>
		<description>такое я тоже люблю:

&lt;code lang=&quot;java&quot;&gt;if (logger.isDebugEnabled()) {
    logger.debug(&quot;Result = [&quot; + result + &quot;]&quot;);
}&lt;/code&gt;

повбивав би.</description>
		<content:encoded><![CDATA[<p>такое я тоже люблю:</p>
<div class="codecolorer-container java vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>logger.<span style="color: #006633;">isDebugEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; logger.<span style="color: #006633;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Result = [&quot;</span> <span style="color: #339933;">+</span> result <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>повбивав би.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erka</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11646</link>
		<dc:creator>erka</dc:creator>
		<pubDate>Sat, 31 Jul 2010 13:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11646</guid>
		<description>Вот вершина мастерства.. метод напрямую вызывается через web services. Интересно, какая вероятность того, что я это сломаю?

Language: &lt;em&gt;Java&lt;/em&gt;

&lt;code lang=&quot;java&quot;&gt;
    public Collection searchFreePID(String sql, String[] fields, String tableName, SearchFilter searchFilter) {
        logger.debug(&quot;#searchFreePID:enter&quot;);
        Collection result = null;
        try {
            if (tableName != null) {
                Pattern p = Pattern.compile(&quot;\\s*(SELECT\\s+)(.+)&quot;, Pattern.CASE_INSENSITIVE);
                Matcher m = p.matcher(sql);
                if (m.find()) {
                    sql = m.group(1) + OBLIGATORY_FIELDS + m.group(2);
                    StringBuffer buffer = new StringBuffer();
                    buffer.append(sql);
                    if (sql.indexOf(&quot;where&quot;) &lt; 1) {
                        buffer.append(&quot; WHERE &quot;);
                    }
                    buffer.append(&quot; pid &lt;&gt; oid and pid = &quot;);
                    if (searchFilter.getPid() != null) {
                        buffer.append(searchFilter.getPid());
                    } else {
                        buffer.append(&quot;-1&quot;);
                    }
                    sql = buffer.toString();
                    logger.debug(&quot;#sql = [&quot; + sql + &quot;]&quot;);
                    result = gFactory.selectFreeAll(sql, fields);
                }
            }
        } catch (Exception e) {
            logger.error(&quot;Exception in #searchAll&quot;, e);
        }
        if (logger.isDebugEnabled()) {
            logger.debug(&quot;Result = [&quot; + result + &quot;]&quot;);
        }
        logger.debug(&quot;#searchFreePID:exit&quot;);
        return result;
    }

&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>Вот вершина мастерства.. метод напрямую вызывается через web services. Интересно, какая вероятность того, что я это сломаю?</p>
<p>Language: <em>Java</em></p>
<div class="codecolorer-container java vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br /></div></td><td><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #003399;">Collection</span> searchFreePID<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> sql, <span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> fields, <span style="color: #003399;">String</span> tableName, SearchFilter searchFilter<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; logger.<span style="color: #006633;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#searchFreePID:enter&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003399;">Collection</span> result <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>tableName <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pattern p <span style="color: #339933;">=</span> Pattern.<span style="color: #006633;">compile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>s*(SELECT<span style="color: #000099; font-weight: bold;">\\</span>s+)(.+)&quot;</span>, Pattern.<span style="color: #006633;">CASE_INSENSITIVE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Matcher m <span style="color: #339933;">=</span> p.<span style="color: #006633;">matcher</span><span style="color: #009900;">&#40;</span>sql<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>m.<span style="color: #006633;">find</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sql <span style="color: #339933;">=</span> m.<span style="color: #006633;">group</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> OBLIGATORY_FIELDS <span style="color: #339933;">+</span> m.<span style="color: #006633;">group</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003399;">StringBuffer</span> buffer <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">StringBuffer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffer.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span>sql<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>sql.<span style="color: #006633;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;where&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffer.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; WHERE &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffer.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; pid &lt;&gt; oid and pid = &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>searchFilter.<span style="color: #006633;">getPid</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;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffer.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span>searchFilter.<span style="color: #006633;">getPid</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buffer.<span style="color: #006633;">append</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sql <span style="color: #339933;">=</span> buffer.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.<span style="color: #006633;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#sql = [&quot;</span> <span style="color: #339933;">+</span> sql <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result <span style="color: #339933;">=</span> gFactory.<span style="color: #006633;">selectFreeAll</span><span style="color: #009900;">&#40;</span>sql, fields<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&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;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.<span style="color: #006633;">error</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Exception in #searchAll&quot;</span>, e<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>logger.<span style="color: #006633;">isDebugEnabled</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.<span style="color: #006633;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Result = [&quot;</span> <span style="color: #339933;">+</span> result <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; logger.<span style="color: #006633;">debug</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#searchFreePID:exit&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: COTOHA</title>
		<link>http://erka.kpumuk.info/development/competition-laugh-or-cry/comment-page-2/#comment-11642</link>
		<dc:creator>COTOHA</dc:creator>
		<pubDate>Sat, 31 Jul 2010 11:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://erka.kpumuk.info/development/competition-laugh-or-cry/#comment-11642</guid>
		<description>ого. тяжолое детсво :) я до сих пор так кол-во дней в месяце проверяю :) а почему понравился в кавычках? если по отношению к коду я ещё кавычки пойму, то к истории... 

так. ну а критики конечно выдать могу больше я. можем проверить, если как-то формализовать правила проверки... но учти, что я их раскритикую!</description>
		<content:encoded><![CDATA[<p>ого. тяжолое детсво <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  я до сих пор так кол-во дней в месяце проверяю <img src='http://erka.kpumuk.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  а почему понравился в кавычках? если по отношению к коду я ещё кавычки пойму, то к истории&#8230; </p>
<p>так. ну а критики конечно выдать могу больше я. можем проверить, если как-то формализовать правила проверки&#8230; но учти, что я их раскритикую!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
