<?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"
	>

<channel>
	<title>WeBBirU</title>
	<atom:link href="http://www.webbiru.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webbiru.com</link>
	<description>Web's Technology</description>
	<pubDate>Fri, 02 May 2008 03:06:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Catch keywords from Google with PHP script</title>
		<link>http://www.webbiru.com/2007/11/17/catch-keywords-from-google-with-php-script.html</link>
		<comments>http://www.webbiru.com/2007/11/17/catch-keywords-from-google-with-php-script.html#comments</comments>
		<pubDate>Sat, 17 Nov 2007 04:51:21 +0000</pubDate>
		<dc:creator>webbiru</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/11/17/catch-keywords-from-google-with-php-script.html</guid>
		<description><![CDATA[
&#60;?php
function get_search_phrase($referer){
$key_start = 0;
$search_phrase = &#8220;&#8221;;
// used by google, msn, alta vista, ask jeeves, all the web, teoma, wisenut, search.com
if (strpos($referer, &#8216;q=&#8217;) !==  false) $key_start = strpos($referer, &#8216;q=&#8217;) + 2;
// if present, get the search phrase from the referer
if ($key_start &#62; 0){
if (strpos($referer, &#8216;&#38;&#8217;, $key_start) !== false){
$search_phrase = substr($referer, $key_start, (strpos($referer, &#8216;&#38;&#8217;, $key_start) - [...]]]></description>
			<content:encoded><![CDATA[<p><code><br />
&lt;?php<br />
function get_search_phrase($referer){</code></p>
<p>$key_start = 0;<br />
$search_phrase = &#8220;&#8221;;</p>
<p>// used by google, msn, alta vista, ask jeeves, all the web, teoma, wisenut, search.com<br />
if (strpos($referer, &#8216;q=&#8217;) !==  false) $key_start = strpos($referer, &#8216;q=&#8217;) + 2;</p>
<p>// if present, get the search phrase from the referer<br />
if ($key_start &gt; 0){<br />
if (strpos($referer, &#8216;&amp;&#8217;, $key_start) !== false){<br />
$search_phrase = substr($referer, $key_start, (strpos($referer, &#8216;&amp;&#8217;, $key_start) - $key_start));<br />
} else {<br />
$search_phrase = substr($referer, $key_start);<br />
}<br />
}</p>
<p>$search_phrase = urldecode($search_phrase);<br />
return $search_phrase;</p>
<p>} // end get_search_phrase</p>
<p>$keyword = get_search_phrase($_SERVER[&#8221;HTTP_REFERER&#8221;])<a href="http://ads-spot.com">;</a><br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/11/17/catch-keywords-from-google-with-php-script.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>The Usage of Quotation mark for PHP Script Optimization</title>
		<link>http://www.webbiru.com/2007/11/16/the-usage-of-quotation-mark-for-php-script-optimization.html</link>
		<comments>http://www.webbiru.com/2007/11/16/the-usage-of-quotation-mark-for-php-script-optimization.html#comments</comments>
		<pubDate>Fri, 16 Nov 2007 02:12:51 +0000</pubDate>
		<dc:creator>webbiru</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/11/16/the-usage-of-quotation-mark-for-php-script-optimization.html</guid>
		<description><![CDATA[The usage of quotation mark in script PHP very often we meet, maybe can be every script that we make existed the usage of quotation mark referred.

In PHP the usage of quotation mark differentiated between single quotation mark and double quote. This Difference is made not without meaning and its use each can we apply [...]]]></description>
			<content:encoded><![CDATA[<p>The usage of quotation mark in script PHP very often we meet, maybe can be every script that we make existed the usage of quotation mark referred.<br />
<span id="more-101"></span><br />
In PHP the usage of quotation mark differentiated between single quotation mark and double quote. This Difference is made not without meaning and its use each can we apply in a script PHP we so it&#8217;s make script PHP we become quicker execute its.</p>
<p>Single Quotation mark<br />
Use single quotation mark just for strings that not existed variable in it, so strings that produced among quotation mark referred is same precisely by what written.</p>
<p><code>example:<br />
$str_cat = 'cat';<br />
echo '$str_cat'; // the result fixed $str_cat</code></p>
<p>Variable $str_cat untranslated by PHP as the variable in single quotation mark.</p>
<p>Double quote<br />
Use double quote just for strings that existed variable in it, so variable in it will be translated in front by PHP so strings that released is end result from existing strings together variable that has been translated.</p>
<p><code>example:<br />
$str_cat = 'cat';<br />
echo "$str_cat"; // the result becomes cat</code></p>
<p>Nevertheless often we too engross use this double quote even in it not existed variable that must translated, so it&#8217;s make script we longer execute its are compared to if we use quotation mark in &#8216;more&#8217; correctness. Such as those which already I explain above, that double quote will confiscate longer time even only so much milisecond, nevertheless if request to script that has reached hundreds of every second remain to be just will come into question. So, now start familiarize to differentiate the usage of quotation mark referred as so our PHP scripts can be more efficient and thrift to computer resource get with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/11/16/the-usage-of-quotation-mark-for-php-script-optimization.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Shuffle Function in Array</title>
		<link>http://www.webbiru.com/2007/11/14/shuffle-function-in-array.html</link>
		<comments>http://www.webbiru.com/2007/11/14/shuffle-function-in-array.html#comments</comments>
		<pubDate>Tue, 13 Nov 2007 23:48:54 +0000</pubDate>
		<dc:creator>webbiru</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/11/14/shuffle-function-in-array.html</guid>
		<description><![CDATA[This function randomizes the order of the elements in an array also used together with srand() function.
shuffle() example:

]]></description>
			<content:encoded><![CDATA[<p>This function randomizes the order of the elements in an array also used together with srand() function.</p>
<p>shuffle() example:<br />
<code><br />
<?php<br />
$ar_value = range('A','F'); // create and fill the elements of $sar_value = array('A','B',...'F');<br />
echo "First value: <br />\n&#8221;;<br />
WHILE(list($key,$value) = each($ar_value)){<br />
echo &#8220;Index[ {$key} ] => $value <br />\n&#8221;;<br />
}<br />
echo &#8220;<br />\n&#8221;;<br />
echo &#8220;After shuffle():<br />\n&#8221;;<br />
srand((float)microtime()*1000000);<br />
shuffle($ar_value);<br />
WHILE(list($key,$value) = each($ar_value)){<br />
echo &#8220;Index[ {$key} ] => $value <br />\n&#8221;;<br />
}<br />
?><br />
</code></p>
<p>And the result of the code above:</p>
<p>First value:<br />
Index[ 0 ] => A<br />
Index[ 1 ] => B<br />
Index[ 2 ] => C<br />
Index[ 3 ] => D<br />
Index[ 4 ] => E<br />
Index[ 5 ] => F</p>
<p>After shuffle():<br />
Index[ 0 ] => C<br />
Index[ 1 ] => B<br />
Index[ 2 ] => A<br />
Index[ 3 ] => F<br />
Index[ 4 ] => D<br />
Index[ 5 ] => E</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/11/14/shuffle-function-in-array.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Squid-Password Authentication Using NCSA</title>
		<link>http://www.webbiru.com/2007/09/07/squid-password-authentication-using-ncsa.html</link>
		<comments>http://www.webbiru.com/2007/09/07/squid-password-authentication-using-ncsa.html#comments</comments>
		<pubDate>Fri, 07 Sep 2007 07:15:02 +0000</pubDate>
		<dc:creator>roni</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/09/07/squid-password-authentication-using-ncsa.html</guid>
		<description><![CDATA[Anda bisa mengatur Squid untuk menanyakan para pemakai untuk satu username dan password. Squid datang dengan satu program yang disebut ncsa_auth yang membaca NCSA-compliant apapun meng-enkripsi file password. Anda bisa menggunakan program htpasswd yang datang meng-install dengan Apache untuk menciptakan password anda. Berikut cara membuatnya:

1) Buat file password. Nama file password harus /etc/squid/squid_passwd, dan anda [...]]]></description>
			<content:encoded><![CDATA[<p>Anda bisa mengatur Squid untuk menanyakan para pemakai untuk satu username dan password. Squid datang dengan satu program yang disebut ncsa_auth yang membaca NCSA-compliant apapun meng-enkripsi file password. Anda bisa menggunakan program htpasswd yang datang meng-install dengan Apache untuk menciptakan password anda. Berikut cara membuatnya:<br />
<span id="more-98"></span><br />
1) Buat file password. Nama file password harus /etc/squid/squid_passwd, dan anda perlu untuk meyakinkan itu dapat dibaca universal.<br />
<code><br />
[root@bigboy tmp]# touch /etc/squid/squid_passwd<br />
[root@bigboy tmp]# chmod o+r /etc/squid/squid_passwd<br />
</code></p>
<p>2) Gunakan program htpasswd untuk menambahkan user ke file password. Anda bisa menambahkan para user setiap saat tanpa harus merestart Squid. Dalam hal ini, anda menambahkan satu username www:</p>
<p><code><br />
[root@bigboy tmp]# htpasswd /etc/squid/squid_passwd www<br />
New password:<br />
Re-type new password:<br />
Adding password for user www<br />
[root@bigboy tmp]#<br />
</code></p>
<p>3) Temukan file ncsa_auth menggunakan perintah locate<a href="http://ads-spot.com">.</a><br />
<code>[root@bigboy tmp]# locate ncsa_auth<br />
/usr/lib/squid/ncsa_auth<br />
[root@bigboy tmp]#</code></p>
<p>4) Edit squid.conf; khususnya, anda perlu untuk mendefinisikan program autentikasi di squid.conf, dalam hal ini ncsa_auth. Berikutnya, buat satu ACL bernama ncsa_users dengan kata kunci REQUIRED dimana memaksa Squid untuk menggunakan NCSA auth_param metoda yang anda definisikan sebelumnya. Akhirnya, buat satu masukan http_access yang memungkinkan lalu lintas yang cocok dengan masukan ncsa_users ACL . Berikut contoh autentikasi user sederhana; urutan statement merupakan hal yang penting:<br />
<code># Add this to the auth_param section of squid.conf<br />
#<br />
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd</code></p>
<p>#<br />
# Add this to the bottom of the ACL section of squid.conf<br />
#<br />
acl ncsa_users proxy_auth REQUIRED</p>
<p>#<br />
# Add this at the top of the http_access section of squid.conf<br />
#<br />
http_access allow ncsa_users</p>
<p>5) Ini memerlukan autentikasi password dan memungkinkan akses hanya selama jam kerja. Sekali lagi, urutan statement adalah penting:<code><br />
#<br />
# Add this to the auth_param section of squid.conf<br />
#<br />
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd</code></p>
<p>#<br />
# Add this to the bottom of the ACL section of squid.conf<br />
#<br />
acl ncsa_users proxy_auth REQUIRED<br />
acl business_hours time M T W H F 9:00-17:00</p>
<p>#<br />
# Add this at the top of the http_access section of squid.conf<br />
#<br />
http_access allow ncsa_users business_hours</p>
<p>Ingatlah untuk merestart Squid sehingga dapat diperoleh efek dari perubahan yang dilakukan.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/09/07/squid-password-authentication-using-ncsa.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Making Your Squid Server Transparent To Users</title>
		<link>http://www.webbiru.com/2007/09/06/making-your-squid-server-transparent-to-users.html</link>
		<comments>http://www.webbiru.com/2007/09/06/making-your-squid-server-transparent-to-users.html#comments</comments>
		<pubDate>Thu, 06 Sep 2007 08:55:49 +0000</pubDate>
		<dc:creator>roni</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/09/06/making-your-squid-server-transparent-to-users.html</guid>
		<description><![CDATA[It is possible to limit HTTP Internet access to only the Squid server without having to modify the browser settings on your client PCs. This called a transparent proxy configuration. It is usually achieved by configuring a firewall between the client PCs and the Internet to redirect all HTTP (TCP port 80) traffic to the [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to limit HTTP Internet access to only the Squid server without having to modify the browser settings on your client PCs. This called a transparent proxy configuration. It is usually achieved by configuring a firewall between the client PCs and the Internet to redirect all HTTP (TCP port 80) traffic to the Squid server on TCP port 3128, which is the Squid server&#8217;s default TCP port.</p>
<p><a title="Squid_Transparent_Proxy_Configuration" name="Squid_Transparent_Proxy_Configuration"></a></p>
<h3> <span class="mw-headline">Squid Transparent Proxy Configuration</span></h3>
<p>Your first step will be to modify your squid.conf to create a transparent proxy. The procedure is different depending on your version of Squid.<span id="more-97"></span></p>
<p><strong>Prior to version 2.6:</strong> In older versions of Squid, transparent proxy was achieved through the use of the httpd_accel options which were originally developed for http acceleration. In these cases, the configuration syntax would be as follows:</p>
<pre>httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on</pre>
<p><strong>Version 2.6 and Beyond:</strong> Newer versions of Squid simply require you to add the word &#8220;transparent&#8221; to the default &#8220;http_port 3128&#8243; statement. In this example, Squid not only listens on TCP port 3128 for proxy connections, but will also do so in transparent mode.</p>
<pre>http_port 3128 transparent</pre>
<p><a title="Configuring_iptables_to_Support_the_Squid_Transparent_Proxy" name="Configuring_iptables_to_Support_the_Squid_Transparent_Proxy"></a></p>
<h3> <span class="mw-headline">Configuring iptables to Support the Squid Transparent Proxy</span></h3>
<p>The examples below are based on the discussion of Linux iptables in Chapter 14, &#8220;<a href="http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables" title="Quick HOWTO : Ch14 : Linux Firewalls Using iptables">Linux Firewalls Using iptables</a>&#8220;. Additional commands may be necessary for you particular network topology.</p>
<p>In both cases below, the firewall is connected to the Internet on interface eth0 and to the home network on interface eth1. The firewall is also the default gateway for the home network and handles network address translation on all the network&#8217;s traffic to the Internet.</p>
<p>Only the Squid server has access to the Internet on port 80 (HTTP), because all HTTP traffic, except that coming from the Squid server, is redirected.</p>
<p>If the Squid server and firewall are the same server, all HTTP traffic from the home network is redirected to the firewall itself on the Squid port of 3128 and then only the firewall itself is allowed to access the Internet on port 80.</p>
<pre>iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80
        -j REDIRECT --to-port 3128
iptables -A INPUT -j ACCEPT -m state
        --state NEW,ESTABLISHED,RELATED -i eth1 -p tcp
        --dport 3128
iptables -A OUTPUT -j ACCEPT -m state
        --state NEW,ESTABLISHED,RELATED -o eth0 -p tcp
        --dport 80
iptables -A INPUT -j ACCEPT -m state
        --state ESTABLISHED,RELATED -i eth0 -p tcp
        --sport 80
iptables -A OUTPUT -j ACCEPT -m state
        --state ESTABLISHED,RELATED -o eth1 -p tcp
        --sport 80</pre>
<p><strong>Note:</strong> This example is specific to HTTP traffic. You won&#8217;t be able to adapt this example to support HTTPS web browsing on TCP port 443, as that protocol specifically doesn&#8217;t allow the insertion of a &#8220;man in the middle&#8221; server for security purposes. One solution is to add IP masquerading statements for port 443, or any other important traffic, immediately after the code snippet. This will allow non HTTP traffic to access the Internet without being cached by Squid.</p>
<p>If the Squid server and firewall are different servers, the statements are different. You need to set up iptables so that all connections to the Web, not originating from the Squid server, are actually converted into three connections; one from the Web browser client to the firewall and another from the firewall to the Squid server, which triggers the Squid server to make its own connection to the Web to service the request. The Squid server then gets the data and replies to the firewall which then relays this information to the Web browser client. The iptables program does all this using these NAT statements:</p>
<pre>iptables -t nat -A PREROUTING -i eth1 -s ! 192.168.1.100
        -p tcp --dport 80 -j DNAT --to 192.168.1.100:3128
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.1.0/24
        -d 192.168.1.100 -j SNAT --to 192.168.1.1
iptables -A FORWARD -s 192.168.1.0/24 -d 192.168.1.100
        -i eth1 -o eth1 -m state
         --state NEW,ESTABLISHED,RELATED
        -p tcp --dport 3128 -j ACCEPT
 iptables -A FORWARD -d 192.168.1.0/24 -s 192.168.1.100
        -i eth1 -o eth1 -m state --state ESTABLISHED,RELATED
        -p tcp --sport 3128 -j ACCEPT</pre>
<p>In the first statement all HTTP traffic from the home network except from the Squid server at IP address 192.168.1.100 is redirected to the Squid server on port 3128 using destination NAT. The second statement makes this redirected traffic also undergo source NAT to make it appear as if it is coming from the firewall itself. The FORWARD statements are used to ensure the traffic is allowed to flow to the Squid server after the NAT process is complete. The unusual feature is that the NAT all takes place on one interface; that of the home network (eth1).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/09/06/making-your-squid-server-transparent-to-users.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Control the playhead of a MovieClip using ActionScript</title>
		<link>http://www.webbiru.com/2007/09/03/control-the-playhead-of-a-movieclip-using-actionscript.html</link>
		<comments>http://www.webbiru.com/2007/09/03/control-the-playhead-of-a-movieclip-using-actionscript.html#comments</comments>
		<pubDate>Mon, 03 Sep 2007 01:48:29 +0000</pubDate>
		<dc:creator>roni</dc:creator>
		
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/09/03/control-the-playhead-of-a-movieclip-using-actionscript.html</guid>
		<description><![CDATA[&#160;

In this tutorial it will be analized how can be controlled the playhead of a MovieClip using  ActionScript play() and stop() methods.
1. Create a new Flash document 400&#215;300 dimensions
 2. Create two new layers
Rename the layers actions, movie, button starting from the top (like in the picture below).

3. Draw a circle
In the first frame [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 1px; float: left">&nbsp;</p>
<h2><img src="http://www.tutorial5.com/images/stories/css_flash/playhead_logo_50x50.gif" alt="playhead_logo_50x50.gif" style="margin: 5px; float: left" title="playhead_logo_50x50.gif" height="50" width="50" /></h2>
<p>In this tutorial it will be analized how can be controlled the playhead of a MovieClip using  <strong><a href="http://www.tutorial5.com/component/option,com_rd_glossary/task,view/id,15/" style="text-decoration: none; color: #000000" title="ActionScript is a scripting language based on the ECMAScript, primarily used to develop software for Adobe Flash. ActionScript peaked with it  most important realease ActionScript 2.0   ">ActionScript</a> play() and stop()</strong> methods.<span id="more-96"></span></p>
<h2>1. Create a new Flash document 400&#215;300 dimensions</h2>
<h2> 2. Create two new layers</h2>
<p>Rename the layers <em><strong>actions</strong></em>, <em><strong>movie</strong></em>, <em><strong>button</strong></em> starting from the top (like in the picture below).</p>
<p><img src="http://www.tutorial5.com/images/stories/css_flash/playhead1.gif" alt="playhead1.gif" style="margin: 5px" title="playhead1.gif" height="57" width="157" /></p>
<h2>3. Draw a circle<!--more--></h2>
<p>In the first frame of the <em><strong>movie</strong></em> layer use the <strong>Oval Tool (O)</strong> from the <strong>Tools Panel</strong> to draw a circle about 40pxx40px (hold <strong>Shift</strong> key pressed to draw a perfect circle). Select none for <strong>Stroke Color</strong> and what do you wish for <strong>Fill Color</strong>.</p>
<h2>4. Convert the circle to a MovieClip</h2>
<p>Select the circle and choose <strong>Modify &gt;&gt; Convert to Symbol (F8)</strong>. In the <strong>Convert to Symbol </strong>window that appear choose <strong>MovieClip</strong> as <strong>Type</strong>, give it a name of <strong>ballMC</strong> and choose also center for Registration point like in the following image:</p>
<p><img src="http://www.tutorial5.com/images/stories/css_flash/playhead2.gif" alt="playhead2.gif" style="margin: 5px" title="playhead2.gif" height="137" width="408" /></p>
<h2>5. Go to the <strong>Poperties panel</strong> and give it an instance name of <em><strong>ball_mc</strong></em></h2>
<h2>6. Edit in Place</h2>
<p>Now right-click on the <em><strong>ball_mc</strong></em> and choose <strong>Edit in Place</strong> or double-click it. You are in the Edit Mode for ballMC now.</p>
<p><img src="http://www.tutorial5.com/images/stories/css_flash/playhead3.gif" alt="playhead3.gif" style="margin: 5px" title="playhead3.gif" height="31" width="143" /></p>
<h2>7. Convert the ball to a MovieClip</h2>
<p>Select the ball and choose again <strong>Modify &gt;&gt; Convert to Symbol (F8).</strong> In the <strong>Convert to Symbol</strong> window choose same options like above and give it a name of <strong><em>ball2MC</em></strong>.</p>
<h2> 8. Now we&#8217;ll do some animation with the ball</h2>
<p>Go to in the first frame of the Layer1 and in the <strong>Properties panel</strong> choose <strong>Tween:Motion</strong>. Go to the frame 30 and right-click &gt;&gt; Insert Keyframe (F6). Go to the frame 60 too and repeat the step.</p>
<h2>9. Change the position of the ball</h2>
<p>Go back to frame 30 and change the position on the ball whetever you wish, but having at least 100 pixels from the original position.</p>
<h2>10. Insert a button</h2>
<p>Now click <strong>Scene 1</strong>. Go to the first frame of the button layer. Go to <strong>Window &gt;&gt; Common Libraries &gt;&gt; Buttons</strong>. Choose from here a what button you desire and drag it on the Stage. In the <strong>Properties panel</strong> give it an instance name of <em><strong>button_btn</strong></em>.</p>
<p><img src="http://www.tutorial5.com/images/stories/css_flash/playhead4.gif" alt="playhead4.gif" style="margin: 5px" title="playhead4.gif" height="200" width="356" /></p>
<h2>11. The ActionScript code</h2>
<p>Now go to the first frame of the <strong><em>actios</em></strong> layer. Open the <strong>Actions panel (F9)</strong> and put this <strong>ActionScript</strong> code in:<br />
<span class="command"> var contor:Number=0;</span></p>
<p><strong>// we use the contor variable to hold the state of the ball: 1 if it is stopped, 0 if the ball is playing</strong></p>
<p class="command"> button_btn.onRelease=function(){<br />
if (contor==1){<br />
ball_mc.play(); contor=0;</p>
<p><strong>// if the ball MovieClip is stopped we use the play() method to make it move </strong></p>
<p class="command"> }<br />
else if (contor==0){<br />
ball_mc.stop();<br />
contor=1;<br />
}<br />
}<br />
<strong> // if the ball MovieClip is playing we use the stop() method to stop it</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/09/03/control-the-playhead-of-a-movieclip-using-actionscript.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Moving an object using the arrow key in Adobe Flash 8</title>
		<link>http://www.webbiru.com/2007/09/03/moving-an-object-using-the-arrow-key-in-adobe-flash-8.html</link>
		<comments>http://www.webbiru.com/2007/09/03/moving-an-object-using-the-arrow-key-in-adobe-flash-8.html#comments</comments>
		<pubDate>Mon, 03 Sep 2007 01:41:19 +0000</pubDate>
		<dc:creator>roni</dc:creator>
		
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/09/03/moving-an-object-using-the-arrow-key-in-adobe-flash-8.html</guid>
		<description><![CDATA[This tutorial is about how to move an object using the LEFT, RIGHT, UP and DOWN  heys in Adobe Flash 8. 1. Create a new Flash8 document with 400&#215;300 dimensions. Save it as flash8keys.fla.
2. Insert a new layer. Rename layers actions and object like in the picture below:

3. In the first frame of the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.tutorial5.com/images/stories/css_flash/flashkey_logo_50x50.gif" alt="flashkey_logo_50x50.gif" style="margin: 5px; float: left" title="flashkey_logo_50x50.gif" height="50" width="50" />This tutorial is about how to move an object using the LEFT, RIGHT, UP and DOWN  heys in Adobe Flash 8. 1. Create a new Flash8 document with 400&#215;300 dimensions. Save it as flash8keys.fla.<br />
2. Insert a new layer. Rename layers actions and object like in the picture below:<span id="more-95"></span><br />
<img src="http://www.tutorial5.com/images/stories/css_flash/flashkey1.gif" alt="flashkey1.gif" style="margin: 5px" title="flashkey1.gif" height="44" width="175" /><br />
3. In the first frame of the object layer go to File&gt;&gt;Import&gt;&gt;Import to Stage (Ctrl+R) and insert the smiley picture below:<br />
<img src="http://www.tutorial5.com/images/stories/css_flash/flashkey2.gif" alt="flashkey2.gif" style="margin: 5px" title="flashkey2.gif" height="89" width="89" /></p>
<p>4. Select the smiley picture and choose Modify&gt;&gt;Convert to Symbol (F8). In the Convert to Symbol window choose MovieClip as Type, asuure that registration point is center and give it smileyMC name. Now go  in the Properties panel and give it an instance name of smiley_mc.</p>
<p>5. In the first frame of the actions layer choose Window&gt;&gt;Actions (F9) and insert the <a href="http://www.tutorial5.com/component/option,com_rd_glossary/task,view/id,15/" style="text-decoration: none; color: #000000" title="ActionScript is a scripting language based on the ECMAScript, primarily used to develop software for Adobe Flash. ActionScript peaked with it  most important realease ActionScript 2.0   ">ActionScript</a> code below:</p>
<p>var KeyListener:Object = new Object();<br />
KeyListener.onKeyDown = function():Void {<br />
if(Key.isDown(Key.LEFT)){<br />
if (smiley_mc._x&gt;50){<br />
smiley_mc._x-=5;<br />
}<br />
}<br />
if(Key.isDown(Key.RIGHT)){<br />
if (smiley_mc._x&lt;350){<br />
smiley_mc._x+=5;<br />
}<br />
}<br />
if(Key.isDown(Key.UP)){<br />
if (smiley_mc._y&gt;50){<br />
smiley_mc._y-=5;<br />
}<br />
}<br />
if(Key.isDown(Key.DOWN)){<br />
if (smiley_mc._y&lt;250){<br />
smiley_mc._y+=5;<br />
}<br />
}<br />
};<br />
Key.addListener(KeyListener);</p>
<p>6. Now let&#8217;s see what the previous ActionScript code do. First we create a Flash listener object to listen the onKeyDown event. onKeyDown() event handler is invoked when a keyboard key is pressed.</p>
<p>If a key is pressed we analize if one of the LEFT, RIGHT, UP or DOWN key is pressed.<br />
Let&#8217;s take the case f the UP key (all the other cases are similar).</p>
<p>if(Key.isDown(Key.UP)){<br />
if (smiley_mc._y&gt;50){<br />
smiley_mc._y-=5;<br />
}<br />
}<br />
The smiley_mc._y is verified so that the movieclip not to get out of the stage. Then if the condition is realized we substract 5 from _y of smiley_mc.</p>
<p>7. Test the movie (Ctrl+Enter) now. Hope this flash tutorial helps you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/09/03/moving-an-object-using-the-arrow-key-in-adobe-flash-8.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>OPEN SOURCE MENUJU OPEN STANDARD</title>
		<link>http://www.webbiru.com/2007/08/20/open-source-menuju-open-standard.html</link>
		<comments>http://www.webbiru.com/2007/08/20/open-source-menuju-open-standard.html#comments</comments>
		<pubDate>Mon, 20 Aug 2007 06:57:40 +0000</pubDate>
		<dc:creator>susi</dc:creator>
		
		<category><![CDATA[Artikel]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/08/20/open-source-menuju-open-standard.html</guid>
		<description><![CDATA[Open standard merupakan parameter untuk menyamakan standard dari beberapa system peranti keras dan peranti lunak, agar dapat jalan dengan baik dan saling kompetibel satu samalainnya. Inisiatif pemanfaatan open standard dilakukan oleh banyak Negara di Eropa, karena kebanyakan penemuan-penemuan berasal dari sana. Walaupun dalam 20 tahun terakhir ini Amerika ikut meramaikan penemuan, terutama dibidang computer dan [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: justify">Open standard merupakan parameter untuk menyamakan standard dari beberapa system peranti keras dan peranti lunak, agar dapat jalan dengan baik dan saling kompetibel satu samalainnya. Inisiatif pemanfaatan open standard dilakukan oleh banyak Negara di Eropa, karena kebanyakan penemuan-penemuan berasal dari <st1:place w:st="on"><st1:city w:st="on">sana</st1:city></st1:place>. Walaupun dalam 20 tahun terakhir ini Amerika ikut meramaikan penemuan, terutama dibidang computer dan teknologi informasi.</p>
<p class="MsoNormal" style="text-align: justify">Penemuan yang selanjutnya dibuat open standard misalnya standard kominikasih ponsel GSM yang dibuat oleh 3<sup>rd</sup> Generation partnership project (3GPP) pada tahun 1998, slot computer PCI dan standard TCP/IP yang banyak digunakan saat ini. Yang menarik dari perkembangan open standard didunia teknologi informasi ini adalah keikutsertaan perusahaan peranti lunak raksasa kedalam kancah open standard. Dimulai dengan menyumbangkan standardnya kekomunitas sehingga dapat dimanfaatkan secara luas oleh produk yang bukan hanya dibuat oleh perusahaan yang bersangkutan. Pengakuan open standard dari “big guy” sekelas Microsoft merupakan satu kemajuan dalam dunia open source, karena konsep open standard sebetulnya mengacu pada open source, dimana kita tidak dibelenggu oleh satu vendor untuk dapat memanfaatkan suatu teknologi.</p>
<p class="MsoNormal" style="text-align: justify">Prinsip dasar open standard adalah :<span id="more-94"></span></p>
<ol style="margin-top: 0in" start="1" type="1">
<li class="MsoNormal" style="text-align: justify">Ketersediaan : Open standard tersedia untuk dibaca      dan dijalankan oleh semua pihak. Jadi apabila kita membuat suatu program      aplikasi, maka seluruh dokumentasi dan programnya tersedia dijaringan      internet secara Cuma-Cuma. Apabila kita ingin menjual program atau peranti      lunak yang dikembangkan sendiri, maka biayanya tidak melebihi harga wajib      buku sekolah.</li>
<li class="MsoNormal" style="text-align: justify">Memperbanyak pilihan pemakai : open standard membuat      suatu persaingan yang tidak memihak dalam pasar yang kompetitif dan tidak      mengunci pelanggan dalam satu grup atau penyedia layanan. Produk yang kita      set sebagai open standard harus memiliki implementasi yang luas didunia      bisnis, pendidikan danumum. produknya harus mempunyai rentang harga dari      yang paling mahal sampai yang gratis.</li>
<li class="MsoNormal" style="text-align: justify">Tidak ada royalty : untuk menggunakan open standard      tidak dikenakan bayaran atau royalty, hanya dikenakan biaya pada      sertifikasi yang dilakukan oleh organisasi yang menentukan standard      tersebut. Paten yang dimasukan kedalam standard harus bebas dari royalty      atau sertifikasinya harus serendah mungkin atau gratis, dengan kombinasi      fasilitas tambahan yang dapat dinilai tinggi harganya dengan merk berbeda.</li>
<li class="MsoNormal" style="text-align: justify">Tidak ada perbedaan : open standard dan organisasi yang      membawahinya tidak berpihak pada satu penyedia layanan atau pihak lainnya      dan melulu hanya mensyaratkan standard teknis dari implementasi penyedia      layanannya. Organisasi yang membawahinya harus menyediakan layanan dengan      biaya rendah atau tanpa biaya sama sekali untuk mendapatkan setifikasinya.</li>
<li class="MsoNormal" style="text-align: justify">Pengembangan atau bagian dari standar. Implementasi      dari open standard dapat dilebarkan, atau dikembangkan dalam berbagai      bentuk, tetapi organisasi yang mengeluarkan sertifikasi dapat menolak dan      menentukan persyaratan tambahan.</li>
<li class="MsoNormal" style="text-align: justify">Lisensi : untuk melindungi hak atas kekayaan      intelektual, open standard dapat menerapkan lisensi jika ada penambahan      kemampuan dari peranti yang bersangkutan. Lisensi tambahan diluasr      standard harus dipublikasikan sebagai referensi dari pengembangan      standard, dan disediakan lisensi juga untuk pembuatan, pendistribusian dan      penjualan peranti tersebut yang sesuai dengan pengembangannya.</li>
</ol>
<p class="MsoNormal" style="text-align: justify">Open source lebih ke implementasi dari peranti yang dibuat, sementara open standard yang lebih controversial disbanding open source, penajamannya lebih interface dari peranti yang dibuat.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/08/20/open-source-menuju-open-standard.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Optimasi PHP</title>
		<link>http://www.webbiru.com/2007/08/13/optimasi-php.html</link>
		<comments>http://www.webbiru.com/2007/08/13/optimasi-php.html#comments</comments>
		<pubDate>Mon, 13 Aug 2007 08:25:19 +0000</pubDate>
		<dc:creator>webbiru</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/08/13/optimasi-php.html</guid>
		<description><![CDATA[PHP merupakan bahasa pemrograman yang sangat cepat, namun masih banyak cara mengoptimasi PHP tidak hanya sekedar seberapa cepat eksekusi kode.

http://phplens.com/lens/php-book/optimizing-debugging-php.php
]]></description>
			<content:encoded><![CDATA[<p>PHP merupakan bahasa pemrograman yang sangat cepat, namun masih banyak cara mengoptimasi PHP tidak hanya sekedar seberapa cepat eksekusi kode.<br />
<span id="more-93"></span><br />
http://phplens.com/lens/php-book/optimizing-debugging-php.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/08/13/optimasi-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Kebutuhan seorang programer</title>
		<link>http://www.webbiru.com/2007/08/09/kebutuhan-seorang-programer.html</link>
		<comments>http://www.webbiru.com/2007/08/09/kebutuhan-seorang-programer.html#comments</comments>
		<pubDate>Thu, 09 Aug 2007 07:45:38 +0000</pubDate>
		<dc:creator>susi</dc:creator>
		
		<category><![CDATA[Artikel]]></category>

		<guid isPermaLink="false">http://www.webbiru.com/2007/08/09/kebutuhan-seorang-programer.html</guid>
		<description><![CDATA[Salah satu jenis pekerjaan yang dibutuhkan dalam sebuah perusahaan yang berbasis teknilogi informasi adalah Programmer, adalah sebuah software house. Bagaimana menciptakan sebuah lingkungan yang nyaman untuk bekerja bagi para programmer ini?
Kata orang, programer memiliki kebutuhan yang berbeda dalam bekerja dengan pekerja lainnya. Jika kita ambil asumsi hal ini benar maka apa kebutuhkan mereka tersebut ?
 Pertama, [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: justify">Salah satu jenis pekerjaan yang dibutuhkan dalam sebuah perusahaan yang berbasis teknilogi informasi adalah Programmer, adalah sebuah software house. Bagaimana menciptakan sebuah lingkungan yang nyaman untuk bekerja bagi para programmer ini?</p>
<p class="MsoNormal" style="text-align: justify">Kata orang, programer memiliki kebutuhan yang berbeda dalam bekerja dengan pekerja lainnya. Jika kita ambil asumsi hal ini benar maka apa kebutuhkan mereka tersebut ?</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Pertama, kebutuhan listrik dimeja programmer. Sering sekali meja programmer hanya disediakan satu soket (colokan) listrik<span>  </span>padahal kalau kita hitung kebutuhannya adalah untuk computer, monitor, lampu kerja, printer, keperluan lain-lain seperti adaptor speaker, charger ponel, dan adaptor notebook (jika menggunakan notebook juga). Jadi, paling sedikit dibutuhkan <st1:city w:st="on"><st1:place w:st="on">lima</st1:place></st1:city> buat soket listrik. Jika hanya disediakan satu sokep, maka akan ada power bar yang <st1:city w:st="on"><st1:place w:st="on">malang</st1:place></st1:city> melintang sehingga menimbulkan kekumuhan.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Kedua, akses internet melalui LAN. Jika programmer tersebut menggunakan computer dan notebook, maka sebaiknya disediakan dua kabel UTP yang siap digunakan dimasing-masing meja. Kebutuhan dua kabel UTP ini bias dikurangi denga menggunakan warless LAN dikantor, karena umumnya notebook saat ini sudah memiliki fitur wi-Fi. Namun beberapa tempat kerja tidak memperkenalkan adanya wireless LAN ini karena masalah keamanan data. Jika demikian maka sediakanlah dua buah kabel UTP untuk setiap meja.<span id="more-92"></span></p>
<p class="MsoNormal" style="text-align: justify">Akses internet merupakan salah satu kebutuhan utama programmer. Tanpa ada akses internet, programmer akan tidak semangat untuk dating kerja. <st1:city w:st="on"><st1:place w:st="on">Ada</st1:place></st1:city> kekhawatiran bahwa kalau ada akses ke Internet maka para pekerja ini akan menghabiskan waktunya untuk membaca e-mail, menjelajah internet, dan chatting. Tetapi disisi lain, tanpa akses internet mereka bias menjadi kurang produktif karena tidak bias melihat contoh-contoh program yang sudah dikembangkan oranglain. Inilah salah satu manfaat open source, kita tidak perlu mengulang aoa yang pernah dikerjakan oranglain.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Berikutnya yang dibutuhkan programmer adalah bahan bacaan : buku, referensi, dan majalah. Memang benar dengan adanya internet kebutuhan bahan bacaan dalam bentuk cetakan dapat menjadi berkurang, namun sering kali programmer lelah menatap layer computer dan ingin lepas dari computer sejenak/ membaca buku dan majalah merupakan salah satu cara “melepas”<st1:state w:st="on"><st1:place w:st="on">kan</st1:place></st1:state> lelah.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Hal lain yang cukup esensial adalah akses ke makanan dan minuman. Jika diharapkan programmer lebih banyak duduk bekerja didepan layer, maka sediakan sumber makanan dan minuman yang dapat mereka raih dengan mudah. Kalau mereka harus, maka akan banyak waktu yang terbuang. Itulah sebabnya ditempat kerja beberapa perusahaan terkenal disediakan tempat makan, kulkas dan pembuatan kopi.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Jenis makanan dan minuman ini harus diperhatikan agar para programmer ini tetap sehat dan produktif. Jika para programmer ini sakit, maka kita semua yang rugi. Jangan terlalu banyak menyediakan makanan yang kurang baik bagi kesehatan. Programmer cenderung untuk mengkonsumsi makanan yang mudah dia capai. Sayangnya biasanya ini adalah makanan junk food dan minuman kaleng/kotak/botol.</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Hal yang [aling sulit ditangani adalah rokok. Mungkin setengan dari jumlah programmer adalah perokok. Sulit mencampur tempat kerja bagi perokok dan bukan perokok. Perokok membutuhkan rokok ketika bekerja sementara bukan perokok tidak dapat bekerja jika ada asap rokok. Mungkin keduanya harus dipisahkan</p>
<p class="MsoNormal" style="text-align: justify"><o:p> </o:p>Jika kebutuhan itu dapat terpenuhi, harapannya para programmer dapat bekerja dengan gembira dan produktif. Suasana seperti ini menarik programmer yang bagus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webbiru.com/2007/08/09/kebutuhan-seorang-programer.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
