Debian Update Log

To be able to monitor what updates are waiting on my servers I thought I would share some scripts I use developed by BitFolk.

There are 2 scripts, one to tell cron what to do (local-apt.sh) and is saved in /etc/cron.daily/local-apt with the permissions 755 and the main file local-apt.pl is saved in /usr/local/sbin/ and needs to be executable (I use chmod 740).

Then each day the script runs and if there are any update you get a nicely formatted email like the one below:

Package Upgrades Available

Package                                                     Installed                  Available
—————————————————————————-
linux-image-2.6.26-2-xen-686         2.6.26-19lenny1    2.6.26-19lenny2
linux-modules-2.6.26-2-xen-686     2.6.26-19lenny1     2.6.26-19lenny2

The files have a .txt extension for download please remove them else they will not work.

local-apt.sh

local-apt.pl

Spensierato Developments

I have been working hard on the integration of a shopping cart and PayPal payments, page and elements tagging is now working in the backend, just the interface to add and then online shops should be working yay. CSS inheritance works now for skins.

There is now a working auto search (The style is quite http request heavy at the min as transparent CSS sprites are a little tricky, but it’s quite a nice proof of concept). Check out Smart Performance Engines for a working example (Note the known bug below)

There are still some bugs, like the YUI compressed MooTools produces errors which crash IE’s JavaScript, the new menu code (

) needs re-skinning in the default template.

Unfortunately these updates require quite large schema updates, sorry.

I have been working on a new template which I might make the default it is based on the CSS work by Position Everything author Alex Robinson

Anyway should not be long before Alpha 2, there has been quite a change to the road map with these new features but as there community driven (and client!), I think there for the best.

Rover V8 updates

It’s been a long time since I last posted anything, life’s sometimes just to busy.

Anyway I though I would upload some photos of the V8 restoration.

Since the last update I have gotten around to rebuilding and fitting my Austin Princess 4 pot callipers with EBC Greenstuff pads and EBC turbogrove (blind drilled and grooved) discs.
The discs are now 30% thicker than stock and with the 4 pots, the car actually stops now more than once!

I have also just picked up a Borg-Werner T5 from an RS Cosworth with a quickshift from ebay for 275 quid, bargin really. Just need to crack it open and have a good look at the internals to decide on the extent of the rebuild required.Pully end of the bottom end Rover v8 blockUpside down Rover v8 bottem endBlock in part washer 2Block in part washer

Trac

I have set-up Trac at trac.spensierato.net you can use your svn user names and passwords to login.
Please feel free to start uploading data, bug reports etc.

She Runs!

Finally got a few hours to play with my V8, surprisingly after pouring in some oil and spining the oil pump, just bolting on the starter, sprayed some petrol down the carb and in less than 1 crank is started!

Now just to clean it, strip it, megasquirt it at this rate should have it done by 2030

PHP Caching system

I have developed a PHP caching class, it currently uses memcached and supports fallback to session stores, other systems to come.

It’s very simple to use, include and use persistantcache::singleton()->save($name, $data, ‘optional max time in secconds’); and persistantcache::singleton()->get($name); to retrive your data.

PHP Persistent Cache V2 or view the latest in my SVN at http://svn.fryer.org.uk/websvn/filedetails.php?repname=cms&path=%2Ftrunk%2Fcms%2Finc%2Fclasses%2Fpersistantcache.inc

XPC

Well after a failed firmware upgrade on the N2100, I decied it was best to just go out and get an x86 platform. I picked up a Shuttle XPC G5 with an AMD 959 socket, I now have it running Debian and the normal services.

The XPC is almost as quite as the N2100 but with out the annoying hum, running an AMD 3200+ its very quick and runs MD for the software RAID, which works well if I take the disk out. I am still trying to decide the best backup method other than tar.gz and upload to the VPS as the file size is starting to grow, perhaps Rsync over SSH?

Excel to XML using just PHP

I found an excellent script written by Vadim Tkachenko (Included), which is based on Andy Khan’s work.

I have written a quick class to access it and return the contents of the of the file, including all of the worksheets as XML.

See the example.php file it should explain it all quite well, all of my code in this s public domain.

Download Excel to XML in PHP

Roadmap to the future

We I got around to outlining the release goals for Spensierato

You can find the upto date roadmap at http://spensierato.fryer.org.uk/21 but for the lazy:

The current roadmap to Alpha 1 is to:

  • Get all of current elements fully working (Almost – needs testing)
  • Finish skins for each element in the XSLT (Think only Contact needs work)
  • Finialise installer (Almost done)
  • Security editing (Not started)

Alpha 2:

  • Sort skins to suport languages (Use defines etc)
  • Include extra skins and alternative.css
  • Menu Changes
  • Addition security models (If required?)
  • Setting editing
  • Search

Alpha 3:

  • Major skin updates to include ‘Zones of Content’

Alpha 4:

  • Drag and drop re-ordering of elements and menu

Spensierato Pre-Release 5

There should be a working installer now, let me know if you have any problems.

Now also includes an alternative CSS although it contains many bugs it sets an example framework to start from.

Update:

Bug fixes release Pre Release 5.1

  • Due to a find and replace error (My fault) saving of text elements got broken.
  • Skin updates to work better when Tidy is not installed
  • Updates to allow users with out apaches mod_rewrite to still use the site
  • Installer now includes a prity background

Download it from the Demo and Download page

Roadmap to Alpha 1 on its way.

Next Page »