hacking

RedMine experiments

Tagged:  

RedMine is a hosting solution for Open projects conceptually similar to Trac. At first sight, the main difference with trac is that redmine is multi-project, while trac has a narrower vision where each trac instance is a project. To be fair there are extensions in trac to administer multiple projects at once, built this is not shipped with the system.

SVN Snapshots script

Tagged:  

This is a small script to generate code snapshots from the svn repository.


#!/bin/bash
#
# MakeSvnSnapshot.sh
# Purpose: To make easily downloadable (clean) versions of a snapshot of code.
# Intended Use: Called as a daily/weekly/etc cron job
#
# Author: Colin Ross
# Modified Pietro Abate
#
# License:
# This work is licensed under the
# Creative Commons Attribution-Share Alike 2.5 License.
# To view a copy of this license,
# visit http://creativecommons.org/licenses/by-sa/2.5/
# or send a letter to

using xslproc to output not well formed xml

Tagged:  

After few attempt with cduce, in the end I resorted to xslt to convert the cduce manual to a more drupal-friendly format.

Drupal uses the geshi filter to do syntax highlighting. The problem with this filter is that it does not understand CDATA sections and its input is not well-formed xml.

The cduce manual is written in a well-formed xml and uses CDATA sections for cduce code. For example:

<sample><![CDATA[
let f (x : Int) : Int = g x
let g (x : Int) : Int  = x + 1
]]>
</sample>

Patch to mod-caml

Tagged:  

I've done a bit of work to use mod-caml with apache 2.2 . I've uploaded everything on the debian gforge website alioth.

to recompile the package you can get it via svn

svn co svn://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/mod-caml

Then you can compile the package with svn-buildpackage.

I've also wrote a small patch to recursively load dependent modules. I attached a simple loader module that is partially a rip-off of some GPL code I found on the net.

Vim highlight for cduce

Tagged:  

Let's open this new work blog with a small mod I've done to the vim ocaml syntax highlight module.

To use this vim extension just copy it in your .vim directory and add something similar to your .vimrc

autocmd BufRead *.cd set smartindent ft=cduce et sw=4 smarttab

Syndicate content