RSS

Monthly Archives: May 2020

Website Update 05-29-2020

After cleaning up all the problems in the administrative interface that dealt with videos on the site, I added video clips for 17 locomotives, partially to test the newly rewritten feature, and partly because it was fun to do so.

In the course of adding the videos, I discovered and added photos for 11 more locomotives that hadn’t previously had a photo, and updated the photo for a steam tram in Sweden.

Additionally edits were made to the technical details for 104 locomotives in Europe, Canada and Mexico. Mostly these were status changes, including one locomotive that was changed to Scrapped.

Along the way, I discovered another minor problem, this one with the Notes system. The administrative function to delete a note worked, partially. I would remove the note, but leave the locomotive’s Notecount field alone. This meant that the system would try to make a non-existent note available if you viewed that locomotive. Reviewing the source code for that module, I think that I was either tired, indifferent or in an awful hurry. So…I spent an hour rewriting that module from scratch. It works nicely now, and I can delete a note, if necessary without causing data inconsistency problems. Wheefun.

 
Leave a comment

Posted by on May 30, 2020 in Website

 

Little Green and Red Dots Revisited

In my previous discussion of the little green and red dots (see below) I was a bit overly optimistic. The Video indicator is set correctly in most places but there are a couple of places where they were not. I spent a couple of hours today, tracking them down. Things should be normal-y now.

 
Leave a comment

Posted by on May 28, 2020 in Website

 

Video Woes 5-28-2020

After our hosting provider shifted steamlocomotive.info to its new server which used Lucee instead of Adobe Coldfusion, a number of things went silly, and day before yesterday, I began debugging one of those great number of things that no longer worked right.

For a variety of reasons, only an editor can add a video to the website. It is done through the site’s administrative interface, and the process was simple enough, but not particularly elegrant.

After the switch to Lucee it became impossible to add new videos. It appeared that the information you supplied (called an Embed String) was somehow being corrupted by the site before it was added to the database. Moderately maddening. And difficult to troubleshoot.

It turned out that I was overly quick to blame Lucee (the CFML compiler). The real culprit was the setup of the new server. The server administrator had enable a feature that had been disabled on the server where we originally ran. This is called ‘GlobalSecurityProtect’. What it does is this: if you try to pass user supplied text within a website, it checks to make sure that certain html tags (which could be potentially dangerous) are suppressed. It replaces those tags with the word InvalidTag. And that was (I thought) the problem.

Further research revealed that this can be overriden on a local basis. So as far as the administrative interface was concerned, all I needed to do was override GlobalSecurityProtect for the admin app only. This posed no security threat as the admin interface is restricted to logged in Editors only.

Coded and tested, and voila! I could add a video. And it looked like crap. Why? When this code was written (more than five years ago) you could rely on YouTube to supply an Embed String with the height and width set to 640×390. And our page formatting depends on those two values. Now, before we save the Embed String we need to be able to show you a video we examine it, and if necessary change the height and width parameters to the values we need. About ten lines of CFML code were needed to accomplish this reliably. So…that little (cough, cough) problem has been fixed.

 
Leave a comment

Posted by on May 28, 2020 in Website

 

Website Updates 05-26-2020

  • Reviewed all locomotives in Turkey against several online lists of existing locomotives in Turkey.
  • Added seven locomotives that we’d previously been unaware of.
  • Deleted two duplicate entries for a locomotive in Istanbul
  • Updated the status of 118 locomotives in Turkey
  • Updated technical details for 63 locomotives in Turkey
  • Added photos of a number of locomotives in Turkey (I didn’t count)

 
Leave a comment

Posted by on May 27, 2020 in Website

 

Along the Deadline (Alasehir, Turkey)

Along a street named Akkeçeli Cd. in Alasehir, Turkey on Turkish State Railway (TCDD) property is a deadline consisting of a group of five derelict locomotives and a group of three locomotives separated from the first group by perhaps 150 feet.

If you wish to explore this deadline with Google Street View then the following link will take you there:
https://www.google.com/maps/@38.3572078,28.5163294,3a,75y,264.35h,82.68t/data=!3m6!1e1!3m4!1stG8gePnQhYsFGlHoEu1XGA!2e0!7i13312!8i6656

The only locomotive in this group I was able to identify by the number on the cab was TCDD 2-10-2 No. 57021. For your amusement the first group of five consists of the following wheel arrangements: a 2-8-2, a 2-10-0 without a tender, another 2-10-0 with a tender, another 2-10-0 without a tender and a 2-10-2. The second group of three locomotives consists of a 2-10-0, TCDD 2-10-2 No. 57021, and lastly a 2-10-0. If anyone has a means of identifying which locomotives these are amongst those listed in Alasehir, please let me know by emailing me at info@steamlocomotive.info.

 
Leave a comment

Posted by on May 26, 2020 in Interesting Locomotives

 

About Those Little Green and Red Dots

Screen Grab of Search Results

The image above should be familiar to most anybody who has ever used the ‘Search’ function on our website. The above was generated when I searched for locomotives whose Number string included the word ‘General’. Most of you have corrected deduced the meanings of the little red and green dots (I always thought of them as LEDs, for some reason). The red led indicates, of course that the locomotive in question does not have the corresponding feature, and if green, then it does. So the Six Gun Territory locomotive has only one or more Notes attached to it. The 35011 has a Photo Album, Notes and Links.

So, here’s the rub. The indicator for videos was being generated correctly EVERYWHERE in the website, except in Search results. There, it more or less randomly was red or green for Video, and meaningless. Tracked down what I did to cause this disaster, and repaired it today. Happy.

Now nearly everyone knows that if you click on the little thumbnail image for a locomotive, you get a bunch more information. Let’s try it for the Southern Railway locomotive in the search results above. We click on the thumbnail image, and voila! We get the following:

And there, at the bottom of the screen are buttons which correspond to the features that this locomotive has: a Photo Album, Links and Notes. And a zinger: I just notice that some bizarre data entry problem caused this locomotive to appear to have 980 cylinders of 18×24″ dimensions. Don’t bother to go to the site and look. I already fixed it.

I am thinking about making the features (Photo Album, Videos, Links and Notes) available to site visitors without first having to go through the page above. I am working on an example and hope to have it available this week through a dummy page for your examination and comments. I’ll let you know.

 
Leave a comment

Posted by on May 26, 2020 in Website

 

Website Updates 5-25-2020

I am aware that it’s the 26th, not the 25th. But the contents of this entry detail what I did on the website yesterday.

  • Restored spaces to 341 railroad names in the database.
  • Corrected the locations of three locomotives in Germany, putting them at DKBM Gütersloh.
  • Began a project to add a dictionary of abbreviations to the website.
  • Corrected the status and other details for 7 locomotives at DKBM Gütersloh.
  • Fixed a bug involved in the incorrect abbreviation of a German state.
  • Corrected the wheel arrangement of Drachenfeldsbahn 0-4-2Tcog No. 2
 
Leave a comment

Posted by on May 26, 2020 in Website