Tips 'n Tricks

Subversion's one problem

Tags: 

I've used the document revision management system Subversion for a few years now and find it to be an excellent tool that has never given me any problems. Until this week, that is. I was helping to set it up on a web server that has Fedora Core 4 as its OS - we wanted to have a central code repository for the various projects we worked on and it was a logical step to place it there. Well, I started searching around for an installer for the latest Subversion release (v1.4.2) that was compatible with FC4 only to discover that there wasn't one! It seems that during the v1.4 development cycle they updated one of their code's dependencies (libapr) to a newer version than is compatible with FC4, you need to have FC5 or newer to be able to install it without any hickups. So, rather than asking the server's service provider to upgrade to a newer OS I'm going to see if there's a way to hack the code to make it install with the older version - wish me luck!

Need to post Powerpoint files online? Use FlashPaper!

Tags: 

At work someone needed to be able to post Powerpoint files online that:

  • had fancy fonts embedded,
  • created a read-only file (as best we could)
  • didn't require any additional software for people to view it.

What did we choose? FlashPaper from Adobe! Poi-fect! In addition to being able to save a Flash (SWF) file it can also save out PDFs and works great. Lastly, just like Adobe Acrobat it installs a printer in the system that you can print to from any software you have installed and save the file to either SWF or PDF. Well worth the money.

Awesome form validation script

Tags: 

I use the Javascript libraries Prototype and Script.aculo.us a good deal in my projects, but there was one feature they didn't have between them - form validation. A quick google uncovered a super-simple solution to this problem written by an Australian - all you need to start is one Javascript file and one line of Javascript, then add one single DOM-compatible attribute to your input lines and it'll work right out of the box. The even better part is that extending and enhancing it is very easy, just add a CSS line or two to customize your error messages, etc, easy as pie.

Subversion on Windows via Cygwin

Tags: 

Cygwin is a wonderful system for running UNIXy/Linuxy software on Windows. While there are many caveats it does work quite well for at least basic tasks and it has been extended so far as to be able to run X/Windows therefore KDE and Gnome all within Windows. Nifty. Anyway, while trying to get it set up for running a Subversion server I was having problems getting it to work as advertised. What I ended up having to do was tell the svnserve program to run as a service/daemon in the foreground rather than splitting off to run in the background as normal, e.g.:

$ cygrunsrv.exe --install svnserve --disp "CYGWIN svnserve" --path /bin/svnserve --args "--daemon --foreground --root=/home/svn"

Pages

Subscribe to Tips 'n Tricks