<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>Stanislav Stankov</title>
	<atom:link href="http://blog.stanislavstankov.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stanislavstankov.com</link>
	<description>developer blog</description>
	<lastBuildDate>Wed, 11 Aug 2010 11:39:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
		<item>
		<title>Multiple ContextMenuItem for different objects</title>
		<link>http://blog.stanislavstankov.com/2010/08/multiple-contextmenuitem-for-different-objects/</link>
		<comments>http://blog.stanislavstankov.com/2010/08/multiple-contextmenuitem-for-different-objects/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 11:35:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3 optimization]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[projects & snippets]]></category>
		<category><![CDATA[ContextMenuItem]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=313</guid>
		<description><![CDATA[OK here is a simple way to create as many objects as you want context menus: 12345678910111213141516import flash.ui.ContextMenu; import flash.ui.ContextMenuItem; function addContext&#40;sprite_:Sprite&#41;:void &#123; &#160; &#160; var menu:ContextMenu = new ContextMenu&#40;&#41;; &#160; &#160; menu.customItems = &#91;new ContextMenuItem&#40;&#34;Select only &#34; + sprite_.name&#41;&#93;; &#160; &#160; menu.hideBuiltInItems&#40;&#41;; &#160; &#160; sprite_.contextMenu = menu; &#125; addContext&#40;yellow&#41;; addContext&#40;green&#41;; addContext&#40;red&#41;; addContext&#40;blue&#41;; addContext&#40;this&#41;; note [...]]]></description>
			<content:encoded><![CDATA[<p>OK here is a simple way to create as many objects as you want context menus:</p>
<div class="codecolorer-container actionscript3 default" 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 /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ContextMenu</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ContextMenuItem</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
<br />
<span style="color: #339966; font-weight: bold;">function</span> addContext<span style="color: #000000;">&#40;</span>sprite_<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> menu<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">ContextMenu</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenu</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; menu<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">customItems</span> = <span style="color: #000000;">&#91;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">ContextMenuItem</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Select only &quot;</span> <span style="color: #000066; font-weight: bold;">+</span> sprite_<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; menu<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">hideBuiltInItems</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; sprite_<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">contextMenu</span> = menu<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span><br />
<br />
addContext<span style="color: #000000;">&#40;</span>yellow<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
addContext<span style="color: #000000;">&#40;</span>green<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
addContext<span style="color: #000000;">&#40;</span>red<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
addContext<span style="color: #000000;">&#40;</span>blue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
addContext<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></div></td></tr></tbody></table></div>
<p>note that yellow, green, red, blue are Sprites, but it can be also buttons</p>
<p>Example:</p>
<p>
<object width="250" height="250">
<param name="movie" value="http://blog.stanislavstankov.com/wp-content/uploads/2010/08/cm.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#FFFFFF"></param>
<embed type="application/x-shockwave-flash" width="250" height="250" src="http://blog.stanislavstankov.com/wp-content/uploads/2010/08/cm.swf" quality="high" bgcolor="#FFFFFF" wmode="window" menu="false" ></embed>
</object>
</p>
<p>Nice post about <a href="http://www.muktosoft.com/context-menu-in-flash/" target="_blank">The Right-Click Menu in Flash</a> by Raiyan</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/08/multiple-contextmenuitem-for-different-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>Enable Telnet for Windows 7 and Vista</title>
		<link>http://blog.stanislavstankov.com/2010/07/enable-telnet-for-windows-7-and-vista/</link>
		<comments>http://blog.stanislavstankov.com/2010/07/enable-telnet-for-windows-7-and-vista/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 08:20:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=305</guid>
		<description><![CDATA[I found a really nice post written by Sean : Telnet for Windows Vista &#38; Windows 7]]></description>
			<content:encoded><![CDATA[<p>I found a really nice post written by Sean : <a title="Telnet for Windows Vista &#038; Windows 7" href="http://www.leateds.com/2009/telnet-for-windows-vista-windows-7/" target="_blank">Telnet for Windows Vista &amp; Windows 7</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/07/enable-telnet-for-windows-7-and-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>JVM heap size, or why Flash is not compiling</title>
		<link>http://blog.stanislavstankov.com/2010/06/jvm-heap-size-or-wtf-i-cannot-compile-size/</link>
		<comments>http://blog.stanislavstankov.com/2010/06/jvm-heap-size-or-wtf-i-cannot-compile-size/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 13:51:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[actionscript 3]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=294</guid>
		<description><![CDATA[Its been a while since i write something into my blog, but I want to share my experience over this topic. As you develop project for sometime one Flash, and your code get bigger and bigger: Source Code Statistics: Code lines: 54 937 (59%) Comment lines: 20 347 (21,9%) Blank lines: 17 847 (19,2%) Total [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while since i write something into my blog, but I want to share my experience over this topic.<br />
As you develop project for sometime one Flash, and your code get bigger and bigger:</p>
<p>Source Code Statistics:</p>
<p>Code lines: 54 937 (59%)<br />
Comment lines: 20 347 (21,9%)<br />
Blank lines: 17 847 (19,2%)</p>
<p>Total lines: 93 121<span id="more-294"></span><!--more--></p>
<p>You will reach in some point where Flash is not able to compile your project. It just throws flash with no action script at all or blank scene.<br />
Thanks to this topic: <a href="http://jwoffenden.blogspot.com/2008/08/how-to-overcome-compiler-limitations-in.html">Giving Flash CS3&#8242;s compiler a little breathing room</a>, I manage to overcome this problem.</p>
<p>I will write the steps in win7, because I use this OS.</p>
<ul>
<li>Right click on Computer</li>
<li>Choose properties</li>
<li>Choose Advanced system settings</li>
<li>Choose Advanced tab</li>
<li>Environment Variables&#8230;</li>
<li>Click on New to add variable</li>
<li>Variable name: <strong>JAVA_TOOL_OPTIONS</strong> and for variable value add <strong>-Xmx@M</strong>, where @ is the size you want your Java virtual machine to use, it can be 256, 512, 1024 (Example :<strong> -Xmx512M</strong> or <strong>-Xmx256M</strong>)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/06/jvm-heap-size-or-wtf-i-cannot-compile-size/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>TV meets web. Web meets TV.</title>
		<link>http://blog.stanislavstankov.com/2010/05/tv-meets-web-web-meets-tv/</link>
		<comments>http://blog.stanislavstankov.com/2010/05/tv-meets-web-web-meets-tv/#comments</comments>
		<pubDate>Mon, 24 May 2010 07:44:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google tv]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=287</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a title="Google TV" href="http://www.google.com/tv/" target="_blank"><div class="wp-caption aligncenter" style="width: 143px"><img title="Google TV" src="http://www.google.com/images/logos/tv_logo.gif" alt="Google TV" width="133" height="40" /><p class="wp-caption-text">Google TV</p></div></a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="430" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/diTpeYoqAhc&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="430" src="http://www.youtube.com/v/diTpeYoqAhc&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/05/tv-meets-web-web-meets-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>Download Videos From Youtube.com – The final working version 2010</title>
		<link>http://blog.stanislavstankov.com/2010/03/download-videos-from-youtube-com-%e2%80%93-the-final-working-version-2010/</link>
		<comments>http://blog.stanislavstankov.com/2010/03/download-videos-from-youtube-com-%e2%80%93-the-final-working-version-2010/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 10:34:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=252</guid>
		<description><![CDATA[Here is a great article how you can download videos from youtube with the new secure changes that they added: Download Videos From Youtube.com – The final working version 2010]]></description>
			<content:encoded><![CDATA[<p>Here is a great article how you can download videos from youtube with the new secure changes that they added:</p>
<p><a href="http://blog.pocko.org/2010/03/download-videos-from-youtube-com-the-final-working-version-2010/">Download Videos From Youtube.com – The final working version 2010</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/03/download-videos-from-youtube-com-%e2%80%93-the-final-working-version-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>Flex Drag and Drop with dynamic image</title>
		<link>http://blog.stanislavstankov.com/2010/03/flex-drag-and-drop-with-dynamic-image/</link>
		<comments>http://blog.stanislavstankov.com/2010/03/flex-drag-and-drop-with-dynamic-image/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 16:42:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[flex 3]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=243</guid>
		<description><![CDATA[Hey I was searching in internet how to do a drag that create a exact copy of the image without loading it. All the examples were with Embed images so i needed some example that Image load bitmap and then do drag without having to load bitmap twice. So take a look: 1234567891011// fire from [...]]]></description>
			<content:encoded><![CDATA[<p>Hey I was searching in internet how to do a drag that create a exact copy of the image without loading it. All the examples were with Embed images so i needed some example that Image load bitmap and then do drag without having to load bitmap twice. So take a look:</p>
<div class="codecolorer-container actionscript3 default" 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 /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900; font-style: italic;">// fire from MouseEvent.MOUSE_DOWN event</span><br />
<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> doDrag<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> dragInitiator<span style="color: #000066; font-weight: bold;">:</span>Image = e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">currentTarget</span> <span style="color: #0033ff; font-weight: bold;">as</span> Image<span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> dragSource<span style="color: #000066; font-weight: bold;">:</span>DragSource = <span style="color: #0033ff; font-weight: bold;">new</span> DragSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; dragSource<span style="color: #000066; font-weight: bold;">.</span>addData<span style="color: #000000;">&#40;</span>_core<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;core&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> dragProxy<span style="color: #000066; font-weight: bold;">:</span>Image = <span style="color: #0033ff; font-weight: bold;">new</span> Image <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; dragProxy<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">source</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>dragInitiator<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">content</span> <span style="color: #0033ff; font-weight: bold;">as</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">bitmapData</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; DragManager<span style="color: #000066; font-weight: bold;">.</span>doDrag<span style="color: #000000;">&#40;</span>dragInitiator<span style="color: #000066; font-weight: bold;">,</span> dragSource<span style="color: #000066; font-weight: bold;">,</span> e<span style="color: #000066; font-weight: bold;">,</span> dragProxy<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p>Spinets used:<br />
<a href="http://www.switchonthecode.com/tutorials/simple-flex-drag-and-drop">Simple Flex Drag and Drop</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/03/flex-drag-and-drop-with-dynamic-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>equal function String.fromCharCode in PHP</title>
		<link>http://blog.stanislavstankov.com/2010/02/equal-function-string-fromcharcode-in-php/</link>
		<comments>http://blog.stanislavstankov.com/2010/02/equal-function-string-fromcharcode-in-php/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:08:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[fromCharCode]]></category>
		<category><![CDATA[PHP fromCharCode]]></category>
		<category><![CDATA[PHP UTF-8]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=235</guid>
		<description><![CDATA[Hey it was problem before I see this solution, to pass charactes to PHP like numbers, basicly because Flash use fromCharCode in UTF-8 format and PHP do chr function work in ASCII. So here is the script solution: 12345678910111213141516171819202122232425262728293031323334353637function uniord&#40;$ch&#41; &#123; &#160; &#160; $n = ord&#40;$ch&#123;0&#125;&#41;; &#160; &#160; if &#40;$n &#60; 128&#41; &#123; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Hey it was problem before I see this solution, to pass charactes to PHP like numbers, basicly because Flash use <strong>fromCharCode</strong> in UTF-8 format and PHP do <strong>chr</strong> function work in ASCII.</p>
<p>So here is the script solution:</p>
<div class="codecolorer-container php default" 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 />35<br />36<br />37<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: #000000; font-weight: bold;">function</span> uniord<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$n</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">128</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$n</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// no conversion required</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">192</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$n</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">253</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// bad first byte || out of range</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$arr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">192</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// byte position =&gt; range from</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">224</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">3</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">240</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">4</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">248</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">5</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">252</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$arr</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span> <span style="color: #339933;">&gt;=</span> <span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// add byte to the 'char' array</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$char</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">128</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$range</span> &nbsp;<span style="color: #339933;">=</span> <span style="color: #000088;">$val</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// save some e-trees</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$retval</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$n</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$range</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">*</span> <span style="color: #990000;">pow</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">64</span><span style="color: #339933;">,</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$pow</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sizeof</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// invert key</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$retval</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$val</span> <span style="color: #339933;">*</span> <span style="color: #990000;">pow</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">64</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pow</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; <span style="color: #666666; font-style: italic;">// dark magic</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$retval</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>found on : <a href="http://pastebin.ca/1799714">Unnamed &#8211; post number 1799714</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/02/equal-function-string-fromcharcode-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>my CV is now written in LaTeX</title>
		<link>http://blog.stanislavstankov.com/2010/02/my-cv-is-now-written-in-latex/</link>
		<comments>http://blog.stanislavstankov.com/2010/02/my-cv-is-now-written-in-latex/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 09:05:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=227</guid>
		<description><![CDATA[my CV I used MiKTeX 2.8 Setup to compile it on Windows 7. Soruce file of my CV Note: you need to compile it in XeLatex. Also there is file that u need to add in the same dir as &#8220;cv.tex&#8221;. It is the image in CV. You can download it here: but use it [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://blog.stanislavstankov.com/wp-content/uploads/2010/02/cv.pdf'>my CV</a></p>
<p>I used <a href="http://miktex.org/">MiKTeX 2.8 Setup</a> to compile it on Windows 7.<br />
<a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/cv.tex">Soruce file</a> of my CV</p>
<p>Note: you need to compile it in XeLatex. Also there is file that u need to add in the same dir as &#8220;cv.tex&#8221;. It is the image in CV. You can download it here:<br />
<div id="attachment_233" class="wp-caption aligncenter" style="width: 280px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/ace.png"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/ace.png" alt="ace" title="ace" width="270" height="80" class="size-full wp-image-233" /></a><p class="wp-caption-text">ace</p></div><br />
but use it only for training purpose otherwise you violate the trademark rights</p>
<p>Used links:<br />
<a href="http://nitens.org/taraborelli/cvtex">Typesetting your academic CV in L<sup>a</sup>T<sub>e</sub>X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/02/my-cv-is-now-written-in-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>welcome page source</title>
		<link>http://blog.stanislavstankov.com/2010/02/welcome-page-source/</link>
		<comments>http://blog.stanislavstankov.com/2010/02/welcome-page-source/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 10:46:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=222</guid>
		<description><![CDATA[Several friends ask me to provide them the source for welcame page because they like it. So I&#8217;m posting it into my blog, so that everyone that like it take. All you need to change it in: 12345678910package com.stanislavstankov.data &#123; &#160; &#160; &#160; &#160; public final class Data &#123; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Several friends ask me to provide them the source for welcame page because they like it.<br />
So I&#8217;m posting it into my blog, so that everyone that like it take.</p>
<div id="attachment_223" class="wp-caption aligncenter" style="width: 479px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page.zip"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/what-it-is-in-the-box.jpg" alt="what it is in the box" title="What it is in the box. Click to download .zip file" width="469" height="296" class="size-full wp-image-223" /></a><p class="wp-caption-text">what it is in the box</p></div>
<p>All you need to change it in:</p>
<div class="codecolorer-container actionscript3 default" 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 /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>stanislavstankov<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> final <span style="color: #9900cc; font-weight: bold;">class</span> Data <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">var</span> footer<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;StanislavStankov.com © 2007-&quot;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Date</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">fullYearUTC</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> <span style="color: #990000;">&quot; All rights reserved.&quot;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;Stanislav Stankov&quot;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">caption</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">'&lt;pro nick=&quot;dfm&quot; type=&quot;flash&quot; class=&quot;guru&quot; style=&quot;hero&quot; /&gt;'</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">var</span> button_arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;enter my portfolio&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;http://portfolio.stanislavstankov.com&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;enter my blog&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;http://blog.stanislavstankov.com&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<p>To add more then 1 or just 1 button, or no button you need to change button_arr array. In array are added in sequence button_label, button_link.<br />
to have 3 buttons you need to</p>
<div class="codecolorer-container actionscript3 default" 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="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #6699cc; font-weight: bold;">var</span> button_arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #990000;">&quot;btn1&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;btn_url_1&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;btn2&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;btn_url_2&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;btn3&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;btn_url_3&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/02/welcome-page-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
		<item>
		<title>new welcome page</title>
		<link>http://blog.stanislavstankov.com/2010/02/new-welcome-page/</link>
		<comments>http://blog.stanislavstankov.com/2010/02/new-welcome-page/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 13:45:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.stanislavstankov.com/?p=210</guid>
		<description><![CDATA[Today I feel to replace the old welcome page when you go to index of www.stanisalvstankov.com. This is how it looked version 4 lets look at history for fun]]></description>
			<content:encoded><![CDATA[<p>Today I feel to replace the old welcome page when you go to index of <a href="http://www.stanisalvstankov.com">www.stanisalvstankov.com</a>. This is how it looked version 4<br />
<div id="attachment_211" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/v4-stanislav-stankov-page.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/v4-stanislav-stankov-page.jpg" alt="welcaome page version 4" title="v4 stanislav stankov page" width="500" height="500" class="size-full wp-image-211" /></a><p class="wp-caption-text">welcaome page version 4</p></div></p>
<p>lets look at history for fun</p>
<div id="attachment_213" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v1.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v1.jpg" alt="v1 stanislav stankov page" title="welcome page v1" width="500" height="500" class="size-full wp-image-213" /></a><p class="wp-caption-text">v1 stanislav stankov page</p></div>
<div id="attachment_214" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v2.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v2.jpg" alt="v2 stanislav stankov page" title="welcome page v2" width="500" height="500" class="size-full wp-image-214" /></a><p class="wp-caption-text">v2 stanislav stankov page</p></div>
<div id="attachment_215" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-A.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-A.jpg" alt="v3A stanislav stankov page" title="welcome page v3 A" width="500" height="191" class="size-full wp-image-215" /></a><p class="wp-caption-text">v3A stanislav stankov page</p></div>
<div id="attachment_216" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-B.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-B.jpg" alt="v3B stanislav stankov page" title="welcome page v3 B" width="500" height="191" class="size-full wp-image-216" /></a><p class="wp-caption-text">v3B stanislav stankov page</p></div>
<div id="attachment_217" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-C.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-C.jpg" alt="v3C stanislav stankov page" title="welcome page v3 C" width="500" height="191" class="size-full wp-image-217" /></a><p class="wp-caption-text">v3C stanislav stankov page</p></div>
<div id="attachment_218" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-D.jpg"><img src="http://blog.stanislavstankov.com/wp-content/uploads/2010/02/welcome-page-v3-D.jpg" alt="v3D stanislav stankov page" title="welcome page v3 D" width="500" height="191" class="size-full wp-image-218" /></a><p class="wp-caption-text">v3D stanislav stankov page</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.stanislavstankov.com/2010/02/new-welcome-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by/2.5/bg/</creativeCommons:license>
	</item>
	</channel>
</rss>
