<?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>Ramesh Thiruchelvam's Blog</title>
	<atom:link href="http://ramesh.sri-lankan.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramesh.sri-lankan.net</link>
	<description>I think that you think that I think...</description>
	<pubDate>Sat, 18 Oct 2008 05:45:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Configuring phpMyAdmin</title>
		<link>http://ramesh.sri-lankan.net/2008/10/configuring-phpmyadmin/</link>
		<comments>http://ramesh.sri-lankan.net/2008/10/configuring-phpmyadmin/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 03:03:22 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[PHP]]></category>

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

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=23</guid>
		<description><![CDATA[Installing phpMyAdmin is simple as extracting to the www folder, but I install it in a different way, I extract phpMyAdmin in Program Files folder, and configure Apache to map /myadmin to the extracted folder, and make that only accessible by the local machine for security purpose.

1
2
3
4
5
6
7
8
9
Alias /myadmin/ &#34;C:/Program Files/phpMyAdmin-2.11.9.2/&#34;
&#160;
&#60;Directory &#34;C:/Program Files/phpMyAdmin-3.0.0&#34;&#62;
    [...]]]></description>
			<content:encoded><![CDATA[<p>Installing phpMyAdmin is simple as extracting to the www folder, but I install it in a different way, I extract phpMyAdmin in Program Files folder, and configure Apache to map /myadmin to the extracted folder, and make that only accessible by the local machine for security purpose.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">Alias</span> /myadmin/ <span style="color: #7f007f;">&quot;C:/Program Files/phpMyAdmin-2.11.9.2/&quot;</span>
&nbsp;
&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;C:/Program Files/phpMyAdmin-3.0.0&quot;</span>&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> MultiViews
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span>
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
    <span style="color: #00007f;">Deny</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> 127.0.0.1
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></td></tr></table></div>

<p>In the phpMyAdmin copy the config.sample.inc.php to config.inc.php and change the first server configuration to authenticate via configuration file so that I don&#8217;t have to enter the user name and password again and again and hide the mysql database as I don&#8217;t really need access to that.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'auth_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="">'config'</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'host'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="">'localhost'</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'connect_type'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="">'tcp'</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'compress'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">false</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'user'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;root&quot;</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'password'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;xxxxxx&quot;</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'hide_db'</span><span style="color: #009900;">&#93;</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;mysql&quot;</span>;
<span style="color: #000088;">$cfg</span><span style="color: #009900;">&#91;</span><span style="">'Servers'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="">'extension'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="">'mysql'</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/10/configuring-phpmyadmin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change the Server Collation of SQL Server 2005</title>
		<link>http://ramesh.sri-lankan.net/2008/10/change-the-server-collation-of-sql-server-2005/</link>
		<comments>http://ramesh.sri-lankan.net/2008/10/change-the-server-collation-of-sql-server-2005/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 15:31:01 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[SQL]]></category>

		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=21</guid>
		<description><![CDATA[I installed my SQL Server 2005 wit the default options and found out that my db collation and the server collation were different that caused my application to throw a collation mismatch exception when comparing.
I tried my options, but couldn’t get it working with out changing the server collation to be the same as the [...]]]></description>
			<content:encoded><![CDATA[<p>I installed my SQL Server 2005 wit the default options and found out that my db collation and the server collation were different that caused my application to throw a collation mismatch exception when comparing.</p>
<p>I tried my options, but couldn’t get it working with out changing the server collation to be the same as the database collection option. I still believe that there should be a way to do it with out doing so, but I don’t have much time to put in to find out how.</p>
<p>Changing the Server Collation is bit tricky, basically we will have to reinstall the SQL server instance, with the new Server Collation, you can do it with the setup.exe in the “C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap” folder.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash bash" style="font-family:monospace;">start <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">wait</span> setup.exe <span style="color: #000000; font-weight: bold;">/</span>qb 
	<span style="color: #007800;">INSTANCENAME</span>=MSSQLSERVER 
	<span style="color: #007800;">REINSTALL</span>=SQL_Engine 
	<span style="color: #007800;">REBUILDDATABASE</span>=<span style="color: #000000;">1</span> 
	<span style="color: #007800;">SAPWD</span>=<span style="color: #7a0874; font-weight: bold;">test</span> 
	<span style="color: #007800;">SQLCOLLATION</span>=Finnish_Swedish_CS_AS</pre></td></tr></table></div>

<p><b>Warning:</b> When you reinstall the SQL Engine, you will loose all your user databases so please take a back up of all your user databases before you do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/10/change-the-server-collation-of-sql-server-2005/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enabling mod_rewrite in Apache 2</title>
		<link>http://ramesh.sri-lankan.net/2008/08/enabling-mod_rewrite-in-apache-2/</link>
		<comments>http://ramesh.sri-lankan.net/2008/08/enabling-mod_rewrite-in-apache-2/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 05:40:21 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Apache]]></category>

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

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

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=25</guid>
		<description><![CDATA[Enable the mod_rewrite module by uncommenting it from the httpd.conf file.

1
LoadModule rewrite_module modules/mod_rewrite.so

Enable .htaccess configurations by setting AllowOverride to All for the DocumentRoot directory.

1
2
3
4
5
6
7
8
9
10
11
12
&#60;Directory &#34;C:/www&#34;&#62;
    Options Indexes FollowSymLinks
&#160;
    # AllowOverride controls what directives may be placed 
    # in .htaccess files. It can be &#34;All&#34;, &#34;None&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>Enable the mod_rewrite module by uncommenting it from the httpd.conf file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> rewrite_module modules/mod_rewrite.so</pre></td></tr></table></div>

<p>Enable .htaccess configurations by setting AllowOverride to All for the DocumentRoot directory.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> <span style="color: #7f007f;">&quot;C:/www&quot;</span>&gt;
    <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> <span style="color: #0000ff;">FollowSymLinks</span>
&nbsp;
    <span style="color: #adadad; font-style: italic;"># AllowOverride controls what directives may be placed </span>
    <span style="color: #adadad; font-style: italic;"># in .htaccess files. It can be &quot;All&quot;, &quot;None&quot;, or any </span>
    <span style="color: #adadad; font-style: italic;"># combination of the keywords: </span>
    <span style="color: #adadad; font-style: italic;"># Options FileInfo AuthConfig Limit</span>
    <span style="color: #00007f;">AllowOverride</span> <span style="color: #00007f;">All</span>
&nbsp;
    <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
    <span style="color: #00007f;">Allow</span> <span style="color: #00007f;">from</span> <span style="color: #00007f;">all</span>
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/08/enabling-mod_rewrite-in-apache-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using mod_rewrite with PHP</title>
		<link>http://ramesh.sri-lankan.net/2008/08/mod_rewrite/</link>
		<comments>http://ramesh.sri-lankan.net/2008/08/mod_rewrite/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:50:46 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Apache]]></category>

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

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=16</guid>
		<description><![CDATA[I used apache mod_rewrite to create user friendly and search engine optimized urls for sri-lankan.net. Here is how I did it.
Using the following .htaccess configuration, I redirected all the requests to index.php.

1
2
3
4
5
6
7
&#60;IfModule mod_rewrite.c&#62;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&#60;/IfModule&#62;

And decide what to show the user by checking $_SERVER[&#8217;REQUEST_URI&#8217;]&#8230;

1
2
3
4
&#60;?
$url = $_SERVER&#91;'REQUEST_URI'&#93;;
$parts = explode&#40;'/', [...]]]></description>
			<content:encoded><![CDATA[<p>I used apache mod_rewrite to create user friendly and search engine optimized urls for <a href="http://www.sri-lankan.net">sri-lankan.net</a>. Here is how I did it.</p>
<p>Using the following .htaccess configuration, I redirected all the requests to index.php.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="apache apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_rewrite.c&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span>
<span style="color: #00007f;">RewriteBase</span> /
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
<span style="color: #00007f;">RewriteRule</span> . /index.php [L]
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></td></tr></table></div>

<p>And decide what to show the user by checking $_SERVER[&#8217;REQUEST_URI&#8217;]&#8230;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span>;
<span style="color: #000088;">$parts</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="">'/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/08/mod_rewrite/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mum and me&#8230;</title>
		<link>http://ramesh.sri-lankan.net/2008/08/me-and-my-mum/</link>
		<comments>http://ramesh.sri-lankan.net/2008/08/me-and-my-mum/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 15:20:38 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=4</guid>
		<description><![CDATA[
A kindergarten picture of mine, which I found wile scanning my old albums.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://ramesh.sri-lankan.net/wp-content/uploads/2008/08/scn_0063.jpg" alt="" title="Mum carrying me" width="429" height="600" class="alignnone size-full wp-image-6" /></p>
<p style="clear:both;">A kindergarten picture of mine, which I found wile scanning my old albums.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/08/me-and-my-mum/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Merging Subversion Repositories</title>
		<link>http://ramesh.sri-lankan.net/2008/03/merging-subversion-repositories/</link>
		<comments>http://ramesh.sri-lankan.net/2008/03/merging-subversion-repositories/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 13:36:22 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=8</guid>
		<description><![CDATA[I had two different projects in separate subversion repositories and I wanted to merge them together. I found a simple tick like this.

1
2
3
4
5
6
7
$ svnadmin dump srilankan &#62; sri.dump
$ svnadmin dump ebizlanka &#62; ebiz.dump
$ svnadmin create projects
$ svn mkdir file:///home/ramesh/svn/projects/srilankan
$ svnadmin load projects --parent-dir srilankan &#60; sri.dump
$ svn mkdir file:///home/ramesh/svn/projects/ebizlanka
$ svnadmin load projects --parent-dir ebizlanka &#60; [...]]]></description>
			<content:encoded><![CDATA[<p>I had two different projects in separate subversion repositories and I wanted to merge them together. I found a simple tick like this.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> dump srilankan <span style="color: #000000; font-weight: bold;">&gt;</span> sri.dump
$ <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> dump ebizlanka <span style="color: #000000; font-weight: bold;">&gt;</span> ebiz.dump
$ <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> create projects
$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>home<span style="color: #000000; font-weight: bold;">/</span>ramesh<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>srilankan
$ <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> load projects <span style="color: #660033;">--parent-dir</span> srilankan <span style="color: #000000; font-weight: bold;">&lt;</span> sri.dump
$ <span style="color: #c20cb9; font-weight: bold;">svn</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #c20cb9; font-weight: bold;">file</span>:<span style="color: #000000; font-weight: bold;">///</span>home<span style="color: #000000; font-weight: bold;">/</span>ramesh<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">svn</span><span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>ebizlanka
$ <span style="color: #c20cb9; font-weight: bold;">svnadmin</span> load projects <span style="color: #660033;">--parent-dir</span> ebizlanka <span style="color: #000000; font-weight: bold;">&lt;</span> ebiz.dump</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/03/merging-subversion-repositories/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Show working directory in bash prompt</title>
		<link>http://ramesh.sri-lankan.net/2008/03/show-working-directory-in-bash-prompt/</link>
		<comments>http://ramesh.sri-lankan.net/2008/03/show-working-directory-in-bash-prompt/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 02:59:39 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=9</guid>
		<description><![CDATA[I always get confused with which directory I’m working under. The solution I found is to display the working directory in the bash prompt. This is the single line that does the magic in the ~/.bashrc

1
PS1=&#91;\\w&#93;\\$

]]></description>
			<content:encoded><![CDATA[<p>I always get confused with which directory I’m working under. The solution I found is to display the working directory in the bash prompt. This is the single line that does the magic in the ~/.bashrc</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">PS1</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>\\<span style="color: #c20cb9; font-weight: bold;">w</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>\\$</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/03/show-working-directory-in-bash-prompt/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Change timezone of PHP</title>
		<link>http://ramesh.sri-lankan.net/2008/02/change-timezone-of-php/</link>
		<comments>http://ramesh.sri-lankan.net/2008/02/change-timezone-of-php/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 23:24:43 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=7</guid>
		<description><![CDATA[If you wanna change the timezone of a PHP script, set the timezone environmental variable in your PHP code as simple as shown bellow.

1
2
3
&#60;?
putenv&#40;&#34;TZ=Asia/Colombo&#34;&#41;;
?&#62;

]]></description>
			<content:encoded><![CDATA[<p>If you wanna change the timezone of a PHP script, set the timezone environmental variable in your PHP code as simple as shown bellow.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #990000;">putenv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;TZ=Asia/Colombo&quot;</span><span style="color: #009900;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/02/change-timezone-of-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>U.S. Robotics Wireless USB Adapter in Ubuntu 7.10</title>
		<link>http://ramesh.sri-lankan.net/2008/02/us-robotics-wireless-usb-adapter-in-ubuntu-710/</link>
		<comments>http://ramesh.sri-lankan.net/2008/02/us-robotics-wireless-usb-adapter-in-ubuntu-710/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 18:42:44 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=13</guid>
		<description><![CDATA[I had a hard time configuring my U.S. Robotics Wireless USB Adapter in Ubuntu 7.10, at last found out non of the native drives work for it and installed the windows driver with ndiswrapper and disabled all the native usb drivers by adding them to the /etc/modprobe.d/blacklist and boom it start working.

1
2
3
4
5
6
7
8
9
10
11
blacklist islsm_pci
blacklist islsm
blacklist islsm_usb
blacklist [...]]]></description>
			<content:encoded><![CDATA[<p>I had a hard time configuring my U.S. Robotics Wireless USB Adapter in Ubuntu 7.10, at last found out non of the native drives work for it and installed the windows driver with <a href="http://ndiswrapper.sourceforge.net">ndiswrapper</a> and disabled all the native usb drivers by adding them to the /etc/modprobe.d/blacklist and boom it start working.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bash bash" style="font-family:monospace;">blacklist islsm_pci
blacklist islsm
blacklist islsm_usb
blacklist prism2_usb
blacklist rtl8187
blacklist r8187b
blacklist r8187
blacklist prism54usb
blacklist prism54pci
blacklist p54usb
blacklist p54pci</pre></td></tr></table></div>

<p><b>Note:</b>If you don&#8217;t disable the these modules by adding them to the the blacklist the ndiswrapper wouldn&#8217;t work properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/02/us-robotics-wireless-usb-adapter-in-ubuntu-710/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hacking W800i&#8230;</title>
		<link>http://ramesh.sri-lankan.net/2008/01/hacking-w800i/</link>
		<comments>http://ramesh.sri-lankan.net/2008/01/hacking-w800i/#comments</comments>
		<pubDate>Wed, 09 Jan 2008 15:10:59 +0000</pubDate>
		<dc:creator>Ramesh Thiruchelvam</dc:creator>
		
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://ramesh.sri-lankan.net/?p=10</guid>
		<description><![CDATA[I decided to play around with my W800i and hack it&#8217;s features as I want. I used the Far Manager with SEFP (Sony Ericsson Flash Plugin) to access the phone configuration. Here are the stuff I did with my phone. (Use at your own risk)
Remove Camera Sound
I wasn&#8217;t able to find the configuration file for [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to play around with my W800i and hack it&#8217;s features as I want. I used the <a href="http://www.farmanager.com/">Far Manager</a> with <a href="http://www.google.lk/search?q=Sony+Ericsson+Flash+Plugin">SEFP (Sony Ericsson Flash Plugin)</a> to access the phone configuration. Here are the stuff I did with my phone. (Use at your own risk)</p>
<p><b>Remove Camera Sound</b><br />
I wasn&#8217;t able to find the configuration file for the camera sound; so I simply deleted the audio files that&#8217;s used by the camera and got it done.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="text text" style="font-family:monospace;">/FS/tpa/preset/system/sound/cameraburst.3gp
/FS/tpa/preset/system/sound/cameraburst.mid
/FS/tpa/preset/system/sound/camerafocus.3gp
/FS/tpa/preset/system/sound/camerashutter.3gp
/FS/tpa/preset/system/sound/cameratimer.mid</pre></td></tr></table></div>

<p><b>Remove SMS Limit</b><br />
Edit the SMS storage configuration file &#8220;/ifs/settings/messaging/pref_store.txt&#8221; and change &#8220;/smsdata&#8221; to &#8220;/tpa&#8221;.</p>
<p><b>Removing Operator Name</b><br />
Ooops I didn&#8217;t like the big Dilog GSM hiding part of my Wallpaper, I got rid of it by editing the /FS/tpa/system/layout/layout.xml file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="xml xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;object</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;StatusIndication&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;settings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;RowHeight&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;TopOffset&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;TitleHeight&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;TitleTopOffset&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;TitleMode&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;4&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <span style="color: #808080; font-style: italic;">&lt;!-- change &quot;1&quot; to &quot;4&quot; --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;OverlayStyle&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> <span style="color: #808080; font-style: italic;">&lt;!-- change &quot;0&quot; to &quot;2&quot; --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;YPos&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;18&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sett</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Height&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;176&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/settings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/object<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ramesh.sri-lankan.net/2008/01/hacking-w800i/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
