Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using SafeRoutes.Infrastructure.Storage.Domain; | |
namespace SafeRoutes.Infrastructure.Services | |
{ | |
/// <summary> | |
/// Service that clusters ProjectPoints |
Presented by Bob Martin in Tampa, Florida on 11 April 2012.
βUranus is not a nakedβeye object under any circumstances.β
Bob: How do you become unafraid of your code?
Today I gave a keynote at ACCU in Oxford. In the midst of it I made two (count them) two statements that I should have known better than to make. I was describing the late '70s, and the way we felt about the C language at the time. My slide said something like: "C was for real men." Emily Bache, whom I know and hold in high regard, spoke up and said "What about women?". And I said something like: "We didn't allow women in those days." It was a dumb crack, and should either not have been said, or should have been followed up with a statement to the effect that that was wrong headed. | |
The second mistake I made was while describing Cobol. I mentioned Adm. Grace Hopper. I said something like "May she rest in peace." I don't know that any of the words were actually demeaning, but the tone was not as respectful as it should have been to an Admiral in the United State Navy, and one who was so instrumental in our industry; despite what I feel about Cobol. | |
I am a 59 year old programmer who was brought up |
public class Log4NetSoapExtension : SoapExtension | |
{ | |
private static readonly ILog logger = LogManager.GetLogger("My Service"); | |
Stream oldStream; | |
Stream newStream; | |
public override Stream ChainStream(Stream stream) | |
{ | |
oldStream = stream; |
void Main() | |
{ | |
ProxyGenerator proxyGenerator = CreateProxyGenerator(); | |
IService proxy = | |
proxyGenerator | |
.CreateInterfaceProxyWithTargetInterface(new Service() as IService, new TracingInterceptorAspect()); | |
proxy.ProcessRequest(); | |
''' | |
NOTES: | |
- See the ArcGIS REST API documentation for supported operations, methods, and syntax: | |
http://resources.arcgis.com/en/help/arcgis-rest-api/ | |
- A TOKEN must be passed as parameter in addition to any required inputs for the operation. | |
- "urllib.urlencode" handles spaces and other special characters in parameters so that valid URLs are constructed. | |
- "urllib.urlopen" sends the reqest and handles the response. | |
- Parameters are appended to URL for GET (see Example 1), but passed to "urlopen" for POST (see Example 2). API docs specifiy supported methods for each operation. | |
- "json.loads" converts string responses to parseable JSON objects. |
For ETS's SKLL project, we found out the hard way that Travis-CI's support for numpy and scipy is pretty abysmal. There are pre-installed versions of numpy for some versions of Python, but those are seriously out of date, and scipy is not there are at all. The two most popular approaches for working around this are to (1) build everything from scratch, or (2) use apt-get to install more recent (but still out of date) versions of numpy and scipy. Both of these approaches lead to longer build times, and with the second approach, you still don't have the most recent versions of anything. To circumvent these issues, we've switched to using Miniconda (Anaconda's lightweight cousin) to install everything.
A template for installing a simple Python package that relies on numpy and scipy using Miniconda is provided below. Since it's a common s
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |