Sunday 23rd July
Had to put up a curtain rail yesterday afternoon so, courtesy of my arthritis, I am struggling to concentrate this morning. Never mind. I intend to investigate query.mobile to see what it can do for me over the next few days whilst I program just the tablet interface.
Monday 24th July
Managed two sessions today in an effort to catch up with the time I lost last week. Firstly, just to mention it, I have not had my TMA 03 back yet so I have no feedback on my current progress. I have complained to the Student support.
I spent some time messing about with logos etc. but went down a blind alley so decided that I could do without for the time being. I am now using jQuery to put the horizontal buttons in correctly. There was some extra code needed in the back end as, currently, the only option for data from the server was for client specific data. The back end can now deliver specific data types such as locos, cars, etc.
Tuesday 25th July
Thursday 27th July
Friday 28th July
Got there. Spent another hour battering down the door and finally sorted it all out. I now have static data displays working on Android for the parts that move – freight cars, coaches and cabooses.
I have also had my TMA03 back. I got 66% which isn’t brilliant but ~I fell down in one section – LO4/LO6/LO7. These are the areas where I am supposed to get others involved in the project to comment and offer suggestions. Plus, it seems that I must quote lots of sources of information to back up my project. As I am stuck for answers to these issues I am going to pen an email to my tutor listing the issues as I see them and ask for his assistance in how to deal with them. This isn’t my normal way as I am normally trying to be totally self reliant but he keeps on about this and I can’t see a way forward so I do need his help.
Saturday 29th July
Sorted out the Loco display and then had a look at the JSON problem. It turned out to be an easy fix. It seems that the JSON data records for the non-railroad stuff – trains, routes, etc. had a line of “””””””””” appended before the final curly brace. A very short piece of Smalltalk cleared that up.
stripTrailingQuotes | last aCopy | last := self at: self size. "Get the last curly brace" aCopy := self copyFrom: 1 to: ( self size -1). "Make a copy and drop that char" aCopy := aCopy trimEndQuotes. "Removes all " chars from the end of a string" ^ aCopy, '"', last asString. "Insert a needed " and replace the curly brace"