vault backup: 2026-03-31 16:53:06
This commit is contained in:
Vendored
+1
-1
@@ -25,6 +25,6 @@
|
|||||||
"repelStrength": 10,
|
"repelStrength": 10,
|
||||||
"linkStrength": 1,
|
"linkStrength": 1,
|
||||||
"linkDistance": 250,
|
"linkDistance": 250,
|
||||||
"scale": 0.18454855383603405,
|
"scale": 0.25873391628743153,
|
||||||
"close": false
|
"close": false
|
||||||
}
|
}
|
||||||
+2104
-2055
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "digitalgarden",
|
"id": "digitalgarden",
|
||||||
"name": "Digital Garden",
|
"name": "Digital Garden",
|
||||||
"version": "2.72.0",
|
"version": "2.74.0",
|
||||||
"minAppVersion": "1.10.0",
|
"minAppVersion": "1.10.0",
|
||||||
"description": "Publish your notes to the web for others to enjoy. For free.",
|
"description": "Publish your notes to the web for others to enjoy. For free.",
|
||||||
"author": "Ole Eskild Steensen",
|
"author": "Ole Eskild Steensen",
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "homepage",
|
"id": "homepage",
|
||||||
"name": "Homepage",
|
"name": "Homepage",
|
||||||
"version": "4.3.1",
|
"version": "4.4.0",
|
||||||
"minAppVersion": "1.11.0",
|
"minAppVersion": "1.11.0",
|
||||||
"description": "Open a specified note, canvas, base, or workspace on startup, or set it for quick access later.",
|
"description": "Open a specified note, canvas, base, or workspace on startup, or set it for quick access later.",
|
||||||
"author": "novov",
|
"author": "novov",
|
||||||
|
|||||||
+3
-3
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-excalidraw-plugin",
|
"id": "obsidian-excalidraw-plugin",
|
||||||
"name": "Excalidraw",
|
"name": "Excalidraw",
|
||||||
"version": "2.20.6",
|
"version": "2.21.2",
|
||||||
"minAppVersion": "1.5.7",
|
"minAppVersion": "1.5.7",
|
||||||
"description": "Sketch Your Mind. An Obsidian plugin to edit and view Excalidraw drawings. Enter the world of 4D Visual PKM.",
|
"description": "Sketch Your Mind. An Obsidian plugin to edit and view Excalidraw drawings. Enter the world of 4D Visual PKM.",
|
||||||
"author": "Zsolt Viczian",
|
"author": "Zsolt Viczian",
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -2,7 +2,12 @@
|
|||||||
id:
|
id:
|
||||||
aliases: []
|
aliases: []
|
||||||
title: "Software Requirements: Analysis and Specification"
|
title: "Software Requirements: Analysis and Specification"
|
||||||
tags: []
|
tags:
|
||||||
|
- authorship/other
|
||||||
|
- destiny/permanent
|
||||||
|
- exclude-from-word-count
|
||||||
|
- topic/software
|
||||||
|
- type/media/book
|
||||||
author: Alan Mark Davis
|
author: Alan Mark Davis
|
||||||
date: 1990
|
date: 1990
|
||||||
---
|
---
|
||||||
|
|||||||
+13
-2
@@ -1,4 +1,15 @@
|
|||||||
### Category Mistake
|
---
|
||||||
|
id:
|
||||||
|
aliases: []
|
||||||
|
title: Category Mistake
|
||||||
|
tags:
|
||||||
|
- authorship/original
|
||||||
|
- destiny/permanent
|
||||||
|
- status/incomplete
|
||||||
|
- topic/ambiguity
|
||||||
|
- type/encyclopedia-entry
|
||||||
|
---
|
||||||
|
# Category Mistake
|
||||||
|
|
||||||
> [!quote] [Category mistake](https://en.wikipedia.org/wiki/Category_mistake)
|
> [!quote] [Category mistake](https://en.wikipedia.org/wiki/Category_mistake)
|
||||||
> An example is a person learning that the game of cricket involves team spirit,
|
> An example is a person learning that the game of cricket involves team spirit,
|
||||||
@@ -7,7 +18,7 @@
|
|||||||
|
|
||||||
All squares are rectangles, but not all rectangles are squares.
|
All squares are rectangles, but not all rectangles are squares.
|
||||||
|
|
||||||
#### Overgeneralization via Hyperspecification
|
## Overgeneralization via Hyperspecification
|
||||||
|
|
||||||
Or "inappropriate synecdoche[^1]"
|
Or "inappropriate synecdoche[^1]"
|
||||||
|
|
||||||
|
|||||||
@@ -19,4 +19,5 @@ dg-publish: true
|
|||||||
## Others-isms
|
## Others-isms
|
||||||
|
|
||||||
* "... and stuff."
|
* "... and stuff."
|
||||||
|
* "and stuff like that."
|
||||||
* "Also too ..."
|
* "Also too ..."
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ dg-publish: true
|
|||||||
---
|
---
|
||||||
# 2025-12-17 05:39:??
|
# 2025-12-17 05:39:??
|
||||||
|
|
||||||
|
%% [[statistical-modeling-for-construction-estimating]] %%
|
||||||
|
|
||||||
One aspect of estimating that I find most interesting,
|
One aspect of estimating that I find most interesting,
|
||||||
but that is criminally understudied,
|
but that is criminally understudied,
|
||||||
is the effect of building dimensions
|
is the effect of building dimensions
|
||||||
|
|||||||
@@ -21,8 +21,76 @@ yearly: "[[2026]]"
|
|||||||
|
|
||||||
### Cross Join
|
### Cross Join
|
||||||
|
|
||||||
[](https://www.sqlshack.com/sql-cross-join-with-examples/)
|
In [[sql]], the `CROSS JOIN` operation
|
||||||
|
returns the [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product)
|
||||||
|
of two tables.
|
||||||
|
|
||||||
### ~~add column, update by key~~
|
```sqlite
|
||||||
|
CREATE TABLE WireSizes (wire_size TEXT NOT NULL);
|
||||||
|
INSERT INTO WireSizes VALUES ('#12'), ('#10'), ('#8'), ('#6'), ('#4'), ('#2'), ('#1'), ('#1/0'), ('#2/0');
|
||||||
|
|
||||||
|
CREATE TABLE WireMaterials (wire_material TEXT NOT NULL);
|
||||||
|
INSERT INTO WireMaterials VALUES ('CU'), ('AL');
|
||||||
|
|
||||||
|
SELECT wire_size, wire_material
|
||||||
|
FROM WireSizes
|
||||||
|
CROSS JOIN WireMaterials;
|
||||||
|
```
|
||||||
|
|
||||||
|
```sqlite
|
||||||
|
SELECT wire_size||' '||wire_material AS wire_type
|
||||||
|
FROM WireSizes, WireMaterials; -- implicit cross join
|
||||||
|
```
|
||||||
|
|
||||||
|
### Create Table From Query
|
||||||
|
|
||||||
|
`CREATE TABLE _ AS` syntax is intuitive,
|
||||||
|
|
||||||
|
```sqlite
|
||||||
|
CREATE TABLE Wires AS
|
||||||
|
SELECT wire_size, wire_material
|
||||||
|
FROM WireSizes, WireMaterials;
|
||||||
|
```
|
||||||
|
|
||||||
|
but it excludes the ability to set constraints.
|
||||||
|
|
||||||
|
Use this pattern instead:
|
||||||
|
|
||||||
|
```sqlite
|
||||||
|
CREATE TABLE Wires (
|
||||||
|
wire_size TEXT NOT NULL,
|
||||||
|
wire_material TEXT NOT NULL,
|
||||||
|
PRIMARY KEY (wire_size, wire_material),
|
||||||
|
FOREIGN KEY (wire_size) REFERENCES WireSizes(wire_size),
|
||||||
|
FOREIGN KEY (wire_material) REFERENCES WireMaterials(wire_material)
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO Wires (wire_size, wire_material)
|
||||||
|
SELECT wire_size, wire_material
|
||||||
|
FROM WireSizes, WireMaterials;
|
||||||
|
```
|
||||||
|
|
||||||
|
You'd think you could just throw an `AS` after the constraints
|
||||||
|
and omit the `INSERT` statement, but no.
|
||||||
|
|
||||||
|
### Add Columns to Table
|
||||||
|
|
||||||
for adding data after creating new tables with [[#Cross Join]]
|
for adding data after creating new tables with [[#Cross Join]]
|
||||||
|
|
||||||
|
```sqlite
|
||||||
|
ALTER TABLE Wires
|
||||||
|
ADD length_specific_dc_resistance_in_milliohms_per_foot FLOAT;
|
||||||
|
|
||||||
|
UPDATE Wires
|
||||||
|
SET length_specific_dc_resistance_in_milliohms_per_foot = CASE
|
||||||
|
WHEN wire_size = '#8' AND wire_material = 'CU' THEN 0.778
|
||||||
|
WHEN wire_size = '#6' AND wire_material = 'CU' THEN 0.491
|
||||||
|
WHEN wire_size = '#4' AND wire_material = 'CU' THEN 0.308
|
||||||
|
-- ...
|
||||||
|
ELSE NULL
|
||||||
|
END;
|
||||||
|
```
|
||||||
|
|
||||||
|
### Resources
|
||||||
|
|
||||||
|
* [sqlshack.com](https://www.sqlshack.com/)
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
id: 2026-03-31T14:53:42-04:00
|
||||||
|
aliases: []
|
||||||
|
title: 2026-03-31 14:53:42
|
||||||
|
tags:
|
||||||
|
- authorship/original
|
||||||
|
- destiny/permanent
|
||||||
|
- status/draft
|
||||||
|
- type/periodic/timestamped
|
||||||
|
dg-publish: true
|
||||||
|
date-created: 2026-03-31T14:53:42-04:00
|
||||||
|
daily: "[[2026-03-31]]"
|
||||||
|
weekly: "[[2026-W14]]"
|
||||||
|
monthly: "[[2026-03]]"
|
||||||
|
quarterly: "[[2026-Q1]]"
|
||||||
|
yearly: "[[2026]]"
|
||||||
|
---
|
||||||
|
# 2026-03-31 14:53:42
|
||||||
|
|
||||||
|
%% [[statistical-modeling-for-construction-estimating]] %%
|
||||||
|
|
||||||
|
A while ago I wrote proofs
|
||||||
|
for average distance between random points
|
||||||
|
under taxicab geometry.
|
||||||
|
|
||||||
|
I ought to find those and add them to the vault.
|
||||||
|
|
||||||
|
One condition I know I didn't examine
|
||||||
|
was random points on the perimeter of a rectangular space.
|
||||||
|
This would be ideal for runs between equipment in the same room.
|
||||||
Reference in New Issue
Block a user