Today 7 Jan 2009 we have an all day power outage starting at 8:30AM. Seeing as this webserver sits under my desk at home and the UPS is a tiny one that means that we are going offline for the duration of the outage. Be back at about 4:00PM
James McDonald
Clear Squid Cache CentOS 5.x
How: service squid stop rm -rf /var/spool/squid/* (removes cached files and directory structure) rm -rf /var/log/squid/* (removes the logs) squid -z (recreates the cache_dir structure) service squid start Why: Doing the above can be helpful if you want to claw back...
Running Cron Every X Minutes
I keep forgetting the correct format of cron entries to have a command run every three minutes To do it every three minutes you need to make the syntax */3 not simply 3 (which means on the 3rd minute of every hour) # m h dom mon dow command */3 * * * *...
LedgerSMB – Changing Invoice to “Tax Invoice”
This is done on Fedora 10. File paths may change depending on what install package or location you install to. On Fedora 10 the path is LSMB_ROOT=/usr/share/ledgersmb To maintain an orginal untouched set of templates you should always copy the demo templates away to a...
Putting the I in Idiot – or I just deleted my External USB Drive Partition
The Problem: Doing a Windows XP Pro install at work... Boot Install CD Delete partitions Delete C: Hmm didn't know there was a D: but hey it's got to go.... Delete D: ... Oh No! That was my 250GB External USB drive holding a heap of backups.... Argggh The Fix: I have...
Changing the LedgerSMB Letter Head Graphic
Make a backup of the original demo templates cp -rv /var/lib/ledgersmb/templates/demo /var/lib/ledgersmb/templates/template1 # on Ubuntu this was sudo cp -rv /etc/ledgersmb/templates/demo /etc/ledgersmb/templates/template1 Go into the LedgerSMB admin control panel and...
Make a y/n prompt for cscript.exe using VBS
msg = "Do you wish to add " & First & " " & Last & "?" wscript.echo msg Wscript.StdOut.Write "Add Employee to DB? (y/n) " choice = Wscript.StdIn.ReadLine ' read the input if choice = "y" or choice = "Y" then ' do what you have to do .... end...
LedgerSMB Installation on Fedora 10 Notes
Overview Starting from Fedora 10 Live Installed to Harddisk. This is a a record of the chronological steps with all the errors I encountered along the way. As such it is a kind of messy and in a as it happened style. I will flesh these notes out as I have time. Email...
Error Installing SimpleInvoices
Fail I haven't been able to install SI on U8.10 there are alot of problems with the Ubuntu 8.10 enviroment. Incorrect mysql_pdo modules etc... Nightmare ... SI installs fine on Fedora 10. Problem: On Ubuntu 8.10 Server I get "Warning: Smarty::include()...
RIP – Foo the Fighting Fish
Sadly Foo our Siamese Fighting Fish was found motionless in the bottom of his tank this morning (18/12/2008).
