<?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>I can see what you see not &#187; Tips &amp; Tricks</title>
	<atom:link href="http://radumicu.info/blog/category/world-wide-web/tipstricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://radumicu.info/blog</link>
	<description>Just another WordPress blogger with a deviant mind...</description>
	<lastBuildDate>Sat, 14 Aug 2010 20:55:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Photoshop Bottom shadow effect &#8211; The easy way</title>
		<link>http://radumicu.info/blog/2010/02/24/photoshop-bottom-shadow-effect-the-easy-way/</link>
		<comments>http://radumicu.info/blog/2010/02/24/photoshop-bottom-shadow-effect-the-easy-way/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 19:30:34 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Effect]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[shadows]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=1020</guid>
		<description><![CDATA[Ever wanted to add a bottom shadow effect to some elements, shapes or images in Photoshop in just a few easy steps? Well actually is quite easy to do something like this and you don&#8217;t have to be an expert. The main design advantage that bottom shadow effects have is that it will give you [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Ever  wanted to add a bottom shadow effect to some elements, shapes or images in Photoshop in  just a few easy steps? Well actually is quite easy to do something like  this and you don&#8217;t have to be an expert.</p>
<p style="text-align: justify;">The main design advantage that bottom shadow effects have is that it will  give you the impression of deepness to your content and elements.</p>
<p>Here is  the desired effect</p>

<a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-1b.png" title="Photoshop Bottom shadow effect – The easy way" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'singlepic220' })" >
	<img class="ngg-singlepic ngg-center" src="http://radumicu.info/blog/index.php?callback=image&amp;pid=220&amp;width=320&amp;height=240&amp;mode=" alt="ps-bottom-shadow-effect-1b" title="ps-bottom-shadow-effect-1b" />
</a>

<h2></h2>
<h2>Step 1  &#8211; Open your image / document</h2>
<p>Open  your document or image in Photoshop and create a new Layer right after  your main Layer. In this layer we will add the bottom shadow effect and  because the new layer is positioned right after our main one it will  display in the back without overlapping the main layer&#8230;</p>
<p><span id="more-1020"></span></p>
<div class="wp-caption aligncenter" style="width: 278px"><a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-2.png"><img title="Bottom Shadow Effect" src="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-2.png" alt="bottom shadow effect" width="268" height="199" /></a><p class="wp-caption-text">Add a new layer</p></div>
<p style="text-align: center;">
<h2>Step 2  &#8211; Foreground color and  Brush</h2>
<p>Set  your foreground color to black so we can <em>paint</em> our bottom shadow</p>
<p style="text-align: center;"><a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-3.png"><img class="aligncenter" title="bottom shadow effect" src="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-3.png" alt="bottom shadow effect" width="43" height="178" /></a></p>
<p style="text-align: center;">
<p style="text-align: justify;">Now select your Brush Tool (<img title="photoshop brush tool" src="http://radumicu.info/blog/wp-content/uploads/2010/02/photoshop-brush-tool.png" alt="photoshop brush tool" width="26" height="23" />) and from the brush preset picker select a soft brush. And set  the diameter to be a little smaller than the shadow size you want to add.</p>
<div class="wp-caption aligncenter" style="width: 378px"><a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-4.png"><img title="bottom shadow effect" src="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-4.png" alt="bottom shadow effect" width="368" height="436" /></a><p class="wp-caption-text">Select a soft brush</p></div>
<p style="text-align: center;">
<p style="text-align: justify;">Click once just below the shape to which you want to add shadow. Try to add the brushed point right on the middle of your shape. Like this:</p>
<p style="text-align: justify;">
<a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-5.png" title="Photoshop Bottom shadow effect – The easy way" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'singlepic216' })" >
	<img class="ngg-singlepic ngg-center" src="http://radumicu.info/blog/index.php?callback=image&amp;pid=216&amp;width=320&amp;height=240&amp;mode=" alt="ps-bottom-shadow-effect-5" title="ps-bottom-shadow-effect-5" />
</a>
</p>
<h2>Step 3  &#8211; Bottom shadow using Motion Blur</h2>
<p style="text-align: justify;">Now using the <strong><em>Motion Blur Filter</em></strong> we will create our bottom shadow. So go to Filter » Blur » Motion Blur and from the properties pane that appears make sure your motion angle is set to 0 (horizontal) and in my example I have set a 90 pixels Distance but you can set a lower value depending of your shape size. In most cases 90 pixels will do the job just fine. After the settings are set press OK to apply the effect.</p>
<p style="text-align: justify;">
<a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-6.png" title="Photoshop Bottom shadow effect – The easy way" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'singlepic217' })" >
	<img class="ngg-singlepic ngg-left" src="http://radumicu.info/blog/index.php?callback=image&amp;pid=217&amp;width=320&amp;height=240&amp;mode=" alt="ps-bottom-shadow-effect-6" title="ps-bottom-shadow-effect-6" />
</a>
</p>
<p style="text-align: justify;">
<a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-7.png" title="Photoshop Bottom shadow effect – The easy way" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'singlepic218' })" >
	<img class="ngg-singlepic ngg-center" src="http://radumicu.info/blog/index.php?callback=image&amp;pid=218&amp;width=320&amp;height=240&amp;mode=" alt="ps-bottom-shadow-effect-7" title="ps-bottom-shadow-effect-7" />
</a>
</p>
<p style="text-align: justify;">Now to complete the effect press <strong>CTRL + F</strong> 2 or 3 times to re-apply the blur motion effect. Bottom shadow effect is added to your shape or image.</p>
<p style="text-align: justify;">Now the end result looks quite good and very neat on your shape or image. Using this method you can add bottom shadow effects to virtually everything in Photoshop, it takes just a little practice to master the settings <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but the results could be quite interesting and nice to use in your designs.</p>
<div class="wp-caption aligncenter" style="width: 524px"><a href="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-8.png"><img title="bottom shadow effect" src="http://radumicu.info/blog/wp-content/gallery/photoshop-bottom-shadow-effect/ps-bottom-shadow-effect-8.png" alt="bottom shadow effect" width="514" height="515" /></a><p class="wp-caption-text">The end result after the Motion Blur effect</p></div>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2010/02/24/photoshop-bottom-shadow-effect-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Locul de munca &#8211; Putin mai ergonomic</title>
		<link>http://radumicu.info/blog/2010/01/25/locul-de-munca-putin-mai-ergonomic/</link>
		<comments>http://radumicu.info/blog/2010/01/25/locul-de-munca-putin-mai-ergonomic/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:00:36 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Life-Hacker]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ergonomics]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=916</guid>
		<description><![CDATA[In speranta ca marea majoritatea dintre voi petrec foarte mult timp in fata calculatorului si pentru ca multi nici nu stiu cum sa isi faca viata mai usoara din punct de vedere al sanatatii incercati in primul rand cand ajungeti la birou sau acasa in fata computer-ului din dotare sa va acordati cateva minute sa [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://radumicu.info/blog/wp-content/uploads/2010/01/Ergonomics-by-RaduM.png"><img class="aligncenter" title="Ergonomics Definition" src="http://radumicu.info/blog/wp-content/uploads/2010/01/Ergonomics-by-RaduM.png" alt="Ergonomics Definition" width="710" height="195" /></a></p>
<p style="text-align: justify;">In speranta ca marea majoritatea dintre voi petrec foarte mult timp in fata calculatorului si pentru ca multi nici nu stiu cum sa isi faca viata mai usoara din punct de vedere al sanatatii incercati in primul rand cand ajungeti la birou sau acasa in fata computer-ului din dotare sa va acordati cateva minute sa reflectati asupra conditiei voastre</p>
<blockquote><p style="text-align: justify;"><strong><span style="color: #f36323;"><span style="font-size: large;">Ma simt sau nu confortabil pe scaun in fata calculatorului?</span></span></strong></p>
</blockquote>
<p style="text-align: justify;">Raspunsul trebuie sa fie simplu DA sau BA!</p>
<p style="text-align: justify;">Aici intervine <a title="Wiki Ergonomics" href="http://en.wikipedia.org/wiki/Ergonomics" target="_blank"><strong>Ergonomia</strong></a>. Desi poate suna ciudat Ergonomia spatiului de munca este o <span style="text-decoration: underline;">stiinta</span> care se ocupa cu design-ul jobului si echipamentului pentru a se potrivii cu muncitorul. Astfel ca de ce sa nu facem ceva in privinta acestui lucru reusind in acest sens sa ne imbunatatim viata si productivitatea in munca <span style="font-size: small;"><em>(cat de corporate suna, dar sa nu pierdem din vedere esenta)</em></span>.</p>
<h1 style="text-align: justify;">Lista punctelor esentiale</h1>
<p style="text-align: justify;">Daca cautam putin pe net despre ergonomie si exemple gasim o gramada, unele mai detaliate altele mai simple, ce pierdem noi insa din vedere este faptul ca cele mai importante le putem face fara prea mult efort, astfel ca am agregat o lista cu cele mai importante si usor de facut aspecte in ceea ce priveste ergonomia noastra la locul de munca sau acasa&#8230;</p>
<p><span id="more-916"></span>Scaunul</p>
<p style="text-align: justify;">Poate cel mai important obiect pe care il avem. Scaunul pe care stam in primul rand trebuie sa fie confortabil, sa iti inspire acel sentiment de plutire ca si cum nu ai avea nimic care sa te sustina, desi sentimentele acestea sunt &#8220;scumpe&#8221; investitia se amortizeaza in foarte scurt timp.</p>
<p style="text-align: center;"><a href="http://embody.hermanmiller.com/"><img class="aligncenter" title="Scaun Ergonomic" src="http://radumicu.info/blog/wp-content/uploads/2010/01/embody_chair.jpg" alt="Scaun Ergonomic" width="540" height="270" /></a></p>
<ul>
<li>Picioarele trebuie sa fie pe podea (lipite) si glezna la 90 de grade.</li>
<li>Coapsele paralele cu podeaua si genunchii indoiti la 90 de grade</li>
<li>Intre scaun si genunchi trebuie sa fie cativa centrimetrii liberi</li>
<li>Coatele sa fie la 90 de grade cand se lucreaza la tastatura</li>
<li>Lasate pe spate cat mai mult posibil in scaun, astfel o sa iti impui pozitia dreapta</li>
</ul>
<h2>Biroul</h2>
<p style="text-align: justify;">Conform <a title="ergotron.com" href="http://www.ergotron.com/tabid/305/language/en-US/default.aspx" target="_blank">ergotron.com</a> biroul trebuie sa indeplineasca cateva caracteristici (eu le-am neglijat la inceput si am regretat mai tarziu cu dureri de tot felul si de mai multe intensitati).</p>
<p style="text-align: center;"><a href="http://www.ergotron.com"><img class="aligncenter" title="Ergo Sit Stand" src="http://radumicu.info/blog/wp-content/uploads/2010/01/sitstand.jpg" alt="Ergo Sit Stand" width="600" height="300" /></a></p>
<ul>
<li style="text-align: justify;">Inaltimea coatelor de la podea ne spune cat trebuie sa fie inaltimea biroului (coatele trebuie sa fie o extensie a biroului in momentul in care lucram la tastatura)</li>
<li style="text-align: justify;">Cele mai folosite obiecte de pe birou trebuiesc asezate cat mai aproape de maini astfel incat sa reducem ridicarea repetata a mainilor pentru a le folosii</li>
<li style="text-align: justify;">Birourile care au un Slider (tava care iese) pentru tastatura fara extensie pentru mouse sunt cele mai nepotrivite pentru lucrul la birou. Mainile trebuie sa stea la acelasi nivel mereu cand lucram.</li>
</ul>
<h2>Monitorul</h2>
<p>Poate cel mai neglijat dintre componentele noastre.</p>
<p style="text-align: center;"><a href="http://radumicu.info/blog/wp-content/uploads/2010/01/MultiDisplay.jpg"><img class="aligncenter" title="Multi Display" src="http://radumicu.info/blog/wp-content/uploads/2010/01/MultiDisplay.jpg" alt="Multi Display" width="733" height="423" /></a></p>
<ul>
<li style="text-align: justify;">Distanta fata de monitor trebuie sa fie adecvata &#8211; lungimea unui brat este cea ideala (circa 50 cm)</li>
<li style="text-align: justify;">Daca iti permite seteaza monitorul la un unghi (pe verticala) de 10, 20 de grade astfel miscarea gatului va fi minima in momentul in care te uiti la el</li>
<li style="text-align: justify;">Capul trebuie sa fie intr-o pozitie neutra astfel incat doar ochii sa se miste, nu gatul</li>
<li style="text-align: justify;">Centreaza monitorul in fata ta, pentru a putea evita rasucirile din gat sau corp</li>
<li style="text-align: justify;">Linia perpendicula pe monitor de la ochi trebuie sa fie apropiata de partea superioara pentru a evita ridicarea gatului de fiecare data cand cautam continutul pe monitor</li>
<li style="text-align: justify;">Off &#8211; Topic &#8211; Refresh-ul monitorului trebuie sa fie de la 75Hz in sus, altfel daca este mai mic ochi vor percepe frame rate-ul foarte subtil si te vor durea (<a title="How to change my monitor refresh rate" href="http://support.microsoft.com/kb/311403" target="_blank">cum fac sa schimb refresh-ul</a>)</li>
</ul>
<h2>Mouse si Tastatura</h2>
<p style="text-align: justify;">Deloc neglijabile aceste doua componente pe care le folosim cel mai des in activitatile noastre de zi cu zi.</p>
<p style="text-align: center;"><a href="http://radumicu.info/blog/wp-content/uploads/2010/01/Mouse-Keyboard.jpg"><img class="aligncenter" title="Mouse-Keyboard" src="http://radumicu.info/blog/wp-content/uploads/2010/01/Mouse-Keyboard.jpg" alt="Mouse-Keyboard" width="600" height="258" /></a></p>
<ul>
<li style="text-align: justify;">Relaxarea este punctul cel mai important, mainile si degetele trebuie sa fie relaxate tot timpul cand se lucreaza la tastatura sau cu mousele</li>
<li style="text-align: justify;">Mana care misca mousele trebuie sa fie la 90 de grade pentru a permite miscarea completa</li>
<li style="text-align: justify;">Incheieturile trebuie sa fie cat mai drepte cu putinta cand se foloseste tastatura. Este o conceptie gresita faptul ca stativele pentru tastatura sunt cele mai bune astfel ca aruncatile pe toate</li>
</ul>
<h2>Pauzele lungi si dese cheia marilor succese</h2>
<p style="text-align: justify;"><a href="http://radumicu.info/blog/wp-content/uploads/2010/01/Coffe-Break.jpg"><img class="alignright" title="Coffe-Break" src="http://radumicu.info/blog/wp-content/uploads/2010/01/Coffe-Break.jpg" alt="Coffe-Break" width="270" height="270" /></a><strong>Ochii obositi</strong> &#8211; Cornell’s Ergonomic guide spune ca “<em>Every 15 minutes you should briefly look away from the screen for a minute or two to a more distant scene, preferably something more that 20 feet away. This lets the muscles inside the eye relax. Also, blink your eyes rapidly for a few seconds. This refreshes the tear film and clears dust from the eye surface.</em>”</p>
<p style="text-align: justify;"><strong>Stretching</strong> &#8211; Daca iti faci timp 5 minute si vrei sa rada si colegii de birou de tine poti sa iei in considerare putina gimnastica inainte de a incepe ziua de munca si de ce nu din cand in cand si in timpul zilei.</p>
<h2>Surse informative</h2>
<ul>
<li><a href="http://www.ergotron.com/tabid/305/language/en-US/default.aspx">Workspace  Planner</a></li>
<li><a href="http://ergo.human.cornell.edu/ergoguide.html">Cornell Ergo Guide</a></li>
<li><a href="http://ergo.human.cornell.edu/cumousetips.html">CUergo: 10 Tips  for Mouse Use</a></li>
<li>World Wide Web si Experienta</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2010/01/25/locul-de-munca-putin-mai-ergonomic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text Escaping Unescaping with AIR</title>
		<link>http://radumicu.info/blog/2010/01/17/text-escaping-unescaping-with-air/</link>
		<comments>http://radumicu.info/blog/2010/01/17/text-escaping-unescaping-with-air/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 11:56:41 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=873</guid>
		<description><![CDATA[For a project I worked a few months ago I needed to escape special characters used to pass some information from one point to another. Of course I used at that point the great application built by Marc called Unicode2HTML but I needed more than that. I wanted to convert also to other formats like [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 281px"><a href="http://marketplace.adobe.com/cfusion/marketplace/index.cfm?event=marketplace.offering&amp;offeringid=17331"><img class=" " title="Text Escaping Unescaping" src="http://radumicu.info/blog/wp-content/uploads/2010/01/TextEscapingUnescaping.png" alt="TextEscapingUnescaping" width="271" height="189" /></a><p class="wp-caption-text">Text Escaping Unescaping</p></div>
<p style="text-align: justify;">For a project I worked a few months ago I needed to escape special characters used to pass some information from one point to another. Of course I used at that point the great application built by <a title="Unicode2HTML Download Link" href="http://od-electronic.de/downloads.html" target="_blank">Marc called Unicode2HTML</a> but I needed more than that. I wanted to convert also to other formats like <strong><a title="Wiki Unicode" href="http://en.wikipedia.org/wiki/Unicode" target="_blank">\uXXXX</a></strong> or <strong><a title="Wiki Punycode" href="http://en.wikipedia.org/wiki/Punycode" target="_blank">Punycode</a></strong> so after searching the net for a tool like that I found a very nice library built by <a title="http://0xcc.net/" href="http://0xcc.net/" target="_blank">Satorux</a> called <a title="strutil.js code" href="http://0xcc.net/jsescape/strutil.js" target="_blank">strutil.js</a>.</p>
<p style="text-align: justify;">The library actually does exactly what I wanted, it converts a character to a bunch of formats that I can use. The service Satorux has build, using this library, can be found at <a title="http://0xcc.net/jsescape/" href="http://0xcc.net/jsescape/" target="_blank">Text Escaping and Unescaping in JavaScript</a>.</p>
<p style="text-align: justify;">I decided to port this online version to an application so we can use it in offline also. This was a good project because it concluded to be my first <a title="Adobe AIR Homepage" href="http://www.adobe.com/products/air/" target="_blank">Adobe AIR</a> project (hope more will come).</p>
<p style="text-align: justify;">I won&#8217;t make a tutorial on how to build an AIR app in this article because there is no point you can search the net for this kind of things and you will find dozens of great tutorials. But what I want to share with you is the application itself and the simplicity of the AUTO UPDATER Framework Adobe AIR has&#8230;</p>
<p style="text-align: justify;"><span id="more-873"></span></p>
<p style="text-align: justify;">So here is the app I have made; click to install. For any kind of feedback just leave me a comment here or send me an email using the <a href="http://radumicu.info/blog/contact-me/" target="_blank">Contact</a> page.</p>
<p style="text-align: center;"><iframe src ="http://playground.radumicu.info/repository/text-escaping-unescaping/badge/index_badge.html" width="230px" height="200px" frameborder="0"></iframe></p>
<p style="text-align: justify;">After reading the detailed information about <a title="How to update an AIR application" href="http://www.adobe.com/devnet/air/articles/air_update_framework.html" target="_blank">how to update an AIR application</a> I realized that this was easy as saying <a title="Wiki Star Trek" href="http://en.wikipedia.org/wiki/Beam_me_up,_Scotty" target="_blank"><em>Scotty UPDATE ME</em></a> <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify;">If need to check for a new update to my application all I need to do is to add this code in my page (HTML/Ajax version).</p>
<pre>
<pre class="brush: jscript;">
// instantiate an updater object
var appUpdater = new runtime.air.update.ApplicationUpdaterUI();
function checkUpdate()
{
	// we set the URL for the update.xml file
	appUpdater.updateURL = &quot;http://localhost/update.xml&quot;;
	//we set the event handlers for INITIALIZED nad ERROR
	appUpdater.addEventListener(runtime.air.update.events.UpdateEvent.INITIALIZED, onUpdate);
	appUpdater.addEventListener(runtime.flash.events.ErrorEvent.ERROR, onError);
	//we can hide the dialog asking for permission for checking for a new update;
	//if you want to see it just leave the default value (or set true).
	appUpdater.isCheckForUpdateVisible = false;
	//if isFileUpdateVisible is set to true, File Update, File No Update,
	//and File Error dialog boxes will be displayed
	appUpdater.isFileUpdateVisible = false;
	//if isInstallUpdateVisible is set to true, the dialog box for installing the update is visible
	appUpdater.isInstallUpdateVisible = false;
	//we initialize the updater
	appUpdater.initialize();
}
function onUpdate(event)
{
	//starts the update process
	appUpdater.checkNow();
}
function onError(event)
{
    alert(event);
}
</pre>
</pre>
<p style="text-align: justify;">And on the <em>&lt;body&gt;</em> tag we just call the function:</p>
<p>
<pre class="brush: xml;">&lt;body onload=&quot;checkUpdate();&quot;&gt;</pre>
</p>
<p style="text-align: justify;">Behind the scenes the flow is quite easy the <em>checkUpdate()</em> function reads the <em>update.xml</em> file and compares the information from there with the current application version (located in <em>application.xml</em>), if a new version is available will prompt the updater Ui asking for permission to install the new version.</p>
<p style="text-align: justify;">The <em>update.xml</em> file looks like this:</p>
<pre class="brush: xml;">
&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;update xmlns=&quot;http://ns.adobe.com/air/framework/update/description/1.0&quot;&gt;
	&lt;version&gt;0.2&lt;/version&gt;
	&lt;url&gt;http://localhost/app.air&lt;/url&gt;
	&lt;description&gt;&lt;![CDATA[
Version changes TEXT
  ]]&gt;&lt;/description&gt;
&lt;/update&gt;
&lt;/pre&gt;
</pre>
<p style="text-align: justify;">You can use this code to make an auto-updater for your Air applications every time, so great job Adobe for this nice feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2010/01/17/text-escaping-unescaping-with-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using text-shadow to create a glow effect</title>
		<link>http://radumicu.info/blog/2010/01/16/using-text-shadow-to-create-a-glow-effect/</link>
		<comments>http://radumicu.info/blog/2010/01/16/using-text-shadow-to-create-a-glow-effect/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 11:12:14 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web-Design]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=852</guid>
		<description><![CDATA[The text-shadow declaration allows you to create a text shadow; i.e. a slightly moved, slightly blurred copy of a text. Just like drop-shadow from Photoshop styles. Using this css property we can create a glow effect for our texts. Some examples This text should have a text-shadow. This text, too, should have a text-shadow. Syntax [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The <span style="color: #ff6600;"><em>text-shadow</em></span> declaration allows you to create a text shadow; i.e. a slightly moved, slightly blurred copy of a text. Just like drop-shadow from Photoshop styles. Using this css property we can create a glow effect for our texts.</p>
<h3 id="link1">Some examples</h3>
<p style="text-shadow: 20px -12px 2px #6374AB;">This text should have a text-shadow.</p>
<p style="text-shadow: 20px -12px 2px #6374AB;">This text, too, should have a text-shadow.</p>
<h3>Syntax for text-shadow</h3>
<pre>
<pre class="brush: css;">
p.test{
    text-shadow: #6374AB 20px -12px 2px;
}
</pre>
</pre>
<p>So <span style="color: #ff6600;"><em>text-shadow</em></span> accepts 4 values (3 for position and 1 for color):</p>
<p><span id="more-852"></span></p>
<ol>
<li>The color of the text-shadow (#6374AB)</li>
<li>The X-coordinate of the text-shadow (20px), relative to the text</li>
<li>The Y-coordinate of the text-shadow (-12px), relative to the text</li>
<li style="text-align: justify;">The blur radius of the text-shadow (2px), which means the amount of space the shadowtext is &#8216;stretched&#8217;, causing a blur effect. 0 means: no blur. Don&#8217;t set this value too high, the shadowtext quickly becomes illegible.</li>
</ol>
<h3>Browser compatibility</h3>
<p>At this point <span style="color: #ff9900;"><em>text-shadow</em></span> only works within:</p>
<ul>
<li>Firefox 3 and above</li>
<li>Opera 9.5 and above</li>
<li>Safari 1.3 and above (<em>partial</em>)</li>
<li>Chrome all versions</li>
</ul>
<h3>How to create the glow effect</h3>
<p style="text-align: justify;">Knowing all this now we can create a glow effect for our texts to give the some nice eye-catching experience for the user. The best example here is to use this effect on anchor links on hover (<em>A:hover</em>).</p>
<p>
<style>A:hover .text-shadow-glow{text-decoration: underline;color: #FFF;text-shadow: #EEE 0 0 10px;}A:hover .text-shadow-normal{text-decoration: underline;color: #FFF;}</style>
<div style="background-color: #282828; height: 190px; text-align: center; padding: 5px; width: 700px; border: 5px solid #eee;">
<h1><a href="#" style="color: #FFCC66; font-weight: bold; text-decoration: none;"><span class="text-shadow-glow">SAMPLE TEXT H1</span>&nbsp;&nbsp;&nbsp;<span class="text-shadow-normal">SAMPLE TEXT H1</span></a></h1>
</p>
<p>
<h2><a href="#" style="color: #FFCC66; font-weight: bold; text-decoration: none;"><span class="text-shadow-glow">Sample TEXT H2</span>&nbsp;&nbsp;&nbsp;<span class="text-shadow-normal">Sample TEXT H2</span></a></h2>
</p>
<p>
<h3><a href="#" style="color: #FFCC66; font-weight: bold; text-decoration: none;"><span class="text-shadow-glow">Sample Text H3</span>&nbsp;&nbsp;&nbsp;<span class="text-shadow-normal">Sample Text H3</span></a></h3>
</p>
<p><a href="#" style="color: #FFCC66; font-weight: bold; text-decoration: none;"><span class="text-shadow-glow">sample text</span>&nbsp;&nbsp;&nbsp;<span class="text-shadow-normal">sample text</span></a></p>
</div>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Looking at the example above we can see the effect of the <span style="color: #ff9900;"><em>text-shadow</em></span> glow effect on the left side and on the right is the normal setting. This can be pretty neat to use on anchor links. So in order to get this effect we can declare in our CSS code the following properties:</p>
<pre>
<pre class="brush: css;">
A{
    color: #FFCC66;
    font-weight: bold;
    text-decoration: none;
}

A:hover{
    text-decoration: underline;
    color: #FFF;
    text-shadow: #EEE 0 0 10px;
}
</pre>
</pre>
<p style="text-align: justify;">So for all anchors we have a <span style="color: #ffcc66;">default color</span> and no decoration styles. Now using the <em>a:hover</em> property we can add our glow effect using a lighter color and just the blur radius set to 10 pixels, so the shadow will be &#8220;centered&#8221; and blurred out from our text creating the glow effect.</p>
<h3>Conclusion and resources</h3>
<p style="text-align: justify;">Quite simple and easy right? This could be a nice effect in your design process. It&#8217;s one of those things the are completing your &#8220;wow&#8221; effect when designing a new website. Very easy to use with just a few lines of code <em>text-shadow</em> can make the difference for your anchor styles. For more information about <em>text-shadow</em> you can find here:</p>
<p style="text-align: justify;">
<a title="Quirksmode text-shadow" href="http://www.quirksmode.org/css/textshadow.html" target="_blank">quirksmode.org/css/textshadow</a><br/><br />
<a title="CSS3 text-shadow" href="http://www.css3.info/preview/text-shadow/" target="_blank">css3.info/preview/text-shadow</a><br/><br />
<a title="Sitepoint Reference for text-shadow" href="http://reference.sitepoint.com/css/text-shadow" target="_blank">reference.sitepoint.com/css/text-shadow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2010/01/16/using-text-shadow-to-create-a-glow-effect/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Evolution of a Programmer</title>
		<link>http://radumicu.info/blog/2009/12/27/the-evolution-of-a-programmer/</link>
		<comments>http://radumicu.info/blog/2009/12/27/the-evolution-of-a-programmer/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 17:52:48 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[A crazy World]]></category>
		<category><![CDATA[Life-Hacker]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[Hacker]]></category>
		<category><![CDATA[programmer]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=719</guid>
		<description><![CDATA[High School/Jr.High 10 PRINT &#34;HELLO WORLD&#34; 20 END First year in College program Hello(input, output) begin writeln('Hello World') end. Senior year in College (defun hello (print (cons 'Hello (list 'World)))) New professional #include void main(void) { char *message[] = {&#34;Hello &#34;, &#34;World&#34;}; int i; for(i = 0; i &#60; 2; ++i) printf(&#34;%s&#34;, message[i]); printf(&#34;\n&#34;); } [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 596px"><a href="http://radumicu.info/blog/wp-content/uploads/2009/12/evolution-of-programmer.jpg"><img title="Evolution of Programmer" src="http://radumicu.info/blog/wp-content/uploads/2009/12/evolution-of-programmer.jpg" alt="Evolution of Programmer" width="586" height="206" /></a><p class="wp-caption-text">Evolution of Programmer</p></div>
<p style="text-align: center;">
<h2>High School/Jr.High</h2>
<pre class="brush: cpp;">
10 PRINT &quot;HELLO WORLD&quot;
20 END
</pre>
<h2>First year in College</h2>
<pre class="brush: cpp;">
program Hello(input, output)
begin
writeln('Hello World')
end.
</pre>
<h2>Senior year in College</h2>
<pre class="brush: cpp;">
(defun hello
(print
(cons 'Hello (list 'World))))
</pre>
<p><span id="more-719"></span></p>
<h2>New professional</h2>
<pre class="brush: cpp;">
#include
void main(void)
{
char *message[] = {&quot;Hello &quot;, &quot;World&quot;};
int i;

for(i = 0; i &lt; 2; ++i)
printf(&quot;%s&quot;, message[i]);
printf(&quot;\n&quot;);
}
</pre>
<h2>Seasoned professional</h2>
<pre class="brush: cpp;">
#include
#include

class string
{
private:
int size;
char *ptr;

string() : size(0), ptr(new char[1]) { ptr[0] = 0; }

string(const string &amp;amp;amp;amp;amp;amp;s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}

~string()
{
delete [] ptr;
}

friend ostream &amp;amp;amp;amp;amp;amp;operator &lt;&lt;(ostream &amp;amp;amp;amp;amp;amp;, const string &amp;amp;amp;amp;amp;amp;);
string &amp;amp;amp;amp;amp;amp;operator=(const char *);
};

ostream &amp;amp;amp;amp;amp;amp;operator&lt;&lt;(ostream &amp;amp;amp;amp;amp;amp;stream, const string &amp;amp;amp;amp;amp;amp;s)
{
return(stream &lt;&lt; s.ptr);
}

string &amp;amp;amp;amp;amp;amp;string::operator=(const char *chrs)
{
if (this != &amp;amp;amp;amp;amp;amp;chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}

int main()
{
string str;

str = &quot;Hello World&quot;;
cout &lt;&lt; str &lt;&lt; endl;

return(0);
}
</pre>
<h2>Master Programmer</h2>
<pre class="brush: cpp;">
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib(&quot;actimp.tlb&quot;);
importlib(&quot;actexp.tlb&quot;);

// bring in my interfaces
#include &quot;pshlo.idl&quot;

[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile;
};
};

[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{

// some code related header files
importheader();
importheader(
);
importheader();
importheader(&quot;pshlo.h&quot;);
importheader(&quot;shlo.hxx&quot;);
importheader(&quot;mycls.hxx&quot;);

// needed typelibs
importlib(&quot;actimp.tlb&quot;);
importlib(&quot;actexp.tlb&quot;);
importlib(&quot;thlo.tlb&quot;);

[
uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
aggregatable
]
coclass CHello
{
cotype THello;
};
};

#include &quot;ipfix.hxx&quot;

extern HANDLE hEvent;

class CHello : public CHelloBase
{
public:
IPFIX(CLSID_CHello);

CHello(IUnknown *pUnk);
~CHello();

HRESULT  __stdcall PrintSz(LPWSTR pwszString);

private:
static int cObjRef;
};

#include
#include
#include
#include
#include &quot;thlo.h&quot;
#include &quot;pshlo.h&quot;
#include &quot;shlo.hxx&quot;
#include &quot;mycls.hxx&quot;

int CHello::cObjRef = 0;

CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
{
cObjRef++;
return;
}

HRESULT  __stdcall  CHello::PrintSz(LPWSTR pwszString)
{
printf(&quot;%ws
&quot;, pwszString);
return(ResultFromScode(S_OK));
}

CHello::~CHello(void)
{

// when the object count goes to zero, stop the server
cObjRef--;
if( cObjRef == 0 )
PulseEvent(hEvent);

return;
}

#include
#include
#include &quot;pshlo.h&quot;
#include &quot;shlo.hxx&quot;
#include &quot;mycls.hxx&quot;

HANDLE hEvent;

int _cdecl main(
int argc,
char * argv[]
) {
ULONG ulRef;
DWORD dwRegistration;
CHelloCF *pCF = new CHelloCF();

hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);

// Initialize the OLE libraries
CoInitializeEx(NULL, COINIT_MULTITHREADED);

CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE, &amp;amp;amp;amp;amp;amp;dwRegistration);

// wait on an event to stop
WaitForSingleObject(hEvent, INFINITE);

// revoke and release the class object
CoRevokeClassObject(dwRegistration);
ulRef = pCF-&gt;Release();

// Tell OLE we are going away.
CoUninitialize();

return(0); }

extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;

CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};

#include
#include
#include
#include
#include
#include &quot;pshlo.h&quot;
#include &quot;shlo.hxx&quot;
#include &quot;clsid.h&quot;

int _cdecl main(
int argc,
char * argv[]
) {
HRESULT  hRslt;
IHello        *pHello;
ULONG  ulCnt;
IMoniker * pmk;
WCHAR  wcsT[_MAX_PATH];
WCHAR  wcsPath[2 * _MAX_PATH];

// get object path
wcsPath[0] = '\0';
wcsT[0] = '\0';
if( argc &gt; 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, &quot;Object path must be specified\n&quot;);
return(1);
}

// get print string
if(argc &gt; 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L&quot;Hello World&quot;);

printf(&quot;Linking to object %ws\n&quot;, wcsPath);
printf(&quot;Text String %ws\n&quot;, wcsT);

// Initialize the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hRslt)) {

hRslt = CreateFileMoniker(wcsPath, &amp;amp;amp;amp;amp;amp;pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&amp;amp;amp;amp;amp;amp;pHello);

if(SUCCEEDED(hRslt)) {

// print a string out
pHello-&gt;PrintSz(wcsT);

Sleep(2000);
ulCnt = pHello-&gt;Release();
}
else
printf(&quot;Failure to connect, status: %lx&quot;, hRslt);

// Tell OLE we are going away.
CoUninitialize();
}

return(0);
}
</pre>
<h2>Apprentice Hacker</h2>
<pre class="brush: cpp;">
#!/usr/local/bin/perl
$msg=&quot;Hello, world.\n&quot;;
if ($#ARGV &gt;= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, &quot;&gt;&quot; . $outfilename) || die &quot;Can't write $arg: $!\n&quot;;
print (FILE $msg);
close(FILE) || die &quot;Can't close $arg: $!\n&quot;;
}
} else {
print ($msg);
}
1;
</pre>
<h2>Experienced Hacker</h2>
<pre class="brush: cpp;">
#include
#define S &quot;Hello, World\n&quot;
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
</pre>
<h2>Seasoned Hacker</h2>
<pre class="brush: cpp;">
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
</pre>
<h2>Guru Hacker</h2>
<pre class="brush: cpp;">
% echo &quot;Hello, world.&quot;
</pre>
<h2>New Manager</h2>
<pre class="brush: cpp;">
10 PRINT &quot;HELLO WORLD&quot;
20 END
</pre>
<h2>Middle Manager</h2>
<pre class="brush: cpp;">
mail -s &quot;Hello, world.&quot; bob@b12
Bob, could you please write me a program that prints &quot;Hello, world.&quot;?
I need it by tomorrow.
^D
</pre>
<h2>Senior Manager</h2>
<pre class="brush: cpp;">
% zmail jim
I need a &quot;Hello, world.&quot; program by this afternoon.
</pre>
<h2>Chief Executive</h2>
<pre class="brush: cpp;">
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
</pre>
<p>[Author Anonymous Via <a href="http://www.ariel.com.au/jokes/The_Evolution_of_a_Programmer.html" target="_blank">ariel.com.au</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2009/12/27/the-evolution-of-a-programmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Admin Missing in Author List</title>
		<link>http://radumicu.info/blog/2009/12/19/wordpress-admin-missing-in-author-list/</link>
		<comments>http://radumicu.info/blog/2009/12/19/wordpress-admin-missing-in-author-list/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 21:23:09 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Life-Hacker]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=654</guid>
		<description><![CDATA[I’m the Administrator on my WordPress site but my name doesn’t show up as an Author option when posting. This what happened to me one day, when I have checked all my posts. Well occasionally, WordPress gets stoned and loses the Administrator’s name in the Author dropdown menu. I really do not know why and [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 202px"><a href="http://radumicu.info/blog/?attachment_id=707"><img class="   " title="Wordpress Icon" src="http://radumicu.info/blog/wp-content/uploads/2009/12/wordpress-icon.png" alt="Wordpress Icon" width="192" height="171" /></a><p class="wp-caption-text">Wordpress</p></div>
<p style="text-align: justify;">I’m the Administrator on my WordPress site but my name doesn’t show up as an Author option when posting. This what happened to me one day, when I have checked all my posts.</p>
<p style="text-align: justify;">Well occasionally, WordPress gets stoned and loses the Administrator’s name in the Author dropdown menu. I really do not know why and to be honest I never tried to figure out what is the reason for this bug.</p>
<p style="text-align: justify;">The fix for this one is actually quite simple (although it could look like your are scratching your right ear with your left hand). Here is what  you need to do to fix this bug: &#8230;</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span id="more-654"></span></p>
<ol>
<li>Set up a new, temporary, Admin user then Log out</li>
<li>Log back in again as the new user.</li>
<li>Navigate to Users and select your old Admin profile.</li>
<li>Reduce your old profile down to Subscriber and save the new settings.</li>
<li>Update your old profile back to Admin again and save the new settings (funny right <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</li>
<li>Log out again &#8211; Log back in again using your old Admin username.</li>
<li>Check that you can now see your name in the Author dropdown in Add/Edit Posts.</li>
<li>If all is OK, delete the temporary Admin user. You no longer need it.</li>
</ol>
<p style="text-align: justify;">I had this problem also with WordPress 2.8 so if you have this problem just do as I did above. Don&#8217;t really know if this also happens in WordPress 2.9</p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2009/12/19/wordpress-admin-missing-in-author-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sudoku &#8211; Recursive Subquery Factoring</title>
		<link>http://radumicu.info/blog/2009/11/15/sudoku-recursive-subquery-factoring/</link>
		<comments>http://radumicu.info/blog/2009/11/15/sudoku-recursive-subquery-factoring/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 19:27:05 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sudoku]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=626</guid>
		<description><![CDATA[Incepand cu versiunea 11 Release 2 Oracle introduce un nou feature in RDBMS lor, Recursive Subquery Factoring. Prima aplicatie practica la care s-a gandit Anton Scheffer este cum sa rezolve SUDOKU &#60;pre&#62;with x( s, ind ) as ( select sud, instr( sud, ' ' ) from ( select '53 7 6 195 98 6 8 [...]]]></description>
			<content:encoded><![CDATA[<p>Incepand cu versiunea 11 Release 2 Oracle introduce un nou feature in RDBMS lor, <strong>Recursive Subquery Factoring</strong>. Prima aplicatie practica la care s-a gandit <a href="http://technology.amis.nl/blog/6404/oracle-rdbms-11gr2-solving-a-sudoku-using-recursive-subquery-factoring" target="_blank">Anton Scheffer</a> este cum sa rezolve SUDOKU <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: sql;">
&lt;pre&gt;with x( s, ind ) as
( select sud, instr( sud, ' ' )
from ( select '53  7    6  195    98    6 8   6   34  8 3  17   2   6 6    28    419  5    8  79' sud from dual )
union all
select substr( s, 1, ind - 1 ) || z || substr( s, ind + 1 )
, instr( s, ' ', ind + 1 )
from x
, ( select to_char( rownum ) z
from dual
connect by rownum &lt;= 9
) z
where ind &gt; 0
and not exists ( select null
from ( select rownum lp
from dual
connect by rownum &lt;= 9
)
where z = substr( s, trunc( ( ind - 1 ) / 9 ) * 9 + lp, 1 )
or    z = substr( s, mod( ind - 1, 9 ) - 8 + lp * 9, 1 )
or    z = substr( s, mod( trunc( ( ind - 1 ) / 3 ), 3 ) * 3
+ trunc( ( ind - 1 ) / 27 ) * 27 + lp
+ trunc( ( lp - 1 ) / 3 ) * 6
, 1 )
)
)
select s
from x
where ind = 0
/&lt;/pre&gt;
</pre>
<p><span id="more-626"></span></p>
<p>Astfel ca daca vrem sa rezolvam exemplul de mai jos folosim codul de mai sus <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="wp-caption aligncenter" style="width: 260px"><img title="Sudoku Example" src="http://radumicu.info/blog/wp-content/gallery/radumicuinfo/sudoku-250px.png" alt="Sudoku Example" width="250" height="250" /><p class="wp-caption-text">Sudoku Example</p></div>
<p>Practic folosim sirul din exemplu &#8220;53  7    6  195    98    6 8   6   34  8 3  17   2   6 6    28    419  5    8  79&#8243; si ii aplicam sintaxa SQL. Rezultatul este rezolvarea la exemplul nostru.</p>
<div class="wp-caption aligncenter" style="width: 260px"><img title="Sudoku Example - Rezolvarea" src="http://radumicu.info/blog/wp-content/gallery/radumicuinfo/sudoku-resolved-250px.png" alt="Sudoku Example - Rezolvarea" width="250" height="250" /><p class="wp-caption-text">Sudoku Example - Rezolvarea</p></div>
<p style="text-align: center;">
<p>Rareori vezi cod care sa te impresioneze.</p>
<p>[Via  <a title="technology.amis.nl" href="http://technology.amis.nl/blog/6404/oracle-rdbms-11gr2-solving-a-sudoku-using-recursive-subquery-factoring" target="_blank">technology.amis.nl</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2009/11/15/sudoku-recursive-subquery-factoring/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2 linii in consola pentru fiecare instalare de Ubuntu</title>
		<link>http://radumicu.info/blog/2009/06/13/2-linii-in-consola-pentru-fiecare-instalare-de-ubuntu/</link>
		<comments>http://radumicu.info/blog/2009/06/13/2-linii-in-consola-pentru-fiecare-instalare-de-ubuntu/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:32:16 +0000</pubDate>
		<dc:creator>Radu</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tweaking]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://radumicu.info/blog/?p=453</guid>
		<description><![CDATA[sudo apt-get install ubuntu-restricted-extras &#8211; doar aceasta linie de cod te scapa de multa bataie de cap si de cel putin 100 de posturi pe forum in legatura cu flash, mp3, java etc. etc. &#8230; am trecut prin asta si stiu cum este sudo apt-get install gufw &#8211; firewall (IPTables), mereu am avut nevoie de [...]]]></description>
			<content:encoded><![CDATA[<p><strong>sudo apt-get install ubuntu-restricted-extras</strong> &#8211; doar aceasta linie de cod te scapa de multa bataie de cap si de cel putin 100 de posturi pe forum in legatura cu flash, mp3, java etc. etc. &#8230; am trecut prin asta si stiu cum este <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>sudo apt-get install gufw</strong> &#8211; firewall (IPTables), mereu am avut nevoie de porturi configurate sau de ceva mai usor pentru firewall</p>
<p>Si nu uitati inainte sa treceti la tweaking instalati toate patchurile de securitate&#8230; <img src='http://radumicu.info/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://radumicu.info/blog/2009/06/13/2-linii-in-consola-pentru-fiecare-instalare-de-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/20 queries in 0.175 seconds using disk

Served from: radumicu.info @ 2010-09-08 02:14:34 -->