<?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>On Tech and Software &#187; howto</title>
	<atom:link href="http://jmgtan.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://jmgtan.com</link>
	<description>Random thoughts on technology, ventures, algorithms, frameworks, gadgets and THE MAN</description>
	<lastBuildDate>Fri, 02 Jul 2010 11:14:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Improve Eclipse Editor (HTML/CSS)</title>
		<link>http://jmgtan.com/2010/02/25/improve-eclipse-editor-htmlcss/</link>
		<comments>http://jmgtan.com/2010/02/25/improve-eclipse-editor-htmlcss/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 13:40:26 +0000</pubDate>
		<dc:creator>Jan Michael Tan</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://jmgtan.com/?p=283</guid>
		<description><![CDATA[I&#8217;ve been having problems with editing html and css files in Eclipse for quite some time now, even when I&#8217;m using the latest version of Eclipse, Galileo, and the latest version of PDT. Typing constantly lags, and just typing a short string sometimes takes around 12 seconds to appear. My machine is no wuss either, [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>I&#8217;ve been having problems with editing html and css files in Eclipse for quite some time now, even when I&#8217;m using the latest version of Eclipse, Galileo, and the latest version of PDT. Typing constantly lags, and just typing a short string sometimes takes around 12 seconds to appear. My machine is no wuss either, its a Macbook Pro with 4gb of ram, and I&#8217;ve allocated 2gb of that for eclipse alone. The problem stems from constant validation when typing even though the validators are suspended/disabled. To remedy this problem follow the following steps:</p>
<ol>
<li>Go to Preference window</li>
<li>Expand the General tab</li>
<li>Expand the Editors tab</li>
<li>Click on the Structured Text Editor then disable the following:
<ol>
<li>Report problems as you type</li>
<li>Inform when unsupported content type is in editor</li>
<li>Enable folding</li>
<li>Enable semantic highlighting</li>
</ol>
</li>
</ol>
<p>That helped me alot in making Eclipse usable again for PHP development, now I can return to Eclipse from using Netbeans.</p>
<p><em>Update: Although Eclipse became usable with the tweaks above, I got spoiled with Netbeans&#8217; speed especially the speed of code completion in PHP. Its nice being able to work with both PHP and Java without changing perspective. Now if only Netbeans&#8217; would improve their Subversion support, that would be epic (well at least for me)!</em></p>
<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fjmgtan.com%2F2010%2F02%2F25%2Fimprove-eclipse-editor-htmlcss%2F&amp;linkname=Improve%20Eclipse%20Editor%20%28HTML%2FCSS%29"><img src="http://jmgtan.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://jmgtan.com/2010/02/25/improve-eclipse-editor-htmlcss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to Symfony 1.4 from PEAR based 1.2</title>
		<link>http://jmgtan.com/2010/01/03/upgrading-to-symfony-1-4-from-pear-based-1-2/</link>
		<comments>http://jmgtan.com/2010/01/03/upgrading-to-symfony-1-4-from-pear-based-1-2/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 02:26:45 +0000</pubDate>
		<dc:creator>Jan Michael Tan</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://jmgtan.com/?p=199</guid>
		<description><![CDATA[I&#8217;ve been working on a project, which started on 1.2.7, for almost 6 months now and have been upgrading it religiously along the 1.2.x branch which stopped at 1.2.10. We&#8217;re currently entering the testing stage, and being as curious as I am opted to create a 1.4 branch from the current trunk and started the [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>I&#8217;ve been working on a project, which started on 1.2.7, for almost 6 months now and have been upgrading it religiously along the 1.2.x branch which stopped at 1.2.10. We&#8217;re currently entering the testing stage, and being as curious as I am opted to create a 1.4 branch from the current trunk and started the upgrade process while merging fixes from the trunk as fixes come in. We&#8217;re using the PEAR-based approach which allows us to quickly upgrade the base installation as soon as a new release comes in. Although i&#8217;m planning to migrate it to the subversion approach soon, but thats another blog post.</p>
<p><span id="more-199"></span></p>
<p>So lets start with the upgrade, symfony 1.4 and 1.3 is basically the same feature-wised but the former lacks the backwards compatibility that the latter provides, basically 1.3 is just a stepping stone to upgrade to 1.4. The Symfony team really did a great job on the seamless upgrade process. Also to have a better background on the upgrade process read the upgrade document from their website (<a href="http://www.symfony-project.org/tutorial/1_4/en/upgrade" target="_blank">http://www.symfony-project.org/tutorial/1_4/en/upgrade</a>). Ok, so lets start with the upgrade.</p>
<p>Lets uninstall symfony 1.2</p>
<pre class="brush: bash;">

pear uninstall symfony/symfony
</pre>
<p>Then install symfony 1.3</p>
<pre class="brush: bash;">

pear install symfony/symfony-1.3.1
</pre>
<p>Once installed, make sure to upgrade the plugins, rebuild the models, and clear the cache to make sure you&#8217;re using the new files. Now you can opt to continue upgrading to 1.4 and drop the backwards compatibility or just stick with 1.3 for the time being, both of which are being supported but 1.4 is a LTS release, meaning that it has a longer support period than 1.3. Before upgrading to 1.4 it is important to remove old class files, symfony provides a build-in task to ease the transition. Just execute this command and symfony will list down all of the deprecated stuff that should be remove/modified, they also provided documentation on what to replace the deprecated stuff with (<a href="http://www.symfony-project.org/tutorial/1_4/en/deprecated" target="_blank">http://www.symfony-project.org/tutorial/1_4/en/deprecated</a>)</p>
<pre class="brush: bash;">

symfony project:validate
</pre>
<p>So now that you&#8217;ve removed/modified all of the deprecated stuff, upgrading is quite similar to 1.3.</p>
<p>Remove the old symfony installation</p>
<pre class="brush: bash;">

pear uninstall symfony/symfony
</pre>
<p>Install the new one</p>
<pre class="brush: bash;">

pear install symfony/symfony-1.4.1
</pre>
<p>Then just clear the cache. Also the freeze/unfreeze task has been removed in 1.4; it may or may not be important to you but I use it when deploying to our servers, one quick fix is to just create a lib/vendor folder and copy/paste the symfony folder found in your PEAR installation folder, and then modifying the include call in the config/ProjectConfiguration.class.php file. So now you have a easily upgradable and independent symfony installation inside your app.</p>
<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fjmgtan.com%2F2010%2F01%2F03%2Fupgrading-to-symfony-1-4-from-pear-based-1-2%2F&amp;linkname=Upgrading%20to%20Symfony%201.4%20from%20PEAR%20based%201.2"><img src="http://jmgtan.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://jmgtan.com/2010/01/03/upgrading-to-symfony-1-4-from-pear-based-1-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache 2: Self-Signed Certificates</title>
		<link>http://jmgtan.com/2009/05/12/apache-2-self-signed-certificates/</link>
		<comments>http://jmgtan.com/2009/05/12/apache-2-self-signed-certificates/#comments</comments>
		<pubDate>Tue, 12 May 2009 08:30:50 +0000</pubDate>
		<dc:creator>Jan Michael Tan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://jmgtan.com/?p=129</guid>
		<description><![CDATA[Self-signed certificates are very useful when doing testing on your local machine. The following was tested using a unix based environment. Generate the Key and Certificate First we generate the private key openssl genrsa -des3 -out server.key 1024 Then we create a certificate signing request openssl req -new -key server.key -out server.csr We make sure [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Self-signed certificates are very useful when doing testing on your local machine. The following was tested using a unix based environment.</p>
<p><span id="more-129"></span></p>
<p><strong>Generate the Key and Certificate</strong></p>
<p><em>First we generate the private key</em></p>
<pre class="brush: bash;">

openssl genrsa -des3 -out server.key 1024
</pre>
<p><em>Then we create a certificate signing request</em></p>
<pre class="brush: bash;">

openssl req -new -key server.key -out server.csr
</pre>
<p><em>We make sure that everytime we start the apache server, we don&#8217;t have to type the passphrase</em></p>
<pre class="brush: bash;">

cp server.key server.key.org

openssl rsa -in server.key.org -out server.key
</pre>
<p><em>Lastly we self-sign the certificate</em></p>
<pre class="brush: bash;">

openssl x509 -req -days 365 -in server.csr -signkey server.key -out               server.crt
</pre>
<p><strong>Configure the Apache Server</strong></p>
<p>Edit your apache&#8217;s httpd.conf and uncomment the following lines (just search it in the file)</p>
<pre class="brush: bash;">

LoadModule ssl_module modules/mod_ssl.so

#PATH MAY DIFFER TO YOUR SETUP

Include conf/extra/httpd-ssl.conf
</pre>
<p>Next edit your apache&#8217;s httpd-ssl.conf, search for the following configuration item: SSLCertificateFile &amp; SSLCertificateKeyFile, change it to where your server.crt and server.key files are located respectively (absolute path!)</p>
<p>Finally if you&#8217;re using VirtualHost it is important to declare two NameVirtualHost (one for port 80 and port 443). Example:</p>
<pre class="brush: xml;">

NameVirtualHost 127.0.0.1:80

NameVirtualHost 127.0.0.1:443

&lt;VirtualHost 127.0.0.1:80&gt;

ServerName local.example.com

DocumentRoot /path/to/your/example.com/www

&lt;/VirtualHost&gt;

&lt;VirtualHost 127.0.0.1:443&gt;

ServerName local.example.com

DocumentRoot /path/to/your/example.com/www

SSLEngine on

SSLCertificateFile /path/to/your/server.crt

SSLCertificateKeyFile /path/to/your/server.key

&lt;/VirtualHost&gt;
</pre>
<p>Save and restart your Apache server!</p>
<p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fjmgtan.com%2F2009%2F05%2F12%2Fapache-2-self-signed-certificates%2F&amp;linkname=Apache%202%3A%20Self-Signed%20Certificates"><img src="http://jmgtan.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://jmgtan.com/2009/05/12/apache-2-self-signed-certificates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
