<?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>marpeta &#187; tech</title>
	<atom:link href="http://marpeta.lt/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://marpeta.lt</link>
	<description>Searching for the answer to Life, the Universe, and Everything</description>
	<lastBuildDate>Mon, 23 Aug 2010 20:24:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='marpeta.lt' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>vz.lt skaitymo ribojimų ignoravimas</title>
		<link>http://marpeta.lt/2010/03/vz-lt-skaitymo-ribojimu-ignoravimas/</link>
		<comments>http://marpeta.lt/2010/03/vz-lt-skaitymo-ribojimu-ignoravimas/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:47:20 +0000</pubDate>
		<dc:creator>kraupu</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[vz]]></category>

		<guid isPermaLink="false">http://marpeta.lt/?p=1271</guid>
		<description><![CDATA[Kaip  teko pastebėti, Verslo Žinių svetainė visai neseniai priėmė nepopuliarų sprendimą visas VZ.LT galimybes leisti tik registruotiems vartotojams. Kadangi iki šiol pasiekdavo nenutrūkstamas naujienų agentūros informacijos srautas, visai nepasigesdavau vz.lt kasdienių naujienų. Laikai pasikeitė, kai kurie kraneliai užsisuko, atsivėrė plačios galimbės, bet dabar dažniau ir į vz.lt tenka užsukti. Paskaitinėjus kelias naujienas, išlenda skaitymą ribojantis [...]]]></description>
			<content:encoded><![CDATA[<p>Kaip  teko pastebėti, Verslo Žinių svetainė visai neseniai priėmė nepopuliarų sprendimą <a target="_blank" href="http://vz.lt/straipsnis/2010/01/31/Visos_VZ_LT_galimybes_nuo_siol_-_tik_registruotiems_var2" >visas VZ.LT galimybes leisti tik registruotiems vartotojams</a>. Kadangi iki šiol pasiekdavo nenutrūkstamas naujienų agentūros informacijos srautas, visai nepasigesdavau vz.lt kasdienių naujienų.</p>
<p>Laikai pasikeitė, kai kurie kraneliai užsisuko, atsivėrė plačios galimbės, bet dabar dažniau ir į vz.lt tenka užsukti. Paskaitinėjus kelias naujienas, išlenda skaitymą ribojantis ir registruoti skatinantis pranešimas:</p>
<p style="text-align: center;"><a href="http://marpeta.lt/wp-content/uploads/2010/03/marpeta_20100304_vz_article_register.jpg"  rel="lightbox[1271]"><img class="aligncenter size-medium wp-image-1278" title="marpeta_20100304_vz_article_register" src="http://marpeta.lt/wp-content/uploads/2010/03/marpeta_20100304_vz_article_register-300x178.jpg" alt="" width="300" height="178" /></a></p>
<p>Kaip bebūtų keista, bet tai &#8211; tik paprastas CSS priemonėmis pateikiamas &#8220;juodulys&#8221;, apeinamas kol kas visai paprastai.</p>
<p><span id="more-1271"></span></p>
<p>Taigi, jeigu naudojate Firefox naršyklę su <a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/748" >Greasemonkey</a> pluginsu, tai galima pasirašyti kelių eilučių scriptą, ignoruojanti vz.lt registravimąsi, pakeičiantį kai kuriuos sausainėlius ir leidžiantį matyti tekstą.</p>
<h3><strong>Reikalavimai</strong></h3>
<ul>
<li>Firefox</li>
<li><a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/748" >Greasemonkey</a></li>
<li><a href="http://marpeta.lt/project/vzrestignore/vzRestrictionIgnore.user.js" >vzRestrictionIgnore.user.js</a> scriptas</li>
</ul>
<h3>Naudojimasis</h3>
<ul>
<li>Įsitikinate, kad naudojate Firefox, o <a target="_blank" href="https://addons.mozilla.org/en-US/firefox/addon/748" >Greasemonkey</a> yra aktyvus,</li>
<li>atsidarote <a href="http://marpeta.lt/project/vzrestignore/vzRestrictionIgnore.user.js" >vzRestrictionIgnore.user.js</a> skriptą,</li>
<li>instaliuojate šį skriptą (turi atsirasti atitinkami pranešimai),</li>
<li>kelis kartus atnaujinate vz.lt straipsnį.</li>
</ul>
<p>That&#8217;s it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://marpeta.lt/2010/03/vz-lt-skaitymo-ribojimu-ignoravimas/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MySQL trick with set of values using IN()</title>
		<link>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/</link>
		<comments>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 19:43:18 +0000</pubDate>
		<dc:creator>kraupu</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://marpeta.lt/?p=799</guid>
		<description><![CDATA[Atsiprašau, mielieji lietuviškieji skaitytojai, bet šitas įrašas yra skirtas specifinei vartotojų grupei, todėl bus parašytas anglų kalba. Ačiū ir iki :) I just want to mention really simple issue with set of values in MySQL5 because I managed to get trapped by this simple issue for couple of hours trying to understand why the result [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-style: italic;">Atsiprašau, mielieji lietuviškieji skaitytojai, bet šitas įrašas yra skirtas specifinei vartotojų grupei, todėl bus parašytas anglų kalba. Ačiū ir iki :)</span></p>
<p><span id="more-799"></span></p>
<hr />I just want to mention really simple issue with set of values in MySQL5 because I managed to get trapped by this simple issue for couple of hours trying to understand why the result in couple of lines of code is so weird. When I managed to figure it out I sent this simple trick to couple of colleagues and they couldn&#8217;t come with the solution in a matter of minutes so I thought that it would be interesting to mention it and let google index it for others.</p>
<p>To make this short, simple and interesting let&#8217;s try playing the game.</p>
<p>If there was <em>&#8220;What Geek Wants to be a Millionaire&#8221;</em> then this could go for the last question. You know the pressure and all could take couple of minutes to figure the answer out :)</p>
<h3>Questions</h3>
<p>So, here it goes. We have three simple MySQLv5 queries executed on default MySQL configuration. You have to give the result for these three simple queries.</p>
<p><strong>1</strong>:</p>
<pre>SELECT ('mysql' IN (0)) AS '@result';</pre>
<p><strong>2</strong>:</p>
<pre>SELECT ('mysql' IN (1)) AS 'result';</pre>
<p><strong>3</strong>:</p>
<pre>SELECT ('mysql' IN ('sql')) AS result;</pre>
<p>If you know the answer so you could find the trick very quickly and you&#8217;re the winner of &#8220;Who Wants to be a Millionaire&#8221; :)</p>
<h3>Answers</h3>
<p>The answers are quite simple as queries. Here it goes:</p>
<p><strong>1</strong>. The problem with the first query is that <strong><em>&#8216;mysql&#8217;</em></strong> is of string type and <strong><em>0</em></strong> is numeric and there has to be type casting. So string <strong><em>&#8216;mysql&#8217;</em></strong> is casted into numeric <strong><em>0</em></strong> and now we have query where we want to find <strong><em>0</em></strong> in set of only one value and that value is <strong><em>0</em></strong>:</p>
<pre>SELECT (0 IN (0))</pre>
<p>So the result will be <strong><em>1</em></strong>:</p>
<pre>mysql&gt; SELECT ('mysql' IN (0)) AS '@result';
+---------+
| @result |
+---------+
|       1 |
+---------+
1 row in set, 1 warning (0.01 sec)</pre>
<pre>mysql&gt; SHOW WARNINGS;
+---------+------+-------------------------------------------+
| Level   | Code | Message                                   |
+---------+------+-------------------------------------------+
| Warning | 1292 | Truncated incorrect DOUBLE value: 'mysql' |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)</pre>
<p><strong>2</strong>. As I explained in the first example the query could be translated into:</p>
<pre>SELECT (0 IN (1))</pre>
<p>So the result will be <em><strong>0</strong></em>.</p>
<p><strong>3</strong>. This query is just for those newbies that don&#8217;t know MySQL&#8217;s <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_in" >IN()</a> :) The answer unquestionably is <em><strong>0</strong></em>.</p>
<p>So the first query was with the trick and I hope that there would be couple of people that will save ton of time trying to debug some similar query to first example.</p>
]]></content:encoded>
			<wfw:commentRss>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL trick with set of values using IN()</title>
		<link>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/</link>
		<comments>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 19:43:18 +0000</pubDate>
		<dc:creator>kraupu</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://marpeta.lt/?p=799</guid>
		<description><![CDATA[Atsiprašau, mielieji lietuviškieji skaitytojai, bet šitas įrašas yra skirtas specifinei vartotojų grupei, todėl bus parašytas anglų kalba. Ačiū ir iki :) I just want to mention really simple issue with set of values in MySQL5 because I managed to get trapped by this simple issue for couple of hours trying to understand why the result [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-style: italic;">Atsiprašau, mielieji lietuviškieji skaitytojai, bet šitas įrašas yra skirtas specifinei vartotojų grupei, todėl bus parašytas anglų kalba. Ačiū ir iki :)</span></p>
<p><span id="more-799"></span></p>
<hr />I just want to mention really simple issue with set of values in MySQL5 because I managed to get trapped by this simple issue for couple of hours trying to understand why the result in couple of lines of code is so weird. When I managed to figure it out I sent this simple trick to couple of colleagues and they couldn&#8217;t come with the solution in a matter of minutes so I thought that it would be interesting to mention it and let google index it for others.</p>
<p>To make this short, simple and interesting let&#8217;s try playing the game.</p>
<p>If there was <em>&#8220;What Geek Wants to be a Millionaire&#8221;</em> then this could go for the last question. You know the pressure and all could take couple of minutes to figure the answer out :)</p>
<h3>Questions</h3>
<p>So, here it goes. We have three simple MySQLv5 queries executed on default MySQL configuration. You have to give the result for these three simple queries.</p>
<p><strong>1</strong>:</p>
<pre>SELECT ('mysql' IN (0)) AS '@result';</pre>
<p><strong>2</strong>:</p>
<pre>SELECT ('mysql' IN (1)) AS 'result';</pre>
<p><strong>3</strong>:</p>
<pre>SELECT ('mysql' IN ('sql')) AS result;</pre>
<p>If you know the answer so you could find the trick very quickly and you&#8217;re the winner of &#8220;Who Wants to be a Millionaire&#8221; :)</p>
<h3>Answers</h3>
<p>The answers are quite simple as queries. Here it goes:</p>
<p><strong>1</strong>. The problem with the first query is that <strong><em>&#8216;mysql&#8217;</em></strong> is of string type and <strong><em>0</em></strong> is numeric and there has to be type casting. So string <strong><em>&#8216;mysql&#8217;</em></strong> is casted into numeric <strong><em>0</em></strong> and now we have query where we want to find <strong><em>0</em></strong> in set of only one value and that value is <strong><em>0</em></strong>:</p>
<pre>SELECT (0 IN (0))</pre>
<p>So the result will be <strong><em>1</em></strong>:</p>
<pre>mysql&gt; SELECT ('mysql' IN (0)) AS '@result';
+---------+
| @result |
+---------+
|       1 |
+---------+
1 row in set, 1 warning (0.01 sec)</pre>
<pre>mysql&gt; SHOW WARNINGS;
+---------+------+-------------------------------------------+
| Level   | Code | Message                                   |
+---------+------+-------------------------------------------+
| Warning | 1292 | Truncated incorrect DOUBLE value: 'mysql' |
+---------+------+-------------------------------------------+
1 row in set (0.00 sec)</pre>
<p><strong>2</strong>. As I explained in the first example the query could be translated into:</p>
<pre>SELECT (0 IN (1))</pre>
<p>So the result will be <em><strong>0</strong></em>.</p>
<p><strong>3</strong>. This query is just for those newbies that don&#8217;t know MySQL&#8217;s <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_in" >IN()</a> :) The answer unquestionably is <em><strong>0</strong></em>.</p>
<p>So the first query was with the trick and I hope that there would be couple of people that will save ton of time trying to debug some similar query to first example.</p>
]]></content:encoded>
			<wfw:commentRss>http://marpeta.lt/2009/03/mysql-trick-with-set-of-values-using-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TWiT technologiniai podcastai</title>
		<link>http://marpeta.lt/2007/07/twit-technology-podcasts/</link>
		<comments>http://marpeta.lt/2007/07/twit-technology-podcasts/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 09:57:42 +0000</pubDate>
		<dc:creator>kraupu</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://marius.php.lt/blog/index.php/2007/07/06/twit-technology-podcasts/</guid>
		<description><![CDATA[Dabar vis dar ant bangos (bent jau JAV) plaukiantys podcast&#8217;ai turi kelias įdomias savybes: visų pirma, jų įvairovė leidžia atrasti kelis įdomesnius podcastus konkrečiai nuotaikai ar užsiėmimui (šiuo atveju mums aktualiausi technologiniai podcastai), na, o visų antra, tai jie turi savybę labai greitai nusibosti. Po to seka kelios savaitės ar mėnesiai jų ignoravimo, bet galiausiai [...]]]></description>
			<content:encoded><![CDATA[<p>Dabar vis dar ant bangos (bent jau JAV) plaukiantys podcast&#8217;ai turi kelias įdomias savybes: visų pirma, jų įvairovė leidžia atrasti kelis įdomesnius podcastus konkrečiai nuotaikai ar užsiėmimui (šiuo atveju mums aktualiausi technologiniai podcastai), na, o visų antra, tai jie turi savybę labai greitai nusibosti. Po to seka kelios savaitės ar mėnesiai jų ignoravimo, bet galiausiai vėl prie jų sugrįžti.</p>
<p><span id="more-430"></span></p>
<p>Tapo labai tapo įprasta kelis podcastus apjungti į vieną tinklą. <a target="_blank" href="http://www.twit.tv/" >TWiT tinklas</a> apjungia krūvą įvairiausių technologinių podcast&#8217;ų, o viso tinklo tėveliu vadinamas Leo Laporte, amerikiečių žemėje žinomas iš įvairių televizinių laidų apie technologijas. Populiariausias TWiT podcastas — <a target="_blank" href="http://www.twit.tv/TWiT" >„this WEEK in TECH“</a>. Jame pats L. Laporte su John C. Dvorak (atsimenu, mano laikais šio autoriaus straipsniukai seniau būdavo spausdinami ir lietuviškame NMK žurnalėlyje) ir kitais aptaria įdomiausius savaitės įvykius technologijų pasaulyje.</p>
<p>Kyla klausimas, ar jų paistalai yra aktualūs lietuviškai ausiai? Manau, kad taip, nes lietuviai gyvena ne bananų respublikoje, kurioje niekas neturi ir nesidaugoja internetu.  Priėjimas prie technologijų yra galimas, gyvename Web 2.0 idėjos amžiuje, o ši idėja nėra svetima ir Lietuvoje (wikiai, blogai ir t.t.). Klausydamas paskutinių TWiT įrašų nepajutau, kad kalbėtų apie visiškus kosmosus.</p>
<p>Kitame podcaste „FLOSS Weekly“ kalbinami žymūs prie OpenSource produktų rankas prikišę asmenys. Seniai išleistoje podcasto „FLOSS Weekly“ dalyje galima rasti <a target="_blank" href="http://www.twit.tv/floss12" >interviu su PHP autoriumi Rasmusu Lerdorfu</a>. Interviu dar kartą primena jau ir taip žinomus php sukūrimo faktus, tačiau gyvame pokalbyje atsiskleidžia dar krūva įvairiausių detalių apie PHP kūrimą.</p>
]]></content:encoded>
			<wfw:commentRss>http://marpeta.lt/2007/07/twit-technology-podcasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TWiT technologiniai podcastai</title>
		<link>http://marpeta.lt/2007/07/twit-technology-podcasts/</link>
		<comments>http://marpeta.lt/2007/07/twit-technology-podcasts/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 09:57:42 +0000</pubDate>
		<dc:creator>kraupu</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://marius.php.lt/blog/index.php/2007/07/06/twit-technology-podcasts/</guid>
		<description><![CDATA[Dabar vis dar ant bangos (bent jau JAV) plaukiantys podcast&#8217;ai turi kelias įdomias savybes: visų pirma, jų įvairovė leidžia atrasti kelis įdomesnius podcastus konkrečiai nuotaikai ar užsiėmimui (šiuo atveju mums aktualiausi technologiniai podcastai), na, o visų antra, tai jie turi savybę labai greitai nusibosti. Po to seka kelios savaitės ar mėnesiai jų ignoravimo, bet galiausiai [...]]]></description>
			<content:encoded><![CDATA[<p>Dabar vis dar ant bangos (bent jau JAV) plaukiantys podcast&#8217;ai turi kelias įdomias savybes: visų pirma, jų įvairovė leidžia atrasti kelis įdomesnius podcastus konkrečiai nuotaikai ar užsiėmimui (šiuo atveju mums aktualiausi technologiniai podcastai), na, o visų antra, tai jie turi savybę labai greitai nusibosti. Po to seka kelios savaitės ar mėnesiai jų ignoravimo, bet galiausiai vėl prie jų sugrįžti.</p>
<p><span id="more-430"></span></p>
<p>Tapo labai tapo įprasta kelis podcastus apjungti į vieną tinklą. <a target="_blank" href="http://www.twit.tv/" >TWiT tinklas</a> apjungia krūvą įvairiausių technologinių podcast&#8217;ų, o viso tinklo tėveliu vadinamas Leo Laporte, amerikiečių žemėje žinomas iš įvairių televizinių laidų apie technologijas. Populiariausias TWiT podcastas — <a target="_blank" href="http://www.twit.tv/TWiT" >„this WEEK in TECH“</a>. Jame pats L. Laporte su John C. Dvorak (atsimenu, mano laikais šio autoriaus straipsniukai seniau būdavo spausdinami ir lietuviškame NMK žurnalėlyje) ir kitais aptaria įdomiausius savaitės įvykius technologijų pasaulyje.</p>
<p>Kyla klausimas, ar jų paistalai yra aktualūs lietuviškai ausiai? Manau, kad taip, nes lietuviai gyvena ne bananų respublikoje, kurioje niekas neturi ir nesidaugoja internetu.  Priėjimas prie technologijų yra galimas, gyvename Web 2.0 idėjos amžiuje, o ši idėja nėra svetima ir Lietuvoje (wikiai, blogai ir t.t.). Klausydamas paskutinių TWiT įrašų nepajutau, kad kalbėtų apie visiškus kosmosus.</p>
<p>Kitame podcaste „FLOSS Weekly“ kalbinami žymūs prie OpenSource produktų rankas prikišę asmenys. Seniai išleistoje podcasto „FLOSS Weekly“ dalyje galima rasti <a target="_blank" href="http://www.twit.tv/floss12" >interviu su PHP autoriumi Rasmusu Lerdorfu</a>. Interviu dar kartą primena jau ir taip žinomus php sukūrimo faktus, tačiau gyvame pokalbyje atsiskleidžia dar krūva įvairiausių detalių apie PHP kūrimą.</p>
]]></content:encoded>
			<wfw:commentRss>http://marpeta.lt/2007/07/twit-technology-podcasts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
