Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
An area ID in Overpass is the OSM relation ID + 3600000000
This information is kind of buried in the Overpass API wiki page documenting the available filters: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#By_area_.28area.29
The OSM relation ID can be seen in two places:
https://www.openstreetmap.org/relation/SOME_NUMBER_HERE
page--- EAST --- | |
D'Marcus Williums | |
T.J. Juckson | |
T'varisuness King | |
Tyroil Smoochie-Wallace | |
D'Squarius Green, Jr. | |
Ibrahim Moizoos | |
Jackmerius Tacktheritrix | |
D'Isiah T. Billings-Clyde |
from newspaper import Article | |
def lambda_handler(event, context): | |
url = event['url'] | |
article = Article(url) | |
article.download() | |
article.parse() | |
return { | |
'content' : article.text |
Railsappname::Application.routes.draw do | |
root :to => "home#index" | |
devise_for :users, :skip => [:sessions, :registrations] | |
devise_scope :user do | |
# make some pretty URLs | |
get "login" => "devise/sessions#new", :as => :new_user_session | |
post 'login' => 'devise/sessions#create', :as => :user_session | |
delete "logout" => "devise/sessions#destroy", :as => :destroy_user_session |
I've asked this at OpenStreetMap Help, but I'm posting it here as well for anyone without an OSM account.
The simplest version of the command I'm using is (pretty formatting for easier reading - it's usually one line):
osmosis --read-pbf-fast file="north-america-latest.osm.pbf"
--bounding-polygon file="holyoke_ma.poly" --write-xml file="holyoke_ma.osm"
I get more complex by adding --tee ##
with ##
being the number of files being read/written. So that's something like (pretty formatting for easier reading - it's usually one line):
osmosis --read-pbf-fast file="north-america-latest.osm.pbf" --tee 4
The scenario here is that you've got a lot of commits on the master
branch that should have been committed to a feature branch.
You want to reset master
back to the last commit, and you don't want to lose your work.
The process below is fairly specific to SourceTree.
placeholder
at the point that you want to restore to ... This will be deleted later, after everything is confirmed ok.
Branch...
, name it placeholder
, and click Create Branch
function getBoundingBox(data) { | |
var bounds = {}, coordinates, point, latitude, longitude; | |
// Loop through each "feature" | |
for (var i = 0; i < data.features.length; i++) { | |
coordinates = data.features[i].geometry.coordinates; | |
if(coordinates.length === 1){ | |
// It's only a single Polygon | |
// For each individual coordinate in this feature's coordinates... |
The official instructions for installing Nominatim are complete, but brief in places, and several steps must be changed in the Amazon Linux environment (which is roughly CentOS / Redhat). The steps below are rough record of what I did to get it working, but I didn't keep perfect track so you shouldn't rely on them as a shell script. Just follow each step, make sure it worked, and hopefully you'll need to adapt very little (version numbers, for one thing). (I also skip in and out of root, but you can be more careful if you like.)
console.log('Loading event'); | |
// Twilio Credentials | |
var accountSid = ''; | |
var authToken = ''; | |
var fromNumber = ''; | |
var https = require('https'); | |
var queryString = require('querystring'); |