Search This Blog
Wednesday, September 7, 2016
LINKS to things to check out one day
http://mapsurfernet.com/demo/gallery
MapSurfer.NET is a free, modern and advanced framework for producing a cartographic product of a high quality. This full featured framework offers a rich set of tools and techniques to automate various cartographic tasks. MapSurfer.NET is designed to be fast and flexible for being used both in desktop and web applications.
-------
http://openrouteservice.org/
Open least cost paths (car, public transport, walking etc)
------
https://datahub.io/dataset/open-flights
(Flight data, and airport details)
Monday, August 22, 2016
SSL HTTPS on IIS - https://letsencrypt.org/
.well-known. (the last dot is important), Windows will create the folder and automatically will remove the last dot.Monday, June 13, 2016
IMU - complementary filter
http://blog.bitify.co.uk/2013/11/using-complementary-filter-to-combine.html

http://www.geekmomprojects.com/mpu-6050-dmp-data-from-i2cdevlib/
http://stackoverflow.com/questions/32228629/imu-orientation-constantly-changing/32231388#32231388
Thursday, April 7, 2016
Getting I2C to work on Rapsberry Pi
Two parts
Part 1) Turn on in BIOS
http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/
sudo raspi-config
In the advanced settings turn on I2C
- Select “8 Advanced Options”
- Select “A7 I2C”
- Select “Yes”
- Select “Yes”
- Select “Ok”
- Select “Yes”
- Select “Ok”
- Select “Finish” to return to the command line
_______
Part TWO - setup software
https://www.raspberrypi.org/forums/viewtopic.php?t=74763
Add this to /etc/modules and reboot
i2c-bcm2708
i2c-dev
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
sudo i2cdetect -y 1
Thursday, February 18, 2016
Resize Oracle Virtual Box Machine’s Hard Drive Size
On Windows host PC….
Goto CMD and type:
C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd f:\virtualmachine.vdi –resize 500000
(to make new drive size 500GB)
Sunday, January 31, 2016
plpythonu + numpy and other modules - on a linux server (in this case a Raspberry Pi)
sudo apt-get install postgresql-contrib postgresql-plpython (with correct version numbers added)
and python module installations
pip install numpy
Test it in Python
------------------
import numpy
print (numpy.e)
However on creating a plpython2u function the error msg report numpy couldn't be found ??
After much searching and looking to add the path of the user that installed the module - the easiest fix was to go back to the server (Rasp Pi2 in this case) and switch to the postgresql user
su postgres
{answer password prompt}
then do pip install numpy
also in this case pip install nltk
then run python as this user (postgres)
import nltk
nltk.download()
{select all - wait to download - close dialogue box}
Now the plpython2u modules that the postgres user sees has all the necessary data files to work properly...
Tuesday, November 10, 2015
Multiple Web Hosting across many VMs on a Single Server (1 IP address but many URLs)
It is easy enough to host many sites on IIS or Apache using virtual host (or binding) on a single machine. However I have a need to run several VMs on single machine, each VM being accessible to different colleagues. Using Virtual Box (ver 5) it is easy enough to enable the Remote Desktop option, whereby you can remote desktop (eg mstsc / remote desktop app) to a VM directly.
However what was so apparent was how each VMs IIS could share a single ‘real’ world facing IP address (eg 1.2.3.4) while each VM had its own subnet (eg 10.0.2.15). The VMs could not be in the same subnet range as only 1 external IP address was available.
To achieve this goal a few things need to happen:
1) Install URL Rewrite (ver 2.0 was used) on IIS – this requires additional packages to be installed via Web Platform Installer (Application Request Routing)
2) Set up NAT on each VM virtual box setting – so that data can be sent between subnets
eg VM1 – NAT HOST port 8081 mapped to GUEST (VM) 8081
NAT HOST port 8082 mapped to GUEST (VM) 8082
VM2 – NAT HOST port 8083 mapped to GUEST (VM) 8083
3)Configure the IIS on the HOST with a new website for each website URL hosted on this server
eg website: www.testsite1.com
4) Create a URL Rewrite rule
For each website on the host (as created above) add a URL Rewrite rule…
The top box is the INTERNAL web address (in this case 1.2.3.4:8081)
.. and the lowest box of the 3 is the URL (eg www.testsite1.com)
One further step (needed for gzipped compressed websites) is to add HTTP_ACCEPT_ENCODING to the Server variables. This is done in the URL_REWRITE rule (set value to 0 as GUI needs an entry).
… and then again you need to set this again from a drop down list (start typing for list to appear) of server variables.
5) Configure the IIS on the VM
The VM IIS running the website needs to be listening on the specified port (eg 8081), and not be bound to a given URL (ie binding is left blank). Also ensure the Windows Firewall on the VM is open for the port you are using (eg 8081).
Repeat using a different port for each website, and adding the details to the Firewall, Host URL Rewrite, VM NAT Port forwarding, and VM IIS website (port).