Compare commits
12 Commits
8432cc0bf6
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4aa96fdc89 | ||
| 259dc5575e | |||
| 15c1f41204 | |||
| ec4c367d11 | |||
| a962f13c51 | |||
| dfa539783d | |||
| e76d7c499a | |||
| 062b76af09 | |||
| bbbf9795bc | |||
| 8353ecc38c | |||
| d73ed21719 | |||
| c6fa2c41a7 |
@@ -13,3 +13,4 @@ notes.txt
|
|||||||
react_OLD
|
react_OLD
|
||||||
__pycache__
|
__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
|
adhoc
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Service Status Monitor
|
# Service Status Monitor
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
Server-side monitoring system that checks the availability of asimonson.com services every 2 hours and provides uptime statistics.
|
Server-side monitoring system that checks the availability of asimonson.com services every 60 seconds and provides uptime statistics.
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
@@ -9,20 +9,22 @@ Server-side monitoring system that checks the availability of asimonson.com serv
|
|||||||
|
|
||||||
#### 1. `monitor.py` - Service Monitoring Module
|
#### 1. `monitor.py` - Service Monitoring Module
|
||||||
- **Purpose**: Performs automated health checks on all services
|
- **Purpose**: Performs automated health checks on all services
|
||||||
- **Check Interval**: Every 2 hours (7200 seconds)
|
- **Check Interval**: Every 60 seconds
|
||||||
- **Services Monitored**:
|
- **Services Monitored**:
|
||||||
- asimonson.com
|
- asimonson.com
|
||||||
- files.asimonson.com
|
- files.asimonson.com
|
||||||
- git.asimonson.com
|
- git.asimonson.com
|
||||||
- pass.asimonson.com
|
|
||||||
- ssh.asimonson.com
|
|
||||||
|
|
||||||
**Features**:
|
**Features**:
|
||||||
- Tracks response times and HTTP status codes
|
- Tracks response times and HTTP status codes
|
||||||
- Calculates uptime percentages for multiple time periods (24h, 7d, 30d, all-time)
|
- Calculates uptime percentages for multiple time periods (24h, 7d, 30d, all-time)
|
||||||
- Persists data to PostgreSQL (`service_checks` table) via `DATABASE_URL` env var
|
- Persists data to PostgreSQL (`service_checks` table) via `DATABASE_URL` env var
|
||||||
- Gracefully degrades when no database is configured (local dev)
|
- Gracefully degrades when no database is configured (local dev)
|
||||||
- Runs in a background thread
|
- Runs in a background thread, with each check cycle guarded so a transient
|
||||||
|
failure (DB hiccup, network blip) logs and retries next interval instead of
|
||||||
|
killing the thread
|
||||||
|
- Flags the cached summary as `stale` if no check has landed in the last 5
|
||||||
|
intervals, so `/api/status` can't silently keep serving old data as fresh
|
||||||
|
|
||||||
#### 2. `app.py` - Flask Integration
|
#### 2. `app.py` - Flask Integration
|
||||||
- **New API Endpoint**: `/api/status`
|
- **New API Endpoint**: `/api/status`
|
||||||
@@ -39,13 +41,14 @@ Server-side monitoring system that checks the availability of asimonson.com serv
|
|||||||
- Displays response times and status codes
|
- Displays response times and status codes
|
||||||
- Shows total number of checks performed
|
- Shows total number of checks performed
|
||||||
- Manual refresh button
|
- Manual refresh button
|
||||||
- Auto-refreshes every 5 minutes
|
- Auto-refreshes every 60 seconds
|
||||||
|
|
||||||
#### 2. `static/js/status.js` - Frontend Logic
|
#### 2. `static/js/status.js` - Frontend Logic
|
||||||
- Fetches status data from `/api/status` API
|
- Fetches status data from `/api/status` API
|
||||||
- Updates UI with service status and uptime
|
- Updates UI with service status and uptime
|
||||||
- Handles error states gracefully
|
- Shows a dismissible-on-refresh notice banner when the response is a fetch
|
||||||
- Auto-refresh every 5 minutes
|
error, and a persistent notice when the backend flags the data as `stale`
|
||||||
|
- Auto-refresh every 60 seconds
|
||||||
|
|
||||||
#### 3. `static/css/App.css` - Styling
|
#### 3. `static/css/App.css` - Styling
|
||||||
- Color-coded status indicators:
|
- Color-coded status indicators:
|
||||||
@@ -99,7 +102,7 @@ cd src
|
|||||||
python3 app.py
|
python3 app.py
|
||||||
```
|
```
|
||||||
|
|
||||||
The monitoring will start automatically and perform an initial check immediately, then every 2 hours thereafter.
|
The monitoring will start automatically and perform an initial check immediately, then every 60 seconds thereafter.
|
||||||
|
|
||||||
### Accessing the Status Page
|
### Accessing the Status Page
|
||||||
Navigate to: `https://asimonson.com/status`
|
Navigate to: `https://asimonson.com/status`
|
||||||
@@ -115,7 +118,7 @@ To modify monitoring behavior, edit `src/monitor.py`:
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
# Change check interval (in seconds)
|
# Change check interval (in seconds)
|
||||||
CHECK_INTERVAL = 7200 # 2 hours
|
CHECK_INTERVAL = 60 # 1 minute
|
||||||
|
|
||||||
# Modify service list
|
# Modify service list
|
||||||
SERVICES = [
|
SERVICES = [
|
||||||
@@ -133,6 +136,6 @@ SERVICES = [
|
|||||||
|
|
||||||
- First deployment will show limited uptime data until enough checks accumulate
|
- First deployment will show limited uptime data until enough checks accumulate
|
||||||
- Historical data is preserved across server restarts (stored in PostgreSQL)
|
- Historical data is preserved across server restarts (stored in PostgreSQL)
|
||||||
- Page auto-refreshes every 5 minutes to show latest server data
|
- Page auto-refreshes every 60 seconds to show latest server data
|
||||||
- Manual refresh button available for immediate updates
|
- Manual refresh button available for immediate updates
|
||||||
- All checks performed server-side (no client-side CORS issues)
|
- All checks performed server-side (no client-side CORS issues)
|
||||||
|
|||||||
204
adhoc/neon-star/build_neon_star.py
Normal file
@@ -0,0 +1,204 @@
|
|||||||
|
"""
|
||||||
|
Regenerates the neon star logo SVGs without SVG filters.
|
||||||
|
|
||||||
|
iOS WebKit renders SVG filter output (feGaussianBlur) at a capped, low resolution,
|
||||||
|
which smears the original Inkscape logo's glow into a blocky blob at icon sizes.
|
||||||
|
This script reproduces that design with no filters at all:
|
||||||
|
|
||||||
|
- star + glow: the original blur chain, computed here with scipy on a symmetric
|
||||||
|
rebuild of the star and embedded as a WebP. A glow has no fine detail, so the
|
||||||
|
image scales without visible loss.
|
||||||
|
- tube halo: nested strokes whose opacities reproduce the original stack of blurs
|
||||||
|
around a 3-unit line, stepped finer as the halo fades so its edge never shows.
|
||||||
|
|
||||||
|
Outputs (overwritten in place):
|
||||||
|
src/static/icons/neonfinal3.svg header mark, transparent background
|
||||||
|
src/static/icons/withBackground.svg favicon, same mark on a dark disc
|
||||||
|
|
||||||
|
Usage (from the repo root):
|
||||||
|
pip install -r adhoc/neon-star/requirements.txt
|
||||||
|
python -m playwright install chromium
|
||||||
|
python adhoc/neon-star/build_neon_star.py
|
||||||
|
|
||||||
|
Chromium (via Playwright) is only used to rasterise the star path before blurring.
|
||||||
|
"""
|
||||||
|
import base64
|
||||||
|
import io
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import numpy as np
|
||||||
|
from PIL import Image
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
from scipy.ndimage import gaussian_filter
|
||||||
|
from scipy.stats import norm
|
||||||
|
|
||||||
|
ICONS = Path(__file__).resolve().parents[2] / "src" / "static" / "icons"
|
||||||
|
|
||||||
|
# Glow intensity: alpha a becomes 1-(1-a)^K, which brightens without clipping.
|
||||||
|
# 1.0 reproduces the original Inkscape design exactly.
|
||||||
|
K = 1.8
|
||||||
|
|
||||||
|
# --- geometry, all from the original Inkscape file --------------------------------
|
||||||
|
VIEWBOX = "0 0 216.75919 216.7592"
|
||||||
|
LAYER = "translate(-6.8045576,-27.991731)"
|
||||||
|
STAR_SCALE, STAR_TX, STAR_TY = 1.1617659, 37.635304, 39.028635
|
||||||
|
STAR_MATRIX = f"matrix({STAR_SCALE},0,0,{STAR_SCALE},{STAR_TX},{STAR_TY})"
|
||||||
|
STAR_C = (68.084846, 82.277237) # star centre, star-local units
|
||||||
|
TUBES_TRANSFORM = "translate(10.7751035,-33.343613)"
|
||||||
|
TUBE_PATHS = [
|
||||||
|
('translate(-6.0989631,2.1674006)', "M 142.67883,102.44998 H 73.832338 a 10.424106,10.424106 142.5 0 0 -10.068913,7.72615 l -6.688692,24.96254"),
|
||||||
|
('', "M 156.95436,91.412872 H 56.426396 A 10.527561,10.527561 142.5 0 0 46.257553,99.2157 l -11.945382,44.58078"),
|
||||||
|
('rotate(180,105.40367,165.67111)', "M 142.67883,102.44998 H 73.832338 a 10.424106,10.424106 142.5 0 0 -10.068913,7.72615 l -6.688692,24.96254"),
|
||||||
|
('rotate(180,103.61221,167.4007)', "M 156.95436,91.412872 H 56.426396 a 10.496229,10.496229 142.41749 0 0 -10.146361,7.808817 l -13.97988,52.781241"),
|
||||||
|
]
|
||||||
|
BACKGROUND = '<circle cx="115.18415" cy="136.37132" r="108.37959" fill="#1a1a1a"/>'
|
||||||
|
|
||||||
|
# --- star path ----------------------------------------------------------------------
|
||||||
|
# The original star's arms had two different edge curves (handles (9.11, 1.29) and
|
||||||
|
# (7.51, 0.72)), so the points leaned like a pinwheel. Every edge here uses their
|
||||||
|
# average, mirrored, so all four points and shoulders are identical.
|
||||||
|
TIP, ARM_W, SHOULDER = 50.0, 3.0, 15.0
|
||||||
|
HANDLE_ALONG, HANDLE_OUT = (9.1085 + 7.51146) / 2, (1.28778 + 0.71725) / 2
|
||||||
|
|
||||||
|
|
||||||
|
def star_path():
|
||||||
|
def rot(p, n):
|
||||||
|
x, y = p
|
||||||
|
for _ in range(n):
|
||||||
|
x, y = y, -x
|
||||||
|
return x, y
|
||||||
|
|
||||||
|
def pt(p):
|
||||||
|
return f"{p[0] + STAR_C[0]:.4f},{p[1] + STAR_C[1]:.4f}"
|
||||||
|
|
||||||
|
add = lambda p, q: (p[0] + q[0], p[1] + q[1])
|
||||||
|
sub = lambda p, q: (p[0] - q[0], p[1] - q[1])
|
||||||
|
# one quadrant: left tip -> left arm's lower shoulder -> bottom arm's left shoulder
|
||||||
|
tip, lower, bottom = (-TIP, 0), (-SHOULDER, ARM_W), (-ARM_W, SHOULDER)
|
||||||
|
h_lower, h_bottom = (HANDLE_ALONG, HANDLE_OUT), (-HANDLE_OUT, -HANDLE_ALONG)
|
||||||
|
segs = []
|
||||||
|
for n in range(4):
|
||||||
|
r = lambda p: rot(p, n)
|
||||||
|
segs.append(f"C {pt(r(tip))} {pt(r(sub(lower, h_lower)))} {pt(r(lower))}")
|
||||||
|
segs.append(f"C {pt(r(add(lower, h_lower)))} {pt(r(add(bottom, h_bottom)))} {pt(r(bottom))}")
|
||||||
|
segs.append(f"C {pt(r(sub(bottom, h_bottom)))} {pt(r((0, TIP)))} {pt(r((0, TIP)))}")
|
||||||
|
return f"M {pt((-TIP, 0))} " + " ".join(segs) + " Z"
|
||||||
|
|
||||||
|
|
||||||
|
# --- star + glow texture ------------------------------------------------------------
|
||||||
|
HALF = 100.0 # texture covers +-HALF layer units around the star
|
||||||
|
PX_PER_UNIT = 3.2
|
||||||
|
N = int(2 * HALF * PX_PER_UNIT)
|
||||||
|
CX = STAR_SCALE * STAR_C[0] + STAR_TX # star centre, layer units
|
||||||
|
CY = STAR_SCALE * STAR_C[1] + STAR_TY
|
||||||
|
|
||||||
|
|
||||||
|
def render_star(path_d):
|
||||||
|
"""Rasterise the star (original fill gradient + orange edge) as premultiplied RGBA."""
|
||||||
|
svg = f'''<svg xmlns="http://www.w3.org/2000/svg" width="{N}" height="{N}" viewBox="{CX - HALF} {CY - HALF} {2 * HALF} {2 * HALF}">
|
||||||
|
<defs><radialGradient id="f" cx="{STAR_C[0]}" cy="{STAR_C[1]}" r="51.629848" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffc919"/><stop offset="1" stop-color="#d2ae2d"/></radialGradient></defs>
|
||||||
|
<path transform="{STAR_MATRIX}" fill="url(#f)" stroke="#ff9c00" stroke-width="0.860759" stroke-linejoin="round" d="{path_d}"/></svg>'''
|
||||||
|
with sync_playwright() as p:
|
||||||
|
browser = p.chromium.launch()
|
||||||
|
page = browser.new_page(viewport={"width": N, "height": N})
|
||||||
|
page.set_content(f'<body style="margin:0">{svg}</body>')
|
||||||
|
png = page.screenshot(omit_background=True)
|
||||||
|
browser.close()
|
||||||
|
img = np.asarray(Image.open(io.BytesIO(png)).convert("RGBA")).astype(float) / 255
|
||||||
|
img[..., :3] *= img[..., 3:]
|
||||||
|
return img
|
||||||
|
|
||||||
|
|
||||||
|
def blur(img, sigma):
|
||||||
|
return np.stack([gaussian_filter(img[..., c], sigma * PX_PER_UNIT) for c in range(4)], -1)
|
||||||
|
|
||||||
|
|
||||||
|
def over(top, bottom):
|
||||||
|
return top + bottom * (1 - top[..., 3:])
|
||||||
|
|
||||||
|
|
||||||
|
def star_texture(path_d):
|
||||||
|
star = render_star(path_d)
|
||||||
|
core = blur(star, 1.368) # original filter10 (0.5) + filter5 (1.07), in layer units
|
||||||
|
mid = 0.7 * blur(core, 9.294) # original use6: opacity 0.7, filter6
|
||||||
|
wide = blur(mid, 10.041) # original use7: filter8 on top of use6
|
||||||
|
glow = over(mid, wide)
|
||||||
|
if K != 1.0:
|
||||||
|
a = glow[..., 3:]
|
||||||
|
glow = glow * np.divide(1 - (1 - a) ** K, a, out=np.zeros_like(a), where=a > 1e-6)
|
||||||
|
out = over(core, glow)
|
||||||
|
rgb = np.divide(out[..., :3], out[..., 3:], out=np.zeros_like(out[..., :3]), where=out[..., 3:] > 1e-6)
|
||||||
|
rgba = (np.concatenate([rgb, out[..., 3:]], -1).clip(0, 1) * 255 + 0.5).astype("uint8")
|
||||||
|
buf = io.BytesIO()
|
||||||
|
Image.fromarray(rgba).save(buf, "WEBP", quality=92, method=6)
|
||||||
|
return base64.b64encode(buf.getvalue()).decode()
|
||||||
|
|
||||||
|
|
||||||
|
# --- tube halo ----------------------------------------------------------------------
|
||||||
|
def tube_halo():
|
||||||
|
sigmas = [13.071903, 4.7058852, 1.1764713] # original filter30, filter29, filter9
|
||||||
|
|
||||||
|
def alpha(d):
|
||||||
|
"""Original halo alpha at distance d from the centre of a 3-unit line."""
|
||||||
|
a = 0.75 * (1 - np.prod([1 - (norm.cdf((d + 1.5) / s) - norm.cdf((d - 1.5) / s)) for s in sigmas]))
|
||||||
|
return 1 - (1 - a) ** K
|
||||||
|
|
||||||
|
def radius_at(v, lo=1.5, hi=100.0):
|
||||||
|
for _ in range(60):
|
||||||
|
m = (lo + hi) / 2
|
||||||
|
lo, hi = (m, hi) if alpha(m) > v else (lo, m)
|
||||||
|
return lo
|
||||||
|
|
||||||
|
# Alpha levels per band: ~0.025 steps where bright, ~0.008 in the tail. Every step
|
||||||
|
# must stay large enough to survive 8-bit compositing, or the halo goes missing.
|
||||||
|
a0 = alpha(1.5)
|
||||||
|
levels = list(np.linspace(a0, 0.08, max(6, int(np.ceil((a0 - 0.08) / 0.025))), endpoint=False))
|
||||||
|
levels += list(np.linspace(0.08, 0.008, 10))
|
||||||
|
bands = [(a + b) / 2 for a, b in zip(levels, levels[1:] + [0.0])] + [0.0]
|
||||||
|
uses = []
|
||||||
|
for k in range(len(bands) - 1):
|
||||||
|
r = radius_at((bands[k] + bands[k + 1]) / 2)
|
||||||
|
o = 1 - (1 - bands[k]) / (1 - bands[k + 1])
|
||||||
|
uses.append(f'<use xlink:href="#tubePaths" stroke-width="{2 * r:.3f}" stroke-opacity="{o:.4f}"/>')
|
||||||
|
return "".join(reversed(uses))
|
||||||
|
|
||||||
|
|
||||||
|
# --- assembly -----------------------------------------------------------------------
|
||||||
|
def build_svg(texture_b64, halo, background=""):
|
||||||
|
tubes = "\n".join(
|
||||||
|
' <path' + (f' transform="{t}"' if t else '') + f' d="{d}"/>' for t, d in TUBE_PATHS)
|
||||||
|
return f'''<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="{VIEWBOX}" width="64" height="64">
|
||||||
|
<!--
|
||||||
|
Generated by adhoc/neon-star/build_neon_star.py; edit that, not this file.
|
||||||
|
No SVG filters: iOS WebKit renders filter output at a capped low resolution,
|
||||||
|
which smears the glow at icon sizes. The star and its glow are the original blur
|
||||||
|
chain computed offline and embedded as a WebP; the tube halo is nested strokes.
|
||||||
|
-->
|
||||||
|
<defs>
|
||||||
|
<g id="tubePaths">
|
||||||
|
{tubes}
|
||||||
|
</g>
|
||||||
|
</defs>
|
||||||
|
<g transform="{LAYER}">
|
||||||
|
{background}
|
||||||
|
<image x="{CX - HALF:.3f}" y="{CY - HALF:.3f}" width="{2 * HALF}" height="{2 * HALF}" preserveAspectRatio="none" xlink:href="data:image/webp;base64,{texture_b64}"/>
|
||||||
|
<g transform="{TUBES_TRANSFORM}" fill="none" stroke="#ededed" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
{halo}
|
||||||
|
<use xlink:href="#tubePaths" stroke-width="3"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
texture = star_texture(star_path())
|
||||||
|
halo = tube_halo()
|
||||||
|
for name, bg in [("neonfinal3.svg", ""), ("withBackground.svg", BACKGROUND)]:
|
||||||
|
out = ICONS / name
|
||||||
|
out.write_text(build_svg(texture, halo, bg), encoding="utf-8")
|
||||||
|
print(f"wrote {out} ({out.stat().st_size} bytes)")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
4
adhoc/neon-star/requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
pillow
|
||||||
|
playwright
|
||||||
51
src/app.py
@@ -1,15 +1,21 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
from flask_minify import Minify
|
from flask_minify import Minify
|
||||||
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
import werkzeug.exceptions as HTTPerror
|
import werkzeug.exceptions as HTTPerror
|
||||||
|
|
||||||
import config # noqa: F401 — side-effect: loads dev env vars
|
import config # noqa: F401 — side-effect: loads dev env vars
|
||||||
from monitor import monitor, SERVICES
|
from monitor import monitor, SERVICES
|
||||||
|
|
||||||
app = flask.Flask(__name__)
|
app = flask.Flask(__name__)
|
||||||
|
# Trust the scheme/host Cloudflare sets, so redirects Werkzeug builds itself
|
||||||
|
# (e.g. the trailing-slash redirect on /api/goto) use https instead of the
|
||||||
|
# plaintext scheme it sees on its own socket.
|
||||||
|
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1)
|
||||||
|
|
||||||
# ── Static file fingerprinting ────────────────────────────────────────
|
# ── Static file fingerprinting ────────────────────────────────────────
|
||||||
|
|
||||||
@@ -17,20 +23,22 @@ static_file_hashes = {}
|
|||||||
for dirpath, _, filenames in os.walk(app.static_folder):
|
for dirpath, _, filenames in os.walk(app.static_folder):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
filepath = os.path.join(dirpath, filename)
|
filepath = os.path.join(dirpath, filename)
|
||||||
relative = os.path.relpath(filepath, app.static_folder)
|
relative = os.path.relpath(filepath, app.static_folder).replace(os.sep, '/')
|
||||||
with open(filepath, 'rb') as f:
|
with open(filepath, 'rb') as f:
|
||||||
static_file_hashes[relative] = hashlib.md5(f.read()).hexdigest()[:8]
|
static_file_hashes[relative] = hashlib.md5(f.read()).hexdigest()[:8]
|
||||||
|
|
||||||
|
|
||||||
@app.context_processor
|
def versioned_url_for(endpoint, **values):
|
||||||
def override_url_for():
|
|
||||||
def versioned_url_for(endpoint, **values):
|
|
||||||
if endpoint == 'static':
|
if endpoint == 'static':
|
||||||
filename = values.get('filename')
|
filename = values.get('filename')
|
||||||
if filename and filename in static_file_hashes:
|
if filename and filename in static_file_hashes:
|
||||||
values['v'] = static_file_hashes[filename]
|
values['v'] = static_file_hashes[filename]
|
||||||
return flask.url_for(endpoint, **values)
|
return flask.url_for(endpoint, **values)
|
||||||
return dict(url_for=versioned_url_for)
|
|
||||||
|
|
||||||
|
# A global rather than a context processor, so macros imported without
|
||||||
|
# context (partials/*.html) get fingerprinted URLs too.
|
||||||
|
app.jinja_env.globals['url_for'] = versioned_url_for
|
||||||
|
|
||||||
|
|
||||||
# ── Security and caching headers ──────────────────────────────────────
|
# ── Security and caching headers ──────────────────────────────────────
|
||||||
@@ -42,6 +50,9 @@ def add_headers(response):
|
|||||||
response.headers['X-XSS-Protection'] = '1; mode=block'
|
response.headers['X-XSS-Protection'] = '1; mode=block'
|
||||||
response.headers['Referrer-Policy'] = 'strict-origin-when-cross-origin'
|
response.headers['Referrer-Policy'] = 'strict-origin-when-cross-origin'
|
||||||
|
|
||||||
|
if flask.request.is_secure:
|
||||||
|
response.headers['Strict-Transport-Security'] = 'max-age=31536000'
|
||||||
|
|
||||||
if flask.request.path.startswith('/static/'):
|
if flask.request.path.startswith('/static/'):
|
||||||
response.headers['Cache-Control'] = 'public, max-age=31536000, immutable'
|
response.headers['Cache-Control'] = 'public, max-age=31536000, immutable'
|
||||||
elif flask.request.path in ['/sitemap.xml', '/robots.txt']:
|
elif flask.request.path in ['/sitemap.xml', '/robots.txt']:
|
||||||
@@ -55,7 +66,7 @@ def add_headers(response):
|
|||||||
# ── Load page data ────────────────────────────────────────────────────
|
# ── Load page data ────────────────────────────────────────────────────
|
||||||
|
|
||||||
def load_json(path):
|
def load_json(path):
|
||||||
with open(path, "r") as f:
|
with open(path, "r", encoding="utf-8") as f:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
|
|
||||||
|
|
||||||
@@ -63,13 +74,25 @@ projects = load_json("./static/json/projects.json")
|
|||||||
books = load_json("./static/json/books.json")
|
books = load_json("./static/json/books.json")
|
||||||
skills = load_json("./static/json/skills.json")
|
skills = load_json("./static/json/skills.json")
|
||||||
pages = load_json("./static/json/pages.json")
|
pages = load_json("./static/json/pages.json")
|
||||||
|
features = load_json("./static/json/features.json")
|
||||||
|
|
||||||
pages['projects']['skillList'] = skills
|
pages['about']['skillList'] = skills
|
||||||
pages['projects']['projects'] = projects
|
pages['projects']['projects'] = projects
|
||||||
|
pages['projects']['features'] = features
|
||||||
|
pages['home']['features'] = features
|
||||||
pages['home']['books'] = books
|
pages['home']['books'] = books
|
||||||
pages['books']['books'] = books
|
pages['books']['books'] = books
|
||||||
pages['status']['services'] = SERVICES
|
pages['status']['services'] = SERVICES
|
||||||
|
|
||||||
|
for _name, _page in pages.items():
|
||||||
|
_page['id'] = _name
|
||||||
|
|
||||||
|
|
||||||
|
@app.template_filter('slug')
|
||||||
|
def slug(value):
|
||||||
|
value = re.sub(r'[^a-z0-9]+', '-', str(value).lower())
|
||||||
|
return value.strip('-')
|
||||||
|
|
||||||
|
|
||||||
# ── Error rendering ──────────────────────────────────────────────────
|
# ── Error rendering ──────────────────────────────────────────────────
|
||||||
|
|
||||||
@@ -146,6 +169,18 @@ def resume():
|
|||||||
return flask.send_file("./static/Resume_Simonson_Andrew.pdf")
|
return flask.send_file("./static/Resume_Simonson_Andrew.pdf")
|
||||||
|
|
||||||
|
|
||||||
|
@app.route("/capstone.pdf")
|
||||||
|
def capstone_proposal():
|
||||||
|
return flask.send_file("./static/papers/capstone-proposal.pdf")
|
||||||
|
|
||||||
|
|
||||||
|
# Self-contained interactive write-ups, generated in other repos and copied in.
|
||||||
|
# Served as-is: minifying their inline worker code is not worth the risk.
|
||||||
|
@app.route("/gold")
|
||||||
|
def gold_demo():
|
||||||
|
return flask.send_file("./static/demos/why-gold-is-gold.html")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/sitemap.xml")
|
@app.route("/sitemap.xml")
|
||||||
@app.route("/robots.txt")
|
@app.route("/robots.txt")
|
||||||
def static_from_root():
|
def static_from_root():
|
||||||
@@ -157,5 +192,5 @@ def static_from_root():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=False)
|
app.run(debug=False)
|
||||||
else:
|
else:
|
||||||
Minify(app=app, html=True, js=True, cssless=True)
|
Minify(app=app, html=True, js=True, cssless=True, bypass=['gold_demo'])
|
||||||
monitor.start_monitoring()
|
monitor.start_monitoring()
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ SERVICES = [
|
|||||||
CHECK_INTERVAL = 60 # seconds between checks
|
CHECK_INTERVAL = 60 # seconds between checks
|
||||||
RETENTION_DAYS = 90 # how long to keep records
|
RETENTION_DAYS = 90 # how long to keep records
|
||||||
CLEANUP_INTERVAL = 86400 # seconds between purge runs
|
CLEANUP_INTERVAL = 86400 # seconds between purge runs
|
||||||
|
STALE_AFTER = CHECK_INTERVAL * 5 # flag cached data as stale if no check has landed in this long
|
||||||
|
|
||||||
DATABASE_URL = os.environ.get('DATABASE_URL')
|
DATABASE_URL = os.environ.get('DATABASE_URL')
|
||||||
|
|
||||||
@@ -51,6 +52,26 @@ class ServiceMonitor:
|
|||||||
for svc in SERVICES
|
for svc in SERVICES
|
||||||
}
|
}
|
||||||
self._last_check = None
|
self._last_check = None
|
||||||
|
# Cheap placeholder (no DB access) until the first check_all_services()
|
||||||
|
# run replaces it with the real, uptime-backed summary.
|
||||||
|
self._cached_summary = {
|
||||||
|
'last_check': None,
|
||||||
|
'next_check': None,
|
||||||
|
'services': [
|
||||||
|
{
|
||||||
|
'id': service_id,
|
||||||
|
'name': cached['name'],
|
||||||
|
'url': cached['url'],
|
||||||
|
'status': cached['status'],
|
||||||
|
'response_time': cached['response_time'],
|
||||||
|
'status_code': cached['status_code'],
|
||||||
|
'last_online': cached['last_online'],
|
||||||
|
'uptime': {'24h': None, '7d': None, '30d': None, 'all_time': None},
|
||||||
|
'total_checks': 0,
|
||||||
|
}
|
||||||
|
for service_id, cached in self._current.items()
|
||||||
|
],
|
||||||
|
}
|
||||||
self._ensure_schema()
|
self._ensure_schema()
|
||||||
|
|
||||||
# ── Database helpers ──────────────────────────────────────────
|
# ── Database helpers ──────────────────────────────────────────
|
||||||
@@ -206,6 +227,7 @@ class ServiceMonitor:
|
|||||||
if result['status'] == 'online':
|
if result['status'] == 'online':
|
||||||
cached['last_online'] = result['timestamp']
|
cached['last_online'] = result['timestamp']
|
||||||
self._last_check = datetime.now().isoformat()
|
self._last_check = datetime.now().isoformat()
|
||||||
|
self._cached_summary = self._build_summary_locked()
|
||||||
|
|
||||||
# ── Uptime calculations ───────────────────────────────────────
|
# ── Uptime calculations ───────────────────────────────────────
|
||||||
|
|
||||||
@@ -271,9 +293,13 @@ class ServiceMonitor:
|
|||||||
|
|
||||||
# ── Status summary ────────────────────────────────────────────
|
# ── Status summary ────────────────────────────────────────────
|
||||||
|
|
||||||
def get_status_summary(self):
|
def _build_summary_locked(self):
|
||||||
"""Build a JSON-serializable status summary with uptime statistics."""
|
"""Build a JSON-serializable status summary with uptime statistics.
|
||||||
with self.lock:
|
|
||||||
|
Hits the database (multiple queries per service) -- only call this
|
||||||
|
from within check_all_services() while self.lock is held, so it runs
|
||||||
|
once per check cycle rather than once per /api/status request.
|
||||||
|
"""
|
||||||
summary = {
|
summary = {
|
||||||
'last_check': self._last_check,
|
'last_check': self._last_check,
|
||||||
'next_check': None,
|
'next_check': None,
|
||||||
@@ -304,6 +330,24 @@ class ServiceMonitor:
|
|||||||
|
|
||||||
return summary
|
return summary
|
||||||
|
|
||||||
|
def get_status_summary(self):
|
||||||
|
"""Return the cached status summary, refreshed once per check cycle
|
||||||
|
(see check_all_services), so this never itself touches the database.
|
||||||
|
|
||||||
|
Adds a `stale` flag computed against wall-clock time, since a summary
|
||||||
|
that stops updating (e.g. the monitor loop hit a persistent error) would
|
||||||
|
otherwise keep reporting its last-known last_check as if it were fresh.
|
||||||
|
"""
|
||||||
|
with self.lock:
|
||||||
|
summary = dict(self._cached_summary)
|
||||||
|
|
||||||
|
stale = False
|
||||||
|
if summary.get('last_check'):
|
||||||
|
age = (datetime.now() - datetime.fromisoformat(summary['last_check'])).total_seconds()
|
||||||
|
stale = age > STALE_AFTER
|
||||||
|
summary['stale'] = stale
|
||||||
|
return summary
|
||||||
|
|
||||||
# ── Background loop ───────────────────────────────────────────
|
# ── Background loop ───────────────────────────────────────────
|
||||||
|
|
||||||
def _purge_old_records(self):
|
def _purge_old_records(self):
|
||||||
@@ -321,21 +365,37 @@ class ServiceMonitor:
|
|||||||
finally:
|
finally:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
||||||
|
def _run_check_cycle(self):
|
||||||
|
"""Run one check_all_services() call, catching any exception so a
|
||||||
|
transient failure (DB hiccup, network blip) can't kill the daemon
|
||||||
|
thread -- without this, the thread dies silently and /api/status
|
||||||
|
keeps serving an ever-staler cached summary with nothing to say so."""
|
||||||
|
try:
|
||||||
|
self.check_all_services()
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[monitor] check cycle failed, will retry next interval: {e}")
|
||||||
|
|
||||||
|
def _run_cleanup(self):
|
||||||
|
try:
|
||||||
|
self._purge_old_records()
|
||||||
|
except Exception as e:
|
||||||
|
print(f"[monitor] cleanup failed, will retry next interval: {e}")
|
||||||
|
|
||||||
def start_monitoring(self):
|
def start_monitoring(self):
|
||||||
"""Start the background daemon thread for periodic checks and cleanup."""
|
"""Start the background daemon thread for periodic checks and cleanup."""
|
||||||
def monitor_loop():
|
def monitor_loop():
|
||||||
self.check_all_services()
|
self._run_check_cycle()
|
||||||
self._purge_old_records()
|
self._run_cleanup()
|
||||||
|
|
||||||
checks_since_cleanup = 0
|
checks_since_cleanup = 0
|
||||||
checks_per_cleanup = CLEANUP_INTERVAL // CHECK_INTERVAL
|
checks_per_cleanup = CLEANUP_INTERVAL // CHECK_INTERVAL
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
time.sleep(CHECK_INTERVAL)
|
time.sleep(CHECK_INTERVAL)
|
||||||
self.check_all_services()
|
self._run_check_cycle()
|
||||||
checks_since_cleanup += 1
|
checks_since_cleanup += 1
|
||||||
if checks_since_cleanup >= checks_per_cleanup:
|
if checks_since_cleanup >= checks_per_cleanup:
|
||||||
self._purge_old_records()
|
self._run_cleanup()
|
||||||
checks_since_cleanup = 0
|
checks_since_cleanup = 0
|
||||||
|
|
||||||
thread = Thread(target=monitor_loop, daemon=True)
|
thread = Thread(target=monitor_loop, daemon=True)
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
blinker==1.9.0
|
blinker==1.9.0
|
||||||
certifi==2026.5.20
|
certifi==2026.10.19
|
||||||
charset-normalizer==3.4.7
|
charset-normalizer==3.4.7
|
||||||
click==8.4.1
|
click==8.4.1
|
||||||
Flask==3.1.3
|
Flask==3.1.3
|
||||||
Flask-Minify==0.50
|
Flask-Minify==0.50
|
||||||
gunicorn==26.0.0
|
gunicorn==26.0.0
|
||||||
htmlminf==0.1.13
|
|
||||||
idna==3.16
|
idna==3.16
|
||||||
itsdangerous==2.2.0
|
itsdangerous==2.2.0
|
||||||
Jinja2==3.1.6
|
Jinja2==3.1.6
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 400 400" xml:space="preserve"><style>.st2{fill:#bcbbb7}</style><path fill="#e7e5e3" d="M0 0h400v400H0z"/><path d="M275.8 269.6c-52.8-40.2-46.9-75.2-47.6-89.5h32.2c3.8-6.6 5.7-14 5.7-21.5l-36.5-24c22.6-16.3 27.8-47.9 11.5-70.5-5.6-7.7-13.2-13.8-22.1-17.3-5.9-2.4-47.2 133.4-47.2 133.4-.1 3.1-.2 7.2-.2 12.1 0 13.5 33.1 11.4 31.4 23.4-2.6 17.8-3.2 31.3-18.5 74.1-10.4 28.9-79.4 0-84.3 14.2-3.6 10.6-5.3 21.7-5.2 32.8 0 1.3 2.7 20.4 105.1 20.4s105.1-19.1 105.1-20.4c-.1-29.2-10.9-53.1-29.4-67.2z" fill="#898785"/><path class="st2" d="M198.1 287.6c5.7-25.9 10.7-53.5 13.8-70 3.8-20.6-27.5-24.3-40.3-26.2-.6 17.6-5.5 46.2-47.4 78.2-11.3 8.6-19.7 20.9-24.6 35.8 11.3 5.5 26.4 8.8 49.7 8.8 14.9 0 42.6 1.8 48.8-26.6zM220.1 180.1c5-12.9 4.3-21.5 4.3-21.5l-20.7-24c22-9.4 35.2-27 35.2-47.5 0-15.8-7.4-30.6-19.9-40.2-25.8-10.5-55.3 1.9-65.9 27.7-8.8 21.6-1.7 46.4 17.2 60l-36.5 24c0 7.6 1.9 15 5.7 21.5h80.6z"/><path d="M197.1 53.3c29.1 4.5-13.4 38.4-26.9 36.8-12.7-1.6-.4-41 26.9-36.8z" fill="#dad7d5"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
2680
src/static/demos/why-gold-is-gold.html
Normal file
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 33 KiB |
@@ -1,48 +0,0 @@
|
|||||||
async function addChessEmbed(username) {
|
|
||||||
let user, stats;
|
|
||||||
try {
|
|
||||||
user = await fetch(`https://api.chess.com/pub/player/${username}`);
|
|
||||||
stats = await fetch(`https://api.chess.com/pub/player/${username}/stats`);
|
|
||||||
} catch (e) {
|
|
||||||
setChess({ cName: "Chess.com request failed" });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (user.status === 200) {
|
|
||||||
user = await user.json();
|
|
||||||
stats = await stats.json();
|
|
||||||
setChess({
|
|
||||||
cName: user["username"],
|
|
||||||
pic: user.avatar,
|
|
||||||
ratings: {
|
|
||||||
rapid: stats.chess_rapid.last.rating,
|
|
||||||
blitz: stats.chess_blitz.last.rating,
|
|
||||||
bullet: stats.chess_bullet.last.rating,
|
|
||||||
tactics: stats.tactics.highest.rating,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
} else if (user.status === 403) {
|
|
||||||
setChess({ cName: "Chess.com request failed" });
|
|
||||||
} else {
|
|
||||||
setChess({ cName: "User Not Found" });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function setChess({ cName = null, pic = null, ratings = null }) {
|
|
||||||
try {
|
|
||||||
if (cName) {
|
|
||||||
document.querySelector(".chessName").textContent = cName;
|
|
||||||
}
|
|
||||||
if (pic) {
|
|
||||||
document.querySelector(".chessImage").src = pic;
|
|
||||||
}
|
|
||||||
if (ratings) {
|
|
||||||
document.querySelector(".chessRapid .chessStat").textContent = ratings.rapid;
|
|
||||||
document.querySelector(".chessBlitz .chessStat").textContent = ratings.blitz;
|
|
||||||
document.querySelector(".chessBullet .chessStat").textContent = ratings.bullet;
|
|
||||||
document.querySelector(".chessPuzzles .chessStat").textContent = ratings.tactics;
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
console.warn("Chess DOM elements not available (navigated away during fetch)");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,104 +1,521 @@
|
|||||||
const balls = [];
|
/**
|
||||||
const density = 0.00005;
|
* Ambient background: "Contour Field"
|
||||||
let screenWidth = window.innerWidth + 10;
|
*
|
||||||
let screenHeight = window.innerHeight + 10;
|
* Thin nested contour lines trace level curves of one continuous,
|
||||||
|
* slowly-drifting 2D value-noise surface, marched with a classic
|
||||||
|
* marching-squares pass on a coarse grid. Every line on screen is a
|
||||||
|
* cross-section of the SAME field at a fixed elevation, so neighboring
|
||||||
|
* contours are geometrically correlated (they nest, they never cross,
|
||||||
|
* they bulge and pinch together) -- it reads as one continuous terrain
|
||||||
|
* rather than a scatter of independent strokes. Nods to the site
|
||||||
|
* owner's geospatial / data-surface work (watershed + elevation
|
||||||
|
* surfaces) without being literal about it.
|
||||||
|
*/
|
||||||
|
(function () {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
const MAX_DIST = 150;
|
var container = document.getElementById("bg");
|
||||||
const MAX_DIST_SQUARED = MAX_DIST * MAX_DIST;
|
if (!container) return;
|
||||||
|
|
||||||
class Ball {
|
var canvas = document.createElement("canvas");
|
||||||
constructor(x, y, size, speed, angle) {
|
canvas.setAttribute("aria-hidden", "true");
|
||||||
this.x = x;
|
container.appendChild(canvas);
|
||||||
this.y = y;
|
var ctx = canvas.getContext("2d");
|
||||||
this.size = size;
|
if (!ctx) return;
|
||||||
this.speed = speed;
|
|
||||||
this.angle = angle;
|
var reduceMotion =
|
||||||
this.calcChange();
|
window.matchMedia &&
|
||||||
|
window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// Value noise (hash lattice + smooth interpolation), no dependency.
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
var PERM_SIZE = 256;
|
||||||
|
var PERM_MASK = PERM_SIZE - 1;
|
||||||
|
var perm = new Uint8Array(PERM_SIZE);
|
||||||
|
(function buildPermutation() {
|
||||||
|
var table = new Uint8Array(PERM_SIZE);
|
||||||
|
for (var i = 0; i < PERM_SIZE; i++) table[i] = i;
|
||||||
|
for (var j = PERM_SIZE - 1; j > 0; j--) {
|
||||||
|
var k = (Math.random() * (j + 1)) | 0;
|
||||||
|
var tmp = table[j];
|
||||||
|
table[j] = table[k];
|
||||||
|
table[k] = tmp;
|
||||||
|
}
|
||||||
|
perm.set(table);
|
||||||
|
})();
|
||||||
|
|
||||||
|
function lattice(ix, iy) {
|
||||||
|
var a = perm[ix & PERM_MASK];
|
||||||
|
return perm[(a + iy) & PERM_MASK] / 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
calcChange() {
|
function fade(t) {
|
||||||
const radians = (this.angle * Math.PI) / 180
|
return t * t * t * (t * (t * 6 - 15) + 10);
|
||||||
this.xSpeed = this.speed * Math.sin(radians);
|
|
||||||
this.ySpeed = this.speed * Math.cos(radians);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
function noise2D(x, y) {
|
||||||
this.x += this.xSpeed;
|
var xi = Math.floor(x);
|
||||||
this.y += this.ySpeed;
|
var yi = Math.floor(y);
|
||||||
if (this.x > screenWidth) {
|
var xf = x - xi;
|
||||||
this.x -= screenWidth;
|
var yf = y - yi;
|
||||||
} else if (this.x < 0) {
|
var u = fade(xf);
|
||||||
this.x += screenWidth;
|
var v = fade(yf);
|
||||||
}
|
var n00 = lattice(xi, yi);
|
||||||
if (this.y > screenHeight) {
|
var n10 = lattice(xi + 1, yi);
|
||||||
this.y -= screenHeight;
|
var n01 = lattice(xi, yi + 1);
|
||||||
} else if (this.y < 0) {
|
var n11 = lattice(xi + 1, yi + 1);
|
||||||
this.y += screenHeight;
|
var nx0 = n00 + (n10 - n00) * u;
|
||||||
}
|
var nx1 = n01 + (n11 - n01) * u;
|
||||||
this.draw();
|
return nx0 + (nx1 - nx0) * v;
|
||||||
}
|
}
|
||||||
|
|
||||||
draw() {
|
// Two-octave fractal sum, warped slightly so the field folds and
|
||||||
stroke(200, 100);
|
// breathes rather than just sliding sideways.
|
||||||
strokeWeight(2);
|
var FREQ_1 = 1 / 460; // px per full noise cycle, octave 1
|
||||||
fill(0);
|
var FREQ_2 = FREQ_1 * 2.3; // octave 2
|
||||||
ellipse(this.x, this.y, this.size, this.size);
|
function fieldValue(x, y, driftX, driftY, warpX, warpY) {
|
||||||
}
|
var n1 = noise2D((x + driftX) * FREQ_1, (y + driftY) * FREQ_1);
|
||||||
}
|
var n2 = noise2D(
|
||||||
|
(x + driftX + warpX) * FREQ_2,
|
||||||
function setup() {
|
(y + driftY + warpY) * FREQ_2
|
||||||
frameRate(15);
|
);
|
||||||
const pixels = screenHeight * screenWidth;
|
var fbm = n1 * 0.68 + n2 * 0.32; // ~[0,1]
|
||||||
createCanvas(screenWidth, screenHeight);
|
return fbm * 2 - 1; // ~[-1,1], centered
|
||||||
for (let i = 0; i < pixels * density; i++) {
|
|
||||||
balls.push(new Ball(
|
|
||||||
random(screenWidth),
|
|
||||||
random(screenHeight),
|
|
||||||
random(6) + 3,
|
|
||||||
Math.exp(random(4) + 3) / 1000 + 1,
|
|
||||||
random(360)
|
|
||||||
));
|
|
||||||
}
|
|
||||||
stroke(255);
|
|
||||||
}
|
|
||||||
|
|
||||||
function windowResized() {
|
|
||||||
screenWidth = window.innerWidth + 10;
|
|
||||||
screenHeight = window.innerHeight + 10;
|
|
||||||
resizeCanvas(screenWidth, screenHeight);
|
|
||||||
}
|
|
||||||
|
|
||||||
function draw() {
|
|
||||||
background(24);
|
|
||||||
|
|
||||||
for (let i = 0; i < balls.length; i++) {
|
|
||||||
balls[i].update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw connection lines with additive blending so overlaps brighten
|
// ---------------------------------------------------------------
|
||||||
blendMode(ADD);
|
// Marching squares
|
||||||
strokeWeight(2);
|
// Corner bit order: v0=top-left, v1=top-right, v2=bottom-right, v3=bottom-left
|
||||||
|
// Edge order: 0=top, 1=right, 2=bottom, 3=left
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
var CASE_EDGES = [
|
||||||
|
null, // 0
|
||||||
|
[0, 3], // 1
|
||||||
|
[0, 1], // 2
|
||||||
|
[1, 3], // 3
|
||||||
|
[1, 2], // 4
|
||||||
|
[0, 3, 1, 2], // 5 (saddle, two segments)
|
||||||
|
[0, 2], // 6
|
||||||
|
[2, 3], // 7
|
||||||
|
[2, 3], // 8
|
||||||
|
[0, 2], // 9
|
||||||
|
[0, 1, 2, 3], // 10 (saddle, two segments)
|
||||||
|
[1, 2], // 11
|
||||||
|
[1, 3], // 12
|
||||||
|
[0, 1], // 13
|
||||||
|
[0, 3], // 14
|
||||||
|
null, // 15
|
||||||
|
];
|
||||||
|
|
||||||
for (let i = 0; i < balls.length - 1; i++) {
|
function edgePoint(edge, x, y, cell, v0, v1, v2, v3, threshold) {
|
||||||
const a = balls[i];
|
var t;
|
||||||
for (let j = i + 1; j < balls.length; j++) {
|
switch (edge) {
|
||||||
const b = balls[j];
|
case 0: // top: v0 -> v1
|
||||||
const dx = b.x - a.x;
|
t = (threshold - v0) / (v1 - v0 || 1e-6);
|
||||||
const dy = b.y - a.y;
|
return [x + cell * t, y];
|
||||||
const distSquared = dx * dx + dy * dy;
|
case 1: // right: v1 -> v2
|
||||||
|
t = (threshold - v1) / (v2 - v1 || 1e-6);
|
||||||
if (distSquared < MAX_DIST_SQUARED) {
|
return [x + cell, y + cell * t];
|
||||||
const distance = Math.sqrt(distSquared);
|
case 2: // bottom: v3 -> v2
|
||||||
if (distance < 75) {
|
t = (threshold - v3) / (v2 - v3 || 1e-6);
|
||||||
stroke(255, 85);
|
return [x + cell * t, y + cell];
|
||||||
} else {
|
case 3: // left: v0 -> v3
|
||||||
const chance = 0.3 ** (((random(0.2) + 0.8) * distance) / MAX_DIST);
|
t = (threshold - v0) / (v3 - v0 || 1e-6);
|
||||||
stroke(255, chance < 0.5 ? 40 : 75);
|
return [x, y + cell * t];
|
||||||
}
|
}
|
||||||
line(a.x, a.y, b.x, b.y);
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// Layout state
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
var dpr = Math.max(1, Math.min(window.devicePixelRatio || 1, 2));
|
||||||
|
var width = 0;
|
||||||
|
var height = 0;
|
||||||
|
var cellSize = 28;
|
||||||
|
var cols = 0;
|
||||||
|
var rows = 0;
|
||||||
|
var grid = null; // Float32Array of (cols+1)*(rows+1)
|
||||||
|
|
||||||
|
var LEVELS = [-0.5, -0.333, -0.167, 0, 0.167, 0.333, 0.5];
|
||||||
|
var LOW_COLOR = [233, 230, 223]; // --ink, lowest elevation band
|
||||||
|
// A punchier red than --accent-bright (217,100,92) -- the .site overlay's
|
||||||
|
// ~90% dilution desaturates whatever reaches it, so the top of the ramp
|
||||||
|
// needs to start more saturated than it should ever look at full opacity.
|
||||||
|
var HIGH_COLOR = [235, 70, 55];
|
||||||
|
|
||||||
|
// Two independent master levers: turn either down to quiet that part of
|
||||||
|
// the effect without touching the per-level tuning below. LINE_INTENSITY
|
||||||
|
// scales the contour strokes; FILL_INTENSITY scales the hypsometric wash
|
||||||
|
// between them (the fill covers far more area, so it wants a much lower
|
||||||
|
// resting value or the whole page tints).
|
||||||
|
var LINE_INTENSITY = 1;
|
||||||
|
var FILL_INTENSITY = 0.35;
|
||||||
|
// Fill is parked off for now (color/palette still being worked out) --
|
||||||
|
// the lines are the finished part. Flip this back on to resume tuning
|
||||||
|
// the fill without re-deriving any of the code below.
|
||||||
|
var FILL_ENABLED = false;
|
||||||
|
|
||||||
|
// Shared ink -> accent ramp, used by both the contour lines and the fill
|
||||||
|
// bands so they read as one coherent palette. `rank` is the band's
|
||||||
|
// position (0 = lowest), `count` the total number of bands on that scale.
|
||||||
|
// sqrt-biases toward color early, since a flat ramp only ever colors the
|
||||||
|
// single highest band.
|
||||||
|
function levelColor(rank, count) {
|
||||||
|
var t = Math.sqrt(rank / (count - 1));
|
||||||
|
return [
|
||||||
|
Math.round(LOW_COLOR[0] + (HIGH_COLOR[0] - LOW_COLOR[0]) * t),
|
||||||
|
Math.round(LOW_COLOR[1] + (HIGH_COLOR[1] - LOW_COLOR[1]) * t),
|
||||||
|
Math.round(LOW_COLOR[2] + (HIGH_COLOR[2] - LOW_COLOR[2]) * t),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// How many of LEVELS a value clears -- 0 (below every threshold) through
|
||||||
|
// LEVELS.length (above all of them). LEVELS is sorted ascending.
|
||||||
|
function bandIndex(v) {
|
||||||
|
var idx = 0;
|
||||||
|
for (var i = 0; i < LEVELS.length; i++) {
|
||||||
|
if (v >= LEVELS[i]) idx = i + 1;
|
||||||
|
}
|
||||||
|
return idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
var FILL_BANDS = LEVELS.length + 1;
|
||||||
|
var bandColors = null; // precomputed once, reused every frame
|
||||||
|
function buildBandColors() {
|
||||||
|
bandColors = [];
|
||||||
|
for (var i = 0; i < FILL_BANDS; i++) bandColors.push(levelColor(i, FILL_BANDS));
|
||||||
|
}
|
||||||
|
buildBandColors();
|
||||||
|
|
||||||
|
// Samples per grid cell edge for the fill raster. Higher tracks the
|
||||||
|
// contour lines more precisely (at some per-frame cost); 4 keeps the
|
||||||
|
// boundary error under a few px, invisible once bilinear-upscaled.
|
||||||
|
var FILL_SUBDIV = 3;
|
||||||
|
var fillCanvas = document.createElement("canvas");
|
||||||
|
var fillCtx = fillCanvas.getContext("2d");
|
||||||
|
var fillImage = null;
|
||||||
|
var fillCols = 0;
|
||||||
|
var fillRows = 0;
|
||||||
|
|
||||||
|
function resize() {
|
||||||
|
width = window.innerWidth;
|
||||||
|
height = window.innerHeight;
|
||||||
|
canvas.width = Math.round(width * dpr);
|
||||||
|
canvas.height = Math.round(height * dpr);
|
||||||
|
canvas.style.width = width + "px";
|
||||||
|
canvas.style.height = height + "px";
|
||||||
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||||
|
|
||||||
|
// Denser than the original line-only version needed: chaining +
|
||||||
|
// quadratic smoothing can only curve as finely as the underlying
|
||||||
|
// vertices allow, and at ~22px spacing sharp field bends still showed
|
||||||
|
// as visible facets (the actual cause of the "depth"/faceted look --
|
||||||
|
// confirmed by eye, not just measured).
|
||||||
|
var targetCols = 130;
|
||||||
|
cellSize = Math.max(11, width / targetCols);
|
||||||
|
cols = Math.ceil(width / cellSize) + 1;
|
||||||
|
rows = Math.ceil(height / cellSize) + 1;
|
||||||
|
grid = new Float32Array((cols + 1) * (rows + 1));
|
||||||
|
|
||||||
|
fillCols = cols * FILL_SUBDIV;
|
||||||
|
fillRows = rows * FILL_SUBDIV;
|
||||||
|
fillCanvas.width = fillCols;
|
||||||
|
fillCanvas.height = fillRows;
|
||||||
|
fillImage = fillCtx.createImageData(fillCols, fillRows);
|
||||||
|
}
|
||||||
|
|
||||||
|
function sampleGrid(driftX, driftY, warpX, warpY) {
|
||||||
|
var idx = 0;
|
||||||
|
for (var ry = 0; ry <= rows; ry++) {
|
||||||
|
var y = ry * cellSize;
|
||||||
|
for (var rx = 0; rx <= cols; rx++) {
|
||||||
|
var x = rx * cellSize;
|
||||||
|
grid[idx++] = fieldValue(x, y, driftX, driftY, warpX, warpY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
blendMode(BLEND);
|
// Hypsometric wash: for each fill-raster sample, bilinearly interpolate
|
||||||
}
|
// the RAW field value from its cell's four corners -- the same linear
|
||||||
|
// interpolation marching squares uses internally to place a line -- then
|
||||||
|
// band/color that interpolated value. Coloring first and blending colors
|
||||||
|
// second (as an earlier version did) is a different operation and drifts
|
||||||
|
// from the true boundary wherever a cell spans more than one threshold;
|
||||||
|
// interpolating the value first keeps fill and line mathematically tied
|
||||||
|
// to the same crossing.
|
||||||
|
function drawFill() {
|
||||||
|
var stride = cols + 1;
|
||||||
|
var pixels = fillImage.data;
|
||||||
|
var p = 0;
|
||||||
|
for (var ry = 0; ry < fillRows; ry++) {
|
||||||
|
var cy = Math.min(rows - 1, (ry / FILL_SUBDIV) | 0);
|
||||||
|
var fy = (ry - cy * FILL_SUBDIV) / FILL_SUBDIV;
|
||||||
|
var rowOff = cy * stride;
|
||||||
|
var rowOffNext = rowOff + stride;
|
||||||
|
for (var rx = 0; rx < fillCols; rx++) {
|
||||||
|
var cx = Math.min(cols - 1, (rx / FILL_SUBDIV) | 0);
|
||||||
|
var fx = (rx - cx * FILL_SUBDIV) / FILL_SUBDIV;
|
||||||
|
|
||||||
|
var v0 = grid[rowOff + cx];
|
||||||
|
var v1 = grid[rowOff + cx + 1];
|
||||||
|
var v2 = grid[rowOffNext + cx + 1];
|
||||||
|
var v3 = grid[rowOffNext + cx];
|
||||||
|
|
||||||
|
var top = v0 + (v1 - v0) * fx;
|
||||||
|
var bottom = v3 + (v2 - v3) * fx;
|
||||||
|
var value = top + (bottom - top) * fy;
|
||||||
|
|
||||||
|
var c = bandColors[bandIndex(value)];
|
||||||
|
pixels[p++] = c[0];
|
||||||
|
pixels[p++] = c[1];
|
||||||
|
pixels[p++] = c[2];
|
||||||
|
pixels[p++] = 255;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fillCtx.putImageData(fillImage, 0, 0);
|
||||||
|
|
||||||
|
var alpha = Math.max(0, Math.min(1, FILL_INTENSITY));
|
||||||
|
ctx.save();
|
||||||
|
ctx.globalAlpha = alpha;
|
||||||
|
ctx.imageSmoothingEnabled = true;
|
||||||
|
ctx.drawImage(fillCanvas, 0, 0, fillCols, fillRows, 0, 0, width, height);
|
||||||
|
ctx.restore();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Marching squares gives independent 2-point segments per cell, with no
|
||||||
|
// record of which segments abut. Stroking them as-is (one moveTo/lineTo
|
||||||
|
// subpath per segment) means lineJoin never gets a chance to apply, so
|
||||||
|
// every cell boundary shows as a hard facet. Chain segments that share
|
||||||
|
// an endpoint into continuous polylines/loops first, then stroke each
|
||||||
|
// chain as a quadratic-smoothed curve through its points -- an actually
|
||||||
|
// curved line instead of a connect-the-dots polygon.
|
||||||
|
var CHAIN_EPS = 0.02; // px; two crossings on the same shared edge should
|
||||||
|
// land on (near-)identical floats, see note below
|
||||||
|
function pointKey(p) {
|
||||||
|
return Math.round(p[0] / CHAIN_EPS) + "_" + Math.round(p[1] / CHAIN_EPS);
|
||||||
|
}
|
||||||
|
|
||||||
|
function collectSegments(threshold) {
|
||||||
|
var stride = cols + 1;
|
||||||
|
var segments = [];
|
||||||
|
for (var cy = 0; cy < rows; cy++) {
|
||||||
|
var rowOff = cy * stride;
|
||||||
|
var rowOffNext = rowOff + stride;
|
||||||
|
var y = cy * cellSize;
|
||||||
|
for (var cx = 0; cx < cols; cx++) {
|
||||||
|
var x = cx * cellSize;
|
||||||
|
var v0 = grid[rowOff + cx];
|
||||||
|
var v1 = grid[rowOff + cx + 1];
|
||||||
|
var v2 = grid[rowOffNext + cx + 1];
|
||||||
|
var v3 = grid[rowOffNext + cx];
|
||||||
|
|
||||||
|
var caseIndex =
|
||||||
|
(v0 >= threshold ? 1 : 0) |
|
||||||
|
(v1 >= threshold ? 2 : 0) |
|
||||||
|
(v2 >= threshold ? 4 : 0) |
|
||||||
|
(v3 >= threshold ? 8 : 0);
|
||||||
|
|
||||||
|
var edges = CASE_EDGES[caseIndex];
|
||||||
|
if (!edges) continue;
|
||||||
|
|
||||||
|
for (var s = 0; s < edges.length; s += 2) {
|
||||||
|
var p0 = edgePoint(edges[s], x, y, cellSize, v0, v1, v2, v3, threshold);
|
||||||
|
var p1 = edgePoint(edges[s + 1], x, y, cellSize, v0, v1, v2, v3, threshold);
|
||||||
|
segments.push([p0, p1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return segments;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Two adjacent cells that share a grid edge compute that edge's crossing
|
||||||
|
// point from the same two corner values via the same formula (verified:
|
||||||
|
// cell (cx,cy)'s right edge and cell (cx+1,cy)'s left edge reduce to an
|
||||||
|
// identical t), so their coordinates match to float precision -- rounding
|
||||||
|
// to a shared key reliably links them into one path.
|
||||||
|
function strokeChains(segments) {
|
||||||
|
var edgesForKey = {};
|
||||||
|
var pointsByKey = {};
|
||||||
|
|
||||||
|
function addPoint(p) {
|
||||||
|
var k = pointKey(p);
|
||||||
|
if (!pointsByKey[k]) pointsByKey[k] = p;
|
||||||
|
return k;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < segments.length; i++) {
|
||||||
|
var ka = addPoint(segments[i][0]);
|
||||||
|
var kb = addPoint(segments[i][1]);
|
||||||
|
(edgesForKey[ka] = edgesForKey[ka] || []).push(kb);
|
||||||
|
(edgesForKey[kb] = edgesForKey[kb] || []).push(ka);
|
||||||
|
}
|
||||||
|
|
||||||
|
var visited = {};
|
||||||
|
function edgeId(k1, k2) {
|
||||||
|
return k1 < k2 ? k1 + "|" + k2 : k2 + "|" + k1;
|
||||||
|
}
|
||||||
|
|
||||||
|
function walk(startKey) {
|
||||||
|
var chain = [pointsByKey[startKey]];
|
||||||
|
var currentKey = startKey;
|
||||||
|
while (true) {
|
||||||
|
var neighbors = edgesForKey[currentKey] || [];
|
||||||
|
var nextKey = null;
|
||||||
|
for (var ni = 0; ni < neighbors.length; ni++) {
|
||||||
|
var eid = edgeId(currentKey, neighbors[ni]);
|
||||||
|
if (!visited[eid]) {
|
||||||
|
nextKey = neighbors[ni];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (nextKey === null) break;
|
||||||
|
visited[edgeId(currentKey, nextKey)] = true;
|
||||||
|
chain.push(pointsByKey[nextKey]);
|
||||||
|
currentKey = nextKey;
|
||||||
|
if (currentKey === startKey) break; // closed loop
|
||||||
|
}
|
||||||
|
return chain;
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx.beginPath();
|
||||||
|
var k;
|
||||||
|
// Open chains first: any point with exactly one connection is an end.
|
||||||
|
for (k in edgesForKey) {
|
||||||
|
if (edgesForKey[k].length === 1) strokeChain(walk(k));
|
||||||
|
}
|
||||||
|
// Whatever's left over is closed loops with no natural start point.
|
||||||
|
for (k in edgesForKey) {
|
||||||
|
var neighbors = edgesForKey[k];
|
||||||
|
for (var ni = 0; ni < neighbors.length; ni++) {
|
||||||
|
if (!visited[edgeId(k, neighbors[ni])]) strokeChain(walk(k));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ctx.stroke();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Quadratic-smoothed polyline: curve through the midpoint of each
|
||||||
|
// consecutive pair, using the shared point as control -- the standard
|
||||||
|
// cheap trick for turning a connect-the-dots path into a soft curve
|
||||||
|
// without full spline math.
|
||||||
|
// Catmull-Rom, not midpoint-quadratic: the earlier version curved *toward*
|
||||||
|
// each crossing point without ever reaching it (except chain endpoints),
|
||||||
|
// which is exactly why the line drifted from the fill after smoothing --
|
||||||
|
// the fill still bands on the true, unsmoothed crossing positions. A
|
||||||
|
// Catmull-Rom segment passes through every real point exactly and only
|
||||||
|
// uses neighbors to shape the tangent between them, so line and fill stay
|
||||||
|
// tied to the same positions with no possible corner-cutting drift.
|
||||||
|
function strokeChain(points) {
|
||||||
|
var n = points.length;
|
||||||
|
if (n < 2) return;
|
||||||
|
ctx.moveTo(points[0][0], points[0][1]);
|
||||||
|
if (n === 2) {
|
||||||
|
ctx.lineTo(points[1][0], points[1][1]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (var i = 0; i < n - 1; i++) {
|
||||||
|
var p0 = points[i - 1] || points[i];
|
||||||
|
var p1 = points[i];
|
||||||
|
var p2 = points[i + 1];
|
||||||
|
var p3 = points[i + 2] || p2;
|
||||||
|
var c1x = p1[0] + (p2[0] - p0[0]) / 6;
|
||||||
|
var c1y = p1[1] + (p2[1] - p0[1]) / 6;
|
||||||
|
var c2x = p2[0] - (p3[0] - p1[0]) / 6;
|
||||||
|
var c2y = p2[1] - (p3[1] - p1[1]) / 6;
|
||||||
|
ctx.bezierCurveTo(c1x, c1y, c2x, c2y, p2[0], p2[1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function drawContours() {
|
||||||
|
ctx.lineJoin = "round";
|
||||||
|
ctx.lineCap = "round";
|
||||||
|
|
||||||
|
for (var li = 0; li < LEVELS.length; li++) {
|
||||||
|
var threshold = LEVELS[li];
|
||||||
|
var isZero = threshold === 0;
|
||||||
|
// Rank-based, not value-based: the noise field's realized range
|
||||||
|
// rarely spans the full [-0.5, 0.5] of LEVELS (it's a weighted sum
|
||||||
|
// of two octaves, which clusters near the middle), so mapping color
|
||||||
|
// to the raw threshold left the reddest bands almost never drawn.
|
||||||
|
// Index position guarantees the full ink -> accent gradient shows
|
||||||
|
// up across whatever levels actually render. Same ramp as the fill.
|
||||||
|
var c = levelColor(li, LEVELS.length);
|
||||||
|
// Flat alpha across all non-zero bands: a depth-based falloff would
|
||||||
|
// dim the outer (most colorful) bands the most, directly undoing
|
||||||
|
// the color ramp. Color carries the elevation cue here, not brightness.
|
||||||
|
var alpha = (isZero ? 0.85 : 0.68) * LINE_INTENSITY;
|
||||||
|
ctx.strokeStyle = "rgba(" + c[0] + "," + c[1] + "," + c[2] + "," + alpha + ")";
|
||||||
|
// the zero level stays a hair bolder, like a coastline on a real
|
||||||
|
// topo map -- a reference line, not just another band.
|
||||||
|
ctx.lineWidth = isZero ? 1.8 : 1.4;
|
||||||
|
|
||||||
|
strokeChains(collectSegments(threshold));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function render(driftX, driftY, warpX, warpY) {
|
||||||
|
ctx.clearRect(0, 0, width, height);
|
||||||
|
sampleGrid(driftX, driftY, warpX, warpY);
|
||||||
|
if (FILL_ENABLED) drawFill();
|
||||||
|
drawContours();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
// Animation: slow drift, throttled to a modest frame rate since the
|
||||||
|
// motion itself unfolds over tens of seconds -- no need to sample it
|
||||||
|
// faster than that.
|
||||||
|
// ---------------------------------------------------------------
|
||||||
|
var DRIFT_VX = 3.2; // px/sec
|
||||||
|
var DRIFT_VY = -2.1; // px/sec
|
||||||
|
var startTime = null;
|
||||||
|
var lastFrameTime = 0;
|
||||||
|
var FRAME_INTERVAL = 1000 / 15; // ~15fps grid refresh, plenty for slow drift
|
||||||
|
var rafId = null;
|
||||||
|
|
||||||
|
function frame(now) {
|
||||||
|
rafId = requestAnimationFrame(frame);
|
||||||
|
if (now - lastFrameTime < FRAME_INTERVAL) return;
|
||||||
|
lastFrameTime = now;
|
||||||
|
if (startTime === null) startTime = now;
|
||||||
|
var t = (now - startTime) / 1000;
|
||||||
|
|
||||||
|
var driftX = t * DRIFT_VX;
|
||||||
|
var driftY = t * DRIFT_VY;
|
||||||
|
var warpX = Math.sin(t * 0.013) * 60;
|
||||||
|
var warpY = Math.cos(t * 0.009) * 60;
|
||||||
|
render(driftX, driftY, warpX, warpY);
|
||||||
|
}
|
||||||
|
|
||||||
|
function start() {
|
||||||
|
resize();
|
||||||
|
if (reduceMotion) {
|
||||||
|
render(0, 0, 0, 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
rafId = requestAnimationFrame(frame);
|
||||||
|
}
|
||||||
|
|
||||||
|
var resizeTimer = null;
|
||||||
|
window.addEventListener("resize", function () {
|
||||||
|
if (resizeTimer) clearTimeout(resizeTimer);
|
||||||
|
resizeTimer = setTimeout(function () {
|
||||||
|
resize();
|
||||||
|
if (reduceMotion) render(0, 0, 0, 0);
|
||||||
|
}, 150);
|
||||||
|
});
|
||||||
|
|
||||||
|
document.addEventListener("visibilitychange", function () {
|
||||||
|
if (reduceMotion) return;
|
||||||
|
if (document.hidden) {
|
||||||
|
if (rafId !== null) {
|
||||||
|
cancelAnimationFrame(rafId);
|
||||||
|
rafId = null;
|
||||||
|
}
|
||||||
|
} else if (rafId === null) {
|
||||||
|
lastFrameTime = 0;
|
||||||
|
rafId = requestAnimationFrame(frame);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
start();
|
||||||
|
})();
|
||||||
|
|||||||
@@ -1,23 +1,35 @@
|
|||||||
function toggleMenu(collapse) {
|
function toggleMenu(collapse) {
|
||||||
if (window.innerWidth < 1400) {
|
const header = document.getElementById("siteHeader");
|
||||||
const menu = document.querySelector(".navControl");
|
|
||||||
const bar = document.querySelector(".header");
|
|
||||||
const btn = document.getElementById("menu");
|
const btn = document.getElementById("menu");
|
||||||
const isCollapsed = !menu.style.maxHeight || menu.style.maxHeight === "0px";
|
if (!header) return;
|
||||||
|
const open = collapse ? false : !header.classList.contains("open");
|
||||||
if (isCollapsed && !collapse) {
|
header.classList.toggle("open", open);
|
||||||
menu.style.maxHeight = `${menu.scrollHeight + 10}px`;
|
if (btn) btn.setAttribute("aria-expanded", open ? "true" : "false");
|
||||||
bar.style.borderBottomWidth = "0px";
|
|
||||||
if (btn) btn.setAttribute("aria-expanded", "true");
|
|
||||||
} else {
|
|
||||||
menu.style.maxHeight = "0px";
|
|
||||||
bar.style.borderBottomWidth = "3px";
|
|
||||||
if (btn) btn.setAttribute("aria-expanded", "false");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function goto(location, { push = true } = {}) {
|
function markCurrentPage(location) {
|
||||||
|
document.querySelectorAll(".site-nav a[data-page]").forEach(function (link) {
|
||||||
|
if (link.dataset.page === location) {
|
||||||
|
link.setAttribute("aria-current", "page");
|
||||||
|
} else {
|
||||||
|
link.removeAttribute("aria-current");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function showNavNotice(message) {
|
||||||
|
const notice = document.getElementById('nav-notice');
|
||||||
|
if (!notice) return;
|
||||||
|
notice.textContent = message;
|
||||||
|
notice.hidden = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideNavNotice() {
|
||||||
|
const notice = document.getElementById('nav-notice');
|
||||||
|
if (notice) notice.hidden = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function goto(location, { push = true, hash = "" } = {}) {
|
||||||
const loadingBar = document.getElementById('loading-bar');
|
const loadingBar = document.getElementById('loading-bar');
|
||||||
|
|
||||||
if (loadingBar) {
|
if (loadingBar) {
|
||||||
@@ -47,6 +59,7 @@ async function goto(location, { push = true } = {}) {
|
|||||||
const [metadata, content] = await response.json();
|
const [metadata, content] = await response.json();
|
||||||
|
|
||||||
document.dispatchEvent(new Event('beforenavigate'));
|
document.dispatchEvent(new Event('beforenavigate'));
|
||||||
|
hideNavNotice();
|
||||||
|
|
||||||
const root = document.getElementById("root");
|
const root = document.getElementById("root");
|
||||||
root.innerHTML = content;
|
root.innerHTML = content;
|
||||||
@@ -61,22 +74,25 @@ async function goto(location, { push = true } = {}) {
|
|||||||
oldScript.parentNode.replaceChild(newScript, oldScript);
|
oldScript.parentNode.replaceChild(newScript, oldScript);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (window.location.href.includes("#")) {
|
const target = hash || (push ? "" : decodeURIComponent(window.location.hash.substring(1)));
|
||||||
const id = decodeURIComponent(window.location.hash.substring(1));
|
const targetEl = target ? document.getElementById(target) : null;
|
||||||
const el = document.getElementById(id);
|
if (targetEl) {
|
||||||
if (el) el.scrollIntoView();
|
revealTarget(targetEl);
|
||||||
|
targetEl.scrollIntoView({ behavior: "instant", block: "start" });
|
||||||
} else {
|
} else {
|
||||||
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
window.scrollTo({ top: 0, left: 0, behavior: "instant" });
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleMenu(true);
|
toggleMenu(true);
|
||||||
|
markCurrentPage(location);
|
||||||
document.querySelector("title").textContent = metadata["title"];
|
document.querySelector("title").textContent = metadata["title"];
|
||||||
if (push) {
|
if (push) {
|
||||||
history.pushState(null, null, metadata["canonical"]);
|
history.pushState(null, null, metadata["canonical"] + (hash ? "#" + hash : ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Navigation failed:", err);
|
console.error("Navigation failed:", err);
|
||||||
|
showNavNotice("Couldn't load that page. Check your connection and try again.");
|
||||||
} finally {
|
} finally {
|
||||||
clearTimeout(loadingTimeout);
|
clearTimeout(loadingTimeout);
|
||||||
if (loadingBar && loadingBar.classList.contains('active')) {
|
if (loadingBar && loadingBar.classList.contains('active')) {
|
||||||
@@ -93,9 +109,64 @@ async function goto(location, { push = true } = {}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Featured project panels: collapsed to a short peek until expanded.
|
||||||
|
function setFeatureExpanded(feature, expanded) {
|
||||||
|
const clips = feature.querySelectorAll(".feature-clip");
|
||||||
|
const btn = feature.querySelector(".feature-expand");
|
||||||
|
if (expanded) {
|
||||||
|
feature.classList.add("expanded");
|
||||||
|
clips.forEach(function (el) {
|
||||||
|
el.style.maxHeight = el.scrollHeight + "px";
|
||||||
|
});
|
||||||
|
// Once open, let the regions size themselves so late-loading content is never clipped.
|
||||||
|
setTimeout(function () {
|
||||||
|
if (!feature.classList.contains("expanded")) return;
|
||||||
|
clips.forEach(function (el) {
|
||||||
|
el.style.maxHeight = "none";
|
||||||
|
});
|
||||||
|
}, 400);
|
||||||
|
} else {
|
||||||
|
// Pin the current heights, force a reflow, then let CSS animate down to the peek.
|
||||||
|
clips.forEach(function (el) {
|
||||||
|
el.style.maxHeight = el.scrollHeight + "px";
|
||||||
|
});
|
||||||
|
void feature.offsetHeight;
|
||||||
|
feature.classList.remove("expanded");
|
||||||
|
clips.forEach(function (el) {
|
||||||
|
el.style.maxHeight = "";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (btn) btn.setAttribute("aria-expanded", expanded ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
function toggleFeature(btn) {
|
||||||
|
const feature = btn.closest(".feature");
|
||||||
|
if (feature) setFeatureExpanded(feature, !feature.classList.contains("expanded"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Expand a collapsed panel (or the one containing the target) before jumping to it.
|
||||||
|
function revealTarget(el) {
|
||||||
|
const feature = el.closest(".feature");
|
||||||
|
if (feature && !feature.classList.contains("expanded")) {
|
||||||
|
setFeatureExpanded(feature, true);
|
||||||
|
feature.querySelectorAll(".feature-clip").forEach(function (el) {
|
||||||
|
el.style.maxHeight = "none";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
if (!window.location.hash) return;
|
||||||
|
const el = document.getElementById(decodeURIComponent(window.location.hash.substring(1)));
|
||||||
|
if (el) {
|
||||||
|
revealTarget(el);
|
||||||
|
el.scrollIntoView({ behavior: "instant", block: "start" });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
function backButton() {
|
function backButton() {
|
||||||
const path = window.location.pathname;
|
const path = window.location.pathname;
|
||||||
goto(path.substring(1), { push: false });
|
goto(path.substring(1) || "home", { push: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
function activeSkill(obj) {
|
function activeSkill(obj) {
|
||||||
|
|||||||
@@ -19,17 +19,19 @@ async function fetchStatus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateStatusDisplay(data) {
|
function updateStatusDisplay(data) {
|
||||||
|
showStaleNotice(!!data.stale);
|
||||||
|
|
||||||
if (data.last_check) {
|
if (data.last_check) {
|
||||||
const lastCheck = new Date(data.last_check);
|
const lastCheck = new Date(data.last_check);
|
||||||
const lastUpdateEl = document.getElementById('lastUpdate');
|
const lastUpdateEl = document.getElementById('lastUpdate');
|
||||||
if (lastUpdateEl) lastUpdateEl.textContent = `Last checked: ${lastCheck.toLocaleString()}`;
|
if (lastUpdateEl) lastUpdateEl.textContent = lastCheck.toLocaleString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.next_check) {
|
if (data.next_check) {
|
||||||
const nextCheckEl = document.getElementById('nextUpdate');
|
const nextCheckEl = document.getElementById('nextUpdate');
|
||||||
if (nextCheckEl) {
|
if (nextCheckEl) {
|
||||||
const nextCheck = new Date(data.next_check);
|
const nextCheck = new Date(data.next_check);
|
||||||
nextCheckEl.textContent = `Next check: ${nextCheck.toLocaleString()}`;
|
nextCheckEl.textContent = nextCheck.toLocaleString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,7 +45,7 @@ function updateStatusDisplay(data) {
|
|||||||
const refreshBtn = document.getElementById('refreshBtn');
|
const refreshBtn = document.getElementById('refreshBtn');
|
||||||
if (refreshBtn) {
|
if (refreshBtn) {
|
||||||
refreshBtn.disabled = false;
|
refreshBtn.disabled = false;
|
||||||
refreshBtn.textContent = 'Refresh Now';
|
refreshBtn.textContent = 'Refresh now';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,7 +114,7 @@ function updateServiceCard(service) {
|
|||||||
formatUptime(service.uptime['7d'], '7d'),
|
formatUptime(service.uptime['7d'], '7d'),
|
||||||
formatUptime(service.uptime['30d'], '30d'),
|
formatUptime(service.uptime['30d'], '30d'),
|
||||||
formatUptime(service.uptime.all_time, 'All'),
|
formatUptime(service.uptime.all_time, 'All'),
|
||||||
].join(' | ');
|
].join(' · ');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checksDisplay && service.total_checks !== undefined) {
|
if (checksDisplay && service.total_checks !== undefined) {
|
||||||
@@ -188,20 +190,42 @@ function showError(message) {
|
|||||||
const errorDiv = document.createElement('div');
|
const errorDiv = document.createElement('div');
|
||||||
errorDiv.className = 'status-error';
|
errorDiv.className = 'status-error';
|
||||||
errorDiv.textContent = message;
|
errorDiv.textContent = message;
|
||||||
errorDiv.style.cssText = 'background: rgba(244, 67, 54, 0.2); color: #f44336; padding: 1em; margin: 1em 0; border-radius: 0.5em; text-align: center;';
|
|
||||||
|
|
||||||
const container = document.querySelector('.foregroundContent');
|
|
||||||
|
const container = document.querySelector('.page');
|
||||||
if (container) {
|
if (container) {
|
||||||
container.insertBefore(errorDiv, container.firstChild);
|
container.insertBefore(errorDiv, container.firstChild);
|
||||||
setTimeout(function() { errorDiv.remove(); }, 5000);
|
setTimeout(function() { errorDiv.remove(); }, 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Persistent (not auto-dismissed) notice that the last successful check is
|
||||||
|
// older than expected -- the monitor may have hit a snag, so don't let the
|
||||||
|
// page keep implying the numbers below are fresh.
|
||||||
|
function showStaleNotice(isStale) {
|
||||||
|
const container = document.querySelector('.page');
|
||||||
|
if (!container) return;
|
||||||
|
let noticeEl = document.getElementById('staleNotice');
|
||||||
|
|
||||||
|
if (!isStale) {
|
||||||
|
if (noticeEl) noticeEl.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!noticeEl) {
|
||||||
|
noticeEl = document.createElement('div');
|
||||||
|
noticeEl.id = 'staleNotice';
|
||||||
|
noticeEl.className = 'status-notice';
|
||||||
|
noticeEl.textContent = 'Data below may be out of date -- the last successful check was longer ago than expected.';
|
||||||
|
container.insertBefore(noticeEl, container.firstChild);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function refreshStatus() {
|
function refreshStatus() {
|
||||||
const refreshBtn = document.getElementById('refreshBtn');
|
const refreshBtn = document.getElementById('refreshBtn');
|
||||||
if (refreshBtn) {
|
if (refreshBtn) {
|
||||||
refreshBtn.disabled = true;
|
refreshBtn.disabled = true;
|
||||||
refreshBtn.textContent = 'Checking...';
|
refreshBtn.textContent = 'Checking';
|
||||||
}
|
}
|
||||||
fetchStatus();
|
fetchStatus();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,18 +1,21 @@
|
|||||||
{
|
{
|
||||||
"selection": [
|
"selection": [
|
||||||
"The Rational Optimist",
|
"The Rational Optimist",
|
||||||
"The End of the World is Just the Beginning",
|
"Project Hail Mary",
|
||||||
"When to Rob a Bank",
|
|
||||||
"Freakonomics",
|
"Freakonomics",
|
||||||
"The Accidental Superpower",
|
"The Accidental Superpower",
|
||||||
"Verbal Judo",
|
"The Martian"
|
||||||
"Zero To One"
|
|
||||||
],
|
],
|
||||||
"books": {
|
"books": {
|
||||||
"Fooled By Randomness": {
|
"Project Hail Mary": {
|
||||||
"filename": "fooledbyrandomness.jpg",
|
"filename": "hailmary.jpg",
|
||||||
"link": "https://www.amazon.com/Fooled-Randomness-Hidden-Chance-Markets-dp-B006Q7VYC4/dp/B006Q7VYC4/ref=dp_ob_title_bk",
|
"link": "https://www.amazon.com/Project-Hail-Mary-Andy-Weir/dp/0593135202",
|
||||||
"review": "A lengthy compendium on probabilistic reasoning that helped kick off a curiosity of indefinite computation. There's more ancient philosophy than a book like this really needs but the occasional brazen punchline from the contemporary anecdotes make it bearable."
|
"review": "This must be the first hard-sci-fi book I have read and I absolutely loved it. When I watched the movie I concluded that both executed on an inspiring story with an endearing tone but only the book held the creative practicality that really made it a favorite."
|
||||||
|
},
|
||||||
|
"The Martian": {
|
||||||
|
"filename": "themartian.jpg",
|
||||||
|
"link": "https://www.amazon.com/Martian-Andy-Weir/dp/0553418025",
|
||||||
|
"review": "I picked this up after Project Hail Mary looking for more creative uses of hard scifi. On that account The Martian surpassed expectations - partially because the plot didn't have to contend with fantasy elements. I aspire to one day use a radioactive space heater as a hot tub power source, just as my hero, Mark Watney, once did."
|
||||||
},
|
},
|
||||||
"The Rational Optimist": {
|
"The Rational Optimist": {
|
||||||
"filename": "ratOpt.jpg",
|
"filename": "ratOpt.jpg",
|
||||||
@@ -39,6 +42,11 @@
|
|||||||
"link": "https://freakonomics.com/books/",
|
"link": "https://freakonomics.com/books/",
|
||||||
"review": "More like the other Freakonomics books than I expected (cracked storytelling), which is still excellent, but I wished there was greater insights into seeing past conventional wisdom, which is what thinking like a freak means. Still a great book."
|
"review": "More like the other Freakonomics books than I expected (cracked storytelling), which is still excellent, but I wished there was greater insights into seeing past conventional wisdom, which is what thinking like a freak means. Still a great book."
|
||||||
},
|
},
|
||||||
|
"Fooled By Randomness": {
|
||||||
|
"filename": "fooledbyrandomness.jpg",
|
||||||
|
"link": "https://www.amazon.com/Fooled-Randomness-Hidden-Chance-Markets-dp-B006Q7VYC4/dp/B006Q7VYC4/ref=dp_ob_title_bk",
|
||||||
|
"review": "A lengthy compendium on probabilistic reasoning that helped kick off a curiosity of indefinite computation. There's more ancient philosophy than a book like this really needs but the occasional brazen punchline from the contemporary anecdotes make it bearable."
|
||||||
|
},
|
||||||
"The Tyranny of Metrics": {
|
"The Tyranny of Metrics": {
|
||||||
"filename": "TyrannyOfMetrics.jpg",
|
"filename": "TyrannyOfMetrics.jpg",
|
||||||
"link": "https://www.amazon.com/Tyranny-Metrics-Jerry-Z-Muller/dp/0691174954",
|
"link": "https://www.amazon.com/Tyranny-Metrics-Jerry-Z-Muller/dp/0691174954",
|
||||||
@@ -72,12 +80,12 @@
|
|||||||
"No, They Can't": {
|
"No, They Can't": {
|
||||||
"filename": "no-they-cant.jpeg",
|
"filename": "no-they-cant.jpeg",
|
||||||
"link": "https://www.goodreads.com/book/show/13260131-no-they-can-t",
|
"link": "https://www.goodreads.com/book/show/13260131-no-they-can-t",
|
||||||
"review": "I much preferred Give Me A Break (which I read first). Sossel's writing style in this book is less developed - it feels aimless and with an intent to lecture."
|
"review": "I much preferred Give Me A Break (which I read first). Stossel's writing style in this book is less developed - it feels aimless and with an intent to lecture."
|
||||||
},
|
},
|
||||||
"Give Me a Break": {
|
"Give Me a Break": {
|
||||||
"filename": "giveMeABreak.jpeg",
|
"filename": "giveMeABreak.jpeg",
|
||||||
"link": "https://www.amazon.com/Give-Me-Break-Exposed-Hucksters-ebook/dp/B000FC2NF8/",
|
"link": "https://www.amazon.com/Give-Me-Break-Exposed-Hucksters-ebook/dp/B000FC2NF8/",
|
||||||
"review": "I expected a boring autobiography-type book, but instead is a glimpse inside Stossel's work that transformed itself as it transformed his view. Was very happy to see a figure of similar personal ideology. Probably made it a little too easy to swallow that pill."
|
"review": "I expected a boring autobiography-type book, but instead is a glimpse inside Stossel's work that transformed itself as it transformed his view."
|
||||||
},
|
},
|
||||||
"Reign of Terror": {
|
"Reign of Terror": {
|
||||||
"filename": "reignofterror.jpg",
|
"filename": "reignofterror.jpg",
|
||||||
@@ -117,7 +125,7 @@
|
|||||||
"The Scout Mindset": {
|
"The Scout Mindset": {
|
||||||
"filename": "scoutMindset.png",
|
"filename": "scoutMindset.png",
|
||||||
"link": "https://www.amazon.com/Scout-Mindset-People-Things-Clearly-ebook/dp/B07L2HQ26K/",
|
"link": "https://www.amazon.com/Scout-Mindset-People-Things-Clearly-ebook/dp/B07L2HQ26K/",
|
||||||
"review": "Felt like a list of things that I already do that I should be more mindful of. Maybe that's just me. There was some interesting mental probablism sprinkled in the first half but the second half did not have much new to say. Good but not eye-opening."
|
"review": "Felt like a list of things that I already do that I should be more mindful of. Maybe that's just me. There was some interesting mental probabilism sprinkled in the first half but the second half did not have much new to say. Good but not eye-opening."
|
||||||
},
|
},
|
||||||
"Verbal Judo": {
|
"Verbal Judo": {
|
||||||
"filename": "verbalJudo.png",
|
"filename": "verbalJudo.png",
|
||||||
@@ -142,12 +150,7 @@
|
|||||||
"Where Good Ideas Come From": {
|
"Where Good Ideas Come From": {
|
||||||
"filename": "where-good-ideas-come-from.png",
|
"filename": "where-good-ideas-come-from.png",
|
||||||
"link": "https://www.goodreads.com/book/show/8034188-where-good-ideas-come-from",
|
"link": "https://www.goodreads.com/book/show/8034188-where-good-ideas-come-from",
|
||||||
"review": "I got this book at a recycling center. I didn't want to read it or like it. Unfortnuately, it's pretty good. 200 pages of considerate review of how innovation comes to be + suggestions to expand the utility of your ideas (I've adopted several!)"
|
"review": "I got this book at a recycling center. I didn't want to read it or like it. Unfortunately, it's pretty good. 200 pages of considerate review of how innovation comes to be + suggestions to expand the utility of your ideas (I've adopted several!)"
|
||||||
},
|
|
||||||
"Make Your Bed": {
|
|
||||||
"filename": "makeYourBed.jpg",
|
|
||||||
"link": "https://www.amazon.com/Make-Your-Bed-Little-Things/dp/1455570249",
|
|
||||||
"review": "Something small to read on a rainy day or flight. Valuable advice condensed into personal stories that stretch beyond anecdotes."
|
|
||||||
},
|
},
|
||||||
"12 Rules for Life": {
|
"12 Rules for Life": {
|
||||||
"filename": "12RulesForLife.jpg",
|
"filename": "12RulesForLife.jpg",
|
||||||
@@ -163,6 +166,11 @@
|
|||||||
"filename": "HitchhikersGuideToTheGalaxy.jpeg",
|
"filename": "HitchhikersGuideToTheGalaxy.jpeg",
|
||||||
"link": "https://www.amazon.com/Hitchhikers-Guide-Galaxy-Douglas-Adams/dp/0345418913",
|
"link": "https://www.amazon.com/Hitchhikers-Guide-Galaxy-Douglas-Adams/dp/0345418913",
|
||||||
"review": "It's alright. It felt like an aimless journey without defined boundaries that reveled in that fact for irony and wit points."
|
"review": "It's alright. It felt like an aimless journey without defined boundaries that reveled in that fact for irony and wit points."
|
||||||
|
},
|
||||||
|
"The Adventures of Sherlock Holmes": {
|
||||||
|
"filename": "sherlockholmes.jpg",
|
||||||
|
"link": "https://www.amazon.com/Adventures-Sherlock-Holmes-Arthur-Conan/dp/0141034332",
|
||||||
|
"review": "Had there not been half a dozen TV shows and movies about Sherlock Holmes all pulling from the same source material, I might have been intrigued. Instead, I felt like I was proofreading an old English fan rewrite of a book that I had already read. By today's standards, the outcomes were very telegraphed. Still enjoyed thinking through the deductions, though."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
105
src/static/json/features.json
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
{
|
||||||
|
"rushready": {
|
||||||
|
"title": "RushReady at Ecolab",
|
||||||
|
"summary": "Primary model developer, inception to multimillion-dollar product. +20% speed of service.",
|
||||||
|
"tagline": "Primary model developer of a quick-service restaurant analytics product, from first prototype through multimillion-dollar commercialization.",
|
||||||
|
"body": "<p>RushReady is an operations analytics product for quick-service restaurant brands. I have been its primary model developer since inception, and I own both halves of the problem: the platform that gets the data there and the models that make sense of it.</p><ul><li><strong>Platform.</strong> A near-real-time data platform built on Delta Live Tables, with an automated MLOps lifecycle spanning multiple QSR brands.</li><li><strong>Models.</strong> Explainable anomaly detection with XGBoost and SHAP attribution, so every flag arrives with the features that caused it, plus brand-configurable recommendations built on top of them.</li><li><strong>Result.</strong> A 20% increase in speed of service, and a product that went from prototype to a multimillion-dollar commercial offering.</li></ul><p>I also represented Ecolab as liaison in Microsoft's 100-member AI accelerator program. Product details are proprietary; I'm happy to talk through the approach.</p>",
|
||||||
|
"stack": [
|
||||||
|
"Azure Databricks",
|
||||||
|
"Delta Live Tables",
|
||||||
|
"Apache Spark",
|
||||||
|
"XGBoost",
|
||||||
|
"SHAP",
|
||||||
|
"Data Factory",
|
||||||
|
"SQL"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"homelab": {
|
||||||
|
"title": "AI Homelab and Self-Hosted Web Tooling",
|
||||||
|
"summary": "Mixture-of-Experts inference beyond rated VRAM, plus fine-tuning, on hardware I run myself.",
|
||||||
|
"tagline": "A self-hosted cluster serving Mixture-of-Experts models beyond their rated VRAM, alongside the web services it hosts.",
|
||||||
|
"body": "<p>I pool GPUs from different vendors and generations into a single inference backend of roughly 20 GB over Vulkan. FreeToken, a bleeding-edge MoE inference server, fronts the cluster and handles the elastic part: only the experts a token actually routes to need to be resident, so models with far more total parameters than the cluster's VRAM can still be served. My own scripts handle KV caching and system-prompt compaction, which is what makes the setup usable as a backend for coding agents.</p><p>The screenshot is a single node: a 35B-parameter hybrid MoE/Mamba model at NVFP4, running in 12 GB of VRAM with an 89K-token KV cache, the MoE expert cache and the SSM state slots all sized live against the memory budget.</p><p>The same rig trains as well as it serves: I've fine-tuned Qwen small language models with PEFT/TRL and trained diffusion image models. It also hosts my personal web assets, including this site and the services on the <a href=\"/status\">status page</a>. I voluntarily maintain production-grade systems at every level of the stack so I'll survive the Big Tech apocalypse.</p>",
|
||||||
|
"stack": [
|
||||||
|
"FreeToken",
|
||||||
|
"Vulkan",
|
||||||
|
"PEFT / TRL",
|
||||||
|
"ComfyUI",
|
||||||
|
"Docker",
|
||||||
|
"Cloudflare",
|
||||||
|
"Reverse Proxy"
|
||||||
|
],
|
||||||
|
"image": "photos/deepdives/homelab-dashboard.png",
|
||||||
|
"imageSize": [
|
||||||
|
1028,
|
||||||
|
891
|
||||||
|
],
|
||||||
|
"caption": "FreeToken cache configuration for Qwen3.6-35B-A3B on one RTX 5070 node."
|
||||||
|
},
|
||||||
|
"codesmells": {
|
||||||
|
"title": "Human vs AI Code Smell Study",
|
||||||
|
"summary": "85K+ code definitions: AI code carries 3–4x more structural debt.",
|
||||||
|
"tagline": "AI-generated code carries 3–4x more structural debt than human code, and reviewers don't see it.",
|
||||||
|
"body": "<p>I compared the maintainability of human-written code against code from five AI coding agents (Claude Code, Copilot, Cursor, Devin, and OpenAI Codex) across more than 85,000 code definitions, scoring each with mature code-smell detection algorithms and comparing the populations with non-parametric statistics.</p><p>The finding: AI code carries 3–4x more structural debt, and it is the kind of debt reviewers don't see. The paper recommends automated quality gates on AI-generated pull requests rather than relying on human review alone.</p>",
|
||||||
|
"stack": [
|
||||||
|
"Python",
|
||||||
|
"Static Analysis",
|
||||||
|
"Non-parametric Statistics"
|
||||||
|
],
|
||||||
|
"image": "photos/projects/aiCodeGroups.png",
|
||||||
|
"imageSize": [
|
||||||
|
1044,
|
||||||
|
691
|
||||||
|
],
|
||||||
|
"caption": "Code-smell feature space (PCA) with KDE contours per author: human vs. five coding agents.",
|
||||||
|
"links": [
|
||||||
|
[
|
||||||
|
"https://files.asimonson.com/u/AIcodeSmells.pdf",
|
||||||
|
"Read the paper"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"calorimetry": {
|
||||||
|
"title": "Reactive Chemistry Analysis at Dow",
|
||||||
|
"summary": "Replaced 4 legacy tools; became the interdepartmental standard, saving ~0.65 FTE a year.",
|
||||||
|
"tagline": "A reactive-chemistry analysis app that replaced four legacy VBA tools and became Dow's interdepartmental data standard.",
|
||||||
|
"body": "<p>During a co-op with Dow Chemical's Global Reactive Chemicals team, I independently built a Flask application that automates calorimetry analysis. It encodes adiabatic correction and exotherm-detection logic across 9 test types, and alerts on unusual or dangerous results from a wide range of testing environments and equipment.</p><p>The core design decision was an object-model abstraction that decouples each test type's parser from report generation. Adding a new instrument means writing a parser, not a new tool, which is how one app replaced 4 legacy VBA tools. It became the interdepartmental data standard, saving more than 1,020 hours (about 0.65 FTE) a year.</p>",
|
||||||
|
"stack": [
|
||||||
|
"Python",
|
||||||
|
"Flask",
|
||||||
|
"Azure",
|
||||||
|
"Posit Connect",
|
||||||
|
"Docker"
|
||||||
|
],
|
||||||
|
"image": "photos/projects/calorimeterAnalysis.png",
|
||||||
|
"imageSize": [
|
||||||
|
658,
|
||||||
|
360
|
||||||
|
],
|
||||||
|
"caption": "Pressure vs. temperature trace, automatically segmented into heat-wait-search, exotherm, and cooling phases."
|
||||||
|
},
|
||||||
|
"capstone": {
|
||||||
|
"title": "Stereo Particle-Track Classification in a Cloud Chamber",
|
||||||
|
"summary": "M.S. capstone, proposal approved: 3D particle-track reconstruction with Bayesian classification.",
|
||||||
|
"tagline": "My M.S. capstone: a three-camera diffusion cloud chamber that reconstructs particle tracks in 3D and classifies them with calibrated uncertainty.",
|
||||||
|
"body": "<p>For a century, cloud chamber tracks have been classified by eye: alphas are short and thick, betas long and wandering, muons long and straight. A single camera makes that worse. A track angled away from the lens is foreshortened, which biases any length-based rule, and the rule returns a hard label with no confidence exactly where it is least reliable.</p><ul><li><strong>Apparatus.</strong> A diffusion cloud chamber imaged by three hardware-synchronized Raspberry Pi cameras, calibrated with Zhang's method in OpenCV and validated by triangulating an object of known length before any particle data is trusted.</li><li><strong>Data.</strong> A spike-in protocol: background-only sessions (cosmic muons, radon-daughter alphas), then sessions with unlicensed alpha and beta sources at fixed positions, which gives weak ground-truth labels without breaking the bank or breaking into the IAEA.</li><li><strong>Models.</strong> Three tiers on the same features: classical length/width thresholds, a supervised ML baseline, and a Bayesian classifier that propagates calibration and triangulation error into a calibrated posterior over particle type. Each tier runs on both single-camera 2D and triangulated 3D features to measure how much 3D reconstruction actually corrects the bias.</li><li><strong>Monitoring.</strong> Shewhart and CUSUM control charts on session-level statistics flag anomalous chamber conditions; the deliberate spike-in shifts double as a validation of the monitor itself.</li></ul><p>The proposal is approved and construction starts this fall. Results will be posted here.</p>",
|
||||||
|
"stack": [
|
||||||
|
"Python",
|
||||||
|
"OpenCV",
|
||||||
|
"Raspberry Pi",
|
||||||
|
"Bayesian Inference",
|
||||||
|
"Statistical Process Control"
|
||||||
|
],
|
||||||
|
"image": "photos/deepdives/capstone-apparatus.png",
|
||||||
|
"imageSize": [
|
||||||
|
1100,
|
||||||
|
820
|
||||||
|
],
|
||||||
|
"caption": "Planned apparatus, top-down: three calibrated cameras around the chamber, with a fixed spike-in source port and an optional magnet for later charge discrimination.",
|
||||||
|
"links": [
|
||||||
|
[
|
||||||
|
"/capstone.pdf",
|
||||||
|
"Read the proposal"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,19 +2,19 @@
|
|||||||
"home": {
|
"home": {
|
||||||
"template": "home.html",
|
"template": "home.html",
|
||||||
"title": "Andrew Simonson - Data Scientist & Researcher",
|
"title": "Andrew Simonson - Data Scientist & Researcher",
|
||||||
"description": "Andrew Simonson - Data Scientist at Ecolab, graduate student at RIT. Projects, research papers, and more.",
|
"description": "Andrew Simonson - Data Scientist at Ecolab and M.S. student at RIT. Production ML, research papers, and a self-hosted AI homelab.",
|
||||||
"canonical": "/"
|
"canonical": "/"
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"template": "status.html",
|
"template": "status.html",
|
||||||
"title":"Andrew Simonson - Status Page",
|
"title": "Andrew Simonson - Status Page",
|
||||||
"description": "Status page for my services",
|
"description": "Status page for my services",
|
||||||
"canonical": "/status"
|
"canonical": "/status"
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"template": "projects.html",
|
"template": "projects.html",
|
||||||
"title": "Projects & Research - Andrew Simonson",
|
"title": "Projects & Research - Andrew Simonson",
|
||||||
"description": "Data science projects, geospatial analysis, research papers, and software experiments by Andrew Simonson.",
|
"description": "Production data science, research papers, geospatial analysis, and self-hosted AI infrastructure by Andrew Simonson.",
|
||||||
"canonical": "/projects"
|
"canonical": "/projects"
|
||||||
},
|
},
|
||||||
"books": {
|
"books": {
|
||||||
@@ -25,14 +25,14 @@
|
|||||||
},
|
},
|
||||||
"duck": {
|
"duck": {
|
||||||
"template": "duck.html",
|
"template": "duck.html",
|
||||||
"title":"You've been ducked!",
|
"title": "You've been ducked!",
|
||||||
"description": "Face it, you've been ducked",
|
"description": "Face it, you've been ducked",
|
||||||
"canonical": "/duck"
|
"canonical": "/duck"
|
||||||
},
|
},
|
||||||
"certificates": {
|
"about": {
|
||||||
"template": "certs.html",
|
"template": "about.html",
|
||||||
"title": "Certifications & Awards - Andrew Simonson",
|
"title": "About & Certifications - Andrew Simonson",
|
||||||
"description": "Data science, DevOps, and entrepreneurship certifications earned by Andrew Simonson.",
|
"description": "Bio, education, skills, and certifications for Andrew Simonson - Data Scientist at Ecolab.",
|
||||||
"canonical": "/certs"
|
"canonical": "/about"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,68 +1,71 @@
|
|||||||
{
|
{
|
||||||
"Human vs AI Code Smell Study": {
|
"Why Gold Is Gold": {
|
||||||
"status": "complete",
|
"status": "complete",
|
||||||
"classes": "programming",
|
"classes": "research programming",
|
||||||
"bgi": "aiCodeGroups.png",
|
"bgi": "goldAtom.png",
|
||||||
"content": "Research paper comparing human vs AI code maintainability based on mature code smell detection algorithms.",
|
"content": "Derives the colour of gold from the Dirac equation, with atomic number, lattice constant, and resistivity as the only inputs: a relativistic Kohn–Sham atom, a fully relativistic LMTO band structure, and interband optics through to a CIE colour, all recomputed live in your browser. Relativity drags gold's absorption edge into the visible; set c → ∞ in the same code and gold turns silver-white. Validated against NIST atomic data and full-potential band structures (the edge sits about 0.2 eV low, so this gold comes out rose).",
|
||||||
"links": [
|
"links": [
|
||||||
[
|
[
|
||||||
"globe",
|
"globe",
|
||||||
"http://files.asimonson.com/u/AIcodeSmells.pdf",
|
"/gold",
|
||||||
"Paper"
|
"Run it live"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"PhysCom - Physical Combinatorics": {
|
||||||
|
"status": "WIP",
|
||||||
|
"classes": "programming",
|
||||||
|
"content": "An innovation discovery engine that takes the Cartesian product of real, proven physical entities (platforms, power sources, energy storage) and pushes every combination through a 5-pass pipeline: constraint resolution over typed requires/provides/excludes dependencies, a deterministic physics estimator that sizes each combination from its own declared attributes, domain-weighted scoring by geometric mean over log-normalized metrics, batched LLM plausibility review of the top candidates, and a final human review pass. It separates the hydrogen bike from the solar-sail train.",
|
||||||
|
"links": [
|
||||||
|
[
|
||||||
|
"github",
|
||||||
|
"https://git.asimonson.com/andrew/physicalCombinatorics",
|
||||||
|
"git repo"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Generalized Trust Review": {
|
"Generalized Trust Review": {
|
||||||
"status": "complete",
|
"status": "complete",
|
||||||
"classes":"programming",
|
"classes": "research statistics",
|
||||||
"bgi": "blanketTrust.png",
|
"bgi": "blanketTrust.png",
|
||||||
"content": "Short analysis correlating societal blanket trust of press and scientific institutions.",
|
"content": "Trust in the press and trust in science move together (r = 0.624, p < 0.001 across 128 countries), but the link attenuates 5.7x in low press-freedom regimes. Cross-national correlation analysis with subgroup OLS regression.",
|
||||||
"links": [
|
"links": [
|
||||||
[
|
[
|
||||||
"globe",
|
"globe",
|
||||||
"http://files.asimonson.com/u/blanketTrust.pdf",
|
"https://files.asimonson.com/u/blanketTrust.pdf",
|
||||||
"Paper"
|
"Paper"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"PsyCom - Physical Combinatorics": {
|
"Slate": {
|
||||||
"status": "WIP",
|
"status": "complete",
|
||||||
"classes": "programming",
|
"classes": "programming",
|
||||||
"content": "Experimental innovation engine operating on physical attributes and limitations of proven existing technologies with further AI review."
|
"bgi": "slate.png",
|
||||||
|
"content": "Finds the best meeting windows for a group by vectorizing participants' iCalendar data into discrete-time signals and scoring them against weighted constraints. Periodic fold analysis surfaces recurring availability patterns across an 80-member organization. Integrated with Computer Science House accounts.",
|
||||||
|
"links": [
|
||||||
|
[
|
||||||
|
"globe",
|
||||||
|
"https://slate.csh.rit.edu",
|
||||||
|
"site link"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"github",
|
||||||
|
"https://github.com/asimonson1125/Slate",
|
||||||
|
"git repo"
|
||||||
|
]
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Antietam-Conococheague Watershed Monitoring": {
|
"Antietam-Conococheague Watershed Monitoring": {
|
||||||
"status": "complete",
|
"status": "complete",
|
||||||
"classes": "geospacial",
|
"classes": "geospatial",
|
||||||
"bgi": "watershedTemps.png",
|
"bgi": "watershedTemps.png",
|
||||||
"content": "Live geospacial analysis of Maryland's Antietam and Conococheague sub-watersheds, monitoring water quality and temperatures through the summer months for governmental environment health review boards."
|
"content": "ArcGIS choropleth dashboard tracking stream temperatures and biotic indices across Maryland's Antietam and Conococheague sub-watersheds of the Upper Potomac through the summer months, flagging exceedances of healthy stream conditions for state environmental review."
|
||||||
},
|
|
||||||
"Automotive Brand Valuation Analysis": {
|
|
||||||
"status": "complete",
|
|
||||||
"classes": "programming",
|
|
||||||
"bgi": "automotiveBrandAnalysis.png",
|
|
||||||
"content": "Brand valuation analysis of the used car market, measuring value decay by mileage to extrapolate qualities such as percieved reliability and persistent value of luxury features."
|
|
||||||
},
|
|
||||||
"RIT Hotspots": {
|
|
||||||
"status": "incomplete",
|
|
||||||
"classes": "pinned geospacial programming",
|
|
||||||
"bgi": "hotspotsrit.png",
|
|
||||||
"content": "Live crowd migration map using RIT occupancy data. It seems RIT didn't like me exposing their surveilance state but since they didn't want to talk to me about it they instead changed the service response schema a few times. When that didn't stop me they just shut down the whole service. Nerds.",
|
|
||||||
"links": [
|
|
||||||
["github", "https://github.com/asimonson1125/hotspotsrit", "git repo"]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Calorimetry Analysis Engineering": {
|
|
||||||
"status": "complete",
|
|
||||||
"classes": "pinned programming",
|
|
||||||
"bgi": "calorimeterAnalysis.png",
|
|
||||||
"content": "An analytical toolkit designed for reactive chemistry analysis, especially calorimetry. Works include automatic analysis, alerting unusual and dangerous results derived from a wide range of testing envrionments and equipment",
|
|
||||||
"links": []
|
|
||||||
},
|
},
|
||||||
"Geography of Alternative Energy": {
|
"Geography of Alternative Energy": {
|
||||||
"status": "complete",
|
"status": "complete",
|
||||||
"classes": "pinned geospacial",
|
"classes": "geospatial",
|
||||||
"bgi": "energyGeography.png",
|
"bgi": "energyGeography.png",
|
||||||
"content": "An ArcGIS geospacial analysis comparing the difference in effectiveness of wind, solar, and geothermal energy across the continental 48 United States.",
|
"content": "An ArcGIS geospatial analysis comparing how effective wind, solar, and geothermal energy are across the contiguous 48 United States.",
|
||||||
"links": [
|
"links": [
|
||||||
[
|
[
|
||||||
"globe",
|
"globe",
|
||||||
@@ -71,43 +74,24 @@
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"OccupyRIT": {
|
"RIT Hotspots": {
|
||||||
"status": "complete",
|
"status": "incomplete",
|
||||||
"classes": "pinned programming",
|
"classes": "geospatial programming",
|
||||||
"bgi": "occupyRIT.png",
|
"bgi": "hotspotsrit.png",
|
||||||
"content": "Collects RIT Gym Occupancy data, determining busiest workout times",
|
"content": "Live crowd migration map built on RIT's building occupancy data. RIT changed the service's response schema several times while I kept the map working, then shut the service down entirely.",
|
||||||
"links": [
|
"links": [
|
||||||
["github", "https://github.com/asimonson1125/Occupy-RIT", "git repo"]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Portfolio Website": {
|
|
||||||
"status": "complete",
|
|
||||||
"classes": "programming",
|
|
||||||
"content": "This website is my personal sandbox where I've integrated some of my data projects via docker cluster. It is self hosted and zero-trust secure while remaining dynamic and free of the tech debt that comes with pre-designed sites and excessive framework application. Yeah, I can do E2E.",
|
|
||||||
"links": [
|
|
||||||
["globe", "https://asimonson.com", "Homepage"],
|
|
||||||
[
|
[
|
||||||
"github",
|
"github",
|
||||||
"https://github.com/asimonson1125/asimonson1125.github.io",
|
"https://github.com/asimonson1125/hotspotsrit",
|
||||||
"git repo"
|
"git repo"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Slate": {
|
|
||||||
"status": "complete",
|
|
||||||
"classes": "pinned programming",
|
|
||||||
"bgi": "slate.png",
|
|
||||||
"content": "Slate is a web app designed to help event coordinators schedule events by congregating participant calendar data. Includes Computer Science House account integration",
|
|
||||||
"links": [
|
|
||||||
["globe", "https://slate.csh.rit.edu", "site link"],
|
|
||||||
["github", "https://github.com/asimonson1125/Slate", "git repo"]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Monte Carlo Engine for NationsGame": {
|
"Monte Carlo Engine for NationsGame": {
|
||||||
"status": "complete",
|
"status": "complete",
|
||||||
"classes": "programming",
|
"classes": "programming statistics",
|
||||||
"bgi": "ceoOfYugo.png",
|
"bgi": "ceoOfYugo.png",
|
||||||
"content": "A simulator for the browser game, NationsGame, to analyze unit composition and predict in-game victors and unit statistics. Unfortunately, NationsGame is now defunct. Limited screenshots of functionality.",
|
"content": "A Monte Carlo simulator for the browser game NationsGame that analyzes unit composition to predict battle victors and unit statistics. NationsGame is now defunct, so only limited screenshots remain.",
|
||||||
"links": [
|
"links": [
|
||||||
[
|
[
|
||||||
"github",
|
"github",
|
||||||
@@ -115,5 +99,22 @@
|
|||||||
"git repo"
|
"git repo"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"Portfolio Website": {
|
||||||
|
"status": "complete",
|
||||||
|
"classes": "programming",
|
||||||
|
"content": "This site: a self-hosted Flask app with no front-end framework. Pages swap in client-side through a small JSON API, static assets are content-hashed for immutable caching, a background monitor records uptime for my services in PostgreSQL for the status page, and the background is a marching-squares contour field drawn over drifting value noise.",
|
||||||
|
"links": [
|
||||||
|
[
|
||||||
|
"globe",
|
||||||
|
"https://asimonson.com",
|
||||||
|
"Homepage"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"github",
|
||||||
|
"https://github.com/asimonson1125/asimonson1125.github.io",
|
||||||
|
"git repo"
|
||||||
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,29 +1,54 @@
|
|||||||
{
|
{
|
||||||
"Data and AI": {
|
"Statistics and ML": {
|
||||||
"ML": {
|
"Explainable Anomaly Detection": {},
|
||||||
"PySpark ML": {},
|
"XGBoost / SHAP": {},
|
||||||
"Numpy/Pandas/Polars": {},
|
"Bayesian Methods": {},
|
||||||
|
"Regression and Non-parametric Testing": {},
|
||||||
|
"PyTorch": {},
|
||||||
"TensorFlow": {},
|
"TensorFlow": {},
|
||||||
"Scikit": {}
|
"Scikit-Learn": {},
|
||||||
|
"PySpark ML": {}
|
||||||
},
|
},
|
||||||
"PySpark": {},
|
"LLMs and Generative AI": {
|
||||||
"Selenium/BS4 Web Hacking": {},
|
"MoE Inference and KV-cache Tuning": {},
|
||||||
"SQL": {},
|
"Fine-tuning (PEFT / TRL)": {},
|
||||||
"Declarative Pipelines": {},
|
"Retrieval Agents": {},
|
||||||
"ArcGIS": {}
|
"Diffusion Models (ComfyUI)": {}
|
||||||
},
|
},
|
||||||
"DevOps": {
|
"Data Engineering": {
|
||||||
"Docker": {},
|
"Apache Spark / PySpark": {},
|
||||||
"Microsoft Azure": {},
|
"Delta Live Tables": {},
|
||||||
"Databricks": {},
|
"Databricks": {},
|
||||||
"Kubernetes/Openshift": {},
|
"Azure Data Factory": {},
|
||||||
|
"SQL": {},
|
||||||
|
"Pandas / Polars / NumPy": {},
|
||||||
|
"Web Scraping (Selenium / BS4)": {}
|
||||||
|
},
|
||||||
|
"Platform and MLOps": {
|
||||||
|
"MLOps Lifecycle Automation": {},
|
||||||
|
"Docker": {},
|
||||||
|
"Kubernetes / OpenShift": {},
|
||||||
|
"Microsoft Azure": {},
|
||||||
"Cloudflare": {},
|
"Cloudflare": {},
|
||||||
"Bash": {}
|
"Bash": {}
|
||||||
},
|
},
|
||||||
"Frontend": {
|
"Geospatial": {
|
||||||
"Flask (Python)": {},
|
"ArcGIS": {},
|
||||||
|
"Choropleth and Dashboard Design": {}
|
||||||
|
},
|
||||||
|
"Languages": {
|
||||||
|
"Python": {},
|
||||||
|
"SQL": {},
|
||||||
|
"R": {},
|
||||||
|
"MATLAB": {},
|
||||||
|
"JavaScript": {},
|
||||||
|
"Rust": {},
|
||||||
|
"C#": {}
|
||||||
|
},
|
||||||
|
"Web": {
|
||||||
|
"Flask": {},
|
||||||
"REST APIs": {},
|
"REST APIs": {},
|
||||||
"Web Scraping": {}
|
"Posit Connect": {}
|
||||||
},
|
},
|
||||||
"Offline Skills": {
|
"Offline Skills": {
|
||||||
"Circuitry": {},
|
"Circuitry": {},
|
||||||
|
|||||||
@@ -1,72 +0,0 @@
|
|||||||
{
|
|
||||||
"Data Scientist @ Ecolab": {
|
|
||||||
"classes": "pinned experience technical",
|
|
||||||
"date": "01/2024 - Present",
|
|
||||||
"content": "Primary model developer of RushReady from inception through multimillion-dollar product commercialization. Engineered near-real-time data platform with Delta Live Tables and automated MLOps lifecycle. Built explainable anomaly detection with XGBoost/SHAP attribution, increasing speed of service by 20%. Represented Ecolab in Microsoft's 100-member AI accelerator program."
|
|
||||||
},
|
|
||||||
"Data Scientist / Data Engineer": {
|
|
||||||
"classes": "pinned experience technical",
|
|
||||||
"date": "01/2023 - 05/2023",
|
|
||||||
"content": "Co-op under Dow Chemical's Global Reactive Chemicals team in Analytical Sciences. Independently built reactive chemistry analysis Flask app encoding adiabatic correction and exotherm-detection logic. Replaced 4 legacy VBA tools with an object-model abstraction architecture. Product became the interdepartmental data standard, saving >1,020 hours (~0.65 FTE) annually."
|
|
||||||
},
|
|
||||||
"Rochester Institute of Technology — M.S.": {
|
|
||||||
"classes": "pinned education technical",
|
|
||||||
"date": "01/2023 - 12/2026",
|
|
||||||
"content": "Data Science M.S. with dual cluster in Data Science and AI. Capstone Fall 2026. Certified by Databricks in ML Model Deployment, Retrieval Agents, and MLOps. Certified by Microsoft in Data Analysis Career Essentials and Docker Foundations."
|
|
||||||
},
|
|
||||||
"Rochester Institute of Technology — B.S.": {
|
|
||||||
"classes": "pinned education technical",
|
|
||||||
"date": "08/2021 - 12/2024",
|
|
||||||
"content": "Computer Science B.S. (GPA 3.63, Dean's List) with a minor in International Relations. Active member of Computer Science House — built and maintained web services for 80+ members, presented seminars on web scraping, analytics, and GIS."
|
|
||||||
},
|
|
||||||
"UCSanDiegoX Data Science MicroMasters": {
|
|
||||||
"classes": "education technical",
|
|
||||||
"date": "2024",
|
|
||||||
"content": "Completed MicroMasters program in Data Science through UC San Diego on edX."
|
|
||||||
},
|
|
||||||
"Started Portfolio": {
|
|
||||||
"classes": "",
|
|
||||||
"date": "08/26/2021",
|
|
||||||
"content": "I started building this website on this day. I wish I could say I was farther along than I am."
|
|
||||||
},
|
|
||||||
"Human vs AI Code Smell Study": {
|
|
||||||
"classes": "technical",
|
|
||||||
"date": "2024 - 2025",
|
|
||||||
"content": "Analyzed 85K+ code definitions comparing AI vs human code maintainability via static analysis and non-parametric statistics. Found AI code carries 3-4x more structural debt invisible to reviewers."
|
|
||||||
},
|
|
||||||
"Generalized Trust Review": {
|
|
||||||
"classes": "technical",
|
|
||||||
"date": "2023 - 2024",
|
|
||||||
"content": "Cross-national correlation analysis of media and science trust across 128 countries with subgroup OLS regression. Found trust transfer attenuates 5.7x in low press-freedom regimes."
|
|
||||||
},
|
|
||||||
"Antietam Watershed Monitoring": {
|
|
||||||
"classes": "technical",
|
|
||||||
"date": "2023",
|
|
||||||
"content": "ArcGIS choropleth dashboard monitoring stream temps and biotic indices across Upper Potomac sub-watersheds. Flags exceedances of healthy stream conditions for state environmental review."
|
|
||||||
},
|
|
||||||
"Hackathon Awards": {
|
|
||||||
"classes": "technical",
|
|
||||||
"date": "2023 - 2024",
|
|
||||||
"content": "CSHacks - Best Use of AI (Paychex). Tiger Games - Social Impact Winner. HACK.COMS '24 - Accessibility Winner."
|
|
||||||
},
|
|
||||||
"Pretzel & Pizza Creations": {
|
|
||||||
"classes": "experience",
|
|
||||||
"date": "04/2021 - 08/2021",
|
|
||||||
"content": "Worked part-time as a chef, managing active ingredient supply and fulfilling orders. I personally recommend the stuffed pretzels."
|
|
||||||
},
|
|
||||||
"Election Official": {
|
|
||||||
"classes": "experience",
|
|
||||||
"date": "08/2020 - 12/2020",
|
|
||||||
"content": "Trained in voter registry operations and provisional voting by the Washington County Board of Elections for the 2020 US Presidential Election."
|
|
||||||
},
|
|
||||||
"Boonsboro High School": {
|
|
||||||
"classes": "education",
|
|
||||||
"date": "09/2016 - 06/2021",
|
|
||||||
"content": "Graduated high school with highest honors. Member of National Honor Society, Academic Team County Champions. Participated in Physics Olympics, Robotics Club, and scored at state championships in Cross Country and Track and Field (4x800, 800)."
|
|
||||||
},
|
|
||||||
"Vex Robotics Team Lead/Club President": {
|
|
||||||
"classes": "technical",
|
|
||||||
"date": "10/2015 - 04/2021",
|
|
||||||
"content": "Led 5 teams through middle and high school to VEX Robotics Competitions, elevating Boonsboro from county group-stage elimination to its first state championship participation. Reorganized club and set up its first interface with the community + sponsors."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
BIN
src/static/papers/capstone-proposal.pdf
Normal file
BIN
src/static/photos/books/hailmary.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
src/static/photos/books/sherlockholmes.jpg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
src/static/photos/books/themartian.jpg
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
src/static/photos/deepdives/capstone-apparatus.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
src/static/photos/deepdives/homelab-dashboard.png
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
src/static/photos/extradimensional.avif
Normal file
|
After Width: | Height: | Size: 259 KiB |
BIN
src/static/photos/omnidimensional.avif
Normal file
|
After Width: | Height: | Size: 572 KiB |
BIN
src/static/photos/projects/goldAtom.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 546 B |
BIN
src/static/photos/test.png
Normal file
|
After Width: | Height: | Size: 649 KiB |
@@ -1,142 +0,0 @@
|
|||||||
<svg width="350" height="165" viewBox="0 0 350 165" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="descId">
|
|
||||||
<title id="titleId"/>
|
|
||||||
<desc id="descId"/>
|
|
||||||
<style>
|
|
||||||
.header {
|
|
||||||
font: 600 18px 'Segoe UI', Ubuntu, Sans-Serif;
|
|
||||||
fill: #fabd2f;
|
|
||||||
animation: fadeInAnimation 0.8s ease-in-out forwards;
|
|
||||||
}
|
|
||||||
@supports(-moz-appearance: auto) {
|
|
||||||
/* Selector detects Firefox */
|
|
||||||
.header { font-size: 15.5px; }
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes slideInAnimation {
|
|
||||||
from {
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
width: calc(100%-100px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes growWidthAnimation {
|
|
||||||
from {
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.lang-name {
|
|
||||||
font: 400 11px "Segoe UI", Ubuntu, Sans-Serif;
|
|
||||||
fill: #8ec07c;
|
|
||||||
}
|
|
||||||
.stagger {
|
|
||||||
opacity: 0;
|
|
||||||
animation: fadeInAnimation 0.3s ease-in-out forwards;
|
|
||||||
}
|
|
||||||
#rect-mask rect{
|
|
||||||
animation: slideInAnimation 1s ease-in-out forwards;
|
|
||||||
}
|
|
||||||
.lang-progress{
|
|
||||||
animation: growWidthAnimation 0.6s ease-in-out forwards;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Animations */
|
|
||||||
@keyframes scaleInAnimation {
|
|
||||||
from {
|
|
||||||
transform: translate(-5px, 5px) scale(0);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: translate(-5px, 5px) scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes fadeInAnimation {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<rect data-testid="card-bg" x="0.5" y="0.5" rx="4.5" height="99%" stroke="#e4e2e2" width="349" fill="#282828" stroke-opacity="1"/>
|
|
||||||
|
|
||||||
|
|
||||||
<g data-testid="card-title" transform="translate(25, 35)">
|
|
||||||
<g transform="translate(0, 0)">
|
|
||||||
<text x="0" y="0" class="header" data-testid="header">Most Used Languages</text>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
|
|
||||||
|
|
||||||
<g data-testid="main-card-body" transform="translate(0, 55)">
|
|
||||||
|
|
||||||
<svg data-testid="lang-items" x="25">
|
|
||||||
|
|
||||||
<mask id="rect-mask">
|
|
||||||
<rect x="0" y="0" width="300" height="8" fill="white" rx="5"/>
|
|
||||||
</mask>
|
|
||||||
|
|
||||||
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="0" y="0" width="128.34" height="8" fill="#f1e05a"/>
|
|
||||||
|
|
||||||
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="128.34" y="0" width="63.46" height="8" fill="#f34b7d"/>
|
|
||||||
|
|
||||||
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="191.8" y="0" width="49.7" height="8" fill="#3572A5"/>
|
|
||||||
|
|
||||||
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="241.5" y="0" width="33.69" height="8" fill="#e34c26"/>
|
|
||||||
|
|
||||||
<rect mask="url(#rect-mask)" data-testid="lang-progress" x="275.19" y="0" width="24.81" height="8" fill="#563d7c"/>
|
|
||||||
|
|
||||||
|
|
||||||
<g transform="translate(0, 25)">
|
|
||||||
<g transform="translate(0, 0)"><g transform="translate(0, 0)">
|
|
||||||
<g class="stagger" style="animation-delay: 450ms">
|
|
||||||
<circle cx="5" cy="6" r="5" fill="#f1e05a"/>
|
|
||||||
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
||||||
JavaScript 42.78%
|
|
||||||
</text>
|
|
||||||
</g>
|
|
||||||
</g><g transform="translate(0, 25)">
|
|
||||||
<g class="stagger" style="animation-delay: 600ms">
|
|
||||||
<circle cx="5" cy="6" r="5" fill="#f34b7d"/>
|
|
||||||
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
||||||
C++ 21.15%
|
|
||||||
</text>
|
|
||||||
</g>
|
|
||||||
</g><g transform="translate(0, 50)">
|
|
||||||
<g class="stagger" style="animation-delay: 750ms">
|
|
||||||
<circle cx="5" cy="6" r="5" fill="#3572A5"/>
|
|
||||||
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
||||||
Python 16.57%
|
|
||||||
</text>
|
|
||||||
</g>
|
|
||||||
</g></g><g transform="translate(150, 0)"><g transform="translate(0, 0)">
|
|
||||||
<g class="stagger" style="animation-delay: 450ms">
|
|
||||||
<circle cx="5" cy="6" r="5" fill="#e34c26"/>
|
|
||||||
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
||||||
HTML 11.23%
|
|
||||||
</text>
|
|
||||||
</g>
|
|
||||||
</g><g transform="translate(0, 25)">
|
|
||||||
<g class="stagger" style="animation-delay: 600ms">
|
|
||||||
<circle cx="5" cy="6" r="5" fill="#563d7c"/>
|
|
||||||
<text data-testid="lang-name" x="15" y="10" class="lang-name">
|
|
||||||
CSS 8.27%
|
|
||||||
</text>
|
|
||||||
</g>
|
|
||||||
</g></g>
|
|
||||||
</g>
|
|
||||||
|
|
||||||
</svg>
|
|
||||||
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,11 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://asimonson.com</loc>
|
<loc>https://asimonson.com/</loc>
|
||||||
|
<lastmod>2026-09-22</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://asimonson.com/about</loc>
|
||||||
|
<lastmod>2026-09-22</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
<loc>https://asimonson.com/projects</loc>
|
<loc>https://asimonson.com/projects</loc>
|
||||||
<loc>https://asimonson.com/Resume</loc>
|
<lastmod>2026-09-22</lastmod>
|
||||||
<loc>https://asimonson.com/duck</loc>
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://asimonson.com/books</loc>
|
||||||
|
<lastmod>2026-09-22</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
<loc>https://asimonson.com/status</loc>
|
<loc>https://asimonson.com/status</loc>
|
||||||
<lastmod>2026-02-12</lastmod>
|
<lastmod>2026-09-22</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://asimonson.com/gold</loc>
|
||||||
|
<lastmod>2026-09-22</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://asimonson.com/resume</loc>
|
||||||
|
<lastmod>2026-09-22</lastmod>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
||||||
@@ -1,73 +1,114 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground"></div>
|
<div class="page">
|
||||||
<div class="relative growBottom">
|
<header class="page-head">
|
||||||
<div id="nametag" class="flex" data-aos="fade-up">
|
<h1 class="display">About</h1>
|
||||||
<div>
|
<p class="lede">
|
||||||
<h1 class="textGrad">About</h1>
|
I'm Andrew Simonson, a data scientist at Ecolab and a graduate student
|
||||||
<h2>My story, in order</h2>
|
at Rochester Institute of Technology. I work across the whole stack of
|
||||||
</div>
|
a data product: the platform the data lands on, the statistical models
|
||||||
</div>
|
that interpret it, and the interface that puts the answer in front of
|
||||||
<div class="homeSubContent">
|
someone.
|
||||||
<div class="foregroundContent">
|
</p>
|
||||||
<div class="concentratedHead">
|
</header>
|
||||||
<h3>Career & Education Timeline</h3>
|
|
||||||
|
<div class="prose about-bio">
|
||||||
|
<p>
|
||||||
|
At work I build the models and the pipelines behind them. At home I run
|
||||||
|
the servers. In between, I get bored and put things on this website,
|
||||||
|
self-built and self-hosted as a sandbox for
|
||||||
|
webdev experiments. This is what unprofessional development looks like.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
There is also a <a href="/resume">résumé</a> for paper-minded people.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="timeline-filters" role="toolbar" aria-label="Filter timeline entries">
|
<section class="section" aria-labelledby="education-heading">
|
||||||
<button class="filter-btn active" data-filter="all" aria-pressed="true">All</button>
|
<div class="section-head">
|
||||||
<button class="filter-btn" data-filter="experience" aria-pressed="false">Experience</button>
|
<h2 id="education-heading">Education</h2>
|
||||||
<button class="filter-btn" data-filter="education" aria-pressed="false">Education</button>
|
<p class="section-note">Rochester Institute of Technology</p>
|
||||||
<button class="filter-btn" data-filter="technical" aria-pressed="false">Technical</button>
|
</div>
|
||||||
|
<dl class="now-list">
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>M.S. Data Science</dt>
|
||||||
|
<dd>
|
||||||
|
Expected December 2026, focused on probability theory, statistical
|
||||||
|
learning, and Bayesian methods. Capstone in fall 2026:
|
||||||
|
<a href="/projects#feature-capstone" onclick="goto('projects', {hash: 'feature-capstone'}); return false;">3D particle-track reconstruction in a diffusion cloud chamber</a>.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>B.S. Computer Science</dt>
|
||||||
|
<dd>
|
||||||
|
December 2024. Magna Cum Laude. GPA 3.63, Dean's List. Course clusters in data science
|
||||||
|
and AI, with a minor in international relations.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>Computer Science House</dt>
|
||||||
|
<dd>
|
||||||
|
E-board member and presenter since 2021. I build and maintain web
|
||||||
|
services for 80+ members, and have given seminars on web scraping,
|
||||||
|
analytics, and GIS.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="two-col">
|
||||||
|
<section class="section" aria-labelledby="skills-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="skills-heading">Skills</h2>
|
||||||
|
<p class="section-note">Click a group to expand it</p>
|
||||||
|
</div>
|
||||||
|
{% from 'partials/skills.html' import skills %}
|
||||||
|
{{ skills(var['skillList']) }}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="certs-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="certs-heading">Certifications</h2>
|
||||||
|
<p class="section-note">
|
||||||
|
Full list on <a href="https://www.linkedin.com/in/simonsonandrew/details/certifications/" rel="noopener noreferrer">LinkedIn</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="timeline" id="timeline">
|
<div class="cert-group">
|
||||||
{% for name, item in var['timeline'].items() %}
|
<h3>Data Science MicroMasters</h3>
|
||||||
<div class="timeitem" data-categories="{{ item.classes }}">
|
<p class="cert-provider">UC San Diego on edX ·
|
||||||
<div class="timeitem-inner boxed">
|
<a href="https://credentials.edx.org/credentials/4b7e78dca8154c0d88ca9abc5aedb4ac" rel="noopener noreferrer">program certificate</a>
|
||||||
<div class="timeitem-header">
|
</p>
|
||||||
<span class="datetext">{{ item.date }}</span>
|
<ul class="cert-list">
|
||||||
<strong>{{ name }}</strong>
|
<li><a href="https://courses.edx.org/certificates/b6deccc56e5344ae84cb55f9ad81fd79" rel="noopener noreferrer">Python for Data Science</a> <span class="cert-code">DSE200x</span></li>
|
||||||
|
<li><a href="https://courses.edx.org/certificates/f29d0e65fc024c6e95121619e329a286" rel="noopener noreferrer">Probability and Statistics in Data Science using Python</a> <span class="cert-code">DSE210x</span></li>
|
||||||
|
<li><a href="https://courses.edx.org/certificates/cccc2bd2ed61470e8492d6da1be530c5" rel="noopener noreferrer">Machine Learning Fundamentals</a> <span class="cert-code">DSE220x</span></li>
|
||||||
|
<li><a href="https://courses.edx.org/certificates/4dfd6563a1f84caaa8922a02a5125f29" rel="noopener noreferrer">Big Data Analytics Using Spark</a> <span class="cert-code">DSE230x</span></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="timeitem-content">
|
|
||||||
{{ item.content | safe }}
|
<div class="cert-group">
|
||||||
</div>
|
<h3>Independent</h3>
|
||||||
{% if item.classes %}
|
<ul class="cert-list">
|
||||||
<div class="timeitem-tags">
|
<li><a href="https://files.asimonson.com/u/2398_3_1303226_1776777828_Databricks%20-%20Generic.pdf" rel="noopener noreferrer">Machine Learning Model Deployment</a> <span class="cert-code">Databricks</span></li>
|
||||||
{% for cls in item.classes.split() %}
|
<li><a href="https://files.asimonson.com/u/2662_3_1303226_1772561098_Databricks%20-%20Generic.pdf" rel="noopener noreferrer">Building Retrieval Agents on Databricks</a> <span class="cert-code">Databricks</span></li>
|
||||||
<span class="tag tag-{{ cls }}">{{ cls | replace('_', ' ') | title }}</span>
|
<li><a href="https://files.asimonson.com/u/2403_3_1303226_1765822061_Databricks%20-%20Generic.pdf" rel="noopener noreferrer">Machine Learning Operations</a> <span class="cert-code">Databricks</span></li>
|
||||||
{% endfor %}
|
<li><a href="https://www.linkedin.com/learning/certificates/2cb69378c606fec5a6f3a107b99a896862db392b7a3692f71a6b53af5d5545c5" rel="noopener noreferrer">Career Essentials in Data Analysis</a> <span class="cert-code">Microsoft</span></li>
|
||||||
</div>
|
<li><a href="https://www.linkedin.com/learning/certificates/7facc28a13405134b3b7fa785303e9b1cf697f32d67f759e89960fbdc8a044d9" rel="noopener noreferrer">Career Essentials in GitHub</a> <span class="cert-code">GitHub</span></li>
|
||||||
{% endif %}
|
<li><a href="https://www.linkedin.com/learning/certificates/7b952323152e258ca468c33ddc9ebcf3c55036f58a5cfb3fb9c1410da655aaa5" rel="noopener noreferrer">Docker Foundations</a> <span class="cert-code">Docker</span></li>
|
||||||
</div>
|
<li><a href="https://www.linkedin.com/learning/certificates/7017147ac73af5bc26fdab9b3c43671fb8105a0de59d4689d5f0f71c549c150f" rel="noopener noreferrer">Data Science Foundations: Fundamentals</a> <span class="cert-code">LinkedIn</span></li>
|
||||||
</div>
|
</ul>
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="cert-group">
|
||||||
|
<h3>Entrepreneurship</h3>
|
||||||
|
<p class="cert-provider">Rochester Institute of Technology</p>
|
||||||
|
<ul class="cert-list">
|
||||||
|
<li><a href="https://files.asimonson.com/u/designThinkingCert.pdf" rel="noopener noreferrer">Design Thinking</a></li>
|
||||||
|
<li><a href="https://files.asimonson.com/u/ideationCert.pdf" rel="noopener noreferrer">Ideation</a></li>
|
||||||
|
<li><a href="https://files.asimonson.com/u/toolsForInnovatorsCert.pdf" rel="noopener noreferrer">Tools for Innovators</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
|
||||||
const buttons = document.querySelectorAll('.filter-btn');
|
|
||||||
const items = document.querySelectorAll('.timeitem');
|
|
||||||
|
|
||||||
buttons.forEach(function(btn) {
|
|
||||||
btn.addEventListener('click', function() {
|
|
||||||
var filter = this.getAttribute('data-filter');
|
|
||||||
buttons.forEach(function(b) { b.classList.remove('active'); b.setAttribute('aria-pressed', 'false'); });
|
|
||||||
this.classList.add('active');
|
|
||||||
this.setAttribute('aria-pressed', 'true');
|
|
||||||
|
|
||||||
items.forEach(function(item) {
|
|
||||||
var cats = item.getAttribute('data-categories') || '';
|
|
||||||
if (filter === 'all' || cats.indexOf(filter) !== -1) {
|
|
||||||
item.classList.remove('hidden');
|
|
||||||
} else {
|
|
||||||
item.classList.add('hidden');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,48 +1,58 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground"></div>
|
<div class="page">
|
||||||
<div class="foregroundContent">
|
<header class="page-head">
|
||||||
<h2>"You can't judge a book by its cover but you can judge a person by their bookshelf" - Me, today.</h2>
|
<h1 class="display">Bookshelf</h1>
|
||||||
<h3>My Favorites</h3>
|
<p class="lede">
|
||||||
<div class='flex wrap boxed' role="list" aria-label="Favorite books">
|
You can't judge a book by its cover, but you can judge a person by their
|
||||||
|
bookshelf. Short reviews of what I've read, favorites first.
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="fav-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="fav-heading">Favorites</h2>
|
||||||
|
</div>
|
||||||
|
<ul class="cover-row" aria-label="Favorite books">
|
||||||
{% for i in var.books.selection %}
|
{% for i in var.books.selection %}
|
||||||
<div role="listitem">
|
<li>
|
||||||
<a href="#'{{i}}'" aria-label="View review of {{ i }}">
|
<a href="#'{{ i }}'" title="{{ i }}">
|
||||||
<img
|
<img
|
||||||
class="bookcover"
|
alt="{{ i }}"
|
||||||
alt="{{ i }} cover"
|
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename)) }}"
|
||||||
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename))}}"
|
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="80"
|
||||||
|
height="120"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="reviews-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="reviews-heading">All reviews</h2>
|
||||||
|
<p class="section-note">{{ var.books.books | length }} books</p>
|
||||||
</div>
|
</div>
|
||||||
<h3>All Reviews</h3>
|
<ul class="review-list">
|
||||||
<p>Hover to reveal review<br />Read to reveal KNOWLEDGE</p>
|
|
||||||
<div class="booklist flex wrap" role="list" aria-label="Book reviews">
|
|
||||||
{% for i in var.books.books %}
|
{% for i in var.books.books %}
|
||||||
<div id="'{{i}}'" class="bookReview" role="listitem" aria-label="Review of {{ i }}">
|
<li id="'{{ i }}'" class="review">
|
||||||
<div class='fullHeight flex'>
|
|
||||||
<div>
|
|
||||||
<div class='heightBox'>
|
|
||||||
<img
|
<img
|
||||||
class="bookcover"
|
class="review-cover"
|
||||||
alt="{{ i }} cover"
|
alt=""
|
||||||
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename))}}"
|
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename)) }}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
width="80"
|
||||||
|
height="120"
|
||||||
/>
|
/>
|
||||||
|
<div class="review-body">
|
||||||
|
<h3>{{ i }}</h3>
|
||||||
|
<p>{{ var.books.books[i].review }}</p>
|
||||||
|
<p class="review-link"><a href="{{ var.books.books[i].link }}" rel="noopener noreferrer">Where to find it</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
<div class='vFlex emPad spaceBetween'>
|
|
||||||
<div>
|
|
||||||
<h4 class='nomargin'>{{ i }}</h4>
|
|
||||||
<p class='nomargin'>{{ var.books.books[i].review }}</p>
|
|
||||||
</div>
|
|
||||||
<a href="{{ var.books.books[i].link }}" rel="noopener noreferrer" aria-label="Buy or learn more about {{ i }}">Book Source</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</ul>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
{% block content %}
|
|
||||||
<div class="foreground"></div>
|
|
||||||
<div class="foregroundContent">
|
|
||||||
<h1>Certifications</h1>
|
|
||||||
<p class="page-subtitle">
|
|
||||||
Comprehensive list verifiable on
|
|
||||||
<a href="https://www.linkedin.com/in/simonsonandrew/details/certifications/">LinkedIn</a>
|
|
||||||
</p>
|
|
||||||
<p>Computer Science BS and Data Science MS from Rochester Institute of Technology</p>
|
|
||||||
|
|
||||||
<div class="boxed cert-group">
|
|
||||||
<p class="cert-group-provider">UCSanDiegoX · edX</p>
|
|
||||||
<h2 class="concentratedHead">Data Science MicroMasters Program</h2>
|
|
||||||
<a href="http://credentials.edx.org/credentials/4b7e78dca8154c0d88ca9abc5aedb4ac" class="cert-program-badge">
|
|
||||||
View Program Certificate ›
|
|
||||||
</a>
|
|
||||||
<ul class="cert-list">
|
|
||||||
<li><a href="https://courses.edx.org/certificates/b6deccc56e5344ae84cb55f9ad81fd79" class="cert-item">DSE200x — Python for Data Science</a></li>
|
|
||||||
<li><a href="https://courses.edx.org/certificates/f29d0e65fc024c6e95121619e329a286" class="cert-item">DSE210x — Probability and Statistics in Data Science using Python</a></li>
|
|
||||||
<li><a href="https://courses.edx.org/certificates/cccc2bd2ed61470e8492d6da1be530c5" class="cert-item">DSE220x — Machine Learning Fundamentals</a></li>
|
|
||||||
<li><a href="https://courses.edx.org/certificates/4dfd6563a1f84caaa8922a02a5125f29" class="cert-item">DSE230x — Big Data Analytics Using Spark</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="cert-grid">
|
|
||||||
<div class="boxed cert-group">
|
|
||||||
<h3 class="concentratedHead">One-Off Courses</h3>
|
|
||||||
<ul class="cert-list">
|
|
||||||
<li><a href="https://files.asimonson.com/u/2398_3_1303226_1776777828_Databricks%20-%20Generic.pdf" class="cert-item">Machine Learning Model Deployment by Databricks</a></li>
|
|
||||||
<li><a href="https://files.asimonson.com/u/2662_3_1303226_1772561098_Databricks%20-%20Generic.pdf" class="cert-item">Building Retrieval Agents On Databricks</a></li>
|
|
||||||
<li><a href="https://files.asimonson.com/u/2403_3_1303226_1765822061_Databricks%20-%20Generic.pdf" class="cert-item">Machine Learning Operations by Databricks</a></li>
|
|
||||||
<li><a href="https://www.linkedin.com/learning/certificates/2cb69378c606fec5a6f3a107b99a896862db392b7a3692f71a6b53af5d5545c5" class="cert-item">Career Essentials in Data Analysis by Microsoft</a></li>
|
|
||||||
<li><a href="https://www.linkedin.com/learning/certificates/7facc28a13405134b3b7fa785303e9b1cf697f32d67f759e89960fbdc8a044d9" class="cert-item">Career Essentials in GitHub Professional Certificate</a></li>
|
|
||||||
<li><a href="https://www.linkedin.com/learning/certificates/7b952323152e258ca468c33ddc9ebcf3c55036f58a5cfb3fb9c1410da655aaa5" class="cert-item">Docker Foundations Professional Certificate</a></li>
|
|
||||||
<li><a href="https://www.linkedin.com/learning/certificates/7017147ac73af5bc26fdab9b3c43671fb8105a0de59d4689d5f0f71c549c150f" class="cert-item">Data Science Foundations: Fundamentals</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="boxed cert-group">
|
|
||||||
<p class="cert-group-provider">Rochester Institute of Technology</p>
|
|
||||||
<h3 class="concentratedHead">Entrepreneurial Certifications</h3>
|
|
||||||
<ul class="cert-list">
|
|
||||||
<li><a href="https://files.asimonson.com/u/designThinkingCert.pdf" class="cert-item">Design Thinking Certification</a></li>
|
|
||||||
<li><a href="https://files.asimonson.com/u/ideationCert.pdf" class="cert-item">Ideation Certification</a></li>
|
|
||||||
<li><a href="https://files.asimonson.com/u/toolsForInnovatorsCert.pdf" class="cert-item">Tools for Innovators Certification</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
@@ -1,11 +1,12 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground"></div>
|
<div class="page">
|
||||||
<div class="foregroundContent">
|
<header class="page-head">
|
||||||
<h1>What the duck?</h1>
|
<h1 class="display">What the duck?</h1>
|
||||||
|
</header>
|
||||||
<img
|
<img
|
||||||
|
class="duck"
|
||||||
alt="mega spinney duck"
|
alt="mega spinney duck"
|
||||||
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
|
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
|
||||||
style="max-width: calc(100% - 2em);"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- BONUS DUCKS! -->
|
<!-- BONUS DUCKS! -->
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground homeground"></div>
|
|
||||||
<div class="fPage">
|
<div class="fPage">
|
||||||
<div class="heightBox">
|
|
||||||
<div class="neonBox">
|
<div class="neonBox">
|
||||||
<h1 class="neon">ERROR {{error}}</h1>
|
<h1 class="neon">ERROR {{error}}</h1>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<h3 class="neon">{{message}}</h3>
|
<h3 class="neon">{{message}}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -7,13 +7,12 @@
|
|||||||
href="{{ url_for('static', filename='icons/withBackground.svg') }}"
|
href="{{ url_for('static', filename='icons/withBackground.svg') }}"
|
||||||
/>
|
/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#141414" />
|
||||||
|
|
||||||
<!-- Resource hints for performance -->
|
<!-- Resource hints for performance -->
|
||||||
<link rel="preconnect" href="https://www.googletagmanager.com" />
|
<link rel="preconnect" href="https://www.googletagmanager.com" />
|
||||||
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
|
|
||||||
<meta name="description" content="{{ var['description'] }}" />
|
<meta name="description" content="{{ var['description'] }}" />
|
||||||
<meta property="og:title" content="Andrew Simonson" />
|
<meta property="og:title" content="{{ var['title'] }}" />
|
||||||
<meta property="og:description" content="{{ var['description'] }}" />
|
<meta property="og:description" content="{{ var['description'] }}" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta
|
<meta
|
||||||
@@ -21,7 +20,7 @@
|
|||||||
content="{{ url_for('static', filename='icons/rasterLogoCircle.png') }}"
|
content="{{ url_for('static', filename='icons/rasterLogoCircle.png') }}"
|
||||||
/>
|
/>
|
||||||
<meta property="og:url" content="{{ request.url_root | trim('/') }}{{ var['canonical'] }}" />
|
<meta property="og:url" content="{{ request.url_root | trim('/') }}{{ var['canonical'] }}" />
|
||||||
<meta property="twitter:title" content="Andrew Simonson" />
|
<meta name="twitter:title" content="{{ var['title'] }}" />
|
||||||
<meta name="twitter:description" content="{{ var['description'] }}" />
|
<meta name="twitter:description" content="{{ var['description'] }}" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta property="og:site_name" content="Andrew Simonson - Portfolio" />
|
<meta property="og:site_name" content="Andrew Simonson - Portfolio" />
|
||||||
@@ -29,7 +28,7 @@
|
|||||||
property="twitter:image"
|
property="twitter:image"
|
||||||
content="{{ url_for('static', filename='icons/rasterLogoCircle.png') }}"
|
content="{{ url_for('static', filename='icons/rasterLogoCircle.png') }}"
|
||||||
/>
|
/>
|
||||||
<meta name="twitter:image:alt" content="some example picture idk" />
|
<meta name="twitter:image:alt" content="Andrew Simonson's logo" />
|
||||||
<meta name="twitter:site" content="@asimonson1125" />
|
<meta name="twitter:site" content="@asimonson1125" />
|
||||||
|
|
||||||
<!-- Structured data for SEO -->
|
<!-- Structured data for SEO -->
|
||||||
@@ -75,55 +74,54 @@
|
|||||||
/>
|
/>
|
||||||
<link rel="canonical" href="{{ request.url_root | trim('/') }}{{ var['canonical'] }}" />
|
<link rel="canonical" href="{{ request.url_root | trim('/') }}{{ var['canonical'] }}" />
|
||||||
<script defer src="{{ url_for('static', filename='js/responsive.js') }}"></script>
|
<script defer src="{{ url_for('static', filename='js/responsive.js') }}"></script>
|
||||||
{# <script src="{{ url_for('static', filename='js/chessbed.js') }}"></script> #}
|
|
||||||
<script defer src="{{ url_for('static', filename='js/idler.js') }}"></script>
|
<script defer src="{{ url_for('static', filename='js/idler.js') }}"></script>
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/p5@1.4.1/lib/p5.min.js"></script>
|
|
||||||
<title>{{ var['title'] }}</title>
|
<title>{{ var['title'] }}</title>
|
||||||
</head>
|
</head>
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<body onpopstate="backButton()">
|
<body onpopstate="backButton()">
|
||||||
<a class="skip-link" href="#root">Skip to content</a>
|
<a class="skip-link" href="#root">Skip to content</a>
|
||||||
<div id="loading-bar"></div>
|
<div id="loading-bar" aria-hidden="true"></div>
|
||||||
|
<div id="nav-notice" class="nav-notice" role="alert" hidden></div>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
<main id='map' aria-label="Main content"></main>
|
<div id="bg" aria-hidden="true"></div>
|
||||||
<div id="contentStuffer">
|
<div class="site">
|
||||||
<header class="header">
|
<header class="site-header" id="siteHeader">
|
||||||
<div id="name-container" onclick="goto('home')" onKeyDown="if(event.key==='Enter'||event.key===' ')goto('home')" role="button" tabindex="0" aria-label="Go to home">
|
<a class="brand" href="/" data-page="home" onclick="goto('home'); return false;" aria-label="Andrew Simonson, home">
|
||||||
<div class="line name">
|
<img class="brand-mark" src="{{ url_for('static', filename='icons/neonfinal3.svg') }}" alt="" width="30" height="30" />
|
||||||
<span class="textGrad">{# Andrew Simonoson #}</span>
|
<span class="brand-name">Andrew Simonson</span>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
<button
|
||||||
|
|
||||||
<img
|
|
||||||
src="{{ url_for('static', filename='icons/menu.svg')}}"
|
|
||||||
alt="menu"
|
|
||||||
id="menu"
|
id="menu"
|
||||||
role="button"
|
class="menu-toggle"
|
||||||
aria-label="Toggle navigation menu"
|
type="button"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
aria-controls="navBar"
|
aria-controls="navBar"
|
||||||
onClick="toggleMenu()"
|
onclick="toggleMenu()"
|
||||||
onKeyDown="if(event.key==='Enter'||event.key===' ')toggleMenu()"
|
>Menu</button>
|
||||||
/>
|
<nav id="navBar" class="site-nav" aria-label="Main navigation">
|
||||||
<div class="navControl">
|
<a href="/" data-page="home" onclick="goto('home'); return false;" {% if var['id'] == 'home' %}aria-current="page"{% endif %}>Home</a>
|
||||||
<nav id="navBar" class="navBar" role="menubar" aria-label="Main navigation">
|
<a href="/projects" data-page="projects" onclick="goto('projects'); return false;" {% if var['id'] == 'projects' %}aria-current="page"{% endif %}>Work</a>
|
||||||
<div onClick="goto('home')" onKeyDown="if(event.key==='Enter'||event.key===' ')goto('home')" role="menuitem" tabindex="0" class="navElement">
|
<a href="/about" data-page="about" onclick="goto('about'); return false;" {% if var['id'] == 'about' %}aria-current="page"{% endif %}>About</a>
|
||||||
<p>Home</p>
|
<a href="/status" data-page="status" onclick="goto('status'); return false;" {% if var['id'] == 'status' %}aria-current="page"{% endif %}>Status</a>
|
||||||
</div>
|
|
||||||
<div onClick="goto('projects')" onKeyDown="if(event.key==='Enter'||event.key===' ')goto('projects')" role="menuitem" tabindex="0" class="navElement">
|
|
||||||
<p>Work</p>
|
|
||||||
</div>
|
|
||||||
<div onclick="goto('status')" onKeyDown="if(event.key==='Enter'||event.key===' ')goto('status')" role="menuitem" tabindex="0" class="navElement">
|
|
||||||
<p>Status</p>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
{% endblock %} {% block content%}
|
{% endblock %} {% block content%}
|
||||||
<div id="root">{% include var['template'] %}</div>
|
<main id="root">{% include var['template'] %}</main>
|
||||||
{% endblock %} {% block footer %}
|
{% endblock %} {% block footer %}
|
||||||
<div id="footerSpacer"></div>
|
<footer class="site-footer">
|
||||||
<footer class="footer" role="contentinfo">{% include 'partials/socials.html' %}</footer>
|
<div class="footer-inner">
|
||||||
|
<p class="footer-name">Andrew Simonson</p>
|
||||||
|
<ul class="footer-links">
|
||||||
|
<li><a href="https://github.com/asimonson1125" rel="noopener noreferrer">GitHub</a></li>
|
||||||
|
<li><a href="https://www.linkedin.com/in/simonsonandrew/" rel="noopener noreferrer">LinkedIn</a></li>
|
||||||
|
<li><a href="mailto:asimonson1125@gmail.com">Email</a></li>
|
||||||
|
<li><a href="/resume">Résumé</a></li>
|
||||||
|
<li><a href="/books" onclick="goto('books'); return false;">Bookshelf</a></li>
|
||||||
|
<li><a href="https://github.com/asimonson1125/asimonson1125.github.io" rel="noopener noreferrer">Source</a></li>
|
||||||
|
</ul>
|
||||||
|
<p class="footer-note">Self-hosted. Uptime on the <a href="/status" onclick="goto('status'); return false;">status page</a>.</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,62 +1,198 @@
|
|||||||
{% block content %} {% macro nameplate() %}
|
{% block content %}
|
||||||
<div>
|
<section class="hero" aria-labelledby="homeName">
|
||||||
<h1 id="homeName" class="textGrad">oh no.</h1>
|
<div class="hero-inner">
|
||||||
<h2>I did not plan for visitors.</h2>
|
<h1 id="homeName" class="display">Andrew Simonson</h1>
|
||||||
|
<p class="lede">
|
||||||
<br /> <hr> <br />
|
Data scientist at Ecolab and a graduate student at RIT.
|
||||||
|
I build end-to-end decision machines: from data pipelines that process scale, to epistemic models which understand, to user interfaces that convey.
|
||||||
<div class="flex vertOnMobile">
|
|
||||||
<div>
|
|
||||||
<img
|
|
||||||
src="{{ url_for('static', filename='photos/extradimensionalSq.avif') }}"
|
|
||||||
id="homeIcon"
|
|
||||||
fetchpriority=high
|
|
||||||
alt="Biblically Accurate Seraphim"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endmacro %}
|
|
||||||
|
|
||||||
<div class="foreground homeground"></div>
|
|
||||||
<div class="relative growBottom">
|
|
||||||
<div id="nametag" class="flex" data-aos="fade-up">{{ nameplate() }}</div>
|
|
||||||
<!--<INSERT SMALL BANNER HERE FOR PROJECT IMAGECARD CAROUSEL>-->
|
|
||||||
<div id="desktopSpacer"></div>
|
|
||||||
<div class="homeSubContent">
|
|
||||||
<img class='blinkies' alt='Pepsi Addict' src="{{ url_for('static', filename='photos/blinkies/pepsiaddict.gif') }}" loading="lazy" />
|
|
||||||
<img class='blinkies' alt='Secret Message' src="{{ url_for('static', filename='photos/blinkies/tooclose.gif') }}" loading="lazy" />
|
|
||||||
<img class='blinkies' alt="They took my blood but it wasn't DNA, it was USA" src="{{ url_for('static', filename='photos/blinkies/usa.gif') }}" loading="lazy" />
|
|
||||||
<img class='blinkies' alt='Bob the Builder gif' src="{{ url_for('static', filename='photos/blinkies/bobthebuilder.gif') }}" loading="lazy" />
|
|
||||||
<div>
|
|
||||||
<br />
|
|
||||||
<strong> You've reached the website for Andrew Simonson's digital shenanigans.</strong>
|
|
||||||
<h3>Now What?</h3>
|
|
||||||
<p>
|
|
||||||
Go back and find the link that I originally shared. Or poke around. Be your own person.</br>
|
|
||||||
I'll grant myself some titles while I'm at it:
|
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<p class="hero-links">
|
||||||
<li>Wicked Wizard of the West</li>
|
<a href="/projects" onclick="goto('projects'); return false;">Work</a>
|
||||||
<li>Enemy of Node.js, Hater of Bloat</li>
|
<a href="/about" onclick="goto('about'); return false;">About</a>
|
||||||
<li>Load-Bearing Coconut</li>
|
<a href="/resume">Résumé</a>
|
||||||
<li>Creator and Harnesser of Energy</li>
|
<a href="https://github.com/asimonson1125" rel="noopener noreferrer">GitHub</a>
|
||||||
|
<a href="https://www.linkedin.com/in/simonsonandrew/" rel="noopener noreferrer">LinkedIn</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="now-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="now-heading">Now</h2>
|
||||||
|
<p class="section-note">Today</p>
|
||||||
|
</div>
|
||||||
|
<dl class="now-list">
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>At work</dt>
|
||||||
|
<dd>
|
||||||
|
Primary model developer on RushReady at Ecolab: explainable anomaly
|
||||||
|
detection, plus brand-configurable recommendations
|
||||||
|
for quick-service restaurants, all running on a near-real-time Delta
|
||||||
|
Live Tables platform.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>At school</dt>
|
||||||
|
<dd>
|
||||||
|
M.S. in Data Science at Rochester Institute of Technology, focused on
|
||||||
|
probability theory, statistical learning, and Bayesian methods.
|
||||||
|
Capstone in fall 2026.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>At home</dt>
|
||||||
|
<dd>
|
||||||
|
Running a <a href="/projects#feature-homelab" onclick="goto('projects', {hash: 'feature-homelab'}); return false;">two-GPU homelab</a>
|
||||||
|
that serves Mixture-of-Experts models to coding agents over local
|
||||||
|
endpoints, and using the same rig to fine-tune small models.
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
<div class="now-item">
|
||||||
|
<dt>On the shelf</dt>
|
||||||
|
<dd>
|
||||||
|
<ul class="shelf-row" aria-label="A few favorite books">
|
||||||
|
{% for title in var.books.selection[:5] %}
|
||||||
|
{% set book = var.books.books[title] %}
|
||||||
|
<li>
|
||||||
|
<a href="/books#'{{ title }}'" onclick="goto('books', {hash: "'{{ title }}'"}); return false;" title="{{ title }}">
|
||||||
|
<img
|
||||||
|
src="{{ url_for('static', filename='photos/books/' + book.filename) }}"
|
||||||
|
alt="{{ title }}"
|
||||||
|
loading="lazy"
|
||||||
|
width="60"
|
||||||
|
height="90"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
<a class="shelf-more" href="/books" onclick="goto('books'); return false;">All reviews</a>
|
||||||
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<div class="now-item">
|
||||||
{#
|
<dt>Over the board</dt>
|
||||||
<div id="aboutCards" class="flex">
|
<dd>
|
||||||
<div class="chess">
|
<p class="chess-line">
|
||||||
{% from 'partials/chess.html' import chess %} {{
|
Playing as <a href="https://www.chess.com/member/asimonson1125" rel="noopener noreferrer">asimonson1125</a> on Chess.com.
|
||||||
chess('asimonson1125') }}
|
</p>
|
||||||
|
<p>
|
||||||
|
Aiming for 2000 in Rapid by the end of the year
|
||||||
|
</p>
|
||||||
|
<ul class="chess-ratings" id="chessRatings" aria-label="Current Chess.com ratings">
|
||||||
|
<li title="Rapid"><span class="chess-icon rapid" aria-hidden="true">Ἓ</span><span class="visually-hidden">Rapid</span> <span class="chess-value" data-stat="rapid">–</span></li>
|
||||||
|
<li title="Blitz"><span class="chess-icon blitz" aria-hidden="true">Ἔ</span><span class="visually-hidden">Blitz</span> <span class="chess-value" data-stat="blitz">–</span></li>
|
||||||
|
<li title="Bullet"><span class="chess-icon bullet" aria-hidden="true">Ἕ</span><span class="visually-hidden">Bullet</span> <span class="chess-value" data-stat="bullet">–</span></li>
|
||||||
|
<li title="Puzzles (best)"><span class="chess-icon puzzles" aria-hidden="true">ἕ</span><span class="visually-hidden">Puzzles, best</span> <span class="chess-value" data-stat="puzzles">–</span></li>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
</dl>
|
||||||
<div>
|
</section>
|
||||||
<img height='150px' alt='stabby' src="{{ url_for('static', filename='photos/electricityStabby.png') }}" loading="lazy" />
|
|
||||||
|
<section class="section" aria-labelledby="selected-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="selected-heading">Selected work</h2>
|
||||||
|
<p class="section-note"><a href="/projects" onclick="goto('projects'); return false;">Everything</a></p>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<ol class="selected-list">
|
||||||
|
{% for id, f in var.features.items() %}
|
||||||
|
<li>
|
||||||
|
<a href="/projects#feature-{{ id }}" onclick="goto('projects', {hash: 'feature-{{ id }}'}); return false;">{{ f.title }}</a>
|
||||||
|
<span>{{ f.summary or f.tagline }}</span>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="section" aria-labelledby="site-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="site-heading">What now?</h2>
|
||||||
</div>
|
</div>
|
||||||
#}
|
<div class="colophon">
|
||||||
|
<div class="colophon-text">
|
||||||
|
<p>
|
||||||
|
I wasn't really expecting anyone to read this far.
|
||||||
|
If you're looking for shared resources you've taken a wrong turn.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
This site is a living experiment: self-hosted, framework-free, and
|
||||||
|
built to last. If you'd like to talk about data science,
|
||||||
|
distributed systems, or the strange intersection of theory and
|
||||||
|
practice, <a href="mailto:asimonson1125@gmail.com">drop a line</a>.
|
||||||
|
</p>
|
||||||
|
<p class="blinkies" aria-label="Retro web badges">
|
||||||
|
<img alt="Pepsi Addict" src="{{ url_for('static', filename='photos/blinkies/pepsiaddict.gif') }}" loading="lazy" width="150" height="20" />
|
||||||
|
<img alt="If you can read this you are too close to the monitor" src="{{ url_for('static', filename='photos/blinkies/tooclose.gif') }}" loading="lazy" width="150" height="20" />
|
||||||
|
<img alt="They took my blood but it wasn't DNA, it was USA" src="{{ url_for('static', filename='photos/blinkies/usa.gif') }}" loading="lazy" width="150" height="20" />
|
||||||
|
<img alt="Bob the Builder: can we build it?" src="{{ url_for('static', filename='photos/blinkies/bobthebuilder.gif') }}" loading="lazy" width="150" height="20" />
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
<figure class="colophon-figure flex">
|
||||||
|
<img
|
||||||
|
src="{{ url_for('static', filename='photos/extradimensional.avif') }}"
|
||||||
|
alt="Seraphim over a globe"
|
||||||
|
width="180"
|
||||||
|
fetchpriority="high"
|
||||||
|
/>
|
||||||
|
<figcaption></figcaption>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
// Chess.com's public API allows cross-origin reads, so ratings load straight
|
||||||
|
// from the browser. Cached per page load so client-side navigation back to
|
||||||
|
// home doesn't refetch.
|
||||||
|
const list = document.getElementById('chessRatings');
|
||||||
|
if (!list) return;
|
||||||
|
|
||||||
|
function render(ratings) {
|
||||||
|
list.querySelectorAll('.chess-value').forEach(function (el) {
|
||||||
|
const value = ratings[el.dataset.stat];
|
||||||
|
if (value) el.textContent = value;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (window.chessStatsCache) {
|
||||||
|
render(window.chessStatsCache);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
fetch('https://api.chess.com/pub/player/asimonson1125/stats')
|
||||||
|
.then(function (res) {
|
||||||
|
if (!res.ok) throw new Error('HTTP ' + res.status);
|
||||||
|
return res.json();
|
||||||
|
})
|
||||||
|
.then(function (stats) {
|
||||||
|
const last = function (key) { return stats[key] && stats[key].last && stats[key].last.rating; };
|
||||||
|
window.chessStatsCache = {
|
||||||
|
rapid: last('chess_rapid'),
|
||||||
|
blitz: last('chess_blitz'),
|
||||||
|
bullet: last('chess_bullet'),
|
||||||
|
puzzles: stats.tactics && stats.tactics.highest && stats.tactics.highest.rating,
|
||||||
|
};
|
||||||
|
render(window.chessStatsCache);
|
||||||
|
})
|
||||||
|
.catch(function (err) {
|
||||||
|
console.warn('Chess.com ratings unavailable:', err);
|
||||||
|
// Show a subtle message instead of hiding the section
|
||||||
|
list.classList.add('chess-unavailable');
|
||||||
|
list.querySelector('.chess-value[data-stat="rapid"]').textContent = '—';
|
||||||
|
list.querySelector('.chess-value[data-stat="blitz"]').textContent = '—';
|
||||||
|
list.querySelector('.chess-value[data-stat="bullet"]').textContent = '—';
|
||||||
|
list.querySelector('.chess-value[data-stat="puzzles"]').textContent = '—';
|
||||||
|
// Add an info message after the list
|
||||||
|
var msg = document.createElement('p');
|
||||||
|
msg.className = 'chess-fallback';
|
||||||
|
msg.textContent = 'Chess.com ratings unavailable';
|
||||||
|
msg.setAttribute('aria-label', 'Chess.com ratings unavailable');
|
||||||
|
list.parentNode.insertBefore(msg, list.nextSibling);
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/hotspots.css') }}" />
|
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
|
||||||
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
|
||||||
crossorigin=""
|
|
||||||
/>
|
|
||||||
<script
|
|
||||||
src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
|
|
||||||
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
|
|
||||||
crossorigin=""
|
|
||||||
></script>
|
|
||||||
<script src="{{ url_for('static', filename='js/lib/leaflet-providers.js') }}"></script>
|
|
||||||
<script src="{{ url_for('static', filename='js/lib/CUSTOM.leaflet.curve.js') }}"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="map"></div>
|
|
||||||
<script src="{{ url_for('static', filename='js/hotspots.js') }}"></script>
|
|
||||||
</body>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{% extends "header.html" %}
|
|
||||||
{% block header %}{% endblock %}
|
|
||||||
{% block footer %}{% endblock %}
|
|
||||||
{% block content %}<iframe id="fullIframe" src="{{ url }}" title="HotspotsRIT"></iframe>{% endblock %}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{% macro chess(username) %}
|
|
||||||
<div class="black">
|
|
||||||
<div
|
|
||||||
id="chessProfile"
|
|
||||||
class="diamonds"
|
|
||||||
onClick="window.top.location.href = 'https://chess.com/member/{{ username }}'"
|
|
||||||
>
|
|
||||||
<div class="identity chessInfo">
|
|
||||||
<div class="pfpContainer">
|
|
||||||
<div>
|
|
||||||
<img class="pfp chessImage" src='{{ url_for('static',
|
|
||||||
filename='chesscom-embed/default.svg') }}' alt={{ username }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h5 class="chessName">Loading...</h5>
|
|
||||||
</div>
|
|
||||||
<div class="vContainer chessInfo">
|
|
||||||
<div class="vItem chessRapid">
|
|
||||||
<div class="chessIcon rapid">Ἓ</div>
|
|
||||||
<div class="chessStat"></div>
|
|
||||||
</div>
|
|
||||||
<div class="vItem chessBlitz">
|
|
||||||
<div class="chessIcon blitz">Ἔ</div>
|
|
||||||
<div class="chessStat"></div>
|
|
||||||
</div>
|
|
||||||
<div class="vItem chessBullet">
|
|
||||||
<div class="chessIcon bullet">Ἕ</div>
|
|
||||||
<div class="chessStat"></div>
|
|
||||||
</div>
|
|
||||||
<div class="vItem chessPuzzles">
|
|
||||||
<div class="chessIcon puzzles">ἕ</div>
|
|
||||||
<div class="chessStat"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="bottomtext">Chess.com Stat Embed by Andrew Simonson</div>
|
|
||||||
</div>
|
|
||||||
<script defer>
|
|
||||||
addChessEmbed("{{ username }}");
|
|
||||||
</script>
|
|
||||||
{%- endmacro %}
|
|
||||||
38
src/templates/partials/feature_project.html
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{% macro feature_project(id, f) %}
|
||||||
|
<article class="feature{{ ' has-figure' if f.image else '' }}" id="feature-{{ id }}">
|
||||||
|
<div class="feature-head">
|
||||||
|
<h3>{{ f.title }}</h3>
|
||||||
|
<p class="feature-tagline">{{ f.tagline }}</p>
|
||||||
|
</div>
|
||||||
|
{% if f.image %}
|
||||||
|
{% set size = f.imageSize or [1108, 1017] %}
|
||||||
|
<figure class="feature-figure feature-clip">
|
||||||
|
<img src="{{ url_for('static', filename=f.image) }}" alt="{{ f.caption or f.title }}" loading="lazy" width="{{ size[0] }}" height="{{ size[1] }}" />
|
||||||
|
{% if f.caption %}<figcaption>{{ f.caption }}</figcaption>{% endif %}
|
||||||
|
</figure>
|
||||||
|
{% endif %}
|
||||||
|
<div class="feature-body feature-clip" id="feature-{{ id }}-body">
|
||||||
|
<div class="prose">
|
||||||
|
{{ f.body | safe }}
|
||||||
|
</div>
|
||||||
|
{% if f.stack %}
|
||||||
|
<p class="feature-stack"><span class="label">Built with</span> {{ f.stack | join(', ') }}</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if f.links %}
|
||||||
|
<p class="project-links">
|
||||||
|
{% for href, label in f.links %}<a href="{{ href }}" rel="noopener noreferrer">{{ label }}</a>{% endfor %}
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<button
|
||||||
|
class="feature-expand"
|
||||||
|
type="button"
|
||||||
|
aria-expanded="false"
|
||||||
|
aria-controls="feature-{{ id }}-body"
|
||||||
|
onclick="toggleFeature(this)"
|
||||||
|
>
|
||||||
|
<span class="visually-hidden when-closed">Read more about {{ f.title }}</span>
|
||||||
|
<span class="visually-hidden when-open">Collapse {{ f.title }}</span>
|
||||||
|
</button>
|
||||||
|
</article>
|
||||||
|
{% endmacro %}
|
||||||
@@ -1,39 +1,27 @@
|
|||||||
{% macro project(title, classes, status, bgi, content, links) %}
|
{% macro project(title, classes, status, bgi, content, links) %}
|
||||||
<div class="project {{ classes }}" data-aos="fade-up">
|
{% set tags = classes.split() %}
|
||||||
<div class="projImageWrap">
|
<li class="project" id="project-{{ title | slug }}">
|
||||||
|
<div class="project-thumb">
|
||||||
{% if bgi|length > 0 %}
|
{% if bgi|length > 0 %}
|
||||||
{% set path = url_for('static', filename='photos/projects/' + bgi) %}
|
<img src="{{ url_for('static', filename='photos/projects/' + bgi) }}" alt="" loading="lazy" />
|
||||||
<img src="{{ path }}" alt="Ref image for {{ title }} project" />
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="projImagePlaceholder"></div>
|
<div class="project-thumb-empty" aria-hidden="true"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="projContent">
|
<div class="project-body">
|
||||||
<div class="projTitleRow">
|
|
||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
<span class="proj-status {{ status }}">{{ status }}</span>
|
<p class="project-meta">
|
||||||
</div>
|
<span class="status status-{{ status }}">{{ status }}</span>
|
||||||
{% if classes %}
|
{% if tags %}<span class="sep" aria-hidden="true">·</span> {{ tags | join(', ') }}{% endif %}
|
||||||
<div class="projTags">
|
</p>
|
||||||
{% for cls in classes.split() %}
|
<p class="project-desc">{{ content }}</p>
|
||||||
{% if cls != 'pinned' %}<span class="proj-tag">{{ cls }}</span>{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<p class="projDesc">{{ content }}</p>
|
|
||||||
{% if links %}
|
{% if links %}
|
||||||
<div class="projLinks">
|
<p class="project-links">
|
||||||
{% for i in links %}
|
{% for i in links if i[1].startswith(('https://', 'http://', '/')) %}
|
||||||
{% set src = 'icons/' + i[0] + '.svg' %}
|
<a href="{{ i[1] }}" rel="noopener noreferrer">{{ i[2] }}</a>
|
||||||
{% if i[1].startswith('https://') or i[1].startswith('http://') %}
|
|
||||||
<a href="{{ i[1] }}" rel="noopener noreferrer" class="proj-link">
|
|
||||||
<img class="projectLink" src="{{ url_for('static', filename=src) }}" alt="{{ i[0] }}" />
|
|
||||||
<span>{{ i[2] }}</span>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
@@ -1,59 +1,33 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground"></div>
|
<div class="page">
|
||||||
<div class="relative growBottom">
|
<header class="page-head">
|
||||||
<div id="nametag" class="flex" data-aos="fade-up">
|
<h1 class="display">Work</h1>
|
||||||
<div>
|
<p class="lede">
|
||||||
<h1 class="textGrad">Work</h1>
|
Production data science, research, and the tooling I build for myself. Open a highlight for the full write-up.
|
||||||
<h2>Projects & experiments</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="homeSubContent">
|
|
||||||
<div class="foregroundContent">
|
|
||||||
|
|
||||||
<!-- About / Intro -->
|
|
||||||
<div style="max-width: 52em; margin-bottom: 3em;">
|
|
||||||
<p>
|
|
||||||
I'm Andrew Simonson<!--, CEO of the anti-thermodynamics syndicate.-->,
|
|
||||||
a <strong>Data Scientist at Ecolab</strong> and a graduate Data
|
|
||||||
Science student at
|
|
||||||
<strong>Rochester Institute of Technology</strong>, having
|
|
||||||
recently completed the <b>Computer Science BS</b> program
|
|
||||||
(international relations minor) with a focus on probability
|
|
||||||
theory.
|
|
||||||
<br/>
|
|
||||||
<br/>
|
|
||||||
I get bored and throw random stuff on this website.<br/>
|
|
||||||
This is what unprofessional development looks like.
|
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
</header>
|
||||||
<p style="color: var(--text-secondary); font-size: 0.9rem;">
|
|
||||||
I also have a
|
|
||||||
<a href="certs">certifications page</a>
|
|
||||||
and a
|
|
||||||
<a href="Resume_Simonson_Andrew.pdf" target="_blank">resume</a>
|
|
||||||
for unexplained reasons.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Skills -->
|
<section class="section" aria-labelledby="highlights-heading">
|
||||||
<div id="skills" style="margin-bottom: 3.5em;">
|
<div class="section-head">
|
||||||
<h2>Technologies</h2>
|
<h2 id="highlights-heading">Highlights</h2>
|
||||||
{% from 'partials/skills.html' import skills %} {{
|
|
||||||
skills(var['skillList']) }}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% from 'partials/feature_project.html' import feature_project %}
|
||||||
|
{% for id, f in var.features.items() %}
|
||||||
|
{{ feature_project(id, f) }}
|
||||||
|
{% endfor %}
|
||||||
|
</section>
|
||||||
|
|
||||||
<!-- Projects -->
|
<section class="section" aria-labelledby="all-heading">
|
||||||
<h2>Projects</h2>
|
<div class="section-head">
|
||||||
<div class="projectList">
|
<h2 id="all-heading">More projects</h2>
|
||||||
{% from 'partials/project.html' import project %} {% for i in
|
<p class="section-note">{{ var.projects | length }} entries</p>
|
||||||
var["projects"] %} {{ project(i, var["projects"][i]["classes"],
|
|
||||||
var["projects"][i]["status"], var["projects"][i]["bgi"],
|
|
||||||
var["projects"][i]["content"], var["projects"][i]["links"]) }} {% endfor
|
|
||||||
%}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<ol class="project-list">
|
||||||
|
{% from 'partials/project.html' import project %}
|
||||||
|
{% for title, item in var.projects.items() %}
|
||||||
|
{{ project(title, item.classes, item.status, item.bgi, item.content, item.links) }}
|
||||||
|
{% endfor %}
|
||||||
|
</ol>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,100 +1,80 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="foreground"></div>
|
<div class="page">
|
||||||
<div class="foregroundContent">
|
<header class="page-head">
|
||||||
<h2 class='concentratedHead'>Service Status Monitor</h2>
|
<h1 class="display">Status</h1>
|
||||||
|
<p class="lede">
|
||||||
|
Uptime for the services I host myself, checked every minute from the
|
||||||
|
server. This page refreshes itself on the same schedule.
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="info-box" role="region" aria-label="Status overview">
|
<section class="section status-summary" id="overallStatus" role="status" aria-live="polite">
|
||||||
<div class='flex spaceBetween'>
|
<div class="status-summary-main">
|
||||||
<div>
|
|
||||||
<span id="lastUpdate" aria-live="polite">Last checked: Loading...</span>
|
|
||||||
<br />
|
|
||||||
<span id="nextUpdate" aria-live="polite">Next check: --</span>
|
|
||||||
</div>
|
|
||||||
<button id="refreshBtn" onclick="refreshStatus()" aria-label="Refresh service status now">Refresh Now</button>
|
|
||||||
</div>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<h4>Status Legend</h4>
|
|
||||||
<div class="legend-items">
|
|
||||||
<div class="legend-item">
|
|
||||||
<span class="state-dot online"></span>
|
|
||||||
<span>Operational (response successful)</span>
|
|
||||||
</div>
|
|
||||||
<div class="legend-item">
|
|
||||||
<span class="state-dot degraded"></span>
|
|
||||||
<span>Degraded (timeout or errors)</span>
|
|
||||||
</div>
|
|
||||||
<div class="legend-item">
|
|
||||||
<span class="state-dot offline"></span>
|
|
||||||
<span>Offline (unreachable)</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Overall Status Bar -->
|
|
||||||
<div class="info-card summary-card" id="overallStatus" role="status" aria-live="polite">
|
|
||||||
<div class="summary-content">
|
|
||||||
<div class="summary-indicator">
|
|
||||||
<span class="summary-icon loading" aria-hidden="true">◐</span>
|
<span class="summary-icon loading" aria-hidden="true">◐</span>
|
||||||
<div>
|
<div>
|
||||||
<h3 class="summary-title">Checking Systems...</h3>
|
<h2 class="summary-title">Checking systems</h2>
|
||||||
<h5 id="summary-subtitle">Loading service status</h5>
|
<p class="summary-subtitle" id="summary-subtitle">Loading service status</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex spaceBetween">
|
<dl class="status-facts">
|
||||||
<div class="metric-box">
|
<div>
|
||||||
<span class="metric-number" id="onlineCount" aria-label="Online services">--</span>
|
<dt>Online</dt>
|
||||||
<span class="metric-label">Online</span>
|
<dd><span id="onlineCount" aria-label="Online services">--</span> of <span id="totalCount" aria-label="Total services">--</span></dd>
|
||||||
</div>
|
|
||||||
<div class="metric-box">
|
|
||||||
<span class="metric-number" id="totalCount" aria-label="Total services">--</span>
|
|
||||||
<span class="metric-label">Total</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<dt>Last checked</dt>
|
||||||
|
<dd id="lastUpdate">Loading</dd>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<dt>Next check</dt>
|
||||||
|
<dd id="nextUpdate">--</dd>
|
||||||
</div>
|
</div>
|
||||||
|
</dl>
|
||||||
|
<button id="refreshBtn" class="button" type="button" onclick="refreshStatus()" aria-label="Refresh service status now">Refresh now</button>
|
||||||
|
</section>
|
||||||
|
|
||||||
<div class="card-grid" role="list" aria-label="Service status cards">
|
<section class="section" aria-labelledby="services-heading">
|
||||||
|
<div class="section-head">
|
||||||
|
<h2 id="services-heading">Services</h2>
|
||||||
|
<p class="section-note">Uptime over 24 hours, 7 days, 30 days, and all time</p>
|
||||||
|
</div>
|
||||||
|
<div class="table-wrap">
|
||||||
|
<table class="status-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">Service</th>
|
||||||
|
<th scope="col">State</th>
|
||||||
|
<th scope="col" class="num">Response</th>
|
||||||
|
<th scope="col" class="num">Code</th>
|
||||||
|
<th scope="col" class="num">Checks</th>
|
||||||
|
<th scope="col">Uptime</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for service in var.services %}
|
{% for service in var.services %}
|
||||||
<a href="{{ service.url }}" class="info-card-link" id="status-{{ service.id }}" role="listitem">
|
<tr id="status-{{ service.id }}">
|
||||||
<div class="info-card">
|
<th scope="row"><a href="{{ service.url }}" rel="noopener noreferrer">{{ service.name }}</a></th>
|
||||||
<div class="card-header">
|
<td>
|
||||||
<h3>{{ service.name }}</h3>
|
<span class="state-indicator">
|
||||||
<div class="state-indicator">
|
<span class="state-dot loading" aria-hidden="true"></span>
|
||||||
<span class="state-dot loading" aria-label="Status: Loading..."></span>
|
<span class="state-text">Loading</span>
|
||||||
<span class="state-text">Loading...</span>
|
</span>
|
||||||
</div>
|
</td>
|
||||||
</div>
|
<td class="num" id="time-{{ service.id }}">--</td>
|
||||||
<div class="card-body">
|
<td class="num" id="code-{{ service.id }}">--</td>
|
||||||
<div class="metric-row">
|
<td class="num" id="checks-{{ service.id }}">--</td>
|
||||||
<span class="metric-label">Response Time:</span>
|
<td class="uptime" id="uptime-{{ service.id }}">Loading</td>
|
||||||
<span class="metric-value" id="time-{{ service.id }}" aria-live="polite">--</span>
|
</tr>
|
||||||
</div>
|
|
||||||
<div class="metric-row">
|
|
||||||
<span class="metric-label">Status Code:</span>
|
|
||||||
<span class="metric-value" id="code-{{ service.id }}" aria-live="polite">--</span>
|
|
||||||
</div>
|
|
||||||
<div class="metric-row">
|
|
||||||
<span class="metric-label">Total Checks:</span>
|
|
||||||
<span class="metric-value" id="checks-{{ service.id }}" aria-live="polite">--</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-footer">
|
|
||||||
<div class="detail-label">Uptime:</div>
|
|
||||||
<div class="detail-values" id="uptime-{{ service.id }}" aria-live="polite">Loading...</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="table-note">
|
||||||
<div class="info-box">
|
<span class="state-dot online" aria-hidden="true"></span> operational
|
||||||
<h4>About This Monitor</h4>
|
<span class="state-dot degraded" aria-hidden="true"></span> degraded or timed out
|
||||||
<ul>
|
<span class="state-dot offline" aria-hidden="true"></span> unreachable
|
||||||
<li><strong>Check Frequency:</strong> Services are checked automatically every minute from the server</li>
|
</p>
|
||||||
<li><strong>Page Refresh:</strong> This page auto-refreshes every minute to show latest data</li>
|
</section>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="{{ url_for('static', filename='js/status.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/status.js') }}"></script>
|
||||||
|
|||||||