<?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>GS Design &#187; Linux</title>
	<atom:link href="http://www.gsdesign.ro/blog/category/a-jorney-through-the-unknown/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gsdesign.ro/blog</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Thu, 06 Jan 2011 22:28:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Replication / Mirroring as Master-master with Subversion using svnsync</title>
		<link>http://www.gsdesign.ro/blog/replication-mirroring-as-master-master-with-subversion-using-svnsync/</link>
		<comments>http://www.gsdesign.ro/blog/replication-mirroring-as-master-master-with-subversion-using-svnsync/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 20:29:38 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php advanced]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[replication]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svk]]></category>
		<category><![CDATA[svnsync]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=398</guid>
		<description><![CDATA[For me it all started when my VPS had an error and all my SVN repos were lost. Plus even though i had purchased a backup system from the hosting company that was suppose to do a full server backup automatic and incrementally, i only had a backup from 20 days earlier because the system [...]]]></description>
			<content:encoded><![CDATA[<p>For me it all started when my VPS had an error and all my SVN repos were lost. Plus even though i had purchased a backup system from the hosting company that was suppose to do a full server backup automatic and incrementally, i only had a backup from 20 days earlier because the system failed at that point in time and didnt run since.</p>
<p>But enough with my problems, at that point i decided to make a copy of my repos from the remote server to my local machine.<br />
And i would commit into the local one and it should automaticly sync to the remote one. Plus it would need to do this both ways and in real time since i had some external people commiting in the remote server. Easier said then done i camed to find out.</p>
<h3>The reasons why</h3>
<p>Well for me there are 3 main reasons:<br />
1. as a backup system ( dont want to be put in the 20 days old backup situation again )<br />
2. for faster commits and updates<br />
3. independent of the internet connection ( it hasnt failed in quite a while, but just in case, or for the times its a bit slow )</p>
<h3>The alternatives</h3>
<p>It seems that this topic is a bit popular, and there are a few places on the internet where people are interested in this. You can check out <a href="http://stackoverflow.com/questions/148625/how-to-get-master-master-replication-with-subversion">this question on stackoverflow</a> for one.</p>
<p><strong>1. Git-SVN</strong><br />
This is one alternative that a lot of people have been recommended. The benefits they are you get the best out of both worlds, you can still use the Subversion in the main repo, but you get the power of GIT for your local copy.<br />
Although this sounds very cool, i am more of a GUI guy and really enjoy the subversion integration in my IDE ( <a href="http://www.gsdesign.ro/blog/netbeans-review/">Netbeans</a> ) so i would have to pass this options.</p>
<p><strong>2. SVK</strong></p>
<blockquote><p>
svk is a decentralized version control system built with the robust Subversion filesystem. It supports repository mirroring, disconnected operation, history-sensitive merging, and integrates with other version control systems, as well as popular visual merge tools.
</p></blockquote>
<p>At first i read <a href="http://lajavaloca.wordpress.com/2008/06/03/using-svk-to-synchronize-svn-repositories/">this article</a> about SVK and it seemed to be what i was looking for. But after playing with it for a while i saw that i would need to have a single repo where all my comits would go and that would be synced to several outside repos. But i was looking for a way to have the exact replica of what it is on the remote server so in the case of a failure i could restore them from my backup.</p>
<p>If you are still interested in this you can also read <a href="http://svk.bestpractical.com/view/UsingSVKAsARepositoryMirroringSystem">this</a> and <a href="http://developer.mindtouch.com/User:PeteE/Synchronizing_SVN_Repositories_With_Svk">this</a>.</p>
<p><strong>3. svnsync + webdav proxy</strong><br />
I knew about svnsync but it only supports read-only copies of your repo. But after reading a small comment on stackoverflow i started looking and find out you can have read-write copies using svnsync and webdav proxy.<br />
What is basicly happening is that your local copy handles the read operations and it forwards the commits to the main repo.</p>
<p>There are a few tricky parts on this solution, that involve the locks and updating of all the replicas of the main repo. This are done by a series of hooks in the main repo.<br />
If youre interested in this solution you can find information about implementing it in this articles:<br />
<a href="http://www.tty1.net/blog/2007-08-26-subversion-proxy_en.html">Subversion transparent proxy with svnsync + webdav proxy</a><br />
<a href="http://www.rvo-consulting.com/2008/02/21/subversion-diy-write-through-proxy/">subversion diy write through proxy</a><br />
<a href="http://www.slideshare.net/normanmaurer/apacheconeusvnreplication">Subversion on-the-fly replication</a></p>
<h3>conclusion</h3>
<p>Honestly i don&#8217;t have one yet <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , but i plant to try using svnsnyc and see how that goes.<br />
I hope you got a big picture of what your options are and now you can decide what suits you best.</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/replication-mirroring-as-master-master-with-subversion-using-svnsync/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>audit_log_user_command(): Connection refused</title>
		<link>http://www.gsdesign.ro/blog/audit_log_user_command-connection-refused/</link>
		<comments>http://www.gsdesign.ro/blog/audit_log_user_command-connection-refused/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 18:54:22 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=396</guid>
		<description><![CDATA[This error happend to me when i runned a command on my Centos VPS. audit_log_user_command(): Connection refused And after some googling it seems that a lot of Centos users are running into this when executing SUDO. But it seens that this is a bug in Centos kernel, and its not fixed yet. My problem was [...]]]></description>
			<content:encoded><![CDATA[<p>This error happend to me when i runned a command on my Centos VPS. </p>
<blockquote><p>
audit_log_user_command(): Connection refused
</p></blockquote>
<p>And after some googling it seems that a lot of Centos users are running into this when executing SUDO.<br />
But it seens that this is a bug in Centos kernel, and its not fixed yet.<br />
My problem was that i was running the commands logged as root ( silly me ).<br />
Hope you are too, because otherwise i have no sollution for you <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> .</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/audit_log_user_command-connection-refused/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A TortoiseSVN replacement for Ubuntu</title>
		<link>http://www.gsdesign.ro/blog/a-tortoisesvn-replacement-for-ubuntu/</link>
		<comments>http://www.gsdesign.ro/blog/a-tortoisesvn-replacement-for-ubuntu/#comments</comments>
		<pubDate>Mon, 11 May 2009 21:55:17 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tortoise-svn]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=383</guid>
		<description><![CDATA[I haven&#8217;t wrote about this, but i am almost 100% a ubuntu user and have been working on ubuntu 8 and now the new 9 version for about 2 months now. And i got to say i am really happy about this move. But there is one thing i miss from Windows and that is [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t wrote about this, but i am almost 100% a ubuntu user <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  and have been working on ubuntu 8 and now the new 9 version for about 2 months now. And i got to say i am really happy about this move.</p>
<p>But there is one thing i miss from Windows and that is TortoiseSVN, and although i have tried a lot of unix SVN clients none of the seem to really do the trick for me. They all seem to lack some functionality or another.<br />
I know they big boys like to do all from the terminal command, but i am still a bash-fu wannabe so i still use GUI <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>After a lot of self pity and frustration when i tried to do some SVN operations, and a bit of googling and browsing i stumbled upon <a href="http://code.google.com/p/nautilussvn/">Nautilus SVN</a> and i was sold.</p>
<blockquote><p>
NautilusSvn is a Python extension for Nautilus which integrates a load of Subversion functionality into the GNOME Nautilus file manager, basically as a clone of the TortoiseSVN project on Windows.
</p></blockquote>
<p><a href="http://www.gsdesign.ro/blog/wp-content/uploads/2009/05/context_menu.png"><img src="http://www.gsdesign.ro/blog/wp-content/uploads/2009/05/context_menu-300x205.png" alt="context_menu" title="context_menu" width="300" height="205" class="aligncenter size-medium wp-image-384" /></a></p>
<p>Although still in Beta, it seems to have all the funcionality of TortoiseSVN and a good integration with Nautilus. Haven&#8217;t run into any bugs so far, so all is good <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Hope you like this as much as i did.<br />
Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/a-tortoisesvn-replacement-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>centos apc install error : apxs: command not found</title>
		<link>http://www.gsdesign.ro/blog/centos-apc-install-error-apxs-command-not-found/</link>
		<comments>http://www.gsdesign.ro/blog/centos-apc-install-error-apxs-command-not-found/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:04:21 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=346</guid>
		<description><![CDATA[I have been trying to install apc for the past 3 hours on my centos VPS and i was getting these error: Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (&#8211;enable-module=so); 3. &#8216;apxs&#8217; is not in your path. Try [...]]]></description>
			<content:encoded><![CDATA[<p>I have been trying to install apc for the past 3 hours on my centos VPS and i was getting these error:</p>
<blockquote><p>Sorry, I was not able to successfully run APXS. Possible reasons:</p>
<p>1. Perl is not installed;<br />
2. Apache was not compiled with DSO support (&#8211;enable-module=so);<br />
3. &#8216;apxs&#8217; is not in your path. Try to use &#8211;with-apxs=/path/to/apxs<br />
The output of apxs follows<br />
/root/tmp/pear/APC/configure: line 3263: apxs: command not found<br />
configure: error: Aborting<br />
ERROR: `/root/tmp/pear/APC/configure &#8211;with-apxs&#8217; failed</p></blockquote>
<p>after a alot of searching i finally found the solution.  I had to do a manual install.<br />
Asuming you are logged in as root you need to follow the following steps.</p>
<p><strong>1. Grab APC 3.0.8 </strong><br />
wget http://pecl.php.net/get/APC-3.0.8.tgz</p>
<p><strong>2.Extract files</strong><br />
gunzip -c APC-3.0.8.tgz </p>
<p><strong>3. change to directory:</strong><br />
cd APC-3.0.8</p>
<p><strong>4. Actual install</strong><br />
phpize<br />
./configure &#8211;enable-apc &#8211;enable-apc-mmap &#8211;with-apxs=/usr/local/apache/bin/apxs &#8211;with-php-config=/usr/bin/php-config<br />
make<br />
make install</p>
<p>take note that &#8211;with-apxs also specifies the location<br />
As for the rest as the config i am sure you already have opened a ton of pages telling how to do it, if you encountered this error.</p>
<p>Hope you find this page faster then i did.<br />
Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/centos-apc-install-error-apxs-command-not-found/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Install Error: Missing Dependency: perl(URI) &gt;= 1.17 is needed by package subversion</title>
		<link>http://www.gsdesign.ro/blog/install-error-missing-dependency-perluri-117-is-needed-by-package-subversion/</link>
		<comments>http://www.gsdesign.ro/blog/install-error-missing-dependency-perluri-117-is-needed-by-package-subversion/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 18:49:52 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php advanced]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=323</guid>
		<description><![CDATA[Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input : [root@servername ~]# yum install subversion But to my surprise i got an error Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion After a bit of googling i managed to [...]]]></description>
			<content:encoded><![CDATA[<p>Today i finally decided to go ahead with installing subversion, after a bit of reading i opened a ssh session and input :</p>
<blockquote><p>
[root@servername ~]# yum install subversion
</p></blockquote>
<p>But to my surprise i got an error <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<blockquote><p>
Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion
</p></blockquote>
<p>After a bit of googling i managed to find a solution on a forum and i thought to post it here, maybe other will find it faster <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>First we need to download the perl(URI) with version greater than 1.17 using the following command.</p>
<blockquote><p>
wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm
</p></blockquote>
<p>Then to install the perl package :</p>
<blockquote><p>
rpm -i perl-URI-1.35-3.noarch.rpm
</p></blockquote>
<p>That is it, you can now install and configure <a href="http://www.gsdesign.ro/blog/tag/subversion/">subversion</a> as normal.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/install-error-missing-dependency-perluri-117-is-needed-by-package-subversion/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>boxee &#8211; the new generation in media centers</title>
		<link>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/</link>
		<comments>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 22:23:17 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[boxee]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[media center]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=156</guid>
		<description><![CDATA[Just a few minutes ago i happened to tune into Chris Pirillo Ustream Chanel that was showing the GnomeDex conference, and it caught my attention right away. It was a presentation of a new media center software called boxee. boxee is a social media center. with boxee you can play videos, music and pictures from [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few minutes ago i happened to tune into <a href="http://chris.pirillo.com/">Chris Pirillo</a> Ustream Chanel that was showing the <a href="http://www.gnomedex.com/">GnomeDex</a> conference, and it caught my attention right away.</p>
<p>It was a presentation of a new media center software called <a href="http://boxee.tv/">boxee</a>.</p>
<blockquote><p>
boxee is a social media center. with boxee you can play videos, music and pictures from your PC or from the Internet. you can also share with your friends what albums you&#8217;re listening to, what movies and TV shows you&#8217;re watching, send recommendations and more.</p>
<p>boxee is designed to work with a remote control (it looks great on a big screen TV), but you can also control it using your keyboard.</p>
<p>once installed boxee will start scanning your local Movies, Music and Pictures folders automatically. boxee will attempt to bring artwork, reviews, cast, etc. for your media, so browsing your library becomes more useful and fun than looking at a list of files.</p>
<p>boxee is based on the best media center on the planet, xbmc.
</p></blockquote>
<p>If you havent figure it out what the fuss is about, well this media center will drive content right to your screen from services like youtube and last.fm and display it right on your screen, and above all it will let you know your friend activity on those services, get recomandation from your friends on what videos, shows to watch or what music to listen too.</p>
<p>Plus it can connect to other devices on your home network being computers, file storing servers or even mobile devices ( that have a way to comunicate on the network ) and pull in content from them as well : pictures, music or video.</p>
<p>I dont know if this has caught your attention, so i am going to add another BIG + &#8230; its OPEN-SOURCE, yes you heard right &#8230; open-source, plus it has versions for windows, mac and linux &#8230; how cool is that.</p>
<p>The only bad side is its in alpha state and hasnt opened download to everybody, you must register on the site to get a download link ( hope i receive one soon ).</p>
<p>Enjoy the screenshots and videos below.<br />
Cheers.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/NzXu05ZuvII&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/NzXu05ZuvII&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/MwQG-4kT7FE&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/MwQG-4kT7FE&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>

<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-album-view-screenshot/' title='boxee-album-view-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-album-view-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-album-view-screenshot" title="boxee-album-view-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-click-on-an-album/' title='boxee-click-on-an-album'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-click-on-an-album-150x150.png" class="attachment-thumbnail" alt="boxee-click-on-an-album" title="boxee-click-on-an-album" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-flickr-browsing-screenshot/' title='boxee-flickr-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-flickr-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-flickr-browsing-screenshot" title="boxee-flickr-browsing-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-home-screenshot/' title='boxee-home-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-home-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-home-screenshot" title="boxee-home-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-music-browsing-screenshot/' title='boxee-music-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-music-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-music-browsing-screenshot" title="boxee-music-browsing-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-video-browsing-screenshot/' title='boxee-video-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-video-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-video-browsing-screenshot" title="boxee-video-browsing-screenshot" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Error Documents with .htacces</title>
		<link>http://www.gsdesign.ro/blog/custom-error-documents-with-htacces/</link>
		<comments>http://www.gsdesign.ro/blog/custom-error-documents-with-htacces/#comments</comments>
		<pubDate>Sat, 24 May 2008 11:18:16 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php&mysql 101]]></category>
		<category><![CDATA[Web Aplications]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[documents]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=33</guid>
		<description><![CDATA[Some people only know about .htaccess utility in apache rewrite, but it can do more than that. For example it can help you specify your own Error Documents. When ever a browser makes a request for a web document ( webpage, files, images, css files etc) the server returns a header that contains an error [...]]]></description>
			<content:encoded><![CDATA[<p>Some people only know about .htaccess utility in apache rewrite, but it can do more than that. For example it can help you specify your own Error Documents. When ever a browser makes a request for a web document ( webpage, files, images, css files etc) the server returns a header that contains an error code that tells the browser details about the requests. I will list this codes below:</p>
<p><strong>Successful Client Requests</strong><br />
200    OK<br />
201    Created<br />
202    Accepted<br />
203    Non-Authorative Information<br />
204    No Content<br />
205    Reset Content<br />
206    Partial Content<br />
Client Request Redirected<br />
300    Multiple Choices<br />
301    Moved Permanently<br />
302    Moved Temporarily<br />
303    See Other<br />
304    Not Modified<br />
305    Use Proxy</p>
<p><strong>Client Request Errors</strong><br />
400    Bad Request<br />
401    Authorization Required<br />
402    Payment Required (not used yet)<br />
403    Forbidden<br />
404    Not Found<br />
405    Method Not Allowed<br />
406    Not Acceptable (encoding)<br />
407    Proxy Authentication Required<br />
408    Request Timed Out<br />
409    Conflicting Request<br />
410    Gone<br />
411    Content Length Required<br />
412    Precondition Failed<br />
413    Request Entity Too Long<br />
414    Request URI Too Long<br />
415    Unsupported Media Type</p>
<p><strong>Server Errors</strong><br />
500    Internal Server Error<br />
501    Not Implemented<br />
502    Bad Gateway<br />
503    Service Unavailable<br />
504    Gateway Timeout<br />
505    HTTP Version Not Supported</p>
<p>In order to In order to specify your own ErrorDocuments, you need to know these error codes, since you will need to specify for wich error code you want to assign a page.</p>
<p>But you wont need to specify an error page for all those codes, You only might want to do a custom error page for the most common of them like 404 and 500. Also most people do a custom Error Document for<br />
<strong>401 &#8211; Authorization Required</strong> ( for sections of the site that are protected by a folder password and somebody tries to enter a protected area without corect login details ),<br />
<strong>403 &#8211; Forbidden</strong> ( for example when someone is trying to access a folder withough an index option )<br />
<strong>400 &#8211; Bad Request</strong>, which is one of those generic kind of errors that people get to by doing some weird stuff with your URL or scripts.</p>
<p>The advantage of having custom error documents is that you can display to the user a custom page with the site layout ( instead of the simple default one ) and you can even build a script to make custom logs of this errors.</p>
<p>You shouldn&#8217;t make custom pages for all error codes, for example an ErrorDocument for code 200 would cause an infinite loop, whenever a page was found&#8230;this would not be good.</p>
<p>To specify your custom error documents, you will add a special command for this in the htaccess file:<br />
ErrorDocument [code] /directory/errorDocument.html</p>
<p>For example an error document for 404 would be:<br />
ErrorDocument 404 /errors/404.html</p>
<p>Now you told the server that when it has an error code of 404 to return the page http://yoursite.com/errors/notfound.html. The same principle apply's to all the codes.</p>
<p>As a small advice i would recommend you make a special folder for your error documents and also name them something that will show theyr error code and purpose. I put 404.html but you can do notFound.html for example. Also the error documents do not need to be html they can also be php,asp or other types of files.</p>
<p>If you dont want to make a special file you can add the html directly in .htaccess file<br />
ErrorDocument 401 "&lt;body&gt; You have to to be a member to view this page.</p>
<p>To do this you need to keep in mind :<br />
the ErrorDocument starts with a " but does not end with one ... that was not a typo <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
the command should be on one line, including the HTML</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/custom-error-documents-with-htacces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change php configuration on shared servers ?</title>
		<link>http://www.gsdesign.ro/blog/how-to-change-php-configuration-on-shared-servers/</link>
		<comments>http://www.gsdesign.ro/blog/how-to-change-php-configuration-on-shared-servers/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 20:38:48 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[php&mysql 101]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Web Aplications]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/2008/04/30/lang_enhow-to-change-php-configuration-on-shared-servers-lang_enlang_rocum-se-poate-schimba-configurarea-php-pe-un-server-shared-lang_ro/</guid>
		<description><![CDATA[Sometimes your application might require one or more specific php configurations changed from its current value in order to work properly. The most common of this is the requires global_registers flag off ( i have no idea why some servers keep it on ). If you are talking about a local sever running on your [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes your application might require one or more specific php configurations changed from its current value in order to work properly. The most common of this is the requires global_registers flag off ( i have no idea why some servers keep it on  ).</p>
<p>If you are talking about a local sever running on your computer or a server to witch you have root rights, the solution is quite simple : you just modify the PHP configuration file (php.ini) to your needs, restart the server &#8230; and voila job done.</p>
<p>But what if you are on a shared server. You cant just go and ask the servers support team to modify the configuration for you ( they couldnt even if they wanted to, because that will affect all the websites on there server and then there would be some angry folks on the chat really fast <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ).  Luckily the nice folks that designed the software running the server ( apache most of the time ) have thought of you and this situation and added a 2 possibilities for you to change the php configuration only localy without affecting the other websites hosted on the server.</p>
<h2>1. Creating a local PHP.ini file</h2>
<p>You just create a php.ini file in your domain root and add your configuration as if it was the php.ini from the actual server settings. This will overwrite the settings just for your domain. Getting back to our example where you want to disable register_globals flag off you  would add a line to the file like :</p>
<blockquote><p>“register_globals = off”</p></blockquote>
<h2>2. Using a .htaccess file</h2>
<p>The second way would be to use a .htaccess file ( some of you used to do URL rewrite with it ). Now for this you have to know a certain syntax :</p>
<blockquote><p> # to modify a flag attribute<br />
php_flag [name] [value]</p>
<p># to modify a value attribute<br />
php_value [name] [value]</p></blockquote>
<p>Again returning to our example : php_flag register_globals off</p>
<p>To check if your configuration has been changed you can use the phpinfo() function. Your new setting will appear on the local column.<br />
You should know that that not all servers support this methods of modifying the php configuration, some will only support one of them, so you might want to check this would your server support if it doesnt seem to work.</p>
<p>On another note not all php configuration can be changed locally. A full list of php configuration variables can be found on php official website at :</p>
<p>http://www.php.net/manual/en/ini.php#ini.list</p>
<p>The options that can be overwriten localy have the PHP_INI_PERDIR or PHP_INI_ALL Changeable column. The ones with PHP_INI_SYSTEM can only be changed by the php.ini from the php instalation directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/how-to-change-php-configuration-on-shared-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The first real Linux Contact ( Guide for other Windows Users )</title>
		<link>http://www.gsdesign.ro/blog/the-first-real-linux-contact-guide-for-other-windows-users/</link>
		<comments>http://www.gsdesign.ro/blog/the-first-real-linux-contact-guide-for-other-windows-users/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 10:10:19 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/2007/11/18/the-first-real-linux-contact-guide-for-other-windows-users/langswitch_lang/en</guid>
		<description><![CDATA[Even though i tried to install linux on my laptop several times, and have about 5 linux distribution in my CD colection, i never managed to stay to long in the linux enviroment. But it seem like the day has come for me to go fearsly into the unknown teritory of Linux. Recently i have [...]]]></description>
			<content:encoded><![CDATA[<p>Even though i tried to install linux on my laptop several times, and have about 5 linux distribution in my CD colection, i never managed to stay to long in the linux enviroment.</p>
<p>But it seem like the day has come for me to go fearsly  into the unknown teritory of Linux. Recently i have received the assignment to build a new network for a Mall to offer them internet service. And since in Romania people are still to to glad to spend money on licence software, we came to the conclusion that the best option was to install a linux OS on all the network computers. This will ensure that the store owners will save quite a few buck with all the software licenses.</p>
<p>So far so good i would say. From here  comes the tricky part, i had to find a linux distribution that had to be <strong>verry user friendly</strong>, since the users would have no knowledge of linux and all cammed from windows, have as much driver suport as possible ( to avoid any hardware recognition problems ) and preferable light weight ( to work OK on oldder desktops and laptops ).</p>
<p>So i took my little knoledge of linux and my trusted friend google and got to work <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . After a few hours of forum and reviews digging, i decided on 4 distribution to test:</p>
<p><strong>1. Linspire</strong></p>
<p>Seemed like a good distribution, and i read good things about it&#8217;s ability to make windows user at home with linux. I read a few bad reviews about it that question it&#8217;s stability, but the overall opinion was that it is a good distribution for first time windows users. I should mention that the distribution is not free, below there&#8217;s a link to buy it from amazon :<br />
<iframe src="http://rcm.amazon.com/e/cm?t=gs02c-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=B0007XYRUY&amp;fc1=FFFFFF&amp;IS2=1&amp;lt1=_blank&amp;lc1=0000FF&amp;bc1=FFFFFF&amp;bg1=5A5858&amp;f=ifr" style="width: 120px; height: 240px" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe><br />
I bought the Cd and i can say that indeed  for a windows user it&#8217;s a real help and will not drive a person away <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . I first install it on my desktop computer and it worked fine, but when i tryed on my laptop as a LiveCD it didnt boot up properly and the looding progress would stop at like 35%. Even if somepersons might comment on my decision, i decided to look for another distribution.</p>
<p><strong>2. Kunbutu 7</strong><br />
As i was browsing the internet in search of a new distribution to try, i cama acroos a forum thread that discused the Linspire distribution, and one of the members was saying that instead of the Linspire Distribution he whould prefer kubuntu that is more stable but also keeps the user friendly look &#038; feel. So i downloaded it in a hurry and decided to give it a try. The instalation went perfectly, and after this i got a warning about my Intel wireless card, that its driver it&#8217;s in the &#8216;restricted&#8217; repository. Still the device was enabled and working. I spent about 45 minutes trying to connect to my wireless router, and the lack of the wireless assistent in the original distribution install ( i know you can download one <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) convince me to look some where else.</p>
<p><strong>3. Unbutu 6.06</strong><br />
If you didnt figure it out Kubuntu is bassed on Ubuntu distribution <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . So my next choise was the original thing <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ). I remembered i try&#8217;ed it once in the past and it seemed OK. And also i had a CD with it laying arround ( i had that ordered of the internet a year ago ) so i went right to work and install it. Everey thing went perfectly, all the drivers were found. The wireless connection was up&#038;running in a minute with the wireless assitent. The only problem that i experienced was the wireless router security encription ( WPA ) that as far as i saw wasnt suported. But as soon as i changed the wirelless to WEP encription i got a conection <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . But i searched the internet and found that it is possible to do a WPA encription with unbuntu ( as soon as i managed  to do this i willl post the results here <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).  Overall i think this is my distribution to be <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p><strong>4. SUSE 10</strong><br />
I also heared a lot of good things about this distribution. Unlike the previus distribution i wrote about that have usualy 1 CD, Suse has 5 CD&#8217;s.<br />
One of the flagship features of SuSE is YaST, SuSE’s installation and system management tool. A key to a easy life with Linux is being able to easily manage the system and install software. Also i heared that this last version has an emproved Wireless Network Suport. Althogh i also have this distriution in my CD collection i din&#8217;t get a chanse to test it. As soon as i do i will inform you of my thought about it. The only thing that doesnt make me to excited about it is the fact that it need a lot of installation space.</p>
<p>That is it for now. I will keep you updated with the problems i face in linux and the solution i adopt, maybe some of you will use them and save some time.</p>
<p>Looking to you&#8217;re comments.<br />
Cheers</p>
<p>Those who are looking for a career in <a href="http://www.testking.com/Network-Plus-certification-training.htm">network plus</a>, need something more than a <a href="http://www.testking.com/CCNP-certification-training.htm">ccnp</a>. That means at least a basic <a href="http://www.testking.com/MCSA-2003-certification-training.htm">mcsa certification</a> and an advanced credit from either <a href="http://www.testking.com/CCNA-certification-training.htm">ccna certification</a> or an <a href="http://www.testking.com/ITIL-certification-training.htm">itil certification</a>.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/the-first-real-linux-contact-guide-for-other-windows-users/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

