summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Index.page1
-rw-r--r--books/2019.page168
-rw-r--r--books/2020.page33
-rw-r--r--books/to-read.page15
-rw-r--r--film/2018.page2
-rw-r--r--film/2019.page91
-rw-r--r--film/2020.page105
-rw-r--r--film/2021.page112
-rw-r--r--film/2022.page110
-rw-r--r--film/to-watch.page103
-rw-r--r--networking/bandwidth.page14
-rw-r--r--outdoorsing/2021_trips.md27
-rw-r--r--outdoorsing/gear.md13
-rw-r--r--outdoorsing/hiking_trips_2018.txt50
-rw-r--r--outdoorsing/mountains/shasta.txt39
-rw-r--r--outdoorsing/paragliding.md45
-rw-r--r--outdoorsing/planning_tools.page8
-rw-r--r--scratch.txt17
-rw-r--r--scratch/artists.page (renamed from misc/artists.page)0
-rw-r--r--scratch/common_as_air_book_nots.txt (renamed from tmp/common_as_air_book_nots.txt)0
-rw-r--r--scratch/expat.txt (renamed from tmp/expat.txt)0
-rw-r--r--scratch/newcomb-paradox.page (renamed from misc/newcomb-paradox.page)0
-rw-r--r--scratch/numerical_computation.txt (renamed from tmp/numerical_computation.txt)0
-rw-r--r--scratch/nz.page (renamed from tmp/nz.page)0
-rw-r--r--scratch/payments.page (renamed from misc/payments.page)0
-rw-r--r--scratch/review_nonblocking_verilog_kill (renamed from tmp/review_nonblocking_verilog_kill)0
-rw-r--r--scratch/teaching-cs.page (renamed from tmp/teaching-cs.page)0
-rw-r--r--scratch/topics-of-curiosity.page (renamed from tmp/topics-of-curiosity.page)0
-rw-r--r--software/Xorg.page3
-rw-r--r--software/api.page6
-rw-r--r--software/bash.page2
-rw-r--r--software/css.page20
-rw-r--r--software/debian.page41
-rw-r--r--software/design_ethics.page23
-rw-r--r--software/ebook_reader.page24
-rw-r--r--software/golang.page15
-rw-r--r--software/javascript.page29
-rw-r--r--software/packaging.page4
-rw-r--r--software/photos.txt2
-rw-r--r--software/postgres.page20
-rw-r--r--software/python.page30
-rw-r--r--software/rsyslog.page20
-rw-r--r--software/rust.page118
-rw-r--r--software/rust_libs.txt7
-rw-r--r--software/sign_pdf.md16
-rw-r--r--software/web-design.page3
46 files changed, 1308 insertions, 28 deletions
diff --git a/Index.page b/Index.page
index d6662be..00410d9 100644
--- a/Index.page
+++ b/Index.page
@@ -18,7 +18,6 @@ right in to:
* [/places/]()
* [/ideas/]()
* [/products/]()
- * [/misc/]()
This wiki is run on gitit, a Haskell web application built on top of the Pandoc
formating package and the git revision system; see the [Gitit User's Guide]()
diff --git a/books/2019.page b/books/2019.page
new file mode 100644
index 0000000..762e1bf
--- /dev/null
+++ b/books/2019.page
@@ -0,0 +1,168 @@
+
+Cataloging The World: Paul Otlet and the Birth of the Information Age, by Alex Wright
+-----------------------------------------------------------------------------------------
+
+> The huge mass of published material grows by the day, by the hour, in
+> amounts that are disconcerting and sometimes maddening. Like water falling
+> from the sky, it can either cause flooding or beneficial irrigation
+
+I loved this book!
+
+Notes while reading:
+
+- "Biblion" as a unit of writing (and knowledge).
+- Embodied Cognition
+
+
+Singlularity Sky, by Charlie Stross
+--------------------------------------
+
+Had I really not read this? Maybe and forgot. Such strong optimism for info
+maximalism and info-structures. Characters and writing meh; mostly interesting
+for the taste of period (cyber)idiology.
+
+Overall, standard 90s singularity/space-opera genre fare.
+
+
+Dark Matter, by Blake Crouch (2016)
+--------------------------------------
+
+Simple book, pretty well executed. Read like a film script, or a TV episode,
+but with more twists. I liked the last quarter; much of the early exposition
+was very slow and predictable. Good balance of fine details while glossing over
+some hard physics which could have been an over-reach.
+
+
+Oranges, by John McPhee
+---------------------------
+
+Ate so many oranges after reading this. Cara Caras are great, but had some
+incredibly juicy flavorful oranges with Lucy at the kitchen table that now are
+driving me mad that I can't remember the type. Changed my standards a lot: many
+navels are great, many other easy-to-peel don't actually have much flavor.
+
+Orangeries! Florida!
+
+I like the small bit of 4th wall that McPhee breaks.
+
+
+The World of Edena, by Moebius
+----------------------------------
+
+Always such a feeling of boundless creative universe with Moebius; could just
+go on forever. Feels dated in a sometimes uncomfortable way (lots of naked
+ladies), but also fresh and humanist.
+
+
+The City and The City, by China Meville
+-----------------------------------------
+
+For whatever reason I was skeptical going in... too popular? Too heavy-handed a
+gimick? But liked it immediately, both the structure and the
+characters/exposition. Not super happy with the resolution of the mystery, but
+very happy with how the character arcs ended.
+
+
+Broken Earth Trilogy by N. K. Jemisin (2015-2017)
+-----------------------------------------------------------------------------
+
+Oof, I binge-read this trilogy (**The Fifth Season**, **The Obelisk Gate**, and
+**The Stone Sky** in one week, which wasn't particularly healthy, and wasn't
+mindful or thoughtful.
+
+The books were tightly written and well paced. I mostly liked the characters,
+but the "world building" and exposition felt like the real show here. The mix
+of magical realism and sci-fi worked surprisingly well to me, though I think I
+prefered the fuzzy-but-hard science of Anathem (by N. Stephenson) more.
+Surprised how fascinated in the "orogenes" power/curse I was.
+
+Overall well written and different. During and after I keep thinking of this as
+young-adult or genre entertainment reading; there's more to it than that, but
+also less than more traditional adult literature.
+
+
+Energy by Richard Rhodes (201?)
+--------------------------------
+
+After "Making of the Atomic Bomb", a bit of a narrative disapointment, though
+it is just a different sort of book. Felt like a series of snapshots, none deep
+enough to feel like I really understood the course and pressures that lead to
+success of different energy technologies.
+
+An over-arching theme was that ideas were had well before acceptance; it was
+often a combination of small technical polish *and* external economic or
+political changes that led to a new source being adopted.
+
+Narrative of coal, steam engine, and trains being intertwined was interesting:
+coal nominally being used as a heating source, but required engines for
+economical mining and transport; the engines themselves requiring cheap coal to
+be worth developing. And along the way land-use regulation being a blocker.
+
+Surprising to hear how much the negative health impacts of fossil fuels were
+known from the begining, and how bad the (local) environmental impacts were.
+The global impact gets so much more attention today. The period belief from the
+start that oil and coal reserves would run out. How poor Saudi Arabia was, and
+how narrowly the kingdom survived by oil exploration taking off at just the
+right moment.
+
+Part of what makes Niagra such a great power location is that the lake it
+drains is a huge buffer of stored water (thus energy), and the flow rate can be
+controlled at will (no flooding). More than a year of reserve water at full
+full (including the fact that water level would be decreasing).
+
+Didn't know that religious minorities on Nantucket partially moved back to
+Europe at some point to continue to pursue whaling.
+
+
+Roadside Picnic
+------------------
+
+Oh, I really loved this. Very Russian. Explains "Stalker" the same way "2001: A
+Space Odessy" makes sense if you read the script/narration.
+
+The informal/intimate stalkers against the official/institutional scientists
+were so spot-on. This pattern doesn't always hold in sci/tech world, but it is
+pretty common.
+
+
+Devil and the White City by Eric Larson
+-------------------------------------------
+
+Decent, easy flight reading. Focus on the serial killer thread is of course
+only on the principle actors, but in the case of the fair, the focus on a
+handful of leaders and planners was less compelling.
+
+The scale of the Fair as a singular and super-human event really comes through.
+Will this sort of economic activity and make-work become more popular during
+late capitalism? Or post-scarcity? I continue to be perplexed why the scale of
+architecture gets less ambitious as society becomes more technically powerful;
+was it really dependent on economic inequality and exploitation of labor? Don't
+we have that again today?
+
+The background of economic recession, homelessness, and desparation against the
+robber barons funding and directing the World's Faire seemed like the real
+story and didn't get much coverage in depth.
+
+Combined with "Cadillac Desert", paints a story of agricultural development of
+the American mid-west as an economic and policy tragedy of the same
+incompetence as Soviet/Mao-ist economic planning, though of course far less of
+a tragedy in the end as most were able to survive and freely relocated.
+
+
+The Overstory by Richard Powers
+--------------------------------
+
+Decent, not spectacular. Most of the individual story threads would not have
+stood well on their own. The tree protectors were the most compelling to me:
+the aimless artist with a family flipbook of great tree growth, and the
+near-death college dropout. The various endings are pretty dramatic.
+
+Had echos of "The Wizard and the Prophet".
+
+
+Gandhi
+----------
+
+Easy read; very basic introduction to the person and this period in history.
+Read because even this much I did not know!
+
diff --git a/books/2020.page b/books/2020.page
new file mode 100644
index 0000000..16a321f
--- /dev/null
+++ b/books/2020.page
@@ -0,0 +1,33 @@
+
+
+Tai Pan
+========
+
+
+The Nobel House
+=================
+
+
+Patience and Fortitude
+========================
+
+
+Looking For a Ship
+=====================
+
+
+Edition of One (Eugene Powers, University Microfilms)
+=========================================================
+
+WWII; intelligence work.
+
+ARL meeting sealed fate as sole provider of dissertation publishing in USA.
+
+Regant of U. Michigan.
+
+
+The Moon is a Harsh Mistress
+================================
+
+Decent.
+
diff --git a/books/to-read.page b/books/to-read.page
index c8b5f3c..556d0f3 100644
--- a/books/to-read.page
+++ b/books/to-read.page
@@ -10,9 +10,9 @@ Novels
* The Corrections by Jonathan Franzen
* The Magic Mountain, thomas mann
* Grapes of Wrath
-* The Illuminatus! Trilogy
* The Sympathizer by Viet Thanh Nguyen
-* Red Plenty (historical fiction)
+* Midnght's Children by Rushdie
+* Big Sur by Jack Kerouac
Old Classics:
@@ -29,6 +29,8 @@ Science/Tech
* War in the Age of Intelligent Machines by Manuel De Landa
* Nonlinear Time Series Analysis, Holger Kantz Thomas Schreiber
* Field Notes on Science & Nature
+* The Nature of Mathematical Modeling
+* Spacetime and Geometry by Sean Carroll
Philosophy
===============
@@ -44,9 +46,13 @@ Philosophy
History and Politics
=======================
+* Origins of Totalitarianism by Arendt
+* Swaraj, Gandhi
* Reflections on the Revolution in France by Edmund Burke
* The Art of Intelligence by Henry Crumpton (CIA history)
* The Conscience of a Conservative "by" Barry Goldwater
+* The City in History by Lewis Mumfordk
+* Dark Age Ahead by Jane Jacobs
Chinese History:
@@ -58,5 +64,6 @@ Other Non-Fiction
=====================
* Looking for a Ship, John McPhee (merchant marine)
-* Uncommon Carriers, John McPhee (shipping)
-* The Making of the Atomic Bomb by Richard Rhodes
+* The Educated Mind: How Cognitive Tools Shape Our Understanding
+* The Feminine Mystique by Betty Friedan
+* A Sand Country Almanac by Aldo Leopold
diff --git a/film/2018.page b/film/2018.page
index 1aae06f..af6694c 100644
--- a/film/2018.page
+++ b/film/2018.page
@@ -41,7 +41,7 @@ I would take 8 1/2 over this film in a heartbeat.
Infernal Affairs II
---------------------
-Saw it on the plane and don't remember much, which was a losss.
+Saw it on the plane and don't remember much, which was a loss.
Die Hard
--------
diff --git a/film/2019.page b/film/2019.page
new file mode 100644
index 0000000..cec3ab9
--- /dev/null
+++ b/film/2019.page
@@ -0,0 +1,91 @@
+
+
+"Recent Godard Film" (can't remember title)
+---------------------------------------------
+
+This was a "hard" serious film, and to be honest I didn't follow a single
+minute of it. I think rmo, who I saw it with, saw and connected much more, but
+even his explanations didn't make any sense to me. Still not sure if
+disapointed in myself (for not knowing more context?) or the film (for being
+inscrutiable, and/or indulgent and vapid). Reminded me of the Orson Wells film
+from last year.
+
+
+John Wick 3
+--------------
+
+Saw with mouse; I think most of my enjoyment came as spill over. The library
+scene was fun, the desert shootout with doggies was gripping. The degree of of
+style but total ridiculousness is new to me. I liked the type-writer
+score-keeping room entirely run by punk (women?) in starched white shirts.
+
+
+Southland Tales
+-----------------
+
+Re-watched this at home in SF with Lucy and Will. They didn't love it, but
+could stomach it, I think. Had recently visited LA and it was sort of fun to
+remember real locations. Just after screening I felt disapointed and over it
+(heavy-handed, long, slow, plot is a mess, gag-oriented, indulgent, whatever),
+but now months later I still feel like I love the film for it's weirdness, the
+musical scene, and Dwayne Johnson.
+
+
+"Flamboyant Portugese Film" (can't remember title)
+---------------------------------------------------
+
+Mixed/weird feelings about this one. It wasn't very good overall, lots of slow
+or "ugh" jokes and moments, but there were enough surreal visual gags to be
+compeling.
+
+I liked the undercover character, and of course the pink puppy football
+sequences. Having it be another culture (Portugal) and language made it easier
+to laugh, though very close to the bone (Trump era).
+
+
+Crappy MCU Films
+-----------------
+
+Guess I watched a bunch of these this spring? Final Avengers film, Captain
+America? Can't even remember now. I love a summer blockbuster; I fondly
+remember escaping NYC heat and humidity for giant robot battles, and the
+spectacle of Cinerama action films. But feel like the pattern of shutting off
+higher brain function and letting the high-production-value slurry drain down
+has become addictive and un-fun.
+
+
+The Farewell (2019)
+---------------------
+
+Saw with Lucy at the Egyptian in Seattle. A good film, would recommend in
+general, but it particularly touched both Lucy and me for being so close to her
+personal family story and travel experiences in China (both her own trips and
+us together to see her family). The theater was full of couples in tears.
+
+I liked this so much more than "Crazy Rich Asians", though it probably won't
+reach as wide an audience.
+
+
+Only God Forgives
+--------------------
+
+Meh.
+
+
+Towering Inferno
+--------------------
+
+SF Hyatt Regency, OJ Simpson, etc!
+
+
+I am Love
+-------------
+
+Solid family drama. Always love Tilda Swinton in anything.
+
+
+American Psycho
+-------------------
+
+Alright I guess, only watched for the pop culture.
+
diff --git a/film/2020.page b/film/2020.page
new file mode 100644
index 0000000..392a2a1
--- /dev/null
+++ b/film/2020.page
@@ -0,0 +1,105 @@
+
+Encounters At The End Of The World (2007)
+------------------------------------------------
+
+Rewatched with friends.
+
+
+Hard Boiled
+-------------
+
+So good!
+
+
+The Net (1995)
+----------------
+
+Meh. Very 90s.
+
+
+Subway
+-----------
+
+Fun, aesthetic, but didn't feel like there was much there there. Sort of
+reminded me of Buckaroo Banzai.
+
+
+Pain and Glory (Almadovar)
+-------------------------------------
+
+This was great! Hard to put a finger on why exactly I liked it so much though.
+Obviously much less tranditionally masculine than 8 1/2.
+
+
+Bullitt
+--------------
+
+This has been on my list since J screened "Green Fog" for me at the archive,
+for the San Francisco setting. McQueen is swaggery, though I expected even
+more aggression from the reputation the film has. The chase scene is wild and
+great. The cafe and SF culture establishing shots were unexpected.
+
+To be honest had to check some of the plot points online after... screen we
+watched on didn't have good audio.
+
+I watched "Towering Inferno" before this, partially for the same "Green Fog"
+motivation, and partially because it features the Embarcadero Hyatt atrium.
+Also features McQueen and a couple other scenes were similar (everybody in
+Pacific Heights is rich and horrible), but Bullitt is much better.
+
+Those blue McQueen eyes!
+
+
+American Factory
+--------------------
+
+Some memorible bits, but in the end felt sort of aimless.
+
+
+Pain and Glory
+-----------------
+
+Good.
+
+
+How to Get Ahead in Advertising
+---------------------------------
+
+I didn't like this as much as I expected I would? Manic, ranty, nice Cronberg-y
+bits.
+
+The Lighthouse
+------------------
+
+Weird, intense. Good? Acting was great. Dialog was hard to understand at times.
+
+
+Bombshell
+-------------
+
+This was good. A juicy, buzzy story.
+
+
+--------
+
+- BlacKkKlansman
+- 10 year (HK)
+- Spy Game
+- Contagion
+- uncut gems
+- just mercy
+- the core
+- the killer (1989)
+- plot against america (TV)
+- adaptation
+- mean girls
+- da 5 bloods
+- the craft
+- shadow
+- as tears go by
+- rat film
+- the deuce (tv)
+
+
+next?
+- show me a hero
diff --git a/film/2021.page b/film/2021.page
new file mode 100644
index 0000000..2b92436
--- /dev/null
+++ b/film/2021.page
@@ -0,0 +1,112 @@
+
+Blade Runner 2049
+=================
+
+Re-watched, held up well. Robin Wright and Jared Leto are great.
+
+
+Serenity
+=========
+
+Re-watched, meh.
+
+
+John Wick (1 and 2)
+====================
+
+A tiny bit cheeky, but mostly just high-budget, well-made, generic action.
+Entertaining if you like watching fight scenes. Airplane films.
+
+
+Some Kind of Heaven
+======================
+
+The documentary about "The Villages", a city-sized retirement community in
+Florida. I expected to be a more direct documentary about the place, but this
+ended up being mostly a series of character studies. Some of the scenes and
+interviews were somewhat unbelievable; were they staged? Especially the
+unremorseful and blunt psychonaut husband.
+
+
+Tokyo Story
+============
+
+Watched with L, B, and C on a trip to the Olympic Penninsula. Many classic
+shots. Slow, thoughtful. Apparently the creators didn't think it
+would get much international reception because it was "too Japanese", but I was
+surprised how universal it felt. Also surprised it was able to be produced at
+all in the near post-war period.
+
+
+Sherpa and Fourteen Peaks
+===========================
+
+Two separate documentaries about Himalayan mountaineering, both pretty good.
+The 14 peaks story is almost unbelievable, and feels borderline foolhardy, he
+just climbs so fast and hard and takes risks to meet an arbitrary time limit.
+
+
+Dune (2021)
+============
+
+Very pretty, some nice scenes, characters, costumes, and world-building. In the
+end felt like just eye candy and "entertainment" though, did not add anything
+special or new to the story telling. This is a finely executed and polished
+film, but David Lynch's version brought a lot more to the table.
+
+Following (1998)
+================
+
+The Thin Man (1934)
+=====================
+
+They Live
+==========
+
+The Blues Brothers (1980)
+==========================
+
+Dead Pigs
+==========
+
+Prisoners (2013)
+=================
+
+Long Day's Journey into Night (2018)
+=====================================
+
+Incendies
+==========
+
+This was very good, though parts of it were so brutal they felt like a stab in
+the back by the directory/screenwriter.
+
+Black Bear
+==========
+
+
+No Time to Die
+===============
+
+Bond, not particularly memorable. Airplane film.
+
+
+The Grandmaster
+=================
+
+Will watch Tony Leung in anything. The early scenes were fun. Some characters
+were confusingly just pasted in to the film with no other context. Airplane
+film.
+
+
+Suicide Squad
+===============
+
+L liked this so I gave it a try. Was surprisingly enjoyable, especially the
+first 10-15 minutes.
+
+The French Dispatch
+=====================
+
+Don't Look Up
+==============
diff --git a/film/2022.page b/film/2022.page
new file mode 100644
index 0000000..d1261c4
--- /dev/null
+++ b/film/2022.page
@@ -0,0 +1,110 @@
+
+Black Mirror: San Junipero
+===========================
+
+Watched because it gets referenced a lot in pop culture. Decent, but I didn't
+like it as much as the similar (to me) episode with the mortal kombat fighting,
+which had a lot of similar themes.
+
+
+Force Majure (original)
+=========================
+
+I don't know if I liked this or not.
+
+
+Downfall (Der Untergang, 2004)
+===============================
+
+
+Bad Luck Banging or Loony Porn
+===============================
+
+Was excited for this, but it was sort of all over the place.
+
+Memoria
+==========
+
+Audio-heavy, with Tilda Swinton. Watched with N, really liked it. Many Great
+scenes. Some later parts were borderline, almost gave up on it, but held it
+together, and I liked it.
+
+Point Break (1991)
+===================
+
+Everything Everywhere All at Once
+===================================
+
+Probably best film i've seen this year.
+
+Parallel Mothers (Madres Paralelas)
+=====================================
+
+Pretty great!
+
+Kimi
+=======
+
+Licorice Pizza
+================
+
+Life in the Freezer (TV)
+=========================
+
+The Batman (2022)
+==================
+
+Severance, Season One (TV)
+==========================
+
+Started well, has some great twists, and the premise works well. But very
+little gets resolved, feels like a setup for a long series.
+
+The Host
+========
+
+Wrath of Man
+============
+
+Generic action, entertaining.
+
+The Eight Hundred
+=================
+
+Melodramatic Chinese WW2 war film set in a building in Shanghai right next to
+the international quarter. High budget, bloody.
+
+
+Police Story
+============
+
+Light and funny, lots of physical comedy.
+
+
+The Unbearable Weight of Massive Talent (2022)
+==============================================
+
+The "Nick Cage playing Nick Cage" film. Not as good as hoped.
+
+
+Strangers on a Train (1951)
+============================
+
+Not as tight and good as some Hitchcock, but pretty memorable.
+
+
+The Gray Man (2022)
+=====================
+
+Ryan Reynolds, generic action film. Large budget, but didn't feel very
+glamorous. Silly, but also sort of trying too hard.
+
+
+For All Mankind (TV, 2022 Season)
+===================================
+
+Big budget, Apple TV, speculative fiction slash alternate history. Decent
+mainstream TV, mostly character driven.
+
+The Wind Rises (2013)
+=====================
diff --git a/film/to-watch.page b/film/to-watch.page
index 4b56159..d9b4df4 100644
--- a/film/to-watch.page
+++ b/film/to-watch.page
@@ -54,10 +54,8 @@ Films To Watch
* 500 Days of Summer
* God Bless America
* The Game (Fincher)
- * American Psycho
* Network
* The Tree of Life
- ! Glengarry Glen Ross
* The Man Who Wasn't There (2001, Coen Brothers)
* House of Games
* We Children from Bahnhof Zoo (Christiane F)
@@ -72,7 +70,6 @@ Films To Watch
* Summer Wars (2009, anime)
* Together (2000, Swedish)
* A Midsummer Night's Sex Comedy (Woody Allen)
- * I Am Love (Tilda Swinton)
* Margin Call
* The Listening (2006)
* Pather Panchali (1955)
@@ -94,15 +91,11 @@ Films To Watch
* The Untouchables (1987)
* City of Women (Felini, 1980)
* Norma Rae
- * Subway (Luc Besson)
* The Tall Blond Man With One Black Shoe
- * Genesis II (Roddenberry; 1973; Futurama-like plot) (also "The Questor
- Tapes")
- * Star Trek: Into Darkness (2013)
+ * Genesis II (Roddenberry; 1973; Futurama-like plot) (also "The Questor Tapes")
* Hard to Be a God (2014)
* Songs from the Second Floor (2000)
* Downfall (2004)
- * Inside Llewyn Davis
* Cache (2005, Haneke)
* Volver
* Talk To Her
@@ -114,16 +107,72 @@ Films To Watch
* Arabian Nights (2015, Gomes, 3 parts)
* Knight of Cups (2015)
* Titus (1999; Shakespearean)
- * Agora (Library of Alexandria, 2009)
- * Only God Forgives (Bangkok Ryan Gosling, 2013)
* Daisies (Czech new wave, 1966, Věra Chytilová)
* Woman on Top (Penelope Cruz romcom, 2000)
* Okja (2017)
* All About Eve (1950)
+ * The Founder (McDonalds; 2017)
+ * Wax or the Discovery of Television Among the Bees (1991; net art)
+ * Song of the Exile (1990, HK, Maggie Cheung)
+ * Center Stage (1991, HK, Maggie Cheung)
+ * Clean (Assayas, Maggie Cheung)
* The Big Chill (Jeff Goldblum)
+ * Hunger (2008, McQueen)
+ * Adults in the Room (2019; Yanis Varofakis)
+ * Virtuosity (1995)
+ * Black is King (Beyonce, 2020)
+ * Lucky Grandma (2020)
+ * She's Gotta Have It
+ * 25th Hour
+ * Police Story (Jackie Chan)
+ * Cameraperson (2016)
+ * Dick Johnson Is Dead (2020)
+ * The Master (2012)
+ * Magic Mike (2012)
+ * Shadow (2019)
+ * Princess of the Row (2020)
+ * The Public (2018)
+ * Ballad of Buster Scruggs (2018)
+ * Redefining the Anti-War Film (long essay)
+ * Ma Rainey's Black Bottom (?)
+ * A Star Is Born
+ * Three Days of the Condor
+ * 1900
+ * Mank (December 2020)
+ * Force Majeure
+ * Judas and the Black Messiah
+ * Black Bear
+ * Family Romance, LLC (2019, Herzog)
+ * Psycho Goreman
+ * Nomadland
+ * Widows (2018)
+ * The Ipcress File (1965)
+ * Cyborg 2: Glass Shadow (1993)
+ * King of New York (1990)
+ * Last and First Men (2020)
+ * Victoria (2015)
+ * The Parallax View (1974; Seattle)
+ * Stolen Kisses (Godard)
+ * On the Waterfront
+ * Contempt (Godard)
+ * The Harder They Fall (2021; netflix)
+ * Bad Luck Banging or Loony Porn (2021)
+ * Reds (1981)
+ * Sunset Boulevard (1950)
* Your Name (2016, animated; maybe?)
* Boyz n the Hood (1991)
* Mr Smith Goes to Washington (1939)
+ * Heat
+ * The Shining
+ * The Exorcist
+ * Monsoon Wedding
+ * On the Rocks (2020)
+ * Kingdom of Heaven (2005; extended version)
+ * Unleashed (Jet Li, 2005)
+ * Crimes of the Future (Cronenberg, 2022)
+ * Anarchists (Park Chan-wook, 2000)
+ * Thirst (Park Chan-wook, 2009)
+ * Stoker (Park Chan-wook, 2013)
Documentaries:
@@ -142,7 +191,6 @@ Documentaries:
* October Sky
* Road House (1989)
* Maidentrip (around the world solo teen)
- * Only God Forgives (Bangkok Ryan Gosling, 2013)
* Lo and Behold (Herzog Internet)
* Last Days in Vietnam
* National Bird (drones, 2016)
@@ -150,8 +198,41 @@ Documentaries:
* The Kingdom of Dreams and Madness (2014; Gibli+Miyazaki)
* Ex Libris (NYC Library)
* Sinai Field Mission
+ * The Art of the Steal (2009; art collection)
+ * Titicut Follies
+ * High School (doc)
+ * The Bunker Films (2020)
+ * The Pruitt-Igo Myth (2012)
+ * What is Democracy (Astra Taylor)
+ * Dead Slow Ahead (2015; marine shipping)
+ * Fireball: Visitors from Darker Worlds
+ * Boys State (2020, government camp)
+
+Anime:
+
+ * Deca-Dence
+ * Patlabor (robot anime)
+ * Knights of Sidonia (anime, TV series)
+ * Dorohedoro
+ * Great Pretender (TV series)
+ * No Guns Life
+ * The Sky Crawlers (2008, anime)
+ * Space Runaway Ideon (series, and film; Evangelion-like?)
+ * Belladonna
Other Lists:
* ["15 Great Films That You Never Hear About on r/movies"](http://imgur.com/a/BwuZY)
* [Full Films on Youtube](http://www.reddit.com/r/fullmoviesonyoutube)
+
+Via L:
+
+ * Sherpa (2015, documentary)
+ * An Elephant Sitting Still (2017; Chinese; very long)
+ * The Running Man (1987; Arnold)
+ * Following (1998; Christopher Nolan)
+ * Long Day's Journey into Night (2018; Chinese)
+ * Incendies (2010; Denis Villeneuve)
+ * Prisoners (2013; Denis Villeneuve)
+ * Strangers on a Train (1951; Hitchcock)
+ * Collectiv (2019)
diff --git a/networking/bandwidth.page b/networking/bandwidth.page
index f516087..77fd5ed 100644
--- a/networking/bandwidth.page
+++ b/networking/bandwidth.page
@@ -17,11 +17,11 @@ users in the same region, so enforcing or charging for total throughput doesn't
seem to make much sense?
-Rate Latency Ops/hour 1 mil ops 100 mil ops
---------- --------- --------- ----------- ------------
-1/sec 1 sec 3.6k 11.6 days 3.17 years
-20/sec 50 ms 72k 13.8 hours 57.5 days
-100/sec 10 ms 360k 2.7 hours 11.25 days
-250/sec 4 ms 0.9mil 1.1 hours 4.58 days
-1k/sec 1 ms 3.6mil 16.6 min 27.6 hours
+Rate Latency ops/hour ops/day 1 mil ops 100 mil ops
+--------- --------- --------- --------- ----------- ------------
+1/sec 1 sec 3.6k 86.4k 11.6 days 3.17 years
+20/sec 50 ms 72k 1.7mil 13.8 hours 57.5 days
+100/sec 10 ms 360k 8.6mil 2.7 hours 11.25 days
+250/sec 4 ms 0.9mil 21.6mil 1.1 hours 4.58 days
+1k/sec 1 ms 3.6mil 86.4mil 16.6 min 27.6 hours
diff --git a/outdoorsing/2021_trips.md b/outdoorsing/2021_trips.md
new file mode 100644
index 0000000..6429508
--- /dev/null
+++ b/outdoorsing/2021_trips.md
@@ -0,0 +1,27 @@
+
+2021-11-21 - Mt Towsend (Olympics)
+==================================
+
+With Lu, Brian, Christie.
+
+Worked out surprisingly well for second half of November! Prior week had some
+rain/snow in the region and was worried about snow on the route and summit, and
+also cold temperatures.
+
+Road up was mostly not bad. Long paved forest road with just a bit of unpaved
+pot holes at the start. Towards the top (over 2,500ft?), road started having
+some snow, but mostly the wheel tracks were clear. After the turn-off for the
+upper Townsend trailhead, the road got pretty snowy and even ice-y. Was spicey
+in Honda Fit, and no way to turn around, but made it without any close calls.
+
+There was snow at the trailhead, but only a couple inches. It turned out there
+was "a couple inches" basically from the trailhead to the summit, from 3,300ft
+to 6,200ft. Was worried there would be a couple feet based on trailhead, but
+was not the case. There were a couple slippery/icey/melty bits, but microspikes
+were fine and could have made it without. Top was fairly windy, but not very
+cold, and got sunny at the end.
+
+Beautiful dusting of snow on deep forest at the lower bits, then pretty clear
+snow/rock views from the summit. Could see 5 volcanoes (Baker, Glacier Peak,
+Rainier, Adams, St Helens), clouds over the sound, Pt Angeles, etc. Pretty nice
+day!
diff --git a/outdoorsing/gear.md b/outdoorsing/gear.md
new file mode 100644
index 0000000..972e4bb
--- /dev/null
+++ b/outdoorsing/gear.md
@@ -0,0 +1,13 @@
+
+## Snowboarding
+
+Old board is a Ride Timeless, 167cm, with textured top layers. Drake bindings, not sure model.
+
+Newer boots are K2 Maysis, mens size 12, black. These are a bit small, but the
+heat forming process helped and they fit pretty well.
+
+Splitboard is a Voile Spartan Ascent, 166cm, orange top. Bought in spring 2021.
+Bindings are Spark R&D Arc, bought used.
+
+Stance "regular", roughly 20" wide (a bit wide for me?), 3 degrees clockwise on
+back foot (right foot), was 15 degress CCW front foot, but going to ~20 degrees.
diff --git a/outdoorsing/hiking_trips_2018.txt b/outdoorsing/hiking_trips_2018.txt
new file mode 100644
index 0000000..bfcea05
--- /dev/null
+++ b/outdoorsing/hiking_trips_2018.txt
@@ -0,0 +1,50 @@
+
+California! Sierras!
+
+Highway passes
+- I-80 Donner Pass / Truckee (north Taho)
+- (a few more around Tahoe)
+- SR-88
+- SR-4 (closed in winter)
+- SR-108 (closed in winter)
+- SR-120 (yosemite to lake mono) (closed in winter, Nov to May)
+- (huge stretch with no roads through)
+- SR-178
+
+Big National Parks
+- Yosemite Valley: ~3.5hr no traffic
+ => side roads closed Nov to May
+ => backcountry cabin is first-come-first-served Dec to March
+ => https://www.nps.gov/yose/planyourvisit/fulltrailheads.htm
+- Kings Canyon: 4-5hr
+- Sequoia: 4.5rh
+
+"East" Sierras
+- Big Pine Lakes: 6.5 hour drive via HW 120
+
+
+Excellent overview map: http://www.highsierratrails.com/northern_sierra_trails.html
+
+~3.5 hour drive to Yosemite Valley
+
+
+-------------------------
+
+Mt Adams!
+Mt Saint Helens! (snow)
+
+Training/Prep:
+- Camp Muir (Rainier)
+- Hurrican Ridge?
+- mt stuart (scramble; cascadian couloir)
+- cashmere
+ https://www.summitpost.org/victoria-s-secret-nw-face/936099
+- enchantments in winter?
+
+
+Also big/interesting:
+- second sister
+- shasta (CA)
+- whitney (CA)
+- rainier
+- baker
diff --git a/outdoorsing/mountains/shasta.txt b/outdoorsing/mountains/shasta.txt
new file mode 100644
index 0000000..6c85830
--- /dev/null
+++ b/outdoorsing/mountains/shasta.txt
@@ -0,0 +1,39 @@
+
+Shasta is tall! 14,179ft, almost as tall as Rainier.
+
+Recommendations: alpine starts (hiking ~4-5am), helmet, avalanche
+beacon/probe/shovel.
+
+Best times: May through mid-July. 2019 seems like it will be below-avegage
+snow, but not bad, and better than the recent droughts.
+
+4:40 hour drive from San Francisco (downtown).
+
+### Avalanche Gulch Route
+
+Most popular. Start at Bunny Flat trailhead (6940ft), which is plowed/clear all
+year (!).
+
+### West Face Route
+
+### Clear Creek Route (East Side)
+
+This route is actually pretty appealing, sounds like fewer people take it in
+early season. The main risk/issue would be road access in the snow. Seems less
+avalanche dangerous, which means a snowier/earlier attempt would be possible.
+
+## Red Tape
+
+## Resources
+
+- Summit Post has a lot: <https://www.summitpost.org/mount-shasta/150188>
+- [Shasta Avalanche info](https://www.shastaavalanche.org/) (including
+ forcasts)
+- ["So you want to climb Mt. Shasta"](https://www.fs.usda.gov/Internet/FSE_DOCUMENTS/fsm9_008138.pdf) (NFS)
+- Tom Harrison map sounds best for physical use.
+- https://hikemtshasta.files.wordpress.com/2013/06/mount-shasta-trail-map.jpg
+
+## Scratch / Notes
+
+Should do a >10k ft snow climb to train, also any altitude hiking/climbing
+probably good.
diff --git a/outdoorsing/paragliding.md b/outdoorsing/paragliding.md
new file mode 100644
index 0000000..0ee5c28
--- /dev/null
+++ b/outdoorsing/paragliding.md
@@ -0,0 +1,45 @@
+
+"Injury prophylaxis in paragliding", BMJ, 2002
+https://pubmed.ncbi.nlm.nih.gov/12351336/
+ german paragliding club
+
+"[Injuries and influencing factors on accidents in paragliding]"
+https://pubmed.ncbi.nlm.nih.gov/32663899/
+ in german
+
+
+---
+
+TODO:
+- get a hook knife for water landing safety
+- join NW paragliding club
+
+reading/resources:
+- http://cascadeparaglidingclub.org/reference/
+- https://www.hpac.ca/rescues-helicopters-fires-mines-and-paraglider-hang-glider-pilots/
+- update from 2022 on difficulty: https://docs.google.com/document/d/11eDt7yIExeLQuJVvsyLYbB8SuYkVq0TITturX29vUFs/edit
+
+---
+
+sites to try:
+- blanchard, wa (1h20m drive, easy site)
+- lake chelan area
+- yakima buttes (?) (annual event?)
+
+st helens
+
+---
+
+regional events:
+
+---
+
+tree rescue:
+
+- https://ctomsinc.com/collections/high-angle-aviation-equipment/products/paraglider-parachute-tree-egress-kit (military vibe)
+- https://blacksheepadventuresports.com/2018/06/26/review-beal-5mm-back-up-line/
+- https://towmeup.com/shop/ols/products/tree-rescue-device-only
+- http://mvkazit.blogspot.com/2019/06/tree-self-rescue-for-paraglide-pilots.html
+- http://mvkazit.blogspot.com/2017/01/some-ultra-light-rappel-ropes.html
+- https://www.paraglidingforum.com/viewtopic.php?t=100528&start=0&postdays=0&postorder=asc&highlight=
+- http://cascadeparaglidingclub.org/reference/reference-tree-rescue-for-paraglider-pilots/
diff --git a/outdoorsing/planning_tools.page b/outdoorsing/planning_tools.page
new file mode 100644
index 0000000..37ce8b9
--- /dev/null
+++ b/outdoorsing/planning_tools.page
@@ -0,0 +1,8 @@
+
+Forest Service snow cover map (west coast region): https://www.fs.fed.us/r5/webmaps/SierraSnowDepth/
+
+Windy.com weather: https://www.windy.com/?47.536,-122.278,5
+
+Gaia GPS
+
+Caltopo
diff --git a/scratch.txt b/scratch.txt
index 1db8332..7a6e1e7 100644
--- a/scratch.txt
+++ b/scratch.txt
@@ -78,6 +78,23 @@ If using recursive make, it's good to review the rules about environment
variables, passing, exporting, etc:
http://web.mit.edu/gnu/doc/html/make_5.html#SEC50
+Command-Line Tools
+---------------------------
+
+`lnav`: curses tool for live log file analysis
+
+cgroup 'top' showing per-user LXC stuff: `systemd-cgtop --recursive=y --depth=2`
+
+Also, `systemd-cgls`.
+
+`netdata` as a basic full-system logging/alerts package. Need to figure out how
+to tune it to run slower samples (every 5-10 seconds?) and retain for weeks/months.
+
+
+---------
+
+browser extension: map switcher
+
Twitter Things!
---------------------------------------------------------------------
diff --git a/misc/artists.page b/scratch/artists.page
index ac1cc86..ac1cc86 100644
--- a/misc/artists.page
+++ b/scratch/artists.page
diff --git a/tmp/common_as_air_book_nots.txt b/scratch/common_as_air_book_nots.txt
index 6adfa66..6adfa66 100644
--- a/tmp/common_as_air_book_nots.txt
+++ b/scratch/common_as_air_book_nots.txt
diff --git a/tmp/expat.txt b/scratch/expat.txt
index 0583474..0583474 100644
--- a/tmp/expat.txt
+++ b/scratch/expat.txt
diff --git a/misc/newcomb-paradox.page b/scratch/newcomb-paradox.page
index 58ace89..58ace89 100644
--- a/misc/newcomb-paradox.page
+++ b/scratch/newcomb-paradox.page
diff --git a/tmp/numerical_computation.txt b/scratch/numerical_computation.txt
index ca606b9..ca606b9 100644
--- a/tmp/numerical_computation.txt
+++ b/scratch/numerical_computation.txt
diff --git a/tmp/nz.page b/scratch/nz.page
index 0c50c5d..0c50c5d 100644
--- a/tmp/nz.page
+++ b/scratch/nz.page
diff --git a/misc/payments.page b/scratch/payments.page
index decf409..decf409 100644
--- a/misc/payments.page
+++ b/scratch/payments.page
diff --git a/tmp/review_nonblocking_verilog_kill b/scratch/review_nonblocking_verilog_kill
index 296f8c5..296f8c5 100644
--- a/tmp/review_nonblocking_verilog_kill
+++ b/scratch/review_nonblocking_verilog_kill
diff --git a/tmp/teaching-cs.page b/scratch/teaching-cs.page
index d441985..d441985 100644
--- a/tmp/teaching-cs.page
+++ b/scratch/teaching-cs.page
diff --git a/tmp/topics-of-curiosity.page b/scratch/topics-of-curiosity.page
index c07b13c..c07b13c 100644
--- a/tmp/topics-of-curiosity.page
+++ b/scratch/topics-of-curiosity.page
diff --git a/software/Xorg.page b/software/Xorg.page
new file mode 100644
index 0000000..39eb55b
--- /dev/null
+++ b/software/Xorg.page
@@ -0,0 +1,3 @@
+
+ sleep 2; DISPLAY=:0 xrandr --auto
+
diff --git a/software/api.page b/software/api.page
new file mode 100644
index 0000000..6349851
--- /dev/null
+++ b/software/api.page
@@ -0,0 +1,6 @@
+
+"Joshua Bloch: Bumper-Sticker API Design"
+https://www.infoq.com/articles/API-Design-Joshua-Bloch
+
+- https://restful-api-design.readthedocs.io/en/latest/methods.html
+- https://github.com/WhiteHouse/api-standards/blob/master/README.md#general-guidelines-for-restful-urls
diff --git a/software/bash.page b/software/bash.page
index 0d5325b..5d82fdc 100644
--- a/software/bash.page
+++ b/software/bash.page
@@ -37,6 +37,8 @@ Note that `join`, `grep`, and others sometimes exit non-zero return codes on
purpose (eg, pipe input closed or found no matches, as expected), which makes
life difficult. Sometimes `|| true` is enough to get around this.
+More on this: <http://redsymbol.net/articles/unofficial-bash-strict-mode/>
+
## General Style
Google has a style guide: https://google.github.io/styleguide/shell.xml
diff --git a/software/css.page b/software/css.page
new file mode 100644
index 0000000..bcf3467
--- /dev/null
+++ b/software/css.page
@@ -0,0 +1,20 @@
+
+## CSS Microframeworks
+
+good overview: https://blakewatson.com/journal/surveying-the-landscape-of-css-micro-frameworks/
+
+Prefered options:
+
+- https://simplecss.org/
+- https://picocss.com/
+- https://picnicss.com/
+- https://gdcss.netlify.app/
+- https://watercss.kognise.dev/
+
+Other stuff:
+
+- https://purecss.io/
+- https://picturepan2.github.io/spectre/
+- http://getskeleton.com/
+- https://jenil.github.io/chota/
+- https://tdarb.org/typesafe-css/
diff --git a/software/debian.page b/software/debian.page
index ebe3856..da874e0 100644
--- a/software/debian.page
+++ b/software/debian.page
@@ -159,7 +159,7 @@ Persist Laptop Power Saving Flags
`powertop` helps identify system flags that need tuning (`sysfs`, `iw`, etc),
which are super helpful, but these tweaks don't persist through reboots.
-You can automate setting *all* the `powertop` tunings at bood by adding
+You can automate setting *all* the `powertop` tunings at boot by adding
`powertop --auto-tune` to `/etc/rc.local` (and making sure `rc-local.service`
is configured under `systemd` if you are using that for init).
@@ -175,6 +175,45 @@ Chromium Fonts
Surprisingly, this trick worked for me:
http://www.internalpointers.com/post/fixing-ugly-fonts-chrome-chromium-debian-xfce
+More fonts:
+
+ sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core
+
+Big Fonts List
+----------------
+
+Eg, if trying to do general international stuff (PDFs from web or whatever),
+might want all of:
+
+ fonts-arphic-bkai00mp
+ fonts-arphic-bsmi00lp
+ fonts-arphic-gbsn00lp
+ fonts-arphic-gkai00mp
+ fonts-arphic-ukai
+ fonts-arphic-uming
+ fonts-farsiweb
+ fonts-indic
+ fonts-ipafont-gothic
+ fonts-ipafont-mincho
+ fonts-liberation
+ fonts-lklug-sinhala
+ fonts-nafees
+ fonts-noto
+ fonts-noto-cjk
+ fonts-noto-mono
+ fonts-noto-unhinted
+ fonts-sil-abyssinica
+ fonts-sil-ezra
+ fonts-sil-padauk
+ fonts-thai-tlwg
+ fonts-unfonts-core
+ fonts-unfonts-extra
+ xfonts-100dpi
+ xfonts-75dpi
+ xfonts-base
+ xfonts-cyrillic
+ xfonts-scalable
+
Stretch Upgrade Notes
-----------------------
diff --git a/software/design_ethics.page b/software/design_ethics.page
new file mode 100644
index 0000000..71c646b
--- /dev/null
+++ b/software/design_ethics.page
@@ -0,0 +1,23 @@
+
+## Maciej Cegłowski
+
+Six Fixes:
+
+- Right To Download
+- Right To Delete
+- Limits on Behavioral Data Collection
+- Right to Go Offline
+- Ban on Third-Party Advertising
+- Privacy Promises
+
+Later rephrased:
+
+1. The right to examine, download, and delete any data stored about you. A time horizon (weeks, not years) for how long companies are allowed to retain behavioral data (any data about yourself you didn’t explicitly provide).
+
+2. A prohibition on selling or transferring collections of behavioral data, whether outright, in an acquisition, or in bankruptcy.
+
+3. A ban on third-party advertising. Ad networks can still exist, but they can only serve ads targeted against page content, and they cannot retain information between ad requests.
+
+4. An off switch on Internet-connected devices, that physically cuts their access to the network. This switch should not prevent the device from functioning offline. You should be able to stop the malware on your refrigerator from posting racist rants on Twitter while still keeping your beer cold.
+
+5. A legal framework for offering certain privacy guarantees, with enforceable consequences. Think of this as a Creative Commons for privacy. If they can be sure data won’t be retained, users will be willing to experiment with many technologies that would pose too big a privacy risk in the current reality.
diff --git a/software/ebook_reader.page b/software/ebook_reader.page
new file mode 100644
index 0000000..74f1612
--- /dev/null
+++ b/software/ebook_reader.page
@@ -0,0 +1,24 @@
+
+dpt-rp1-py
+============
+
+To get PDF uploading to work from Debian with my Quaderno digital reader, I
+installed the `dpt-rp1-py` package for just my user (not system wide):
+
+ # or, in a venv/pipenv
+ pip3 install --user dpt-rp1-py
+
+Before running commands, ensure device and laptop are on the same local
+network. Then, run things like:
+
+ dptrp1 list-folders
+
+or, to upload files:
+
+ dptrp1 upload thing.pdf Document/Papers/
+
+To upload everything in a directory newer than a given date:
+
+ find ~/toread -iname '*.pdf' -type f -newermt "2022-05-01" | parallel -j1 dptrp1 upload {} Document/Papers/
+
+TODO: sometimes this fails for some fraction of the documents? need a delay?
diff --git a/software/golang.page b/software/golang.page
index 729b6e5..9897b65 100644
--- a/software/golang.page
+++ b/software/golang.page
@@ -12,6 +12,21 @@ function itself is called (this is intuitive).
The golang documentation gives the examples of closing file handles and
printing HTML footers (defer right after printing the header).
+Language Notes
+----------------
+
+`complex64` and `complex128` are built-in numeric types. `rune` is also built-in.
+
+Capitalization controls visibility. Everything is visible within a package;
+only upper-case things are visible outside the package.
+
+All types have a "zero value" which they are automatically initialized with if
+not defined otherwise. These include `false` for boolean, 0 for numerics, empty
+string, and `nil` in many cases. This recurses down in to structs, collections,
+etc.
+
+TODO: capitalization of struct fields
+
Learning Resources
-------------------
In addition to the excellent dynamic Tour, documentation, and other things
diff --git a/software/javascript.page b/software/javascript.page
new file mode 100644
index 0000000..217b6e5
--- /dev/null
+++ b/software/javascript.page
@@ -0,0 +1,29 @@
+
+## In-Browser Vanilla Javascript
+
+Alternatives to jQuery: https://blog.garstasio.com/you-dont-need-jquery/
+
+
+## Development Environment with nvm
+
+Use `nvm` to install nodejs, npm, etc, separately from operating system
+packages.
+
+`nvm` asks you to do a curl/bash thing, but you can just download the `nvm.sh`
+script, put it in `~/.nvm/nvm.sh`, and source it from `~/.bashrc`. Or do a git
+checkout there or something?
+
+ mkdir -p ~/.nvm
+ cd ~/.nvm
+ wget https://raw.githubusercontent.com/nvm-sh/nvm/master/nvm.sh
+ echo 'export NVM_DIR="$HOME/.nvm' >> ~/.bash_profile
+ echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bash_profile
+ echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bash_profile
+
+Then for a specific project, figure out a recent version of node and then:
+
+ cd $PROJECTDIR
+ nvm install 18
+ nvm use 18
+
+ npm install --global yarn
diff --git a/software/packaging.page b/software/packaging.page
new file mode 100644
index 0000000..52919e8
--- /dev/null
+++ b/software/packaging.page
@@ -0,0 +1,4 @@
+
+"Quick and dirty" packaging options (aka, not clean/official Debian process):
+
+- https://github.com/goreleaser/nfpm
diff --git a/software/photos.txt b/software/photos.txt
new file mode 100644
index 0000000..e195dc2
--- /dev/null
+++ b/software/photos.txt
@@ -0,0 +1,2 @@
+
+geeqie: tool for viewing/sorting photos
diff --git a/software/postgres.page b/software/postgres.page
index bdb01d8..32f2fe4 100644
--- a/software/postgres.page
+++ b/software/postgres.page
@@ -15,3 +15,23 @@ Basic status from the psql command line:
\l+ (list databases)
\dt+ (describe table)
+
+## Temporary Databases in Tests
+
+Try `pg_tmp`, though it may not work with high concurrency (due to internal
+postgres locking), and might need special configuration in CI environments.
+
+Debian also ships with `pg_virtualenv` for temporary databases.
+
+---------
+
+More refs/links:
+
+- https://stackoverflow.com/questions/9604723/alternate-output-format-for-psql
+- https://brandur.org/postgres-connections
+- https://www.citusdata.com/blog/2017/07/16/customizing-my-postgres-shell-using-psqlrc/
+- `bind "^R" em-inc-search-prev`
+- https://www.citusdata.com/blog/2019/07/17/postgres-tips-for-average-and-power-user/
+- https://github.com/citusdata/pg_auto_failover
+- https://repmgr.org/
+
diff --git a/software/python.page b/software/python.page
index 0fd2531..7133013 100644
--- a/software/python.page
+++ b/software/python.page
@@ -205,3 +205,33 @@ and create a `pytest.ini` like:
norecursedirs = .svn _build tmp*
Need to mock? <https://blog.fugue.co/2016-02-11-python-mocking-101.html>
+
+Debugging Memory Usage
+------------------------
+
+Most helpful tools I found were `psutil` and `pympler` (both need to be
+installed).
+
+ import os, psutil
+ process = psutil.Process(os.getpid())
+ print(process.memory_info().rss)
+ # ... do some stuff ...
+ print(process.memory_info().rss)
+
+and
+
+ from pympler import tracker
+ tr = tracker.SummaryTracker()
+ tr.print_diff()
+
+ # ... do some stuff ...
+ tr.print_diff()
+
+
+Canonical Timestamp
+--------------------
+
+As a terse one-liner (with `datetime` imported):
+
+ f"{datetime.datetime.utcnow().isoformat()[:-3]}Z"
+
diff --git a/software/rsyslog.page b/software/rsyslog.page
new file mode 100644
index 0000000..b55c127
--- /dev/null
+++ b/software/rsyslog.page
@@ -0,0 +1,20 @@
+
+Put these in files like `/etc/rsyslog.d/40-grobid-skip.conf`.
+
+Filter out lines from a given program:
+
+ :programname, isequal, "GROBID" ~
+
+Or matching a pattern:
+
+ :msg, startswith, "inserting line to HBase: sha1:"
+ :msg, contains, " INFO GET http"
+
+For list of operations ("isequal", "regex", "contains"):
+
+ https://www.rsyslog.com/doc/v8-stable/configuration/filters.html
+
+For list of properties (":msg", ":programname"):
+
+ https://www.rsyslog.com/doc/v8-stable/configuration/properties.html
+
diff --git a/software/rust.page b/software/rust.page
index df99de4..b76c097 100644
--- a/software/rust.page
+++ b/software/rust.page
@@ -3,9 +3,11 @@ Rust
## Resources
-- [http://xion.io/post/code/rust-iter-patterns.html]()
-- [https://deterministic.space/rust-cli-tips.html]()
-- [https://manishearth.github.io/blog/2018/01/10/whats-tokio-and-async-io-all-about/]()
+- <http://xion.io/post/code/rust-iter-patterns.html>
+- <https://deterministic.space/rust-cli-tips.htm>
+- <https://deterministic.space/elegant-apis-in-rust.html>
+- <https://manishearth.github.io/blog/2018/01/10/whats-tokio-and-async-io-all-about/>
+- <https://saghm.github.io/five-rust-things/>
Optimization: use `RUSTFLAGS="-C target-cpu=native"` to take advantage of CPU
special features.
@@ -22,3 +24,113 @@ Run tests with stdout output:
To run tests with logging enabled (eg, with `env_logger`), make sure you add
`env_logger::init()` to the test function itself.
+
+
+## map() and Result Ergonomics
+
+`.collect()` has some magical features! In addition to turning an iterator of
+`Item` into `Vec<Item>`, it will turn an iterator of `Result<Item>` into
+`Result<Vec<Item>>`. This makes it really useful for the end of functions.
+
+This is particularly useful for resolving some categories of "error handling in
+map closures": you can use `?` in the map closure as long as you wrap the happy
+path with `Ok()` and call collect on the outside. Eg:
+
+ let list: Vec<Item> = junk
+ .iter()
+ .map(|thing| Ok(Item {
+ a: thing.a,
+ b: fixup(thing.widget)?,
+ }))
+ .collect::Result<Vec<Item>>()?;
+
+What about when `map` over an `Option`? Eg:
+
+ let toy = Shiny {
+ a: 123,
+ b: component.map(|v| paint(v).expect("paint to succeed"),
+ };
+
+Should use match in this case:
+
+ let toy = Shiny {
+ a: 123,
+ b: match component {
+ None => None,
+ Some(v) => Some(paint(v)?),
+ },
+ };
+
+## 2020-05-17 Reading
+
+While working on fatcat-cli tool, checked the The Rust Programming Language
+book to read about trait objects and the `dyn` keyword, which I had ignored
+previously.
+
+They seem like they could be used in a few places in fatcat-server rust code.
+We don't particularly care about per-function-call performance there, and most
+entities are already allocated on the heap.
+
+Other small syntax and thing learned:
+
+Can copy a struct while only updating specific fields with ".." syntax. Might
+use this in fatcat-cli for update mutation.
+
+This is the cleanest example of using ErrorKind that I have seen:
+
+ let f = match f {
+ Ok(file) => file,
+ Err(error) => match error.kind() {
+ ErrorKind::NotFound => match File::create("hello.txt") {
+ Ok(fc) => fc,
+ Err(e) => panic!("Problem creating the file: {:?}", e),
+ },
+ other_error => {
+ panic!("Problem opening the file: {:?}", other_error)
+ }
+ },
+ };
+
+I didn't realize that test code may get compiled into non-test binaries unless
+annotated with `#[cfg(test)]`. You are supposed to create a sub-module within
+each `src/` file with unittests, like:
+
+ #[cfg(test)]
+ mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ assert_eq!(2 + 2, 4);
+ }
+ }
+This doesn't apply to `tests/` directory, which is for integration tests.
+
+The common pattern for binary crates (vs. library crates) is to have `main.rs`
+and `lib.rs`, with any code that needs to be tested in `lib.rs` (aka, all the
+actual logic).
+
+I think I knew `eprintln!()` (for stderr) vs. `println!()` (for stdout), but
+good to remember.
+
+There is a description of how to avoid memory leaks with reference counting
+using "weak" `Rc` references. Probably worth reading the [entire chapter on smart pointers](https://doc.rust-lang.org/book/ch15-06-reference-cycles.html#preventing-reference-cycles-turning-an-rct-into-a-weakt)
+(including Box, Rc, RefCell) again.
+
+For the `Sized` trait, and `Sized` trait alone, can specify an ambiguous trait
+constraint with `?` to indicate "may or may not be Sized", which doesn't really
+mean anything but does explicitly allow generic functions over non-sized traits
+like:
+
+ fn my_generic_func<T: ?Sized>(t: &T) {
+ // --snip--
+ }
+
+A trait can depend on another trait. For example, a PrettyPrint trait could
+rely on Display (and impl functions could call functions from Display). This is
+done on the trait definition line. Such a trait is called a "supertrait".
+
+Implementing Deref on a wrapper type allows transparent access to all the trait
+methods on the interior object.
+
+Also, a new longer post on error handling: <https://nick.groenen.me/posts/rust-error-handling/>
diff --git a/software/rust_libs.txt b/software/rust_libs.txt
new file mode 100644
index 0000000..967a4b6
--- /dev/null
+++ b/software/rust_libs.txt
@@ -0,0 +1,7 @@
+
+https://github.com/RazrFalcon/pico-args
+ smaller than clap
+
+https://lib.rs/crates/dirs
+
+https://lib.rs/crates/axum
diff --git a/software/sign_pdf.md b/software/sign_pdf.md
new file mode 100644
index 0000000..c81643d
--- /dev/null
+++ b/software/sign_pdf.md
@@ -0,0 +1,16 @@
+
+How to sign a PDF on Linux
+===========================
+
+First, you need a transparent image of signature, eg as a PNG file. Android
+works pretty well for this: you can sign a blank piece of paper, take a
+photo, and clean it up. Then can use gimp if necessary to remove background
+and make a transparent image.
+
+NOTE: if text import isn't working, need to go in preferences and change input
+type (!), see also <https://github.com/xournalpp/xournalpp/issues/2035>.
+
+To edit PDFs, use `xournalpp`, which is a GUI tool packaged in Debian. You
+can add text and paste images, then export as PDF.
+
+Via: <https://www.xmodulo.com/add-signature-pdf-document-linux.html>
diff --git a/software/web-design.page b/software/web-design.page
index 48ee7a0..02412f5 100644
--- a/software/web-design.page
+++ b/software/web-design.page
@@ -2,5 +2,8 @@
- http://bootswatch.com/simplex/
- https://semantic-ui.com/
- https://purecss.io/
+- https://bulma.io/
+- https://simplecss.org/ ("classless"; used in adenosine)
+- https://picocss.com/
"Little UI Details": https://twitter.com/i/moments/880688233641848832