Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Friday, 7 July 2017

Social Housing Renovation Simulator

An image of the javascript websiteIn the UK there was a big fire in a residential tower block which had been renovated only a year ago. Many people were asking why sprinkler systems hadn't been installed, or why flammable materials were used instead of more expensive flame resistant materials.

In order to understand how these decisions could be made, I thought I'd try to build a model or a simulator.

The first couple of versions just randomised the chance of a fire and how many people would die, based on known data. Then later iterations added the different renovations that could affect the chances. Then I added a nice uft-8 box drawing, because I'm old school, and feel that this art form has been neglected.

To answer the question of why wouldn't you prioritise fire safety, I added factors such as how easy it is insulate tower blocks or keep them dry. If you renovate a cold, damp and mouldy tower block and it remains cold, damp and mouldy, then the renovation work was pointless.

Anyhoo, it is here

I feel at this point it is stable and does what I kind of envisioned it to do. But my mind is boggling, new features bubbling to the surface. Whilst I accept that it is very crap, its no Sim City '86, neither is it as sophisticated as anything written this century and will probably never be.

However, further features would be as follows:-
  • Add windows as something to buy
  • Add draftiness as an attribute
  • Add landscaping as something to buy
  • Add aesthetics as an attribute
  • Select which UK region the tower block is located in
  • Make the residents pay rent each month
  • Somehow calculate the possible rental income from the renovations
  • Tidy up the weightings for each attribute sum so that things like sprinklers quash all chance of a fire going out of control.
  • In the event of a fire, assign blame and points of failure, such as illegal cladding over certain heights
  • Generate a list of names of the dead, which doesn't go away
  • Collect data from users about what they have chosen
  • Set challenges for renovation budgets
  • Option of doing things on the cheap, which causes danger or incorrectly installed features
  • Add gas risers in stairwells
  • Add additional fire escapes
  • Calculate deaths based on residents of flats on each floor
  • Deal with running costs and fire inspections such as combustible material in hallways
  • Use css
  • Make it look pretty on mobile devices

Monday, 19 November 2012

The neverending awesomeness of Indiepop Eyespy

Days have past, hundreds have died elsewhere in the world, but still I keep on hammering away at my keyboard. I keep on pushing, keep on fighting for something I believe in, something I've fought for for years, and that is Indie Eyespy.

Here try this
London Indiepop Eyespy

What you've got there may look pretty basic, but under the hood I've pushed the envelope of my skills. Its got html, JavaScript, php and MySQL.

It even looks pretty good when you view the source.

The list of bands and band members comes from a database that's 5 Normal Form, so the same person can be worth more points depending on what band they're in.

Now I just need to add a few more bands, and use the magic of CSS3 to make it look pretty.

And also do something slightly different for dealing with scenesters, promoters and DJs who aren't necessarily in any bands.

And then maybe I can work on adding a highscore table, and maybe a page to add new bands and band members, and then a special thing that looks up how many listeners each band has on last.fm and splits them into divisions based on how popular they are.

Thursday, 15 November 2012

Order of the day


I've given some thought to what order to have the bands on the London Indiepop Eyespy website, this is another form over function problem.

Its got to be easy to use, easy to find the scensters that users want to claim points for.

This suggests alphabetical order for all the bands. This wouldn't be a problem if there were only two pages of bands. But if we're listing band members, that would be less than ten bands in total.

Besides, from my experience with the Skilmo site, people don't really want to work through a long list of bands, it puts people off using the site, their attention wanders and I've lost a scenester.

Back in the dusty days of Glasgow Indie Eyespy, the hundred or so bands of the Glasgow indie scene were split into about half a dozen divisions based on popularity, so in the premiership you'd find Franz Ferdinand, the Belles, the Obscuras, the Mogwai, in the first division you'd find the Felt Tips, The Plimptons, Wake The President etc. Scenesters could intuitively know where to look for the bands.

Which divisions the bands were in was a carefully calculated algorithm based on last.fm, technorati and MySpace data, but those vectors aren't really appropriate this decade for the twenty or so London Indiepop bands.

Sure I could work out some kind of popularity rankings, but having bands in divisions doesn't look nice if all the band members are listed. Alternatively, the site could list the bands and then expand to list the members once you've clicked on the name, but that's not very satisfactory.

I'm having real doubts about the viability of the website at this stage, I can't envisage people using it.

Doubts aside, if we look at the sort of sites I'm hoping to ape, like Last.fm and Songkick, they don't have alphabetical lists of bands, they intuitively know what band names you want to see, they don't have lists that you have to wade through.

So, with the tools I have available, what would Phil Cowans and Gideon Bullock do? What would Russ Garrett do?

​Something like this?