Archive for the 'Life' Category

TEDx Southampton 2016

TEDx Southampton 2016 happened today – the subjects were diverse and the speakers varied in style. I enjoyed most of them but there were two, in particular, that I thought might change my behaviour in future…

Tony Curran was speaking about the carbon-footprint of our food. He linked to the XKCD representation of the relative weights of the the population of land mammals. If you’ve not seen it before, the small fraction of wild animals might surprise you. Look at the fraction that is cows! Reducing the amount of beef we eat (even if you swap it for chicken) could have a big impact on the planet. He also talked about the importance of eating things in season and of choosing foods that come by land/sea not flown by air or grown in a hot house. He has a handy PDF guide to whch foods are in season.

Megan Streb talked about the importance of livable spaces. She extolled the virtues of knowing your neighbours, kids playing outside and communal outdoor spaces with seating. She talked about the possibility of closing streets for parties (or more regularly for kids to play). It was definitely food for thought and it gave me some ideas to think about which is what you hope for when you go to a TED event.

I’ll definitely be keen to go to a 2017 event if one happens.

Today I learned

Day 2 of Winchester Science Festival 2016. It’s an awesome event. If it happens next year: go!

A few random facts that I learned today:

  • The average time between a rabbit being bought in a pet shop and it being taken to a rescue centre is 6 weeks but they live 8-10 years. 
  • Rabbits make two types of poo – one (soft) designed to be eaten – they digest their food twice.
  • I saw an amazing video of a  rabbit attacking a snake.
  • Quite how quickly atmospheric CO2 is rising ‘The pump handle graph
  • In 1800 the UK had a life expectancy of about 40. It was even lower in almost all other countries.
  • At this point we’ll need to do carbon capture (BECS) to keep climate change to 1.5C
  • Deadly Nightshade is called Belladonna (‘beautiful woman’) because the berry juice was applied with a feather to dilate ladies’ pupil and make them look more attracted to a partner. The active ingredient atropine causes hallucinations and larger doses ~1 berry causes death.
  • Botulinum toxin (botox) is one of the most toxic things known to mankind. A pint could kill all living humans. Lethal dose is 1 nano-gram.
  • The placenta has viral DNA, what makes us mammals are genes captured from viruses: Mammals were made by viruses
  • ‘Unqualified’ volunteers have analysed images on the GalaxyZoo website and discovered type Ia supernova which are a ‘standard candle’..which help is measure the distance to other galaxies. You can volunteer time to help a number of science projects at the Zooniverse.

The Zooniverse talk was really inspiring, I’ll definitely be having a play!

Problems with Qt Creator installed in /opt

I’ve been doing a bit of fiddling with using Qt for developing mobile apps. When I installed the Qt SDK I installed it to /opt. This means the user running the IDE does not have write access to the IDE which has caused a number of problems.

  • Updating the SDK: If you run the SDK as the normal user, the “Help > Start Updater” menu option still exists and appears to work. It seemed to detect that I had sudo access and asked for my password but then hung using 100% CPU. Instead of using that menu option, I ran /opt/QtSDK/SDKMaintenanceTool as root which works.
  • Running the QEMU phone emulator: This failed with “Qemu finished with error: Exit code was 1”. To fix this, I ran QEMU manually:
    /opt/QtSDK/Madde/bin/mad remote -r dfl61-harmattan_2.2011.39-5 poweron -fg
    This showed I needed write access to the qemu disk images. As I’m the only user on the system*, I gave all users access:
    chmod a+w /opt/QtSDK/Madde/runtimes/dfl61-harmattan_2.2011.39-5/arm-qemu-rm680-*

Hope this helps someone stumbling across this via Google

* = Yeah. There was no need to install Qt into /opt – it just seemed tidier than putting it in my home directory

Simple graphical Javascript Timer

A while ago, for a friend’s party I wrote a very simple Javascript Timer.

The other day, my daughter (too young to understand a numeric countdown at the moment) was messing around at dinner (not unusual). I wanted a simple graphical way to explain that after a set amount of time I would take her dinner away to encourage her to eat up.

Slightly to my surprise I couldn’t find anything with Google (my Google-fu is obviously weak). So I extended my little timer so that it shows a green ball for each second remaining. As the time ticks down, the balls turn red.

I was originally going to use a progress bar but this way shows, at a glance, how much total time there was…

I think it’s working pretty well

My “YES to AV” masterpiece

The opinion-polls that show AV and first-past-the-post neck and neck make me sad. AV isn’t perfect but all its drawbacks (e.g. gerrymandering) apply to FPTP too. AV has the big advantage that tactical voting isn’t necessary – a huge drawback in the current system. The main argument against AV “people who vote for smaller parties get to vote twice” seems confused or intellectually dishonest.

I drew a beautiful masterpiece that sums up the situation to post to the b3ta AV image challenge but as a new member it turns out I’m not eligible to post until Tuesday.

Oh well, it reduces the number of people who will doubt my mental age to the readership of this blog entry…