<?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>GUMZ ExPress &#187; Node JS</title>
	<atom:link href="http://gumz-ex-press.com/category/hobbies/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://gumz-ex-press.com</link>
	<description>A Web Developer&#039;s Collection</description>
	<lastBuildDate>Fri, 29 Mar 2013 12:44:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating HTTP Server with NodeJS</title>
		<link>http://gumz-ex-press.com/2012/creating-http-server-with-nodejs/</link>
		<comments>http://gumz-ex-press.com/2012/creating-http-server-with-nodejs/#comments</comments>
		<pubDate>Wed, 28 Nov 2012 13:45:59 +0000</pubDate>
		<dc:creator>Gumz</dc:creator>
				<category><![CDATA[Node JS]]></category>
		<category><![CDATA[http server]]></category>
		<category><![CDATA[nodejs]]></category>

		<guid isPermaLink="false">http://gumz-ex-press.com/?p=1130</guid>
		<description><![CDATA[We now have a basic code to start our server. By this time we created our server to return “Hello World!” for every request<p><a href="http://gumz-ex-press.com/2012/creating-http-server-with-nodejs/">Creating HTTP Server with NodeJS</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>
]]></description>
				<content:encoded><![CDATA[<p>Assuming that you already <a href="http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/">installed NodeJS</a> in your system, let’s begin with creating new <em>myhttpserver.js</em>. Then insert the following code in<em> myhttpserver.js</em>:</p>
<pre class="brush: jscript; title: ; notranslate">
var http = require('http');
var server = http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/html'});
  res.write(&quot;&lt;!DOCTYPE html&gt;&quot;);
  res.write(&quot;&lt;html&gt;&quot;);
  res.write(&quot;&lt;head&gt;&quot;);
  res.write(&quot;My HTTP Server&quot;);
  res.write(&quot;&lt;/head&gt;&quot;);
  res.write(&quot;&lt;body&gt;&quot;);
  res.write(&quot;Hello World!&quot;);
  res.write(&quot;&lt;/body&gt;&quot;);
  res.write(&quot;&lt;/html&gt;&quot;);
  res.end();
});
server.listen(8080);
console.log('Server listens at port 8080');
</pre>
<p>We now have a basic code to start our server. By this time we created our server to return “Hello World!” for every request. To start our server, in the command line type in&#8230;</p>
<pre class="brush: bash; title: ; notranslate">node myhttpserver.js</pre>
<p>If everything works correctly, we will see a message that our server is listening. Then, the next thing to do is to launch our web browser and access our server through the following address</p>
<p><a href="http://localhost:8080" class="broken_link" rel="nofollow">http://localhost:8080</a> or <a href="http://127.0.0.1:8080" class="broken_link" rel="nofollow">http://127.0.0.1:8080</a></p>
<p><a href="http://gumz-ex-press.com/2012/creating-http-server-with-nodejs/">Creating HTTP Server with NodeJS</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Tags Under: <a class='technorati-link' href='http://technorati.com/tag/http+server' rel='tag' target='_self'>http server</a>, <a class='technorati-link' href='http://technorati.com/tag/nodejs' rel='tag' target='_self'>nodejs</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://gumz-ex-press.com/2012/creating-http-server-with-nodejs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Simple Object</title>
		<link>http://gumz-ex-press.com/2011/javascript-simple-object/</link>
		<comments>http://gumz-ex-press.com/2011/javascript-simple-object/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 13:31:04 +0000</pubDate>
		<dc:creator>Gumz</dc:creator>
				<category><![CDATA[Node JS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[nodejs]]></category>

		<guid isPermaLink="false">http://gumz-ex-press.com/?p=936</guid>
		<description><![CDATA[But in javascript any function can also be instantiated as an object<p><a href="http://gumz-ex-press.com/2011/javascript-simple-object/">Javascript Simple Object</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>
]]></description>
				<content:encoded><![CDATA[<p>Unlike PHP wherein you will first define a class and to create a new object, and you will then instantiate an instance of that particular class. But in javascript what causes confusion at first is that any function can also be instantiated as an object.</p>
<p>How it works:</p>
<pre class="brush: jscript; title: ; notranslate">
function User(name){
	this.name = name;
}

var Me = new User(&quot;James&quot;);

alert(Me.name) //return &quot;James&quot;

var You = new User(&quot;Visitor&quot;);

alert(You.name) //return &quot;Visitor&quot;
</pre>
<p>This is only the beginning of understanding how javascript works and it&#8217;s difference from other languages. The language of Nodejs.</p>
<p><a href="http://gumz-ex-press.com/2011/javascript-simple-object/">Javascript Simple Object</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Tags Under: <a class='technorati-link' href='http://technorati.com/tag/javascript' rel='tag' target='_self'>javascript</a>, <a class='technorati-link' href='http://technorati.com/tag/nodejs' rel='tag' target='_self'>nodejs</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://gumz-ex-press.com/2011/javascript-simple-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Javascript Date To MySQL Date</title>
		<link>http://gumz-ex-press.com/2011/convert-javascript-date-to-mysql-date/</link>
		<comments>http://gumz-ex-press.com/2011/convert-javascript-date-to-mysql-date/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 13:52:57 +0000</pubDate>
		<dc:creator>Gumz</dc:creator>
				<category><![CDATA[Node JS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[nodejs]]></category>

		<guid isPermaLink="false">http://gumz-ex-press.com/?p=917</guid>
		<description><![CDATA[I have been exploring Nodejs for past weeks. I can say that it uses different technique that I used to know from other programming languages.<p><a href="http://gumz-ex-press.com/2011/convert-javascript-date-to-mysql-date/">Convert Javascript Date To MySQL Date</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://i2.wp.com/gumz-ex-press.com/wp-content/uploads/2011/10/node-mysql.png"><img src="http://i2.wp.com/gumz-ex-press.com/wp-content/uploads/2011/10/node-mysql.png?resize=300%2C76" alt="" title="node-mysql" class="aligncenter size-full wp-image-918" data-recalc-dims="1" /></a> I have been exploring Nodejs for past weeks. I can say that it uses different technique that I used to know from other programming languages. I have a little experience with javascript programming as well as the nodejs. And Nodejs encourage me to explore more on javascript. My created application involves with the Nodejs and MySQL database, especially the datetime datatype. This javascript code comes very handy and easily converts javascript date to MySQL datetime.</p>
<pre class="brush: jscript; title: ; notranslate">

function twoDigits(d) {
    if(0 &lt;= d &amp;&amp; d &lt; 10) return &quot;0&quot; + d.toString();
    if(-10 &lt; d &amp;&amp; d &lt; 0) return &quot;-0&quot; + (-1*d).toString();
    return d.toString();
}

Date.prototype.toMysqlFormat = function() {
    return this.getUTCFullYear() + &quot;-&quot; + twoDigits(1 + this.getUTCMonth()) + &quot;-&quot; + twoDigits(this.getUTCDate()) + &quot; &quot; + twoDigits(this.getHours()) + &quot;:&quot; + twoDigits(this.getUTCMinutes()) + &quot;:&quot; + twoDigits(this.getUTCSeconds());
};

var MyDate = new Date();
MyDate.toMysqlFormat(); //return MySQL Datetime format

</pre>
<p>Hope it helps you as it helped me.</p>
<p><a href="http://gumz-ex-press.com/2011/convert-javascript-date-to-mysql-date/">Convert Javascript Date To MySQL Date</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Tags Under: <a class='technorati-link' href='http://technorati.com/tag/javascript' rel='tag' target='_self'>javascript</a>, <a class='technorati-link' href='http://technorati.com/tag/nodejs' rel='tag' target='_self'>nodejs</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://gumz-ex-press.com/2011/convert-javascript-date-to-mysql-date/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Nodejs  and NPM Without Using Sudo in Ubuntu 10.04</title>
		<link>http://gumz-ex-press.com/2011/installing-nodejs-and-npm-without-using-sudo-in-ubuntu-10-04/</link>
		<comments>http://gumz-ex-press.com/2011/installing-nodejs-and-npm-without-using-sudo-in-ubuntu-10-04/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 07:59:20 +0000</pubDate>
		<dc:creator>Gumz</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[Node JS]]></category>
		<category><![CDATA[install nodejs and npm]]></category>

		<guid isPermaLink="false">http://gumz-ex-press.com/?p=910</guid>
		<description><![CDATA[I made fresh install of Ubuntu to test Nodejs in linux platform.<p><a href="http://gumz-ex-press.com/2011/installing-nodejs-and-npm-without-using-sudo-in-ubuntu-10-04/">Installing Nodejs  and NPM Without Using Sudo in Ubuntu 10.04</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>
]]></description>
				<content:encoded><![CDATA[<p>I made fresh install of Ubuntu to test <a href="http://nodejs.org/">Nodejs</a> in linux platform. For people curios about what Nodejs is, check this out <a href="http://en.wikipedia.org/wiki/Nodejs">http://en.wikipedia.org/wiki/Nodejs</a>. I picked Ubuntu since it is widely available and is free. This guide will be quick and for the purpose as my future reference. This series code of taken from <a href="https://gist.github.com/579814#file_only_git_all_the_way.sh">gist: 579814</a> and additional code from <a href="http://stackoverflow.com/questions/3329355/node-js-could-not-configure-a-cxx-compiler">stackoverflow</a> to prevent the error that I also I encountered regarding <em>Node.js could not configure a cxx compiler</em>.</p>
<pre class="brush: plain; title: ; notranslate">
mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' &gt;&gt; ~/.bashrc
. ~/.bashrc

sudo apt-get install build-essential
sudo apt-get install libssl-dev

git clone git://github.com/joyent/node.git
cd node
./configure --prefix=~/local
make install
cd ..

git clone git://github.com/isaacs/npm.git
cd npm
make install
</pre>
<p>Hope this help you as it helps me.</p>
<p><a href="http://gumz-ex-press.com/2011/installing-nodejs-and-npm-without-using-sudo-in-ubuntu-10-04/">Installing Nodejs  and NPM Without Using Sudo in Ubuntu 10.04</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Tags Under: <a class='technorati-link' href='http://technorati.com/tag/install+nodejs+and+npm' rel='tag' target='_self'>install nodejs and npm</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://gumz-ex-press.com/2011/installing-nodejs-and-npm-without-using-sudo-in-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reliable Node.js Installation on Ubuntu 10.04</title>
		<link>http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/</link>
		<comments>http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 16:27:35 +0000</pubDate>
		<dc:creator>Gumz</dc:creator>
				<category><![CDATA[Node JS]]></category>
		<category><![CDATA[Node.js Installation]]></category>
		<category><![CDATA[Nodejs on Ubuntu10.04]]></category>

		<guid isPermaLink="false">http://gumz-ex-press.com/?p=874</guid>
		<description><![CDATA[I have been looking for decent tutorials on installing node.js specifically on Ubuntu 10.04.<p><a href="http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/">Reliable Node.js Installation on Ubuntu 10.04</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>
]]></description>
				<content:encoded><![CDATA[<p>I have been looking for decent tutorials on installing <a title="Node JS" href="http://nodejs.org/">node.js</a> specifically on Ubuntu 10.04. And been into forums where there people have a lot of ideas regarding this matter. I you happen to pass by looking for similar topic around the net. Here is what I can recommend. Much easier than what you think.</p>
<p>Run terminal and Type In:</p>
<p><code>sudo apt-get install python-software-properties<br />
sudo add-apt-repository ppa:chris-lea/node.js<br />
sudo apt-get update<br />
sudo apt-get install nodejs</code></p>
<p><a href="http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/">Reliable Node.js Installation on Ubuntu 10.04</a> is a post from: <a href="http://gumz-ex-press.com">GUMZ Ex Press - Technology Updates</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Tags Under: <a class='technorati-link' href='http://technorati.com/tag/Node.js+Installation' rel='tag' target='_self'>Node.js Installation</a>, <a class='technorati-link' href='http://technorati.com/tag/Nodejs+on+Ubuntu10.04' rel='tag' target='_self'>Nodejs on Ubuntu10.04</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://gumz-ex-press.com/2011/reliable-node-js-installation-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
