Category Archives: All

All of the posts on this site.

Coding Projects

  1. Astronomical Clock
  2. AstroWideImageMapper
  3. Tag audio files / sheet music images to relate the audio to the location on the sheet music. Kinda like a Karaoke lyrics read-out but advanced and customizable for musicians / music students.
    • As a lifelong music learner, I view sheet music while playing as a crutch that probably hurts musicianship in the long-run. However, sheet music while listening I view as a major enhancement that could especially help kids learn music the same way they learn language, by mass exposure. Following sheet music while listening brings meaning to hours of listening and helps a person’s brain assign value to understanding the notes they hear while they listen. It can help a person “develop their ear.”
  4. “Chess Arena” using camera with software board recognition and Stockfish chess engine to analyze the games for an audience on a screen facing away from the players. Enhance in-person chess.
  5. Scrabble remote using camera with software board recognition.
  6. Fully-connected house with
    • Automated windows up and down.
    • Fully-automated lights.
    • Security system that stores footage on the LAN with fully open-source video storage code. No subscription with high-def storage not reliant on SLOW internet upload limits. (This does not exist because companies make money on security subscriptions).
    • Temperature monitors throughout the house.
  7. OstranderNet. A second internet. There shouldn’t be just one.
    • Limited bandwidth. Start by transmitting chess games.
    • Completely wireless using amateur radio bands.
    • ‘All equipment runs from 12V. Car batteries. Apocalypse-ready.
  8. Done. Wordle Scratchpad. Front-end practice. Model / View / Controller architecture. Python with tkinter is one-install set-up to start coding with powerful language.
  9. Ongoing. Model number decoder et cetera (work project)
  10. Done. Buyouts and drawings search tools (work project)
  11. Secure text app like Signal with:
    • Annual / monthly / daily customizable word limits on group chats (with suggestions and holiday-specific text allowances).
    • Maybe a regular text message app that works with SMS / MMS that auto-replies to groups that go over a certain limit. Spam the spammers.

The Post-Industrial House

The post-industrial house will solve the following domestic problems and maximize the following healthy ways of living.

  • Fresh air should be maximized.
  • The “un-building” house: start all planning with the assumption that we live outside and favor outdoor living unless necessary to be indoors. Assume that the outdoors is a good thing and try to not block it if possible, for example:
    • Need heat in the winter. Best kind of heat is a small cozy space with body heat. Can heating be compartmentalized into a small center of the house?
    • Keep bugs out. Screens do this without blocking the rest of the outdoors. A breeze is pretty effective against bugs but too much breeze could be annoying all the time.
    • Houses with opaque well-insulated walls are great if you assume you want to completely control the indoors and live in a controlled environment, but they almost totally sacrifice fresh air. Walls block breezes. Walls get hot in the sun and bake the indoors all night long even when it is cool outside. Roofs prevent sunlight from sanitizing and drying the indoors.
    • How to minimize how “indoor” the house is?
    • Completely compartmentalize the “indoor” aspect of the house?
  • Disinfecting sunlight should be maximized especially in bathrooms.
  • There should be so much airflow in bathrooms and laundry areas that anything in those areas dries quickly.
    • Should be outdoor space for a clothes line near the laundry, preferably with some cover that allows sunlight but not rain.
    • Shower curtain against bath tub mold build-up: how has this problem not yet been solved?? (besides dripping the shower liner onto the floor outside the tub or replacing the shower liner every few months). There must be airflow and sunlight or there will be mold!!
    • Outdoor shower is nice but good to do something to control mosquitos around it.
  • All sides of the house should receive some direct sunlight.
  • During the winter day, the house should be able to collect and store as much heat from the sun as possible when available.
    • Wood stove? (more efficient than wood-burning insert into existing fireplace).
    • Address humidity if possible. Dry air is usually just accepted in the winter, but is there a way to naturally or easily have the air a little bit more humid in the winter?
      • Personal humidifiers, OK.
      • What about compartmentalizing the house somehow so the human warmth collects in a cozy way, i.e. cozy small room effect? At least for sleeping areas.
  • During the summer night, should be able to cool off as quickly as possible and drain heat reservoirs to collect excess heat during the day. House should feel like a large shade tree on a breezy summer afternoon – (NOT like the inside of a refrigerator).
    • Remember to address humidity. Humidity is half of the comfort and convenience equation but is usually treated as an afterthought.
  • Should be able to completely shade itself on the exterior, independent of trees.
    • Or using strategic trees.
    • Large eves are nice and simple design for shade and protect the side of the house. Movable eves?
    • Canopies over windows?
  • Should be able to leave the windows open during summer rainstorms, while still addressing the following issues:
    • Security of having windows open.
    • Screens should prevent bugs from entering, plus a system to eliminate the bugs that get through.
    • Convenient window coverings should not get in the way of opening and closing the windows. Automated windows would be nice (cars have them!) except when they fail, which they would, so they should just be easy to open and close.
  • There should be outdoor space on the roof, or above the house somewhere. Like a rooftop bar with a view of whatever is around doesn’t matter rooftop is cool.
  • There should be ample shade / rain cover just outside the house near the kitchen for meals outside.
    • Build house around a central courtyard area? Build in a horseshoe shape?
  • The hot water tank should be near the hot water faucets. Waiting for hot water is hot water wasted and time wasted. (I am opposed to tank-less water heaters, they just aren’t that great.)
  • Independent water treatment system for healthy drinking water, nice skin, and prevent mineral deposit build-up.
  • Completely separate heated exterior space with garage door, ~14 x 22 feet ~ one-car garage size. Bicycle storage plus.
  • Carport! A simple cover over the car keeps the snow off in the winter, prevents most of the rust from being rained on all the time and prevents sun damage. A garage is unnecessary but a carport is necessary.
  • Location location location. There should be good people, good government, good parks, libraries, town center within biking distance.
  • ~1407 sqft. 3 bedroom, 1 1/2 bathroom. Kitchen, dining, living room. Large closet in the master bedroom. Laundry, clothes line area, outdoor shower all connected.
    • 2-story with bedrooms upstairs, or ranch?
    • 2-story pros: rooftop bar higher. Bedrooms separate from living area. Smaller footprint / basement requirement. More cube-like for less exterior walls (more efficient?)
    • Ranch pros: no stairs. Everything connected.
  • Maintenance convenience:
    • All (or most) plumbing and electric – especially plumbing – should be accessible from a basement or with known and marked access points.
    • While some things will be automated, automation should be limited and control should be centralized with systems accessible for maintenance and upgrades.
  • There should be a large Time v3 timekeeping device prominently displayed in the post-industrial house.
  • Other sources:
    • Consult Tim
    • Consult The Landlord’s Operating Manual
    • Consult architect(s).
    • Consult “Snowmass house”
  • Alternative materials.
    • Absorptive and radiative materials
    • Hemp? Consult Kreg.
    • Consult “Earthship” internet search rabbit hole.
      • Earth-filled tires?

Git Commands

Terminology

origin =

main =

master =

remote =

Head =

Headless mode =

Modified =

Staged =

Committed =

Connecting

Start the ssh agent:

eval $(ssh-agent)

To generate an SSH key:

ssh-keygen

To add the SSH key to the SSH client for use:

ssh-add id_ed25519_github

Informational Commands

Git can be a little intimidating at first because it has the power to change the files you are working on, so it’s good to start with commands that don’t do anything to get a feel for the situation before you actually do something.

git config --list

Shows useful information about the current repository. Shows the remote.origin.url variable for example.

git config --get remote.origin.url

Shows just the url associated with local git repository.

git config --list --show-origin

Shows ___.

git status

Probably the most common git command.

git diff

To see changes since the last commit. Or

git diff > gitdiff.txt

for a text file of the information.

ls -al ~/.ssh

To check for SSH keys (on Linux only I think).

git log --oneline

Is useful to see all the commits in a row with their commit messages. Or

git log --oneline --decorate --graph --all

for more detailed information.

git log -p filename.py > log.txt

Makes a file with the entire change history of filename. The -p is patch text. This is great for resurrecting “lost portions” of code and replaced the file I used to keep: “unused code.txt”

git branch -v -a

Lists all the branches including remotes, with the current branch highlighted in green plus an asterisk.

git branch --show-current

Shows just the current branch.

git tag -n1

Says to list all the tags and show 1 line of annotation per tag. Default is 0 lines of annotation.

git ls-tree -r trunk --name-only

Initial Set-Up Commands and Connecting to GitHub

Notice above command to check for existing keys.

The first step is establishing an SSH key on the machine to be connected to GitHub then copy the public key to GitHub. This is a pretty good description of how to do that. Notice Git bash in Linux is just the command line of a Linux machine with Git installed while on Windows you have to open the Git bash executable for a Git-specific terminal.

& 'C:\Program Files\Git\bin\sh.exe' --login

to open the Git command line.

git clone git@github.com:rr34/Astro.git

Notice the format of the remote url determines SSH versus https transfer. The above format is for SSH, which is required to commit changes because password identification was disabled for committing changes.

To initialize, navigate to the directory where your code is stored, and:

git init

to initialize git tracking of the directory.

git add

to add files. You can add one at a time to be selective or

? how to add all the files in the directory, then ignore?

Create repository on Github, then start committing to it:

git commit -am 'Initial commit.'

To set the location of the remote repository:

git remote add origin git@github.com:rr34/Astroclock.git

To change the branch name. -m would be --move, -M is --move --force

git branch -M trunk

To make your first push to the remote repository. -u is --set-upstream:

git push -u origin trunk

Daily “Save Your Work” is Commit

This is a pretty good list here, but it lacks informational commands.

git commit -a -m 'commit message here'

git push

Are the daily “save your work” commands.

Renaming a File

git mv old-filename.extension new-filename.extension

To rename a file, use git to rename it instead of renaming it manually. This allows git to track the rename instead of appearing to be “delete and add new.”

Deleting a File

git rm filename

To delete a file, use git to allow git to track the deletion. Don’t do it manually or it just shows up missing.

Revert a Single File to an Old Version

git checkout <commit ID> filename

There are various ways to do this (restore and revert maybe?) but I did it once like this and it worked. You have to be OK with losing any work in that file since the last commit. The point is it doesn’t affect the other files.

Branching

git branch <new-branch-name>

To create a new branch.

git switch <new-branch-name>

To switch to a different branch (same as the still-valid git checkout <new-branch-name>)

git checkout -b new-branch-name

To create a new local branch and switch to it in one command.

git push --set-upstream origin new-branch-name

? is that right, not just push?

How to create a branch on GitHub here.

Tagging

git tag -a v1.0.0 ec595fb -m 'message here'

then

git push origin v1.0.0

to tag a past commit. Version naming convention is [Major].[Minor].[Patch]

Merging

To merge, create a pull request on GitHub, then compare and merge. It’s pretty self-explanatory, THEN to update your local repository:

git fetch

because you made changes to the GitHub version, but not your local version, so the changes have to be fetched (opposite of push I think?)

git switch main

to switch to the main branch, and you should see a message saying the local main is behind origin/main, then

git pull

to pull the commits into the local branch. Merge complete.

Remote Repository (GitHub Usually)

git remote -v

lists the remote repositories.

git remote set-url origin git@github.com:rr34/Astro.git

allows you to change the remote url for the origin.

GitHub-Specific Features

The following are features in GitHub only, not classic command line Git:

  • Releases – but tags are command line and also a way of doing releases.
  • Pull requests

What Will Cause the Apocalypse?

Had I really not published this post before? Here is my speculation on what will cause the (next) apocalypse / collapse of civilization. In order of likelihood:

Why ask this question, you ask? Apocalypse is a surprisingly entertaining subject for us. I ask, why are we all interested in it?

  1. Apathy: the builders of society get bored when we can’t reach new highs and we just let it go. Like a little boy playing with Legos, the world is built by men. How long does a Lego structure last? The bigger it is the funner it is to destroy. How long does a dollhouse last within sight of a young boy? We should enjoy our tower while it stands!
  2. Zombies: zombies have already caused one apocalyptic civilization collapse. The only question remaining is, could they end us entirely?
  3. Disease*: disease is ancient and kills by numbers even bigger than millions or billions. Disease kills by the percentage of population. Disease is our most ancient enemy and far-underrated as it is invisible and not glamorous or sensational.
  4. Nuclear war: nukes are powerful and most people don’t even realize how powerful. Fusion bombs make Hiroshima and Nagasaki look tiny.
  5. Global Carbon Transfer (commonly mis-labeled as “global warming” or “climate change): this I believe is unlikely to cause our end. I think we are being overly-optimistic to imagine that we will thrive long enough for this to get us.
  6. EMP: again I think it’s optimistic to believe we will last long enough for an electromagnetic pulse to get us. Plus, one-time catastrophes like an EMP are sensational but not nearly as crushing as grinding sickness that can slowly erode resolve over years, decades, centuries.
  7. Flood, Earthquake, Asteroid, Volcano, Fire, Storm: wouldn’t be the first time for some of these, but could any of them really take us out? An asteroid certainly could, but it’s pretty sensational.

*COVID has brought disease to our attention but the COVID response has mostly highlighted our unprecedented inability to actually do something. Lose weight? Strengthen ourselves in the face of disease? None of that. This could be a wake-up call to get healthy.

Computer Architecture, Terminology, Classification

Computer Architecture = Instruction Set Architecture (ISA) = Processor Architecture

At its lowest level, software must execute code properly on the processor chip itself. Processor architecture is standardized to allow for code to be written and compiled that works across many individual models of chips. Some common architectures with examples are:

IA-32

IA-32 is the 32-bit version of Intel’s x86 architecture.*

*Notice x86** does not by itself specify an architecture, it is a family of Intel architecture that includes everything from 16-bit released in 1978 to modern 64-bit.

**Note, the x86 Wikipedia article has a good explanation of which chips generally use which ISA.

  • The Intel 80386 microprocessor released in 1985 was the first commercial 32-bit processor.
X86-64 = X64 = X86_64 = AMD64 = INTEL 64

Released by Intel in 2003, 64-bit began to replace 32-bit.

  • Intel Pentium 4 F series.
ARMV8-A

ARMv8-A is the first 64-bit version of the ARM architecture. ARMv8-A is AArch64, which is the same as ARM64.

ARM is a double-acronym. RISC stands for Reduced Instruction Set Computing. All together, ARM stands for “Advanced Reduced Instruction Set Computing Machine.” The ARM architecture in general is maintained by ARM Ltd. in Cambridge, UK.

  • The ARM Cortex-A53 in the Raspberry Pi Zero 2 W uses ARMv8-A and is considered 64-bit.

Operating Systems Classified by ISA

Raspberry Pi OS

Currently, Raspberry Pi does not offer a 64-bit OS, but a beta 64-bit OS is in work and already available for download from the official library.

In a Linux command terminal, you can see processor information including architecture with the command:

lscpu

From Windows PowerShell, you can see processor information including architecture with the command:

systeminfo

Get-WmiObject Win32_Processor

Time v3 and Daylight Savings Time

There is a certain a group of people who hates the daylight savings time change because it “arbitrarily disconnects us from nature.” One day we wake up and the sun is up. The next day we wake up at the “same time” and it is dark (or vice versa when we go off daylight savings time).

To my timekeeping-conscious friends out there, we have something in common: a dislike of brutish machine timekeeping. However, I believe what we really dislike is industrial timekeeping as a whole, not just daylight savings time. The daylight savings time change is like a tiny semiannual glitch in the matrix of industrial timekeeping that draws our attention just enough to feel something is wrong but passes before we really focus the energy to investigate the true enormity of the problem.

The problem is industrial time – since the 18th century – and the solution is Time v3.

Ebola, How Bad?

No sources, but I am unaware of any dispute in the following quick summary:

Really Bad

  • Ebola causes internal and even external bleeding.
    • (The book The Hot Zone describes the virus “liquefying organs,” but this description is widely regarded as overly-sensational to the point of being inaccurate).
  • Very high fatality rate and recovered patients experience ongoing symptoms.
  • Ebola is known to lay dormant within individual human organs for many years.
  • The latest outbreaks are believed to have originated from recovered patients from previous outbreaks in whom the virus lay dormant for years.
  • Scientists believe it is theoretically possible for an Ebola virus to become airborne.

“Not So Bad”

  • As yet, Ebola has been contagious only by bodily fluid contact so outbreaks are almost always contained to just a few hundred people.
  • Infected persons are contagious only when symptomatic and the symptoms are too extreme to ignore. Little or no asymptomatic spread.