Live Notes: Supertitle generates names and links.

This is a live notes post. It is of very low interest to almost all readers, but I do believe that the more open my work is, the better that work goes.   These are posts mostly written for me, but if you arrived here from a search engine and it looks like I once had a problem that you have now then feel free to drop me a line and I’ll put things into order a little bit.

 

#28/04/2016-18:20:43 GMT+1:

Currently,  The students we work we have to log in before editing. This ends up being a little bit of a faff and we’d like to make it faster.

 

With Google drive, a user can view a file without being logged in, but NOT a folder.  This is difficult.    The logical solution is we igve the students the direct link for each file.

The problems with this are a little complex.  I think this has to be done carefully.

 

I can do something like this  http://equalitytime.co.uk/sg/ I think… With files to edit

 

Let’s create a branch…

git checkout -b generateEditList

Now let’s see what we can do with simple print statements

 

#28/04/2016-18:31:45 GMT+1:

Hmmm… so far, promising…
joereddington@ps488197:~/equalitytime.co.uk/SubtitlePlayer$ python download_and_create_html.py
clangers-17-crash-bang-chicken
andys-dinosaur-adventures-10-ornithocheirus-and-sand-dollar
andys-dinosaur-adventures-19-trex-and-roar
spot-bots-zoople-time-1-cosmo-the-astronaut-spot-the-alien
life-in-the-air-3-crowded-skies
natural-world-20122013-2-tiger-island
eastenders-19042016
andys-dinosaur-adventures-20-allosaurus-and-salt
clangers-28-the-brilliant-surprise
katie-morag-series-1-1-katie-morag-delivers-the-mail
danger-mouse-26-the-hamster-effect
room-101-series-5-episode-6
dynamo-magician-impossible-series-2-episode-1
postman-pat-series-7-3-postman-pat-and-the-pot-of-gold
art-ninja-series-2-5-day-of-the-time-machine

I like the idea of testing with this file.

 

#28/04/2016-18:33:47 GMT+1:

Okay – embed link is for literal embeding… Let’s see…
clangers-17-crash-bang-chicken
andys-dinosaur-adventures-10-ornithocheirus-and-sand-dollar
andys-dinosaur-adventures-19-trex-and-roar
spot-bots-zoople-time-1-cosmo-the-astronaut-spot-the-alien
life-in-the-air-3-crowded-skies
natural-world-20122013-2-tiger-island
eastenders-19042016
andys-dinosaur-adventures-20-allosaurus-and-salt
clangers-28-the-brilliant-surprise
katie-morag-series-1-1-katie-morag-delivers-the-mail
danger-mouse-26-the-hamster-effect

 

#28/04/2016-18:35:14 GMT+1:

Okay, that appears to have worked. But how do we save it…?

 

#28/04/2016-18:42:12 GMT+1: commit http://joereddington.com/5903/2016/04/28/live-notes-supertitle-generates-names-and-links./

Okay, we are now writing a file into a table.   I now need to make sure the website comes with me on this.

#28/04/2016-18:46:47 GMT+1:

I’ve altered the relevant page. It’s messy in places, but job done.

 

Leave a Reply