JGZ

...it's all about me! ;-)

  • Increase font size
  • Default font size
  • Decrease font size
Computers

DiveLogs form for Joomla

E-mail Print PDF

I created this form for my own web site to quickly add dive logs as articles to the Joomla database. I wanted them as articles, because this ensures that the logs can be migrated to future versions of Joomla and because it makes it easy to edit individual logs later on, for example to add pictures or videos.

Features include unit conversion and automated calculation of  some dive times.

I created this form with the FacileForms component for Joomla 1.0. You will need these two software packages to use my form.

To install it, download the FacileForms XML package file and install it via the FacileForms configuration. Once installed, look through the PHP code in the form's submit script (to get there choose the "Submit Dive Logs" form from the "Manage Forms" page of the Facile Forms component and click on the "Edit Form" button) and edit the settings to fit your configuration. I have done my best to document it clearly via comments. The most important things to adjust are the section-, category- and creator-ids. Finally use FacileForms to create a link in the administration backend to the form. It should now show up in the components menu.

It should be possible to use the form in the frontend, but since I have not checked it for security issues, I recommend against it. However if you still choose to head down this path, then change the "Run Mode" option in the form settings. You might want to change some settings on the "Form Pieces" tab as well, like access for non-registered users.

Have fun!

This form is licenced under the GPL, so you can make changes to it and redistribute the changed version, as long as you fulfill the terms of the General Public Licence. I would however appreciate it, if you would submit improvements to me, so I can include them in the original version for everyone to enjoy and to prevent unnecessary forking.

Screenshot of DiveLogs form

Last Updated on Tuesday, 18 November 2008 07:54
 

FTP backup scripts for Linux

E-mail Print PDF

With dedicated hosting services (also called Rootserver in Germany), often the only way to access data-backup storage-space is by FTP. So if you want to use more than half of your disc space you have a problem, because you can not create the backup files locally and transfer them to the backup FTP server later. What you need is a backup software, which can create the backup files directly on the backup FTP server.

I used Stefan Tomanek's ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it , http://stefans.datenbruch.de/rootserver/) idea to pipe the tar files directly into curl, and implemented a complete backup solution with full, differential and incremental backups.

If you make any improvements to the scripts, that might be useful to others, please let me know that and how you did it, so I can incorporate them into the version available here. I will give credit for any work anyone has put into this version.

To install, simply download and unpack the archive file in /root/ (homedirectory of the user root).

Adjust the script files (see the comments in the scripts for details) with an editor like vi or emacs and copy them to your cron directories for monthly (full), weekly (differential) and daily (incremental) execution.

Alternatively you can use the interactive script directly on the command line.

Update: In version 1.1 I fixed a bug that prevented the removal of old backup files. I also reduced the downtime of server daemons for typical ISP-Config setups.

Version 1.0 is still available on request (use the contact form on this site).

Last Updated on Tuesday, 18 November 2008 09:10