Posts

Showing posts with the label Python

Nuclear Test Map For 1969 to 2017

Image
By T. McDonald | 29/07/19 | Updated 07/10/19 Did you know that nuclear tests can be felt on the Richter scale? This investigation maps the nuclear tests registering 5.5 or greater on the Richter scale from 1969 to 2017. (Click on the markers to find out more about that test). At first it may look as if there are not many tests, but if you zoom in on one of the clusters, you will see many more markers. During the investigation it was discovered that the cause 'explosion' was actually four more nuclear explosions. Twelve test sites were discovered with six consisting of many tests, and six with less than ten occurrences. North Korea with just one test was the last nuclear explosion detected in the dataset. The average magnitude showed no real difference with nuclear a explosion was 5.86 and earthquakes at 5.87.  Furthermore, the biggest nuclear explosion was in 1973 and took place at Novaya Zemlya, Russia.  Further investigation revealed little difference between

Random Images from API with python

Image
By T. McDonald | 2/07/19 You may have heard of API’s and wondered what you can do with them. This is a simple but satisfying use of this powerful technology. What is API? Application programming interface. What does it do? An API will allow communication between two applications. The API I am using is a publicly available web-based API , which returns data as in JSON or XML.  In other words, I send a message to a stated website and request some data, in this case images are then returned to me.  Using python 2 is a little different in the coding.  It is worth noting that the ['file'] at the end of json.loads() may be different in the website you are connecting to.  I connected to randomcat.com .    Hope you enjoyed this quick blog.  Please leave a comment below. 

How to get started with Python programming

Image
By McDonald, T | Last updated 02/12/17 In this world of technology something is needed to make it all run.  This something is programming languages such as Java, C# and Python just to name a few.  Subsequently, the programming industry is a great place to be a part of with new opportunities opening up all the time.  If you are new to programming, Python is a great place to get started since it is relatively easy to learn and has extensive libraries. Getting started  The following will be required in order to get started. Python 3 (Free) Software to right the code (Free) Python 3 is different to Python 2.  The difference is in the syntax, so for now i will just keep to Python 3 since it is the newest.  Installing Python 3 is easy just follow the instructions in the video and then install Pycharm.  Pycharm is software for writing code.  You will need to install the latest version of Python for your operating system and the Community Edition of Pycharm. Altern