This tutorial goes through how to install openssl 1.1.1 on CentOS 7, since the yum repo only installs up to openssl 1.0.
Upgrade the system
yum -y update
The public-facing v3 API for ArcGIS Hub adheres to the JSON:API standard. The specification is worth reading on its own but we will provide some examples here.
The following will guide you through the process of enabling SSL on a Apache webserver
Create a directory within /etc/apache2/ using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:
| #!/usr/bin/env python | |
| import datetime | |
| import threading | |
| import time | |
| import requests | |
| def request_draft_info(): | |
| threading.Timer(5, request_draft_info).start(); |
| // based on https://github.com/processing/processing/blob/a6e0e227a948e7e2dc042c04504d6f5b8cf0c1a6/core/src/processing/core/PApplet.java#L5093 | |
| var scale = function(opts){ | |
| var istart = opts.domain[0], | |
| istop = opts.domain[1], | |
| ostart = opts.range[0], | |
| ostop = opts.range[1]; | |
| return function scale(value) { | |
| return ostart + (ostop - ostart) * ((value - istart) / (istop - istart)); |
| license: gpl-3.0 |
| <?php | |
| // Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html | |
| $url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json'; | |
| $file= file_get_contents($url); | |
| $json = json_decode($file); | |
| $rows = $json->{'feed'}->{'entry'}; | |
| foreach($rows as $row) { | |
| echo '<p>'; |
| def apdate_to_datetime(date): | |
| """ | |
| Takes an AP-formatted date string and returns a Python datetime | |
| object. This will also work on any date formatted as either | |
| '%b. %d, %Y' or '%B %d, %Y' | |
| Examples: | |
| >>> apdate_to_datetime("Sept. 4, 1986") | |
| datetime.datetime(1986, 9, 4, 0, 0) | |
| >>> apdate_to_datetime("Sep. 4, 1986") |