Starting to move blog entries to normal pages, added books and links pages

This commit is contained in:
Awstin 2024-08-14 07:54:13 -04:00
parent 9ae5e7b7fc
commit 796a481ab2
9 changed files with 130 additions and 42 deletions

View file

@ -95,3 +95,45 @@ author: Ed Zintron
type: blog
date_added: 2024-08-13
description: Tech journalist and critic. I find that his writing starkly points out things that I have felt "wrong" in tech over the past decade and dives into why.
---
url: https://www.henrikkarlsson.xyz/p/unfolding
title: Everything that turned out well in my life followed the same design process
author: Henrik Karlsson
type: article
date_added: 2024-08-13
description: A wonderful and thoughtful perspective on developing a deep understanding of things in life to guide ourselves to something that fits us personally.
---
url: https://www.henrikkarlsson.xyz/p/writing-to-think
title: How to think in writing
author: Henrik Karlsson
type: article
date_added: 2024-08-13
description: Using writing as a tool for thinking deeply.
---
url: https://berjon.com/public-interest-internet/
title: The Public Interest Internet
author: Robin Berjon
type: article
date_added: 2024-08-13
description: What if the internet were designed and maintained for the people that used it?
---
url: https://training.kalzumeus.com/newsletters/archive/do-not-end-the-week-with-nothing
title: Don't End the Week with Nothing
author: Patrick McKenzie
type: article
date_added: 2024-08-13
description: Good perspective on how to choose what to work on. Preferentially work on what you can take with you regardless of where you go.
---
url: https://ploum.net/the-computer-built-to-last-50-years/index.html
title: The Computer Built to Last 50 Years
author: Lionel Dricot
type: article
date_added: 2024-08-13
description: Pondering on how we use computers and how we could design them to be tools that last.
---
url: https://www.plough.com/en/topics/life/work/just-your-handyman
title: Just Your Handyman
author: Kurt Armstrong
type: article
date_added: 2024-08-13
description: On work, and the satisfaction in personal small work and problem solving. Not everything needs to be big.

View file

@ -1,8 +1,8 @@
id: mfn
title: A Mind for Numbers
previous: sdl
next: afh
date: 2021-02-05
date_created: 2021-02-05
date_last_updated: 2021-02-05
description: Thoughts on A Mind for Numbers by Barbara Oakley
---
<h2>
A Mind for Numbers
@ -103,6 +103,3 @@ If you can explain it in a way that they can understand you have a very good gra
The more that we know of and use them the better off we will all be.
So if this sounds interesting to you take a look at the book A Mind for Numbers and save on time and frustration when learning something new.
</p>
<p>
Thank you for reading.
</p>

View file

@ -1,8 +1,8 @@
id: deepwork
title: Deep Work
previous: ewt
next: habits
date: 2021-02-27
date_created: 2021-02-27
date_last_updated: 2021-02-27
description: Thoughts on Deep Work by Cal Newport
---
<h2>
Deep Work
@ -154,6 +154,3 @@ date: 2021-02-27
It is a skill that is very rare today and is well worth developing.
I certainly advise picking up a copy and giving it a read if you want to give yourself an edge in productivity.
</p>
<p>
Thanks for reading.
</p>

View file

@ -1,16 +1,54 @@
id: onreading
title: On Reading
previous: thestart
next: mop
date: 2021-01-06
id: books
title: Books
date_created: 2021-01-06
date_last_updated: 2024-08-13
description: Root page for all things in the Awstin/Book vendiagram overlap
---
<h2>
On Reading
</h2>
<h2>Books</h2>
<p>
I love to read.
It has been one of my dominant passtimes since I was quite young.
The amount that I read has varied a fair bit over the years.
From a book every few days to one every few months.
Depends what is going on in life and how much time I have to spend.
Though I feel like I am at my happiest with at least one book getting finished every few weeks.
</p>
<h4>Currently Reading</h4>
<p>
Just finished Elantris.
Just started Wild Problems by Russ Roberts.
A book on making the sort of decisions that we can't make my just logically looking at the data.
Without a right or wrong answer, the bigger life questions.
Have been feeling stuck on one of those lately and as I was scrolling through the books on my e-reader this jumped out at me.
</p>
<h4>Read so far in 2024</h4>
<ul class="no-bul">
<li>Elantris - Brandon Sanderson</li>
<li>The Burnout Society - Byung-Chul Han</li>
<li>Reaper's Gale - Steven Erikson</li>
<li>Inversions - Iain M Banks</li>
<li>Morphotrophic - Greg Egan</li>
<li>Absolution Gap - Alastair Reynolds</li>
<li>Useful not True - Derek Sivers</li>
<li>Radicalized - Cory Doctorow</li>
<li>Rapture of the Nerds - Cory Doctorow + Charles Stross</li>
<li>Phoresis and Other Journeys - Greg Egan</li>
</ul>
<h4>Reflections from Books I have read</h4>
<ul class="no-bul">
<li><a href="/garden/deepwork">Deep Work</a></li>
<li><a href="/garden/mfn">A Mind for Numbers</a></li>
</ul>
<h3>
Why I Read
</h3>
<p>
I think that reading does not quite get the credit for the marvelous thing it is in the public eye.
It is pretty rare to hear people talking very much about reading anymore and the phrase “I dont read” has become more and more common.
</p>
<p>
I would like to make a case for reading.
@ -30,7 +68,6 @@ date: 2021-01-06
There is no way to communicate with anyone beyond that point in time.
Oral traditions are the only method of communication older than writing and that runs into the space problems of needing to be with a storyteller.
By reading I have access to the teachers from the entirety of recorded human history.
</p>
<p>
There are ideas and ways of thinking that have fallen by the wayside.
@ -44,7 +81,6 @@ date: 2021-01-06
Reading is one of the few actions these days that force us to slow down, and focus on a single thing.
You cant chat while reading, you cant watch a show, work, or eat very well (when I try to read and eat I end up spending more time finding my place than reading).
In a world that increasingly moves faster and demands more of our time moments of slowness and peace are more valuable than ever.
</p>
<p>
Taking the time to absorb an idea, roll it around in your head, and come to conclusions about it is fantastic, almost meditative.
@ -53,7 +89,6 @@ date: 2021-01-06
Spending the extra time with it forces us to think, let that initial gut reaction no longer be our only point of reference.
I am not saying that the gut is always wrong, instinct and intuition are valuable tools, but more and more things are designed to take advantage of that system.
It is much harder to do that to someone's critical thinking.
</p>
<p>
Reading is beautiful and often seems to be the cure to a lot of the ailments of the modern day.
@ -61,12 +96,10 @@ date: 2021-01-06
When all our senses are constantly bombarded by all sorts of stimulation reading forces us to give them a rest, except for the occasional eye strain when you get into a really good book and cant put it down.
</p>
<p>
It forces us to exercise our imagination.
It forces us to exercise our imagination.
With modern technology our movies and shows are so realistic that we no longer have to use our imagination to picture things.
I cant help but think there is a massive benefit practicing being able to picture things we have not seen in our heads.
</p>
<p>
So that is my case for reading.
I hope my thoughts on the topic were interesting.
</p>

View file

@ -31,6 +31,8 @@ description: Home page and starting point for exploring my digital garden
</p>
<ul>
<li><a href="/blogroll">Blogroll</a></li>
<li><a href="/links">Links</a></li>
<li><a href="/garden/books">Books</a></li>
<li><a href="/uses">Uses</a></li>
<li><a href="/now">Now</a></li>
<li><a href="/about">About</a></li>

View file

@ -32,18 +32,6 @@ description: Home page
</a>
</section><br>
<section id="blog">
<h2>Blog</h2>
<h3>Most Recent</h3>
<ul class="no-bul" hx-trigger="load" hx-get="/api/recentarticles">
</ul>
<p>
For the full list see my <a href="/blog">Blog.</a>
</p>
</section><br>
<section id="garden">
<h2>Garden</h2>
<p>

14
pages/links.html Normal file
View file

@ -0,0 +1,14 @@
id: links
title: Links
date_created: 2024-08-13
date_last_updated: 2024-08-13
description: Interesting links
---
<h2>Links</h2>
<p>
A collection of links to interesting posts that I have found.
In a random order to shuffle what links are at the top.
</p>
<ul class="no-bul" hx-trigger="load" hx-get="/api/articlelinks">
</ul>

View file

@ -13,6 +13,7 @@ pub fn get_router() -> Router {
.route("/articles", get(blogs))
.route("/recentarticles", get(recent_blogs))
.route("/blogrolllinks", get(blogroll_links))
.route("/articlelinks", get(article_links))
}
async fn blogs(state: Extension<AppState>) -> impl IntoResponse {
@ -37,14 +38,23 @@ async fn recent_blogs(state: Extension<AppState>) -> impl IntoResponse {
async fn blogroll_links(state: Extension<AppState>) -> impl IntoResponse {
let db_pool = &state.db;
let blogroll_list: Vec<String> = get_blog_links_as_list(db_pool)
let blogroll_list: Vec<String> = get_links_as_list(db_pool, LinkType::BLOG)
.await
.expect("couldn't get blogroll links");
blogroll_list.join("\n<hr>\n")
}
pub async fn get_blog_links_as_list(pool: &PgPool) -> Result<Vec<String>, Box<dyn Error>> {
async fn article_links(state: Extension<AppState>) -> impl IntoResponse {
let db_pool = &state.db;
let blogroll_list: Vec<String> = get_links_as_list(db_pool, LinkType::ARTICLE)
.await
.expect("couldn't get blogroll links");
blogroll_list.join("\n<hr>\n")
}
pub async fn get_links_as_list(pool: &PgPool, link_type: LinkType) -> Result<Vec<String>, Box<dyn Error>> {
let mut links: Vec<Link> = match Link::read_all(pool).await {
Ok(a) => a.iter().map(|x| *x.clone()).collect(),
Err(_) => Vec::new(),
@ -55,7 +65,7 @@ pub async fn get_blog_links_as_list(pool: &PgPool) -> Result<Vec<String>, Box<dy
let list: Vec<String> = links
.iter()
.filter(|link| link.link_type == LinkType::BLOG)
.filter(|link| link.link_type == link_type)
.map(|link| {
let title: String = match &link.title {
Some(t) => t.to_string(),

View file

@ -28,6 +28,7 @@ pub fn get_router(pool: PgPool) -> Router {
.route("/uses", get(uses))
.route("/ai", get(ai))
.route("/blogroll", get(blogroll))
.route("/links", get(links))
.route(
"/robots.txt",
get(|| async { Redirect::permanent("/assets/robots.txt") }),
@ -62,3 +63,7 @@ async fn ai(state: Extension<AppState>) -> Result<impl IntoResponse, StatusCode>
async fn blogroll(state: Extension<AppState>) -> Result<impl IntoResponse, StatusCode> {
get_page(&state.db, "blogroll").await
}
async fn links(state: Extension<AppState>) -> Result<impl IntoResponse, StatusCode> {
get_page(&state.db, "links").await
}