<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.1" -->
<rss version="0.92">
<channel>
	<title>mikwat code</title>
	<link>http://code.mikwat.com</link>
	<description>A coder's daily explorations through PHP, Java, CSS, JavaScript, Linux, OS X, Apache, Tomcat, and everything else.</description>
	<lastBuildDate>Wed, 20 Feb 2008 22:14:01 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>SSH Tunnel in OS X</title>
		<description><![CDATA[Open tunnel:

$ ssh -L 8080:remote-host:80 -f -C -q -N me@myserver.com

Close tunnel:

$ ps -aux &#124; grep ssh
$ kill {pid}

]]></description>
		<link>http://code.mikwat.com/archives/26</link>
			</item>
	<item>
		<title>Quartz + Spring + Hibernate with JDBC Job Store</title>
		<description><![CDATA[Here is how I configured Quartz to work with Spring and Hibernate.  I&#8217;m using the Quartz JDBC Job Store which stores and retrieves the job settings from a database instead of a static configuration.
I use the SchedulerFactoryBean to manager the Quartz Scheduler lifecycle.
spring-servlet.xml

...
	&#60;!-- Quartz --&#62;
	&#60;bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&#62;
		&#60;property name="applicationContextSchedulerContextKey" value="applicationContext"/&#62;
		&#60;property name="configLocation" value="classpath:quartz.properties"/&#62;
	&#60;/bean&#62;
...

The Quartz settings are [...]]]></description>
		<link>http://code.mikwat.com/archives/24</link>
			</item>
	<item>
		<title>Find and Replace String in Multiple Files</title>
		<description><![CDATA[Periodically I need to replace a string in multiple files on Linux.  I find myself looking up this command or a variant every time.
grep -rl OLDSTRING *.FILEEXTENSION &#124; xargs perl -pi~ -e 's/OLDSTRING/NEWSTRING/'
]]></description>
		<link>http://code.mikwat.com/archives/23</link>
			</item>
	<item>
		<title>SSL + gzip Compression with Apache and Tomcat</title>
		<description><![CDATA[My setup is a single Fedora Core 6 server running Apache 2.2.4 (with mod_ssl and mod_proxy) and Tomcat 5.
With mod_ssl the following virtualhost is setup using an SSL certificate from GoDaddy.  Notice the SSLCertificateChainFile /etc/httpd/conf/ssl.crt/gd_intermediate_bundle.crt reference.  This intermediate certificate comes from GoDaddy and is required.  I didn&#8217;t catch this at first and [...]]]></description>
		<link>http://code.mikwat.com/archives/21</link>
			</item>
	<item>
		<title>Problems using Digester in custom Struts Plugin</title>
		<description><![CDATA[In migrating from Tomcat 5.0 to Tomcat 5.5, one of my custom Struts plugins started failing on startup with the following exception:

org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: com.mikwat.struts.config.AuthorizationActionConfig
The root of the problems appears to be that the Digester defaults to using the same ClassLoader that loaded it and whichever ClassLoader this is, it doesn&#8217;t have [...]]]></description>
		<link>http://code.mikwat.com/archives/18</link>
			</item>
	<item>
		<title>Importing Existing Email into Gmail</title>
		<description><![CDATA[We recently switched to Google Apps at work and I have been looking for a way to import my existing email, which was stored on an IMAP server, into Gmail.  The answer became clear when I came across Mark Lyon&#8217;s GMail Loader (GML), but it was much simpler than I thought.  Rather than [...]]]></description>
		<link>http://code.mikwat.com/archives/17</link>
			</item>
	<item>
		<title>Internationalize PHP Applications</title>
		<description><![CDATA[The other day it dawned on me that my hobby website, My Cycling Log, has a large international audience and that I should cater more to them.  My Cycling Log is basically exactly what its name suggests: an online cycling log.  It&#8217;s a place for cyclists to log their rides, share their achievements [...]]]></description>
		<link>http://code.mikwat.com/archives/16</link>
			</item>
	<item>
		<title>MSSQL Transaction Log Full</title>
		<description><![CDATA[Problem: Occasionally I get the following JDBC error from MSSQL:
The log file for database 'db_example' is full. Back up the transaction log for the database to free up some log space.
Solution:
BACKUP LOG db_example WITH TRUNCATE_ONLY
DBCC SHRINKFILE(db_example_log, 2)
If &#8216;db_example_log&#8217; is not the logical name of the logfile, the 2nd command will fail.  The correct logical [...]]]></description>
		<link>http://code.mikwat.com/archives/14</link>
			</item>
	<item>
		<title>Oracle ADF Cache Files</title>
		<description><![CDATA[Problem: I have a web application running under Tomcat using the Oracle ADF framework.  When the application is installed as a service under Windows, it outputs cache files in mass to \WINDOWS\system32\  Needless to say, this doesn&#8217;t make the system administrators happy.
 Solution Under Linux:  This problem is avoided by starting the [...]]]></description>
		<link>http://code.mikwat.com/archives/13</link>
			</item>
	<item>
		<title>Site Monitoring</title>
		<description><![CDATA[After having some site performance and availability problems, I began investigating ways to monitor web servers. There are lots of sites offering various services, here&#8217;s what I&#8217;ve settled on.
1. Broadband Reports offers both free and paid services.  Their Line Monitoring tool provides a continuous response time graph shown below by sending out pings every [...]]]></description>
		<link>http://code.mikwat.com/archives/7</link>
			</item>
</channel>
</rss>
