<?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"
	>

<channel>
	<title>Dayson.TheWomo</title>
	<atom:link href="http://dayson.thewomo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dayson.thewomo.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Tue, 24 Mar 2009 18:43:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Shame On Me</title>
		<link>http://dayson.thewomo.com/2008/12/18/shame-on-me/</link>
		<comments>http://dayson.thewomo.com/2008/12/18/shame-on-me/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 06:40:47 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Woop dee do!]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=176</guid>
		<description><![CDATA[Now this is something fresh &#38; new when it comes to tackling piracy due to cracks, serials &#38; keygens. Looks like Ahinsa 2.0

PS: I wasn&#8217;t unable to find the source of this screenie but I do know this made it to the frontpage of Digg.

  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F12%2F18%2Fshame-on-me%2F';
  addthis_title  [...]]]></description>
			<content:encoded><![CDATA[<p>Now this is something fresh &amp; new when it comes to tackling piracy due to cracks, serials &amp; keygens. Looks like <a title="What is Ahinsa?" href="http://library.thinkquest.org/26523/mainfiles/ahinsa.htm" target="_blank">Ahinsa</a> 2.0</p>
<p><a title="Click to enlarge!" href="http://dayson.thewomo.com/wp-content/uploads/2008/12/usb_overdrive_crack.jpg" target="_blank"><img class="alignnone size-medium wp-image-177" title="usb_overdrive_crack" src="http://dayson.thewomo.com/wp-content/uploads/2008/12/usb_overdrive_crack-300x258.jpg" alt="" width="300" height="258" /></a></p>
<p>PS: I wasn&#8217;t unable to find the source of this screenie but I do know this made it to the frontpage of Digg.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F12%2F18%2Fshame-on-me%2F';
  addthis_title  = 'Shame+On+Me';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/12/18/shame-on-me/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting the current page full url in PHP</title>
		<link>http://dayson.thewomo.com/2008/10/31/get-full-page-url-in-php/</link>
		<comments>http://dayson.thewomo.com/2008/10/31/get-full-page-url-in-php/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 12:38:50 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=173</guid>
		<description><![CDATA[When you feel you may want to use the requested url with all the get variables passed (just the way it is in the browser&#8217;s address bar), you can use the following code snippet:

private function getCurPageURL&#40;&#41;
&#123;
	$pageURL = 'http';
	if &#40;$_SERVER&#91;&#34;HTTPS&#34;&#93; == &#34;on&#34;&#41; &#123;$pageURL .= &#34;s&#34;;&#125;
	$pageURL .= &#34;://&#34;;
	if &#40;$_SERVER&#91;&#34;SERVER_PORT&#34;&#93; != &#34;80&#34;&#41; &#123;
	$pageURL .= $_SERVER&#91;&#34;SERVER_NAME&#34;&#93;.&#34;:&#34;.$_SERVER&#91;&#34;SERVER_PORT&#34;&#93;.$_SERVER&#91;&#34;REQUEST_URI&#34;&#93;;
	&#125; else &#123;
	$pageURL .= [...]]]></description>
			<content:encoded><![CDATA[<p>When you feel you may want to use the requested url with all the get variables passed (just the way it is in the browser&#8217;s address bar), you can use the following code snippet:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">function</span> getCurPageURL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pageURL</span> <span style="color: #339933;">=</span> <span style="">'http'</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTPS&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$pageURL</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;s&quot;</span>;<span style="color: #009900;">&#125;</span>
	<span style="color: #000088;">$pageURL</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;://&quot;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;SERVER_PORT&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">&quot;80&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pageURL</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;SERVER_NAME&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;SERVER_PORT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REQUEST_URI&quot;</span><span style="color: #009900;">&#93;</span>;
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pageURL</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;SERVER_NAME&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REQUEST_URI&quot;</span><span style="color: #009900;">&#93;</span>;
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$pageURL</span>;
<span style="color: #009900;">&#125;</span></pre></div></div>

<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F10%2F31%2Fget-full-page-url-in-php%2F';
  addthis_title  = 'Getting+the+current+page+full+url+in+PHP';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/10/31/get-full-page-url-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Currency Conversion</title>
		<link>http://dayson.thewomo.com/2008/10/13/php-currency-conversion/</link>
		<comments>http://dayson.thewomo.com/2008/10/13/php-currency-conversion/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 14:06:04 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Articles]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=140</guid>
		<description><![CDATA[
With global economic meltdowns &#38; fluctuating prices, we often can&#8217;t rely on human entry to get up to date currency rates in our web applications. Especially if you are building a website which may require your products cost to be displayed in various currencies.
This is a very powerful and light weight PHP class that lets [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-164" src="http://dayson.thewomo.com/wp-content/uploads/2008/10/currencies1.gif" alt="php currency conversion" width="85" height="49" align="left" /></p>
<p>With global economic meltdowns &amp; fluctuating prices, we often can&#8217;t rely on human entry to get up to date currency rates in our web applications. Especially if you are building a website which may require your products cost to be displayed in various currencies.</p>
<p>This is a very powerful and light weight PHP class that lets you convert between 65+ currencies  using Google Finance (<a href="http://finance.google.com/finance/converter" target="_blank"></a><a href="http://www.google.com/finance/converter" target="_blank">http://www.google.com/finance/converter</a>)</p>
<p><strong>Example:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">CurrencyRates<span style="color: #339933;">::</span><span style="color: #004000;">Convert</span><span style="color: #009900;">&#40;</span><span style="">'USD'</span><span style="color: #339933;">,</span> <span style="">'INR'</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p><strong>Output:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">49 //Since $1 is Rs. 49</pre></div></div>

<p><span id="more-140"></span></p>
<p><strong>Downloads: </strong></p>
<ul>
<li><a href="http://dayson.thewomo.com/wp-content/uploads/2009/02/currencyratesclass.zip">CurrencyRates.class.php</a> (Updated on 12th Feb, 2009)</li>
<li><a href="http://dayson.thewomo.com/wp-content/uploads/2008/10/currencytypes.txt" target="_blank">Currency Types Constants</a></li>
</ul>
<ol>
<li>In order to connect to Google Finance, you must have <strong><a href="http://www.php.net/curl" target="_blank">CURL</a></strong> library installed &amp; setup with php on your server.</li>
<li>In case you do not have CURL installed, try <em><strong>deleting</strong></em> the getPage($url) function and <em><strong>uncomment</strong></em> the getPage($url) function below it. This function requires &#8216;<strong><a href="http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen" target="_blank">allow_url_fopen</a></strong>&#8216; to be enabled on your server.</li>
<li>In case you have any further problems or in understanding, post a comment below or feel free to contact me</li>
<li>Also, if you found this article or  code useful, post your comments to guide others!</li>
</ol>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F10%2F13%2Fphp-currency-conversion%2F';
  addthis_title  = 'PHP+Currency+Conversion';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/10/13/php-currency-conversion/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Detect IE / IE6 in PHP</title>
		<link>http://dayson.thewomo.com/2008/09/26/detect-internet-explorer-in-php/</link>
		<comments>http://dayson.thewomo.com/2008/09/26/detect-internet-explorer-in-php/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 16:09:51 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=132</guid>
		<description><![CDATA[Sometimes you may want to display some part of the page/code only to IE users. Especially when  you may be using some png fix javascript files or the famous iepngfix.htc for IE6 clients. This php function lets you identify an IE browser loading your page:
Example:

&#60;?php
    if&#40;detect_ie&#40;&#41;&#41;
    &#123; //if [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may want to display some part of the page/code only to IE users. Especially when  you may be using some png fix javascript files or the famous <a href="http://www.twinhelix.com/css/iepngfix/" target="_blank">iepngfix.htc</a> for IE6 clients. This php function lets you identify an IE browser loading your page:</p>
<p><strong>Example:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>detect_ie<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">//if internet explorer 6 being used, then apply IE png fix</span>
    <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;!--Begin IE PNG Fix--&gt;
        &lt;style type=&quot;text/css&quot;&gt;
        #shadow_tp, #shadow_btm {
            behavior: url(iepngfix.htc)
        }
        &lt;/style&gt;
        &lt;!--End IE PNG Fix--&gt;        
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><span id="more-132"></span></p>
<p><strong>Function:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000000; font-weight: bold;">function</span> detect_ie<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> 
		<span style="color: #009900;">&#40;</span><span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="">'MSIE'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #000000; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span>;
		<span style="color: #b1b100;">else</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span>;
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F09%2F26%2Fdetect-internet-explorer-in-php%2F';
  addthis_title  = 'Detect+IE+%2F+IE6+in+PHP';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/09/26/detect-internet-explorer-in-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quickly Test PHP Code Snippets</title>
		<link>http://dayson.thewomo.com/2008/09/01/quick-test-php-code/</link>
		<comments>http://dayson.thewomo.com/2008/09/01/quick-test-php-code/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 18:44:52 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=81</guid>
		<description><![CDATA[Ever wanted to quickly test out a php function or a snippet of code without actually creating a new .php file &#038; running it on a web server? In this article we are going to discuss how to display the output of some php code and display it in a mini command window using some [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to quickly test out a php function or a snippet of code without actually creating a new .php file &#038; running it on a web server? In this article we are going to discuss how to display the output of some php code and display it in a mini command window using some basic batch files.</p>
<p><strong>Preview:</strong></p>
<p>    <a target="_blank" href="http://dayson.thewomo.com/wp-content/uploads/2008/08/screenie.png"><img src="http://dayson.thewomo.com/wp-content/uploads/2008/08/screenie-300x189.png" alt="quick test php" title="screenie" width="300" height="189" class="alignnone size-medium wp-image-84" /></a></p>
<p><span id="more-81"></span></p>
<p><strong>Instructions:</strong></p>
<ol>
<li>Download <a href='http://dayson.thewomo.com/wp-content/uploads/2008/08/myphp.zip'>MyPHP.zip</a> ( &lt; 1 kb) &amp; <strong>extract</strong> the zip folder to any path.</li>
<li>Open &quot;<strong>config.bat</strong>&quot; in any text editor.</li>
<li>Change the first line &quot;PATH=<u>C:\wamp\bin\php\php5.2.5</u>&quot; to the <em><strong>path of your php.exe</strong></em> (in my case, I used a <a href="http://www.wampserver.com/en/" target="_blank">WAMP</a> installation)</li>
<li>Double click &quot;<strong>run.bat</strong>&quot;.</li>
</ol>
<p>This should open &quot;<strong>test.php</strong>&quot; in your default php editor and display output  in a small window. Now you may edit code in test.php as you need to and press any key in the output window to update itself.</p>
<p>This is handy when you need to quickly try out some functions related to string manipulation, loops, etc.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F09%2F01%2Fquick-test-php-code%2F';
  addthis_title  = 'Quickly+Test+PHP+Code+Snippets';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/09/01/quick-test-php-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mobile Mumbai Locals released!</title>
		<link>http://dayson.thewomo.com/2008/08/31/mobile-mumbai-locals-released/</link>
		<comments>http://dayson.thewomo.com/2008/08/31/mobile-mumbai-locals-released/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 20:05:38 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Project Updates]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=57</guid>
		<description><![CDATA[

All Central, Western &#38; Harbour rail timings in one compact java application.
Pick between Fast &#38; Slow trains.
Get to know which stations your fast train on Western doesn&#8217;t stop at!
Automatically displays the upcoming trains using your mobile&#8217;s time.
NO additional network or GPRS charges. A one time install is all you need to do.
Quick navigation &#38; easy [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="253" height="335" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://dayson.thewomo.com/wp-content/uploads/2008/08/mlocalsdemo.swf" /><embed type="application/x-shockwave-flash" width="253" height="335" src="http://dayson.thewomo.com/wp-content/uploads/2008/08/mlocalsdemo.swf"></embed></object></p>
<ul>
<li>All <strong>Central</strong>, <span class="style1"><strong>Western</strong> &amp; <strong>Harbour</strong></span> rail timings in one compact java application.</li>
<li>Pick between <strong><em>Fast &amp; Slow trains</em>.</strong></li>
<li>Get to know which stations your fast train on Western doesn&#8217;t stop at!</li>
<li><em><strong>Automatically displays the upcoming trains</strong></em> using your mobile&#8217;s time.</li>
<li><em><strong>NO additional network or GPRS charges</strong></em>. A one time install is all you need to do.</li>
<li>Quick navigation &amp; easy interface. Complete <em><strong>touch screen compatibility</strong></em>.</li>
<li>Works on almost all Java MIDP 2.0 (<strong>j2me</strong>) cell phones.</li>
<li>Additional features include<em><strong> emergency helpline numbers, application guide, etc&#8230;</strong></em></li>
</ul>
<p><span id="more-57"></span></p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-63" title="mumbai77_logo" src="http://dayson.thewomo.com/wp-content/uploads/2008/08/mumbai77_logo.gif" alt="" width="203" height="68" /></p>
<p>The rights to publish, sell &amp; update Mobile Mumbai Locals has been sold out to <strong>Mumbai77.com </strong>. The product is now open to the public and you can try it out by visiting the product page at <img src="file:///C:/DOCUME%7E1/Dayson/LOCALS%7E1/Temp/moz-screenshot-2.jpg" alt="" /><a href="http://mumbai77.com/mumbailocal/"><strong>http://mumbai77.com/mumbailocal/</strong></a></p>
<p style="text-align: center;">
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F08%2F31%2Fmobile-mumbai-locals-released%2F';
  addthis_title  = 'Mobile+Mumbai+Locals+released%21';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/08/31/mobile-mumbai-locals-released/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&#8220;EasyDatabase&#8221; class for J2Me</title>
		<link>http://dayson.thewomo.com/2008/03/16/database-class-for-j2me/</link>
		<comments>http://dayson.thewomo.com/2008/03/16/database-class-for-j2me/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 08:49:07 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=41</guid>
		<description><![CDATA[EasyDatabase is a custom class which I developed to manage and save application settings in your j2me applications instead of dealing with sometimes confusing methods of the javax.microedition.rms. It is a wrapper class around the RMS methods provided by MIDP 2.0.
It is very easy and efficient to use and requires no knowledge about MIDP Record [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">EasyDatabase is a custom class which I developed to <em><strong>manage and save application settings</strong></em> in your <strong>j2me</strong> applications instead of dealing with sometimes confusing methods of the javax.microedition.rms. It is a wrapper class around the RMS methods provided by MIDP 2.0.</p>
<p style="text-align: justify;">It is <strong>very easy and efficient</strong> to use and requires <strong>no knowledge</strong> about MIDP <em><strong>Record Management System</strong></em>. It more or less works like how you store values in the windows registry(if you come from a windows background). Every value has a unique property name associated with it. For e.g AppVersion, LoginPassword, StudentsName, etc..</p>
<p>The code below demonstrates how to create a database called &#8220;UserInfo&#8221;. First we add the users &#8220;Name&#8221; &amp; &#8220;Age&#8221;. Then, we retreive it and print it in the console.</p>

<div class="wp_syntax"><div class="code"><pre class="java java" style="font-family:monospace;">EasyDatabase myDB <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> EasyDatabase<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UserInfo&quot;</span><span style="color: #009900;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>myDB.<span style="color: #006633;">dBExists</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	myDB.<span style="color: #006633;">createDB</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//creates the db</span>
	myDB.<span style="color: #006633;">addProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Name&quot;</span>, <span style="color: #0000ff;">&quot;Dayson&quot;</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//adds name</span>
	myDB.<span style="color: #006633;">addProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Age&quot;</span>, <span style="color: #0000ff;">&quot;20&quot;</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//adds age</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
myDB.<span style="color: #006633;">updateProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Age&quot;</span>, <span style="color: #0000ff;">&quot;25&quot;</span>, <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//changes age</span>
&nbsp;
<span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span> myDB.<span style="color: #006633;">getProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Name&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//prints name</span>
<span style="color: #003399;">System</span>.<span style="color: #006633;">err</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span> myDB.<span style="color: #006633;">getProperty</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Age&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>; <span style="color: #666666; font-style: italic;">//prints age</span></pre></div></div>

<p><span id="more-41"></span><br />
<br />
Similarly, we can create any number of databases, retrieve &amp; store values as and when required.</p>
<p>The EasyDatabase.java file is what you need to download and include in your project. Every function is very well documented and most of the method names are self-descriptive. You can edit and adapt the code to your needs but remember to retain original author credits/e-mail id towards this website. So do download it &amp; try it out&#8230;</p>
<p><strong>Download:</strong> <a href="http://dayson.thewomo.com/wp-content/uploads/2008/08/easydatabase.java">EasyDatabase.java<br />
</a></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2008%2F03%2F16%2Fdatabase-class-for-j2me%2F';
  addthis_title  = '%26%238220%3BEasyDatabase%26%238221%3B+class+for+J2Me';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2008/03/16/database-class-for-j2me/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Integrating paFileDB into Drupal</title>
		<link>http://dayson.thewomo.com/2007/10/28/integrating-pafiledb-into-drupal/</link>
		<comments>http://dayson.thewomo.com/2007/10/28/integrating-pafiledb-into-drupal/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 17:35:41 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=47</guid>
		<description><![CDATA[Intro: It was quite disappointing to realize that an amazing CMS like Drupal failed to have a rich download system. I was expecting a rich downloads section with categories, download counts, rating, etc. The script that answered it all was &#8220;pafiledb&#8220;. This article explains how to integrate pafiledb into Drupal as if it were a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Intro</strong>: It was quite disappointing to realize that an amazing CMS like Drupal failed to have a rich download system. I was expecting a rich downloads section with categories, download counts, rating, etc. The script that answered it all was &#8220;<a href="http://www.phparena.net/scripts.php?script=pafiledb" target="_blank">pafiledb</a>&#8220;. This article explains how to integrate pafiledb into Drupal as if it were a drupal module in a <strong>very easy manner</strong>. This is a must read for anyone using Drupal.</p>
<p><a href="http://demo.phparena.net/index.php?demo=pafiledb" target="_blank">View a demo</a> of pafiledb.</p>
<p>Installing pafiledb:</p>
<ul>
<li>Unzip the file you downloaded from the <a href="http://www.phparena.net/pafiledb" target="_blank">paFileDB homepage</a>.</li>
<li>Open the &#8220;upload&#8221; folder, then open &#8220;includes&#8221; and then open the file &#8220;config.php&#8221;. You will need to edit that file to reflect your MySQL server information. You will need to edit the server, username, password and the database name.</li>
<li>Make a folder in your drupal root directory called &#8220;<strong>downloads</strong>&#8220;.</li>
<li>Open up the &#8220;upload&#8221; folder from the file      you just unzipped. Copy everything, <strong>except for the &#8220;upgrade&#8221; folder</strong> from this folder into the &#8220;downloads&#8221; folder you just created.</li>
<li>Navigate to the &#8220;downloads/install/index.php&#8221; folder using your web browser and setup pafiledb with any settings you want.</li>
<li>Once you&#8217;ve done so, you will be prompted to delete the install folder and then you can easily view your pafiledb by browsing to your <strong>/downloads/index.php</strong> folder.</li>
</ul>
<p><span id="more-47"></span><br />
pafiledb has been successfully setup. For now, do not modify much. Just login to your pafiledb admin panel and create two categories and add a file.<br />
Now we need to modify pafiledb a bit in order to work with drupal. The template style needs to be changed to removed the headers &amp; unwanted content. I&#8217;ve created a custom template which you could install:</p>
<ul>
<li>Download the modded template of pafiledb by <a href="http://dayson.thewomo.com/wp-content/uploads/2008/08/pafiledb_modded_template_drupal.zip">clicking here</a>.</li>
<li>Extract the downloaded file and copy all the files from the extracted &#8220;<strong>templates</strong>&#8221; folder into the &#8220;<strong>downloads/skins/default/templates</strong>&#8221; folder. Make sure this replaces the files in the templates folder.</li>
</ul>
<p>Now we need to mod drupal to implement pafiledb into it.</p>
<ul>
<li>Create a <em>static page</em> say &#8220;<em><strong>Downloads</strong></em>&#8221; by using the <em>Create Content &gt;&gt;&gt; Page</em> option in drupal.</li>
<li>Set the input format of the page to &#8220;<em><strong>PHP code</strong></em>&#8220;</li>
<li>Paste the code below in the <em>Body</em> of the new page <strong>(</strong><strong>Updated on 16th March 2008)</strong></li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;fileid&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pafile_params</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;?act=view&amp;id=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;fileid&quot;</span><span style="color: #009900;">&#93;</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;admin&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pafile_params</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;?act=login&quot;</span>;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;iframe src=&quot;downloads/index.php<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">echo</span> <span style="color: #000088;">$pafile_params</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; name=&quot;frame1&quot; scrolling=&quot;auto&quot; frameborder=&quot;no&quot; align=&quot;center&quot; height = &quot;500&quot; width = &quot;100%&quot;&gt;
&lt;/iframe&gt;</pre></div></div>

<ul>
<li>Save the page &amp; view it.</li>
</ul>
<p>You will realize that pafiledb appears embedded within an iframe in the page you created. Read on to learn how to make your download system more powerful &amp; integrated.</p>
<p><strong>Q1) How to link to a file&#8217;s download page directly so that the user doesn&#8217;t have to go through the trouble of browsing through categories.</strong><br />
- Go to the download page for the file. (e.g /downloads/index.php?act=view&amp;<span style="text-decoration: underline;">id=1</span> ) As you can see the &#8220;<strong>id</strong>&#8221; of the file is <strong>1</strong> in the url. Therefore, in the drupal page which displays the pafiledb, you can pass on the same id as a paramater using <strong>&amp;fileid=1</strong> at the end of the url. This will directly display the download page of the file in the iframe.</p>
<p><strong>Q2) How do I make sure my visitors are not able to access the download page (/download/index.php) outside the drupal interface.</strong><br />
- To make sure, your downloads page is always inside your drupal theme as an iframe, we need to make the following changes:-</p>
<ul>
<li>Open the file &#8220;<strong>downloads/index.php&#8221;</strong> in your text editor.</li>
<li>Paste the code below at the top of the file.</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="javascript javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>SCRIPT LANGUAGE<span style="color: #339933;">=</span><span style="color: #3366CC;">'javascript'</span><span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">//this script makes sure that pafiledb is not loaded outside the downloads page iframe on drupal</span>
<span style="color: #000066; font-weight: bold;">try</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>top <span style="color: #339933;">==</span> self<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		top.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'../index.php?q=downloads'</span>;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>er<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>SCRIPT<span style="color: #339933;">&gt;</span></pre></div></div>

<ul>
<li>Make sure to edit the &#8220;<strong>top.location.href</strong>&#8221; in the code above to the path of your drupal page which the user should be always directed to access the downloads page.</li>
</ul>
<p><strong>Q3) How to administer my pafiledb? </strong>(<em>This addition was made lately so please update the code in your static page before trying this out)</em><br />
- To administer your pafiledb, visit   <em><strong>yoursite</strong></em><strong>/index.php?q=downloads&amp;admin</strong> to login. After logging in, if you want a full page view of your admin panel, visit <em><strong>yoursite</strong></em><strong>/downloads/admin.php </strong></p>
<p>I hope this article was helpful. If you need any more help.. feel free to contact me!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2007%2F10%2F28%2Fintegrating-pafiledb-into-drupal%2F';
  addthis_title  = 'Integrating+paFileDB+into+Drupal';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2007/10/28/integrating-pafiledb-into-drupal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Goofy Messenger - Now Open Source!</title>
		<link>http://dayson.thewomo.com/2007/10/26/goofy-messenger/</link>
		<comments>http://dayson.thewomo.com/2007/10/26/goofy-messenger/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 22:25:59 +0000</pubDate>
		<dc:creator>Dayson Pais</dc:creator>
		
		<category><![CDATA[Project Updates]]></category>

		<guid isPermaLink="false">http://dayson.thewomo.com/?p=1</guid>
		<description><![CDATA[
Goofy Messenger is a Chat Client with advanced &#38; entertaining features for Chatroom Servers on the Ares p2p network. It is built using C# on the .Net framework 2.0.
Development of Goofy Messenger Discontinued: I have discarded the development of Goofy due to lack of time. Though I hope someone picks up from this release and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-medium wp-image-7 aligncenter" title="goofy_logo" src="http://dayson.thewomo.com/wp-content/uploads/2008/08/goofy_logo.png" alt="" width="300" height="100" /></p>
<p>Goofy Messenger is a <em>Chat Client</em> with advanced &amp; entertaining features for <em>Chatroom Servers</em> on the <a href="http://aresgalaxy.sourceforge.net/">Ares</a> p2p network. It is built using C# on the .Net framework 2.0.</p>
<p><strong>Development of Goofy Messenger </strong><span style="text-decoration: underline;"><strong>Discontinued</strong></span>: I have discarded the development of Goofy due to lack of time. Though I hope someone picks up from this release and keeps it going. Perhaps, the open source release might help developers understand many concepts of networking, user interfaces, .Net framework &amp; Ares protocol.</p>
<p><strong>Source Code Released under </strong><span style="text-decoration: underline;"><strong>GNU GPL v2</strong></span>: Yes, the source code is now available to those who would like to have a look at how things worked &amp; for those who&#8217;d like to append to it and carry on. You can use the source code to compile, test, update &amp; produce copies as long as you do not take out original &#8220;Developer&#8221; credits. Visit <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt">http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</a> for more&#8230;</p>
<p>If you need any help in understanding how certain parts of the code works, you can contact me via the contact page of this site. I will try to get back to you as soon as possible.</p>
<p><span style="text-decoration: underline;"><strong>Download:</strong></span></p>
<p><strong><a href="http://dayson.thewomo.com/wp-content/uploads/2008/08/Goofy_Source_v2(beta).rar">Goofy Messenger v2.0(beta) Source Code </a> </strong>(VS 2005 - C# Project)</p>
<p><span id="more-1"></span></p>
<p><strong>Screenshots:</strong></p>
<p><a href="http://dayson.thewomo.com/wp-content/uploads/2008/08/full__4_.png"><img class="alignnone size-medium wp-image-9" title="full__4_" src="http://dayson.thewomo.com/wp-content/uploads/2008/08/full__4_-300x226.png" alt="" width="300" height="226" /></a><a href="http://dayson.thewomo.com/wp-content/uploads/2008/08/full__2_.png"><img class="alignnone size-medium wp-image-8" title="full__2_" src="http://dayson.thewomo.com/wp-content/uploads/2008/08/full__2_-300x217.png" alt="" width="300" height="217" /></a></p>
<p>If you want to download the <strong>setup</strong> of the beta version to try it upto where I develeloped, you can download it from <a href="http://www.aresusers.org/dload.php?action=file&amp;file_id=201" target="_blank">http://www.aresusers.org/dload.php?action=file&amp;file_id=201</a></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fdayson.thewomo.com%2F2007%2F10%2F26%2Fgoofy-messenger%2F';
  addthis_title  = 'Goofy+Messenger+-+Now+Open+Source%21';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://dayson.thewomo.com/2007/10/26/goofy-messenger/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
