<?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>Sa fie cu folos ... &#187; Programare</title>
	<atom:link href="http://www.rbenea.ro/category/programare/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rbenea.ro</link>
	<description>Sper sa fie cu folos ...</description>
	<lastBuildDate>Wed, 05 May 2010 14:57:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cross domain and Firebug</title>
		<link>http://www.rbenea.ro/2010/05/05/cross-domain-and-firebug/</link>
		<comments>http://www.rbenea.ro/2010/05/05/cross-domain-and-firebug/#comments</comments>
		<pubDate>Wed, 05 May 2010 14:55:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programare]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.rbenea.ro/?p=33</guid>
		<description><![CDATA[ajax, cross domain, firebug]]></description>
			<content:encoded><![CDATA[<p>Just a quick note: if you are playing with AJAX calls and you see in the Firebug console the request headers but the response is empty (no headers, no content) then most probably you have a cross domain issue.</p>
<p>The domain and port of the server that served the page must be the same with the server that responds to the ajax request!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rbenea.ro/2010/05/05/cross-domain-and-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PHP5 Xdebug for use with Eclipse PDT on Ubuntu 8.10</title>
		<link>http://www.rbenea.ro/2009/05/27/install-php5-xdebug-for-use-with-eclipse-pdt-on-ubuntu-810/</link>
		<comments>http://www.rbenea.ro/2009/05/27/install-php5-xdebug-for-use-with-eclipse-pdt-on-ubuntu-810/#comments</comments>
		<pubDate>Wed, 27 May 2009 06:45:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programare]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xdebug]]></category>

		<guid isPermaLink="false">http://www.rbenea.ro/2009/05/27/install-php5-xdebug-for-use-with-eclipse-pdt-on-ubuntu-810/</guid>
		<description><![CDATA[If you use Eclipse PDT and you want to debug your PHP code using Xdebug just do this:
1. Install xdebug

1
apt-get install php5-xdebug

2. Append to /etc/php5/conf.d/xdebug.ini

1
2
3
4
5
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1  ; if debugging on remote server, put client IP here
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0

3. Restast Apache

1
/etc/init.d/apache2 restart

4.  Check to see if xdebug is working with phpinfo(). Create a php file and access it

1
&#60;php phpinfo&#40;&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>If you use Eclipse PDT and you want to debug your PHP code using Xdebug just do this:</p>
<p>1. Install xdebug</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-xdebug</pre></td></tr></table></div>

<p>2. Append to /etc/php5/conf.d/xdebug.ini</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">xdebug.remote_enable=<span style="color: #c20cb9; font-weight: bold;">true</span>
xdebug.remote_host=127.0.0.1  ; <span style="color: #000000; font-weight: bold;">if</span> debugging on remote server, put client IP here
xdebug.remote_port=<span style="color: #000000;">9000</span>
xdebug.remote_handler=dbgp
xdebug.profiler_enable=<span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>3. Restast Apache</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></td></tr></table></div>

<p>4.  Check to see if xdebug is working with phpinfo(). Create a php file and access it</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>php <span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rbenea.ro/2009/05/27/install-php5-xdebug-for-use-with-eclipse-pdt-on-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl inarray  function</title>
		<link>http://www.rbenea.ro/2008/04/18/perl-inarray-function/</link>
		<comments>http://www.rbenea.ro/2008/04/18/perl-inarray-function/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 07:15:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programare]]></category>

		<guid isPermaLink="false">http://www.rbenea.ro/2008/04/18/perl-inarray-function/</guid>
		<description><![CDATA[Taken from: http://assasiner.wordpress.com/2006/12/03/is-in-array/trackback/
You can use grep for this task like this: if(grep $_ eq $string, @array)
or  if you want regular expressions: if(grep /$string/, @array)
As an example:

1
2
3
4
5
6
7
#!/usr/bin/perl
my $string = &#34;in_helm&#34;;
my @array = qw/full_plate manteau boots two_handed_sword fin_helm/;
if&#40;grep $_ eq $string, @array&#41;
&#123;
print &#34;$string is in the array&#34;;
&#125;

]]></description>
			<content:encoded><![CDATA[<p>Taken from: <a href="http://assasiner.wordpress.com/2006/12/03/is-in-array/trackback/">http://assasiner.wordpress.com/2006/12/03/is-in-array/trackback/</a></p>
<p>You can use grep for this task like this: if(grep $_ eq $string, @array)<br />
or  if you want regular expressions: if(grep /$string/, @array)</p>
<p>As an example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$string</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;in_helm&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">@array</span> <span style="color: #339933;">=</span> <span style="color: #009966; font-style: italic;">qw/full_plate manteau boots two_handed_sword fin_helm/</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">grep</span> <span style="color: #0000ff;">$_</span> <span style="color: #b1b100;">eq</span> <span style="color: #0000ff;">$string</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">@array</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;$string is in the array&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.rbenea.ro/2008/04/18/perl-inarray-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
