<?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>Ahad Bokhari &#187; &#187; Tutorials</title>
	<atom:link href="http://blogspot.fluidnewmedia.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogspot.fluidnewmedia.com</link>
	<description>Addy&#039;s Personal Blog..</description>
	<lastBuildDate>Thu, 02 Sep 2010 19:23:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Curl with PHP 5.2.9-2 and Apache 2.2.11 on Windows XP</title>
		<link>http://blogspot.fluidnewmedia.com/2009/05/curl-with-php-529-2-and-apache-2211-on-windows-xp/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/05/curl-with-php-529-2-and-apache-2211-on-windows-xp/#comments</comments>
		<pubDate>Sun, 03 May 2009 14:59:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=1375</guid>
		<description><![CDATA[This is a quick follow up post from Tony Spencers post &#8220;cURL with PHP and Apache on Windows.&#8221;  I&#8217;d like to thank him for sharing his knowledge.
The reason i wanted to post this is to clear up any confusion you about getting Curl to work on Windows XP (with PHP 5.2.9-2 and Apache 2.2.11). [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is a quick follow up post from Tony Spencers post <a href="http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/">&#8220;cURL with PHP and Apache on Windows.&#8221;</a>  I&#8217;d like to thank him for sharing his knowledge.</p>
<p>The reason i wanted to post this is to clear up any confusion you about getting Curl to work on Windows XP (with PHP 5.2.9-2 and Apache 2.2.11).  Most likely this solution will work with all versions of PHP5 and Apache 2.2.x and if you are running XAMPP you can check how easy it is to <a href="http://www.tildemark.com/programming/php/enable-curl-with-xampp-on-windows-xp.html">>> enable <<</a> <a href="http://www.apachefriends.org/en/index.html">.</a></p>
<h3>Getting Curl to Work!!</h3>
<ol>
<li>First thing to do is to have the development environment installed locally on your computer.  I have one at the office with installed without the installer and one here at home with the installer.  For all intensive purposes lets concentrate on using php/apache installed with the MSI installer.  If you got that going thats great, if not head on over to this <a href="http://blogspot.fluidnewmedia.com/2008/05/installing-apachephp5/"> >> Tutorial to install your local development  << </a> (the manual way with the installer)  If you got it installed already head on over to the next point</li>
<li>Next thing you need to do (after your installation) is to check your phpinfo() file.  If you don&#8217;t have one make one and load it up on your local web-server. It should look like the screen below:<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/curl1.jpg" alt="Php.ini showing Curl extension" title="Php.ini showing Curl extension" width="550" height="453" class="aligncenter size-full wp-image-1383" /></p>
<p class = "alert">If you don&#8217;t see your Curl extension in phpinfo() after trying to find it I suggest you install php again using the installer. Make sure your ENABLE all extensions/features in your installation as you will get an option to do so. (install all features please)  If you explore the extension features in your install dialogue box you will see CURL there.  <strong>This my friends is the key to the problem.</strong>  If the installer gives you the option for less headache then use it. Did I mention that you can also rerun the installer and choose &#8220;Change&#8221;, then add the CURL extension?!</p>
<li>Once you have installed properly and find the Curl extension in your phpinfo() screen make sure to copy these files from your PHP root directory (mine was D:\Program Files\PHP) to your c:\windows\system32:<br />
<code>libeay32.dll<br />
ssleay32.dll</code><br />
Also make sure that a copy of <code>php5ts.dl</code>l is also in your Apache/bin directory
</li>
</p>
<li>Last step is to uncomment this line <code>curl: extension=php_curl.dll</code> in your php.ini file.  That should do it for you and hopefully everything worked out right!</li>
<li>To test that Curl is actually working use this snippet of code and drop it in to your server root (usually htdocs):
<pre class="brush: php">
&lt;?php
    error_reporting(E_ALL);
    ini_set(&#039;display_errors&#039;, &#039;1&#039;);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,
    &#039;http://news.google.com/news?output=rss&#039;);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $contents = curl_exec ($ch);
    echo $contents;
    curl_close ($ch);
    ?&gt;
    </pre>
<p>Try this as well to display feeds from your blog (where $sXML = show_feeds(&#8217;put the url of your blog here/atom&#8217;)</p>
<pre class="brush: php">
&lt;?php
function show_feeds($path) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,$path);
        curl_setopt($ch, CURLOPT_FAILONERROR,1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        $retValue = curl_exec($ch);
        curl_close($ch);
        return $retValue;
}
$sXML = show_feeds(&#039;http://blogspot.fluidnewmedia.com/atom&#039;);
$oXML = new SimpleXMLElement($sXML);
&lt;p&gt;foreach($oXML-&gt;entry as $oEntry) {
        echo $oEntry-&gt;title . &quot;\n&quot;;
}
?&gt;
</pre>
</li>
<li>If you see the the rss feed of Google then you are done! Change the output to &#8216;html&#8217; and you will see the RSS feed displayed properly in html.</li>
</ol>
<h3>Scripting Twitter with cURL via Command Line</h3>
<p>Ok the above explanation shows you how to use Curl and PHP together to build applications based on API&#8217;s that you would like to hook into.  It doesn&#8217;t mean that you have Curl installed in your command like prompt where you can actually see the XML.</p>
<p>To do that is quite simple.  Go over to <a href="http://curl.haxx.se/download.html">http://curl.haxx.se/download.html </a> and download the the Win32 Generic (7.19.4) by Dirk Paehl.  Go ahead and extract it to a local folder (I extracted it to D:\Program Files\Curl).</p>
<p>Next open up the command prompt and cd into the same directory you extracted it into.  Now just type in curl at the prompt to make sure the command is recoginized<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/curl_cmd.jpg" alt="Curl at the CMD line" title="Curl at the CMD line" width="528" height="34" class="aligncenter size-full wp-image-1399" /></p>
<p>If you want to easily overcome the shortcomings of Twitter’s API  us this command below: </p>
<p><code>curl --basic --user username:password --data status="Checking out Curl!!" http://twitter.com/statuses/update.xml<br />
//replace username:password with your user name and password<br />
</code></p>
<p>You should end up with this below:<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/curl_xml.jpg" alt="Scripting status update" title="Scripting status update" width="550" height="447" class="aligncenter size-full wp-image-1403" /></p>
<p>So by now you should have a good idea of how Curl works with Apache and PHP as well as on the command line.  The way i explained above should work straight out of the box.  Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/05/curl-with-php-529-2-and-apache-2211-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Awesome! &#8211; Portable Ubuntu Shell In Windows (XP, Vista, 7)</title>
		<link>http://blogspot.fluidnewmedia.com/2009/05/awesome-portable-ubuntu-shell-inside-windows-xp-vista-7/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/05/awesome-portable-ubuntu-shell-inside-windows-xp-vista-7/#comments</comments>
		<pubDate>Sat, 02 May 2009 15:52:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=1348</guid>
		<description><![CDATA[
So you have heard of Linux and one of its most popular flavors (Ubuntu) and want to try it out on your Windows system? (Most people probably don&#8217;t know what Linux is and where it came from.) So, if you are new to Linux I just wanted to quickly mention that the name is derived [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.ubuntu.com/"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/p_ubuntu.jpg" alt="Portable Ubuntu" title="Portable Ubuntu" width="550" height="358" class="aligncenter size-full wp-image-1349" /></a></p>
<p>So you have heard of Linux and one of its most popular flavors (Ubuntu) and want to try it out on your Windows system? (Most people probably don&#8217;t know what <a href="http://www.linux.org/">Linux</a> is and where it came from.) So, if you are new to <a href="http://www.linux.org/">Linux</a> I just wanted to quickly mention that the name is derived from Linus Torvalds (the creator of Linux) a kick-ass Software Engineer and Computer Scientist from Finland.  <a href="http://en.wikipedia.org/wiki/Linus_Torvalds">Learn more about him! </a></p>
<p>To make a long story short <a href="http://www.ubuntu.com/products/whatisubuntu">Ubuntu</a> is a community developed operating system that is perfect for laptops, desktops and servers. Whether you use it at home, at school or at work Ubuntu contains all the applications you&#8217;ll ever need, from word processing and email applications, to web server software and programming tools.</p>
<p>Ubuntu is and always will be free of charge. You do not pay any licensing fees. You can download, use and share Ubuntu with your friends, family, school or business for absolutely nothing.</p>
<h3>INSTALLING PORTABLE UBUNTU ON WINDOWS XP</h3>
<p>The installation procedure is simple enough.  Goto <a href="http://portableubuntu.demonccc.com.ar/">http://portableubuntu.demonccc.com.ar/</a> and download from the Souce Forge Site.  </p>
<p>Next drop that application file into your local hard-drive or on a USB or flash drive (choice is yours).  Run the application (Double click on the Portable_Ubuntu.exe icon and it will self extract).</p>
<p>Lets stick to the easiest way to get started.  <del datetime="2009-05-03T04:08:45+00:00">Once you have extracted the files either use your CMD prompt (Command Line Prompt) to run the portable_ubuntu.bat file or</del> <strong>double click on portable_ubuntu.bat  to start the Operating System.  The portable_ubuntu.bat can be found where you extracted the application. </strong></p>
<p>  Once you have done that you should see screens similar to the one below of the installation process. Dont worry about any errors at this stage, it should work straight out of the box.<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/cmd1.jpg" alt="Screenshot of Install process" title="Screenshot of Install process" width="550" height="284" class="aligncenter size-full wp-image-1354" /></p>
</p>
<p>All you have to do after the install is complete is to watch out for the rectangular Ubuntu Dockable Palette on your desktop &#8211; it looks just like the screen below.  You can drag it around and Portable Ubuntu lets you work with Dual monitors too!  </p>
<p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/05/dock.jpg" alt="Dockable Floating Window" title="Dockable Floating Window" width="550" height="92" class="aligncenter size-full wp-image-1356" /></p>
<p>Thats it you are done.  Now you can have an Ubuntu Shell right in your Windows operating system.  Note that Portable Ubuntu does work on Windows Vista and Seven, however you have to log on as the administrator to prevent security issues.</p>
<p>Check out some of these links as a reference in case you run into problems:</p>
<p><a href="http://lifehacker.com/5195999/portable-ubuntu-runs-ubuntu-inside-windows">http://lifehacker.com/5195999/portable-ubuntu-runs-ubuntu-inside-windows</a><br />
<a href="http://portableubuntu.demonccc.cloudius.com.ar/documentation">http://portableubuntu.demonccc.cloudius.com.ar/documentation</a><a href="http://www.pendrivelinux.com/portable-qemu-persistent-ubuntu-linux/">http://www.pendrivelinux.com/portable-qemu-persistent-ubuntu-linux/</a><br />
<a href="www.howtoforge.com/running-ubuntu-on-windows-xp-with-portable-ubuntu">www.howtoforge.com/running-ubuntu-on-windows-xp-with-portable-ubuntu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/05/awesome-portable-ubuntu-shell-inside-windows-xp-vista-7/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Class Declarations in Rails Migrations</title>
		<link>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:02:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=991</guid>
		<description><![CDATA[This is an unforgettable mistake i made today while running some migrations in Rails.
Here is the first migration file. It was generated by using this simple command:
ruby script/generate model Articles
Simple enough right?  The output of the generation was:

def self.up
  create_table :articles do &#124;t&#124;
    t.column :user_id, :integer
    t.column [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is an unforgettable mistake i made today while running some migrations in Rails.</p>
<p>Here is the first migration file. It was generated by using this simple command:</p>
<p><code>ruby script/generate model Articles</code></p>
<p>Simple enough right?  The output of the generation was:</p>
<pre lang ="rails">
def self.up
  create_table :articles do |t|
    t.column :user_id, :integer
    t.column :title, :string
    t.column :synopsis, :text, :limit => 1000
    t.column :body, :text, :limit => 20000
    t.column :published, :boolean, :default => false
    t.column :created_at, :datetime
    t.column :updated_at, :datetime
    t.column :published_at, :datetime
    t.column :category_id, :integer
  end

def self.down
  drop_table :categories
 end
end
</pre>
<p>When i went ahead and tried the rake command to migrate to my database:  <code>rake db:migrate</code> I kept getting an error &#8220;Uninitialized constant Create Articles&#8221; Rake Aborted!!  </p>
<p>Having forgot that everything in Rails is Object Orientated (extends from one base class or another) i overlooked two things.</p>
<ol>
<li>I did not declare the class and what base it extended</li>
<li>I did not add the schema file name into my migration file</li>
</ol>
<p>Usually Rails generates the schema and adds the base class (Active Record) but this time it didn&#8217;t.  Anyhow the fix was easy enough&#8230;</p>
<pre lang ="rails">
#20090106022023_create_articles.rb
class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.belongs_to :user, :category
      t.string :title
      t.text :synopsis, :limit => 1000
      t.text :body, :limit => 20000
      t.boolean :published, :default => false
      t.datetime :published_at
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
</pre>
<p>So this is a classic mistake of us all having our moments..Thanks again to the users over at <a href="http://stackoverflow.com/">Stack Overflow</a> for helping out.  Their are some excellent trouble shooters out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby on Rails</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/installing-ruby-on-rails/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/installing-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 16:27:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=709</guid>
		<description><![CDATA[Since Ruby on Rails was first released, it has become a household name (in developers’ households, anyway). Hundreds of thousands of developers the world over have adopted—and adored—this new framework.  Firstly Ruby is a programming language which was written by a Japanese man Yukihiro &#8220;Matz&#8221; Matsumoto.  Ruby on Rails is the Framework for [...]]]></description>
			<content:encoded><![CDATA[<p></p><p class="alert">Since Ruby on Rails was first released, it has become a household name (in developers’ households, anyway). Hundreds of thousands of developers the world over have adopted—and adored—this new framework.  Firstly <a href="http://www.ruby-lang.org">Ruby</a> is a programming language which was written by a Japanese man <a href="http://www.ruby-lang.org/en/about/">Yukihiro &#8220;Matz&#8221; Matsumoto</a>.  <a href="http://www.rubyonrails.org">Ruby on Rails</a> is the Framework for Ruby and is used to build web based applications.</p>
<p>We will deal with manual installation techniques and use the command-line and installers for specific tasks as well as configure Instant Rails.</p>
<p><span id="more-709"></span></p>
<h3>MANUAL INSTALLATION OF RUBY ON RAILS:</h3>
<p>To start off we need to install some development software on our systems.  The packages you can install are here (I will be dealing with ONLY  Windows based systems here) :</p>
<p><strong>The Ruby Language Interpreter: </strong> <br />
The Ruby interpreter translates our Ruby code (or any Ruby code, for that matter, including Rails itself) into a form the computer can understand and execute. At the time of writing, Ruby 1.8.6 is recommended for use with Rails, so that’s what I’ve used here.</p>
<p><strong>The Ruby on Rails framework:  </strong><br />
Once we’ve downloaded Ruby, we can install the Rails framework itself. As I mentioned in Chapter 1, Rails is written in Ruby.</p>
<p><strong>The SQLite database engine:<br />
<span style="font-weight: normal;">The SQLite database engine is a self-contained software library which provides an SQL database without actually running a separate server process. While Rails supports plenty of other database servers (MySQL, PostgreSQL, Microsoft SQL Server, and Oracle, to name a few), SQLite is easy to install and does not require.</span></strong></p>
<h3>Step One:  Installing Ruby the Programming Language:</h3>
<p>The first place you need to look is at the Ruby on Rails website and download Ruby the Language &#8211; &gt; <a href="http://www.rubyonrails.org ">http://www.rubyonrails.org </a>.  Simply click on the Get Started icon which will take you into the downloads area.</p>
<div id="attachment_721" class="wp-caption alignnone" style="width: 540px">
	<a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/ruby.jpg" rel="thumbnail"><img class="size-full wp-image-721 " title="Ruby on Rails" src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/ruby.jpg" alt="Ruby on Rails Homepage" width="540" height="162" /></a>
	<p class="wp-caption-text">Ruby on Rails Homepage</p>
</div>
<p>On the Downloads Page click on the Windows installer.  </p>
<div id="attachment_723" class="wp-caption alignnone" style="width: 440px">
	<a href="http://www.rubyonrails.org/down"><img class="size-full wp-image-723 " title="Rubys Windows Installer" src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/rub_installer.jpg" alt="Rubys Windows Installer" width="440" height="207" /></a>
	<p class="wp-caption-text">Rubys Windows Installer</p>
</div>
<p> You will be taken to Ruby Forge where you can download the .exe installer of Ruby.  Download that and install it on your local computer.  </p>
<div id="attachment_725" class="wp-caption alignnone" style="width: 525px">
	<a href="http://rubyforge.org/frs/?group_id=167"><img class="size-full wp-image-725 " title="RubyForge" src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/rubyforge.jpg" alt="Ruby Forge - One click Installer for Windows" width="525" height="101" /></a>
	<p class="wp-caption-text">Ruby Forge - One click Installer for Windows</p>
</div>
<p class="alert">I like keeping my C: drive empty so i installed in into D:/Ruby</p>
<h3>Step Two:  Installing Rails via the Command Prompt:</h3>
<p>If you are not insterested in command line prompt then Rails aint for you.  Fire up the command line prompt on your Windows Based PC.  To get to it all you have to do is to navigate to &#8220;Accessories&#8221; in your Start Menu <br />
and look for Command Prompt.  Ok now fire up your installer, it should look like this:</p>
<div id="attachment_733" class="wp-caption alignnone" style="width: 550px">
	<a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/command_prompt.jpg" rel="thumbnail"><img class="size-full wp-image-733 " title="Windows Command Prompt" src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/command_prompt.jpg" alt="Windows Command Prompt" width="550" height="275" /></a>
	<p class="wp-caption-text">Windows Command Prompt</p>
</div>
<p>To check what version of Ruby you are running type:<br />
<code>ruby --version</code></p>
<p>You should get the version number of Ruby on Rails which will be displayed in the command prompt.<br />
Next you need to know what a Gem is.  The Ruby Gem is the package manager that comes with Ruby that will help you install Rails and alot of other modules for later use.</p>
<p>To install Rails simply type:<br />
<code>gem install rails --include-dependencies</code></p>
<p>The gems package manager will take a minute to check the Rails repository to determine if Rails is installed.  Obviously if it isn&#8217;t it will install it for you.  Note that this will take some time as the packages are quite large.</p>
<p>That about does it for Rails.  Make sure that Rails is working by creating an application.  To do this you type:<br />
<code>rails Hello World</code><br />
(where rails is the command and &#8220;Hello World&#8221; is the application that you are generating.)</p>
<p>After giving that command simply navigate to the folder where you ran the command from -&gt; you should notice that Rails has created your skeleton structure for you already!</p>
<h3>INSTANT RAILS:</h3>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/installing-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing APACHE 2.0.6 / PHP5.2.6 for Windows</title>
		<link>http://blogspot.fluidnewmedia.com/2008/05/installing-apachephp5/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/05/installing-apachephp5/#comments</comments>
		<pubDate>Mon, 19 May 2008 18:14:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server Side]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=272</guid>
		<description><![CDATA[BRIEF HISTORY OF APACHE (As written on Wikipedia)
The Apache HTTP Server, commonly referred to simply as Apache [??pæt?i], is a web server notable for playing a key role in the initial growth of the World Wide Web. Apache was the first viable alternative to the Netscape Communications Corporation web server (currently known as Sun Java [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><strong>BRIEF HISTORY OF APACHE (As written on <a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server">Wikipedia</a>)</strong></p>
<p>The <strong>Apache HTTP Server</strong>, commonly referred to simply as <strong>Apache</strong> [<span class="IPA" title="Representation in the International Phonetic Alphabet (IPA)">??pæt?i</span>], is a web server notable for playing a key role in the initial growth of the World Wide Web. Apache was the first viable alternative to the <span class="mw-redirect">Netscape Communications Corporation</span> web server (currently known as Sun Java System Web Server), and has since evolved to rival other Unix-based web servers in terms of functionality and performance.</p>
<p>It is often said that the project&#8217;s name was chosen for two reasons:<sup> <strong>(1)</strong> </sup>out of respect for the Native American Indian tribe of Apache (Indé), well-known for their endurance and their skills in warfare,<sup> <strong>(2)</strong> </sup> and due to the project&#8217;s roots as a set of <span class="mw-redirect">patches</span> to the codebase of NCSA HTTPd 1.3 &#8211; making it &#8220;a patchy&#8221; server.<br />
<span id="more-281"></span>Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including Unix, FreeBSD, Linux, Solaris, Novell NetWare, Mac OS X, Microsoft Windows, OS/2, and eComStation. Released under the Apache License, Apache is characterized as free software and open source software.</p>
<p>Since April 1996 Apache has been the most popular HTTP server on the World Wide Web. However, since November 2005 it has experienced a steady decline of its market share, lost mostly to Microsoft Internet Information Services. <strong><span class="mw-redirect">As of April 2008</span> Apache served 50.42% of all websites.</strong></p>
<p><strong> </strong></p>
<p><strong>BRIEF HISTORY OF PHP</strong></p>
<p>The origins of PHP date back to 1995, when an independent software development contractor names Rasmus Lerdorf developed a Perl/CGI script that enabled him to know how many visitors were reading his online resume&#8217;.  His script performed to tasks:  logging visitor information, and displaying the count of visitors to the Web page.</p>
<p>Because the Web as we know it today was still young at that time, tools such as these were nonexistent, and they prompted emails inquiring about Lerdorf&#8217;s scripts.  Lerdorf thus begun giving away his toolset, dubbed Personal Home Page.   The clamor for the PHP toolset prompted Lerdorf to cuntinue developing the language, perhaps the most notable change early change coming when he added a feature for converting data.  Ongoing additions to the PHP toolset cuminated in November 1997 with the release of PHP 2.0, or Personal Home Page &#8211; Form Interpreter (PHP-FI).  As a result PHP&#8217;s rising popularity, the 2.0 release was accompanied by a number of enhancements and improvements from programmers worlwide.</p>
<p>The new PHP release was extremely popular, and a core team of developers soon joined Lerdorf.  They kept the original concept of incorporating code directly alongside HTML and rewrote the parsing engine, giving birth to PHP 3.0,  By the June 1998 release of version 3.0, more than 50,000 users were using PHP to enhance their Web Pages.</p>
<p>Development continued at a hectic pace over the next two years, with hundreds of functions being added and the user count growing in leaps and bounds. At the beginning of 1999, Netcrafts reported a conservative estimate of a user base surpassing 1,000,000, making PHP one of the most popular scripting languages of the world.</p>
<p><strong> INSTALLING APACHE 2.0.6 FOR WINDOWS</strong><br />
Installing the Apache server coupled with PHP 5 can sometimes be a daunting task simply because open source technologies are always changing with newer releases, patches, etc, etc.  I would like to take this time to make simplify the process of installing a working server on your local machine.There are numerous ways to install the Apache server on your local machine:</p>
<ol>
<li>Using a bundle software such as XAMPP (Apache Friends).</li>
<li>Installing APACHE 2.2 / PHP5 manually.</li>
<li>Installing APACHE/PHP 5 through the MSI installer.</li>
</ol>
<p>We will be focusing on installing APACHE/PHP5 on your local machine (Windows XP) with the MSI installer.  Though it is most preferable to manually configure Apache / PHP5 this is a beginner tutorial to get you up and running.  Hey i used to be a complete noob too so take it from me, it&#8217;s better to start off small and then build your way up.  I will post another tutorial on installing manually in the next couple of weeks.  Lets begin shall we?</p>
<ol>
<li><strong>STEP 1:</strong> Start by getting all the resources for the installation.  By resources i mean all the downloads from the APACHE and PHP Websites.  Goto the <a href="http://httpd.apache.org">Apache Website</a> (http://httpd.apache.org &#8211; ScreenShot 1) &#8211;  and <a href="http://httpd.apache.org/download.cgi">download</a> the Win32 Binary without crypto (no mod_ssl) (MSI Installer) (http://httpd.apache.org/download.cgi &#8211; ScreenShot 2).<a title="apache_org1.jpg" href="http://httpd.apache.org"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_org11.jpg" alt="apache_org1.jpg" /><br />
</a><a title="apache_org1.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_org11.jpg"><br />
</a><a title="apache_msi1.jpg" href="http://httpd.apache.org/download.cgi"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_msi11.jpg" alt="apache_msi1.jpg" /></a></li>
<li><strong>STEP 2:</strong> Double Click on the MSI Installer Icon and you will be taken to the welcome screen .  Take a moment to read it and click next.<a title="apache_welcome.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_welcome1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_welcome1.jpg" alt="apache_welcome.jpg" /></a></li>
<li><strong>STEP 3:</strong> Accept the terms of the license agreement and click next.<br />
<span style="color: #ffffff;"><br />
</span></li>
<li><strong>STEP 4:</strong> You will be prompted for various items pertinent to the server&#8217;s operation, including the Network Domain, Server Name, and Administrators Email address.  If you know the information fill it in, otherwise just use localhost for the first two items, and put in your email address for the last.  Keep for all users on Port 80, as a service Checked.  This allows Apache to initialize on startup of your computer.<br />
<a title="apache_local.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_local1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_local1.jpg" alt="apache_local.jpg" /></a><br />
<span style="color: #ffffff;"><br />
</span></li>
<li><strong>STEP 5:</strong> You will be prompted to select a setup type.  For right now choose Typical.<br />
<span style="color: #ffffff;"><br />
</span></li>
<li><strong>STEP 6:</strong> Lastly you will be prompted for the destination folder.  By default this is C:\Program Files\Apache Software Foundation, but you may choose install anywhere you like, just make sure you avoid spaces.  Click install to complete the installation</li>
</ol>
<p>Thats it for Apache.  Easy wasn&#8217;t it?  You should see an Apache icon in your system tray (Bottom Right).</p>
<p><a title="apache_systray.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_systray1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/apache_systray1.jpg" alt="apache_systray.jpg" /></a></p>
<p>Make sure that you stop and restart Apache to make sure it is running properly.   If you fail to do so then later when you install PHP5 it won&#8217;t work.</p>
<hr size="2" /><strong>INSTALLING PHP5.2.6 FOR WINDOWS:</strong></p>
<p> </p>
<p> </p>
<p> </p>
<ol>
<li><strong>STEP 1: </strong> Just as you did for the Apache Installation obtain all the resources from the PHP website (http://www.php.net).  Make sure that you download the latest version of PHP 5 which is PHP 5.2.6.<a title="php1.jpg" href="http://www.php.net"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php11.jpg" alt="php1.jpg" /></a><a title="php1.jpg" href="http://www.php.net"> </a><a title="php_installer1.jpg" href="http://www.php.net/downloads.php"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php_installer11.jpg" alt="php_installer1.jpg" /></a><a title="php.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php2.jpg"></a></li>
<li><strong>STEP 2:</strong> Once downloaded Double Click the PHP-5.2.6 Win-32 Installer and you will see a welcome Screen.<br />
<span><br />
</span><a title="php_welcome.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php_welcome1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php_welcome1.jpg" alt="php_welcome.jpg" /></a></li>
<li><strong>STEP 3:</strong> Click Next and Agree to the Terms of the License.<br />
<span style="color: #ffffff;"><br />
</span></li>
<li><strong>STEP 4:</strong> You will be prompted to select the Web Server you wish to setup.  Choose Apache 2.2x Module since you have already installed the Apache 2.2+ Server.  Click Next.<br />
<span style="color: #ffffff;"><br />
</span><a title="php_module1.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php_module11.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/php_module11.jpg" alt="php_module1.jpg" /></a></li>
<li><strong>STEP 5:</strong> In the Apache Confiuration Directory choose C:\Program Files\Apache Software Foundation\Apache2.2\, or the install directory where you installed Apache.  Click Next and in the choose items to install prompt click next and install PHP on your machine.</li>
</ol>
<p>Thats it for installing PHP 5.2.6 on your local computer using the MSI installer.  Now its time to test and see if the installations actually worked.</p>
<p>Locate the directory where you installed Apache 2.2.  By default that directory is C:\Program Files\Apache Software Foundation, but choose the location where you installed it if it was different than the default.  Open that folder and look for a folder named htdocs.</p>
<p>Once you have navigated to that folder successfully open up a text editor such as Notepad or Notepad ++ and type in the these lines:</p>
<p>&lt;?php<br />
phpinfo();<br />
?&gt;</p>
<p>Save the page as phpinfo.php in the htdocs folder where you installed Apache.  The phpinfo() function offers a plethora of useful information pertinent to your php installation.  Lastly open your browser and type:  http://localhost/phpinfo.php and if all went well you should see this webpage appear in the browser.</p>
<p><a title="phpinfo.jpg" href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/phpinfo1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/phpinfo1.jpg" alt="phpinfo.jpg" /><br />
</a><br />
If you are seeing error messages or nothing at all for the output it is duew to one or more of the following reasons:</p>
<ul>
<li>Apache was not started or restarted after the build process was complete.</li>
<li>A typing error was introduced into the code in the phpinfo.php file.  If a parse error message is resulting in the browers input, then this is almost certainly the case.</li>
<li>Something went wrong during the build process.  Consider rebuilding, carefully monitoring for errors.</li>
</ul>
<p>If you navigate to your start menu, under the Apache HTTP Server 2 menu item you will see that you can test your configuration and monitor the service.</p>
<p><strong>Notes: </strong> I have not touched on the php.ini file or the Apache httpd.conf files in this tutorial.  In the next tutorial i will help you to understand these two files and how to use them to your advantage.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/05/installing-apachephp5/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Animation and the Advantages of Scripted Animation</title>
		<link>http://blogspot.fluidnewmedia.com/2008/05/animation-and-the-advantages-of-scripted-animation/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/05/animation-and-the-advantages-of-scripted-animation/#comments</comments>
		<pubDate>Sun, 04 May 2008 13:23:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=254</guid>
		<description><![CDATA[What is animation&#8230;A brief description of animation can be one or more of the following:

To impart motion or activity to.
To give life to; fill with life.
To fill with spirit, courage, or resolution; encourage.
To impart motion or activity to.
To inspire or activity to.

Animation basically means motion of some sort.  Motion would be the change of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>What is animation&#8230;A brief description of animation can be one or more of the following:</p>
<ul>
<li>To impart motion or activity to.</li>
<li>To give life to; fill with life.</li>
<li>To fill with spirit, courage, or resolution; encourage.</li>
<li>To impart motion or activity to.</li>
<li>To inspire or activity to.</li>
</ul>
<p>Animation basically means motion of some sort.  Motion would be the change of someone or somethings position over time.  Theoretically, it is also the space between those points but that is another discussion all together.  What one should know is that an object doesn&#8217;t necessarily need to change is location in order to be considered animated.  It could just be changing its shape.  What you should remember is that the connection of animation to time is an important.  Without any motion or change, there is no animation and of course no sense of time.</p>
<h4><font color="#000000">TYPES OF ANIMATION:</font></h4>
<ol>
<li>Frames and Motion:  Virtually all visual animation media uses frames, which is a series of still images shown very rapidly to simulate motion or change.  Anything you see on a computer, television, or movie screen is based on frames.  Making frame by frame animations in Flash at a frame rate of 24 fps(frames per second) will keep people happy as they will accept those frames as a single movie.  Anything slower than that rate and your animation would get choppy or jumpy breaking the illusion of the movie.</li>
<li>Frames and Records:  The whole concept of frames makes three things possible: storage, transmission and display.  You cannot really store, transmit and display a man walking across a room, but you can store a picture or many pictures, store, transmit and then eventually display them almost anywhere.</li>
<li>Programmed Frames:  Using a computer helps you calculatig things on the fly, so you dont really need a long list of descriptions for your frames.  You may cut it down to a description of the first frame and some rules on how to build the subsequent frames. So the computer is not merely creating an image from a description, its creating the description first, then creating the image based on the description, and finally displaying the image.</li>
</ol>
<h4><font color="#000000">ADVANTAGES OF PROGRAMMED OR SCRIPTED ANIMATION:</font></h4>
<ul>
<li>Scripted animation file size is much smaller than the other two types of animation discussed above.  Imagine having 30 images to a movie on 30 frames of the timeline?  Your file size would be very high.</li>
<li>Most coded animations become dynamic.  If you watch a move on a dvd, vcr or cd player you will see the same animation repeatedly.  With a coded animation i could using that very code to make it dynamic by determining a random point to place it with random direction and speed to move it.  Hence the animation will appear differently on the screen or T.V. or any other medium I had used.</li>
</ul>
<h4><font color="#000000">ANIMATING WITH CODE:</font></h4>
<p>Almost all coded animation is contained within some sort of loop.  If you consider frame by frame animation and visualize it into a flowchart you will end up with something like this.</p>
<p><a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/frame_animation.jpg" title="frame_animation.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/frame_animation.jpg" alt="frame_animation.jpg" /></a></p>
<p>If you get into shapes or symbols then it would be a different story.  Flash does not create and store a new bitmap image for each frame, even in a frame by frame animation movie.  For each frame Flash stores the position, size, color and so on of an object on the stage.  The flowchart for this sort of animation would be as follows:</p>
<p><a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/render_animation1.jpg" title="render_animation1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/render_animation1.jpg" alt="render_animation1.jpg" /></a></p>
<p>Finally if you consider dynamic or coded animation the flowchart would look something like this:</p>
<p><a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/scripted_animation.jpg" title="scripted_animation.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/05/scripted_animation.jpg" alt="scripted_animation.jpg" /></a></p>
<p>In the last flowchart (Scripted Animation) there is no concept of frame 1, 2 etc, etc.  Actionscripted animation generally can run, and usually does occur all in just one frame.  Here is where you can see the loop coming into play.  It sounds very daunting but it really isnt if you study it carefully.  First you set up an initial state by placing movie clips onto the stage or describe your animation or scene in actionscript only.</p>
<p>Next you apply rules which results in a new state.  Which rules and what sort of animation you want is entirely your decision!  Whether you want users to interact with the animation or adding different events is also all up to you. By understanding some of the basic concepts in animation you should be well on your way to your own scripted animations.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/05/animation-and-the-advantages-of-scripted-animation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
