jsTenjin 0.0.2 released - a fast & lightweight template engine for JS 

Filed under: product on Friday, February 1st, 2008 by kwa | No Comments

I have released jsTenjin 0.0.2.
http://www.kuwata-lab.com/tenjin/

jsTenjin is a very fast and lightweight template engine for JavaScript. It is especially designed for server-side programming and works on both SpiderMonkey and Rhino. Also jsTenjin package contains client-side library which is a subset of server-side library.

0.0.2 is a bug fix release.

Bugfix

  • On SpiderMonkey, if template was large (>=4KB) then Tenjin#readFile() inserted extra commas (’,'). Now fixed.

This bug is reported by P.Khodko. Thank you very much.

Erubis 2.5.0 released 

Filed under: product on Wednesday, January 30th, 2008 by kwa | No Comments

I have released Erubis 0.7.1.
http://www.kuwata-lab.com/erubis/

Erubis is another eRuby implementation which is very fast and extensible than ERB and eruby.

Enhancements from 2.4.1:

Read the rest of this entry »

Kwalify 0.7.1 released 

Filed under: product on Monday, January 28th, 2008 by kwa | No Comments

I have released Kwalify 0.7.1. http://www.kuwata-lab.com/kwalify/

Kwalify is a schema validator for YAML and JSON. From this version, YAML parser is rewrited from scratch and is integrated with data binding.

Here is the enhancements and changes.

Read the rest of this entry »

Mod_fcgi is Great 

Filed under: server on Sunday, December 30th, 2007 by kwa | No Comments

Mod_fcgi is an alternative apache2 module of mod_fastcgi. I have installed mod_fcgi and found it great.

Benefit of mod_fcgi:

  • Process management is sophisticated.
    • No FastCGI process is spawned at first. Prcoess is spawned only when request is comed.
    • Number of processes is increased automatically according to the load of server.
  • As fast as mod_fastcgi.
  • No need to install FastCGI Development Kit.

It’s time to swtich mod_fastcgi to mod_fcgid!

Tips to Debug Ruby CGI script 

Filed under: product, ruby on Monday, December 24th, 2007 by kwa | No Comments

In Ruby CGI script, error messages are printed only in log file. If you got any errors, you must look up log file to know what and where error raised. This is not difficult, but a bother thing.

The following script named ‘cgi_exception.rb’ is a tiny script to display exception in browser like PHP. If you require ‘cgi_exception’, it will help you to know what and where exception raised.

Read the rest of this entry »

Patch for ruby-fcgi 

Filed under: ruby on Sunday, December 16th, 2007 by kwa | No Comments

Current Ruby FastCGI module doesn’t allow you to specify port number or unix domain socket file path of connection.

I have create a patch to enable to specify port number or socket file path. If you have applied the patch, the following code is available.

require 'rubygems'
require 'fcgi'
arg = "/tmp/mysocket.sock"   # or arg = 8001   # port number
FCGI.each(arg) do |req|
  req.out.print "Content-Type: text/html\r\n"
  req.out.print "\r\n"
  req.out.print "<html><body>Hello World!</body></html>\n"
  req.finish
end

The following is a patch for ruby-fcgi/ext/fcgi/fcgi.c:

Read the rest of this entry »

CGIAlt 0.0.2 is released 

Filed under: product, ruby on Wednesday, December 12th, 2007 by kwa | No Comments

I have released CGIAlt 0.0.2.

CGIAlt is an alternative library of standard ‘cgi.rb’. It is faster than and compatible with ‘cgi.rb’ and CGI class.

In this release, CGIAlt supports FastCGI. You should require ‘cgialt/fcgi’ instead of ‘fcgi’ if you want to use CGIAlt with FastCGI.

Read the rest of this entry »

How to Install Rubinius 

Filed under: ruby on Wednesday, December 5th, 2007 by kwa | No Comments

Rubinius is an alternative implementation of Ruby.

  1. Install Git
  2. Copy Rubinius repository
  3. Build by ‘rake build’
  4. Install by ‘rake install’
  5. Invoke Rubinius by ‘rbx’

    Read the rest of this entry »

Ruby-prof is great 

Filed under: ruby on Saturday, December 1st, 2007 by kwa | No Comments

I have installed ruby-prof. Ruby-prof can generate pretty report of propfiling (example). Great.

CGIExt 0.0.2 released - a re-implementation of cgi.rb in C extension 

Filed under: product, ruby on Monday, November 26th, 2007 by kwa | No Comments

I have released CGIExt 0.0.2.

http://rubyforge.org/projects/cgiext/

About

‘CGIExt’ is a re-implementation of ‘cgi.rb’ in C extension. It makes your web application faster.

Currently, not of all functions are implemented.

Notice: This module is still ‘alpha release’ and it’s specification may change in the future.

Read the rest of this entry »