daily stoic

Nov
29
3 Life-Changing Books for Building Better Habits

3 Life-Changing Books for Building Better Habits

Three transformative books on habit formation, stoicism, and personal growth—Atomic Habits, The Daily Stoic, and Meditations for Mortals.
3 min read
Jan
24
2024 - Year of Discipline

2024 - Year of Discipline

Today is Bell Let's Talk Day, a day focused on mental health awareness. For the past few years, I have been using it to talk about a theme for the next year.
8 min read
Jul
25

Sunday Listening - Ryan Holiday

Two podcast episodes with Ryan Holiday about the media that are worth listening to.
2 min read
Nov
23

(no title)

Today’s reading from Daily Stoic [http://amzn.to/2iZdBFO].

Latest

DigitalOcean Referral Badge

Social Links


Mastodon
document.addEventListener('DOMContentLoaded', function() { // Get all links in the document const links = document.getElementsByTagName('a'); const currentDomain = 'foursides.ca'; const amazonAffiliateTag = 'four0b-20'; // Replace with your Amazon affiliate tag // Process each link Array.from(links).forEach(link => { const href = link.getAttribute('href'); // Skip if link is null, empty, or just a hash if (!href || href === '' || href.startsWith('#')) { return; } try { const url = new URL(href); // Handle Amazon links if (url.hostname.includes('amazon.')) { // Remove any existing tag url.searchParams.delete('tag'); // Add your affiliate tag url.searchParams.set('tag', amazonAffiliateTag); // Update the link attributes link.setAttribute('href', url.toString()); link.setAttribute('target', '_blank'); link.setAttribute('rel', 'nofollow noopener noreferrer'); } // Handle other external links (not Amazon and not internal) else if (!url.hostname.includes(currentDomain)) { // Add referrer parameter url.searchParams.set('ref', 'foursides.ca'); // Update the link attributes link.setAttribute('href', url.toString()); link.setAttribute('target', '_blank'); link.setAttribute('rel', 'nofollow noopener noreferrer'); } } catch (e) { // If URL parsing fails, it's likely a relative URL (internal link) // Do nothing for internal links console.debug('Skipping internal link:', href); } }); });T