What’s new with JavaScript and geospatial – wrapup from the js.geo event
What’s new with JavaScript and geospatial – wrapup from the js.geo event The past couple of days I’ve been at the js.geo event in Denver, which was a small informal conference focused on JavaScript...
View ArticleDesign and Analysis of Algorithm 2 Homework 6
Question 1 In this assignment you will implement one or more algorithms for the 2SAT problem. Here are 6 different 2SAT instances: #1 #2 #3 #4 #5 #6.The file format is as follows. In each instance, the...
View ArticleProgramming Languages Programming Assignment 2
Code (* Dan Grossman, Coursera PL, HW2 Provided Code *) (* if you use this function to compare two strings (returns true if the same string), then you avoid several of the functions in problem 1 having...
View ArticleJavaScript and CSS dynamic loading
globalConfig.loadCSS = globalConfig.loadCSS || function(filename){ var fileref=document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css");...
View ArticleBatch Geonews: From ArcMap to MapBox, Esri GeoDatabases, China Mandates...
Here’s the recent geonews in batch mode. From the open source front: MapBox acquired the MeatText mobile social mapping app and is open sourcing the app with MapBox code You can now even publish any...
View ArticleBatch Geonews: Landsat 5 Decommissioned, GeoPackage RFC, Geocoding Client API...
This is an abnormally long version of our ‘batch geonews’ edition, covering the news since the holiday break. On the open source & open data front: This entry discusses the new geocoding client API...
View ArticleProgramming Languages Programming Assignment 3
Code (* Coursera Programming Languages, Homework 3, Provided Code *) exception NoAnswer datatype pattern = Wildcard | Variable of string | UnitP | ConstP of int | TupleP of pattern list | ConstructorP...
View ArticleBatch Geonews: Voxel.js Minecraft-like, QGIS for Android, Side-by-Side...
Here’s the recent geonews in batch mode. On the open source front: 3D and open source with WebGL mixed with games gives you Voxel.js: Minecraft-like Browser-Based Games, But Open Source, which can...
View Article用于展现图表的50种JavaScript库
在很多项目中都会有在前端展现数据图表的需求,而在开发过程中,开发者往往会使用一些JavaScript库,从而更有效地达到想要的目标。最近,TechSlide上的一篇文章总结了50种用于展现图表的JavaScript库,并对每种库做了简要的说明。这对于想要选择合适JavaScript库的开发者很有参考意义。 文章作者首推的库是D3,他说到:...
View ArticleProgramming Languages Programming Assignment 4
#lang racket (define ones (lambda () (cons 1 ones))) (define nats (letrec ([f (lambda (x) (cons x (lambda () (f (+ x 1)))))]) (lambda () (f 1)))) (define powers-of-two (letrec ([f (lambda (x) (cons x...
View ArticleProgramming Languages Programming Assignment 5
;; Programming Languages, Homework 5 #lang racket (provide (all-defined-out)) ;; so we can put tests in a second file ;; definition of structures for MUPL programs - Do NOT change (struct var (string)...
View ArticleProgramming Languages Programming Assignment 6
# University of Washington, Programming Languages, Homework 6, hw6runner.rb # This is the only file you turn in, so do not modify the other files as # part of your solution. class MyTetris < Tetris...
View ArticlePattern-Oriented Software Architectures for Concurrent and Networked Software
1. Concurrent software can simultaneously run multiple computations that potentially interact with each other. Networked software defines protocols that enable computing devices to exchange messages...
View ArticleRuby function for Option value calculation
class Stock def initialize (initial_price = 100, up = 1.04574) @initial_price = initial_price @up = up @down = 1/up end def calculateStock (n) Array.new(n + 1) {|i| @initial_price * (@up**( n -...
View ArticleProgramming Languages Programming Assignment 7
sml code (* University of Washington, Programming Languages, Homework 7, hw7.sml (See also Ruby code.) *) (* Do not make changes to this code except where you see comments containing the word CHANGE....
View ArticleOwnership Parcel ID conversion from Integer to String
It is required to convert the ID from an integer to a string with length of 9. Right(str([IDENT] + 1000000000), 9)
View ArticleComputational Photography Programming Assignment 0 – Image
import sys import os import numpy as np import cv2 def split_rgb(image): '''Split the target image into its red, green and blue channels. image - a numpy array of shape (rows, columns, 3). output -...
View ArticleLearn to Program: Crafting Quality Code Assignment 1
def num_buses(n): """ (int) -> int Precondition: n >= 0 Return the minimum number of buses required to transport n people. Each bus can hold 50 people. >>> num_buses(75) 2 """ if not...
View ArticleAlgorithms, Part II Assignment 2
Programming Assignment 2: Seam Carving Warning: this assignment has not been battle-tested. It is likely that there are more ambiguities and bugs. Please bring those to our attention and we will do our...
View ArticleAlgorithms, Part II Assignment 1
Programming Assignment 1: WordNet WordNet is a semantic lexicon for the English language that is used extensively by computational linguists and cognitive scientists; for example, it was a key...
View Article