Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laurolins/nanocube
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0
Choose a base ref
...
head repository: laurolins/nanocube
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Oct 4, 2019

  1. add config file option

    Horace Ip authored and Horace Ip committed Oct 4, 2019
    Copy the full SHA
    488d227 View commit details
  2. updated README

    Horace Ip authored and Horace Ip committed Oct 4, 2019
    Copy the full SHA
    73155fd View commit details

Commits on Oct 9, 2019

  1. Web frontend updates

    Horace Ip authored and Horace Ip committed Oct 9, 2019
    Copy the full SHA
    0659f01 View commit details
  2. Web frontend updates

    salivian authored and Horace Ip committed Oct 9, 2019
    Copy the full SHA
    b98574c View commit details
  3. Merge branch 'master' of github.com:laurolins/nanocube

    Horace Ip authored and Horace Ip committed Oct 9, 2019
    Copy the full SHA
    cbb1d7a View commit details
  4. add new web dist

    salivian committed Oct 9, 2019
    Copy the full SHA
    4c0faf3 View commit details

Commits on Nov 5, 2019

  1. Copy the full SHA
    28b24fd View commit details
  2. fixed app

    salivian committed Nov 5, 2019
    Copy the full SHA
    e4034a9 View commit details
  3. add back cors

    salivian committed Nov 5, 2019
    Copy the full SHA
    4acf94a View commit details

Commits on Nov 7, 2019

  1. Copy the full SHA
    326255b View commit details

Commits on Nov 12, 2019

  1. 1. Fix sqlite datetime in sql

    2. Fix use pandas fillna to avoid NaNs
    salivian committed Nov 12, 2019
    Copy the full SHA
    300ff13 View commit details
  2. replace NaN with nulls (None) in python

    NaN does not work with Browswer JSON
    salivian committed Nov 12, 2019
    Copy the full SHA
    476e0a9 View commit details

Commits on Jan 27, 2020

  1. fixed a typo

    salivian committed Jan 27, 2020
    Copy the full SHA
    7c31655 View commit details
  2. Copy the full SHA
    8c3a109 View commit details

Commits on Sep 17, 2020

  1. docker setup

    salivian committed Sep 17, 2020
    Copy the full SHA
    2292196 View commit details
  2. Copy the full SHA
    22bb0c8 View commit details
  3. Copy the full SHA
    3a6a38e View commit details
  4. Reduced docker image size

    salivian committed Sep 17, 2020
    Copy the full SHA
    9918d2e View commit details
  5. switch from flask to fastapi

    salivian committed Sep 17, 2020
    Copy the full SHA
    8cc1253 View commit details
  6. Copy the full SHA
    88f76f9 View commit details

Commits on Sep 18, 2020

  1. Copy the full SHA
    c77d259 View commit details

Commits on Mar 3, 2021

  1. Copy the full SHA
    8b2ab18 View commit details
  2. 1. Docker gunicorn installation fixes

    2. updated to parcel v2
    3. Nanocubes heatmap support rgba colormap properly
    salivian committed Mar 3, 2021
    Copy the full SHA
    a3e28e3 View commit details
  3. 1. nginx comment fix

    2. d3 v6 event fixes for Timeseries brush and zoom / grouped barchart
    salivian committed Mar 3, 2021
    Copy the full SHA
    8fb7019 View commit details

Commits on Mar 17, 2021

  1. Copy the full SHA
    9b39aa4 View commit details
  2. Redirect / to /docs

    salivian committed Mar 17, 2021
    Copy the full SHA
    a62735e View commit details

Commits on May 4, 2023

  1. Copy the full SHA
    a085f57 View commit details
Showing with 19,277 additions and 5,561 deletions.
  1. +2 −0 .dockerignore
  2. +12 −0 Dockerfile
  3. +1 −1 Makefile.am
  4. +24 −18 Makefile.in
  5. +17 −0 README.md
  6. +27 −25 aclocal.m4
  7. +3 −1 configure
  8. BIN data/crime50k.csv.gz
  9. +39 −0 docker-app/build.sh
  10. +72 −0 docker-app/config.json
  11. +35 −0 docker-app/nginx.conf
  12. +25 −0 docker-app/run.sh
  13. +2 −1 web/Makefile.am
  14. +4 −3 web/Makefile.in
  15. +24 −3 web/README.md
  16. +44 −0 web/bin/db_rest_server.py
  17. +10 −2 web/bin/nanocube_webconfig
  18. +2 −2 web/dist/index.html
  19. BIN web/dist/{layers-2x.cbb7e1cd.png → layers-2x.537a6a56.png}
  20. BIN web/dist/{layers.1221afa8.png → layers.7c559898.png}
  21. BIN web/dist/{marker-icon-2x.e7744218.png → marker-icon-2x.37695975.png}
  22. BIN web/dist/{marker-icon.0c34f182.png → marker-icon.8e6b47f8.png}
  23. BIN web/dist/{marker-shadow.fe9514d6.png → marker-shadow.ffd14a96.png}
  24. BIN web/dist/{spritesheet-2x.569cf122.png → spritesheet-2x.c3dfad06.png}
  25. 0 web/dist/{spritesheet.e42ef97f.svg → spritesheet.0c823dc9.svg}
  26. BIN web/dist/{spritesheet.ea26ccfb.png → spritesheet.5bb64e63.png}
  27. +0 −1 web/dist/web.080ae6c3.map
  28. +37 −0 web/dist/web.2c76e7ee.js
  29. +1 −0 web/dist/web.2c76e7ee.js.map
  30. +0 −1 web/dist/web.41195c7d.css
  31. +2 −0 web/dist/web.5559dd7d.css
  32. +1 −0 web/dist/web.5559dd7d.css.map
  33. +0 −1,032 web/dist/web.f614d4ec.js
  34. +1 −1 web/index.html
  35. +45 −0 web/nanocubes.css
  36. +18,517 −4,392 web/package-lock.json
  37. +15 −16 web/package.json
  38. +12 −12 web/src/Nanocube/GroupedBarChart.js
  39. +11 −14 web/src/Nanocube/Heatmap.js
  40. +3 −3 web/src/Nanocube/Nanocube4.js
  41. +3 −3 web/src/Nanocube/PolygonMap.js
  42. +31 −20 web/src/Nanocube/Timeseries.js
  43. +255 −10 web/src/Nanocube/Viewer.js
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!docker-app/
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu

COPY ./docker-app /app

#build
ENV DEBIAN_FRONTEND "noninteractive"
RUN /app/build.sh

#run
WORKDIR /app
ENTRYPOINT ["/app/run.sh"]
CMD ["crime","/data","/data/config.json","/data/crime50k.db"]
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ endif

bin_PROGRAMS=nanocube
nanocube_SOURCES=src/platform_dependent/nix_app.c
nanocube_CFLAGS=-pthread
nanocube_CFLAGS=-pthread -O2
nanocube_LDADD=-lm
if WITH_POLYCOVER
nanocube_CFLAGS+=-DPOLYCOVER
42 changes: 24 additions & 18 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Makefile.in generated by automake 1.16.1 from Makefile.am.
# Makefile.in generated by automake 1.16.2 from Makefile.am.
# @configure_input@

# Copyright (C) 1994-2018 Free Software Foundation, Inc.
# Copyright (C) 1994-2020 Free Software Foundation, Inc.

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -286,8 +286,8 @@ am__recursive_targets = \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
cscope distdir distdir-am dist dist-all distcheck
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
$(LISP)config.h.in
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
config.h.in
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
@@ -502,7 +502,7 @@ ACLOCAL_AMFLAGS = -I m4
@WITH_POLYCOVER_TRUE@ src/polycover/glu/tessellate.c

nanocube_SOURCES = src/platform_dependent/nix_app.c
nanocube_CFLAGS = -pthread $(am__append_1) $(am__append_3) \
nanocube_CFLAGS = -pthread -O2 $(am__append_1) $(am__append_3) \
$(am__append_4)
nanocube_LDADD = -lm $(am__append_2)
SUBDIRS = web
@@ -985,6 +985,10 @@ dist-xz: distdir
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
$(am__post_remove_distdir)

dist-zstd: distdir
tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
$(am__post_remove_distdir)

dist-tarZ: distdir
@echo WARNING: "Support for distribution archives compressed with" \
"legacy program 'compress' is deprecated." >&2
@@ -1027,6 +1031,8 @@ distcheck: dist
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
*.tar.zst*) \
zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
esac
chmod -R a-w $(distdir)
chmod u+w $(distdir)
@@ -1261,19 +1267,19 @@ uninstall-am: uninstall-binPROGRAMS uninstall-libLIBRARIES
clean-binPROGRAMS clean-cscope clean-generic \
clean-libLIBRARIES cscope cscopelist-am ctags ctags-am dist \
dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
dist-xz dist-zip distcheck distclean distclean-compile \
distclean-generic distclean-hdr distclean-tags distcleancheck \
distdir distuninstallcheck dvi dvi-am html html-am info \
info-am install install-am install-binPROGRAMS install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-libLIBRARIES install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs installdirs-am \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
uninstall-libLIBRARIES
dist-xz dist-zip dist-zstd distcheck distclean \
distclean-compile distclean-generic distclean-hdr \
distclean-tags distcleancheck distdir distuninstallcheck dvi \
dvi-am html html-am info info-am install install-am \
install-binPROGRAMS install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am \
install-libLIBRARIES install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
uninstall-am uninstall-binPROGRAMS uninstall-libLIBRARIES

.PRECIOUS: Makefile

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,19 @@ The `master` branch now contains a new implementation of Nanocubes in the C prog

Here is a link to the new [API](/api/README.md)

# Docker Demo
```
$git clone https://github.com/laurolins/nanocube.git
$cd nanocube
#build the docker image
$docker build . -t nanocube
#run the demo
$docker run -it --rm -p 12345:80 nanocube
# See the demo at http://localhost:12345/ zoom into Chicago
```

# Compiling on Linux or Mac

```shell
@@ -83,3 +96,7 @@ Zoom into the Chicago region to see a heatmap of crimes.

For more advanced information follow this link: [extra](/EXTRA.md)

Branch with latest features: [link](https://github.com/laurolins/nanocube/tree/v4.2-dev)



52 changes: 27 additions & 25 deletions aclocal.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
# generated automatically by aclocal 1.16.2 -*- Autoconf -*-

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Copyright (C) 1996-2020 Free Software Foundation, Inc.

# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.])])

# Copyright (C) 2002-2018 Free Software Foundation, Inc.
# Copyright (C) 2002-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.16'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
m4_if([$1], [1.16.1], [],
m4_if([$1], [1.16.2], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])

@@ -51,12 +51,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.16.1])dnl
[AM_AUTOMAKE_VERSION([1.16.2])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])

# Copyright (C) 2011-2018 Free Software Foundation, Inc.
# Copyright (C) 2011-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -118,7 +118,7 @@ AC_SUBST([AR])dnl

# AM_AUX_DIR_EXPAND -*- Autoconf -*-

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -170,7 +170,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`

# AM_CONDITIONAL -*- Autoconf -*-

# Copyright (C) 1997-2018 Free Software Foundation, Inc.
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -201,7 +201,7 @@ AC_CONFIG_COMMANDS_PRE(
Usually this means the macro was only invoked conditionally.]])
fi])])

# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -392,7 +392,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl

# Generate code to set up dependency tracking. -*- Autoconf -*-

# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -431,7 +431,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
done
if test $am_rc -ne 0; then
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. Try re-running configure with the
for automatic dependency tracking. If GNU make was not used, consider
re-running the configure script with MAKE="gmake" (or whatever is
necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).])
fi
@@ -458,7 +460,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],

# Do all the work for Automake. -*- Autoconf -*-

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -655,7 +657,7 @@ for _am_header in $config_headers :; do
done
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -676,7 +678,7 @@ if test x"${install_sh+set}" != xset; then
fi
AC_SUBST([install_sh])])

# Copyright (C) 2003-2018 Free Software Foundation, Inc.
# Copyright (C) 2003-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -698,7 +700,7 @@ AC_SUBST([am__leading_dot])])
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
# From Jim Meyering

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -733,7 +735,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])

# Check to see how 'make' treats includes. -*- Autoconf -*-

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -776,7 +778,7 @@ AC_SUBST([am__quote])])

# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-

# Copyright (C) 1997-2018 Free Software Foundation, Inc.
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -815,7 +817,7 @@ fi

# Helper functions for option handling. -*- Autoconf -*-

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -844,7 +846,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])

# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -891,7 +893,7 @@ AC_LANG_POP([C])])
# For backward compatibility.
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -910,7 +912,7 @@ AC_DEFUN([AM_RUN_LOG],

# Check to make sure that the build environment is sane. -*- Autoconf -*-

# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -991,7 +993,7 @@ AC_CONFIG_COMMANDS_PRE(
rm -f conftest.file
])

# Copyright (C) 2009-2018 Free Software Foundation, Inc.
# Copyright (C) 2009-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1051,7 +1053,7 @@ AC_SUBST([AM_BACKSLASH])dnl
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
])

# Copyright (C) 2001-2018 Free Software Foundation, Inc.
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1079,7 +1081,7 @@ fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])

# Copyright (C) 2006-2018 Free Software Foundation, Inc.
# Copyright (C) 2006-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -1098,7 +1100,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])

# Check how to create a tarball. -*- Autoconf -*-

# Copyright (C) 2004-2018 Free Software Foundation, Inc.
# Copyright (C) 2004-2020 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
@@ -6742,7 +6742,9 @@ $as_echo X/"$am_mf" |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. Try re-running configure with the
for automatic dependency tracking. If GNU make was not used, consider
re-running the configure script with MAKE=\"gmake\" (or whatever is
necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).
See \`config.log' for more details" "$LINENO" 5; }
Binary file modified data/crime50k.csv.gz
Binary file not shown.
Loading