<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.3" -->
<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>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>Here is how I configured Quartz to work with Spring and Hibernate.  I'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 ...</description>
		<link>http://code.mikwat.com/archives/24</link>
			</item>
	<item>
		<title>Find and Replace String in Multiple Files</title>
		<description>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>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't ...</description>
		<link>http://code.mikwat.com/archives/21</link>
			</item>
	<item>
		<title>Problems using Digester in custom Struts Plugin</title>
		<description>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 ...</description>
		<link>http://code.mikwat.com/archives/18</link>
			</item>
	<item>
		<title>Importing Existing Email into Gmail</title>
		<description>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's GMail Loader (GML), but it was much simpler than ...</description>
		<link>http://code.mikwat.com/archives/17</link>
			</item>
	<item>
		<title>Internationalize PHP Applications</title>
		<description>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's a place for cyclists to log ...</description>
		<link>http://code.mikwat.com/archives/16</link>
			</item>
	<item>
		<title>MSSQL Transaction Log Full</title>
		<description>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 'db_example_log' is not the logical name of the logfile, the 2nd command will ...</description>
		<link>http://code.mikwat.com/archives/14</link>
			</item>
	<item>
		<title>Oracle ADF Cache Files</title>
		<description>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't make the system administrators happy.

 Solution Under Linux:  This problem ...</description>
		<link>http://code.mikwat.com/archives/13</link>
			</item>
	<item>
		<title>Site Monitoring</title>
		<description>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's what I've settled on.

1. Broadband Reports offers both free and paid services.  Their Line Monitoring tool provides a continuous response time graph shown below ...</description>
		<link>http://code.mikwat.com/archives/7</link>
			</item>
</channel>
</rss>
