<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Query7 - PHP  jQuery  Linux</title>
	
	<link>http://www.query7.com</link>
	<description>PHP, jQuery, Linux, Technology</description>
	<pubDate>Sat, 27 Sep 2008 04:27:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Query7" type="application/rss+xml" /><feedburner:emailServiceId>1907606</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>PHP Coding Standards</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/404381706/</link>
		<comments>http://www.query7.com/php-coding-standards/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 04:27:04 +0000</pubDate>
		<dc:creator>technorati</dc:creator>
		
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=137</guid>
		<description><![CDATA[Coding standards is a very important thing in web development. Code must be formatted in such a way that everyone can read it. Although you start a project on your own and don&#8217;t imagine anyone else seeing the source, there may come a time where you sell the site and a new developer will need [...]]]></description>
			<content:encoded><![CDATA[<p>Coding standards is a very important thing in web development. Code must be formatted in such a way that everyone can read it. Although you start a project on your own and don&#8217;t imagine anyone else seeing the source, there may come a time where you sell the site and a new developer will need to work on it. Or you have to hire a developer to work on the site. It is best if you stick to one clear format. I personally follow the zend coding standard. In this post I am going to explain a bit about how to format your code in such a way as you follow the Zend Standards. This will make your code clean and easy to use for any developer reading your code and make it easy for yourself to read.</p>
<h3>General Rules</h3>
<p>Number 1: You don&#8217;t use &#8220;?&gt;&#8221;. PHP does not require it. Do not end your files with ?&gt; just leave it blank. It should not change anything at all in your code. It also prevents accidental whitespace injection into your files. The exception is when the file is both php and html. Although that is also bad practice. PHP shouldn&#8217;t really have HTML and PHP in the same file. </p>
<p>Number 2: Short tags are never allowed. Short tags are when you use  instead of the full value which is .</p>
<p>Number 3: Indentation should be 4 spaces. Tabs aren&#8217;t allowed. Some IDE&#8217;s such as Dreamweaver allow you to set your tabs at 4 spaces. Number 4: You should aim to have a maximum of 80 characters per line. However Zend allows up to 120. This can also be set in your IDE. These should all be followed strictly.</p>
<h3>Naming</h3>
<p>The naming of files is important, files should be named appropriately and end in .php. There is no general rule but I like to have classes named as &#8220;ClassName.class.php&#8221;. It helps seperate classes from general php. It&#8217;s also easy for anyone looking at the code to find what they need. &#8220;MySQL.class.php&#8221; means they would know it&#8217;s a MySQL class. All characters in the name have to be alpha numberic. So either numbers or letters. Functions and methods are named starting with a lowercase then each new word starts with an uppercase. Underscores are not permitted. A function should be named along the lines of this. &#8220;phpIsAwesome( );&#8221;. Variable names can never contain underscores. Only alpha numberic characters. The same method as functions should be used when naming. This is the &#8220;$lowerUpper&#8221; variable naming. The one thing that does however need underscores are Constants. Constants should be underscored at each new word however all letters must be uppercase. &#8220;WE_LOVE_CONSTANTS&#8221;.</p>
<h3>If and Else</h3>
<p>If&#8217;s must have a single space before any conditions and a single space before an opening bracket. All code inside it should be properly indented with 4 spaces. This is one of the most vital rules as most people hate code without indentation. It is almost impossible to read. An example of good, clean and indented code is this:</p>
<pre>
if ( $a &gt; $b ) {
	// Some Code
} else {
	// Some more code here
}
</pre>
<p>This is what you should aim for. Rather than a block of code with no indentation such as this:</p>
<pre>
if($a &gt; $b){
//code and stuff
}else{
//other code
} </pre>
<p>Code like that is the pet hate of almost all developers.<br />
Documentation<br />
All documentation blocks must be documented using phpDocumentor format. This looks somewhat like this:</p>
<pre>/**
 * Short description for file / class
 *
 * Long description for file / class (if any)...
 *
 * LICENSE: Some license information
 *
 * @copyright  2008 Your Company
 * @license    http://license.yoursite.com
 * @link       http://www.yourfile.com
 * @since      File available since Release 1.5.0
*/ </pre>
<p>Try and document alot of your code. It&#8217;s important so other developers know whats going on with your work. Remember that not everyone codes like you, everyone will have different ways of doing things. So explain what your doing but don&#8217;t go over the top.<br />
The End<br />
That&#8217;s all for this article on coding standards. I hope you learned somethings from this article and put them into practice. For a full list on zend coding standards read the Zend Coding Standards Manual. You do not have to adhere exactly to these, adding your own twists to the style.</p>
<p>Mark Cole.</p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=gldqxO"><img src="http://feeds.feedburner.com/~a/Query7?i=gldqxO" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/404381706" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/php-coding-standards/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/php-coding-standards/</feedburner:origLink></item>
		<item>
		<title>Setting Up an Adobe Air Development Enviroment (Video Tutorial)</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/371538801/</link>
		<comments>http://www.query7.com/setting-up-an-adobe-air-development-enviroment-video-tutorial/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 03:59:33 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=131</guid>
		<description><![CDATA[Adobe Air has been out for around a year, i&#8217;ve only just started playing with it. I recorded a video tutorial showing you how to setup a development (using Aptana) and make a very simple application. This method will work for all Operating Systems.
**High Resolution Version Available To Download**

]]></description>
			<content:encoded><![CDATA[<p>Adobe Air has been out for around a year, i&#8217;ve only just started playing with it. I recorded a video tutorial showing you how to setup a development (using Aptana) and make a very simple application. This method will work for all Operating Systems.</p>
<p><a href="http://query7.com/vids/airinstall.avi" onclick="pageTracker._trackPageview('/outgoing/query7.com/vids/airinstall.avi?referer=');">**High Resolution Version Available To Download**</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/OW1jjuMj5Ss&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/OW1jjuMj5Ss&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=HCdlw4"><img src="http://feeds.feedburner.com/~a/Query7?i=HCdlw4" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/371538801" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/setting-up-an-adobe-air-development-enviroment-video-tutorial/feed/</wfw:commentRss>
<enclosure url="http://query7.com/vids/airinstall.avi" length="24066652" type="video/x-msvideo" />
		<feedburner:origLink>http://www.query7.com/setting-up-an-adobe-air-development-enviroment-video-tutorial/</feedburner:origLink></item>
		<item>
		<title>Writing better jQuery Code</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/364291824/</link>
		<comments>http://www.query7.com/writing-better-jquery-code/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 23:02:29 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[code]]></category>

		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=98</guid>
		<description><![CDATA[We all know that jQuery is great, that you can do things in 2-3 lines in jQuery that you can in 20 lines of Javascript, but is your jQuery code starting to get a bit bulky?  Could you do things better?. I&#8217;m going to show you how to reduce a 20-25 line jQuery script into [...]]]></description>
			<content:encoded><![CDATA[<p>We all know that jQuery is great, that you can do things in 2-3 lines in jQuery that you can in 20 lines of Javascript, but is your jQuery code starting to get a bit bulky?  Could you do things better?. I&#8217;m going to show you how to reduce a 20-25 line jQuery script into 3 lines by making the script dynamic, and give a few tips on improvement of your code.</p>
<p>What we want: When the user clicks a list item, it will show the corresponding <em>div</em></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul id=&quot;langs&quot;&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li id=&quot;php&quot;&gt;PHP&lt;/li&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li id=&quot;asp&quot;&gt;ASP&lt;/li&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li id=&quot;ruby&quot;&gt;Ruby&lt;/li&gt;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li id=&quot;python&quot;&gt;Python&lt;/li&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li id=&quot;air&quot;&gt;AIR&lt;/li&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;&nbsp; &nbsp;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;container&quot;&gt;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;d_php&quot;&gt;http://www.php.net&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;d_asp&quot;&gt;http://www.asp.net&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;d_ruby&quot;&gt;http://www.ruby-lang.org&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;d_python&quot;&gt;http://www.python.org&lt;/div&gt;
</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;d_air&quot;&gt;http://www.adobe.com/products/air/&lt;/div&gt;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;&nbsp; </div>
</li>
</ol>
</div>
<p>If i were a beginner and i was asked to write the script, i&#8217;d most likely code sections for each <em>id/div</em> such as below.. Once the specified link is clicked it&#8217;ll hide all the <em>div</em>s shown(the other content panels) and then it&#8217;ll fade in the relevant content panel.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$<span class="br0">&#40;</span><span class="st0">&quot;ul#langs li#php&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div&quot;</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div#d_php&quot;</span><span class="br0">&#41;</span>.<span class="me1">fadeIn</span><span class="br0">&#40;</span><span class="st0">&quot;slow&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;ul#langs li#asp&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div&quot;</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div#d_asp&quot;</span><span class="br0">&#41;</span>.<span class="me1">fadeIn</span><span class="br0">&#40;</span><span class="st0">&quot;slow&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>This is alright.. it does the job but for each id/div you need around 3 lines of code, your also listening for alot of events (all of those clicks) which may use more memory and slow the script down in general. </p>
<p>Instead of listening for unique clicks(php, asp, ruby etc..), why don&#8217;t we just listen for any click (on the list) and after its clicked, find out which item it was by getting the id (via attributes), save it as a variable, and then use that variable in the selector for the <em>div</em>.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$<span class="br0">&#40;</span><span class="st0">&quot;ul#langs li&quot;</span><span class="br0">&#41;</span>.<span class="me1">click</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> elid = $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">&#8216;id&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div&quot;</span><span class="br0">&#41;</span>.<span class="me1">hide</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; $<span class="br0">&#40;</span><span class="st0">&quot;div#container div#d_&quot;</span> + elid + <span class="st0">&quot;&quot;</span><span class="br0">&#41;</span>.<span class="me1">fadeIn</span><span class="br0">&#40;</span><span class="st0">&quot;slow&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>This code is alot smaller, its scalable and its not going to get any bigger. You can use this method in other applications such as calling for ajax. </p>
<p>Questions/Comments?</p>
<p>**The Next Day**<br />
Thanks for all your thanks/comments/&#8221;gtfo noob why are you programming&#8221;-ings. Matt August, <a href="http://www.staga.net/" onclick="pageTracker._trackPageview('/outgoing/www.staga.net/?referer=');">Bryan Migliorisi</a> and <a href="http://charlieslatte.blogspot.com/" onclick="pageTracker._trackPageview('/outgoing/charlieslatte.blogspot.com/?referer=');">Karol Kowalski</a> pointed out that you can&#8217;t have more than 1 element with the same <em>id</em>, I completely overlooked this and I&#8217;ve fixed the code up.</p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=bGndHv"><img src="http://feeds.feedburner.com/~a/Query7?i=bGndHv" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/364291824" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/writing-better-jquery-code/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/writing-better-jquery-code/</feedburner:origLink></item>
		<item>
		<title>XAMPP(Webserver) On Linux</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/359221528/</link>
		<comments>http://www.query7.com/xampp-webserver-on-linux/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 08:07:15 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=102</guid>
		<description><![CDATA[I recently erased Fedora 9 from my hard drive, and installed Linux Mint. Im enjoying it so far but it didn&#8217;t come with a webserver. Heres a little tutorial on how to install XAMPP and get it up and running.
First of all, download XAMPP from sourceforge. As of writing this, the latest version is 1.6.7 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently erased Fedora 9 from my hard drive, and installed Linux Mint. Im enjoying it so far but it didn&#8217;t come with a webserver. Heres a little tutorial on how to install XAMPP and get it up and running.</p>
<p>First of all, <a href="http://sourceforge.net/project/showfiles.php?group_id=61776&amp;package_id=60248" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/project/showfiles.php?group_id=61776_amp_package_id=60248&amp;referer=');">download XAMPP</a> from sourceforge. As of writing this, the latest version is 1.6.7 so ill be referencing to that in the tutorial. Save it to your <em>/home/$USER/</em> directory.</p>
<p>Extract the archive to your /opt/ directory.</p>
<blockquote><p><em>sudo tar xvfz xampp-linux-1.6.7.tar.gz -C /opt</em></p></blockquote>
<p>Now its installed <img src='http://www.query7.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To start it:</p>
<blockquote><p>sudo /opt/lampp/lampp start</p></blockquote>
<p>To stop it:</p>
<blockquote><p>sudo /opt/lampp/lampp start</p></blockquote>
<p>To launch the panel/manager:</p>
<blockquote><p>sudo /opt/lampp/lampp panel</p></blockquote>
<p>You can test if its on by going to <em>http://localhost</em></p>
<p>To add files to the server, you would need to put them in <em>/opt/lampp/htdocs/</em> but since that directory is owned by root, your user doesn&#8217;t have neccesary privilages. The easiest way to &#8220;get around&#8221; this is to set up a symlink folder in your home directory. You may be familiar with public_html or www directories on your webhosting, we are basically setting the same thing up here.</p>
<p>First we want to set up the directory we are going to link to in htdocs. So..</p>
<blockquote><p><em>sudo mkdir /opt/lampp/htdocs/homefiles/</em></p></blockquote>
<p>Then make the equivilant directory in our home directory.</p>
<blockquote><p><em>mkdir ~/public_html/</em></p></blockquote>
<p>And finally link them together.</p>
<blockquote><p><em>sudo ln -S ~/public_html/ /opt/lampp/htdocs/homefiles/</em></p></blockquote>
<p>So now we can put PHP files/whatnot into our ~/public_html/ folder and they will show up in <em>localhost/homefiles/</em></p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=ZJuUSt"><img src="http://feeds.feedburner.com/~a/Query7?i=ZJuUSt" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/359221528" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/xampp-webserver-on-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/xampp-webserver-on-linux/</feedburner:origLink></item>
		<item>
		<title>Format your Twitter Stream with jQuery</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/352989337/</link>
		<comments>http://www.query7.com/format-your-twitter-stream-with-jquery/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 20:54:53 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[jquery]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[video]]></category>

		<category><![CDATA[videotutorial]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=96</guid>
		<description><![CDATA[Woo! Another screencast. In this one i show you how to include your twitter stream into your blog or website, and then format it using jQuery so your tweets have an alternating background colour.
As usual, the high resolution file is available to download. Here.

]]></description>
			<content:encoded><![CDATA[<p>Woo! Another screencast. In this one i show you how to include your twitter stream into your blog or website, and then format it using jQuery so your tweets have an alternating background colour.</p>
<p>As usual, the high resolution file is available to download. <a href="http://query7.com/vids/jquerytwitterfeed.avi" onclick="pageTracker._trackPageview('/outgoing/query7.com/vids/jquerytwitterfeed.avi?referer=');">Here</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/ULGG4KeTb5k&amp;hl=en&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ULGG4KeTb5k&amp;hl=en&amp;fs=1" allowfullscreen="true"></embed></object></p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=PXWXx6"><img src="http://feeds.feedburner.com/~a/Query7?i=PXWXx6" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/352989337" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/format-your-twitter-stream-with-jquery/feed/</wfw:commentRss>
<enclosure url="http://query7.com/vids/jquerytwitterfeed.avi" length="17438138" type="video/x-msvideo" />
		<feedburner:origLink>http://www.query7.com/format-your-twitter-stream-with-jquery/</feedburner:origLink></item>
		<item>
		<title>Learning PHP-GTK2</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/349830105/</link>
		<comments>http://www.query7.com/learning-php-gtk2/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 21:13:35 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[php-gtk]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=90</guid>
		<description><![CDATA[As PHP-GTK2 is fairly new on the scene, there aren&#8217;t many resources for learning it. Those that are, are scattered throughout the web. Ive compiled a list below, hopefully they can help you develop PHP-GTK2 applications.

kksou - Sample Codes, Hundreds of code examples with explanations.
kksou - Blog, Some nice advanced info, updated frequently.
kksou - Forums, [...]]]></description>
			<content:encoded><![CDATA[<p>As PHP-GTK2 is fairly new on the scene, there aren&#8217;t many resources for learning it. Those that are, are scattered throughout the web. Ive compiled a list below, hopefully they can help you develop PHP-GTK2 applications.</p>
<ul>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/sample-codes/" onclick="pageTracker._trackPageview('/outgoing/www.kksou.com/php-gtk2/sample-codes/?referer=');">kksou - Sample Codes</a>, Hundreds of code examples with explanations.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/blog/" onclick="pageTracker._trackPageview('/outgoing/www.kksou.com/php-gtk2/blog/?referer=');">kksou - Blog</a>, Some nice advanced info, updated frequently.</li>
<li><a rel="nofollow" href="http://www.kksou.com/php-gtk2/Forum/" onclick="pageTracker._trackPageview('/outgoing/www.kksou.com/php-gtk2/Forum/?referer=');">kksou - Forums</a>, Can ask for help on your codes.</li>
<li><a rel="nofollow" href="http://www.gnope.org/" onclick="pageTracker._trackPageview('/outgoing/www.gnope.org/?referer=');">Gnope</a>, Installation of PHP-GTK2.</li>
<li><a rel="nofollow" href="http://cweiske.de/phpgtk.htm" onclick="pageTracker._trackPageview('/outgoing/cweiske.de/phpgtk.htm?referer=');">cweiske</a>, Some PHP-GTK1 resources, you may/may not find it useful for PHP-GTK2 development.</li>
<li><a rel="nofollow" href="http://gtk.php.net/" onclick="pageTracker._trackPageview('/outgoing/gtk.php.net/?referer=');">gtk.php.net</a>, Official PHP-GTK2 homepage, numerous links, source code.</li>
<li><a rel="nofollow" href="http://gtk.php.net/docs.php" onclick="pageTracker._trackPageview('/outgoing/gtk.php.net/docs.php?referer=');">gtk.php.net docs</a>, Official PHP-GTK2 documentation.</li>
<li><a rel="nofollow" href="http://gtk.php.net/faq.php" onclick="pageTracker._trackPageview('/outgoing/gtk.php.net/faq.php?referer=');">gtk.php.net FAQ</a>, Frequently Asked Questions.</li>
<li><a rel="nofollow" href="http://gtk.php.net/resources.php" onclick="pageTracker._trackPageview('/outgoing/gtk.php.net/resources.php?referer=');">gtk.php.net Resources</a>, PHP-GTK2 mailing list, more resources.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/" onclick="pageTracker._trackPageview('/outgoing/php-gtk.eu/?referer=');">php-gtk.eu</a>, Great support forum, samples,news.</li>
<li><a rel="nofollow" href="http://phpgtk.activeventure.com/" onclick="pageTracker._trackPageview('/outgoing/phpgtk.activeventure.com/?referer=');">activenture</a>, Docs, Refs, Tutorials. Very good.</li>
<li><a rel="nofollow" href="http://php-gtk.eu/apps" onclick="pageTracker._trackPageview('/outgoing/php-gtk.eu/apps?referer=');">php-gtk.eu apps</a>, Largest list (that i could find) of PHP-GTK2 apps.</li>
</ul>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=F6Ihr1"><img src="http://feeds.feedburner.com/~a/Query7?i=F6Ihr1" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/349830105" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/learning-php-gtk2/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/learning-php-gtk2/</feedburner:origLink></item>
		<item>
		<title>Upgraded To Wordpress 2.6</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/337470081/</link>
		<comments>http://www.query7.com/upgraded-to-wordpress-26/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 22:15:46 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[news]]></category>

		<category><![CDATA[query7]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=75</guid>
		<description><![CDATA[We have now upgraded to wordpress 2.6.
Remember, you can subscribe to our RSS Feed to get the latest updates and tutorials and request tutorials and screencasts.
]]></description>
			<content:encoded><![CDATA[<p>We have now upgraded to wordpress 2.6.</p>
<p>Remember, you can subscribe to our <a href="http://feeds.feedburner.com/query7" onclick="pageTracker._trackPageview('/outgoing/feeds.feedburner.com/query7?referer=');">RSS Feed</a> to get the latest updates and tutorials and <a href="http://www.query7.com/request-a-tutorial/">request tutorials and screencasts</a>.</p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=CBQgG3"><img src="http://feeds.feedburner.com/~a/Query7?i=CBQgG3" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/337470081" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/upgraded-to-wordpress-26/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/upgraded-to-wordpress-26/</feedburner:origLink></item>
		<item>
		<title>Dropbox Linux Client (Video)</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/334983401/</link>
		<comments>http://www.query7.com/dropbox-linux-client-video/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 09:38:21 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[dropbox]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=71</guid>
		<description><![CDATA[A little screencast i made just showing the linux dropbox client off, as usual theres a high resolution file availlable. *Right Click Save As*. If it doesn&#8217;t play for you, use VLC.

]]></description>
			<content:encoded><![CDATA[<p>A little screencast i made just showing the linux dropbox client off, as usual theres a high resolution file availlable. <a href="http://www.query7.com/vids/linuxdropbox.flv">*Right Click Save As*</a>. If it doesn&#8217;t play for you, use VLC.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/xk6aClhKhFE&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/xk6aClhKhFE&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=MrzMgN"><img src="http://feeds.feedburner.com/~a/Query7?i=MrzMgN" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/334983401" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/dropbox-linux-client-video/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/dropbox-linux-client-video/</feedburner:origLink></item>
		<item>
		<title>Screencasting In Linux</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/334152529/</link>
		<comments>http://www.query7.com/screencasting-in-linux/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 09:07:24 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[fedora]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[video]]></category>

		<category><![CDATA[videotutorial]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=67</guid>
		<description><![CDATA[Ive recorded another video tutorial, this time on Fedora 9, showing how you can make your own screencasts/video tutorials on linux. I tell you how to (sorta) get your microphone working and use the recordmydesktop program.

High Resolution .flv available for download. (*Right click save as*) If you can&#8217;t play it, use VLC.
]]></description>
			<content:encoded><![CDATA[<p>Ive recorded another video tutorial, this time on Fedora 9, showing how you can make your own screencasts/video tutorials on linux. I tell you how to (sorta) get your microphone working and use the <a href="http://recordmydesktop.sourceforge.net/about.php" onclick="pageTracker._trackPageview('/outgoing/recordmydesktop.sourceforge.net/about.php?referer=');">recordmydesktop</a> program.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/hbNEUEkj66I&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/hbNEUEkj66I&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>High Resolution .flv available for download. (<a href="http://www.query7.com/vids/linuxscreencasting.flv">*Right click save as*</a>) If you can&#8217;t play it, use <a href="http://www.videolan.org/vlc/" onclick="pageTracker._trackPageview('/outgoing/www.videolan.org/vlc/?referer=');">VLC</a>.</p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=diuleH"><img src="http://feeds.feedburner.com/~a/Query7?i=diuleH" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/334152529" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/screencasting-in-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/screencasting-in-linux/</feedburner:origLink></item>
		<item>
		<title>Dropbox on Fedora. Believe it</title>
		<link>http://feeds.feedburner.com/~r/Query7/~3/326948435/</link>
		<comments>http://www.query7.com/dropbox-on-fedora-believe-it/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 22:05:01 +0000</pubDate>
		<dc:creator>administrator</dc:creator>
		
		<category><![CDATA[dropbox]]></category>

		<category><![CDATA[fedora]]></category>

		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=64</guid>
		<description><![CDATA[I was lucky enough to get chosen to be one of the 25 alpha testers for the linux dropbox client. We were given the choice to download a precomiled .deb, or the source code. Since i use Fedora, i opted for the source code. I attempted to compile it and then i came across some [...]]]></description>
			<content:encoded><![CDATA[<p>I was lucky enough to get chosen to be one of the 25 alpha testers for the linux dropbox client. We were given the choice to download a precomiled .deb, or the source code. Since i use Fedora, i opted for the source code. I attempted to compile it and then i came across some dependency issues.There were 2-3 packages that i needed to find work arounds for, they weren&#8217;t in the default repositories and for one (i think) there wasn&#8217;t a package for it so i needed to compile it.</p>
<p>I eventually was able to compile it without any errors. It did need a system restart to take effect, but low and behold.</p>
<p><img class="alignnone" src="http://Dropbox on Fedora" alt="" /><a href="http://www.query7.com/wp-content/uploads/2008/07/dropboxfedora9nautilus.png"><img class="alignnone size-medium wp-image-65" title="dropboxfedora9nautilus" src="http://www.query7.com/wp-content/uploads/2008/07/dropboxfedora9nautilus-300x234.png" alt="" width="595" height="464" /></a></p>

<p><a href="http://feeds.feedburner.com/~a/Query7?a=5UDjjG"><img src="http://feeds.feedburner.com/~a/Query7?i=5UDjjG" border="0"></img></a></p><img src="http://feeds.feedburner.com/~r/Query7/~4/326948435" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.query7.com/dropbox-on-fedora-believe-it/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.query7.com/dropbox-on-fedora-believe-it/</feedburner:origLink></item>
	</channel>
</rss>
