« October 2005 | Main | December 2005 »

November 24, 2005

Wikipedia definition of Tag Soup

Tag soup - Wikipedia, the free encyclopedia

Here's the QA stuff from the W3C:

http://www.w3.org/QA/Tips/

Posted by pj at 08:45 PM

Doing CGI with Windows executables on Tomcat 5

There's a how-to document on the Tomcat site. The interface is managed by a JAR:

http://tomcat.apache.org/tomcat-5.0-doc/cgi-howto.html

The executable parameter needs to be set as follows:

<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>clientInputTimeout</param-name>
<param-value>100</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>6</param-value>
</init-param>
<init-param>
<param-name>executable</param-name>
<param-value>cmd /c</param-value>
</init-param>
<init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>WEB-INF/cgi</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>

Posted by pj at 09:27 AM

November 16, 2005

Parsing dates in Python

Dates and Times

Posted by pj at 03:42 PM

November 14, 2005

Doing dynamic regex replacements with JavaScript

A script used by HTML Dog to do inline replacements in HTML.

Posted by pj at 11:40 AM

Getting the browser window size with Javascript

JavaScript tutorial - Obtaining the browser window size

document.body.clientHeight/Width

Posted by pj at 11:32 AM

November 04, 2005

Google SiteMaps and OAI-PMH

Inside Google Sitemaps: Using OAI-PMH with Google Sitemaps

See also this article:

http://www.xml.com/lpt/a/2005/10/26/google-site-maps.html

Posted by pj at 09:36 PM

Information about installing MySQL and DBD::MySQL on Cygwin

search.cpan.org: INSTALL - How to install and configure DBD::mysql

The trick is, once installed, it needs to be run thus:

cd /usr/local/mysql/bin
./mysql -h 127.0.0.1

Posted by pj at 02:01 PM

Setting up ProFTPd as a Windows service under Cygwin

In order to run ProFTPd as a Windows service under Cygwin the following needs to be set in the /etc/proftpd.conf file:

# Set the user and group under which the server will run.
User                            SYSTEM
Group                           Administrators

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

The server can then be run as a service:

cygrunsrv --install proftpd \
          --path /usr/sbin/proftpd.exe \
          --args "--nodaemon" \
          --type manual \
          --disp "CYGWIN proftpd" \
          --desc "ProFTPd FTP daemon"

Then it needs to be run:

cygsrunsrv --start proftpd

Posted by pj at 09:19 AM

November 02, 2005

How to add new users in Cygwin for SFTP access

In Windows, under Control Panel \ Administrative Tools \ Computer Management add a new user. If our new user is thingy

In cygwin as Administrator, type:

mkpasswd -l | grep thingy >> /etc/passwd

This adds a line to the passwords file for the new user.

You can then go in and change the user's home directory entry to the folder you wish them to access via sftp.

Posted by pj at 05:17 PM

November 01, 2005

Tutorial about servlets in Jython

Jython Webapp Tutorial - Part 1 - Writing Servlets in Jython

Posted by pj at 08:45 PM