Rob's Ramblings

Monday, 17 September 2018

Some contemplating on frame storage formats and clashes therein

I recently posted a little bit on how I now store contributed videotex (teletext and viewdata) frames within a database, so as to make accessing them far easier on the application side.

To do this, I had to decide on exactly how to store the visible content of the frame.  Everything else is easy; I crated a secondary table holding key=>value pairs, which means it is very easily expandable, and any application needing particular data can go look for it's own, and not be confused by anything extra.

So. The frame content itself.  I didn't get much help looking at existing storage formats, as I've got at least 17 types documented, and others I know about.  I may however have been influenced somewhat by them.

When you think about a viewdata frame, or a teletext page, you automatically see the 23-25 lines by 40 columns of static image.  Almost every frame you will find that has been saved out by a terminal emulator, or teletext captures, will consist of those 920, 960 or 1000 bytes of data, perhaps with some meta-data accompanying, sometimes not.  I think that every third-party viewdata host that I have so far encountered also stored its pages so.  Individual characters took up a single bytes as per their ASCII character code, and colour and control characters were also stored as a single byte.  For teletext, this uses the non-display codes below the space, as there is no concept of cursor movements, carriage returns, etc, on a teletext screen, which is what these values are used for in a serial-terminal based service.

Prestel, and viewdata generally, is however serial.  Frames are sent to the user as ASCII characters, but the colour and control codes are sent as command sequences:  Escape then a capital letter.  So, what might be stored in a teletext page as "<01>RED<02>GREEN<07>WHITE" would be sent to a viewdata terminal as "<ESC>ARED<ESC>BGREEN<ESC>GWHITE".  Short lines would be terminated by a carriage return and linefeed, so reducing the need to send the whole 40 characters.

Now.. Prestel itself is known to have stored the frame data exactly as it would be sent to the user.  There was a hard limit of 920 bytes available to the editor to use, and colour codes, etc, took up two of them.  This made creating complicated graphical pages somewhat difficult, as too many colour changes could quickly eat up all the allocation.  (Response frames were even worse; you only got 716 bytes to play with!)  This is probably why all third party viewdata servers stored their page as the 22x40 character full image, with the control codes stored as per teletext.  Doing this allowed for much more colour and graphic rich content than was possible on Prestel itself - the conversion was done on transmission.  The actual codes stored varied - some systems used 7 bit data throughout, some used top-bit sett letters to indicate that letter needed the escape sending before it, some used 7 bits for visible characters, and top-bit set control codes (codes in the range 128-159) and at least one had everything with the top bit set!

So fast forward 30 years, and I'm writing code to handle saved viewdata pages and display them on this new-fangled World Wide Web thing.  There is zero support for viewdata and teletext format images, so we have to roll our own, converting saved pages in any number of formats into PNG or GIF (to account for flashing characters) images that a web browser can display.

As an intermediate stage, I have to pull that 22-24x40 matrix of characters out, before plotting them onto a graphics image for sending to the viewer.  This intermediate block of characters I called an "internal" format, and was 7-bit clean, so codes below space for the colour codes, and the rest visible.

For nearly ten years this worked fine, and this internal, intermediate format, was the format used when I created the page database.

It is only this week I hit a problem with this, and it is down to a peculiarity with how Prestel stores Response Frames.  (And, I assume, other frames that are not simple static pages.)

A response frame contains a number of fields that are defined by the editor when they create it, and are either filled automatically by the Prestel server when it displays the page, or  can contain text or data to be entered by the user.  When the user hits # on the last field, they are given the option to send (or not) the page to the IP.  It is then delivered to their mailbox in a filled-in state.

When defining a response frame in the standard Prestel online editor, a field is specified by typing, e,g. Crtl-L n 30 Ctrl-L will create a field of 30 characters length containing the subscribers' name - on pressing the second Ctrl-L the system will display 30 "n"s in the required position.  The same procedure is repeated for any other field you request.  What gets stored in the Prestel database is a single Ctrl-L and 30 "n"s.

When you retrieve a page from Prestel using the "Bulk" Online editor, it is sent exactly as stored, so you get the Ctrl-L and sequence of letters alongside the Escape'd colour codes and CR/LFs for short lines.  Uploading a replacement frame you specify the layout in the same manner.

Those of you familiar with the standard ASCII control codes will recognise that Ctrl-L is also known as "Clear Screen", and is a character that is usually sent before sending the frame content.  This is probably why it was used for this purpose - finding it in the middle of the frame content would not make sense, so it was re-purposed as a flag for start-of-field.  Obviously this is never actually sent to the user, but is replaced by a space when viewing on a terminal.

Now ...

I have two small databases in my posession that were pulled back down from Prestel at some point, and these include a number of Response Frames.

When I converted the data to my "internal" format to load them into the database, this normalised the control codes to 7-bit data, filling that lower 32 bytes of the table.  On displaying, these codes were sent as <Esc><code + 64>, this recreating the colour sequences.

When it comes to a <ctrl l>, however, this was never stored in the database - the normalisation routine ignored it.  However, even if it had been saved, on recall, it would have been translated into an <Esc>L, the sequence to end double-height text.

So, to summarise, the normalisation I did, in most cases, lost the start-of-field character because it wasn't expected in a frame.  And if it did make it though, it would be indistinguishable from the "Single Height" code, and as that was allowed anywhere in a response frame, it couldn't be deduced from context.

I never noticed, because there were so few frames affected, and there was no need to process the fields the code indicated, anyway!

This last month, however, I've been working on a viewdata host program that will run on a modern server, and which I could use to receate the look and feel of using the original Prestel service.  I've been testing this using an actual Prestel terminal, and it's been great fun!  It's only when I stumbled across one of these response frames, and decided to support them, that I discovered this problem!

Looking into how other file formats solved this, it seems that at least one of them uses <Esc> itself as the field indicator.  If  stored in the database like that, when expanded on recall this would translate into an unused code sequence, in viewdata, so is a suitable alternative.  I will translate the affected pages, eventually!


So, a decision taken about 10 years ago came back to bite me this week. And it's all to do with 25 year old data in a file format determined 40 years ago that everyone else decided needed to be done differently.

Well done for making it this far!


As an aside .. Prestel added support for "Dynamic frames" which were basically frames that could contain cursor movement characters.  This meant you could go back and change things after you had already drawn them.  This was easy for them, as they stored data in an as-transmitted form anyway.  It's no so easy for host software that expects it's frames to be stored in a fixed matrix!  I'll be working on this, one I find some original examples....


Labels: , , , , ,

Friday, 14 September 2018

The Videotex Database - submit your pages now!

When I started viewdata.org.uk (and teletext.org.uk), I just uploaded the pages and databases I had as-is, and had my scripts deal with them on an as-accessed basis.  This is because I wanted to preserve the data as much as possible - any translation to a new format (such as JPEGs) would inevitably lose data, as well as context.

As time has moved on, and as the variety of data formats I have had to deal with has proliferated, this has increasingly become somewhat unwieldy. I decided, therefore, to try and rationalise things somewhat.

Each of the various file formats I was dealing with had different properties. Each had strengths, and each had weaknesses.  I could not decide on a single common format to try and convert files into.

Rather than create a new "perfect" file format, I decided therefore to store the frames within a database.  By having a primary table for the page content and certain static data, and a separate table for meta-data, any particular properties a particular file format had could be accommodated.

Once the data is held within a standardised database, of course, it makes it much easier to access it and use it from many different applications.  The first, and most obvious, is the ability to search across the entire database for key words or phrases. This is implemented on the front page of the database.

The main in-browser viewer for the saved pages implements a timeline function, where you can see how a given page has changed over time.  See, for example, the CEEFAX news headlines.

And of course, for viewdata pages, once can implement a dial-up host, so 1980s terminals can connect directly into the service and browse it exactly as they did at the time.  (This is mostly done, just pending further tidying up!)

Currently the database contains page data I have collected myself or already been sent. However I am aware that there is a vast amount more out there.  Jason Robertson has been amazing at rescuing teletext pages off old video tapes, and I know of at least one previous Prestel IP that has a massive archive of pages still extant, albeit sat on very old hardware.  I've got part of The Gnome At Home, and I know the rest still exists.

This week's task (one of the various "I'll do something" for Retrochallenge 2018/09) was to create a page for viewers to directly submit their pages to the database.  This is now complete!  It actually places the data into a queue, after briefly validating it, so it can be checked and added later.  I would welcome any contributions, anything from a single frame to a complete service backup!  If you need help, feel free to drop me a line.


Labels: , , ,

Monday, 3 September 2018

A Viewdata Host

One of my aims when setting up viewdata.org.uk was to create a means by which readers could experience connecting to a viewdata service, and also to use such to present what saved pages we had in an appropriate context.

Sadly, there was nothing available that I could find that would allow me to run an actual host, and although I had some success firing up my old BBC Micro based viewdata BBS, this didn't last long due to multiple hardware failures.

Back up to today, and, as I mentioned yesterday, John Newcombe has written, and is running, his own viewdata host called TELSTAR.   I've discussed some things with John, and had been hoping to blag a copy of the software, but it seems that it's not quite what I am looking for.

Now, I have been building up a database of frames - this is yet another unfinished project - over at db.viewdata.org.uk.   This database is what I want to use as the source of the data for a host system.
Although it's mostly got teletext loaded up, I do have a complete copy of the PC Plus demo of Micronet loaded up, which can act as a starting point.

So, what to do?  Well it's obvious, write my own host software.  I've been putting this off for years, but, it's #retrochallenge time, and I do want to achieve something...

A few hours last night got the bare bones sorted out, and a bit of time debugging, and we're at a point where I can dial in and navigate between pages!  Woo!

Whereas John has been concentrating on content for his viewdata host, I'm going to be working on making mine more of a "Prestel Emulator"; it should feel as close to the original as possible.  I've a lot to do, obviously, but not bad for an few hours work.




Labels: , , , ,

Saturday, 1 September 2018

Modem Emulation - an RC2018/09 prologue

Most of you will know by now that I'm really into preserving the memory of Prestel and Viewdata systems generally.  I run www.viewdata.org.uk which, while a bit long in the tooth, is going to get a massive update "soon" ...   But today I'm going to talk about hardware.

Some time back, I fired up my old viewdata BBS "Ringworld" - this operated on a collection of BBC Micros - one per connected user - and an Acorn A5000 acting as fileserver.  I connected these to the internet using a motly selection of modems, ATA telephony adapters, and serial terminal adapters.

The long shot was, for a user dialling in, the call was answered either by the exact same modem it always had been, connected to a SIP ATA - the digital data was transformed to analogue, before being turned back to digital by the modem.  This always seemed like a poor idea to me. What would be better is if some bit of software answered that digitised telephone call, looked at the whistles and warbles, and turned it directly into a sequence of ASCII bytes for delivery to a telnet port.

I had found an program called iaxmodem that allowed an asterisk based PBX to emulate a modem, but it was focused on faxing, and I just couldn't get it to work with the V23 dial-up I wanted.  But it was close.   I spent the next few years, off and on, searching for changes to that, or SIP based alternatives, with no luck.

In the meantime, John Newcombe decided to write his own viewdata host service, called Telstar, in Python, and that can be accessed via a raw-socket. (like telnet, but without the features!)  There's not a lot of software out there that can talk both Viewdata display protocols and connect to a socket, however.  Richard Russell wrote a example viewdata client that could do it, and you can connect from BeebEm if you load up a suitable comms package and set the RS423 IP parameters. 

There have also been a couple of projects to produce a "WiFi Modem" that, basically, looks like a hayes-compatible modem that you connect to via RS232, but it in turn connects to your WiFi, and onwards to a telnet port out on the internet.  This is great for things like BBC Micros, Commodore 64s, etc., where you can just swap out your period modem for this new device.   Not so good for dedicated terminals, or e.g. the ZX Spectrum VTX5000 where the modems are built in.

Then, out of the blue, an old friend, Darren Storer, posted on the BBC Micro facebook group (I think it was there..) that he'd set up a dial-up number for Telstar, and could people test it.  It took me a week or two to get there, but I pulled out a terminal, dialled the number ... and it didn't work.  Not at all.  I did, however find out the software he was using ...  asterisk-Softmodem.  This was exactly the sort of project I'd been looking for all those years.  But, it didn't work for him/

I pulled the code and had a look, and could see nothing wrong.  So, firing up an asterisk server, and installing it, I tried to debug.  The first issue was my terminal was not locking onto the carrier, so I added a t(-10) to increase the volume, and that sorted that!

Next problem, I wasn't getting much data on screen - many characters were just missing!   This was somewhat easy to diagnose, as I had an inkling after seeing how you configured asterisk to use softmodem - you specified the number of data bits, being between 5 and 8.  The example had it as 8. Now Prestel, and of course the terminals, all used 7 bits with even parity. What I was seeing was the terminal being sent 8-bit data, and of course interpreting that as most of the characters having an incorrect parity bit, and ignoring those!

Now, I can set a software terminal to 8bit data, but not the termnal - there  is very little you can configure as a user on these things.  Because the project had no support for parity it looked like a dead end, but that wasn't going to stop me - I'd waited years to find this, and wasn't going to give up now!

Delving into the code, it actually turned out to be a nice simple and straightforward bit of programming.  Adding parity support turned out to be fairly easy... I've published the modifications to my own github fork and submitted a pull request to send them back to the original author.

So now, I can dial into Telstar, CCL4, or anywhere I want to set up a number for!

If you want to try it, the number for Telstar is 0333 340 3311 (from outside UK, +44 333 340 3311). Calls cost the same as an 01 or 02 and are included in any inclusive minutes you may have. Call s are free for A&A customers.)

I can't guarantee that number will stay up, and it may not work from time to time if I'm tweaking things, but if it turns out useful to you, please let me know in the comments below!


Labels: , , , , , ,

Friday, 16 March 2018

Archiving my Filing with tesseract

I hate filing.  We get lots of paperwork that needs keeping, and it's a pain in the neck.  I've got boxes of the stuff, and every time I need something it's a major task to find the item we want.

So, the plan is to digitise it all.  We have a network connected photocopier that will also act as a sheet-fed scanner, saving as PDF files directly onto a network share.  That's the first step, scan things.

But what to do next.  A pile of random image-within-a-PDFs isn't much use, not without being sorted into, at least, some sort of order.

I could just browse the folder, and drag-and-drop the files into the relevant folders, but that's a lot of work and time consuming.  I'm a great believer in "let the computer do the work", so I threw together a little script to do the job.  Here we go:


#!/bin/ksh

thisFILE="$(whence ${0})"
progName="${0##*/}"

     myPID="$$"

     FUSERout=$(fuser ${thisFILE} 2>/dev/null)
     typeset -i numProc=$(echo "${FUSERout}" | nawk '{print NF}')
     if [[ "${numProc}" -gt 1 ]]; then
        echo "${progName}: another instance(s) of [${thisFILE}] is currently still running\
             [$(echo ${FUSERout} | sed -e 's/  */ /g')] - exiting THIS ${myPID}] run."
        exit 1
     fi


DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
IN="/TheDisc/DocumentArchive/Scans/new/"
OCRD="/TheDisc/DocumentArchive/Scans/ocrd"
BASE="/TheDisc/DocumentArchive"


if [ -z "$1" ]
then

 cd $IN

 for i in *.jpg; do

  if [ -e "$i" ]  
  then
   echo "Processing $i"
    tesseract "$i" "$OCRD/$i" pdf
   if [ $? -eq 0 ]
   then
    mv "$i" "$OCRD/$i"
   else
    mv "$i" "failed/"
   fi
  else
   break
  fi
 done;


  for i in *.pdf; do

                if [ -e "$i" ]
                then
                        pdfsandwich "$i" -o "$OCRD/$i"
                        if [ $? -eq 0 ]
                        then
                                rm "$i"
    chgrp users "$OCRD/$i"
    chmod g+rw "$OCRD/$i"
                        else
                                mv "$i" "failed/"
                        fi
                else
                        break
                fi

 done

fi



cat $DIR/movematrix.txt | tr -d "\r" | sed 's/\\/\//g' | while read STR 
do
 if [[ $STR ]]
 then
  
  srch=${STR%:*}
  dest=${STR#*:}

  if [[ $srch ]]
  then
   echo "Scanning for $srch";
 
   pdfgrep -i -r -H -m 1  "$srch" "$OCRD" | cut -d: -f1 | while read line
   do
       echo "Moving $line to $dest"
       mv --backup=existing --suffix=.dupe "$line" "$BASE/$dest"
   done
  fi
 fi
done

This can be broken down into three sections.  The first just makes sure that this is the only instance of the script running - it's intended to be run from a cron task, but it can take some time, and I quickly found out that if I allow another instance to fire up before the previous one finishes, then you can very quickly bring your server to its knees!  I can't honestly remember where I got this bit of code from; somewhere on the 'net!  Stackoverflow, probably!

The next section scans through the incoming scans folder and OCRs them!  If it's an image file, it uses tesseract-ocr to do the job, creating a nice new PDF at the end.  If it's already a PDF, then we use pdfsandwich, which handles all the image extraction, OCR (using tesseract-ocr) and re-compilation with the text layer.

Finally, load up a "what-goes-where" matrix file, and use pdfgrep to scan all those nice new PDFs to find known matches and move the files off to where they should go.

movematrix.txt controls all this part.  It's a simple file format :

National Savings:Bank/NS&I
TSB Bank plc:Bank/TSB
Bank of Scotland plc:Bank/Halifax BoS
Dental Department|Dentist:Medical/Dental
npower:Utilities/npower
TV LICENSING:Utilities\TV Licensing

Basically, it's <search string>:<folder to place matches>, one entry per line. Blank line are ignored.

You can use multiple search strings, as in the dentist example, separated by |, or indeed any other search parameter syntax allowed by pdfgrep.  I'd recommend actually using something like an account number or other unique reference that will allow you to identify correspondence more accurately.  But it does the searches in sequence, so if you get "false positives" for some search terms, move them to the end so that others get a chance to catch the documents first.

By default, the script does a case-insensitive search, and the consequent move does backup sequencing, so you won't lose anything if a file of that name already exists. I also swap about all / and \ so that you can paste in (relative) paths in a Microsoft  format, as shown above, and it'll cope.  Similarly, we ignore CRs and blank lines, so you can safely edit the file using a Windows editor such as Notepad, and we won't get all messed up.

Just run the script fairly regularly via cron, and it'll do all your filing for you!

And of course, if it misses a file, you can still drag-and-drop it manually!  Or edit the matrix file to add a search term.


Dependencies - ksh, simply for the first "don't run me twice" bit.  tesseract-ocr, pdfsandwich, pdfgrep.

Labels: ,

Tuesday, 30 May 2017

Trying hard



It's six weeks since my dad died.  It's been .... difficult.

Then the suicide bomber at Manchester Arena last week.  Targeting kids, and the parents waiting to pick them up.  Kids!  One casualty was only 8!!

Saffie Rose Roussos
My daughter is 10.  Had her music tastes been different, it's possible we would have been there - she reports one of the kids in her class actually was at the concert; school sent round a letter saying several pupils had been there, but all were safely accounted for.  It's only a couple of miles away, I saw some of the ambulances rushing in that night!

So that hit me hard.  I spent the next few days feeling stunned. Shell-shocked, I guess.  Fighting back tears all the time.  Just like most people in the area!  I've been glued to the TV News, glued to Twitter, had local radio on in the car and kitchen... watching the local paper websites..  It does seem that the Police have a handle on things, which is gratifying, and they are making progress tracking down all those whom have connections with the bomber.

To try and recover, I've tried throwing myself at various unrelated projects. Here are some of them -


  • Finishing the stuff I started for Retrochallenge..
  • Cataloguing and Imaging the vast number of BBC Micro floppies I have
  • Adding BBC Micro SSD/DSD/ADx image support to TC4Shell
  • Getting a VPN client working on my Sophos UTM 9 firewall
  • Planning content for the new viewdata.org.uk (but not yet writing any..)
  • and watching some TV!  (Well, netflix..) Normally I hardly ever watch TV..


Each works for a bit, then I get distracted, interrupted, or just dispirited.  So I swap to something else. Right now, I don't feel up to doing any of them..  I've tried ignoring the news this evening, as there's not been anything new anyway.. but that's not helped either.

Strangely, Mr Biffo wrote a piece this week that resonated with me. It's one of the reasons I'm writing this... I was hoping it would help.

I'm not much of a sharer.. this is new to me,  So, I'm going to leave this here. If anyone wants to jump in help with any of those projects, feel free to get in touch.  Apart from watching Telly - the Mrs is happy to do that with me!

Stay safe, people.  Love you all.


Labels: , , , , , , ,

Thursday, 13 April 2017

Retrochallenge day 13

Blimey, where are the days going...

OK. I've taken the hacked-about teletext-editor-that-acts-as-a-viewer, and split off the hacks.  Then I modified the (latest version of) the teletext editor so that it exposes a bit more of it's internals, as the viewer needs that access...

It took a bit if trial and error, but seems to work.  Code is up on github and a demo is (temporarilly) here. I added a touch of code to allow direct linking to specific pages while I was at it!

Now to look at doing the viewdata browser that I was supposed to be doing in the first place!



Labels: , , , ,

Monday, 10 April 2017

Retrochallenge Day 2.. er... 8 ..er .. 10

Blimey, has it been a week already?

OK.  I've not done much coding since last time, but I have been reading code and daydreaming planning out my next move.

Now Javascript is not my strongest language.  I can read it, and modify it, but actually writing new code is a bit of a challenge.  Part of the rationale behind this task was to get myself a bit more familiar with this hideously back to front language...

The teletext browser I used is that created by Adam Dawes based on Simon Rawles (et..al.) edit.tf editor, and grabbed from Jason's captures at uniquecodeanddata.co.uk.  The modifications are to add a pile of new functions, and truncate and or redirect others.

As the original editor has moved on somewhat since this was done, it seems logical that, if I want to do more mods to it, then i should base my code on the latest version.  If I can do it in such a way that I do not need to actually modify the editor, just call it, then that would be best.   In PHP I would, assuming it was a class, extend the class in a new file and override the relevant functions.  So... How to do this in Javascript...

I tried using prototypes ... but hit the problem that the editor is written with lots of private variables and functions, which the new functions in the viewer refer to.  Using the existing editor as the viewer's prototype doesn't work because it cannot access the private variables.  Drat.

<days pass>

After spending more time than I ever expected looking at javascript objects, inheritances, etc., I have decided not to commit myself to ever having to do anything major in this language!!

Sticking with Javascript, I think the best approach at this point would, after all, be to fork edit.tf and modify it to separate out the actual display part from the editor part, that way I can provide for a viewer, indeed, different viewers...  Might even be a mod Simon would like...

Sigh.  Bloody Javascript.

The other option would be to go back to my own viewdata viewer class, which runs serverside to create the images.  I understand this, but I was hoping not to have to do this, as it makes updating the "screen" with the page number being keyed dependant on the server, rather than being local.


So, ten days in, and all I've achieved is discovering that what I thought would be a simple task is much more complicated than I thought it would be.



Labels: , , , , ,

Saturday, 1 April 2017

Retrochallenge: Day 1


OK. First day, and I have to do something.. .whether I can keep this up is another matter....

I had a look at the code used for browsing Jason's teletext captures.   These use a modified version of the edit.tf teletext editor (the 'viewer'), driven by an html page consisting of a mass of links!  The viewer grabs all these, displays the first one, then accepts key-presses to get the next page number, as per a teletext page.  Plus it allows up/down arrow shenanigans to skip through.

Teletext, as you should know, shares the exact same display format as Viewdata, namely 24 (or 25) lines of 40 characters of primary colour text and simple block graphics.  As control codes take up a space on the line, this makes it harder than you might think to do multicoloured images..

So, I've got a pile of dumps of teletext pages over at www.teletext.org.uk so the obvious thing to do is use one of those, see if I can use the viewer just as it is.  That way I have a starting point, and can begin to understand the code and decide on the particular direction I want to go.

I've got a php class in working-but-incomplete state that allows me to manipulate viewdata and teletext pages.  A quick bit of code to load one of the teletext archives and then spit out each page as a link took me significantly less than an hour, and only 14 lines of new code!

So...  from this,  to this.    I think that's a positive step.

Today has, however, shown up a lot of features currently missing in vv.class that I need to add in, particularly to deal with the viewdata side of things.  That is partly what the whole point of what this was for, though: to get an idea of what I need to do next!



Labels: , , , ,

Thursday, 30 March 2017

Retrochallenge 2017/04

OK... after only a few years* hiding away, I've put myself in for this again.

I've set a much smaller goal this time; something I think I can achieve, instead of something I want to achieve!  This is, I think, an important difference.  I got nowhere the last two times, mostly because I was a bit too ambitious for the limited time available to me.  (I've only sort of partially achieved the "tidy the cable nest" of 2012, and never did get anywhere with the dial-up thing from 2013.)

So this year's goal:  Write something that will allow browsing a (static) viewdata database from a web browser for use with the new Wordpress-based viewdata.org.uk.  I have a browser already, but it's a bit clunky and not very easy to incorporate into anything else.  So a nice re-write is in order, whereby I can take advantage of "modern technologies" like javascript and AJAX calls, to make the effect more seamless, and I intend to "borrow" the code behind edit.tf and the teletext-browser version thereof to make things easier..

If I can do that, I might try and finish off enough of the new version of the website to actually launch it, but no promises!!


* - Four.

Labels: , , , ,

Thursday, 23 March 2017

IMAGE, the MUD.

More disk delving coughed up the following log file...  Anybody else remember IMAGE ?


*

 13 December 1985: 
Welcome to IMAGE....
Tel. Nos are 0935-78476/7.

The system is running FREE for
debugging.

Demo character is Code:10006
Name: WALLY , Password: DEMO

Paul Chappell
Viewdata Systems (SW) Ltd,
40/42 Hendford,
Yeovil,
Somerset.

Options Available are:

0. Exit
1. Play IMAGE
2. Chatline

Select Option: 1
Enter Your Code Number   :10014
Enter Your Character Name:MENOLLY
Enter Your Password      :MADSYS
Initialising Data.......... ***  MAIL MESSAGES WAITING  ***
    Enter MAIL to read them

Press Any Key to Continue: 

You are at the south end of a long tree lined road leading
off down a steep hill. Through the branches far to the north
you can see the top of a mysterious tower, surrounded by
trees, purched on the top of high hill.

It is warm and dry here.

You can see A DH BROAD SWORD, SOME PLATE ARMOUR, A STAGGERING WROOT, 

Command: MAIL
From: KANE
On  : 14/12/85 at 18:46:06
------------------------
THANKS FOR THE BUG....
ITS FIXED NOW. YOU CAN GO WEST AND NOT EAST.

Erase Messages ?Y

Command: I   N
 
Your Journey Continues...


You are half way up a steep hill.
To the west you see a gap in the trees that line
the road. The road continues down the hill to
the north and up to the south.
By the gap is a blue sign.
It is warm and dry here.
*

You can see Nothing Special


Command: SCOR

Name:  MENOLLY the Peasant
Weap:  DH BROAD SWORD
Arm :  PLATE ARMOUR
Str :  17 
Exp :  35 
Gold:  82 
Cakes: 28 
Last: SCOR
Has :  Nothing


Command: WHO

Somewhere about there is:
MENOLLY the Peasant


Command: A STAGGERING WROOT approaches you
 N
 
Your Journey Continues...


You are at the bottom of a steep hill to the south
to the east there is a stone faced building with
a sign hanging from a tall pole by the front door.
To the north you can see a cross roads.

It is warm and dry here.
*

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are at a large cross roads.
To the west you can see the entrance to a tall
concrete, official looking building surrounded
by trees.

It is warm and dry here.
*

You can see E
Nothing Special


Command: 
 
Your Journey Continues...


This is a corner of a wide empty road
to the west the road leads to a cross roads.
To the north you can see a building at the
side of the road.

It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are on a long north south road.
On the west side of the road is a long low brick
building with a large illuminated sign on the wall.
To the north you can see a cross roads.

It is warm and dry here.
*

You can see Nothing Special


Command: W
 
Your Journey Continues...


You are in a small l shaped room. The walls are covered with
light blue wall paper and there is blue carpet on the floor.
Along on wall is a long sofa, again in blue.
A young and pretty receptionist sits at her desk and says,
"i'm sorry but graham carter is out at the moment."
It is warm and dry here.
*

You can see Nothing Special


Command: E
 
Your Journey Continues...


You are on a long north south road.
On the west side of the road is a long low brick
building with a large illuminated sign on the wall.
To the north you can see a cross roads.

It is warm and dry here.
*

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are on a long north south road.
A small east west road crosses here.
To the south you can see a large brick building
at the side of the road.

It is warm and dry here.

You can see Nothing Special


Command: N
  
Your Journey Continues...


You are standing at a cross roads.
Roads lead off in all directions.
To the north there appears to be a tall
sign by the side of the road.

It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are on a north south road.
On the west side of the road is a long
brick building, with a sign standing
outside on a tall pole.

It is warm and dry here.
*

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are on the corner of a road which
narrows to the east.
To the south you can see a long brick
building. There is a tall wooded hill
to the north.
It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are in a dense dark forest
on the lower slopes of a tall hill.
You can see nothing through the tightly
packed trees and thick undergrowth.

It is warm and dry here.
*

You can see Nothing Special


Command: N
 
Your Journey Continues...


This is a wide clearing in the forest.
At the centre of the clearing is a tall
triangular stone tower. Standing by the
closed heavy wooden door is a small
metal box with some writing on it.
It is warm and dry here.
*

You can see Nothing Special


Command: 093582277               77822
THE HEAVY DOOR SWING OPEN

You are in a small dusty stone room
within the tall tower. In the west wall
is a small doorway leading to a small
metal chamber. A wooden door stands
open to the south.
It is warm and dry here.
*

You can see Nothing Special


Command: W
 
Your Journey Continues...


This is a small plain metal room.
On the wall there is a small panel
with a big red button on it.
.
There is a small doorway to the east.
It is warm and dry here.
*

You can see Nothing Special


Command: PUSH BURRON
PUSH WHAT?

Command: OUSH BUTTON
I don't understand!

Command: PUSH BUTTON
A METAL PANEL SLIDES ACROSS THE DOORWAY THEN OPENS AGAIN

This is a small plain metal room.
On the wall there is a small panel
with a big red button on it.
.
There is a small doorway to the east.
It is warm and dry here.
*

You can see 9 Gold Crowns, 

Command: PUSH BUTTON           GET GOLD    
Ok...

Command: GET GOLD    
There is no gold here!

Command: PUSH BUTTON
A METAL PANEL SLIDES ACROSS THE DOORWAY THEN OPENS AGAIN

This is a small plain metal room.
On the wall there is a small panel
with a big red button on it.
.
There is a small doorway to the east.
The rain swirls about you.
*

You can see Nothing Special


Command: PUSH BUTTON
?
A METAL PANEL SLIDES ACROSS THE DOORWAY THEN OPENS AGAIN

This is a small plain metal room.
On the wall there is a small panel
with a big red button on it.
.
There is a small doorway to the east.
The rain swirls about you.
*

You can see Nothing Special


Command:    PUSH BUTTON
A METAL PANEL SLIDES ACROSS THE DOORWAY THEN OPENS AGAIN

This is a small plain metal room.
On the wall there is a small panel
with a big red button on it.
.
There is a small doorway to the west.
It is warm and dry here.
*

You can see Nothing Special


Command: W
 
Your Journey Continues...


This is a dank underground chamber
dug out of the stone of the hill
there is a doorway to the east.
And a trap door in the floor.

It is warm and dry here.
*

You can see Nothing Special


Command: D
 
Your Journey Continues...


You are in a small stone room with lichens growing on the walls.
Stone stairs on the west wall lead up to an oak door.
A dim light seeps into the room through an opening in the north wall.
You can just make out a large archway in the east wall.

It is warm and dry here.
*

You can see Nothing Special


Command: E
 
Your Journey Continues...


You are at the west end of a large dark hall.
The east end is lost in darkness. To the south there is an
archway.
In the gloom you can make out a long wooden table and some
broken chairs.
It is warm and dry here.
*

You can see Nothing Special


Command: E
 
Your Journey Continues...


You are at the east end of a long hall.
Set into the east wall is a large fire place, but it does not
seem to have been used for many years.
Everything is covered in a thick layer of dust.
There is a crack in the north wall.
It is warm and dry here.
*

You can see 2 Gold Crowns, 

Command: GET GOLD
Ok...

Command: N
 
Your Journey Continues...


South bank of wide fast moving underground river.
To the south is a large crack in the wall.
Across the river in the north wall is a finely carved archway.
There is a sign caved in the rock above the arch,
and a boat tied to the south bank.
It is warm and dry here.
*

You can see Nothing Special


Command: W
 
Your Journey Continues...


Beside the river there is a spiral stairwell leading down.
There is a narrow path to the east.



It is warm and dry here.

You can see Nothing Special


Command: D
 
Your Journey Continues...


Small dark chamber. In the centre is a small stone spiral stair
leading up.
You can see a wide exit to the south and you can just make out
a small tunnel to the east.

It is warm and dry here.

You can see Nothing Special


Command: S
 
Your Journey Continues...


The roof is low here. You have to stoop.
The chamber walls are covered with crumbling mosaics, split
in places by huge cracks. The floor is strewn with rubble.
A glow is coming from an opening in the west wall.

It is warm and dry here.

You can see A WYVERN approaches you
 Nothing Special


Command: S
 
Your Journey Continues...


You find that one of the many holes and cracks in the south
wall is the entrance to a small tunnel which ends at a
't' junction.


It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


You are in a very narrow chasm with steep sloping walls.
To the east there is a passage ajoining the north wall.
The chasm continues west.


It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


This is a wide empty hall.
Set into the west wall are two huge iron gates guarded by two
fearsome stone dogs.
The gates are old and rusty, and one is slightly open.

It is warm and dry here.
*

You can see Nothing Special


Command: W
 
Your Journey Continues...


You are in a high passage with richly carved pillars
supporting wide gothic arches. To the east there are some
iron gates. Feint whispers of smoke drift in from the west
of the passage.

It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


A high ledge runs around a gigantic cavern.
The opposite side of the cavern is obscured by smoke.
A bright light reveals the dark outline of a tall tower in the
middle of the cavern. The ledge curves to the north and west.
There is a passage leading east.
It is warm and dry here.

You can see A CENTAUR, 

Command: W
 
Your Journey Continues...


The ledge curves north and east.
To the north it narrows to no more than a few inches across
before disappearing into the smoke.


It is warm and dry here.

You can see 6 Gold Crowns, 

Command: GET GOLD
Ok...

Command: N
 
Your Journey Continues...


You are on a wide ledge surrounded by smoke.
To the east it is blocked by a curtain of fire.
To the west the ledge narrows. One end of an old bridge is
attached to the ledge.
The bridge leads south to the top of a high tower.
It is warm and dry here.

You can see Nothing Special


Command: S
 
Your Journey Continues...


You are at the top of a tall crumbling tower.
There is an old bridge leading north, and stone stairs
leading down.


It is warm and dry here.

You can see Nothing Special


Command: D
 
Your Journey Continues...


You are in an empty, dusty stone room.
Light pours in through an open door in the north wall.
A stone staircase on the south wall leads upwards.


It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


This is a wide dusty courtyard surrounded by walls.
To the north is a large gateway.
To the south is a tall crumbling stone tower.


It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are standing in a large arched gateway.
The old iron gates have long since rusted, and fallen from their
hinges. To the south is a seemingly empty stone courtyard with a
tall tower at its centre. To the north an old ruined city
stretches into the distance.
It is warm and dry here.

You can see Nothing Special


Command: N
 
Your Journey Continues...


You are on a crossroads just north of a large archway.
There is a long straight road leading north.
..
The roads are lined with crumbling and ruined buildings.

It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


You are halfway along a 40 yard long road.
The road runs parallel with a high stone wall. To the west
you can see a large golden building which shines out like a
beacon amongst the ruins of the city. There is a crossroads to
to the east. There is a dense forrest to the north.
It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


You are at the end of the road.
To the south is a large iron double door, set into the
walls of a golden temple.
The road rus off to the east.
To the north is a dark forest.
It is warm and dry here.

You can see Nothing Special


Command: S
 
Your Journey Continues...


You are in the entrance hall of the temple.
The floor is tiled with bright mosaics and the walls
are hung with rich tapestries. A heavy iron door is set into
the north wall, smaller doors lead off to the east and west.

It is warm and dry here.

You can see Nothing Special


Command: E
 
Your Journey Continues...


This is a small room with a large basin cut into
the middle of the floor. Ropes are strung across
the room from high on the walls and the remains
of old garments hang from them.
There are doors in the south and west walls.
It is warm and dry here.

You can see 8 Gold Crowns, 

Command: GET GOLD
Ok...

Command: S
 
Your Journey Continues...


There is a long wooden table in this room, with plane
wooden benches along either side. Old plates and mugs
lie scattered on the table and floor. In the east wall
is a large broken stained glass window.
Doors lead off to the north and west.
It is warm and dry here.

You can see Nothing Special


Command: W
 
Your Journey Continues...


This is a small square room with a spiral stair in the
middle leading up. There are carvings and holy
paintings on the walls.
There is a door in the east wall.

It is warm and dry here.

You can see Nothing Special


Command: U
 
Your Journey Continues...


You are in a large circular domed room that
seems to be made completely out of gold!
a massive golden alter curves around the north side
of the room. Carved into it is the number '110.25'
in the centre of the room is a spiral stair.
It is warm and dry here.

You can see Nothing Special


Command: WHO

Somewhere about there is:
MENOLLY the Peasant


Command: MAIL KANE
Msg>Is this 110.25                  '110.25' the             in the 'circular domed room th         ...made from gold'
Msg>above the golden tample, the sacred No. required by that guy
Msg>in r   the arch over near the white temple .... ? It doesn't work, yet]it         
Msg>it's the only number I've yet   t found that sounds like it could be
Msg>right........
Msg>.
Msg>..      Ta, Rob.
Msg>

Command: WHO

Somewhere about there is:
MENOLLY the Peasant


Command: INV
You have A DH BROAD SWORD, SOME PLATE ARMOUR, 107 GOLD CROWNS, 28 HONEY CAKES, 
Command: SCOR

Name:  MENOLLY the Peasant
Weap:  DH BROAD SWORD
Arm :  PLATE ARMOUR
Str :  17 
Exp :  5 
Gold:  107 
Cakes: 28 
Last: SCOR
Has :  Nothing


Command: SPELLS
The Commands & Spells You Can use NOW are:
ERROR DETECTED - CONTACT PAUL CHAPPELL.
Filing Character - Please3$  1$3$#  33 $

Labels: ,

Friday, 17 February 2017

University Life

For us geeks of a certain age, there are some bits of text that immediately bring back memories..

Multi-User Dungeon

This Mud created:5th December 1984 at 19:55:17

Welcome! By what name shall I call you?

<enters name and password>

Yes!Your last game was today at 15:41:19.

Hello again, Amanda the heroine!

Narrow road between lands. 

This is, of course, MUD, the original and many say the best.

However how about this....

The computing department foyer. 

You are at the main entrance to the computing department. Grooves in the carpet indicate where a certain large filing cabinet has been pushed up against a wall, thus preventing any students hiding behind it, for late night Mud playing sessions. The mugshots of 27 members off staff leer out of you from a dark corner. The incessant tap of keyboards comes from a room to the south. 

This comes from a little remembered variant entitled UNI, based on Essex University itself.  Sadly I never attended the university myself, so cannot attest to the accuracy of the location descriptions, however I suspect there is some artistic licence at play here:

The Mathematics Department. 

The mathematics department is a creepy place! It is the sort of place in which lunatic asylum movies are filmed. The spirits of long-dead mathematicians come back to haunt unsuspecting students, trying to wipe out future generations of mathematicians with weird and evil calculus courses. Of course, this place is as nothing compared to the unspeakable horrors to the west.... 

And as for..

The lake. 


Before you stetches an apparantly endless vista of water. It's blackness gives the appearence of incredible depth, and reminds you more of a swamp, than a lake. The ghosts of long dead ducks, poisoned by the wastes from the chemistry department still float on the scum, looking for equally dead fish. A rolling expanse of untamed grassland stretches out to the north-west, whilst the shadow from the tower of the evil Nosferatu to the north strikes terror into the heart of mere students. 

..well!

Yes, it's true.  Some data files from UNI have been found!  Originally thought totally lost, some data has surfaced!  On a BBC Micro floppy disc, stuck at the back of a box in my spare room for many years... It's apparently not enough to run the game itself, but it is certainly of "historical interest"!  What I want to know is what was going through my teenage mind when I tried to download them in the first place, 32 years ago...  It wasn't as if I had a DEC-10 to run them on.

I'm trying to get around to cataloguing all my old discs and data,,, expect more gems in future!   

Mr MUD himself, Richard Bartle has, of course, been sent copies..   But does anybody know whom the students who wrote this were?



Labels: ,

Saturday, 26 October 2013

Prestashop - deleting redundant images.

One of the things I wrote when I first set up a webstore using Prestashop was a product import routine from one of our suppliers, that created the initial products.

Among other things, this included all the images for the product.

Now, the supplier provided separate thumbnail and large images in their links, which were dutifully imported. So each product ended up with two apparently identical images, but the second was bigger than the first! I'd not really bothered to clean this up, as it didn't really affect anything.

Now however, with eBay's new picture standards in the offing, and the standard prestashop eBay module being somewhat.. um... inflexible... (more on my work on this at a later date!) I've realised that I need to get rid of all these unnecessary images.

The end result is the rather simple little module below.  This will appear in the "Other Modules" category.  Once installed, and configure pressed, it will present you with a load of images!

Where a product has two (or more) images, numerically in sequence (so they were created at the same time) and the first is the cover picture, it will show the first two.  Alongside each pair is a checkbox, already ticked.

Scroll down .. If the pictures are the same, leave it ticked. If they are different, clear the tick.

If you press the submit at the bottom, it will delete the first image from the product for each line that you leave ticked.

This does for me.  It may not do for you.  Put your store into maintenance mode and make backups of your filesystem AND database before you even install this.  I offer this with no warranty whatsoever.  Do not complain if it all goes horribly wrong - just restore and then work out why.

Download ImgClean 1.0 here.

Labels: ,

Friday, 9 August 2013

Prestashop - switching to shared stock.

Another useful tid-bit of information.

If you use Prestashop for your online e-commerce, then you may be aware of their "Multistore" feature - basically, you can use the same installation to run completely different shops; the difference being the URL you access them from.

So what, you might think. That's not really much more use thant just running two copies on different virtual hosts. Well, the strength is that you can share products, customers, stock levels, discounts, pretty much everything ... if you want to. Plus, of course, it's only one installation to keep up to date.

Great, this suited an installation I did a while back. Unfortunately, although the products were set as shared across all stores, somehow in the several iterations of testing the option to share stock levels was not. Since the vast majority of products are unique to each store, with only a few cross-overs, nobody noticed, until now.

OK, simple, we thought.  Switch the option on now.

Share available quantities between shops of this group. When changing this option, all available products quantities will be reset to 0.

Eek... all quantities will be reset to zero....

Not what we want at all.

Checking the code, we see that yes indeed, when changing this setting, sure enough, it deletes everything from the "stock_available" table for the affected shops.

The stock_available table has two relevant fields in it - id_shop and id_shop_group.

When stock is held for an individual shop, the first is filled in, and the group is zero.  When it's shared between a group of shops, it's the other way around.

Since the only table affected when you do the switch is the stock_available one, it seems logical therefore that this is the only source of data that we need to preserve.

Much testing in my sandbox shop therefore resulted in the following bit of code necessary to preserve the stock across the change.  READ ON BEFORE TRYING THIS OUT!

update ps_stock_available set id_shop_group=1, id_shop = 0;

Yep!  All we need to do is update the group field, and clear the shop field!  Of course, if you have more shops that you don't want affected, you should include a "where" clause to restrict whose products this affects.

You need to do this before you change the shared stock setting.  Also, it will fail if you have any products with stock held individually.  This code will list any of these -

select p.id_product, pa.id_product_attribute, count(sa.id_shop) as shops
from ps_product p LEFT JOIN ps_product_attribute pa ON (pa.id_product = 
p.id_product ) JOIN ps_stock_available sa on p.id_product = sa.id_product 
and sa.id_product_attribute = IF(pa.id_product_attribute IS NULL,0,
pa.id_product_attribute) group by sa.id_product, sa.id_product_attribute  
having count(*) > 1;

Yep, that's a bit longer, sorry!  It's got three tables to cross-reference.

It it comes up with any, this code will tell you more about which stores an item is held in, and how much is in each store, etc -

select * from ps_stock_available where id_product = 782;

(That's for product #782, of course - adjust as necessary!)

If, as I found, the products had zero stock in the secondary stores, you can just delete all but one of the records -

delete from ps_stock_available where id_product = 782 and id_shop <> 2;

Re-run the check again, then do the conversion.

This is easiest, of course, from the mysql command line, but if you use a web-based tool, you should be able to manage if it will accept typed mysql command lines.

I should give you the obvious warnings -

BACKUP YOUR DATABASE FIRST!!  Preferably using outside tools such as mysqldump
Then examine the backup file - does it look like it holds all your data??
PUT YOUR SHOP INTO MAINTENANCE MODE. You don't want customers confusing things.
TEST IT THOROUGHLY. If you are not convinced everything is right, restore from your backup!

Labels: , ,

Tuesday, 16 July 2013

Retrochallenge 2013

In a fit of madness, I decided to re-enter this years competition.

If you cast your mind back, I entered last time with the intention of sorting out my "man cave" as the attic was described, in order to get the viewdata BBS back up and running.

Unfortunately, building work interrupted matters, and I didn't get very far.   More unfortunately, the building work stalled, and I still don't have a safe floor up there, so pretty much everything is still in boxes.  A year on.  The tale of what happened and what went wrong is going to make a great story at some point, but not yet.

So, this year, I've been hoping to get something working under emulation.  The ideal would be an emulated modem that can answer VoIP phone calls, and pass the user to an emulated server of some sort.  Modems and VoIP are reckoned not to work very well, but that's the "modern" types. V23 has no problem at all, as I proved when using the real stuff over it.

The trick is going to get a software modem working at such a slow speed!  IAXmodem uses SpanDSP, which proports to support the old FSK modems, including V23, but I've not yet managed to get it working.  Part of the issue is that the whole thing is geared up for faxing, so assumes some level of intelligence from the far end.  V23 modems, particularly the 25 year old ones, don't do anything intelligent!

So, that's the task this month.  Getting iaxmodem (initially) to answer a call from an ancient terminal.  Then I'll hook it up to a BBC micro emulator and run the BBS entirely virtually.

I'm acutely concious that over half the month is over, and I've not done anything yet!

Long term goal is to find a backup of the original Prestel software and databases, run up a GEC mini-computer emulator, and actually run the real thing.  But so far that's been elusive.  Anybody know of any surviving discs or tapes from Prestel itself?


Labels: , , ,

Sunday, 29 July 2012

Nothing to report

It's been a busy few weeks. Kids broken up from school, house to tidy, and another week coming up where I have to completely box up and remove everything in the attic in order that the floor can be sorted out. I've already moved out a lot of stuff in there, but there's a heck of a pile remaining - mostly the stuff which wasn't already in conveniently sized stackable storage crates!  I've also had no end of other things to sort out that has been taking up an inordinate amount of time, plus all the trivial stuff that doesn't take long but seems to keep building up.  So lots of late nights and early mornings and which only makes me tired and slows me down further.

Throw in the odd random day out and this means, of course, that I've done virtually nothing on the retrochallenge entry - I keep promising myself a day on it, reworking the BBS side anyway, but it's not happened yet.  Maybe today ... there are still a couple of days of July left!  And then it can all go into boxes too...   On the plus side, when all the work is done, I'll be able to unbox it and set everything up much neater - but that won't be for another month or so at the very least, so outside the time limit.

Watch this space ...

Labels: , , , ,

Sunday, 8 July 2012

Hicups and Hostings

Ok.  Part of my retrochalllenge entry was to get the viewdata website sorted out - it's been in the process of being Wikified for over a year now!  Some of the work involved in that relates to simply translating the article markup from one markup language to another, but it also means I need to re-write all my custom plugins too.  And to do that, I need to finish the re-write of the viewdataviewer code... and holding me back on all of this was a webhost that made everything behave as if I was walking through molasses whenever I tried to change anything..   It used to be pretty good, but as with all shared webhosts, seems to have become oversubscribed and slowed to a crawl as a result.  Add in a good stir of never-updates, some virus infections, and I should have waved them goodbye a long time ago!

Anyway, I've taken the plunge and shifted my hosting... I'm now renting a VPS which means I'm effectively in control of my own server (albeit merely a tiny part of someone else's system) but I can keep everything up to date, and I don't have to worry about somebody else letting a virus in.  It's very nippy, compared to the previous host anyway, so I'm satisfied.  Maybe I'll not see visitors getting fed up waiting for the next page, now .. (how they would have coped at V23 speeds I do not know ...)

As of yet, there's no new content (although I've got a little titbit waiting to be released - thanks Ant) but that's because it's taken about a week to get everything shifted over - there's 17 websites to deal with! Most are placeholders or simple html-only things, but there are a few complicated ones.  But everything seems to work.. phew.... now to concentrate on more interesting things...

The other part of the challenge is re-working the hardware running the BBS.  This, I might not manage.  Rather than tidying up the mess in the photo, it's got worse!  I had to move everything on the left over in order for a surveyor to examine the floor joists - back in 2008 we got a builder in to put in a "proper floor" and better access, so we could actually use the space, among other things.   Unfortunately, he turned into one of those cowboys you see on the TV, and did a job that nto even the worst DIY nut would be proud of.  There's a lot more to tell, which I'll no doubt blog about eventually, but there's a chance we might finally get some of it sorted soon.  This, unfortunately, will mean packing everything up from up there while it's done, making it impossible to do the BBS side of things.


Labels: , , , , , ,

Sunday, 1 July 2012

Retrochallenge: Starting position..

The Attic

Well here we are.  My starting position at getting the viewdata BBS sorted out..

Top shelf - misc DIY stuff, but there's a spare electron shoved in there.
Middle shelf - two VoIP adapters & firewall, elderly modem rack, two terminal servers running off old PC power supplies since theirs died, and a NAS box and external USB drives that is nothing to do with this!
Bottom shelf - ancient mono monitor, three BBC Micros, two magic modems, quad-video switch.
On the floor: various spare beebs and ARM machines....

On the right, another two beebs, a Tandata viewdata adapter sat in a touchscreen for a CUB, atop a portable TV, and lots of more stuff!

At present, in use: one VoIP box adapter, the magic modems, and two beebs.

Out of shot is an Acorn A5000 which runs the econet fileserver and a RISC PC, sharing an old 14" monitor.

Previously, I did have two beebs on modems and two beebs connected to one of the terminal servers accepting calls from the internet, allowing four users but only two by each method.  The aim is to use the modem rack and terminal servers to answer the phones, with as many beebs as I can get working connected to other ports on the terminal servers. This will disassociate the link between access method and bbc micro, and allow more people to use the system.  Should they want to.  

At the moment I'm lucky to find even one person visiting ....

Anyway, I'm hoping I'll be able to tidy this lot up as well as getting it working again!  As you can see, it'll need it!

Labels: , , , , , ,

Friday, 22 June 2012

Retrochallenge

OK.. I'm going to try and get something done for Retrochallenge 2012 :-)

 I'm currently a year into a redesign of viewdata.org.uk, so will try and finish that.

 I'll also try mend a couple of machines and get the viewdata BBS connected back up to the Internet.
 (This is running on BBC Micros and Magic Modems from the 1980s - you can still telephone it ...)

 I might have to finish rebuilding the hobby room so I'll have space to do this...

Follow this specifically using the retrochallenge tag on this blog.

With luck, I'll at least get something part way done in the time.... :-)

Labels: , , ,

Sunday, 6 May 2012

modrewrite and all that jazz

As I discussed previously, I've been working on Tiddler's website. Some past reading about Best Practice suggests hiding technology from the reader, and disassociating the URL from the structure of the website. i.e., don't commit yourself to exposing /cgi-bin/ or foo.php or whatever, since times change, and you might want to re-write things later. Being stuck with incoming links pointing at such places an be a pain. It's not a major site, but I thought I'd try to be good and see how it goes. So, URLs will be simple categories - /foo/ /bar/ etc. The obvious answer is to create these as folders, with a default index file in each, however I didn't want to have to maintain lots of separate files, but keep everything together in the one application, one template, and just call in the different page contents as required. So, behind the scenes, we need a simple handler, index.php in this case, which accepts a "pagename" parameter. e.g. /index.php?p=gallery but how to turn the one into the other? here's the .htaccess

RewriteEngine on


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^new/([a-zA-Z0-9]+?)/$ new/index.php?p=$1
/new/ being the folder I'm developing in. Any accesses to /new/foo/ will be translated into /new/index.php?p=foo but that's never exposed to the visitor - it could just as easily be /cgi-bin/stuff.pl?foo I'm quite pleased, it's simpler, and makes for shorter and less cluttered URLs, which can only help with search engine rankings.

Labels: ,