<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Christian Bager Bach Houmann - Writing</title>
<description>Essays and articles on software, productivity, and learning by Christian Bager Bach Houmann.</description>
<link>https://bagerbach.com/</link>
<language>en-us</language>
<copyright>© 2026 Christian Bager Bach Houmann</copyright>
<atom:link href="https://bagerbach.com/rss/blog.xml" rel="self" type="application/rss+xml"/>
<lastBuildDate>Tue, 24 Feb 2026 00:00:00 GMT</lastBuildDate>
<item>
<title>The agent-ready codebase</title>
<link>https://bagerbach.com/blog/agent-ready-codebase/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/agent-ready-codebase/</guid>
<description>What I’ve learned about making codebases work for agents.</description>
<pubDate>Tue, 24 Feb 2026 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>If you want to get the most out of agents, your codebase needs to be agent friendly.<br>
You'll see incredibly strong performance with existing models, even in complex codebases, and it will set you up for even better models in the future.</p>
<p>Getting this right is the difference between agents that "always produce slop" and agents that ship.</p>
<p>Agentic engineering fails when the human becomes the bottleneck.<br>
<a href="https://www.youtube.com/shorts/CM_DP7pkJQk">The models just want to work</a>. You need to do everything you can to <em>get out of their way</em>.</p>
<p><a href="https://bagerbach.com/books/poor-charlies-almanack/#chapter-two--the-munger-approach-to-life-learning-and-decision-making">Charlie Munger</a> said "Take a simple idea and take it seriously."<br>
That's what we need to do here. Make the codebase and environment agent-verifiable so the agent can reliably ship changes with minimal intervention.</p>
<p>It comes down to three things:</p>
<ol>
<li>Environment - the agent can use the system autonomously</li>
<li>Intent - the agent understands what you want and why</li>
<li>Feedback loops - the agent can verify its own work, fast</li>
</ol>
<p>These are guidelines and principles I've used and know work.<br>
But before getting to that, we need to talk about Agentic Engineering.</p>
<h2>Agentic Engineering is high leverage and anti-slop</h2>
<p>Agentic Engineering is using AI agents as the primary means of writing code, with the engineer as orchestrator and oversight. You're progressively moving further out of the loop and focusing on higher leverage activities.</p>
<p><a href="https://bagerbach.com/books/elon-musk/">It’s about building the machine that builds the machine.</a></p>
<p>Unlike with Vibe Coding, you aren't throwing your standards out the window.<br>
If anything, we should aspire to raise our standards. Even more as the agents get better.</p>
<p>As the agentic engineer, you are the architect and reviewer. You define architecture, scope tasks for agents, and review output with the same scrutiny you'd give a junior's PR. The agent writes the code; you own the system.</p>
<p>Vibing has its place. Low oversight is useful for throwaway projects, personal scripts, or just exploration. As always, try to find a good balance between exploration and exploitation.</p>
<h2>1. Environment</h2>
<p>The agent should be able to see and do everything you can. If it can't boot the system or reach the APIs, it can't do its job, no matter how good the model is.</p>
<p>The first question is whether the agent can spin up a fully isolated instance per change. Think <code>git worktree</code>, multiple checkouts, or cloud sandboxes like <a href="https://e2b.dev/">e2b</a>, <a href="https://sandbox.cloudflare.com/">Cloudflare</a>, or <a href="https://www.daytona.io/">Daytona</a>.</p>
<p>Could you launch a hundred agents in your codebase right now?<br>
If not, figure out what's stopping you. It's a <a href="https://bagerbach.com/books/the-phoenix-project/">bottleneck</a> in your factory.</p>
<p>There are incredible engineers that <a href="https://steipete.me/posts/2025/shipping-at-inference-speed">do not do this</a> yet still get great results. Your mileage may vary. I find that I'm either</p>
<ul>
<li>working in many repositories at once</li>
<li>spinning up many agents in isolated environments in the same repository</li>
</ul>
<p>or some mix of the two.</p>
<p>It is becoming apparent in my work that, as the agents get better at carrying tasks from design + plan to "shipped," booting up many of them at once matters more and more for throughput.<br>
As their failure rate goes down, it becomes easier to orchestrate more agents.</p>
<p>The agent also needs access to credentials and APIs.<br>
Can it obtain an API key or access token and test the system itself?<br>
Validate the API it just built, or the config it just pushed?<br>
Are your APIs understandable, reachable, and usable for the agent?</p>
<p>It's useful to build CLIs the agent uses to both obtain API keys and interact with the API. Since it uses your APIs through the CLI, it's already authenticated, and it can handle token refreshes, make error codes agent friendly ("what to do instead"), and build custom workflows that resemble common tasks.<br>
This also makes it easier for the agent to facilitate deterministic testing and validation on its own.</p>
<p>Can it see the interface and navigate your app through similar means to your users, like a browser?</p>
<p>If the answer to any of these is no, you're the bottleneck.<br>
Unblock your agent.</p>
<h3>Keep validation cheap</h3>
<p>Validation can't be expensive. If every test run costs real money, it won't scale to hundreds of agents.</p>
<p>It probably won't even feel good running a single agent.</p>
<p>If API calls are expensive, fake them. Write a mock, or use a capture-and-replay proxy that returns the same response for the same input.</p>
<p>Faking an entire API is incredibly cheap with agents. So is building a generic API proxy.</p>
<h3>Observability</h3>
<p>The agent needs access to logs, metrics, and traces, not just raw log files. Can it query your telemetry directly, including in deployed environments?</p>
<p>Give it read-access to k8s logs. Let it query your observability stack. Give it access to your browser's devtools. Redirect dev process logs to a <code>dev.log</code> file.<br>
There are so many ways to provide it with the information it needs, so just make it easy for the agent to access.</p>
<h3>A navigable codebase</h3>
<p>If the codebase is good for humans, it's probably good for agents.</p>
<p>Tangled abstractions and missing docs hurt agents the same way they hurt people.<br>
If your codebase is a mess, I've found the agent is more likely to <a href="https://en.wikipedia.org/wiki/Broken_windows_theory">continue the mess</a>.<br>
Don't <a href="https://bagerbach.com/books/the-pragmatic-programmer/#dont-live-with-broken-windows">live with broken windows</a>.</p>
<p>Verbose test output is another example of something that doesn't work for either humans or agents. Spitting out thousands of lines only bloats the context.</p>
<h2>2. Intent</h2>
<p>I'm not going to tell you that context engineering is incredibly important. I feel like that's rather common knowledge by now. You should research, design and plan well so the agent isn't led astray.<br>
Doing this is a force multiplier. If the agent doesn't know what you're building and why, it'll always miss.</p>
<p>I've found that many underinvest in domain knowledge and overinvest in generic instructions.<br>
You don't need a 10,000 line <code>AGENTS.md</code> to teach the agent how to run <code>bun run test</code>.<br>
It already knows how to use a computer.<br>
But it doesn't know your domain. Your business. And it certainly doesn't know the tacit knowledge that your rank-one <a href="https://en.wikipedia.org/wiki/Bus_factor">bus factor</a> employee knows.</p>
<h3>Make domain knowledge readable</h3>
<p>There is a ton of tacit knowledge scattered through Slack threads, meeting notes, and people's heads. If the agent can't access this, either by reading it directly or through you curating it as context, it will struggle to understand intent and domain.</p>
<p>Write it down. Architecture decision records, domain glossaries, constraint docs.</p>
<p>If it's not written down, it doesn't exist for the agent.</p>
<h3>Encode intent in the codebase itself</h3>
<p>AGENTS.md, CLAUDE.md, Cursor rules, system prompts. These are how you communicate conventions, patterns, and constraints to the agent persistently.</p>
<p>Types, naming, and code structure are also communication. Self-documenting code matters <em>more</em> when agents are reading it.</p>
<p>My general take on AGENTS.md files is that you're likely overdoing them. It's rare that I have something that I <em>need</em> to tell the agent 100% of the time. Use <a href="https://agentskills.io/">skills</a> or better tooling to allow the agent to learn what it needs, when it needs it.</p>
<h3>Scope tasks well</h3>
<p>Small, clear, verifiable units of work with the right context attached outperform vague instructions every time.</p>
<p>Agents are increasingly becoming better at "Here's a problem, debug it"-style tasks.<br>
But it takes experience to know what you can get away with. Just use the agents a lot.</p>
<h3>Architectural decisions still need you</h3>
<p>Human-in-the-loop is still basically required for architecture. My experience is that the agent executes well, but deciding the shape of the system is your job.</p>
<p>I prefer iterating with a frontier model (the strongest reasoning model you have access to) and using <a href="https://repoprompt.com/">RepoPrompt</a> to build context for the 'oracle'.</p>
<p>As for implementation strategy: the models are becoming better at this, especially with good Context Engineering. The better you are at curating relevant information, about the domain, constraints, and current systems, the better the agent does.<br>
I'm still reading the code, and I encourage you to as well. Even if just for mental alignment.</p>
<h2>3. Feedback Loops</h2>
<p>The agent shouldn't have to ask you if it worked.</p>
<p>Every change should be machine-verifiable, and that verification should run automatically, not because the agent remembered to run it.</p>
<h3>Start with the basics</h3>
<p>Linters, compilation, formatters, static checks. These catch the obvious stuff before anything else runs.</p>
<p>Follow Google's <a href="https://bagerbach.com/books/software-engineering-at-google/">Beyoncé Rule</a>: if you like it, then you shoulda put a test on it.</p>
<p>Use static code analysis tools like Sonar and CodeScene. These have MCP servers (<a href="https://github.com/SonarSource/sonarqube-mcp-server">Sonarqube MCP</a>).</p>
<h3>Write fewer, better tests</h3>
<p>Deterministic tests of all kinds: unit, integration, end-to-end.</p>
<p>But don't make coverage a target. Respect <a href="https://en.wikipedia.org/wiki/Goodhart%27s_law">Goodhart's Law</a>.</p>
<p>Write fewer, high-quality behavioral tests. Tests that verify behavior, not implementation details. If you have to change your tests to change your code without the behavior changing, something is wrong.</p>
<h3>Enforce architecture mechanically</h3>
<p>This is a great idea from <a href="https://openai.com/index/harness-engineering/">OpenAI</a> that I would love to explore further.</p>
<p>Architectural tests (ArchUnit-style tools) and dependency constraints encoded as tests catch structural drift that no amount of code review will consistently find.</p>
<p>Another great tip from OpenAI here: When you build custom lints, write the error messages as <a href="https://openai.com/index/harness-engineering/">remediation instructions</a>. The error output becomes agent context.</p>
<h3>Put verification in the agentic loop</h3>
<p>More of your validation should run inside the agent's workflow, not just in CI.</p>
<p>Use hooks, pre-commit checks, or whatever mechanism ensures checks run <em>for sure</em>. Prefer enforcing validation mechanically over hoping the agent "remembers" conventions.</p>
<p>You don't want correctness to depend on the model's memory.</p>
<p>I'm oscillating between this being a violation of the <a href="http://www.incompleteideas.net/IncIdeas/BitterLesson.html">bitter lesson</a> or not. Currently, I'm leaning towards it being a temporary 'hack'. The scaffolding you build around today's weaknesses will dissolve as the models improve.<br>
For now, the juice is worth the squeeze. It's worth continuously pushing the models to see where the boundaries are.</p>
<h2>Conclusion</h2>
<p>Most of what makes a codebase agent-ready is what makes it good for humans. Clean abstractions, behavioral tests, written-down domain knowledge, fast feedback. Agents didn't create the need for any of this. They just made the cost of not having it obvious.<br>
It took an army of PhDs with amnesia for us to learn that. Again.</p>
<p>The difference is that this investment now <a href="https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents">compounds</a>.<br>
And as the models get better, the return goes up.</p>
<h2>Further reading</h2>
<p>There are so many talented engineers doing incredible work in this field. I can't hope to name them all, so here are some resources I've enjoyed.</p>
<ul>
<li><a href="https://mitchellh.com/writing/my-ai-adoption-journey">My AI Adoption Journey</a> - Mitchell Hashimoto.</li>
<li><a href="https://www.anthropic.com/engineering/claude-code-best-practices">Claude Code: Best practices for agentic coding</a> - Anthropic.</li>
<li><a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents">Effective context engineering for AI agents</a> - Anthropic.</li>
<li><a href="https://www.humanlayer.dev/blog/advanced-context-engineering">Advanced Context Engineering for Coding Agents</a> - Dex Horthy, HumanLayer.</li>
<li><a href="https://simonwillison.net/guides/agentic-engineering-patterns/">Agentic Engineering Patterns</a> - Simon Willison.</li>
<li><a href="https://every.to/source-code/compound-engineering-how-every-codes-with-agents-af3a1bae-cf9b-458e-8048-c6b4ba860e62">Compound Engineering: How Every Codes With Agents</a> - Dan Shipper &#x26; Kieran Klaassen, Every.</li>
<li><a href="https://openai.com/index/harness-engineering/">Harness Engineering: Leveraging Codex in an Agent-First World</a> - OpenAI.</li>
<li><a href="https://ampcode.com/podcast">Raising an Agent</a> - a podcast by Quinn Slack and Thorsten Ball</li>
</ul>
<p>There are so, so many more. You should see my <a href="https://bagerbach.com/short/reader">Readwise Reader</a> vault.</p>]]></content:encoded>
</item>
<item>
<title>Using AI agents to do months of work in a weekend</title>
<link>https://bagerbach.com/blog/using-ai-agents-to-do-months-of-work-in-a-weekend/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/using-ai-agents-to-do-months-of-work-in-a-weekend/</guid>
<description>Or, how I resolved over 100 issues using a triage bot and coding agents.</description>
<pubDate>Thu, 21 Aug 2025 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>Like a lot of OSS maintainers, I was underwater: hundreds of issues, feature requests stacked for years, and a constant “I should get to that” guilt loop.<br>
It's hard to prioritize (there's lots of other stuff to get done), but you always feel guilty for it.</p>
<p>This summer, I decided to do something about it. I've been working heavily with AI agents, and I knew I'd be able to at least knock out a good few issues over a weekend.</p>
<p>That feels like an understatement now.</p>
<p>I resolved 85 issues in a weekend, with 57 issues closed on Friday alone. August isn't over, and the current tally is at 111 issues closed this month. And that's without trying very hard, only working a few hours on some days.<br>
I'm not sharing numbers to brag (they aren't that great), but to share what's possible with little effort.</p>
<figure><img src="https://bagerbach.com/uploads/2e01729c01b60aa0aafd7cdc12545b3e.png" alt="Monthly issues closed for QuickAdd"><figcaption>Monthly issues closed for QuickAdd, spiking when I started using this workflow.</figcaption></figure>
<p>This post breaks down exactly what I built, how I used it, and some takeaways.</p>
<p>It all started by creating custom, AI-powered triage bot that massively accelerated how long it takes for me to process an issue.</p>
<h2>The triage bot</h2>
<p>I built <code>claude-github-triage</code>, a tool that uses Claude Code SDK to automatically analyze every issue in the context of the entire codebase.</p>
<p>If you have Claude Max ($200/mo), you get generous limits. That made this both fast and cheap to run at scale.</p>
<img src="https://bagerbach.com/uploads/2bc38133aafdc2061e6921570229cee0.png" alt="After all, why shouldn&#x27;t I exploit subsidized tokens?">
<p>Before, I’d manually load the repo into my head for each issue: is it still relevant, where would it live, what code paths are involved, etc. Now the bot does that pass for me and I skim its output. Issue processing dropped to ~<strong>5 minutes</strong> on average.</p>
<p>The triage bot gives Claude access to the entire repository for each issue analysis.<br>
This means Claude can:</p>
<ul>
<li>Search for relevant code implementations</li>
<li>Check if similar functionality already exists</li>
<li>Identify duplicate issues by understanding the actual codebase</li>
<li>Suggest specific files that need modification</li>
</ul>
<p>Each issue gets a structured analysis:</p>
<ul>
<li><strong>Should Close:</strong> Yes/No + why</li>
<li><strong>Labels:</strong> Suggested labels</li>
<li><strong>Confidence:</strong> High/Medium/Low</li>
<li><strong>Analysis:</strong> In-depth reasoning about the issue</li>
<li><strong>Suggested Response:</strong> Draft reply to the author</li>
</ul>
<p>Here's an example output:</p>
<pre><code class="language-markdown">=== TRIAGE ANALYSIS START ===
SHOULD_CLOSE: No
LABELS: enhancement, UI/UX, good-first-issue
CONFIDENCE: High

ANALYSIS:
This feature request for dark mode is valid and aligns with modern application standards. 
The codebase already has a theming system in src/themes/base.ts that could be extended. 
Implementation would require:
1. Adding dark theme variables to the theme system
2. Creating a toggle component in the settings panel
3. Persisting theme preference to localStorage

This is well-scoped and would benefit many users based on similar requests (#45, #78).

SUGGESTED_RESPONSE:
Thank you for this feature request! Dark mode is indeed valuable and I can see 
from the codebase that we have the infrastructure to support this. The theming 
system in src/themes/ just needs to be extended with dark mode variables. 
I'll prioritize this for the next release.
=== TRIAGE ANALYSIS END ===
</code></pre>
<p>I considered turning it into more structured data, by doing a structured-output pass after the analysis, but decided against it. The above worked just fine.</p>
<p>The bot maintains a metadata file tracking which issues have been triaged. It automatically skips already-processed issues unless you use the <code>--force</code> flag. This means you can run it repeatedly without wasting API calls.<br>
This also helped resume processing when I hit rate limits.</p>
<p>If you're wondering why exactly I chose to build the SDK-based workflow, it's because I don't think just letting some kind of AI agent loose in the repository and trying to have it go through every issue by manually prompting it to do so would work. Deterministically injecting the context of the issue and anything else that might be relevant, and then handling one issue at a time seems to work the best.</p>
<h2>The playbook I used</h2>
<h3>Phase 1: Mass triage</h3>
<p>Run it on <strong>every</strong> open issue:</p>
<pre><code class="language-bash">bun src/cli.ts triage -o chhoumann -r quickadd \
  -p ~/projects/quickadd \ # So Claude Code uses the folder as context
  --concurrency 3
</code></pre>
<p>I hit my Claude Code Max limits multiple times.<br>
Worth it: every issue got a contextual read and clear next steps.</p>
<p>Beyond triage, I added a lightweight review loop:</p>
<pre><code class="language-bash"># View your triage inbox
bun src/cli.ts inbox --filter unread

# Review unread issues one by one
bun src/cli.ts review

# Mark issues as read after handling them
bun src/cli.ts mark 123 --read

# Or: Sync with GitHub to mark closed issues as read
bun src/cli.ts sync -o owner -r repo
</code></pre>
<p>It feels like an inbox. You process, mark done, move on.</p>
<h3>Phase 2: Quick Wins</h3>
<p>I reviewed the triage results and immediately closed:</p>
<ul>
<li>Duplicate issues (the bot identified these by analyzing actual code &#x26; using the <code>gh</code> cli)</li>
<li>Outdated requests (features that were already implemented)</li>
<li>Issues that were out of scope</li>
</ul>
<h3>Phase 3: Implementation</h3>
<p>For the remaining issues marked as valid enhancements or bugs, I got to work coding up solutions using my standard AI-coding workflow. See <a href="https://bagerbach.com/blog/how-i-use-claude-code">How I use Claude Code</a>.</p>
<p>I mostly used <a href="https://ampcode.com/">Amp</a> by Sourcegraph here. Using Claude Code would probably have been cheaper, but Amp just works great, and I really enjoy using it. And the Oracle is great for design.</p>
<p>My current favorite tools for AI-coding are: Amp, Claude Code, Codex CLI, and Cursor.<br>
As for models: GPT-5-high, Claude Opus 4.1, Sonnet 4.</p>
<p>The analysis from the triage bot wasn't spot on every time, but useful roughly 8/10 times. That, combined with my own understanding of the codebase and using an agent to code, made this phase much faster.</p>
<h2>Takeaways</h2>
<p>There's no excuse anymore to not have an agent run every time you get an inbound issue, ticket, or whatever request. It's practically free compared to how much time it saves you.<br>
My current goal with AI is finding ways to <a href="https://x.com/karpathy/status/1886192184808149383">embrace exponentials</a>.<br>
<strong>How can I build systems to compound my effectiveness?</strong><br>
And to build the system that builds the system.</p>
<p>Building is now table stakes. The moat is taste.<br>
As the cost of code falls toward zero, the scarce resource is judgment. LLMs let you ship almost anything; the work is deciding what deserves to exist and what should be cut.</p>
<p>Processing 100 issues at 90% accuracy beats carefully handling 10 issues at 100% accuracy. You can always refine.<br>
The goal was never to make a perfect triaging system that can handle every case perfectly. Shipping fast and getting something out the door, that's the goal.<br>
I spent very little time adjusting the prompts. Once they were good enough, I set the bot loose and got to work.</p>
<h2>Getting Started</h2>
<p>Want to try this yourself? I'd encourage you to create your own solution. But you're free to take a look at mine &#x26; find inspiration!</p>
<p>If you plan to try this, beware prompt injection attacks on your GitHub issues. Use permission systems to prevent the bot from sharing secrets or performing malicious actions. Put the bot in a sandbox.</p>
<p><strong>Resources:</strong></p>
<ul>
<li>GitHub: <a href="https://github.com/chhoumann/claude-github-triage">claude-github-triage</a></li>
<li>QuickAdd Plugin: <a href="https://github.com/chhoumann/quickadd">chhoumann/quickadd</a></li>
<li>Related: How I use Claude Code - My complete guide to AI-powered development</li>
<li>Claude Code SDK: <a href="https://docs.anthropic.com/claude-code/sdk">Documentation</a></li>
</ul>]]></content:encoded>
<category>AI</category>
<category>productivity</category>
<category>programming</category>
</item>
<item>
<title>How I use Claude Code</title>
<link>https://bagerbach.com/blog/how-i-use-claude-code/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-use-claude-code/</guid>
<description>I run multiple Claude Code instances daily for everything from throwaway scripts to production systems. This guide covers the patterns, commands, and workflow optimizations I’ve developed - including how to use CC effectively with existing codebases, manage parallel agents, and avoid common pitfalls.</description>
<pubDate>Sun, 22 Jun 2025 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>I've been a huge fan of <a href="https://docs.anthropic.com/en/docs/claude-code/overview">Claude Code</a> ever since it was released.</p>
<p>The first time I tried it, I was amazed by how good it was. But the token costs quickly turned me away. I couldn't justify those exorbitant costs at the time.</p>
<p>Since Anthropic enabled using Claude.ai subscriptions to power your Claude Code usage, it has been a no-brainer for me. I quickly bought the Max tier to power my usage.</p>
<p>Since then, I've used Claude Code extensively. I'm constantly running multiple CC instances doing some form of coding or task that is useful to me. This would have cost me many thousands of dollars if I had to pay for the usage. My productivity has noticeably improved since starting this, and it has been increasing steadily as I become better at using these agentic coding tools.</p>
<h2>From throwaway projects...</h2>
<p>Agentic coding gives the obvious benefit of taking on throwaway projects that you'd like to explore for fun. Just yesterday, I downloaded all my medical records from the Danish health systems and formatted them so an LLM would easily understand them. Then I gave it to OpenAI's o3 model to help me better understand my (somewhat atypical) medical history. This required barely 15 minutes of my time to set up and guide, and the result was fantastic. I finally got answers to questions I'd been wondering about for years.</p>
<p>There are countless instances where CC has helped me do things that are useful, but not critical enough to be prioritized in the day-to-day.</p>
<h2>To serious development</h2>
<p>What I'm most interested in is how I can use tools like Claude Code to increase my leverage and create better, more useful solutions. While side projects are fun, they are not the most important thing to optimize. Serious projects (usually) have existing codebases and quality standards to uphold.</p>
<p>I've had great experience using Claude Code, <a href="https://ampcode.com/">AmpCode</a>, and other AI-coding tools for these kinds of projects, but the patterns of coding are different:</p>
<ul>
<li><strong>Context curation is critical</strong>: You have to include established experience and directional cues beyond task specifications.</li>
<li><strong>You guide the architecture</strong>: The onus is on you to provide and guide the model to create designs that fit well in the context of your system. This means more hand-holding and creating explicit plans for the agentic tools to execute.</li>
<li><strong>Less vibe-coding, more partnership</strong>: It's more like an intellectual sparring partner that eagerly does trivial tasks for you, is somehow insanely capable in some areas, can read and understand hundreds of documentation pages in minutes, but doesn't quite understand your system or project without guidance.</li>
</ul>
<h2>Patterns and tips for agentic coding</h2>
<p>Much of this advice can be boiled down to:</p>
<ul>
<li>Get good at using the tool you're using</li>
<li>Build and maintain tools and frameworks that help you use these agentic coding tools better. Use the agentic tools to write these</li>
</ul>
<p>Your skills and productivity gains from agentic coding tools will improve exponentially over time.</p>
<p>Here's my attempt at boiling down some of the most useful patterns and tips I've learned using Claude Code extensively.</p>
<h3>1. Establish and maintain a CLAUDE.md file</h3>
<p>This can feel like a chore but it's insanely useful and can save you a ton of time.</p>
<p>Use <code>#</code> as the prefix to your CC prompt and it'll remember your instructions by adding them to CLAUDE.md.</p>
<p>Put CLAUDE.md files in subdirectories to give specific instructions for tests, frontend code, backend services, etc. Curate your context!</p>
<p>Your investment in curating files like CLAUDE.md, or procedures as in (7) and scripts (11), is the same as investing in your developer tooling. Would you code without a linter or formatter? Without a language server to correct you and give feedback? Or a type checker?<br>
You could, but most would agree that it's not as easy, nor productive.</p>
<h3>2. Use the commands</h3>
<p>A few useful ones:</p>
<ul>
<li>Plan mode (shift+tab). I find that this increases the reliability of CC. It becomes more capable of seeing a task to completion.</li>
<li>Verbose mode (CTRL+R) to see the full context Claude is seeing</li>
<li>Bash mode (<code>!</code> prefix) to run a command and add output as context for the next turn</li>
<li>Escape to interrupt and double escape to jump back in the conversation history</li>
</ul>
<h3>3. Run multiple instances in parallel</h3>
<p>Frontend + backend at the same time is a great approach. Have one instance build the frontend with placeholder/mocked API &#x26; iterate on design while another agent codes the backend.</p>
<p>You can use Git worktrees to work on the same codebase with multiple agents.<br>
It's honestly more of a pain than gain when you have to spin up multiple Docker Compose environments, so just use a single Claude instance in that kind of project. Or just don't have multiple instances of the project running at the same time.</p>
<h3>4. Use subagents</h3>
<p>Just ask Claude Code to do so.</p>
<p>A common and useful pattern is to use multiple subagents to approach a problem from multiple angles simultaneously, then have the main agent compare notes and find the best solution with you.</p>
<h3>5. Use visuals</h3>
<p>Use screenshots (just drag them in). Claude Code is excellent at understanding visual information and can help debug UI issues or replicate designs.</p>
<h3>6. Choose Claude 4 Opus</h3>
<p>Especially if you're on a higher tier. Why not use the best model available?</p>
<p>Anecdotally, it's a noticeable step up from Claude 4 Sonnet, which is already a good model in itself.</p>
<h3>7. Create project-specific slash commands</h3>
<p>Put them in <code>.claude/commands</code>.</p>
<p>Examples:</p>
<ul>
<li>Common tasks or instructions</li>
<li>Creating migrations</li>
<li>Project setup</li>
<li>Loading context/instructions</li>
<li>Tasks that need repetition with different focus each time</li>
</ul>
<p><a href="https://x.com/tokenbender">@tokenbender</a> wrote a great guide to their <a href="https://github.com/tokenbender/agent-guides">agent-guides</a> setup that shows this practice.</p>
<h3>8. Use Extended Thinking</h3>
<p>Write <code>think</code>, <code>think harder</code>, or <code>ultrathink</code> for cases requiring more consideration, like debugging, planning, design.</p>
<p>These increase the thinking budget, which gives better results (but takes longer).<br>
<code>ultrathink</code> supposedly allocates 31,999 tokens.</p>
<h3>9. Document everything</h3>
<p>Have Claude Code write its thoughts, current task specifications, designs, requirement specifications, etc. to an intermediate markdown document. This both serves as context later and a scratchpad for now. And it'll be easier for you to verify and help guide the coding process.</p>
<p>Using these documents in later sessions is invaluable. As your sessions grow in length, context is lost. Regain important context by just reading the document again.</p>
<h3>10. For the Vibe-Coders</h3>
<p>USE GIT. USE IT OFTEN. You can just make Claude write your commit messages. But seriously, version control becomes even more critical when you're moving fast with AI assistance.</p>
<p>There isn't the same kind of checkpoint system that other AI coding tools have, so I'm pretty vigilant about using Git. You can't just reverse the last two messages worth of edits - once Claude makes changes, they're made. Git is your safety net.</p>
<h3>11. Optimize your workflow</h3>
<ul>
<li>Continue previous sessions to preserve context (use <code>--resume</code> or <code>--continue</code>).</li>
<li>Use MCP servers (context7, deepwiki, puppeteer, or build your own)</li>
<li>Write scripts for common deterministic tasks and have CC maintain them</li>
<li>Use the GitHub CLI instead of fetch tools for GitHub context. Don't use <code>fetch</code> tools to retrieve context from GitHub. (Or use an MCP server, but the CLI is better).</li>
<li>Track your usage with <a href="https://github.com/ryoppippi/ccusage">ccusage</a>
<ul>
<li>It's more of a fun gimmick if you're on Pro/Max tier; you'll just see what you 'could have' spent if you were using the API.</li>
<li>But the live dashboard (<code>bunx ccusage blocks --live</code>) is useful to see if your multiple agents are coming close to hitting your rate limits.</li>
</ul>
</li>
<li>Stay up to date via the <a href="https://docs.anthropic.com/en/docs/claude-code/overview">docs</a>; they're super good</li>
</ul>
<h3>12. Aim for fast feedback loops</h3>
<p>Provide a verification mechanism for the model to achieve a fast feedback loop. This usually leads to less reward-hacking, especially when paired with specific instructions and constraints.</p>
<p>Reward hacking: when the AI takes shortcuts to make it look like it succeeded without actually solving the problem.<br>
For example, it might hardcode fake outputs or write tests that always pass instead of doing the real work.</p>
<h3>13. Use Claude Code in your IDE</h3>
<p>The experience becomes more akin to pair-programming, and it gives CC the ability to interact with IDE tools, which is very useful. E.g. access to lint errors, your active file, etc.</p>
<h3>14. Queue messages</h3>
<p>You can keep sending messages while Claude Code is working, which queues them for the next turn. Useful when you already know what's next.</p>
<p>There's currently a bug where CC doesn't always see this message, but it usually works. Just be aware of it.</p>
<h3>15. Compacting and session context length</h3>
<p>Be very mindful of compacting. It reduces the noise in your conversation, but also leads to compacting away important context. Do it preemptively at natural stopping points, as compression leads to information loss.</p>
<p>Ideally you'd break down tasks to be small enough to handle in a single session. I never really use <code>/clear</code> - I just start another session.</p>
<h3>16. Get a better PR template</h3>
<p>This is more of a personal gripe with the template itself.</p>
<p>Use another PR template than the default. It seems like Claude 4/CC was instructed to use a specific template, but that template sucks. "Summary → Changes → Test plan" is OK but it's better to have a PR body tailored to your exact PR or project.</p>
<h3>17. Use log files for debugging</h3>
<p>One of the most powerful debugging patterns I've discovered is redirecting output to log files that Claude Code can read. Here's how it works:</p>
<ul>
<li>Redirect your dev server output to a log file: <code>bun run dev > dev.log 2>&#x26;1</code></li>
<li>Have Claude Code read from the log file to understand what's happening</li>
<li>You can add logging statements throughout your code for debugging</li>
<li>Test either manually (Claude can prompt you when to test) or automatically (via scripts that Claude writes)</li>
<li>You can even pipe outputs from both frontend and backend into the same file for a unified view</li>
</ul>
<p>Now Claude can analyze patterns in the logs, suggest where to add more logging, and iteratively help you narrow down issues without constantly asking you what happened.</p>
<h3>18. Use multiple models together</h3>
<p>Here's something I've been doing that's working incredibly well: running o3-pro and Claude Code at the same time.</p>
<p>I run o3 (especially o3-pro) in Cursor alongside Claude Code. o3-pro is ridiculously good at planning and design - it can look at your codebase and tell you EXACTLY what needs to change with surgical precision. I'm talking about it understanding your system and knowing precisely which three lines in which files need tweaking.</p>
<p>So here's my workflow:</p>
<ul>
<li>Fire up Claude Code in Cursor IDE</li>
<li>Spin up o3-pro for the hard thinking</li>
<li>Tag the relevant parts of my codebase in Cursor</li>
<li>Let o3-pro figure out the approach</li>
<li>Have Claude Code implement it</li>
</ul>
<p>I've found that this combo is incredibly good for complex tasks, refactors, and hard-to-debug issues.</p>
<p>This workflow can get quite expensive, and Claude Code with Opus is more than enough for most tasks. I'd recommend using extensive planning in Claude Code before reaching for o3-pro.</p>
<h2>Beyond Coding</h2>
<p>Claude Code can be used for more than just code.</p>
<ul>
<li>Researching docs → writeup (e.g. to use for another sessions context)</li>
<li>Debugging (it's really good at this!)</li>
<li>Writing docs after completing features</li>
<li>Refactoring</li>
<li>Writing tests</li>
<li>Finding where X is done (e.g. in new codebases, or huge codebases you're unfamiliar with).</li>
<li>Using Claude Code in my Obsidian vault for extensive research into my notes (journals, thoughts, ideas, notes, ...)</li>
</ul>
<h2>Things to watch out for</h2>
<h3>Security when using tools</h3>
<p>Be VERY careful about the external context you inject into the model, e.g. by fetching via MCPs or other means. Prompt injection is a real security concern.<br>
People can write malicious prompts in e.g. GitHub issues and have your agent leak unintended information or take unprecedented actions.</p>
<h3>Vibing</h3>
<p>I've still yet to see a case where full-on, automated vibe-coding for hours on end makes sense. Yes, it works, and you can do it, but I'd avoid it in production systems where people actively have to maintain code. Or, at least review the code yourself.</p>
<h3>Model variability</h3>
<p>Sometimes it feels like Anthropic is using quantized models depending on model demand. It's as if the model quality can vary over time. This could be a skill issue, but I've seen other users report similar experiences. While understandable, it doesn't feel great as a paying user.</p>
<h2>Running Claude Code</h2>
<p>I can't help but tinker and explore the tools I use, and I've found some interesting configurations to use with Claude Code.</p>
<p>Some of the environment variables I'm using aren't publicly documented yet, so this is your warning that they may be unstable.</p>
<p>Here's a bash function I use to launch Claude Code with optimized settings:</p>
<pre><code class="language-bash">function ccv() {
  local env_vars=(
    "ENABLE_BACKGROUND_TASKS=true"
    "FORCE_AUTO_BACKGROUND_TASKS=true"
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=true"
    "CLAUDE_CODE_ENABLE_UNIFIED_READ_TOOL=true"
  )
  
  local claude_args=()
  
  if  "$1" == "-y" ; then
    claude_args+=("--dangerously-skip-permissions")
  elif  "$1" == "-r" ; then
    claude_args+=("--resume")
  elif  "$1" == "-ry"  ||  "$1" == "-yr" ; then
    claude_args+=("--resume" "--dangerously-skip-permissions")
  fi
  
  env "${env_vars[@]}" claude "${claude_args[@]}"
}
</code></pre>
<ul>
<li><strong><code>CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=true</code></strong>: Disables telemetry, error reporting, and auto-updates</li>
<li><strong><code>ENABLE_BACKGROUND_TASKS=true</code></strong>: Enables background task functionality for long-running commands</li>
<li><strong><code>FORCE_AUTO_BACKGROUND_TASKS=true</code></strong>: Automatically sends long tasks to background without needing to confirm</li>
<li><strong><code>CLAUDE_CODE_ENABLE_UNIFIED_READ_TOOL=true</code></strong>: Unifies file reading capabilities, including Jupyter notebooks.</li>
</ul>
<p>This gives you:</p>
<ul>
<li>Automatic background handling for long tasks (e.g. your dev server)</li>
<li>No telemetry or unnecessary network traffic</li>
<li>Unified file reading</li>
<li>Easy switches for common scenarios (<code>-y</code> for auto-approve, <code>-r</code> for resume)</li>
</ul>
<p><strong>A note on the background task flags</strong>: They're nice in theory, but Claude Code isn't able to properly handle them yet. When a job is forced to the background, CC doesn't know how to get the job's logs. So while the flags work, the implementation isn't quite there.</p>]]></content:encoded>
<category>productivity</category>
<category>programming</category>
</item>
<item>
<title>Understanding DeepSeek R1</title>
<link>https://bagerbach.com/blog/understanding-deepseek-r1/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/understanding-deepseek-r1/</guid>
<description>A detailed look at the DeepSeek-R1 model, and how to run it locally.</description>
<pubDate>Sat, 01 Feb 2025 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>DeepSeek-R1 is an open-source language model built on DeepSeek-V3-Base that’s been making waves in the AI community. Not only does it match (or even surpass) OpenAI’s o1 model in many benchmarks, but it also comes with fully MIT-licensed weights. This marks it as the first non-OpenAI/Google model to deliver strong reasoning capabilities in an open and accessible manner.</p>
<p>What makes DeepSeek-R1 particularly exciting is its transparency. Unlike the less-open approaches from some industry leaders, DeepSeek has published a detailed training methodology in their <a href="https://github.com/deepseek-ai/DeepSeek-R1/blob/main/DeepSeek_R1.pdf">paper</a>.<br>
The model is also remarkably cost-effective, with input tokens costing just $0.14-0.55 per million (vs o1's $15) and output tokens at $2.19 per million (vs o1's $60).</p>
<blockquote>
<p><strong>Why it matters</strong></p>
<p>Until ~GPT-4, the common wisdom was that better models required more data and compute. While that’s still valid, models like o1 and R1 demonstrate an alternative: inference-time scaling through reasoning.</p>
</blockquote>
<h2>The Essentials</h2>
<p>The <a href="https://github.com/deepseek-ai/DeepSeek-R1/blob/main/DeepSeek_R1.pdf">DeepSeek-R1 paper</a> presented multiple models, but primary amongst them were R1 and R1-Zero. Following these are a series of distilled models that, while interesting, I won't discuss here.</p>
<p>DeepSeek-R1 uses two major ideas:</p>
<ol>
<li>A multi-stage pipeline where a small set of cold-start data kickstarts the model, followed by large-scale RL.</li>
<li>Group Relative Policy Optimization (GRPO), a reinforcement learning method that relies on comparing multiple model outputs per prompt to avoid the need for a separate critic.</li>
</ol>
<p>R1 and R1-Zero are both reasoning models. This essentially means they do <a href="https://www.promptingguide.ai/techniques/cot">Chain-of-Thought</a> before answering. For the R1 series of models, this takes form as thinking within a <code>&#x3C;think></code> tag, before answering with a final summary.</p>
<h3>R1-Zero vs R1</h3>
<p>R1-Zero applies Reinforcement Learning (RL) directly to DeepSeek-V3-Base with no supervised fine-tuning (SFT). RL is used to optimize the model's policy to maximize reward.<br>
R1-Zero achieves excellent accuracy but sometimes produces confusing outputs, such as mixing multiple languages in a single response. R1 fixes that by incorporating limited supervised fine-tuning and multiple RL passes, which improves both correctness and readability.</p>
<p>It is interesting how some languages may express certain ideas better, which leads the model to choose the most expressive language for the task.</p>
<h2>Training Pipeline</h2>
<p>The training pipeline that DeepSeek published in the R1 paper is immensely interesting. It showcases how they created such strong reasoning models, and what you can expect from each phase. This includes the problems that the resulting models from each phase have, and how they solved it in the next phase.</p>
<p>It's interesting that their training pipeline varies from the usual:</p>
<ul>
<li><strong>The usual training strategy:</strong> Pretraining on large dataset (train to predict next word) to get the base model → supervised fine-tuning → preference tuning via RLHF</li>
<li><strong>R1-Zero:</strong> Pretrained → RL</li>
<li><strong>R1:</strong> Pretrained → Multistage training pipeline with multiple SFT and RL stages</li>
</ul>
<figure><img src="https://bagerbach.com/uploads/GhxkCRMWoAAtXos.jpg" alt="DeepSeek R1 Pipeline"><figcaption>A high-level pipeline diagram for DeepSeek-R1 posted by @SirrahChan on X</figcaption></figure>
<ol>
<li><strong>Cold-Start Fine-Tuning:</strong> Fine-tune DeepSeek-V3-Base on a few thousand Chain-of-Thought (CoT) samples to ensure the RL process has a decent starting point. This gives a good model to start RL.</li>
<li><strong>First RL Stage:</strong> Apply GRPO with rule-based rewards to improve reasoning correctness and formatting (such as forcing chain-of-thought into thinking tags). When they were near convergence in the RL process, they moved to the next step. The result of this step is a strong reasoning model but with weak general capabilities, e.g., poor formatting and language mixing.</li>
<li><strong><a href="https://rlhfbook.com/c/10-rejection-sampling.html">Rejection Sampling</a> + general data:</strong> Create new SFT data through rejection sampling on the RL checkpoint (from step 2), combined with supervised data from the DeepSeek-V3-Base model. They collected around 600k high-quality reasoning samples.</li>
<li><strong>Second Fine-Tuning:</strong> Fine-tune DeepSeek-V3-Base again on 800k total samples (600k reasoning + 200k general tasks) for broader capabilities. This step resulted in a strong reasoning model with general capabilities.</li>
<li><strong>Second RL Stage:</strong> Add more reward signals (helpfulness, harmlessness) to refine the final model, in addition to the reasoning rewards. The result is DeepSeek-R1.</li>
</ol>
<p>They also did model distillation for several Qwen and Llama models on the reasoning traces to get distilled-R1 models.</p>
<blockquote>
<p><strong>Model distillation</strong></p>
<p>Model distillation is a technique where you use a teacher model to improve a student model by generating training data for the student model.<br>
The teacher is typically a larger model than the student.</p>
</blockquote>
<h3>Group Relative Policy Optimization (GRPO)</h3>
<p>The basic idea behind using reinforcement learning for LLMs is to fine-tune the model’s policy so that it naturally produces more accurate and useful answers.<br>
They used a reward system that checks not only for correctness but also for proper formatting and language consistency, so the model gradually learns to favor responses that meet these quality criteria.</p>
<p>In this paper, they encourage the R1 model to generate chain-of-thought reasoning through RL training with GRPO.<br>
Rather than adding a separate module at inference time, the training process itself nudges the model to produce detailed, step-by-step outputs, making the chain-of-thought an emergent behavior of the optimized policy.</p>
<p>What makes their approach particularly interesting is its reliance on straightforward, rule-based reward functions.<br>
Instead of depending on expensive external models or human-graded examples as in traditional RLHF, the RL used for R1 uses simple criteria: it might give a higher reward if the answer is correct, if it follows the expected <code>&#x3C;think></code>/<code>&#x3C;answer></code> formatting, and if the language of the answer matches that of the prompt.<br>
Not relying on a reward model also means you don't have to spend time and effort training it, and it doesn't take memory and compute away from your main model.</p>
<p>GRPO was introduced in the <a href="https://arxiv.org/abs/2402.03300">DeepSeekMath paper</a>. Here's how GRPO works:</p>
<ol>
<li>For each input prompt, the model generates <em>G</em> different responses.</li>
<li>Each response receives a scalar reward based on factors like accuracy, formatting, and language consistency.</li>
<li>Rewards are adjusted relative to the group's performance, essentially measuring how much better each response is compared to the others.</li>
<li>The model updates its strategy slightly to favor responses with higher relative advantages. It only makes slight adjustments (using techniques like clipping and a KL penalty) to ensure the policy doesn't stray too far from its original behavior.</li>
</ol>
<p>A cool aspect of GRPO is its flexibility. You can use simple rule-based reward functions (for instance, awarding a bonus when the model correctly uses the <code>&#x3C;think></code> syntax) to guide the training.</p>
<p>While DeepSeek used GRPO, you could use <a href="https://x.com/jiayi_pirate/status/1882839504899420517">alternative methods instead (PPO or PRIME)</a>.</p>
<p>For those looking to dive deeper, Will Brown has written quite a nice <a href="https://gist.github.com/willccbb/4676755236bb08cab5f4e54a0475d6fb">implementation</a> of training an LLM with RL using GRPO. GRPO has also already been added to the <a href="https://github.com/huggingface/trl/blob/main/trl/trainer/grpo_trainer.py">Transformer Reinforcement Learning (TRL)</a> library, which is another good resource.<br>
Finally, <a href="https://www.youtube.com/@YannicKilcher">Yannic Kilcher</a> has a <a href="https://www.youtube.com/watch?v=bAWV_yrqx4w">great video</a> explaining GRPO by going through the DeepSeekMath paper.</p>
<h2>Is RL on LLMs the path to AGI?</h2>
<p>As a final note on describing DeepSeek-R1 and the methodologies they've presented in their paper, I want to highlight a passage from the DeepSeekMath paper, based on a point Yannic Kilcher made in his <a href="https://www.youtube.com/watch?v=bAWV_yrqx4w">video</a>.</p>
<blockquote>
<p>These findings indicate that RL enhances the model’s overall performance by rendering the output distribution more robust, in other words, it seems that the improvement is attributed to boosting the correct response from TopK rather than the enhancement of fundamental capabilities.</p>
</blockquote>
<p>In other words, RL fine-tuning tends to shape the output distribution so that the highest-probability outputs are more likely to be correct, even though the overall capability (as measured by the diversity of correct answers) is largely present in the pretrained model.</p>
<p>This suggests that reinforcement learning on LLMs is more about refining and “shaping” the existing distribution of responses rather than endowing the model with entirely new capabilities.<br>
Consequently, while RL techniques such as PPO and GRPO can produce substantial performance gains, there appears to be an inherent ceiling determined by the underlying model’s pretrained knowledge.</p>
<p>It is unclear to me how far RL will take us. Perhaps it will be the stepping stone to the next big milestone. I'm excited to see how it unfolds!</p>
<h2>Running DeepSeek-R1</h2>
<p>I've used DeepSeek-R1 via the <a href="https://chat.deepseek.com/">official chat interface</a> for various problems, which it seems to solve well enough. The additional search functionality makes it even nicer to use.</p>
<p>Interestingly, o3-mini(-high) was released as I was writing this post. From my initial testing, R1 seems stronger at math than o3-mini.</p>
<p>I also rented a single H100 via <a href="https://lambdalabs.com/">Lambda Labs</a> for $2/h (26 CPU cores, 214.7 GB RAM, 1.1 TB SSD) to run some experiments.<br>
The primary objective was to see how the model would perform when deployed on a single H100 GPU, not to extensively test the model's capabilities.</p>
<h3>671B via Llama.cpp</h3>
<p><a href="https://huggingface.co/unsloth/DeepSeek-R1-GGUF">DeepSeek-R1 1.58-bit (UD-IQ1_S)</a> quantized model by Unsloth, with a 4-bit quantized KV-cache and partial GPU offloading (29 layers running on the GPU), running via <a href="https://github.com/ggerganov/llama.cpp">llama.cpp</a>:</p>
<pre><code class="language-sh">.llama-cli \
    --model DeepSeek-R1-GGUF/DeepSeek-R1-UD-IQ1_S/DeepSeek-R1-UD-IQ1_S-00001-of-00003.gguf \
    --cache-type-k q4_0 \
    --threads 16 \
    --n-gpu-layers 29 \
    --prio 2 \
    --temp 0.6 \
    --ctx-size 8192 \
    --seed 3407 \
    --prompt "&#x3C;|User|>Create a Flappy Bird game in Python.&#x3C;|Assistant|>"
</code></pre>
<p>29 layers seemed to be the sweet spot given this configuration.</p>
<p><strong>Performance:</strong></p>
<pre><code>llama_perf_sampler_print:    sampling time =     130.46 ms /  1690 runs   (    0.08 ms per token, 12954.06 tokens per second)
llama_perf_context_print:        load time =   20112.10 ms
llama_perf_context_print: prompt eval time =    8959.28 ms /    19 tokens (  471.54 ms per token,     2.12 tokens per second)
llama_perf_context_print:        eval time =  387400.66 ms /  1689 runs   (  229.37 ms per token,     4.36 tokens per second)
llama_perf_context_print:       total time =  398219.39 ms /  1708 tokens
</code></pre>
<img src="https://bagerbach.com/uploads/50dc38b18219ae07af3b5e8f3dd88a9c.gif" alt="image">
<p>A r/localllama user <a href="https://www.reddit.com/r/LocalLLaMA/comments/1idseqb/deepseek_r1_671b_over_2_toksec_without_gpu_on/">described</a> that they were able to get over 2 tok/sec with DeepSeek R1 671B, without using their GPU on their local gaming setup.<br>
Digital Spaceport wrote a full guide on <a href="https://digitalspaceport.com/how-to-run-deepseek-r1-671b-fully-locally-on-2000-epyc-rig/">how to run Deepseek R1 671b fully locally on a $2000 EPYC server</a>, on which you can get ~4.25 to 3.5 tokens per second.</p>
<p>As you can see, the tokens/s isn't quite bearable for any serious work, but it's fun to run these large models on accessible hardware.</p>
<p>What matters most to me is a combination of usefulness and time-to-usefulness in these models. Since reasoning models need to think before answering, their time-to-usefulness is usually higher than other models, but their usefulness is also usually higher.<br>
We need to both maximize usefulness and minimize time-to-usefulness.</p>
<h3>70B via Ollama</h3>
<p><a href="https://ollama.com/library/deepseek-r1:70b">70.6b params, 4-bit KM</a> quantized DeepSeek-R1 running via <a href="https://ollama.com/">Ollama</a>:</p>
<pre><code class="language-sh">ollama run deepseek-r1:70b
</code></pre>
<img src="https://bagerbach.com/uploads/60008dc180b679fd49eba5e5a265464b.gif" alt="image">
<p>GPU utilization shoots up here, as expected when compared to the mostly CPU-powered run of 671B that I showcased above.</p>
<h2>Resources</h2>
<ul>
<li><a href="https://github.com/deepseek-ai/DeepSeek-R1/blob/main/DeepSeek_R1.pdf">DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning</a></li>
<li><a href="https://arxiv.org/abs/2402.03300">[2402.03300] DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models</a></li>
<li><a href="https://mirror-feeling-d80.notion.site/DeepSeek-R1-182808527b17801585dadb84f7c66cd9">DeepSeek R1 - Notion</a> (<a href="https://www.youtube.com/watch?v=sGUjmyfof4Q">Building a fully local "deep researcher" with DeepSeek-R1 - YouTube</a>)</li>
<li><a href="https://www.interconnects.ai/p/deepseek-r1-recipe-for-o1">DeepSeek R1's recipe to replicate o1 and the future of reasoning LMs</a></li>
<li><a href="https://newsletter.languagemodels.co/p/the-illustrated-deepseek-r1">The Illustrated DeepSeek-R1 - by Jay Alammar</a></li>
<li><a href="https://timkellogg.me/blog/2025/01/25/r1?__readwiseLocation=">Explainer: What's R1 &#x26; Everything Else? - Tim Kellogg</a></li>
<li><a href="https://m.youtube.com/watch?v=kv8frWeKoeo">DeepSeek R1 Explained to your grandma - YouTube</a></li>
</ul>
<h3>DeepSeek</h3>
<ul>
<li>Try R1 at <a href="https://chat.deepseek.com/">chat.deepseek.com</a></li>
<li><a href="https://github.com/deepseek-ai/DeepSeek-R1">GitHub - deepseek-ai/DeepSeek-R1</a></li>
<li><a href="https://huggingface.co/deepseek-ai/Janus-Pro-7B">deepseek-ai/Janus-Pro-7B · Hugging Face</a>  (January 2025): Janus-Pro is a novel autoregressive framework that unifies multimodal understanding and generation. It can both understand and generate images.</li>
<li><a href="https://github.com/deepseek-ai/DeepSeek-R1/blob/main/DeepSeek_R1.pdf">DeepSeek-R1: Incentivizing Reasoning Capability in Large Language Models via Reinforcement Learning</a> (January 2025) This paper introduces DeepSeek-R1, an open-source reasoning model that rivals the performance of OpenAI's o1. It presents a detailed methodology for training such models using large-scale reinforcement learning techniques.</li>
<li><a href="https://arxiv.org/html/2412.19437v1">DeepSeek-V3 Technical Report</a> (December 2024) This report discusses the implementation of an FP8 mixed precision training framework validated on an extremely large-scale model, achieving both accelerated training and reduced GPU memory usage.</li>
<li><a href="https://arxiv.org/abs/2401.02954">DeepSeek LLM: Scaling Open-Source Language Models with Longtermism</a> (January 2024) This paper delves into scaling laws and presents findings that facilitate the scaling of large-scale models in open-source configurations. It introduces the DeepSeek LLM project, dedicated to advancing open-source language models with a long-term perspective.</li>
<li><a href="https://arxiv.org/abs/2401.14196">DeepSeek-Coder: When the Large Language Model Meets Programming—The Rise of Code Intelligence</a> (January 2024) This research introduces the DeepSeek-Coder series, a range of open-source code models trained from scratch on 2 trillion tokens. The models are pre-trained on a high-quality project-level code corpus and employ a fill-in-the-blank task to enhance code generation and infilling.</li>
<li><a href="https://arxiv.org/abs/2405.04434">DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model</a> (May 2024) This paper presents DeepSeek-V2, a Mixture-of-Experts (MoE) language model characterized by economical training and efficient inference.</li>
<li><a href="https://arxiv.org/abs/2406.11931">DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligence</a> (June 2024) This research introduces DeepSeek-Coder-V2, an open-source Mixture-of-Experts (MoE) code language model that achieves performance comparable to GPT-4 Turbo in code-specific tasks.</li>
</ul>
<h3>Interesting events</h3>
<ul>
<li>Hong Kong University <a href="https://hkust-nlp.notion.site/simplerl-reason">replicates R1 results</a> (Jan 25, '25)</li>
<li>Huggingface announces <a href="https://github.com/huggingface/open-r1">huggingface/open-r1: Fully open reproduction of DeepSeek-R1</a> to replicate R1, fully open source (Jan 25, '25)</li>
<li>OpenAI researcher <a href="https://x.com/markchen90/status/1884303237186216272">confirms</a> the DeepSeek team independently found and used some core ideas the OpenAI team used on the way to o1</li>
</ul>]]></content:encoded>
<category>AI</category>
</item>
<item>
<title>Sherlock Holmes and Mental Models</title>
<link>https://bagerbach.com/blog/sherlock-holmes-and-mental-models/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/sherlock-holmes-and-mental-models/</guid>
<description>On how pattern recognition and mental models build expertise.</description>
<pubDate>Fri, 01 Nov 2024 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>In <em>A Study in Scarlet</em>, Dr. Watson criticized an article written by (as it turned out) Sherlock Holmes. He thought <em>The Art of Deduction</em> to be utter nonsense.</p>
<p>This prompted Sherlock to tell Watson about his profession and, more importantly, how he acquired his skills and the lengths he went to hone them.</p>
<p>Sherlock Holmes is the only consulting detective in the world. He uses his skills in the art of deduction to set other detectives straight.</p>
<p>So what's his secret?</p>
<p>When you've encountered countless cases, it's rare for a new one to defy all known patterns.</p>
<p>Patterns emerge, even in the strangest cases.</p>
<p>As Ray Dalio says in <a href="https://bagerbach.com/books/principles">Principles</a>, you should learn the general principles so new things can be reduced to “another one of those.”</p>
<p>This is also what makes chess players skilled: the accumulation of patterns. It becomes a game of who has the most patterns readily available.</p>
<p>Charlie Munger promotes the acquisition of mental models (a broad variety, at that) which help you become wiser and more capable.</p>
<blockquote>
<p>"You must know the big ideas in the big disciplines and use the routinely — all of them, not just a few. Most people are trained in one model — economics, for example — and try to solve all problems in one way. You know the old saying: 'To the man with a hammer, the world looks like a nail.' This is a dumb way of handling problems."</p>
<p><cite>Charlie Munger, <a href="https://bagerbach.com/books/poor-charlies-almanack">Poor Charlie's Almanack</a></cite></p>
</blockquote>
<p>Mental models and principles have certainly worked for these men and women.</p>
<p>They'll work for you, too.</p>]]></content:encoded>
</item>
<item>
<title>Summer Paper Reading List 2024</title>
<link>https://bagerbach.com/blog/summer-paper-reading-list-2024/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/summer-paper-reading-list-2024/</guid>
<description>A curated list of key papers on machine learning, neural networks, transformers, and distributed systems.</description>
<pubDate>Mon, 01 Jul 2024 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>This is my summer reading list for 2024.<br>
The list covers the foundational concepts and cutting-edge research in machine learning, neural networks, transformers, and distributed systems.<br>
It is based on my own research interests and recommendations from others.</p>
<p>Pick a few that grab you and really dig in.<br>
Implement the key ideas if you can.<br>
It's amazing how much clearer things become when you actually build them.</p>
<p>Any suggestions? Send me a DM on Twitter <a href="https://twitter.com/chrisbbh">@chrisbbh</a>.<br>
If I find or get recommended a paper that's relevant and insightful, I'll add it to the list.</p>
<p>I'll update this post with my progress as I work through the papers. Each paper will be marked with a dot indicating its status: unread (○), read (●), or abandoned (×).</p>
<h3>Foundational Computer Science Papers</h3>
<ul>
<li>● <a href="https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf">Go To Statement Considered Harmful</a> by Edsger W. Dijkstra (read)</li>
<li>● <a href="https://www.cs.cmu.edu/~crary/819-f09/Hoare78.pdf">Communicating Sequential Processes</a> by C. A. R. Hoare (read)</li>
<li>● <a href="https://academic.oup.com/mind/article/LIX/236/433/986238">Computing Machinery and Intelligence</a> by Alan Turing (read)</li>
</ul>
<h3>Fundamental Concepts and Techniques in Machine Learning</h3>
<ul>
<li>● <a href="https://arxiv.org/abs/1803.08375">Deep Learning Using Rectified Linear Units (ReLU)</a> by Abien Fred M. Agarap (read)</li>
<li>● <a href="https://arxiv.org/abs/1607.06450">Layer Normalization</a> by Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E. Hinton (read)</li>
<li>● <a href="https://arxiv.org/abs/1412.6980">Adam: A Method for Stochastic Optimization</a> by Diederik P. Kingma and Jimmy Lei Ba (read)</li>
<li>● <a href="https://jmlr.org/papers/v15/srivastava14a.html">Dropout: A Simple Way to Prevent Neural Networks from Overfitting</a> by Nitish Srivastava et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1606.08415">Gaussian Error Linear Units (GELUs)</a> by Dan Hendrycks and Kevin Gimpel (read)</li>
<li>× <a href="https://stanford.edu/~jlmcc/papers/PDP/Volume%201/Chap8_PDP86.pdf">Learning Internal Representations by Error Propagation</a> by David Rumelhart, Geoffrey Hinton, and Ronald Williams (abandoned)</li>
<li>× <a href="https://jerryfriedman.su.domains/ftp/trebst.pdf">Greedy Function Approximation: A Gradient Boosting Machine</a> by Jerome H. Friedman (abandoned)</li>
<li>● <a href="https://homes.cs.washington.edu/~pedrod/papers/cacm12.pdf">A Few Useful Things to Know About Machine Learning</a> by Pedro Domingos (read)</li>
<li>● <a href="https://research.google.com/pubs/archive/35179.pdf">The Unreasonable Effectiveness of Data</a> by Halevy et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1603.02754">XGBoost: A Scalable Tree Boosting System</a> by Tianqi Chen and Carlos Guestrin (read)</li>
<li>● <a href="https://arxiv.org/abs/1310.4546">Distributed Representations of Words and Phrases and their Compositionality</a> by Mikolov et al. (read)</li>
<li>× <a href="https://arxiv.org/abs/2304.12210">A Cookbook of Self-Supervised Learning</a> by Randall Balestriero et al. (abandoned)</li>
</ul>
<h3>Advanced Neural Network Architectures</h3>
<ul>
<li>● <a href="https://www.bioinf.jku.at/publications/older/2604.pdf">Long Short-Term Memory</a> by Sepp Hochreiter and Jürgen Schmidhuber (read)</li>
<li>● <a href="https://arxiv.org/abs/1211.5063">On the Difficulty of Training Recurrent Neural Networks</a> by Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio (read)</li>
<li>● <a href="https://arxiv.org/abs/2405.04517">xLSTM: Extended Long Short-Term Memory</a> by Maximilian Beck et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1512.03385">Deep Residual Learning for Image Recognition</a> by Kaiming He et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2401.02038">Understanding LLMs: A Comprehensive Overview from Training to Inference</a> by Yiheng Liu et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1502.03044">Show, Attend and Tell: Neural Image Caption Generation with Visual Attention</a> by Kelvin Xu et al. (read)</li>
<li>● <a href="https://papers.nips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf">ImageNet Classification with Deep Convolutional Neural Networks</a> by Krizhevsky et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1406.2661">Generative Adversarial Nets</a> by Goodfellow et al. (read)</li>
</ul>
<h3>Transformer Models and Innovations</h3>
<ul>
<li>● <a href="https://arxiv.org/abs/1706.03762">Attention Is All You Need</a> by Vaswani et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1810.04805">BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding</a> by Jacob Devlin et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1907.11692">RoBERTa: A Robustly Optimized BERT Pretraining Approach</a> by Yinhan Liu et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2005.14165">Language Models Are Few-Shot Learners</a> by Tom B. Brown et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2203.08913">Memorizing Transformers</a> by Yuhuai Wu et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2405.17399">Transformers Can Do Arithmetic with the Right Embeddings</a> by Sean McLeish et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2010.11929">An Image Is Worth 16x16 Words: Transformers For Image Recognition At Scale</a> by Alexey Dosovitskiy et al. (read)</li>
</ul>
<h3>Retrieval-Augmented Learning (RAG)</h3>
<ul>
<li>● <a href="https://arxiv.org/abs/2005.11401">Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks</a> by Patrick Lewis et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2404.19543">RAG and RAU: A Survey on Retrieval-Augmented Language Model in Natural Language Processing</a> by Yucheng Hu and Yuxing Lu (read)</li>
<li>● <a href="http://arxiv.org/abs/2310.11703">A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challenge</a> by Han, Yikun and Liu, Chunjiang and Wang, Pengfei (read)</li>
</ul>
<h3>Distributed Systems and Large-Scale Machine Learning</h3>
<ul>
<li>● <a href="https://research.google.com/archive/gfs-sosp2003.pdf">The Google File System</a> by Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung (read)</li>
<li>● <a href="https://research.google/pubs/spanner-googles-globally-distributed-database-2/">Spanner: Google’s Globally-Distributed Database</a> by James C. Corbett et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2203.12533">Pathways: Asynchronous Distributed Dataflow for ML</a> by Paul Barham et al. (read)</li>
<li>● <a href="https://www.microsoft.com/en-us/research/wp-content/uploads/2017/09/Kafka.pdf">Kafka: A Distributed Messaging System for Log Processing</a> by Jay Kreps et al. (read)</li>
<li>● <a href="https://www.usenix.org/system/files/conference/atc13/atc13-bronson.pdf">TAO: Facebook’s Distributed Data Store for the Social Graph</a> by Nathan Bronson et al. (read)</li>
<li>● <a href="https://www.allthingsdistributed.com/files/amazon-dynamo-sosp2007.pdf">Dynamo: Amazon’s Highly Available Key-Value Store</a> by Giuseppe DeCandia et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/1610.05492">Federated Learning: Strategies for Improving Communication Efficiency</a> by Konečný et al. (read)</li>
<li>× <a href="https://dl.acm.org/doi/10.1145/258533.258660">Consistent Hashing and Random Trees: Distributed Caching Protocols for Relieving Hot Spots on the World Wide Web</a> by David Karger et al. (abandoned)</li>
<li>● <a href="https://www.usenix.org/conference/nsdi13/technical-sessions/presentation/nishtala">Scaling Memcache at Facebook</a> by Rajesh Nishtala et al. (read)</li>
<li>× <a href="https://research.google.com/archive/chubby-osdi06.pdf">The Chubby Lock Service for Loosely-Coupled Distributed Systems</a> by Mike Burrows (abandoned)</li>
<li>● <a href="https://research.google.com/archive/mapreduce-osdi04.pdf">MapReduce: Simplified Data Processing on Large Clusters</a> by Jeffrey Dean and Sanjay Ghemawat (read)</li>
<li>● <a href="https://www.usenix.org/legacy/event/hotcloud10/tech/full_papers/Zaharia.pdf">Spark: Cluster Computing with Working Sets</a> by Matei Zaharia et al. (read)</li>
</ul>
<h3>Recent Innovations and Applications</h3>
<ul>
<li>● <a href="https://www.nature.com/articles/s41586-021-03819-2">Highly Accurate Protein Structure Prediction with AlphaFold</a> by John Jumper et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2304.05332">Emergent Autonomous Scientific Research Capabilities of Large Language Models</a> by Daniil A. Boiko et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2403.09629">Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking</a> by Eric Zelikman et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2404.02575">Language Models as Compilers: Simulating Pseudocode Execution Improves Algorithmic Reasoning in Language Models</a> by Hyungjoo Chae et al. (read)</li>
<li>● <a href="https://arxiv.org/abs/2304.03442">Generative Agents: Interactive Simulacra of Human Behavior</a> by Joon Sung Park et al. (read)</li>
<li>× <a href="https://arxiv.org/abs/2112.03178">Student of Games: A unified learning algorithm for both perfect and imperfect information games</a> by Martin Schmid et al. (abandoned)</li>
<li>● <a href="https://arxiv.org/abs/2404.19756">KAN: Kolmogorov-Arnold Networks</a> by Ziming Liu et al. (read)</li>
</ul>
<h3>Other interesting papers</h3>
<ul>
<li>● <a href="https://www.cornell-capital.com/uploads/papers/medallion-fund.pdf">Medallion Fund: The Ultimate Counterexample?</a> by Gregory Zuckerman (read)</li>
<li>● <a href="https://bitcoin.org/bitcoin.pdf">Bitcoin: A Peer-to-Peer Electronic Cash System</a> by Satoshi Nakamoto (read)</li>
</ul>
<h2>Ilya 30u30 papers</h2>
<p>This list is inspired by a story involving <a href="https://en.wikipedia.org/wiki/Ilya_Sutskever">Ilya Sutskever</a> and <a href="https://en.wikipedia.org/wiki/John_Carmack">John Carmack</a>. As Carmack recounts:</p>
<blockquote>
<p>So I asked Ilya Sutskever, OpenAI's chief scientist, for a reading list. He gave me a list of like 40 research papers and said, 'If you really learn all of these, you'll know 90% of what matters today.' And I did. I plowed through all those things and it all started sorting out in my head.</p>
</blockquote>
<p>It's important to note that the papers listed below are not confirmed to be the exact ones Sutskever recommended. This story comes from <a href="https://dallasinnovates.com/exclusive-qa-john-carmacks-different-path-to-artificial-general-intelligence/">an interview with Carmack</a>, but the specific papers remain unverified.</p>
<p>It's an interesting collection, if true.<br>
The kind of thing that makes you wonder what you'd put on your own list if you had to distill an entire field down to its essence.<br>
What would be your "90% of what matters" in your area of expertise?</p>
<p>Of course, even if this is the real list, it's a snapshot in time.<br>
In a field moving as rapidly as AI, today's 90% might be tomorrow's 50%.<br>
But there's value in understanding the foundations, the papers that shaped the current landscape.</p>
<p>Source of list: <a href="https://arc.net/folder/D0472A20-9C20-4D3F-B145-D2865C0A9FEE">Ilya 30u30</a>.</p>
<ul>
<li>● <a href="https://nlp.seas.harvard.edu/annotated-transformer/">The Annotated Transformer</a> by Alexander Rush, Austin Huang, Suraj Subramanian, Jonathan Sum, Khalid Almubarak, Stella Biderman (read)</li>
<li>● <a href="https://scottaaronson.blog/?p=762">The First Law of Complexodynamics</a> by Scott Aaronson (read)</li>
<li>● <a href="https://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of RNNs</a> by Andrej Karpathy (read)</li>
<li>● <a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/">Understanding LSTM Networks</a> by Christopher Olah (read)</li>
<li>● <a href="https://arxiv.org/pdf/1409.2329.pdf">Recurrent Neural Network Regularization</a> by Wojciech Zaremba et al. (read)</li>
<li>× <a href="https://www.cs.toronto.edu/~hinton/absps/colt93.pdf">Keeping Neural Networks Simple by Minimizing the Description Length of the Weights</a> by Geoffrey E. Hinton, Drew van Camp (abandoned)</li>
<li>● <a href="https://arxiv.org/pdf/1506.03134.pdf">Pointer Networks</a> by Oriol Vinyals et al. (read)</li>
<li>● <a href="https://proceedings.neurips.cc/paper_files/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf">ImageNet Classification with Deep Convolutional Neural Networks</a> by Alex Krizhevsky et al. (read)</li>
<li>× <a href="https://arxiv.org/pdf/1511.06391.pdf">Order Matters: Sequence to sequence for sets</a> by Oriol Vinyals et al. (abandoned)</li>
<li>● <a href="https://arxiv.org/pdf/1811.06965.pdf">GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism</a> by Yanping Huang et al. (read)</li>
<li>● <a href="https://arxiv.org/pdf/1512.03385.pdf">Deep Residual Learning for Image Recognition</a> by Kaiming He et al. (read)</li>
<li>× <a href="https://arxiv.org/pdf/1511.07122.pdf">Multi-Scale Context Aggregation by Dilated Convolutions</a> by Fisher Yu, Vladlen Koltun (abandoned)</li>
<li>× <a href="https://arxiv.org/pdf/1704.01212.pdf">Neural Quantum Chemistry</a> by Justin Gilmer et al. (abandoned)</li>
<li>● <a href="https://arxiv.org/pdf/1706.03762.pdf">Attention Is All You Need</a> by Ashish Vaswani et al. (read)</li>
<li>● <a href="https://arxiv.org/pdf/1409.0473.pdf">Neural Machine Translation by Jointly Learning to Align and Translate</a> by Dzmitry Bahdanau et al. (read)</li>
<li>× <a href="https://arxiv.org/pdf/1603.05027.pdf">Identity Mappings in Deep Residual Networks</a> by Kaiming He et al. (abandoned)</li>
<li>× <a href="https://arxiv.org/pdf/1706.01427.pdf">A Simple Neural Network Module for Relational Reasoning</a> by Adam Santoro et al. (abandoned)</li>
<li>× <a href="https://arxiv.org/pdf/1611.02731.pdf">Variational Lossy Autoencoder</a> by Xi Chen et al. (abandoned)</li>
<li>● <a href="https://arxiv.org/pdf/1806.01822.pdf">Relational Recurrent Neural Networks</a> by Adam Santoro et al. (read)</li>
<li>× <a href="https://arxiv.org/pdf/1405.6903.pdf">Quantifying the Rise and Fall of Complexity in Closed Systems: The Coffee Automaton</a> by Scott Aaronson, Sean M. Carroll, Lauren Ouellette (abandoned)</li>
<li>× <a href="https://arxiv.org/pdf/1410.5401.pdf">Neural Turing Machines</a> by Alex Graves et al. (abandoned)</li>
<li>● <a href="https://arxiv.org/pdf/1512.02595.pdf">Deep Speech 2: End-to-End Speech Recognition in English and Mandarin</a> by Dario Amodei et al. (read)</li>
<li>● <a href="https://arxiv.org/pdf/2001.08361.pdf">Scaling Laws for Neural Language Models</a> by Jared Kaplan et al. (read)</li>
<li>× <a href="https://arxiv.org/pdf/math/0406077.pdf">A Tutorial Introduction to the Minimum Description Length Principle</a> by Peter D. Grünwald (abandoned)</li>
<li>× <a href="http://www.vetta.org/documents/Machine_Super_Intelligence.pdf">Machine Super Intelligence</a> by Shane Legg (abandoned)</li>
<li>× <a href="https://www.lirmm.fr/~ashen/kolmbook-eng-scan.pdf">Kolmogorov Complexity (from page 434)</a> by A.Shen, V. A. Uspensky, N. Vereshchagin (abandoned)</li>
<li>× <a href="https://cs231n.github.io/">CS231n Convolutional Neural Networks for Visual Recognition</a> by Stanford University (abandoned)</li>
</ul>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>AI Assistant for Obsidian</title>
<link>https://bagerbach.com/blog/obsidian-ai/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/obsidian-ai/</guid>
<description>A guide to using AI to augment your thinking and automate the trivial in Obsidian. This tool integrates with OpenAI’s GPT-3 and GPT-4 models to provide a powerful AI assistant inside your thinking environment. Features prompt templates, chain prompting, and other powerful features.</description>
<pubDate>Sat, 22 Apr 2023 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>What if you could take all of your existing workflows in Obsidian, and in just a few steps, add the power of AI?</p>
<p>Imagine…</p>
<ul>
<li>Creating a new note and having AI curate writing prompts, based on links you’ve already made, so you never start from a blank page</li>
<li>Using AI as an intellectual sparring partner as you write your notes</li>
<li>Effortlessly transforming the structure of your writing by giving instructions in plain English</li>
</ul>
<p>All this, and so much more, is now possible from within Obsidian.</p>
<p>The new AI Assistant for QuickAdd is a powerful tool that integrates with OpenAI’s GPT-3 and GPT-4 models to provide a powerful AI assistant inside your thinking environment.<br>
It allows you to automate the trivial, freeing up time for the important, and augment your thinking by acting as an intellectual sparring partner.</p>
<p>All you need is the QuickAdd plugin and an <a href="https://platform.openai.com/">OpenAI API key</a>. Here's <a href="https://tfthacker.medium.com/how-to-get-your-own-api-key-for-using-openai-chatgpt-in-obsidian-41b7dd71f8d3">TfTHacker's wonderful guide to acquiring such an API key</a>.</p>
<p>Here's a <a href="https://twitter.com/chrisbbh/status/1647670976035815424">Twitter thread with some examples of what you can do with the AI Assistant</a>. I'll showcase all of these examples in this guide.</p>
<h2>From 0 to AI-Powered</h2>
<ol>
<li>Inside Obsidian, create a folder for AI prompt templates. Remember the path to this folder, you’ll need it later. E.g. <code>bins/ai_prompts</code>.</li>
<li>Open QuickAdd settings. Open the “AI Assistant” settings, and set the path to your AI prompt templates folder.</li>
<li>In the same settings tab, paste your OpenAI API key into the “OpenAI API Key” field.</li>
</ol>
<figure><video controls playsinline preload="metadata" src="https://bagerbach.com/uploads/AI_Assistant_Setup.mp4"><source src="https://bagerbach.com/uploads/AI_Assistant_Setup.mp4" type="video/mp4"></video><figcaption><a href="https://bagerbach.com/uploads/AI_Assistant_Setup.mp4">Watch video</a></figcaption></figure>
<p>That's really it. You're now ready to use the AI Assistant.</p>
<p>The basic idea is that you set up a QuickAdd Macro, which will trigger the AI Assistant.<br>
The AI Assistant will then use the prompt template you specify to generate a prompt, which it will then send to OpenAI.<br>
OpenAI will then return a response, which the AI Assistant passes on to the QuickAdd Macro.<br>
You can then use the response in subsequent steps in the macro, e.g. to capture to a note, or create a new note.</p>
<p><strong>Creating prompt templates is simple: just create a note in your prompt templates folder.</strong></p>
<p>You can use any of <a href="https://quickadd.obsidian.guide/docs/FormatSyntax">QuickAdds Format Syntax</a> or <a href="https://quickadd.obsidian.guide/docs/InlineScripts">QuickAdd Inline Scripts</a>. You'll see some powerful examples of this in the <a href="https://bagerbach.com/blog/obsidian-ai/#my-ai-powered-workflows">My Workflows section</a>.</p>
<p>Here's a very simple setup example, going from 0 to AI-powered in just a few steps.</p>
<figure><video controls playsinline preload="metadata" src="https://bagerbach.com/uploads/AI_Assistant_Macro.mp4"><source src="https://bagerbach.com/uploads/AI_Assistant_Macro.mp4" type="video/mp4"></video><figcaption><a href="https://bagerbach.com/uploads/AI_Assistant_Macro.mp4">Watch video</a></figcaption></figure>
<p>I have a folder for AI prompt templates, as recommended.<br>
My basic AI Assistant macro setup uses just the AI Assistant followed by a Capture, as shown in the GIF above.</p>
<p>The only difference is that my Capture uses the following Capture format:</p>
<pre><code>{{selected}}

{{value:output}}
</code></pre>
<p><code>{{selected}}</code> is either empty or whatever text you’ve selected, making it ideal for using AI in the active file.<br>
<code>{{value:output}}</code> is the assistant’s output.</p>
<p>But the AI Assistant can be used as a building block in more elaborate macros, as we shall see.</p>
<h2>The AI Assistant Settings</h2>
<p>In the main settings for the AI Assistant, accessed through the QuickAdd settings, you can set the following options:</p>
<ul>
<li>API Key for OpenAI</li>
<li>Prompt Templates Folder, which contains all of your prompt templates</li>
<li>Default model, which determines which model OpenAI will use</li>
<li>Whether to show the assistant, which toggles status messages</li>
<li>Default system prompt template, which will determine the models behavior</li>
</ul>
<img src="https://bagerbach.com/uploads/AI_Assistant_Settings.png" alt="AI Assistant Settings">
<p>And then, for each individual AI Assistant command in your macros, you can set the following options:</p>
<ul>
<li>Prompt template, which determines which prompt template to use. If you do not specify one, the AI Assistant will ask you to select one from your prompt templates folder.</li>
<li>Model, which determines which model OpenAI will use. This will override the default model set in the main settings.</li>
<li>Output name variable, which determines the name of the variable that will contain the AI Assistant’s output. This is useful if you want to use the output in subsequent steps in your macro. This is <code>output</code>, i.e. <code>{{value:output}}</code>, by default. There will also be a <code>{{value:output-quoted}}</code> variable, which will contain the output, but with in markdown blockquote format. This is useful if you want to use the output in a callout, for example.</li>
<li>System prompt template, which determines the models behavior. This will override the default system prompt template set in the main settings.</li>
</ul>
<img src="https://bagerbach.com/uploads/AI_Assistant_Command_Settings.png" alt="AI Assistant Command Settings">
<h2>My AI-Powered Workflows</h2>
<p>What follows are select workflows I've found to be useful in my work.</p>
<p>I'm including the prompt template as a whole, so you can copy and paste it into your own AI prompt templates folder.<br>
There is some scripting involved in some of these, but I've tried to annotate the code so it's easy to understand what you are running.</p>
<h3>Generating writing prompts</h3>
<p>Enter a link and AI generates 10 writing prompts based on your notes connecting to that note.</p>
<p>This prompt template uses Dataview (required plugin) to get all notes related to the one you enter.</p>
<figure><video controls playsinline preload="metadata" src="https://bagerbach.com/uploads/AI_Assistant_Writing_Prompt_Generator.mp4"><source src="https://bagerbach.com/uploads/AI_Assistant_Writing_Prompt_Generator.mp4" type="video/mp4"></video><figcaption><a href="https://bagerbach.com/uploads/AI_Assistant_Writing_Prompt_Generator.mp4">Watch video</a></figcaption></figure>
<pre><code class="language-markdown">Here is a list of Obsidian (Markdown) links to pages related to {{value:Link}}.
Please use these to give me 10 writing prompts in bullet form concerning {{value:Link}}.

Use the links in paragraps as part of the sentences.

```js quickadd
// Use a shorthand for the DataView API
const dv = DataviewAPI;
// Prompt user for link to MOC note
const targetLink = await this.quickAddApi.inputPrompt(
    'MoC Link',
    "Enter a link we'll use to get all notes linked to it."
);
this.variables['Link'] = targetLink;

// Get a list of all notes linked to the target link
const healthPages = dv.pages(targetLink).values;
// Format the notes as [[links]]
const links = healthPages.map((f) => {
    const tf = app.vault.getAbstractFileByPath(f.file.path);
    return app.fileManager.generateMarkdownLink(tf, '/');
});

// Join the list such that it is in text format, and there is one link per line
return links.join('\n');
```
</code></pre>
<h3>MOC Creator</h3>
<p>Here’s the MOC outline creator I showcased in the <a href="https://twitter.com/chrisbbh/status/1647670981417156609">Twitter thread</a>.</p>
<p>This is an improved version which, like the above prompt, asks you for a link, and then it generated a MOC for that note.</p>
<pre><code class="language-markdown">Here is a list of Obsidian (Markdown) links to pages related to {{value:Link}}.
Please use these to write the outline for a note concerning {{value:Link}}. It should be at most 200 words.

Use the markdown links in paragraps as part of the sentences.

```js quickadd
// Use a shorthand for the DataView API
const dv = DataviewAPI;
// Prompt user for link to MOC note
const targetLink = await this.quickAddApi.inputPrompt(
    'MoC Link',
    "Enter a link we'll use to get all notes linked to it."
);
this.variables['Link'] = targetLink;

// Get a list of all notes linked to the target link
const healthPages = dv.pages(targetLink).values;
// Format the notes as [[links]]
const links = healthPages.map((f) => {
    const tf = app.vault.getAbstractFileByPath(f.file.path);
    return app.fileManager.generateMarkdownLink(tf, '/');
});

// Join the list such that it is in text format, and there is one link per line
return links.join('\n');
```
</code></pre>
<h4>MOC Creator with content</h4>
<p>This is a variation of the MOC creator, which also includes the content of the note you are creating a MOC for.</p>
<pre><code class="language-markdown">Here is a list of Obsidian (Markdown) links to pages related to {{value:Link}} along with their contents.
Please use these to write the outline for a note concerning {{value:Link}}. It should be at most 200 words.

Use the markdown links in paragraps as part of the sentences. 

```js quickadd
// Use a shorthand for the DataView API
const dv = DataviewAPI;
// Prompt user for link to MOC note
const targetLink = await this.quickAddApi.inputPrompt("MoC Link", "Enter a link we'll use to get all notes linked to it.");
this.variables["Link"] = targetLink;

// Get a list of all notes linked to the target link
const healthPages = dv.pages(targetLink).values;
// Format the notes as [[links]]
const links = await Promise.all(healthPages.map(async f => {
	const tf = app.vault.getAbstractFileByPath(f.file.path);
	const fileContent = await app.vault.cachedRead(tf);
	const link = app.fileManager.generateMarkdownLink(tf, '/');

	return `## ${link}\n${fileContent}`
}));

// Join the list such that it is in text format, and there is one link per line
return links.join("\n");
```
</code></pre>
<h3>Summarizer</h3>
<p>Here’s a simple prompt where you select some text, and then use the assistant with that prompt.<br>
Then it’ll spit out an AI-generated summary:</p>
<pre><code class="language-markdown">Please summarize the following text. Use only the text itself as material for summarization, and do not add anything new. Rewrite this for brevity, in outline form:
{{value}}
</code></pre>
<h3>Transform selected</h3>
<p>This prompt template will ask you for instructions, which it’ll use to transform the text you’ve selected.</p>
<p>It can do basically anything - not just transform. You could ask it to summarize text by giving instructions similar to those in the summarizer prompt, explain the text you’ve selected, rewrite something in outline form, or anything you’d like.</p>
<p>I asked it to explain a LaTeX equation I had selected by using the symbols as reference, and it did so perfectly, explaining each symbol, and then the whole formula.</p>
<pre><code class="language-markdown">Instructions:
{{VALUE:Instructions}}

Please follow the instructions above to transform the text:
{{selected}}
</code></pre>
<h3>Flashcard creator</h3>
<p>This prompt template generates flashcards based on selected text.</p>
<pre><code class="language-markdown">Please create flashcards in the form
Q: Question here
A: Answer here

The question should be brief, to the point, simple, and should not be double-barreled. Avoid general questions and double negative questions.
The answer should also be brief and simple.

If you cannot contain the material in a single question, please create multiple flashcards.

---

{{value}}
</code></pre>
<figure><video controls playsinline preload="metadata" src="https://bagerbach.com/uploads/AI_Assistant_Flashcard_Creator.mp4"><source src="https://bagerbach.com/uploads/AI_Assistant_Flashcard_Creator.mp4" type="video/mp4"></video><figcaption><a href="https://bagerbach.com/uploads/AI_Assistant_Flashcard_Creator.mp4">Watch video</a></figcaption></figure>
<h3>Get me started writing about…</h3>
<p>To get your writing kickstarted:</p>
<pre><code class="language-markdown">I'm writing about {{value:Topic}}.

Please give me some points to get started:

-   What are the adjacent topics?
-   What are the basics of the topic?
-   Why was the "{{value:Topic}}" topic created?
-   What problems does it solve?
</code></pre>
<h3>Manual prompt</h3>
<p>I consider this almost essential.<br>
It’s similar to just opening ChatGPT and prompting it.</p>
<p>The template will ask you for some input, which is the entire prompt.</p>
<pre><code class="language-markdown">{{value}}
</code></pre>
<p>It's also the one I demonstrated in the simple setup example.</p>
<h3>Alternative viewpoints</h3>
<p>This one helps me a lot when I’m stuck.<br>
It’s nice to get another perspective on things.<br>
You’ll want to select some text (your draft) and then enter a topic when prompted.</p>
<pre><code class="language-markdown">I'm writing about {{value:Topic}}. Here's my draft:

{{value}}

Please suggest 3 improvements, 3 alternative viewpoints, and 3 questions for further reflection.
</code></pre>
<h3>Prompt Chaining</h3>
<p>Okay, let’s get to some more advanced stuff.</p>
<p>Prompt chaining is where a prompt uses the output of a previous prompt.<br>
Essentially, you’re making the AI think in steps - like following a recipe.</p>
<p><a href="https://twitter.com/chrisbbh/status/1647670986496520193">Here's a crazy example that can generate a startup name → business plan, target users, etc. → give you a step-by-step guide to implementation</a>.</p>
<p>Like I mentioned earlier, the AI Assistant can be viewed as a building block.<br>
You can stack them together to get powerful results.</p>
<p>Here's a stack of three prompts, each one using the results of the previous one.</p>
<img src="https://bagerbach.com/uploads/AI_Assistant_Chainprompt.png" alt="AI Assistant - Prompt Chaining">
<p>And when you configure each one to have specific settings, you can have it completely automated:</p>
<img src="https://bagerbach.com/uploads/AI_Assistant_Chainprompt_1.png" alt="AI Assistant - Prompt Chaining Settings">
<p>For example, this is the first step.<br>
It uses the <code>ChainPrompt1</code> template and outputs its value in <code>{{value:out1}}</code>.<br>
And since this is a macro, each output variable can be used in subsequent steps.</p>
<p>By stacking the assistant a bunch of times and using templates that each consume the output variable of the previous step, we get chain prompting.</p>
<img src="https://bagerbach.com/uploads/AI_assistant_Chainprompting_2.jpeg" alt="AI Assistant - Prompt Chaining Settings">
<p>The final capture has a capture format like this one:</p>
<pre><code class="language-markdown">## Iteration 1

{{value:out1}}

## Iteration 2

{{value:out2}}

## Output

{{value:out_final}}
</code></pre>
<h3>Summarize book notes</h3>
<p>This was one of the first workflows I built with the AI Assistant.</p>
<p>Here is my previous workflow for importing book notes into Obsidian:</p>
<ol>
<li>Get highlights from Readwise</li>
<li>Create note in vault</li>
</ol>
<p>New, AI-powered workflow:</p>
<ol>
<li>Get highlights from Readwise</li>
<li>AI Assistant summarizes book based on highlights</li>
<li>Create note in vault with summary</li>
</ol>
<p>The core workflow is really the same. I just pick a book, and it gets imported, so my input hasn’t changed.</p>
<img src="https://bagerbach.com/uploads/AI_Assistant_Book_Summary.jpeg" alt="AI Assistant - Summarize book notes">
<p>You can get this workflow, too!<br>
Here is the macro we need to set up:</p>
<img src="https://bagerbach.com/uploads/AI_Assistant_Book_Summary_Macro.png" alt="AI Assistant - Summarize book notes macro">
<p>The first and last steps both come from my <a href="https://bagerbach.com/blog/importing-source-notes-to-obsidian">How I Import Literature Notes into Obsidian</a> blog post.<br>
If you have followed it previously, you’ll need to do so again, as I’ve recently updated the script and instructions for a more powerful workflow (prior to making the AI assistant).</p>
<p>The middle step is the AI Assistant.<br>
You will need to set it to use the GPT-4 model for greater context size. I've found GPT-3.5 to be too limited for this task.<br>
Then you need to configure the AI Assistant to use a specific template, which I've called <code>Summarize book notes</code>.</p>
<p>Here is the template:</p>
<pre><code class="language-markdown">Please summarize the following book "{{value:title}}" by {{value:author}}. Use only the text itself as material for summarization, and do not add anything new. Rewrite this for brevity:

{{value:highlights}}
</code></pre>
<p>Each of these values come from the EzImport script, which is why the ordering of the macro has to be EzImport → AI Assistant → Capture.</p>
<p>So, start by following the <a href="https://bagerbach.com/blog/importing-source-notes-to-obsidian">guide</a>. Inject the AI Assistant in the middle of that workflow with the settings shown above… and that’s it.</p>
<p>Beyond the summary, you can add an additional step to the macro to create actionable takeaways. Use the template below for that.</p>
<p>Finally, here is my book note template, which I use for all my book notes. The non-AI version is found in the aforementioned guide:</p>
<pre><code class="language-markdown">---
image: 
tags: in/books state/process
aliases:
  - "{{VALUE:title}}"
cssclass: 
lastHighlightAt: {{VALUE:lastHighlightAt}}
shouldPublish: true
---

# {{VALUE:title}}

## Metadata
Tags:: {{VALUE:tags}}
Type:: [[{]]
Author:: {{VALUE:author}}
Reference::
Rating:: {{VALUE:10,9,8,7,6,5,4,3,2,1,0}}
Reviewed Date:: ==UPDATE THIS==
Finished Year:: [[{{DATE:gggg}}]]

# Thoughts

# Actions Taken / Changes
> [!todo] Actionable Takeaways - AI
{{value:actionable-takeaways-quoted}}

# Summary of Key Points
> [!tip] AI Summary
{{value:summary-quoted}}

# Highlights &#x26; Notes
</code></pre>
<h3>Actionable takeaways</h3>
<p>Create actionable takeaways based on the text you give. This takes a <code>summary</code> variable, which you can get from the previous step in the macro (using the Summarize book notes workflow, for example).</p>
<pre><code class="language-markdown">Write actionable takeaways based on the following text. Write a step-by-step plan. Start by giving me something I can take action on immediately, and then tell me what other things I can do, based on the text. Use the 80/20 principle to prioritize the most important first.

{{value:summary}}
</code></pre>
<h3>YouTube Summarizer</h3>
<p>This prompt template will allow you to grab the transcript of a YouTube video, and then summarize it.</p>
<p>All you need to provide is the YouTube video URL when you want to create a new note.</p>
<p>I couple this with the <a href="https://bagerbach.com/blog/obsidian-ai/#actionable-takeaways">Actionable takeaways</a> prompt template to create a note with a summary and actionable takeaways.</p>
<p>Therefore, my macro looks like this:</p>
<ol>
<li>YouTube Summarizer - AI Assistant step grabs the transcript &#x26; summarizes it. It also sets up a few variables for the next steps.</li>
<li>Actionable takeaways - AI Assistant step creates actionable takeaways based on the summary.</li>
<li>Create note - Creates a new note with the title of the video, and the summary + actionable takeaways.</li>
</ol>
<p>The third step - creating a new note - is a Template action which creates a new note with the file name <code>+ {{VALUE:safeTitle}}</code>. The <code>safeTitle</code> comes from the first step of the macro, and represents the title of the video, but with all illegal characters removed.</p>
<p>The limit for GPT-4 on the YT Summarizer seems to be ~20 min video length.</p>
<pre><code class="language-markdown">Please summarize the following text. Use only the text itself as material for summarization, and do not add anything new. Rewrite this for brevity, in outline form:

```js quickadd
const videoUrl = await this.quickAddApi.inputPrompt("Video URL");

const url = new URL(videoUrl);
const videoId = url.searchParams.get('v');

this.variables["📺 YouTube Video ID"] = videoId;

const transcriptBody = await requestUrl(`https://youtubetranscript.com/?server_vid2=${videoId}`).text;
const videoPage = await requestUrl(videoUrl).text;

console.log(transcriptBody);
console.log(videoPage);

const dp = new DOMParser();
const dom = dp.parseFromString(transcriptBody, 'text/xml');
const transcriptEl = dom.getElementsByTagName('transcript')[0];
if (!transcriptEl) {
	new Notice("No transcript found.");
	throw new Error("No transcript found.")
}
const textElements = transcriptEl.getElementsByTagName('text');

const textArr = [];
for (let i = 0; i &#x3C; textElements.length; i++) {
  const text = textElements[i];
  textArr.push(text.textContent);
}

const transcript = textArr.join("\n");

const title = videoPage.split('&#x3C;title>')[1].split('&#x3C;/title>')[0].replace(" - YouTube", '').trim();

function sanitizeFileName(fileName) {
  const illegalChars = /[\/\?&#x3C;>\\:\*\|"]/g;
  const undesiredChars = /&#x26;quot;/g;
  const replacementChar = '_';
  return fileName.replace(illegalChars, replacementChar).replace(undesiredChars, "");
}

function sanitizeTitle(text) {
  const undesiredChars = /&#x26;quot;/g;
  const replacementChar = "";
  return text.replace(undesiredChars, replacementChar);
}

this.variables["title"] = sanitizeTitle(title);
this.variables["safeTitle"] = sanitizeFileName(title);

return transcript;
```
</code></pre>
<p>Here is my YouTube video note template:</p>
<pre><code class="language-markdown">---
tags: in/video state/process
aliases:
  - "+ {{VALUE:title}}"
cssclass: null
image: https://i.ytimg.com/vi/{{VALUE:📺 YouTube Video ID}}/hqdefault.jpg
---

Title:: {{VALUE:title}}
Type:: [[+]]
Tags:: 
URL:: https://www.youtube.com/watch?v={{VALUE:📺 YouTube Video ID}}
Channel:: 
Rating:: {{VALUE:10,9,8,7,6,5,4,3,2,1,0}}
Reference:: 
Publish Date:: 
Reviewed Date:: ==UPDATE THIS==

---

&#x3C;center>&#x3C;iframe width="560" height="315" src="https://www.youtube.com/embed/{{VALUE:📺 YouTube Video ID}}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>&#x3C;/iframe>&#x3C;/center>

---
> [!info] AI Summary
{{value:summary-quoted}}

> [!todo] Actionable Takeaways
{{value:actionable-takeaways-quoted}}

&#x3C;% tp.file.cursor(0) %>
</code></pre>
<h3>Website Summarizer</h3>
<p>This prompt template will allow you to grab the text of a website, and then summarize it.</p>
<pre><code class="language-markdown">Summarize the content of this website:

---

```js quickadd
async function fetchAndExtractText(url) {
  try {
    const htmlContent = await request(url);
  
    // Create a DOM parser to parse the HTML content
    const parser = new DOMParser();
    const doc = parser.parseFromString(htmlContent, 'text/html');
    
    // Remove script tags
    const scriptTags = doc.querySelectorAll('script, style, noscript');
    scriptTags.forEach(tag => tag.remove());
    
    // Extract and return the textual content
    return doc.body.innerText || doc.body.textContent || "";
  } catch (error) {
    console.error('Error fetching or parsing the page:', error);
    return null;
  }
}

const site = await this.quickAddApi.inputPrompt("Website URL");
return await fetchAndExtractText(site)
```
</code></pre>
<h2>Final words</h2>
<p>This is still the early stages.<br>
I have so many ideas for workflows, prompts, and other cool things we can do with this AI Assistant.</p>
<p>If you have any questions, please let me know.<br>
All my prompt templates can also be found on the same page the AI Assistant is.</p>
<p>I’d love to see how you are using AI in your vault. Feel free to @ me on Twitter.</p>
<p>Please remember that using your API has monetary costs.<br>
GPT-3.5 is rather inexpensive, but GPT-4 can get costly if used excessively.<br>
I strongly encourage you to set a spending limit on your OpenAI account for this very reason.<br>
Try to play around with the models to see what works for you.</p>
<p>This tool (and AI in general) is a major productivity multiplier.<br>
It should never replace your thinking, only augment it.<br>
Let it handle the trivial parts of PKM, so you can focus on what's important.</p>]]></content:encoded>
<category>technology</category>
<category>obsidian</category>
</item>
<item>
<title>How I conduct weekly reviews with Obsidian</title>
<link>https://bagerbach.com/blog/weekly-review-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/weekly-review-obsidian/</guid>
<description>My weekly review process with Obsidian, highly automated and fully integrated with my daily note &amp; project-goal workflows.</description>
<pubDate>Sun, 19 Feb 2023 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<blockquote>
<p>The unexamined life is not worth living.</p>
<p><cite>Socrates</cite></p>
</blockquote>
<p>Periodic review and reflection has been a stable in my life for a long time.<br>
The idea is simple: take a moment to reflect on the past week, and plan for the next one.</p>
<p>This has helped me to stay on track, and to keep my goals in mind.<br>
Taking the time to review one's week is a fantastic approach to improvement in life. It's a way to keep track of what's working, what's not, and improve on the latter.</p>
<p>I have found Obsidian to be a great tool for conducting reviews, and I've automated much of the process to make it as frictionless as possible.</p>
<p>The reviews are predicated on me writing my daily notes in Obsidian, as it draws information from those notes for easy review.<br>
Writing daily notes is not as time consuming as you may think.</p>
<ul>
<li>🌅 In the morning, I log my weight &#x26; how many hours I've slept.</li>
<li>☀️ As I go about my day, I note down what I've done and some thoughts regarding it. When I work on any of my <a href="https://bagerbach.com/blog/projects-and-goals-obsidian/">projects</a>, I link to the relevant notes.</li>
<li>🌙 In the evening, I write a summary, and what I plan to do the next day.</li>
</ul>
<p>I've been doing this for a while now, and it's become a habit. I don't even think about it anymore, I just do it.</p>
<p>What I really like about this approach is that it's not a chore. I don't <em>have</em> to write my daily notes. Skipping a day doesn't break anything. And it shouldn't. It's just a tool to help me reflect on my life. I can do that with or without the tool, but it does help. So no stress if you decide to take a vacation.</p>
<p><strong>This post is a continuation of my <a href="https://bagerbach.com/blog/projects-and-goals-obsidian/">previous post</a> on how I use Obsidian for managing my projects and goals. I highly recommend reading that post first, as projects &#x26; goals are the centerpoint in the weekly review notes.</strong></p>
<h2>Plugins used</h2>
<p>I use quite a few plugins to make this process as frictionless as possible. Here's a list of the ones I use:</p>
<ul>
<li><a href="https://github.com/liamcain/obsidian-calendar-plugin">Calendar</a></li>
<li><a href="https://github.com/liamcain/obsidian-periodic-notes">Periodic Notes</a></li>
<li><a href="https://github.com/chhoumann/quickadd">QuickAdd</a></li>
<li><a href="https://github.com/SilentVoid13/Templater">Templater</a></li>
<li><a href="https://github.com/blacksmithgu/obsidian-dataview">Dataview</a></li>
<li><a href="https://github.com/mcndt/obsidian-toggl-integration">Toggl Track Integration</a></li>
<li>Some core Obsidian features like queries and backlinks.</li>
</ul>
<p><em>Calendar</em> is used to display my daily notes in a calendar view. This is useful for quickly jumping to a specific day. I also use it to create notes sometimes, but that is usually done with <em>QuickAdd</em>. <em>Calendar</em> and <em>Periodic Notes</em> are used together to create the weekly review notes, and occasionally daily notes.</p>
<p><em>Templater</em> is used because notes <em>Periodic Notes</em> / <em>Calendar</em> don't support very powerful templating by default. Therefore, I use <em>Templater</em>s <code>Trigger Templater on file creation</code> command to support some more advanced templating. After creating a new note, <em>Templater</em> will run on the file, and replace the contents with the result.</p>
<p><em>Dataview</em> is used to extract information from my daily notes, and display it in the weekly review notes. Likewise with the core Obsidian feature for creaing queries in your notes.</p>
<p><em>Toggl Track Integration</em> is used to extract information from my Toggl time tracking, and display it in the weekly review notes.</p>
<p><em>QuickAdd</em> is used to quickly jot down notes on what I've done to my daily notes. It can also create the daily notes, in case I make a log entry before I've created the note for the day.</p>
<h2>Daily notes</h2>
<p>Let's go through the process of creating a new daily note, and how it's used in the weekly review notes.</p>
<p>You'll see <em>Dataview</em> properties be used in the template (e.g. <code>Sleep::</code>). This is because <em>Dataview</em> is used to extract information from the daily notes, and display it in the weekly review notes.</p>
<p>In <em>QuickAdd</em>, I have a capture command that captures to the daily note for the current day. This is what I use to quickly jot down notes on what I've done.<br>
It captures to <code>## What did I do today?</code> in the format <code>- {{DATE:HH:mm}} {{VALUE}}\n</code>, which looks like <code>- 09:34 Daily QT.</code>.<br>
As mentioned previously, I also link to my projects here. Say I'm working on a project called <code>My Project</code>, I would link to it like this: <code>- 11:30 Worked on [[My Project]]. Made progress on X and finished Y.</code>. Each such entry is aggregated into the weekly review, as we'll see later.</p>
<p>You can add this note to your vault as a template, and then configure <em>Periodic Notes</em> to create a new note for each day. I personally have the notes created in the <code>bins/daily</code> folder with the format <code>yyyy-MM-DD - ddd MMM D</code>, which looks like <code>2023-02-19 - Sun Feb 19</code>.<br>
This is important. The weekly review notes will use this format to link to the daily notes, which is how it gathers data from them.</p>
<h3>Daily Journal Template</h3>
<p>This is my daily note template. I'm including it here for reference.<br>
The workflow works with any template, as you can simply remove the parts in both templates you don't need.</p>
<pre><code class="language-markdown">---
aliases: [{{DATE:ddd MMM D YYYY}}]
Tags: 🤵/journal
---
&#x3C;&#x3C; [[&#x3C;% tp.date.now("gggg-MM-DD - ddd MMM D", -1) %>]] | [[&#x3C;% tp.date.now("gggg-MM-DD - ddd MMM D", 1) %>]] >>
# {{DATE:dddd MMMM D, YYYY}}
---
## Tracking
Weight:: 
Sleep:: 
Energy:: 
Day Rating:: 
Diet Rating:: 
Daily Summary:: 

---
## What did I do today?


### What are today's 3 objectives?
Follow process for daily planning and plan your day.
Note any thought here, or delete the section.

#### How are you challenging yourself to grow today?
- 

## Journal
### Thoughts


---
## Files Created Today
```dataview
list file.ctime
where file.ctime > this.file.day and file.ctime &#x3C; (this.file.day + dur(1 day))
```
## Files Modified Today
```dataview
list file.mtime
where file.mtime > this.file.day and file.mtime &#x3C; (this.file.day + dur(1 day))
```
</code></pre>
<h2>Weekly review</h2>
<p>Below, I've attached my <a href="https://bagerbach.com/blog/weekly-review-obsidian/#weekly-review-template">weekly review template</a>. I'll walk you through it, section by section.</p>
<p>The first thing you'll see is the header. It's simply the week number for aesthetics.</p>
<h3>Summarizing the week</h3>
<p>Next is a <em>Dataview</em> table over the daily notes for the week. It shows the weight, sleep, energy, day rating, and diet rating for each day. This is useful for quickly seeing how my week went. Sleep is based on hours, energy is based on a 1-10 scale, and the other ratings are based on a 1-5 scale. Ratings are very subjective, but I find them useful for getting a quick overview of how my week went.</p>
<img src="https://bagerbach.com/uploads/weekly_review_overview_table.png" alt="Weekly overview table">
<p>Then there's a section for doing a quick summary of the week. This is also a <em>Dataview</em> property, as it's used in other notes (e.g. monthly reviews, to get a high-level overview of what I've done during the individual weeks).</p>
<p>Under that is another <em>Dataview</em> table which lists the daily notes along with their daily summaries. This helps me summarize for the week.</p>
<p>Then there's a section for wins. This is a query that looks for all notes with the <code>wins</code> tag, and displays them. I use this to quickly jot down things I've done well during the week, or anything great that happened. It's great to celebrate accomplishments, and this helps me do that.</p>
<p>Finally, there's a section for lessons learned. This is a query that looks for all notes with the <code>improve</code> tag, and displays them. I use this to quickly jot down things I've learned during the week. It helps me reflect on what I've done, and what I can do better.</p>
<h3>Reviews</h3>
<p>I conduct reviews of my health, projects &#x26; goals, time tracked, and finances.</p>
<p><strong>The health review</strong> is quite sparse, as I mostly use other apps to track my health.<br>
Namely, Apple Health &#x26; Fitness, with metrics tracked on my Apple Watch.<br>
Getting an overview of those metrics at least weekly is useful, and I use this section to do that.</p>
<p><strong>The projects &#x26; goals review</strong> is a bit more involved. I use the <em>Dataview</em> API to extract information on all of my projects and display them here.<br>
Then, I use the Obsidian querying feature to extract information on the projects from my daily notes. Any mention of a project in a daily note is aggregated into the weekly review right here.</p>
<p>This is useful for quickly seeing how my projects are going, and what I've done during the week. This overview lets me reflect on the projects &#x26; goals, so I can make adjustments as needed.</p>
<p>Here's a screenshot of a project and a short review. First is the header with the project name, and then a query for each daily note that week which mentions the project.</p>
<img src="https://bagerbach.com/uploads/project_review_mhci.png" alt="Project review">
<p>Under the query, I note down some quick points on what I've done, and what I plan to do next week.</p>
<p>Goals are similar to projects, but they're more high-level. I can still see any mention in the daily notes here, but I usually don't link to them, as I use projects to track the actual work.</p>
<p>For goals, I've taken to use principles from <a href="https://bagerbach.com/books/the-12-week-year/">The 12-Week Year</a>.<br>
I measure lag indicators, which are things that are a result of my actions, and lead indicators, which are things that I can control to get the results I want.<br>
This is usually a mix of metrics and habits performed each week.<br>
Here's an example of a goal review:</p>
<img src="https://bagerbach.com/uploads/goal_review_2nd_semester_of_masters.png" alt="Goal review">
<p><strong>The time tracked review</strong> is a result of my experiments with time tracking. I use <a href="https://toggl.com/">Toggl</a> to track my time, and then the <em>Toggl Track Integration</em> plugin to show a nice graph over the week. I use this to see how I'm spending my time, and to make adjustments as needed.</p>
<p>The review questions here were inspired by <a href="https://bagerbach.com/books/indistractable/">Indistractable</a>.</p>
<p>Lastly, I do a <strong>review of my finances</strong>. I use a few apps to facilitate this, so it's really just about checking the flow of money in and out of my accounts.</p>
<h3>Planning</h3>
<p>Finally, I have a practice for planning my following week. Here, I ask myself the following question:</p>
<p><strong>Given what I did last week, and what I need to improve, what can I do this week to get the most of my week?</strong></p>
<p>And then I jump into planning the week by timeboxing my calendar.</p>
<h3>Weekly Review Template</h3>
<pre><code class="language-markdown"># Week {{date: ww - yyyy}} Review
---

```dataview
TABLE  weight as Weight, sleep as Sleep, energy as Energy, day-rating as "Day Rating", diet-rating as "Diet Rating"
from #🤵/journal 
where contains(this.days, file.link)
sort file.day desc
```

# This week - notes
Weekly Summary:: &#x3C;% tp.file.cursor(0) %>

```dataview
TABLE WITHOUT ID
	file.link AS "Daily Summaries",
	daily-summary as " "
from #🤵/journal 
where contains(this.days, file.link)
sort file.day desc
```


```query
tag:wins (file:&#x3C;% tp.date.now("YYYY-MM-DD", -1) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -2) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -3) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -4) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -5) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -6) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -7) %>)
```

```query
tag:improve (file:&#x3C;% tp.date.now("YYYY-MM-DD", -1) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -2) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -3) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -4) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -5) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -6) %> OR file:&#x3C;% tp.date.now("YYYY-MM-DD", -7) %>)
```


---
# Health Review
- [ ] Review Health app: how are the metrics?

## Metrics
```dataviewjs
dv.paragraph(`
			 This week, you slept an average of ${dv.current().days.map((d, i, a) => dv.page(d.path).sleep / a.length).filter(p => p).reduce((a, b) => a + b, 0).toFixed(2)} hours.
			 `)

dv.paragraph(`
			 This week, you rated your energy an average of ${dv.current().days.map((d, i, a) => dv.page(d.path).energy / a.length).filter(p => p).reduce((a, b) => a + b, 0).toFixed(2)}.
			 `)

dv.paragraph(`
			 This week, you rated your day an average of ${dv.current().days.map((d, i, a) => dv.page(d.path)["day-rating"] / a.length).filter(p => p).reduce((a, b) => a + b, 0).toFixed(2)}.
			 `)

dv.paragraph(`
			 This week, you rated your diet an average of ${dv.current().days.map((d, i, a) => dv.page(d.path)["diet-rating"] / a.length).filter(p => p).reduce((a, b) => a + b, 0).toFixed(2)}.
			 `)
```


---
# Review
## Project Review
> What has been accomplished? 
> What has changed in the environment? 
> What's next?
> Are there projects that you can take on, or are you at capacity?

&#x3C;%*
	const dvApi = app.plugins.plugins["dataview"].api;
	const activeProjects = dvApi.pages("#project").where(p => p.status === "In Progress").values;
	let text = "";
	activeProjects.forEach(ap => text += `### ${ap.file.link}\n\`\`\`query\n "${ap.file.name}" (file: ${tp.date.now("YYYY-MM-DD", -1)} OR file: ${tp.date.now("YYYY-MM-DD", -2)} OR file: ${tp.date.now("YYYY-MM-DD", -3)} OR file: ${tp.date.now("YYYY-MM-DD", -4)} OR file: ${tp.date.now("YYYY-MM-DD", -5)} OR file: ${tp.date.now("YYYY-MM-DD", -6)} OR file: ${tp.date.now("YYYY-MM-DD", -7)})\n\`\`\`\n- \n\n`)
	tR += text;
%>

## Goal Review
> What has been accomplished? 
> How has your execution rate been?
> What's next?

- [ ] Track lag and lead indicators.
- [ ] Write down execution score.
- [ ] Analyze indicators &#x26; execution score.

&#x3C;%*
	const dvApi2 = app.plugins.plugins["dataview"].api;
	const activeGoals = dvApi2.pages("#goal/ongoing").where(p => DataviewAPI.date(p.Deadline.toString()) &#x3C; DataviewAPI.date(moment(DataviewAPI.date("now") + DataviewAPI.duration("6 months")).format("YYYY-MM-DD"))).values;
	let text2 = "";
	activeGoals.forEach(ag => text2 += `### ${ag.file.link}\n\`\`\`query\n "${ag.file.name}" (file: ${tp.date.now("YYYY-MM-DD", -1)} OR file: ${tp.date.now("YYYY-MM-DD", -2)} OR file: ${tp.date.now("YYYY-MM-DD", -3)} OR file: ${tp.date.now("YYYY-MM-DD", -4)} OR file: ${tp.date.now("YYYY-MM-DD", -5)} OR file: ${tp.date.now("YYYY-MM-DD", -6)} OR file: ${tp.date.now("YYYY-MM-DD", -7)})\n\`\`\`\n- [ ] Track lag and lead indicators\n- [ ] Write down execution score\n\nExecution score: \nReview and write analysis of indicators and execution score here.\n\nAnd write progress update here. What is working? What isn't working? Did you average +80% execution score? If not, how can you improve it? \n\n`)
	tR += text2;
%>

## Time Review
```toggl
SUMMARY FROM {{monday:YYYY-MM-DD}} TO {{sunday:YYYY-MM-DD}}
```
- [ ] Go to [Toggl](http://track.toggl.com) and review the previous week. Did you spend your time as you wanted?

### Improvements? Comments?


### What to focus on next week?


### Reflect
**When in my schedule did I do what I said I would do, and when did I get distracted?**

### Refine
**Are there changes I can make in my calendar that will give me the time I need to better live out my values?**


## Financial Review
- [ ] Check your account balances
- [ ] Any changes to your situation?
- [ ] Opportunities?

---
# Planning
Open your [Calendar](https://calendar.google.com) and start planning.
Follow your routine for weekly planning.

👉 Make sure you improve based on what you've learned this week.


---
### Files created this week
```dataview
list file.ctime
where file.ctime >= date({{monday:YYYY-MM-DD}}) and file.ctime &#x3C;= (date({{sunday:YYYY-MM-DD}}) + dur(1 day))
```

---
Year: [[{{date:yyyy}}]]
Month:: [[{{monday:yyyy MM}}]]
Days:: [[{{monday:yyyy-MM-DD - ddd MMM D}}]], [[{{tuesday:yyyy-MM-DD - ddd MMM D}}]], [[{{wednesday:yyyy-MM-DD - ddd MMM D}}]], [[{{thursday:yyyy-MM-DD - ddd MMM D}}]], [[{{friday:yyyy-MM-DD - ddd MMM D}}]], [[{{saturday:yyyy-MM-DD - ddd MMM D}}]],[[{{sunday:yyyy-MM-DD - ddd MMM D}}]]

</code></pre>]]></content:encoded>
<category>Technology</category>
</item>
<item>
<title>My developer workflow using WSL, tmux, and VSCode</title>
<link>https://bagerbach.com/blog/developer-workflow-on-windows-using-wsl-tmux-and-vscode/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/developer-workflow-on-windows-using-wsl-tmux-and-vscode/</guid>
<description>The tools and workflows I use for software development on Windows.</description>
<pubDate>Tue, 08 Nov 2022 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<img src="https://bagerbach.com/uploads/terminal-dev-post.png" alt="Windows Terminal">
<p><a href="https://docs.microsoft.com/en-us/windows/wsl/">WSL</a> has made development on Windows machines much better.<br>
Especially with the release of WSL 2 it is now easier and faster than ever.</p>
<p>This post documents my workflows and tools for software development on Windows.<br>
I will update it whenever I find a better way to do something.</p>
<p>I use the Ubuntu distribution for WSL. This is also the OS I use (or derivations thereof: PopOS) when I'm on Linux.</p>
<p><strong>For configuration of the mentioned tools, look at my <a href="https://github.com/chhoumann/dotfiles">dotfiles</a>.</strong><br>
Love finding new tools? Check out my <a href="https://bagerbach.com/tools/">tool stack</a>!</p>
<h2>Terminal</h2>
<p><a href="https://github.com/microsoft/terminal">Windows Terminal</a> is a non-negotiable for me. I have not found a better terminal emulator for Windows.<br>
It has tabs, great customizability, and it's pretty powerful.</p>
<p>Recently, I have been exploring <a href="https://www.warp.dev/">Warp Terminal</a>. You have to run it through WSL (currently: no Windows build), which isn't as nice as running it natively.<br>
It's a great terminal emulator and has a lot of features that makes the experience more powerful and enjoyable.<br>
I could point to individual features, but what makes Warp great is how all features combined makes it feel. It's just good.</p>
<p>I use a <a href="https://www.nerdfonts.com/">Nerd Font</a> called Caskaydia Cove Mono in the terminal.<br>
I switch between the Campbell and One Half Dark themes.</p>
<h2>Shell</h2>
<p>I use Z Shell, aka. <code>zsh</code>.</p>
<p>Managing zsh can get kind of trivial, so like <a href="https://ohmyz.sh/">Oh My Zsh</a> has been essential to my workflow.<br>
It makes <a href="https://github.com/chhoumann/dotfiles/blob/master/zshrc">configuration</a> and plugin management easy.</p>
<h3>Prompt</h3>
<p>I was a huge fan of Powerlevel10k for Zsh, but moved to <a href="https://starship.rs/">Starship</a> because it has a clean and minimal default look.<br>
Starship is very easy to set up and provides a nice developer experience in my opinion.</p>
<h2>CLI tools</h2>
<p>I use an array of CLI tools to make me more effective. Here's a rapid-fire list:</p>
<ul>
<li><a href="https://github.com/jesseduffield/lazygit">Lazygit</a> for accelerated git workflow
<ul>
<li><a href="https://github.com/dandavison/delta">git-delta</a> for nicer git diffs in lazygit. Also check out <a href="https://github.com/Wilfred/difftastic">difftastic</a></li>
<li><a href="https://github.com/commitizen/cz-cli">cz-cli (commitizen)</a> to use when creating <a href="https://www.conventionalcommits.org/">conventional commits</a>. Very helpful when using <a href="https://github.com/semantic-release/semantic-release">semantic-release</a>. Great CI solution when working on NPM packages or <a href="https://obsidian.md/">Obsidian</a> plugins</li>
</ul>
</li>
<li><a href="https://github.com/eza-community/eza">Eza</a> as a better <code>ls</code> replacement</li>
<li><a href="https://cli.github.com/">gh (GitHub CLI)</a> for faster GitHub workflow</li>
<li><a href="https://github.com/tmux/tmux">tmux</a> for awesome multi-tasking in the terminal, or the Rust-based <a href="https://github.com/zellij-org/zellij">zellij</a></li>
<li><a href="https://github.com/nvm-sh/nvm">nvm</a> to manage node versions</li>
<li>Multiple Zsh plugins (see below)</li>
<li><a href="https://github.com/jesseduffield/lazydocker">Lazydocker</a> for accelerated docker workflow</li>
<li><a href="https://brew.sh/">Brew</a> for package management</li>
<li><a href="https://github.com/nektos/act">Act</a> for running GitHub Actions locally. Save yourself the painful embarrasment of pushing ** commits and waiting for CI to fail while you're figuring out how to do X and Y in your CI</li>
<li><a href="https://github.com/antfu/ni">Ni</a> so I don't have to care whether I'm in a Yarn / NPM / pnpm project</li>
<li><a href="https://github.com/aristocratos/btop">btop</a> as a better top</li>
<li><a href="https://github.com/astral-sh/rye">Rye</a> as a project and package manager for Python. If you use Python, this is a must have. Use with <a href="https://github.com/astral-sh/uv">uv</a> and <a href="https://github.com/astral-sh/ruff">ruff</a></li>
<li><a href="https://github.com/tectonic-typesetting/tectonic">Tectonic</a> for typesetting. Stop bothering with LaTeX build tools...</li>
<li><a href="https://github.com/ajeetdsouza/zoxide">Zoxide</a> as a faster way to navigate directories</li>
<li><a href="https://github.com/sharkdp/bat">bat</a> as a better cat</li>
<li><a href="https://github.com/BurntSushi/ripgrep">ripgrep</a> as a faster grep</li>
<li><a href="https://github.com/sharkdp/fd">fd</a> as a faster find</li>
<li><a href="https://github.com/junegunn/fzf">fzf</a> as a fuzzy finder</li>
<li><a href="https://github.com/YS-L/csvlens">csvlens</a> to work with CSVs (also see <a href="https://www.visidata.org/">visidata</a>)</li>
<li><a href="https://github.com/topgrade-rs/topgrade">Topgrade-rs</a> to upgrade all the things</li>
</ul>
<h3>Lazygit</h3>
<p>This is my favorite way of interacting with git. My git capabilities and speed has probably 10x'ed after I started using it.</p>
<p>I have configured my Lazygit to work with <a href="https://dandavison.github.io/delta/introduction.html">git-delta</a> and <a href="https://commitizen.github.io/cz-cli/">commitizen</a>.</p>
<p>Jesse Duffield, the creator of Lazygit, made a great <a href="https://www.youtube.com/watch?v=CPLdltN7wgE">video showcasing 15 features in 15 minutes</a>. I highly recommend that you watch it to see how it might accelerate your workflow.</p>
<p>I even made a tool called <a href="https://github.com/chhoumann/bunnai"><strong>bunnai</strong></a> for having ai write commit messages for me in lazygit. It's been very useful!</p>
<p><strong>Git-delta</strong> is a great tool for visualizing changes.</p>
<p><strong>Commitizen</strong> helps me write <a href="https://www.conventionalcommits.org/en/v1.0.0/">conventional commits</a>, which is makes it easier to manage versions with <a href="https://github.com/semantic-release/semantic-release">semantic release</a> when creating either node packages, Obsidian plugins, and other software where it makes sense to use that kind of versioning.</p>
<ul>
<li><strong>Install Lazygit:</strong> <a href="https://github.com/jesseduffield/lazygit#ubuntu">GitHub - jesseduffield/lazygit: simple terminal UI for git commands</a></li>
<li><strong>Install git-delta:</strong> Use <a href="https://doc.rust-lang.org/cargo/getting-started/installation.html">cargo</a> and do <code>cargo install git-delta</code>.</li>
<li><strong>Install commitizen:</strong> Use a node version manager to install node and do <code>npm install -g commitizen</code>.</li>
</ul>
<h3>Eza</h3>
<p>Great replacement for <code>ls</code>.</p>
<p>I use a few aliases here:</p>
<pre><code class="language-bash">alias ls="eza --icons --git"
alias l='eza -alg --color=always --group-directories-first --git'
alias ll='eza -aliSgh --color=always --group-directories-first --icons --header --long --git'
alias lt='eza -@alT --color=always --git'
alias llt="eza --oneline --tree --icons --git-ignore"
alias lr='eza -alg --sort=modified --color=always --group-directories-first --git'
</code></pre>
<p>To install, use <a href="https://doc.rust-lang.org/cargo/getting-started/installation.html">cargo</a> and do <code>cargo install eza</code>.</p>
<h3>GitHub CLI</h3>
<p>I mainly use this to create and configure repos.<br>
Often also do <code>gh repo view --web</code> to open the repo in my browser.</p>
<ul>
<li><code>gh repo create</code> to create a new repo. <code>--private</code> to make it private.</li>
<li><code>gh repo view --web</code> to open the repo in the browser.</li>
<li><code>gh repo clone &#x3C;repo></code> to clone a repo, e.g. <code>gh repo clone chhoumann/dotfiles</code>. No need to prepend your own username to the repo name (given you own the repo).</li>
<li><code>gh pr merge -d</code> to merge the PR for the branch you are in and delete the branch.</li>
</ul>
<p>One of my most time-saving combinations comes into play when I'm initializing a new repository.</p>
<pre><code class="language-bash"># Make project folder and cd in
mkdir project1 &#x26;&#x26; cd project1
# Initialize new git repository
git init

# Many project-starters like `npx create-next-app@latest` will create a folder for you
# And sometimes even init a git repo. That's why the command below is great.

# Create a new GitHub repository and push local repo up
gh repo create project1 --private --source=. --remote=upstream

# Alternatively, if you just want gh to create an empty repo and clone it to a folder:
gh repo create project1 --private --clone
</code></pre>
<h3>Tmux</h3>
<p>I'm still learning tmux, but even the basics have accelerated my workflow.</p>
<p>Creating and killing panes, splitting panes, and switching between them is very fast and easy.</p>
<p>This seriously helps when, e.g. you are running <code>npm run dev</code> in one pane, but need to commit something.<br>
You don't want to stop the dev server, so you just split the pane and commit in the new pane.</p>
<h3>nvm</h3>
<p>I basically just do <code>nvm alias default lts/gallium</code> (current LTS version). This sets the default node version.</p>
<p><code>nvm use --lts</code> or <code>nvm install --lts</code> is very helpful.</p>
<p>Sometimes you want to play around with other versions (e.g. latest or previous), so it helps with that as well.</p>
<h3>Zsh plugins</h3>
<p>I'm using the following plugins:</p>
<ul>
<li><a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git">git</a> adds nice git aliases, but I prefer Lazygit now</li>
<li><a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/z">zsh-z</a> so you can jump around directories much faster</li>
<li><a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gh">gh</a> adds completion for the gh cli</li>
<li><a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/rust">rust</a> adds completion for the rust compiler, rustup, and cargo</li>
<li><a href="https://github.com/zsh-users/zsh-autosuggestions">zsh-autosuggestions</a> adds autosuggestions</li>
<li><a href="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/tmux">tmux</a> adds QoL features for using zsh &#x26; tmux together.</li>
</ul>
<p>If you choose nothing else, I highly recommend <code>zsh-z</code>. It's a game changer.<br>
You can CD into a directory from anywhere by just writing part of it.</p>
<p>For example, <code>z dot</code> takes me to my dotfiles folder, no matter where I am.<br>
It learns from your usage, so it gets better over time.</p>
<h2>Editor</h2>
<p>I have been using <a href="https://code.visualstudio.com/">Visual Studio Code</a> as my editor for a long time.</p>
<p>Recently, I have been moving towards using <a href="https://cursor.sh/">Cursor</a>, which is VSCode, but completely integrated with AI. Given how much LLMs empower my workflows, this has been a great change. No switching to ChatGPT to ask questions and then back to VSCode. Just ask directly in Cursor. Copilot++ in Cursor is fantastic as well.</p>
<p>I've dabbled in <a href="https://neovim.io/">Neovim</a>, but decided I'd rather spend my time doing other things than tweaking my Neovim config.<br>
I have a tendency to fall into rabbit holes, especially ones that look like shiny new tools.</p>
<p>Using VS Code is a good way to get a lot of functionality without having to spend a lot of time configuring it.<br>
This also makes setup much easier when switching computers.</p>
<p>I do have some settings and keybindings that I prefer. You can find those in my <a href="https://github.com/chhoumann/dotfiles">dotfiles</a>.</p>
<h3>Extensions</h3>
<p>I use the following extensions:</p>
<ul>
<li><a href="https://marketplace.visualstudio.com/items?itemName=vscodevim.vim">Vim</a>, because I find it greatly improves my efficiency.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens">Error Lens</a>, because it makes it easier to spot errors. Can lead to clutter, though.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot">GitHub Copilot</a> is a serious productivity game-changer, especially when using frameworks or languages you aren't used to.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss">Tailwind CSS Intellisense</a> is great for working with Tailwind CSS.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost">Import Cost</a> is great for spotting when you are importing too much.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint">ESLint</a> in combination with...</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">Prettier</a> for formatting.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets">ES7+ React/Redux/GraphQL/React-Native snippets</a>, mostly for React snippets.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons">vscode-icons</a> for nice icons.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl">WSL</a> for working in VS Code through WSL.</li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github">GitHub Pull Requests and Issues</a> for working with GitHub PRs and issues. Great in combination with the <code>gh</code> CLI tool.</li>
</ul>
<p>And language specific extensions for the languages I use.</p>
<p>I use <a href="https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme">GitHub Dark</a> as my primary theme. I've also taken a liking to <a href="https://marketplace.visualstudio.com/items?itemName=pmndrs.pmndrs">poimandres</a> and <a href="https://marketplace.visualstudio.com/items?itemName=DanielPriestley.poimandres-alternate">poimandres-alternate</a>.</p>]]></content:encoded>
<category>Technology</category>
</item>
<item>
<title>How I Import Literature Notes into Obsidian</title>
<link>https://bagerbach.com/blog/importing-source-notes-to-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/importing-source-notes-to-obsidian/</guid>
<description>Importing highlights and notes into Obsidian for processing can be a painful process without automation. So I automated it.</description>
<pubDate>Sun, 06 Nov 2022 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>Importing highlights and notes into Obsidian for processing can be a <em>very</em> painful process without automation. So I automated it.</p>
<p>More precisely, I have automated the fetching and formatting of annotations, highlights, and notes taken on various platforms. Even better, I have made it possible to fetch new notes taken on an item <em>and add them to your existing notes for that item.</em></p>
<p>Before I read things on the internet, I have a <a href="https://bagerbach.com/blog/how-i-process-inputs-from-the-internet/">workflow that accumulates all of them in my Inbox</a>. It's how I curate <em>what</em> I should read. So when I have the chance to read something, I'll find something in my Inbox and start reading.</p>
<p>While I read, I take notes. I usually do so using <a href="https://bagerbach.com/short/reader">Readwise Reader</a>, depending on the resource. I also use <a href="https://bagerbach.com/short/readwise">Readwise</a>, which grabs the notes I take from various sources. Here's a breakdown.</p>
<ul>
<li><strong>Books</strong> I read on my phone with <a href="https://bagerbach.com/short/reader">Readwise Reader</a>. Notes are automatically synced to Readwise.</li>
<li><strong>Articles</strong> I previously used <a href="https://hypothes.is/">Hypothes.is</a> to write notes. These are synchronized to <a href="https://bagerbach.com/short/readwise">Readwise</a>. Now I use Reader here as well.</li>
<li><strong>Tweets</strong> I send directly to <a href="https://bagerbach.com/short/readwise">Readwise</a>.</li>
<li><strong>YouTube videos</strong> I use a template in Obsidian along with the <a href="https://github.com/aidenlx/media-extended">Media Extended</a> plugin to write notes with timestamps.</li>
<li><strong>Podcast episodes</strong> I use <a href="https://www.youtube.com/watch?v=SGLfuN15uJY">PodNotes</a> to write notes on podcasts. This is much faster and more reliable (in my opinion) than other services. Check that out instead! Instructions in this post will follow my previous workflow, so you can choose whichever fits you best.</li>
</ul>
<p>This is fine, but it only covers the initial annotation workflow. So let's talk about how I import the notes into Obsidian with <strong>EzImport</strong>.</p>
<h2>Importing into Obsidian</h2>
<p><strong>EzImport</strong> is a script I've created for <a href="https://github.com/chhoumann/quickadd">QuickAdd</a>. It will grab highlights for any resource and create a note (or update it) with those highlights.</p>
<p>There are multiple <em>good</em> importers for Obsidian that import notes from <a href="https://bagerbach.com/short/readwise">Readwise</a>:</p>
<ul>
<li><a href="https://github.com/readwiseio/obsidian-readwise">GitHub - readwiseio/obsidian-readwise: Official Readwise plugin for Obsidian</a></li>
<li><a href="https://github.com/renehernandez/obsidian-readwise">GitHub - renehernandez/obsidian-readwise: Sync Readwise highlights into your obsidian vault</a></li>
<li><a href="https://github.com/jsonMartin/readwise-mirror">GitHub - jsonMartin/readwise-mirror</a></li>
</ul>
<p>In fact, the official <a href="https://bagerbach.com/short/readwise">Readwise</a> plugin came <em>very</em> close to replacing this workflow for me. However, there are too many customizable features that I enjoy now, which it does not support. Most importantly, however, is that I don't enjoy how the synchronization process works with any of those plugins. My notes feel much too fragile with them.</p>
<p>With <strong>EzImport</strong>, only two things can happen.</p>
<ol>
<li>The note does not exist, in which case it creates a new note and pulls in the highlights.</li>
<li>The note does exist, in which case it checks if I have added new highlights since I last fetched them to the note. If I did, it updates the update time and <em>appends</em> the highlights to the bottom of the note. If I did not, it doesn't do anything at all.</li>
</ol>
<p>I can also entirely control the format of my note from within Obsidian. Likewise, I can control how the highlights are formatted through JavaScript code.</p>
<p>Alright. Enough about <em>what</em> it is, here's how you can get it.</p>
<h3>Setting up EzImport</h3>
<p>First, you'll need to install QuickAdd inside of Obsidian. Just go to community plugins and grab it from there.</p>
<p>Now, place the EzImport script in your vault. You can <a href="https://raw.githubusercontent.com/chhoumann/quickadd/master/docs/static/scripts/EzImport.js">download it here</a>. It doesn't really matter where you put it. Now you'll want to create a macro which activates the script. The fastest way is to create a Macro by writing a name, selecting <code>Macro</code> in the dropdown, and then clicking <code>Add Choice</code>. Then you can click the <code>+</code> button to create the macro associated with the Macro 'choice'. Now, click the cog (⚙️) button to access the macro configuration.</p>
<figure><img src="https://bagerbach.com/uploads/How_To_Macro.gif" alt=""><figcaption>How to create a macro with QuickAdd</figcaption></figure>
<p>You can also follow along in my <a href="https://www.youtube.com/watch?v=gYK3VDQsZJo&#x26;t=1730s">video instructions on how to use QuickAdd</a>. It takes a different route (older), but is still valid.</p>
<p>Now that we've installed the script, we need to set it up. The macro will look somewhat like this (depending on what name you chose) when we're done:</p>
<figure><img src="https://bagerbach.com/uploads/EzImport_Macro.png" alt=""><figcaption>EzImport Macro</figcaption></figure>
<p>First, add the script to the macro. This is done by entering the name of the script in the <code>Script</code> field and clicking <code>Add</code>. In my case, it's <code>EzImport</code>.<br>
Now you'll want to click the configure ⚙ button for the script. In there, you'll be met with something like this:</p>
<figure><img src="https://bagerbach.com/uploads/EzImport_Settings.png" alt=""><figcaption>EzImport Script Settings</figcaption></figure>
<p>Except, of course, mine already has a blurred API key and some settings. Here's what the settings mean. The first setting is your Readwise <strong>API key</strong>. You can get that <a href="https://readwise.io/access_token">here</a>. It's used to grab the highlights.</p>
<p>Next is <strong>Use cache</strong>. This will remember which resources you've already imported, so you won't get prompted to import them again. It can be useful, but for most users, I'd recommend keeping it disabled. It blocks you from importing resources you've already imported, preventing you from importing new annotations.</p>
<p>The <strong>Import type</strong> denotes the type of resource you're importing. In this example, I'm importing books, so I've selected <code>Book</code>. Readwise imports a lot of things as articles, so you'll need to make sure you select the correct type. If you're not sure, you can always check your <a href="https://readwise.io/everything">Readwise highlights</a>.</p>
<p>Enabling <strong>Ignore empty properties</strong> will prevent QuickAdd from asking you about a value if Readwise doesn't have it. I recommend enabling it.</p>
<p>Finally, is <strong>File name format</strong>. This is what determines the file name your imported note will have. You can use whatever <a href="https://quickadd.obsidian.guide/docs/FormatSyntax">format syntax</a> you want here. Mine starts with the folder I want to place the created note in. For books, this is <code>inputs/books</code>. All of my input sources have some symbol in front of them to prevent conflicts with other (evergreen) notes. And for convenience, if a note has <code>{</code> in front of it, I always know that it's a book.</p>
<p>The <code>{{VALUE:safeTitle}}</code> is very important. <code>safeTitle</code> is the title of the resource you're importing from, but without illegal file name characters. That means, without commas, question marks, and so on. To increase searchability, I put the actual title of the resource as an alias. You'll see how that works later.</p>
<h3>Setting up the Capture</h3>
<p>At this point, we've set up the first part of the process - the script that grabs all the highlights and metadata.<br>
Now we need to set up the Capture that will do the note creation and updating.</p>
<p>Click the <code>Capture</code> button on the macro settings screen. It'll add an untitled capture to the macro, right after the script.</p>
<p>We'll want to set it up with a few settings. It'll look like this when we're done.</p>
<figure><img src="https://bagerbach.com/uploads/Book_Capture_1.png" alt=""><figcaption>Book capture 1</figcaption></figure>
<figure><img src="https://bagerbach.com/uploads/Book_Capture_2.png" alt=""><figcaption>Book capture 2</figcaption></figure>
<p>This setup works with all types of resources you can import from Readwise.</p>
<p>So, let's get to setting this up. First, you can change the Capture name by clicking the title. This is purely for aesthetics, but it's nice to have a descriptive name.</p>
<p><strong>Here is how you should configure the Capture:</strong></p>
<ul>
<li>Capture to <code>{{value:fileName}}</code>: mandatory. This is the file name we set up in the script.</li>
<li>Create the file if it doesn't exist (mandatory).</li>
<li>Create file with given template, and then specify a template. You can use mine entirely or for inspiration; they're optimized for this workflow. You can find them below.</li>
<li>Write to bottom of file; otherwise, when you add new highlights, they'll be added to the top of the file.</li>
<li>Open: kind of self-explanatory; it opens the file.</li>
<li>Capture format of <code>{{VALUE:highlights}}</code>: mandatory if you want to synchronize your highlights. This inserts your highlights when you activate the Capture Choice.</li>
</ul>
<p>The capture uses the template to create the note. The template is what determines the format of the note. You can use the templates I've created, or you can create your own. I'll show you how to do that in a bit.</p>
<h2>Templates</h2>
<p>The following are my templates.</p>
<p>These templates can just be copied into your Obsidian templates folder. Both Templater and the core Templates plugin will work.</p>
<h3>Books</h3>
<pre><code class="language-markdown">---
image: 
tags:
  - in/books
  - state/process
aliases:
  - "{{VALUE:title}}"
cssclasses: 
lastHighlightAt: "{{value:lastHighlightAt}}"
shouldPublish: true
rating: "{{VALUE:10,9,8,7,6,5,4,3,2,1,0}}"
author: "{{value:author}}"
Reference: ""
Reviewed Date: ==UPDATE==
Finished Year: "[[{{DATE:gggg}}]]"
---
# {{VALUE:title}}
---

# Thoughts

# Actions Taken / Changes

# Summary of Key Points

# Highlights &#x26; Notes
</code></pre>
<h3>Tweets</h3>
<pre><code class="language-markdown">---
tags: in/tweet state/process
aliases:
  - '{{VALUE:title}}'
cssclass: null
lastHighlightAt: "{{VALUE:lastHighlightAt}}"
---

Title:: {{VALUE:title}}
Type:: [[!]]
Tags::
Account:: {{VALUE:author}}
Rating:: {{VALUE:10,9,8,7,6,5,4,3,2,1,0}}
Link:: {{VALUE:source}}
Reviewed Date:: [[{{DATE:gggg-MM-DD - ddd MMM D}}]]

---
</code></pre>
<h3>Articles</h3>
<pre><code class="language-markdown">---
tags: in/article state/process
aliases:
  - "{{VALUE:title}}"
cssclass: null
lastHighlightAt: "{{VALUE:lastHighlightAt}}"
Author: "{{value:author}}"
Link: "{{value:source}}"
Reviewed Date:"[[{{DATE:gggg-MM-DD - ddd MMM D}}]]"
Rating: "{{VALUE:10,9,8,7,6,5,4,3,2,1,0}}"
Reference: ""
---

# {{value:title}}
---

## Notes

</code></pre>
<h3>Youtube videos</h3>
<pre><code class="language-markdown">---
tags: in/video state/process
aliases:
  - '{{VALUE}}'
cssclass: null
---

Title:: {{VALUE}}
Type:: [[+]]
Tags::
URL:: https://www.youtube.com/watch?v={{VALUE:📺 YouTube Video ID}}
Channel::
Reference::
Publish Date::
Reviewed Date:: [[{{DATE:gggg-MM-DD - ddd MMM D}}]]

---

&#x3C;center>&#x3C;iframe width="560" height="315" src="https://www.youtube.com/embed/{{VALUE:📺 YouTube Video ID}}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>&#x3C;/iframe>&#x3C;/center>

---

-
</code></pre>
<p>My workflow for videos is slightly different. You'll need to create a Template Choice for QuickAdd with the above template. It should look like this:</p>
<figure><img src="https://bagerbach.com/uploads/pasted-image-20210901123335.png" alt=""><figcaption>Video Template Choice</figcaption></figure>
<p>You specify the template path, define the file name, and optionally select a folder to place it in.</p>
<p><code>{{VALUE}}</code> will make QuickAdd ask you what the video title is, which I usually just copy from the video page.</p>
<p>You'll also be asked for a video ID. You get this from the video link. Let's take <code>https://www.youtube.com/watch?v=gYK3VDQsZJo</code> as an example. Here, the <code>gYK3VDQsZJo</code> is the ID. So just paste that in. This is the end result:</p>
<img src="https://bagerbach.com/uploads/pasted-image-20210901123603.png" alt="">
<h3>Making your own templates</h3>
<p>I won't force you to use my templates, so here is a small guide to creating your own. As I mentioned, the file name should be created with <code>{{VALUE:safeTitle}}</code>. But there are more variables that you can access and use in your templates.</p>
<ul>
<li><code>{{VALUE:safeTitle}}</code> is the resource title without illegal file name characters</li>
<li><code>{{VALUE:fileName}}</code> is the final file name</li>
<li><code>{{VALUE:title}}</code> is the title of the resource</li>
<li><code>{{VALUE:author}}</code> is the author's name in wikilinks, i.e., <code>[[Adam Smith]]</code></li>
<li><code>{{VALUE:source}}</code> is the source URL of the resource</li>
<li><code>{{VALUE:tags}}</code> are the tags from the resource</li>
<li><code>{{VALUE:cover}}</code> is the cover image URL for the resource</li>
<li><code>{{VALUE:lastHighlightAt}}</code> is the date and time at which the latest highlight was added</li>
<li><code>{{VALUE:updated}}</code> is the date and time at which the resource was updated in Readwise</li>
<li><code>{{VALUE:numHighlights}}</code> is the amount of highlights for the resource</li>
</ul>
<p>You can use any of these in your template. I <em>strongly</em> encourage you to have a YAML field with <code>lastHighlightAt</code> to enable updating of your note.</p>
<h2>Bonus: Unprocessed Note Inbox</h2>
<figure><img src="https://bagerbach.com/uploads/Obsidian_p9kKu1KIJ9-effect.png" alt=""><figcaption>Unprocessed Note Inbox</figcaption></figure>
<p>For me, both reading <em>and</em> processing a note can't happen during the same session. Sometimes I rack up a ton of unprocessed notes, and they're all just sitting in the back of my mind, waiting for me to get back to them.</p>
<p>My solution? An <em>Unprocessed Note Inbox</em>. If you use my templates (or the <code>#state/process</code> tag), you can use this Dataview query!</p>
<p>Once you've imported notes of various kinds, you can use the following <a href="https://github.com/blacksmithgu/obsidian-dataview">Dataview</a> query to display them all:</p>
<pre><code>```dataview
TABLE WITHOUT ID
	("![](" + image + ")") as cover,
	(link(file.link, aliases)) as title,
	default(author, default(default(default(Author, Account), Channel), Podcast)) AS by
FROM #state/process and !"inputs/literature_notes" and !"bins"
SORT image desc
```
</code></pre>
<p>To display the notes as cards like I am, you will need the <a href="https://github.com/kepano/obsidian-minimal">Minimal theme</a>.<br>
Now you can use the <em>cards</em> <a href="https://github.com/kepano/obsidian-minimal#css-helper-classes">CSS helper class</a>.</p>
<p>In my dashboard, which is where my inbox lives, I use <code>cssClasses: cards table-wide cards-cover cards-cols-6</code>.</p>
<p>You might also like to show images for thumbnails.<br>
This will require some modifications to the templates.</p>
<p><strong>Books template:</strong> Simply add a frontmatter property <code>image</code>. Then, once you add a book, go hunting on Google for an image URL. I usually look for Amazon links, as they seem to be most reliable.</p>
<p><strong>Podcasts template:</strong> This is the template I use when creating podcast notes with <a href="https://www.youtube.com/watch?v=SGLfuN15uJY">PodNotes</a>:</p>
<pre><code class="language-markdown">---
tags: in/podcast state/process
aliases:
  - "{{VALUE:title}}"
cssclass: null
image: "{{VALUE:artworkUrl}}"
---

# {{VALUE:title}}
### Metadata
Type:: [[%]]
Tags:: 
Podcast:: [[{{VALUE:podcastName}}]]
Title:: {{VALUE:title}}
URL:: {{VALUE:url}}
Guest:: 
Reference:: 
Reviewed Date:: ==UPDATE THIS==

### Description
> {{VALUE:description}}

---
## Notes

</code></pre>
<p><strong>YouTube video template:</strong> Simply add this to your frontmatter if you use my workflow (presented in previously mentioned article):</p>
<pre><code>image: https://i.ytimg.com/vi/{{VALUE:📺 YouTube Video ID}}/hqdefault.jpg
</code></pre>
<p>That fetches high quality thumbnails from YouTube, given the YouTube video ID.</p>
<p>And now you can use this query instead, which displays images.</p>
<pre><code>```dataview
TABLE WITHOUT ID
	("![](" + image + ")") as cover,
	(link(file.link, aliases)) as title,
	default(default(default(Author, Account), Channel), Podcast) AS by
FROM #state/process and !"inputs/literature_notes" and !"bins"
SORT image desc
```
</code></pre>
<p>So let me just explain the query.<br>
It creates a table (without ID, i.e. file name/path) with three columns: <code>cover</code>, <code>title</code>, and <code>by</code>.<br>
To populate this table, it looks for all files tagged <code>#state/process</code> that are <em>not</em> in the <code>inputs/literature_notes</code> folder nor the <code>bins</code> folder.<br>
It then sorts these by the files' <code>image</code> property (in the frontmatter). This is such that, if you add notes without images, they'll be shown last.</p>
<p><strong>Another great use:</strong> whenever there's a note I <em>really</em> want to revisit, I add it to my inbox. In the screenshot, you'll see <code>Typescript</code>, which is a note that I want to come back to. Notes you add to this inbox don't have to be inputs, it can be any note you tag with <code>#state/process</code>.</p>
<p>Any questions, requests, or otherwise? Feel free to reach out (<a href="https://twitter.com/chrisbbh">Twitter</a>).</p>
<p>Sign up for my newsletter below 👇 to get updates and be the first to hear when I release new posts like this.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>How I Write My Newsletter With Obsidian</title>
<link>https://bagerbach.com/blog/how-i-write-my-newsletter-with-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-write-my-newsletter-with-obsidian/</guid>
<description>These are my systems and workflows for writing my newsletter in Obsidian.</description>
<pubDate>Mon, 21 Feb 2022 14:59:18 GMT</pubDate>
<content:encoded><![CDATA[<p>How do I keep an overview of everything to include in my weekly newsletter?</p>
<p>This is the question I asked myself when I started building this system.<br>
I needed a system for frictionless and easy management of my newsletter.<br>
More specifically, I needed</p>
<ul>
<li>to remember every piece of content I want to include</li>
<li>get an overview of notes or thoughts I've had recently that I could write about</li>
<li>keep track of things I've already shared, so I don't share the same stuff over and over</li>
</ul>
<p>And that's what I got.</p>
<p>It all starts on the Newsletter Dashboard.</p>
<h2>The Dashboard</h2>
<img src="https://bagerbach.com/uploads/newsletter_dashboard.png" alt="Newsletter dashboard">
<p>This is where I can see all previous editions of my newsletter.<br>
It's also where I can see the exact topics I've talked about in each of them.</p>
<p>The dashboard uses the <a href="https://github.com/kepano/obsidian-minimal">Minimal theme</a> for Obsidian, as well as the Dataview plugin for Obsidian. Both can be installed from within Obsidian.</p>
<p>For the cards view to work properly, you'll need the Contextual Typography plugin as well.</p>
<p>This is the entire note:</p>
<pre><code class="language-markdown">---
cssClasses: cards table-wide
alias: Newsletter
---

# Weekly Newsletter

```dataview
TABLE WITHOUT ID
	(link(file.path, title)) as Newsletter,
	file.outlinks as Links
FROM #out/newsletter AND !"bins/templates"
SORT file.ctime DESC
```
</code></pre>
<p>Let me explain.</p>
<p>At the top, between the '---' lines, I define the CSS classes I want to use for the cards. <code>cards</code> is necessary to display the Dataview table as cards. <code>table-wide</code> makes the table wider than the note is, which I like for the looks. I also define an alias for the note, for personal preference and searchability.</p>
<p>Then, the Dataview query. This query searches for all notes that have the <code>out/newsletter</code> tag, and also excludes notes that are in the "bins/templates" folder. This is to include all my newsletter notes, except the template note. This is just how I've built my vault. All content I create is nested under the <code>out</code> tag, whether it's <code>out/newsletter</code>, <code>out/video</code>, <code>out/article</code>, or <code>out/tweet</code>.</p>
<p>I sort by the creation time of the note, so that the most recent notes are shown first.</p>
<p><code>file.link as Newsletter</code> is so we link to the newsletter note in the card. <code>file.outlinks as Links</code> is so we link to the links going out from the note in the card: this is how I keep track of what I've already shared.</p>
<h2>The newsletter notes</h2>
<p>Each of my newsletter notes are created from the same template. To facilitate this, I use my plugin, QuickAdd, to create a note from the template. I also use this plugin to capture the links I want to include in the newsletter, but we're getting ahead of ourselves.</p>
<p>This is the template I use.</p>
<pre><code class="language-markdown">---
tags: out/newsletter
aliases:
  - null
cssclass: null
---

- [ ] Sort captured
- [ ] Write newsletter
- [ ] Proof read
- [ ] Edit subject to match content and date
- [ ] Send test email to self and check through

## Metadata

Title::
Publish Date::

# Captured

### Notes created this week

```dataview
list
WHERE file.ctime > date(today) - dur(7 days) AND !contains(file.path, "bin")
```

## Mentioned

# Newsletter Week {{DATE:ww yyyy}}

## What I've made for you

## Other content...

## Quote
</code></pre>
<p>At the top, you see that I have a checklist for the steps I take before sending the newsletter.<br>
I think checklists are very important when creating stuff you're sharing publicly. They help ensure a certain quality.</p>
<p>The metadata fields are quite recent, as you can see in the dashboard image (3 weeks or so). I use it to keep track of the date the newsletter was sent, as well as the subject line for the newsletter. The subject is displayed on the dashboard, which makes it a bit easier to keep track of things. I usually make the subject <em>after</em> writing the newsletter, which is why it's not the title of the note.</p>
<p>A quite useful feature is the "Notes created this week" Dataview query. This query lists all notes that were created in the last 7 days. This is a useful way to keep track of what I've been working on, so I can get more inspiration for what I could include in the newsletter. I work on a lot of different things in a given week, which is why I wanted this overview, so I'm sure I don't miss anything.</p>
<p>Of course, I also have the <code># Mentioned</code> heading. Under there, I make a list where I link to all the notes that I've included or written about in the newsletter. This is what helps show the list of things I've mentioned in the newsletter.</p>
<p>Below that heading is the general format for my newsletter. I write out the draft there, enter the Obsidian Reading view, and then I can copy the content from Obsidian into my mailing service. It retains formatting when done that way.</p>
<h3>Creating the newsletter notes</h3>
<p>I create the newsletter notes with QuickAdd.</p>
<p>I have an <a href="https://youtu.be/gYK3VDQsZJo">entire video dedicated to showing you how to use QuickAdd</a>, so I won't go into the details here, just the basics of my setup and how it works.</p>
<p>There's two ways I can create the newsletter note. I can either create it with my QuickAdd Template choice, or the capture choice I'll describe below.</p>
<p>First, the Template choice. This is what I use when I don't have anything captured to the note yet (very rare), but I still need to create the note. You don't need to create the note before capturing it (I'll show this in a moment).</p>
<img src="https://bagerbach.com/uploads/quickadd_newsletter_create.png" alt="QuickAdd Newsletter Template Choice">
<p>As can be seen in the image, I have a QuickAdd Template choice that</p>
<ul>
<li>creates the note with the template mentioned earlier</li>
<li>gives the note a file name of the format "Newsletter Week {{DATE:ww yyyy}}", which becomes "Newsletter Week 08 2022", for example</li>
<li>creates the note in the "outputs/newsletters" folder</li>
<li>appends a link to the note in the currently open file</li>
<li>and then, it opens the newly created newsletter note.</li>
</ul>
<p>Yeah. I don't want to do that manually every time I want to write my newsletter. I'd rather focus on actually writing it.</p>
<p>But! I actually usually create the note by... capturing to it?</p>
<h2>Capturing to the newsletter notes</h2>
<p>When I'm writing notes in my vault, I often think of something in the current note I really want to include in the newsletter. So I capture it to the newsletter note.</p>
<p>My setup is shown in the GIF below. I use the QuickAdd Capture feature to capture the currently open note to my newsletter, under the "Captured" section.</p>
<img src="https://bagerbach.com/uploads/quickadd_newsletter_capture.gif" alt="QuickAdd Newsletter Capture Choice">
<p>I capture to the file of the format <code>outputs/newsletters/Newsletter Week \{\{DATE:ww yyyy}}</code>, which is the path for to the latest newsletter note. If this note doesn't exist, it'll be created with the template I showed earlier.</p>
<p>I send the captured text to under the <code># Captured</code> heading. I always capture in this format:</p>
<pre><code class="language-markdown">- {{LINKCURRENT}} {{VALUE:Comments?}}
</code></pre>
<p>Notice the extra linebreak at the end. This ensures that the list remains a list (rather than having every line get mushed together).</p>
<p>So, what does this mean? It's QuickAdd format syntax. It basically says to capture a link to the currently open note, as well as any comments I want to add. You need to add some comment, otherwise it'll be ignored.</p>
<p>This capture is super important to the workflow. It is, without a doubt, what has helped me most in writing the newsletter every week. The catch is that it requires you to remember to capture stuff. However, I've found that you start doing it automatically after a short while.</p>
<p>And this is how I write my newsletter in Obsidian. If you have any questions, feel free to reach out on <a href="https://twitter.com/chrisbbh">Twitter</a>.</p>]]></content:encoded>
<category>Technology</category>
</item>
<item>
<title>How I Manage Projects and Goals in Obsidian</title>
<link>https://bagerbach.com/blog/projects-and-goals-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/projects-and-goals-obsidian/</guid>
<description>A simple framework for achieving progress.</description>
<pubDate>Sat, 12 Feb 2022 15:02:18 GMT</pubDate>
<content:encoded><![CDATA[<p>I created a system in Obsidian that allows you to manage your goals and projects easily.</p>
<img src="https://bagerbach.com/uploads/obsidian_fictious_goals.png" alt="Fictional goals on a Kanban board">
<p>You get a Kanban overview (as seen in the image above) as well as a dashboard for your goals and projects.</p>
<img src="https://bagerbach.com/uploads/projects_goals_dashboard.png" alt="Dashboard">
<p>Projects are used to achieve goals, so we link them together to see where and how we're making progres.</p>
<p>Let's get started.</p>
<h2>Required plugins &#x26; theme</h2>
<p>We use a few plugins to facilitate this system and its workflows. I'll explain what each of them does, and why it's there. Then you can make the decision to leave it out, if you don't want it. Click the links to open the plugin in the Obsidian Plugin Store.</p>
<ul>
<li><strong>The Minimal Theme</strong>: Makes the whole thing beautiful to look at. Cards will not work in the dashboard without it.</li>
<li>Contextual Typography: Necessary for (our usage of) Minimal.</li>
<li>Dataview: Necessary. Facilitates all the dynamic properties and views.</li>
<li>QuickAdd: Automates the creation of goals and projects, which would otherwise require quite a few steps to create.</li>
<li>Kanban: Places both Goals and Projects in a nice overview that helps make sense of them.</li>
<li>MetaEdit: Whenever you move cards between lanes in the Kanban board, this automates the updating of properties. This makes the back-end work for seeing which projects relate to which goals.</li>
</ul>
<p>I've made both QuickAdd and MetaEdit. You're free to ask me questions regarding them (or this system).</p>
<h2>Setting up the system</h2>
<p>I've tried to make setup as easy as possible. No matter if you're starting from scratch with Obsidian, or just want to add something new to your workflow, I've got you covered.</p>
<h3>Step 0. Download the vault</h3>
<p>You can find the entire Obsidian Vault with this system (and everything set up) here: <a href="https://github.com/chhoumann/DemoVault">Christian's Demo Vault</a>.</p>
<p>You'll want to download the repository. You can do that by clicking "Download ZIP", which is under the "Code" menu. You can also open each file individually and copy &#x26; paste, if you prefer.</p>
<p>If you don't have an obsidian vault yet, you can just download the vault and you're done.</p>
<p>However, if you already have an existing vault and want to add this system, here's how. Don't worry, it's super quick.</p>
<h3>Step 1. Copy &#x26; pasting</h3>
<p>First, make sure you've installed and enabled the required plugins and themes.</p>
<p>Inside your vault, you'll want places to store your goal notes, your project notes, the templates we use to create them, and a folder called <code>views</code> to store the Dataview scripts this system uses.<br>
You can create the folders wherever you want.</p>
<p>Let's take it in steps:</p>
<ol>
<li>Create folders for <code>goals</code> and <code>projects</code></li>
<li>Copy the <code>views</code> folder into your vault (you can put in in a folder, if you want)</li>
<li>Copy the templates into your vault. If you have a templates folder, just copy the two templates into it.</li>
<li>Copy the markdown files, <code>Dashboard.md</code>, <code>Goals.md</code>, and <code>Project Board.md</code> into your vault. This saves you some setup time. The Kanban board already have some cards, but you can just delete them.</li>
</ol>
<p>All done copy &#x26; pasting! Now we just have to set up the plugins.</p>
<h3>Step 3. Setting up the plugins</h3>
<p>You're actually already done with setting up all of them except Dataview, MetaEdit, and QuickAdd.</p>
<h4>Dataview</h4>
<p>Open Obsidian's settings, find Dataview's settings, and enable the following:</p>
<ul>
<li>Enable JavaScript Queries</li>
<li>Enable Inline JavaScript Queries</li>
<li>Enable Inline Field Highlighting</li>
</ul>
<h4>MetaEdit</h4>
<p>Open Obsidian's settings, find MetaEdit's settings, and do the following:</p>
<ol>
<li>Enable Kanban Helper</li>
<li>Select the Project Board</li>
<li>Write <code>status</code> in the field under "Property in link."</li>
<li>Do the same for Goals, and write <code>Type</code> under "Property in link."</li>
</ol>
<p>It should look somewhat like this:<br>
<img src="https://bagerbach.com/uploads/projects_goals_kanban_helper.png" alt="MetaEdit Settings"></p>
<h4>Setting up QuickAdd</h4>
<p>Open Obsidian's settings, find QuickAdd's settings, and do the following.</p>
<p>First, click "Manage Macros." Then, add two new macros: <code>Add Goal</code> and <code>Add Project</code>. We'll configure these now.</p>
<img src="https://bagerbach.com/uploads/proj_goals_metaedit_settings.png" alt="Macros">
<p>I have made a video on how you can use QuickAdd, which shows how you can use the interface and the various aspects. <a href="https://youtu.be/gYK3VDQsZJo">Click here to see it</a>.</p>
<h5>Configuring Add Goal</h5>
<p>Click configure on <code>Add Goal</code>. Now we need to add the steps. To add them, click "Template", then click the clock button, and lastly, click "Capture."</p>
<p>This should have added three steps to the macro.<br>
Click configure ⚙ on the first one ("Untitled Template Choice"). You can click the title of it to change its name. I recommend "Create Goal Note."</p>
<p>You should configure it such that</p>
<ul>
<li>The template path points to the template we inserted for goals</li>
<li>It has a file name format that says: <code>{{DATE}} - {{VALUE:Goal}}</code>
<ul>
<li>This makes it such that the file name of the created file contains the data and goal title. If you change this, you need to change the capture as well!</li>
</ul>
</li>
<li>Make it add the note to the right folder.</li>
</ul>
<p>For me, this looks like so:<br>
<img src="https://bagerbach.com/uploads/proj_goals_quickadd_add_goal.png" alt="Add Goal"></p>
<p>Go back out to the macro. Set the wait delay to 200 ms.</p>
<p>Now, click configure ⚙ on the third one ("Untitled Capture Choice"). I called this <code>Send to Kanban Board</code>.<br>
Configure it like this:</p>
<ul>
<li>Capture To should be the path to the Kanban board with your goals. Mine is simply <code>Goals.md</code>.</li>
<li>Enable Task.</li>
<li>Insert after: <code>## {{VALUE:Professional,Physical,Knowledge,Wealth,Life}}</code>
<ul>
<li>This ensures that you're asked which lane you want to add the card to, and then adds the card to that lane.</li>
</ul>
</li>
<li>Enable Capture Format, and make it: <code>[[{{DATE}} - {{VALUE:Goal}}|{{VALUE:Goal}}]]</code>
<ul>
<li>This is very important, as it links to the goal note you create. If you changed the file name format earlier, you'll need to change it here, too.</li>
</ul>
</li>
</ul>
<p>And now we're done with this macro. We'll need to do something similar in <code>Add Project</code>.</p>
<h5>Configuring Add Project</h5>
<p>You'll be doing something very similar here, so I'll show you what mine looks like, and you can set yours accourdingly.</p>
<p>The macro:<br>
<img src="https://bagerbach.com/uploads/proj_goals_add_project.png" alt="Add Project Macro"></p>
<p>The <code>Create Project Note</code> step:<br>
<img src="https://bagerbach.com/uploads/proj_goals_create_project_note.png" alt="Create Project Note"></p>
<p>The <code>Capture to project board</code> step:</p>
<ul>
<li>Capture to: <code>Project Board.md</code></li>
<li>Task enabled</li>
<li>Insert after: <code>## Todo</code></li>
<li>Capture Format: <code>[[; {{VALUE:⚒ Add Project}}|{{VALUE:⚒ Add Project}}]]</code></li>
</ul>
<p>The principles are the same here.</p>
<h5>Finishing touches</h5>
<p>We're almost completely done. Just need to set up the QuickAdd choices.<br>
If you go back to the main settings for QuickAdd, you are able to add Choices. You'll want to add two macro choices, which means that you select "Macro" from the drop-down menu and add it.<br>
I named mine <code>🎯 Add Goal</code> and <code>👷 Add Project</code>, respectively. Now you'll want to click the configure ⚙ button for these and select the appropriate macro.</p>
<p>At this point, you are finished setting everything up. You can now add projects and goals as you<br>
want.</p>
<p>In <a href="https://bagerbach.com/blog/projects-and-goals-obsidian/#how-it-works">How it works</a>, I'll describe how everything works behind-the-scenes.</p>
<h2>Updated: Auto Tracking</h2>
<p>Since making this system, I've added a feature that automatically tracks your progress on goals.<br>
This is the 'auto-track' feature.</p>
<p>It works by using tasks inside your goal &#x26; project notes.<br>
A task in one of these notes contributes to the progress of the goal/project.<br>
The progress is calculated by the number of tasks that are completed, divided by the total number of tasks.<br>
For a goal, this is the sum of all tasks in all project notes that contribute to the goal <em>and</em> tasks in the goal note.</p>
<p>You can use this in your own vault by copying the <code>autotracking_goal_item_template</code>.<br>
This template is akin to the <code>goal_item_template</code>, but facilitates the task tracking.</p>
<p>I've added a QuickAdd choice, <code>🎯 Add Auto Tracking Goal</code>, to the vault for creating an auto-tracked goal. It is basically the same as the <code>Add Goal</code> macro, but uses the <code>autotracking_goal_item_template</code> instead. To replicate this in your own vault, create a macro called <code>Add Auto Tracking Goal</code> and configure like the other <a href="https://bagerbach.com/blog/projects-and-goals-obsidian/#configuring-add-goal">Add Goal</a> macro, but using the autotracking template instead.</p>
<h2>How it works</h2>
<p>The system leverages multiple plugins that work in tandem to create the full experience. Each of them play their own part.</p>
<h3>The Dashboard</h3>
<p>This is where you can get an overview of your active projects and goals. It's great for getting an overview.</p>
<p>We have to Dataview queries on the page. The first one displays Goals in a table, which Minimal transforms into a cards view. We depend here on having set an alias, which we use to link to the goal. We also rely on 'aggregating' the <code>Bar</code> metadata property, which creates the progress bar.<br>
This view only shows goals where the progress isn't equal to the target. In other words, goals that aren't yet achieved.</p>
<p>The dashboard also shows projects. Like with goals, these are shown in a cards view. Only active projects are shown. Information about the project and the goals it contributes to is also shown.</p>
<h3>Goals</h3>
<p>Starting with the Kanban board, it simply shows goals and information about them. The Kanban plugin allows you to show metadata properties from your notes, and we show all relevant information here. This page is great for getting an overview over your goals and what you are doing to achieve them.</p>
<p>Only projects that are active, i.e., "In Progress," are shown here. You are able to see all projects that are linked to a goal by opening the goal note.</p>
<p>Each goal note has a few noteworthy frontmatter fields</p>
<ul>
<li><code>tags</code>, which should always include <code>goal</code>.</li>
<li><code>alias</code>, which is an alias that has the goal name, but without the date. This is set automatically by QuickAdd.</li>
<li><code>Type</code> denotes the type of goal. This is automatically updated by MetaEdit, as it represents your goal area. This allows you to later query your goals by type with Dataview.</li>
<li><code>Progress</code> represents your current progress towards your target goal. This could be semesters finished for your bachelor's degree.
<ul>
<li>Notably, you can also count <em>down</em> towards something. This requires that you add an additional YAML property called <code>Start</code>. This would allow you to set goals where your target is lower than your progress, and the goal is to reduce your current amount. The <code>Start</code> property denotes your starting point, and is necessary to calculate your progress percent. It is, however, not necessary if you are counting upwards, as a start of 0 is assumed.</li>
</ul>
</li>
<li><code>Target</code> represents the goal target.</li>
<li><code>Reason</code> is your reason for undertaking the goal. Why are you doing it in the first place?</li>
<li><code>Timespan</code> denotes the timespan for your goal.</li>
<li><code>Bar</code> is a Dataview field. It leverages an inline Dataview query to display a custom Dataviewjs view called <code>progress-bar</code>. This is what is contained within the <code>views</code> folder. It is also what does the calculations and displaying of the progress bar.</li>
<li><code>Projects</code> is also a Dataview field with an inline Dataview query. This query searches for all links into the goal note with the <code>#project</code> tag. It also constrains the projects to those that are "In Progress", which is denoted by their lane in the Project Board.</li>
</ul>
<p>Further down on the goal note you'll find a Dataview table that displays all projects undertaken to achieve the goal.</p>
<p>I have included headers in the goal note template that you might find useful, but you are free to change the contents of the note as you see fit.</p>
<h3>Projects</h3>
<p>Projects work in much the same way. As you move projects around on the Kanban board, their status updates.</p>
<p>In each project note, you'll find some notable frontmatter.</p>
<ul>
<li><code>tags</code> should always contain <code>project</code>, which marks the note as a project.</li>
<li><code>alias</code> is similar to the goal note alias.</li>
<li><code>status</code> denotes the project status. This field is automatically updated by MetaEdit as you move projects around on your Kanban board.</li>
<li><code>subtitle</code> is the subtitle for your project. Additional information, or project purpose, might be interesting to add here.</li>
<li><code>Goal</code> is an inline Dataview field. This links to the relevant goal note. Linking to goal notes allow you to connect your action items to their "why," which is represented by your goal note. You can connect a project to multiple goals, as long as you comma-separate them.</li>
</ul>
<p>In this template I have also included some relevant headers. You are, again, free to change these and adapt the note to your own needs.</p>
<p>If you found this useful, consider <a href="https://www.buymeacoffee.com/chhoumann">buying me a coffee</a>.</p>
<p>Make sure you sign up for my newsletter below to get updates on this and similar projects.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>How I Read Research Papers with Obsidian and Zotero</title>
<link>https://bagerbach.com/blog/how-i-read-research-papers-with-obsidian-and-zotero/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-read-research-papers-with-obsidian-and-zotero/</guid>
<description>Learn how I import papers I’ve read in Zotero into Obsidian with QuickAdd. This workflow is mostly automatic, and completely customizable. And it works on mobile.</description>
<pubDate>Thu, 19 Aug 2021 14:59:18 GMT</pubDate>
<content:encoded><![CDATA[<p><strong>Updates:</strong></p>
<ul>
<li><strong>2024-07-05</strong>: I've updated the script with new features: annotation sorting by page, date, or index in ascending/descending order; import select now finds all papers with pagination; real-time progress indicator with step-by-step status; more metadata fields accessible with <code>{{VALUE:key}}</code>.</li>
<li><strong>2023-03-12</strong>: Zotero v6 broke the previous workflow. On 2023-03-12, I updated this article with my new workflow. Previously, the Citations plugin was used to import the paper into Obsidian. Now, I use QuickAdd to do the same thing.</li>
</ul>
<hr>
<p>How do we manage the complexity and depth from research papers in our note systems? How do we minimize the friction of taking notes in a PDF document and turning those into evergreen, permanent notes?</p>
<p>Those were the exact questions I was asking myself a few days ago. Reading research papers was a mess. I had no good way to import my highlighted notes to my note system, and the only good way didn’t do everything I needed it to.</p>
<p>So I created my own system for reading research papers; a combination of <a href="https://zotero.org/">Zotero</a> and <a href="https://obsidian.md/">Obsidian</a>. Let me show you what I made, and how it can help you.</p>
<p><strong>Process outline</strong></p>
<ol>
<li>Add paper to Zotero inbox</li>
<li>Read the paper when I have time, and take notes</li>
<li>Automatically ingest it into Obsidian with the desired template and metadata</li>
<li>Processing the notes; thinking through the ideas and turning them into separate notes if desired</li>
</ol>
<p>In this article, I’ll show you 1-3.</p>
<p>Let’s get to it.</p>
<h2>Setting up Zotero</h2>
<p>The process always starts with me adding a paper to my Zotero inbox. <a href="https://bagerbach.com/blog/how-i-process-inputs-from-the-internet/">Learn how to maintain your Inbox and keep it clutter-free.</a></p>
<p>I use the <a href="https://www.zotero.org/download/connectors">Zotero Connector</a> extension to save papers directly to Zotero from my browser. You can also use the magic wand button in Zotero to add papers by their DOI.</p>
<p>To read the papers, I use the new built-in PDF reader for Zotero; a powerful PDF reader &#x26; annotation tool.<br>
As I read, I simply annotate the passages that I find relevant. This includes asking questions regarding the presented information, summarizing, comparing to other literature, or explaining things in my own words.</p>
<h2>Setting up Obsidian</h2>
<p>To enable the workflow on Obsidian, you’ll need the <a href="https://github.com/chhoumann/quickadd">QuickAdd</a> plugin. You can find the plugin in Obsidian's plugin store.<br>
I also recommend checking out my video on <a href="https://youtu.be/gYK3VDQsZJo">how the plugin works</a>.</p>
<p>As an aside, there exist other good plugins that can help you import into Obsidian. Some of them are unfortunately outdated and no longer maintained.<br>
The best alternative I have found is the <a href="https://github.com/mgmeyers/obsidian-zotero-integration">Zotero Integration</a> plugin by the great Matthew Meyers. It is very powerful, and has a ton of great features, but also has some weaknesses that I think this workflow addresses. For example, it does not work on mobile.</p>
<p>The method I present here works on any device. The only requirement is that you use Zotero's Sync feature, such that your data is synchronized to the Zotero online database. This is where the script will pull the data from.</p>
<p>Now, let’s set up the template used for paper notes.</p>
<h3>My research paper template</h3>
<p>The following is the template I use for papers. I use <a href="https://github.com/blacksmithgu/obsidian-dataview">Dataview</a>, so my metadata looks a bit different from the conventional YAML.</p>
<p>You'll want to save the template in your vault, and then use the <code>Template Path</code> setting in QuickAdd to point to it. More on that in a moment.</p>
<pre><code class="language-markdown">---
tags: in/paper state/process
aliases:
    - '{{VALUE:title}}'
cssclass: null
abstract: >
    {{VALUE:abstract}}
---

# {{VALUE:title}}

---

Type:: [[&#x26;]]
Title:: {{VALUE:title}}
Author:: {{VALUE:authors}}
Year:: {{VALUE:date}}
Tags::
DOI:: {{VALUE:doi}}
Reviewed Date:: ==UPDATE THIS==
Rating:: ==Give a rating==

---

## Abstract

{{VALUE:abstract}}

## Summary of key points

-

## Other Comments

-

## Interesting Cited References

-   

---

{{VALUE:formattedAnnotations}}
</code></pre>
<p>You'll notice a bunch of <code>{{VALUE:key}}</code> placeholders in the template. These are the properties that will be filled out by QuickAdd, based on the metadata of the paper and annotations.</p>
<p>The <code>ReviewedDate</code> property will link to my daily note. I update this manually when I'm done reviewing the paper.<br>
The remaining properties contain information about the paper itself.</p>
<p>What makes the script powerful is that it allows you to customize both the template &#x26; how annotations and authors are formatted to your liking. I'll show you how in a moment.</p>
<h3>Setting up QuickAdd</h3>
<p>We’ll need to install a QuickAdd user script for this to work. The video I mentioned earlier shows you how to do so <a href="https://www.youtube.com/watch?v=gYK3VDQsZJo&#x26;t=1730s">here</a>. You can grab the <a href="https://github.com/chhoumann/quickadd/discussions/421">Zotero Importer script here</a>.</p>
<p>You will need to copy the script contents into your Obsidian vault as a new file. The file should be named <code>zotero.js</code>. You will need to do this outside of Obsidian, e.g. by copying the text, pasting it into a notepad, and then saving it as <code>zotero.js</code> in your Obsidian vault.</p>
<p>QuickAdd's macros allow you to run multiple actions with a single command. In this case, we use a macro to:</p>
<ol>
<li>Trigger the Zotero Importer script to fetch paper metadata and annotations from Zotero</li>
<li>Use a Template action to create a new note in Obsidian with the fetched data</li>
</ol>
<p>This makes importing research papers into Obsidian quick and easy. With just one click, you can create a fully formatted note with all the paper's details and your annotations.</p>
<p>At this point, we need to create a macro, if you haven’t already. In QuickAdd, go to Manage Macros, and add a new macro. Once the macro has been added, go ahead and click Configure.</p>
<p>First, you’ll want to add the user script to the macro. I called it <code>zotero.js</code>, so that's what I'm adding.</p>
<p>To use the script, you need to generate an API key for Zotero. You can do so <a href="https://www.zotero.org/settings/keys">here</a>. Generate one by clicking <code>Create new private key</code> and then giving it library and notes access. Once you have the key, add it to the script by clicking the ⚙️ button next to it. You also need your Zotero user ID, which you can find on the same page as the API keys.</p>
<img src="https://bagerbach.com/uploads/Obsidian_BEjSRGxQU5.png" alt="Script settings">
<p>This settings panel is also where you customize how annotations and authors are formatted.<br>
The settings shown above are a great start, but you can customize them to your liking.</p>
<p>I'll show you my settings <a href="https://bagerbach.com/blog/how-i-read-research-papers-with-obsidian-and-zotero/#my-settings">at the end of this section</a>, which you can use as inspiration.</p>
<p>The settings are important as they determine how the script formats the data.<br>
<code>{{VALUE:formattedAnnotations}}</code> is what will be used to import the annotations into the note and <code>{{VALUE:authors}}</code> to import the authors into the note, given the settings you set here.</p>
<p>You can sort annotations by page, modified date, added date, or sort index.<br>
I recommend using the sort index in ascending order, as it seems to be the closest to the order of the annotations in the PDF.</p>
<p>Now add a Template to the macro by clicking the Template button. My Template Choice looks like this:</p>
<img src="https://bagerbach.com/uploads/Obsidian_mRkhuQBa8s.png" alt="Template choice">
<p>Here’s an explanation of the settings:</p>
<ul>
<li><strong>Template Path</strong> is the path to my template. This is the path to the note that you’ve created from the template I shared above. Your will vary from mine, unless you have the exact same naming and folder structure.</li>
<li><strong>File Name Format</strong> is the format of my file names. I use <code>&#x26;</code> in front of papers for my file convention. The <code>{{VALUE:fileName}}</code> is necessary, as it grabs the paper’s title and uses that, which happens through the script.</li>
<li>I use <strong>create in folder</strong> because I put my source notes in an inputs folder.</li>
<li>And lastly, <strong>open</strong>. This is used to open the created file.</li>
</ul>
<p>This is what your macro should look like.</p>
<img src="https://bagerbach.com/uploads/Obsidian_2fXBKHPMqn.png" alt="Macro">
<p>Having created the macro, all you need is a QuickAdd choice to activate it. Back in the main QuickAdd menu, add a Choice of the Macro type, naming it <code>📜 Add Paper</code> (or whatever you like). Click ⚙ settings for it and select your newly created macro.</p>
<h3>My settings</h3>
<h4>Annotation format</h4>
<ul>
<li>If the annotation is an image (via the new Zotero PDF annotator), it'll indicate so. Images are not yet supported by the Zotero API, so I use this to indicate that I should go and manually copy it in. I just right-click to copy the image in Zotero and then paste it into Obsidian.</li>
<li>If the note includes <code>.hX</code>, where <code>X</code> is the heading level (like <code>.h1</code> for a level 1 heading), it will generate <code># &#x3C;quote></code>. This helps track the paper's structure. Mark each heading in the paper with <code>.h1</code>, <code>.h2</code>, etc., and the script will format it neatly for you.</li>
<li>If the quote starts with a hashtag, we assume it's a tag, and we just return that.</li>
<li>Otherwise, do markdown block quotes for the highlighted text and with the note below the quote.</li>
</ul>
<pre><code class="language-markdown">```js quickadd
const note = this.variables.note;
let quote = this.variables.quote;

if (this.variables.annotationType === "image") {
    return "==Images not supported yet.=="
}

const headingMatch = note.match(/\.h(\d+)/);

if (headingMatch) {
    const headingLevel = Number.parseInt(headingMatch[1], 10) + 2;
    const hashtags = '#'.repeat(headingLevel);
    quote = `${hashtags} ${quote}`;
}

if (quote.trim().startsWith("#")) return quote;
return `> ${quote}`
```

{{VALUE:note}}
</code></pre>
<h4>Sorting</h4>
<p>I'm using ascending <code>sort-index</code> in ascending order, which works well for me.<br>
I highly recommend using this, as it seems to be the best sorting option.</p>
<h2>Creating notes in Obsidian from papers in Zotero</h2>
<p>Now that we’re all set up, it’s time to use the script!</p>
<p>Having read a paper, I’ll go into Obsidian and activate the <code>📜 Add Paper</code> choice. A menu like this will open:</p>
<img src="https://bagerbach.com/uploads/pasted-image-20210819164144.png" alt="Suggestor showing all papers in my Zotero collection">
<p>Selecting a paper will create a new note, which looks like this:</p>
<img src="https://bagerbach.com/uploads/Obsidian_fRZDNXiQxZ.png" alt="Created note">
<p>So there it is. This is how I import papers into my vault; notes, metadata, and all.</p>
<h2>How you can use it</h2>
<p>Any of the following variables can be accessed with <code>{{VALUE:variable}}</code>, where <code>variable</code> is the name of the variable.</p>
<p>These can be used in your Template Choice settings (file name, etc.) as well as your markdown template.</p>
<h3>General Item Metadata</h3>
<ul>
<li><strong>File Name</strong>: <code>{{VALUE:fileName}}</code>. Paper title with all the special, illegal characters removed.</li>
<li><strong>Author</strong>: <code>{{VALUE:author}}</code>. All authors in the format you defined. You can use any of the variables here, except <code>formattedAnnotations</code> and <code>author</code> to define the format.</li>
<li><strong>Formatted Annotations</strong>: <code>{{VALUE:formattedAnnotations}}</code>. All annotations in the format you defined. You can use any of the variables here, except <code>formattedAnnotations</code> and <code>author</code> to define the format.</li>
<li><strong>Item Key</strong>: <code>{{VALUE:key}}</code></li>
<li><strong>Version</strong>: <code>{{VALUE:version}}</code></li>
<li><strong>Parent Item Key</strong>: <code>{{VALUE:parentItem}}</code></li>
<li><strong>Item Type</strong>: <code>{{VALUE:itemType}}</code></li>
<li><strong>Date Added</strong>: <code>{{VALUE:dateAdded}}</code></li>
<li><strong>Date Modified</strong>: <code>{{VALUE:dateModified}}</code></li>
<li><strong>Title</strong>: <code>{{VALUE:title}}</code></li>
<li><strong>Abstract Note</strong>: <code>{{VALUE:abstractNote}}</code></li>
<li><strong>Publication Title</strong>: <code>{{VALUE:publicationTitle}}</code></li>
<li><strong>Volume</strong>: <code>{{VALUE:volume}}</code></li>
<li><strong>Issue</strong>: <code>{{VALUE:issue}}</code></li>
<li><strong>Pages</strong>: <code>{{VALUE:pages}}</code></li>
<li><strong>Publication Date</strong>: <code>{{VALUE:date}}</code></li>
<li><strong>Series</strong>: <code>{{VALUE:series}}</code></li>
<li><strong>Series Title</strong>: <code>{{VALUE:seriesTitle}}</code></li>
<li><strong>Series Text</strong>: <code>{{VALUE:seriesText}}</code></li>
<li><strong>Journal Abbreviation</strong>: <code>{{VALUE:journalAbbreviation}}</code></li>
<li><strong>Language</strong>: <code>{{VALUE:language}}</code></li>
<li><strong>DOI</strong>: <code>{{VALUE:DOI}}</code></li>
<li><strong>ISSN</strong>: <code>{{VALUE:ISSN}}</code></li>
<li><strong>Short Title</strong>: <code>{{VALUE:shortTitle}}</code></li>
<li><strong>URL</strong>: <code>{{VALUE:url}}</code></li>
<li><strong>Access Date</strong>: <code>{{VALUE:accessDate}}</code></li>
<li><strong>Archive</strong>: <code>{{VALUE:archive}}</code></li>
<li><strong>Archive Location</strong>: <code>{{VALUE:archiveLocation}}</code></li>
<li><strong>Library Catalog</strong>: <code>{{VALUE:libraryCatalog}}</code></li>
<li><strong>Call Number</strong>: <code>{{VALUE:callNumber}}</code></li>
<li><strong>Rights</strong>: <code>{{VALUE:rights}}</code></li>
<li><strong>Extra</strong>: <code>{{VALUE:extra}}</code></li>
<li><strong>Creator Summary</strong>: <code>{{VALUE:creatorSummary}}</code></li>
<li><strong>Parsed Date</strong>: <code>{{VALUE:parsedDate}}</code></li>
<li><strong>Number of Children</strong>: <code>{{VALUE:numChildren}}</code></li>
<li><strong>Abstract</strong>: <code>{{VALUE:abstract}}</code></li>
<li><strong>Short Author</strong>: <code>{{VALUE:shortAuthor}}</code></li>
<li><strong>DOI (lowercase)</strong>: <code>{{VALUE:doi}}</code></li>
<li><strong>Year</strong>: <code>{{VALUE:year}}</code></li>
<li><strong>ISSN (lowercase)</strong>: <code>{{VALUE:issn}}</code></li>
</ul>
<h3>Annotation Metadata</h3>
<ul>
<li><strong>Annotation Type</strong>: <code>{{VALUE:annotationType}}</code></li>
<li><strong>Annotation Comment</strong>: <code>{{VALUE:annotationComment}}</code></li>
<li><strong>Annotation Color</strong>: <code>{{VALUE:annotationColor}}</code></li>
<li><strong>Annotation Page Label</strong>: <code>{{VALUE:annotationPageLabel}}</code></li>
<li><strong>Annotation Sort Index</strong>: <code>{{VALUE:annotationSortIndex}}</code></li>
<li><strong>Annotation Position</strong>: <code>{{VALUE:annotationPosition}}</code></li>
<li><strong>Color</strong>: <code>{{VALUE:color}}</code></li>
</ul>
<h3>Notes and Quotes</h3>
<ul>
<li><strong>Note</strong>: <code>{{VALUE:note}}</code></li>
<li><strong>Quote</strong>: <code>{{VALUE:quote}}</code></li>
</ul>
<hr>
<p>I hope you enjoy the workflow!</p>
<p>Any questions, requests, or otherwise? Feel free to reach out on <a href="https://twitter.com/chrisbbh">Twitter</a> or elsewhere.</p>
<p>Sign up for my newsletter below 👇 to get updates and be the first to hear when I release new posts like this.</p>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>How I Process Inputs From the Internet</title>
<link>https://bagerbach.com/blog/how-i-process-inputs-from-the-internet/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-process-inputs-from-the-internet/</guid>
<description>Or, a guide to dealing with the seemingly infinite torrent of information that is The Internet.</description>
<pubDate>Sun, 15 Aug 2021 18:07:07 GMT</pubDate>
<content:encoded><![CDATA[<img src="https://bagerbach.com/uploads/pasted-image-20210722095234.png" alt="The Discover, Input, Filter, and Read process">
<p>You're browsing the internet and find something that sparks your interest. Say, an article.</p>
<p>Do you read the article right away?<br>
Let me try to convince you that you shouldn't, and what you should do instead.</p>
<p>The system consists of four phases.</p>
<ol>
<li>🌐 Discover: interesting resources</li>
<li>📥 Input: to your inbox</li>
<li>⚔ Filter: the noise</li>
<li>📖 Read: the signal</li>
<li>🧠 <em>Bonus step</em></li>
</ol>
<p>The Discover and Input phases are the <em>ingestion</em> of information, while Filter and Read is the <em>digestion</em> of information.</p>
<h2>The four phases</h2>
<h3>🌐 Discover</h3>
<p>The discovery phase is where you find all the inputs that you want to digest.</p>
<p>Just like you should limit junk food in your diet, you should also limit it in your <em>information diet</em>.</p>
<p><strong>Here are some questions you should ask yourself.</strong></p>
<ul>
<li><em>Am I getting my information from the right sources?</em></li>
<li><em>Am I ingesting that which is good and healthy for me, or is it informational junk?</em></li>
<li><em>Will this serve me?</em></li>
<li><em>Can I use this information now, or at least in the foreseeable future?</em></li>
</ul>
<p>You have found an interesting article; it is time to move to the Input phase.</p>
<h3>📥 Input</h3>
<p>Everything you find interesting will be sent to your inbox. Whether it be articles, videos, podcast episodes, tweets. You name it.</p>
<p>The idea is to save content for later, such that you can move on with what you were doing now. You become more proactive in prioritizing what you do. You are not just reacting to what is sent your way anymore.</p>
<p>This is an important mindset shift. What may seem interesting and important now may be completely irrelevant and uninteresting in a few days.</p>
<p>There are many services you can use to save content to your inbox, but <a href="https://www.instapaper.com/">Instapaper</a> and <a href="https://getpocket.com/">Pocket</a> are very popular. I use <a href="https://readwise.io/read">Readwise Reader</a> You could also just use a note on your computer. All you <em>really</em> need is a way to save the link.</p>
<h3>⚔ Filter</h3>
<p>Filter the signal from the noise.</p>
<p>From Vilfredo Pareto comes The Law of the Vital Few. 80% of the consequences come from 20% of the causes (the 'vital few'). This is to say that there are disproportionate outputs to <em>some</em> inputs.</p>
<p>Aim to read the 20%.</p>
<p>Once the novelty of stumbling upon a new article has faded, you can see whether it will serve you or not. Is it still relevant to you? If not, go ahead and remove it from your inbox.</p>
<h3>📖 Read</h3>
<p>It is now time to actually read, watch, or listen to what you have saved.</p>
<p>While reading, I like to take notes. This allows me to revisit the important points later on, so I'll always maintain a knowledge base of the best ideas I've stumbled upon.</p>
<p>To write notes and take highlights, I previously used <a href="https://hypothes.is/">Hypothes.is</a>. It is a free service that allows you to write notes as you read articles, directly on the article page. I would highly recommend that you create your own private group, to which you take your highlights; otherwise anyone can see them.</p>
<p>I am now using <a href="https://readwise.io/read">Readwise Reader</a>. It allows you to take highlights and notes on what you save. It also has a great mobile app. I highly recommend it.</p>
<p>When I annotate, I always write my thoughts on the annotation, or at least give an explanation as to why I've chosen to highlight it.</p>
<p><strong>And remember…</strong><br>
Don't be afraid to discard whatever you are reading if it does not serve you.</p>
<h3>🧠 BONUS: Understand</h3>
<p>A fantastic way to ensure that you take something away from each piece of content you read is to <em>write</em>. This makes your processing a give-and-take relationship. You consume something, and in return, you produce something new.</p>
<p>By writing about your experiences (what you've learned), you practice both retrieval, elaboration, and you connect ideas to your existing mental models. Those techniques are powerful for learning, and will help you remember what you read.</p>
<p>As powerful as they are, they are no substitute for putting what you learn to practice. If you read something, try to use what you have learned in your life. Read about a new technique in your field? Try it out, if you have the opportunity.</p>
<h2>Where to go from here</h2>
<ol>
<li>Set up an Inbox on <a href="https://www.instapaper.com/">Instapaper</a> or<a href="https://getpocket.com/"> Pocket</a></li>
<li>Save some articles. You can start with this one</li>
<li>Schedule time to process the inbox</li>
<li>Once that time comes, start ruthlessly filtering</li>
<li>Read what remains</li>
</ol>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>How to use QuickAdd for Obsidian - with examples</title>
<link>https://bagerbach.com/blog/how-to-use-quickadd-for-obsidian-with-examples/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-to-use-quickadd-for-obsidian-with-examples/</guid>
<description>A beginners guide to QuickAdd, an Obsidian plugin that helps you create and add content to your Obsidian vault.</description>
<pubDate>Sat, 24 Jul 2021 23:56:18 GMT</pubDate>
<content:encoded><![CDATA[<p><a href="https://www.youtube.com/watch?v=gYK3VDQsZJo">Watch video on YouTube</a></p>
<p>I have made a plugin for Obsidian called QuickAdd, which I'm very excited to show you.</p>
<p><strong>What is QuickAdd?</strong> QuickAdd, at its core, is just a plugin for quickly and easily adding notes to your vault. This may be entirely new notes, or something that you want to take note of in an existing note.</p>
<p>It provides lots of ways to do that, and that's what I'm here to talk about today.</p>
<p><strong>Why QuickAdd?</strong> QuickAdd can help you augment both your simple and advanced workflows.</p>
<p>Take a simple workflow. You want to add something to your daily note, but you're in the middle of writing something else and don't want to interrupt your flow by going into your daily note and back. You can use QuickAdd to add it to the daily note without ever leaving your note or moving your cursor. And I'll show you how.</p>
<h2>Examples covered</h2>
<ul>
<li>Capture to daily journal</li>
<li>Create a new file from template</li>
<li>Create a new note to a Kanban Board (with values) and persistence</li>
</ul>
<h2>Advanced concepts</h2>
<ul>
<li>Install the Zettelizer</li>
<li>Show QuickAdd API</li>
<li>Show inline JS and how to use API with it</li>
</ul>
<h2>Q&#x26;A</h2>
<h4>Is there a way to trigger quickadd from outside using an url scheme? If not, do you think it would be a welcome feature to add?</h4>
<p>Yes, there is a plugin called <code>Advanced Obsidian URI</code> which allows for this. But I have been considering adding the feature to QuickAdd itself, which would allow me more control - so I can add more features and such.</p>
<h4>Is it not possible to edit the name of a QuickAdd Entry after creation?</h4>
<p>Yes, just click on it.</p>
<h4>How do Templater and QuickAdd compare? How are both best used? What cannot be done with QuickAdd?</h4>
<p>Templater works differently from QuickAdd, although many features overlap.</p>
<p>Since QuickAdd supports Templater templates, you can use (almost) all Templater features through QuickAdd.</p>
<p>How both are best used depends on your use case. I can't really answer what you <em>can't</em> do - it depends on what you actually _do_ want to do.</p>
<h4>Is QuickAdd the right name for the scope of what it can do?</h4>
<p>Maybe. I considered calling it Engine when I started creating it, which would probably be a more fitting name.</p>
<h4>What is the vision for the future of QuickAdd?</h4>
<p>I just want it to be the best plugin it can be. I have a massive backlog of things I want to do (for all my plugins), but unfortunately, I have more ideas than I have time.</p>
<h4>What is the capability of using quickadd to create slides for a presentation?</h4>
<p>I don't really understand this question, unfortunately. Sorry!</p>
<h4>Are there any templates that ship with the add-in as examples of more complex functionality or features? A brilliant feature of OneNote is that you can create a Meeting Minutes page that has the subject, time, attendees, agenda as a starting point. Could this be achieved with QuickAdd?</h4>
<p>Sure, you could create a template for that. It would be similar to the one I showed for Kanban cards.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>How To Take Smart Book Notes in Obsidian</title>
<link>https://bagerbach.com/blog/how-to-take-smart-book-notes-in-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-to-take-smart-book-notes-in-obsidian/</guid>
<description>How I semi-automatically import literature notes to my Obsidian vault and my workflow for processing them into atomic, evergreen notes.</description>
<pubDate>Sat, 10 Jul 2021 17:50:48 GMT</pubDate>
<content:encoded><![CDATA[<p>Reading has been one of my favorite things to do for many years. Because I've been reading for such a long time, I have read <em>a lot</em> of books by now. Around 154, according to my <a href="https://www.goodreads.com/user/show/58374591-christian-houmann">Goodreads profile</a>.</p>
<p>In the beginning, I really struggled processing the amount of information in each book. I didn't take notes, I forgot a lot of ideas, and my <em>return on investment (ROI)</em> wasn't very high.</p>
<p>I started writing down a few things here and there, but mostly, I was highlighting things that stood out. This helped the problem a bit.</p>
<p>Later, I introduced <a href="https://youtu.be/BwSQe7n4xyY">a system for taking book notes</a>, which brought much needed order to the chaos. While this gave me something to stick to (a structured approach to taking notes), it was still too much 'file and forget'.</p>
<p>What comes next completely revolutionized how I process information and massively increase my ROI.</p>
<p>I happened to read <a href="https://bagerbach.com/books/how-to-take-smart-notes/">How to Take Smart Notes</a>, which allowed me to further refined my process. I saw a massive increase in what I gained from each book.</p>
<p>However, that was not the biggest gain of all. Since I began separating the ideas from the books into atomic notes, I could relate these to other ideas that I've previously stumbled upon. This is where I began seeing <em>compound interest</em> in my knowledge vault.</p>
<p><em>The total value of my knowledge vault increased exponentially with each new note because it could be linked to existing notes.</em></p>
<h2>My workflow for taking smart book notes</h2>
<p>First; <a href="https://bagerbach.com/blog/why-i-started-using-obsidian/">why Obsidian?</a> Because it enables two powerful aspects of the workflow; linking and automation.</p>
<p>The workflow starts on my iPad, which is where I read the books, make highlights, and write notes to those highlights.</p>
<p>I have one rule for highlighting: <em>always explain why</em>. It ensures that I don't shallowly process what I'm reading, and that I know <em>why</em> I highlighted it. This is especially important later, when I'm processing my notes.</p>
<p>Once I've read the book and finished taking notes, I'll send them from my iPad to a service called <a href="https://readwise.io/i/christian91">Readwise</a>. I do this because it allows me to easily format my notes and extract data about them easily.</p>
<p>After doing so, I try to wait a few days before processing the notes. I will have had time to ruminate on the ideas, which helps me to separate the important from the filler; the signal from the noise.</p>
<p>Now, the question is, how do I get the notes into my Obsidian vault? For this, I have made a <a href="https://quickadd.obsidian.guide/docs/Examples/Template_AutomaticBookNotesFromReadwise">QuickAdd script</a> which automatically fetches the notes from Readwise and formats them to my liking.</p>
<p>The process is quite automatic - all I have to do is to select the 'Add book notes' option.</p>
<img src="https://bagerbach.com/uploads/obsidian_kxdnvt48gc.png" alt="QuickAdd menu">
<p>Then I select the book that I want to import my highlights for. It always shows the most recently added book at the top.</p>
<img src="https://bagerbach.com/uploads/obsidian_v4ipmpspwp.png" alt="QuickAdd Readwise script menu">
<p>Once I've clicked there, I'll have this new page in my vault.</p>
<img src="https://bagerbach.com/uploads/obsidian_qbxzoutiuk.png" alt="A new note file">
<p>The author has automatically been pulled in from Readwise, along with the highlights and notes. For the title of the note, I try to separate my literature notes from my notes by denoting them with some symbol. As can be seen in the image, my symbol for books is the <code>{</code>.</p>
<p>My notes will be imported as seen in the below image, where highlights are in block quotes and my notes for each highlight is below it.</p>
<img src="https://bagerbach.com/uploads/obsidian_wo9xpgb9zi.png" alt="Highlights imported in a new note file">
<p>And now, the actual processing starts.</p>
<p>Generally, I'll delete the highlight (but not my note) unless it's a quote that I particularly like. If that's the case, I'll save it in my collection of quotes. My reason for deleting highlights is to ensure that my notes are in my own words. This is an absolutely crucial point. If you cannot give a clear and concise summary of the ideas you are presented with, <em>you do not understand them</em>.</p>
<p>I go through a few steps to do the actual processing.</p>
<ol>
<li>Summarize content; remove highlights unless they contribute to the whole.</li>
<li>Process further, synthesizing these into atomic notes, or link to existing notes.</li>
<li>Create meaningful links between notes.</li>
</ol>
<p>Step one is the initial cut. It's where I trim the unnecessary and make clear what is important. I try to make the ideas as concise and as simple as I can.</p>
<p>Step two and three is where Obsidian's magic comes to play, and where much value is created. It's where the compounding process starts for the new notes.</p>
<p>Once the notes have been processed, I write down my thoughts on the book and give it a rating, to complete the review. Then I'll fill out a summary of key points, and write down actions that I'll take based on what I've learned.<br>
I generally add a task to follow through on these new actions that I'll undertake. If it's a one-off task, I'll just complete it when I can. If not, I'll add it to my systems such that I may adopt it as a habit under trial.</p>
<p>The finished* note will look something like this, which is what I post on my <a href="https://bagerbach.com/books">website</a>.</p>
<img src="https://bagerbach.com/uploads/obsidian_1hxgz5u6be.png" alt="The processed note">
<p>If you're interested in the book I've used as an example here, you can read my notes on <a href="https://bagerbach.com/books/the-richest-man-in-babylon/">The Richest Man in Babylon here</a>. And if you want to hear from me when I release new content, please do sign up for my newsletter below.</p>
<p>* A note is never finished. You can come back at any time and update it if your understanding of its contents change.</p>]]></content:encoded>
<category>Books &amp; Reading</category>
</item>
<item>
<title>Why I Started Using Obsidian</title>
<link>https://bagerbach.com/blog/why-i-started-using-obsidian/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/why-i-started-using-obsidian/</guid>
<description>I recently started using Obsidian for knowledge management. Here’s why I love it.</description>
<pubDate>Sun, 28 Feb 2021 15:53:49 GMT</pubDate>
<content:encoded><![CDATA[<p>For the longest time, I've been using Notion for all my work. Note-taking, personal systems, task management, calendar - you name it.</p>
<p>But some things began bothering me about Notion. Recently it's been slow and less reliable than it used to be. This is to expected with online services that receive a massive influx in users. But it started bothering me.</p>
<p>What if I couldn't access my data?</p>
<p>That's when I started looking at other tools. It's not that I wanted to leave Notion - even partly - but I wanted to see what other tools were available.</p>
<p>First, I looked at Roam Research. I fell in love with the backlinking feature, which allows you to connect your notes. But Roam is expensive. And even worse, there's been a lot of buzz about data loss recently. That's a no-go.</p>
<p>I went back to Notion. I tried to emulate backlinks using Notion's backlinking feature. It worked fine, but it has a lot of limitations.</p>
<p>Then I stumbled upon Obsidian. At first, I thought it was a watered-down version of Roam and that I wouldn't even consider using it. I was wrong. Very, very wrong.</p>
<h2>What is Obsidian?</h2>
<img src="https://bagerbach.com/uploads/obsidian_fxeafzmzqk.png" alt="">
<p>In short, Obsidian is a free tool that allows you to work with local markdown files.</p>
<p>It sounds pretty simplistic. And it is. But at the same time, it's super powerful. Instead of listing everything you can do with Obsidian, I'll list what I especially like about it - and why I like it.</p>
<h3>Your data belongs to you.</h3>
<p>Every file you have in Obsidian is a file on your computer. You are in complete control over them. That also means you are in control of keeping them safe on your computer. What if you spill coffee and your computer stops working? Well, that's on you.</p>
<p>Luckily, you can sync your vault using your favorite cloud-sync provider. I'm pretty paranoid about data loss. That's why I use both Obsidian Sync, which is their native sync along with a Git integration. This is a pretty redundant solution, but it works, and I can sleep at night because of it.</p>
<h3>Customizability: Plugins and Themes</h3>
<p>Obsidian has a lot of options for customizing your workspace. You can customize the look using themes. You can customize everything else using plugins. And if it doesn't exist, you can make it yourself.</p>
<p>This is one of my favorite features. The community can build things that they find useful and share them.</p>
<p>For example, you can embed your Todoist tasks on any of your notes. You can make a plugin automatically extract flashcards from Obsidian to Anki.</p>
<p>All this makes automation for lots of things possible. It's exciting to see what will be developed. Heck, I've even played around with it myself.</p>
<h3>Backlinks</h3>
<p>Of course, this is one of the most powerful features of Obsidian. You can make connections between your notes.</p>
<p>Explaining why this is great deserves its own post. But I can't leave you hanging, so I'll try to make it brief. By abandoning the top-down structure that most note-taking apps compel you to, you're free to connect ideas and concepts. The idea that you can take a concept from one school of thought and apply it in another is very powerful.</p>
<hr>
<p>These are some of my most favorite features so far. Obsidian encourages a whole new way of thinking about notes. I'm not completely there yet, but I already feel lots of benefits.</p>
<p>It feels like Obsidian encourages you to think more on your own. To think freely. Connect ideas. That's my favorite feature of all. Because that's what any note-taking program should: facilitate thinking.</p>
<p>With other note-taking programs I've used, I felt as if I were collecting hordes of information and resources. I didn't get to process them. It ended up feeling as if my notes were not my own. And that's because they weren't. They were collections of other people's thoughts.</p>
<p>Looking at them, I didn't feel any joy. I didn't feel that I had accomplished anything. But looking at my graph, I get that feeling. I feel like I've earned every single dot and the lines between them.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>Summary of ‘Study Less Study Smart’ by Marty Lobdell</title>
<link>https://bagerbach.com/blog/summary-of-study-less-study-smart-by-marty-lobdell/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/summary-of-study-less-study-smart-by-marty-lobdell/</guid>
<description>A quick summary of the talk given by Marty Lobdell on how to study smart.</description>
<pubDate>Thu, 29 Oct 2020 10:23:03 GMT</pubDate>
<content:encoded><![CDATA[<p>This talk gives some of the most effective tips on learning that I've come across. That's why I'm sharing my summary of it here.</p>
<p>The talk is just about an hour long. This summary condenses the main points into a short read.</p>
<p>It's a great idea to just start slowly. Adopt one or two of the techniques today.</p>
<p>Once you start seeing a difference in your learning, come back and pile more on.</p>
<p>It's about creating better studying habits. Habits are not formed overnight. So stick with it.</p>
<h2>Studying and breaks</h2>
<p>We can study for about 25-30 minutes before we stop being focused.</p>
<p>Studying more doesn't always help. It can worsen your performance.</p>
<p>Lobdell tells a story about a girl that would sit for six hours to study.</p>
<p>After 30 minutes, she started tuning out. She sat there for six hours, but only 30 minutes were spent studying.</p>
<p>As psychology dictates, our behavior is reinforced through feedback. If you hate doing something, you'll do it less.</p>
<p>After 30 minutes, the girl started being miserable. That's five and a half hours of misery, which reinforces in her that 'studying = misery'. Now, she's even less likely to study effectively.</p>
<p><strong>How do we avoid making the same mistake?</strong></p>
<p>Once you start feeling unfocused or like it's not working as well anymore, take a break.</p>
<p>Take a 5-minute break, study again for 30 minutes. Keep repeating this.</p>
<p>Make sure that those 5 minutes are like a treat. That's how you recharge your batteries for studying.</p>
<p>If you plan your day right, you can have those little study breaks.</p>
<h2>Reward system</h2>
<p>You want to reward yourself for your studies. You've done something good. Make sure that your brain knows this, too.</p>
<p>When you've finished a longer study session, make sure that you have a big treat planned.</p>
<h2>Dedicated studying area</h2>
<p>The place where you study is incredibly important. Why? Because of environmental cues.</p>
<p>I've already written about this in my article <a href="https://bagerbach.com/blog/why-having-a-good-study-area-is-important-and-how-to-get-one/">Why Having A Good Study Area Is Important And How To Get One</a>. Make sure you read that to learn more.</p>
<p>In short, don't study in a place where the primary function isn't studying.</p>
<p>But if you can't do that, you can get a study lamp. You turn it on only after you've completed two steps:</p>
<ol>
<li>Remove all distractions</li>
<li>Have everything ready</li>
</ol>
<p>Only use it for studying. Nothing else.</p>
<p>Don't study in your bed.</p>
<p>When you start losing your edge and you need to take a break, turn off the lamp, get up, and take your break. When you return to study, turn it on again.</p>
<h2>Rote memorization vs. Active learning</h2>
<p>The more active in your studying you are, the more you learn.</p>
<p>Reading something over and over is not a good way to learn. This is rote memorization. If it works for you, great. Don't change. But for most people, it's not the most effective way to study.</p>
<p>First, figure out if you are learning a concept or a fact.</p>
<p>A fact would be "Sigmund Freud is the father of psychoanalysis". But understanding what psychoanalysis is, is a concept.</p>
<p>It's better to know the concepts than the facts. If you know the concepts, they'll stick with you for life, and you can easily look up the facts.</p>
<p>You can't remember everything in a lecture. Make sure that you take notes.</p>
<h3>Learning concepts</h3>
<p>If you can put the concept in your own words, you know it. If you can't, you don't.</p>
<p>Piecing together the facts into concepts; understanding their meaning: that way you'll remember much better.</p>
<p>Knowledge is like a tree. If you understand the basics (have a solid fundamental understanding). Those are the trunk and the big branches. When you start adding the leaves/details, they'll stick. If you don't have that solid base, there's nothing for them to hang on to. They'll drop. You won't remember them.</p>
<h3>Learning facts</h3>
<p>You use mnemonics. They're quicker than rote memorization.</p>
<p>There are different types of mnemonics.</p>
<ul>
<li>Acronyms
<ul>
<li>Grouping letters to remember facts.</li>
<li>If two things are similar but not the same, you get a lot of inference in your learning. When you try to memorize it, you won't be sure which one it is. If you know which one it is, this isn't tricky. But this can be fixed using acronyms.</li>
<li>Example: Afferent and efferent are similar. So Marty has an acronym for them that he teaches his students. Sensory are afferent, motor are efferent. So the acronym is 'SAME'.</li>
</ul>
</li>
<li>Coin Saying
<ul>
<li>Sayings like "righty tighty, lefty loosey."</li>
</ul>
</li>
<li>Interactive Images
<ul>
<li>This one is Marty's favorite.</li>
<li>Example: You might want to remember how many calories are in carbohydrates. The first letters of carbohydrate spell CAR. How many wheels on a car? 4.</li>
<li>The weirder the better.</li>
</ul>
</li>
</ul>
<h2>Study groups</h2>
<p>Study groups increase learning by a lot.</p>
<h2>Highlighting books (Recognition vs. Recollection)</h2>
<p>If you highlight everything, you've highlighted nothing.</p>
<p>So instead, people highlight 'the most important thing'. They start reading for 'the most important thing' and try to highlight it.</p>
<p>Then they go back over the chapter, read the first thing they highlighted, and say "Oh! I remember that!"</p>
<p>No, they <strong>recognize</strong> it.</p>
<p>We have an amazing visual recognition threshold. We will recognize something a long time after we first encounter it. But it's recognition, not recollection.</p>
<p>When we recognize something, thinking that we remember it, we won't study it. So what didn't we study? The most important part of the chapter!</p>
<h3>How do you know if you know something?</h3>
<p>If you can look at something, go to the next thing, read it, and then stop and go back to the one before, look up in the sky and in your own words say what that was about, then you know it.</p>
<p>Why go on to the next one? To get the first one out of your working memory. It lasts for about 30 seconds. When we go back, it's out of our working memory. If we manage to say, in our own words, what the thing was about, we can be sure we know it. We didn't just repeat something from our working memory.</p>
<h2>Sleeping</h2>
<p>We undo good studying by not sleeping enough.</p>
<p>While we sleep, we transfer knowledge from long term memory to a permanent one. This is called consolidation.</p>
<p>This process depends on rapid eye movement sleep (REM sleep).</p>
<p>REM sleep happens about every hour and a half once you fall asleep.</p>
<p>If you aren't getting a good night of sleep, which is about 8 hours, what you've studied doesn't become permanent.</p>
<p>Sleep better and you'll do better.</p>
<h2>Taking notes</h2>
<p>Right after a class, sit down and expand on everything you've written down. Give it depth and flesh it out.</p>
<p>Don't wait until you go home. Even just a few hours later, you won't remember what you took notes on, or why you took those notes.</p>
<p>If you can't expand on something (maybe you didn't understand it), ask your teacher or a friend.</p>
<h2>Active Recitation</h2>
<p>Teaching someone else is the best way to learn.</p>
<p>You can speak it out loud, or you can write it down, in your own words.</p>
<p>"80% reciting, 20% reading" is a good rule of thumb.</p>
<h2>Study from books (SQ3R = Survey, Question, Read, Recite, Review)</h2>
<p>You'll learn much more if you use SQ3R.</p>
<h3>Survey &#x26; Question</h3>
<p>Go through the entire chapter. Look at pictures. Look at what stands out to you.</p>
<p>As you survey, ask questions. "What is x?", "What does this mean?"</p>
<p>It only takes a couple of minutes. Doing this will make you start looking for answers.</p>
<p>If you intend to find something, you'll find it.</p>
<h3>Reading &#x26; Reciting</h3>
<p>Reading should be followed by recitation. This has already been touched upon in "Active Recitation".</p>
<h3>Review</h3>
<p>Before a test, you should only have to review what you've learned.</p>
<p>The concepts and knowledge you're learning should be in your brain. It should be learned already.</p>
<p>You're just reviewing to make sure that you haven't lost or confused anything.</p>
<p>Most students don't start studying until just before an exam. They clump all the studying together, don't take breaks, pull all-nighters. What happens? They do poorly, even after all that work.</p>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>How to Track Workouts in Notion</title>
<link>https://bagerbach.com/blog/how-to-track-workouts-in-notion/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-to-track-workouts-in-notion/</guid>
<description>How I’m tracking my workouts in Notion. Works for runs, walks, bodyweight fitness, and weight lifting. Automatically calculates metrics like pace and one-rep max.</description>
<pubDate>Mon, 24 Aug 2020 05:28:44 GMT</pubDate>
<content:encoded><![CDATA[<p>I track religiously using Notion. Recently, I've been working on creating a workout tracker in Notion that I'd actually want to use.</p>
<p>I do cardio, bodyweight exercises, and weight lifting. So it has to be able to track all three. And I don't want to use multiple databases.</p>
<p>Of course, we can't forget important metrics like duration, pace, total weight lifted, total repetitions, and 1 rep maxes.</p>
<p>I keep track of those metrics to really know how I'm progressing. But they're not necessary. Maybe you just want to write down what you did, and that's good too. It works for both things.</p>
<h4>Get the template here</h4>
<p>Alright. Without further ado: <a href="https://www.notion.so/bagerbachdemo/Workout-Tracker-1ae47d840408449ea924d4239c887d7d">click here to get the template</a>.</p>
<h2>How to use it</h2>
<h3>Cardio Tracking</h3>
<p>Let's start with cardio. Both running and walking use the same properties, but I like to divide them using a type filter. But that's all done for you in the template.</p>
<img src="https://bagerbach.com/uploads/4811drcvtc.png" alt="My running stats. Yeah I&#x27;m not the fastest runner. I&#x27;m more of a weight lifter.">
<p>Every time you want to track anything, you add it using the template. There are three templates: walks, runs, and workouts.</p>
<p>For walks and runs, there's only a few fields that you have to fill in.</p>
<ul>
<li>Date</li>
<li>Distance</li>
<li>Hours</li>
<li>Minutes</li>
<li>Seconds</li>
</ul>
<p>And the rest is filled out for you automatically, even if you didn't use a template. The templates are just to automatically select the appropriate icon and type.</p>
<p>Time and pace is automatically calculated and shown in a readable format. I'll try not to get too technical, but this was achieved using a few formulas.</p>
<h4>Calculating and formatting pace</h4>
<p>First, I wanted to grab the pace as a decimal number. This was pretty simple.</p>
<pre><code>prop("Minutes") ? ((prop("Hours") * 60 + prop("Minutes") + prop("Seconds") / 60) / prop("Distance (km)")) : 0
</code></pre>
<p>We're just checking if the "Minutes" property is filled out - if not, we'll set the propety to 0.</p>
<p>But formatting in Notion formulas is a bit harder. Especially if you want to handle edge cases.</p>
<pre><code>((prop("decPace") / 60 >= 1) ? ((prop("decPace") / 60 &#x3C;= 9) ? ("0" + format(floor(prop("decPace") / 60))) : format(floor(prop("decPace") / 60))) : "00") + ":" + ((floor(prop("decPace")) % 60 &#x3C;= 9) ? ("0" + format(floor(prop("decPace")))) : format(floor(prop("decPace")))) + ":" + ((round((prop("decPace") - floor(prop("decPace"))) * 60) &#x3C;= 9) ? ("0" + format(round((prop("decPace") - floor(prop("decPace"))) * 60))) : format(round((prop("decPace") - floor(prop("decPace"))) * 60)))
</code></pre>
<p>Remember, if you change any property names, you have to change them in the formulas as well.</p>
<h4>Formatting time</h4>
<p>Time was also just the issue of formatting and handling edge cases. Again, I think I did pretty well, even though it says <code>::</code> when there isn't any input yet.</p>
<pre><code>((prop("Hours") &#x3C;= 9) ? ("0" + format(prop("Hours"))) : format(prop("Hours"))) + ":" + ((prop("Minutes") &#x3C;= 9) ? ("0" + format(prop("Minutes"))) : format(prop("Minutes"))) + ":" + ((prop("Seconds") &#x3C;= 9) ? ("0" + format(prop("Seconds"))) : format(prop("Seconds")))
</code></pre>
<h3>Workout Tracking</h3>
<p>Tracking our workouts depends on using another database to enter the exercises we do during our workout. But I've done my best to minimize steps and automate as much as possible.</p>
<p>When you create a new workout using the template (<strong>which is a must for tracking workouts like this</strong>), you're greeted with this screen.</p>
<img src="https://bagerbach.com/uploads/notion_gsnw72rd8a.png" alt="Workout Template screen">
<p><strong>Here's the important part.</strong></p>
<p>For exercises, you have to enter these properties</p>
<ul>
<li>Date</li>
<li>Type</li>
</ul>
<p>And that's it.</p>
<p>Ok, not really. There's a bit more.</p>
<p>See that linked database at the bottom? That's where we'll enter which exercises we've done.</p>
<p>For each exercise you do, you:</p>
<ul>
<li>Write what it's called</li>
<li>How many sets you did</li>
<li>Repetitions you performed in each set</li>
<li>Weight lifted (if any)</li>
</ul>
<p>Then it automatically calculates your one-rep max for that entry.</p>
<p>It also automatically calculates the total amount of weight you lifted and repetitions performed for the whole workout. And displays which exercises you did.</p>
<p>Smart, right?</p>
<p>Maybe. There is a limitation: you can't use different weights for the same exercise.</p>
<p>It's quite popular to do have a rep/set scheme like 5/3/1, which would require lift different amounts of weight for different amounts of reps.</p>
<p>But, we can overcome this. <em>Just add another entry for the same exercise.</em> Like this.</p>
<img src="https://bagerbach.com/uploads/notion_21bi1ban2x.png" alt="Squats entered in the workout exercises database.">
<h3>How the Workout Tracker works</h3>
<p>Here's a quick explanation.</p>
<p>The exercises we put in the 'Workout Exercises DB' actually get filtered. We're only showing the exercises that have a relation to that workout session. This is a feature that Notion has implemented, which allows us automatically relate a new entry to a database using templates.</p>
<p>See? Our workout entry was automatically added to the filter. We're only showing exercises done for that workout session.</p>
<img src="https://bagerbach.com/uploads/notion_k3ssyl8rfx.png" alt="">
<p>This is also why it's so crucial that you use the template to track new workouts. It wouldn't work automatically if you didn't.</p>
<h2>Conclusion</h2>
<p>I hope that this helps you. I've tried to make it as accessible and easy to use as I could.</p>
<p>If you have any suggestions or questions, feel free to get in touch. I'm always glad to hear from you.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>How I Made a Personal Blog with Vue &amp; Gridsome</title>
<link>https://bagerbach.com/blog/how-i-made-a-personal-blog-with-vue-gridsome/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-made-a-personal-blog-with-vue-gridsome/</guid>
<description>The story of how I built a personal blog from scratch, and how you can too.</description>
<pubDate>Tue, 14 Jul 2020 22:10:22 GMT</pubDate>
<content:encoded><![CDATA[<p><strong>Update 2024:</strong> I've updated my site a lot since writing this. I switched to using <a href="https://nextjs.org/">Next.js</a> a few years ago, and this year I've moved to <a href="https://astro.build/">Astro</a>.</p>
<p>I always used a CMS like WordPress or Ghost to host my sites.</p>
<p>But I decided that I should make something 'from scratch' for a change. So I set out to build a personal blog, and I had to create all the features that I wanted "manually".</p>
<p>This is how I did it.</p>
<h2>Getting started</h2>
<p>The first part was to decide which tools I'd use for the job.</p>
<p>I was already familiar with Vue from a <a href="https://github.com/chhoumann/HueControl">previous project</a>.</p>
<p>But I had heard great things about React as well...</p>
<p>Then I tried React. Didn't take long for me to return to Vue.</p>
<p>It's just so enjoyable to use. So that's what I settled on.</p>
<p>I wanted it to be fast, and I had heard of this thing called <em>static sites</em>.</p>
<p>They were supposedly really fast. And of course, I wanted my site to be fast.</p>
<h4>Why are static sites fast?</h4>
<p>The content that you serve to the user is already generated.</p>
<p>That means no waiting for database queries. No waiting for template engines. The content is just sent straight to the user.</p>
<p>There are many other benefits. I'll talk about one of them a bit later; <strong>they're easy to host.</strong></p>
<h3>Installing everything</h3>
<p>I had most of the prerequisites before starting this project because of previous projects. But let's take it from scratch.</p>
<p>You'll need <a href="https://nodejs.org/en/">Node.js</a>. Just install it from their site. I'm currently using version 12.14.1.</p>
<p>Alright. Now, <a href="https://gridsome.org/docs/">Gridsome</a>:</p>
<pre><code class="language-bash">npm install --global @gridsome/cli
</code></pre>
<p>At this point, I created a new repository with the <code>gridsome create PROJECTNAME</code> command.</p>
<p>I recommend that you just read the docs to get started. That's what I did.</p>
<h4>Which Node Modules to use?</h4>
<p>I went through <strong>a lot</strong> of issues and steps to figure out which Node modules to install. I'll spare you the story and instead just tell you what I use, and why.</p>
<ul>
<li><a href="https://github.com/FortAwesome/vue-fontawesome#introduction">FontAwesome icons</a>: I use these as social icons.</li>
<li><code>@gridsome/plugin-google-analytics</code> (<a href="https://gridsome.org/plugins/@gridsome/plugin-google-analytics">link</a>): Google Analytics because I want to track how many people come and go.</li>
<li><code>@gridsome/plugin-sitemap</code> (<a href="https://gridsome.org/plugins/@gridsome/plugin-sitemap">link</a>): For SEO. You make a sitemap and use the Google Search Console to let Google know which sites are on your page. It makes it easier for Google to 'index you', which makes it easier for people to find you. Win-win.</li>
<li><code>@gridsome/remark-prismjs</code> (<a href="https://gridsome.org/plugins/@gridsome/remark-prismjs">link</a>): For code highlighting.</li>
<li><code>@gridsome/source-filesystem</code> (<a href="https://gridsome.org/plugins/@gridsome/source-filesystem">link</a>): My posts are written in markdown. This lets the website 'detect' those post files and feeds it into GraphQL. Using that, I don't have to make a new page from scratch each time I want to post something. There are other sources that you can use, but I found this one to be the simplest to get started with.</li>
<li><code>@gridsome/transformer-remark</code> (<a href="https://gridsome.org/plugins/@gridsome/transformer-remark">link</a>): This is there so the markdown can be translated into HTML.</li>
<li><code>gridsome-plugin-netlify-cms</code> (<del><a href="https://gridsome.org/plugins/gridsome-plugin-netlify-cms">link</a></del> [now <a href="https://decapcms.org/">DecapCMS</a>): I use this to make it easier to manage all the markdown files for my posts.
<ul>
<li><code>netlify-cms</code> (<a href="https://decapcms.org/">now Decap CMS</a>): See above</li>
</ul>
</li>
<li><code>gridsome-remark-katex</code> (<a href="https://gridsome.org/plugins/gridsome-remark-katex">link</a>): I wanted to be able to write math equations on my website that aren't ugly: <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>e</mi><mo>=</mo><mi>m</mi><msup><mi>c</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">e=mc^2</annotation></semantics></math> compared to e = mc^2.
<ul>
<li><code>remark-html</code> (<a href="https://github.com/remarkjs/remark-html">link</a>): See above</li>
<li><code>remark-html-katex</code> (<a href="https://www.npmjs.com/package/remark-html-katex">link</a>): See above</li>
<li><code>remark-math</code> (<a href="https://github.com/remarkjs/remark-math">link</a>): See above</li>
</ul>
</li>
<li><code>gridsome-plugin-tailwindcss</code> (<a href="https://gridsome.org/plugins/gridsome-plugin-tailwindcss">link</a>): I styled my website with Tailwind. It's a bit more 'manual' compared to frameworks like Bootstrap. But I like it.</li>
</ul>
<p>And for good measure, here is my <code>package.json</code> dependencies:</p>
<pre><code class="language-json">"dependencies": {
    "@fortawesome/fontawesome-svg-core": "1.2.28",
    "@fortawesome/free-brands-svg-icons": "5.13.0",
    "@fortawesome/vue-fontawesome": "0.1.10",
    "@gridsome/plugin-google-analytics": "0.1.1",
    "@gridsome/plugin-sitemap": "0.3.0",
    "@gridsome/remark-prismjs": "0.3.0",
    "@gridsome/source-filesystem": "0.6.2",
    "@gridsome/transformer-remark": "0.6.0",
    "gridsome": "^0.7.0",
    "gridsome-plugin-netlify-cms": "1.0.9",
    "gridsome-remark-katex": "0.1.1",
    "netlify-cms": "2.10.50",
    "remark-html": "11.0.2",
    "remark-html-katex": "2.0.1",
    "remark-math": "2.0.1"
  },
  "devDependencies": {
    "gridsome-plugin-tailwindcss": "2.2.48"
  }
</code></pre>
<h2>Setting up a blog</h2>
<h3>Setting up the source &#x26; transformer</h3>
<p>It took a few steps to get this right.</p>
<p>When you want to share articles, you have to tell the <code>@gridsome/source-filesystem</code> (<a href="https://gridsome.org/plugins/@gridsome/source-filesystem">link</a>) plugin where to look.</p>
<p>Just follow the instructions to set it up on the plugin page. I'll wait.</p>
<p>Now we'll want to set some settings for remark. You can copy mine. Just put this into your <code>module.exports</code> in the <code>gridsome.config.js</code> file.</p>
<pre><code class="language-jsx">transformers: {
    remark: {
      externalLinksTarget: '_blank', // External links are opened in a new tab
      plugins: [
        '@gridsome/remark-prismjs', // Code highlighing
        'remark-math', // Math
        'remark-html-katex', // Math
        'remark-html', // Math
      ]
    }
  },
</code></pre>
<p>These plugins also need themes. I ended up using the xonokai theme for code highlighting. Browse Prism themes <a href="https://github.com/PrismJS/prism-themes">here</a>.</p>
<p>This is what I put in my <code>main.js</code> file:</p>
<pre><code class="language-jsx">head.link.push({
  rel: "stylesheet",
  href: "https://cdn.jsdelivr.net/npm/prism-themes@1.4.0/themes/prism-xonokai.css",
});
head.link.push({
  rel: "stylesheet",
  href: "https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css",
});
</code></pre>
<h3>Posting posts</h3>
<p>This is the part where we tell the Netlify CMS where to look for posts. And where to put posts.</p>
<p>I followed the instructions on the <code>gridsome-plugin-netlify-cms</code> (<a href="https://gridsome.org/plugins/gridsome-plugin-netlify-cms">link</a>) page. And then the <a href="https://gridsome.org/docs/guide-netlify-cms/">Netlify CMS guide</a> in the Gridsome Docs.</p>
<p>Now that we can use the CMS, it's time to post something.</p>
<p>But wait...</p>
<p>Where will we display our posts?</p>
<h3>Displaying posts</h3>
<p>There are two things to do.</p>
<p>Currently, the <code>source-filesystem</code> settings in <code>gridsome.config.js</code> look something like this:</p>
<pre><code class="language-jsx">{
      use: '@gridsome/source-filesystem',
      options: {
        typeName: 'Post',
        path: './content/posts/**/*.md',
      }
    },
</code></pre>
<p>We also set a template for the Post type. It looks something like this:</p>
<pre><code class="language-jsx">templates: {
    Post: '/blog/:title',
  }
</code></pre>
<p>So the first thing we should do is set up a template.</p>
<p>This is done by making a <code>.vue</code> file in the <code>templates</code> folder. The <a href="https://gridsome.org/docs/templates/">Gridsome Docs</a> has a great introduction to making these.</p>
<p>This is what I ended up with. Just ignore the <code>NewsletterForm</code> component. That came later.</p>
<pre><code class="language-jsx">&#x3C;template>
  &#x3C;Layout>
    &#x3C;div class="post-title">
      &#x3C;g-link to="/blog" class="font-medium">&#x26;larr; Go Back&#x3C;/g-link>
      &#x3C;h1 class="text-4xl">{{$page.post.title}}&#x3C;/h1>
      &#x3C;p class="post-date">{{$page.post.date}} | {{$page.post.timeToRead}} min read&#x3C;/p>
    &#x3C;/div>
    &#x3C;hr class="m-4">
    &#x3C;div class="post-content">
      &#x3C;p v-html="$page.post.content" />
    &#x3C;/div>
  &#x3C;NewsletterForm class="mt-16" />
  &#x3C;/Layout>
&#x3C;/template>

&#x3C;page-query>
query Post ($path: String!) {
  post: post (path: $path) {
    id
    title
    content
    date (format: "D MMMM YYYY")
    timeToRead
  }
}
&#x3C;/page-query>

&#x3C;script>
import NewsletterForm from '../components/NewsletterForm';

export default {
  metaInfo() {
    return {
      title: this.$page.post.title
    };
  },
  components: {
    NewsletterForm,
  },
};
&#x3C;/script>
</code></pre>
<p>And now, where do we display those posts? I made a <code>Blog.vue</code> page in the <code>pages</code> folder. It looks like this:</p>
<pre><code class="language-jsx">&#x3C;template>
  &#x3C;Layout>
    &#x3C;div class="post-list">
      &#x3C;div v-for="(edge, index) in $page.allPost.edges" :key="index" class="p-4 hover:shadow-xs rounded-lg">
        &#x3C;g-link :to="edge.node.path" class="noUnderlineOnHover" style="text-decoration:none;">
          &#x3C;h1 class="text-3xl font-normal" v-html="edge.node.title" />
          &#x3C;p class="text-lg font-normal noUnderlineOnHover">{{edge.node.date}} | {{edge.node.timeToRead}} min read&#x3C;/p>
          &#x3C;hr class="mt-2 mb-2 line ml-16 mr-16" />
          &#x3C;p class="text-lg font-normal italic noUnderlineOnHover" v-html="edge.node.description" />
        &#x3C;/g-link>
      &#x3C;/div>
    &#x3C;/div>
  &#x3C;/Layout>
&#x3C;/template>
&#x3C;script>
export default {
  metaInfo: {
    title: "Blog"
  }
};
&#x3C;/script>
&#x3C;style>
  h1 {
    @apply leading-none;
    @apply mb-2;
    @apply mt-2;
  }
  .noUnderlineOnHover:hover {
    text-decoration: none;
  }
&#x3C;/style>

&#x3C;page-query>
query {
  allPost(order: DESC) {
    totalCount
    edges {
      node {
        id
        title
        timeToRead
        description
        date (format: "D MMMM YYYY")
        path
      }
    }
  }

}
&#x3C;/page-query>
</code></pre>
<p>Especially pay attention to the <code>v-for</code> loop. This is I display all of my posts on the page. Way better than making a <code>div</code> for each post, right?</p>
<h3>Making it pretty</h3>
<p>At this point, I set up a simple homepage in the <code>index.vue</code> file. I created a basic navbar and linked to the blog page.</p>
<p>Creating the navbar took a lot of googling. I wanted it to be just right. Mobile friendly and all. That's all I can encourage you to do, as well.</p>
<p>I made the navbar a component. I put that into my <code>Default.vue</code> layout. Now it's on every page, not just the homepage.</p>
<p>The basic layout of my site is very simple.</p>
<ol>
<li>Navbar</li>
<li>Content</li>
<li>Footer (which currently doesn't have anything in it)</li>
</ol>
<p>You can get pretty far with styling your site to your preferences. That's what I did.</p>
<h2>Going live</h2>
<p>Man. I wanted to do everything. I wanted to host my site in a Docker container connected to other apps using Apache. Make it scalable. Set up the server myself using Digital Ocean.</p>
<p>But it's a static site. That's way overkill. At least for me.</p>
<p>So I ended up going for <a href="https://www.netlify.com/">Netlify</a>. Which is free.</p>
<p>You simply host your site in a repository, and then Netlify will automatically deploy it every time you post something or make an update.</p>
<p>Gridsome has a guide for <a href="https://gridsome.org/docs/deploy-to-netlify/">Deploying to Netlify</a>. And Netlify will help you along when you sign up.</p>
<h2>Conclusion</h2>
<p>This is all there really is to it. This is how I built the foundation for my <a href="https://bagerbach.com/">personal website</a>. I learned a lot from building it.</p>
<p>I've even built upon it since then; added components and new post types. Played with GraphQL. And so much more.</p>
<p>I encourage you to learn on your own. Be curious. If you have an idea, try to implement it.</p>
<p>It's great to build something that you can be proud of. Something you use.</p>
<p>So if you haven't already, go ahead and get started. Build your own website.</p>]]></content:encoded>
<category>Programming</category>
</item>
<item>
<title>How I am Creating a Productivity System</title>
<link>https://bagerbach.com/blog/how-i-am-creating-a-productivity-system/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-i-am-creating-a-productivity-system/</guid>
<description>I wanted a system that would allow me to easily connect the dots between what I do on a daily basis, and what I aim for in the long-term.</description>
<pubDate>Thu, 14 May 2020 00:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>For a while now, I've been considering revising how I approach my workflow.</p>
<p>I wanted a system that would allow me to easily connect the dots between what I do on a daily basis, and what I aim for in the long-term.</p>
<p>What did I do? I started from the bottom.</p>
<h3>The Pillars</h3>
<p>The very first thing to consider was which areas I worked on regularly. This is something August Bradley calls Pillars - that which supports your life. Things like Health &#x26; Fitness, Learning, and so on.</p>
<p>Now, these pillars are being supported by various things. Habits &#x26; Routines being one of them. These are basically the things that let your pillars stand.</p>
<p>For example, my Health &#x26; Fitness pillar is being supported by daily exercise, set bedtimes, a healthy diet, and regular fasting.</p>
<p>Now, these pillars need to support something. That's next.</p>
<h3>Values &#x26; Goals</h3>
<p>The first thing was to define my values - or, at least some of them. Fitness, Knowledge, and Excellence in Academics, Entrepreneurship, and Wealth Building came to mind.</p>
<p>These values are connected to some goals. If we're speaking knowledge, that might be to read 52 books in 2020. The sky's the limit. But the important thing is to always have a goal connected to your values. If you value it, why not do something about it?</p>
<p>Reading a specific amount of books is pretty easy to approach. But what about something like getting an A on all exams this semester? That'll require a bit more than just reading a book - although that is one of the steps.</p>
<p>Because some goals are tough to 'just complete', we define smaller projects.</p>
<h2>Projects &#x26; Tasks</h2>
<p>Continuing the example of getting good grades on my exams, a good project would be to prepare for each of those exams. In this project, I'd define the exact tasks which would help me achieve the goal. And that's really all a project is - a collection of tasks required to achieve a smaller 'sub-goal' of some larger goal.</p>
<p>In almost all cases, you'd have at least one project connected to your goal(s). I have only one case where it doesn't make much sense - and that's my goal of reading 52 books in 2020. Then each book read would have to be a project filled with tasks of reading each chapter, but I'd rather it just be one book = one task.</p>
<h3>The Daily Habits</h3>
<p>Remember those Habits &#x26; Routines I wrote about earlier? Those are being tracked. I track these in my Daily Journal. I also track something like my weight, performance, and dietary 'adherence'. This is very important, because it helps me realize if something isn't going as planned. Weight not going the way it's supposed to? Not getting enough done? Look at the data.</p>
<p>Everything gets reviewed. But that's for another post.</p>
<p>Note: A lot of this system is heavily inspired by August Bradley. I am still in the process of completing it, so things are due to change. But that's one of the most important features of such a system - it improves with you.</p>
<p>Thank you for reading.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>Why Having A Good Study Area Is Important And How To Get One</title>
<link>https://bagerbach.com/blog/why-having-a-good-study-area-is-important-and-how-to-get-one/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/why-having-a-good-study-area-is-important-and-how-to-get-one/</guid>
<description>Having a good area for studying is incredibly important if you want to succeed in school. It helps you concentrate and study more efficiently. It is also one of the most neglected factors.</description>
<pubDate>Fri, 31 Jan 2020 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>Having a good area for studying is incredibly important if you want to succeed in school. It helps you concentrate and study more efficiently.It is also one of the most neglected factors.</p>
<p>So here's a very quick, two-step guide to improving your study area.</p>
<h2>Where to Study?</h2>
<p>As Marty Lobdell said in his '<em><a href="https://www.youtube.com/watch?v=IlU-zDU6aQ0&#x26;t=1193s">Study Less Study Smart</a></em>' lecture, the place wherein you study is incredibly important. <strong>Why?</strong> <em>Because of environmental cues.</em></p>
<p>Say you're sitting in the living room, where the TV usually is. Obviously, the TV would distract you, and that's a no go.</p>
<p>The same goes for sitting in your kitchen (or at the dining table): the environmental cue here is food. When you sit there, you'll start thinking about food. Then all of a sudden you're sitting with a sandwich... And then another one... Again, that's no good.</p>
<p>And one of the most popular areas to study in is one's bedroom. Well, that's where you sleep, so the bed will start calling you as you are studying.</p>
<p><strong>So what do you do about it?</strong></p>
<p>In the lecture, Lobdell suggests getting a study lamp. It was found that students would do better if they had a lamp that they'd turn on <strong>only while studying</strong>.</p>
<p>So get yourself a lamp (you probably already have one) and only turn it on after you have completed these two steps.</p>
<h2>The Two Steps</h2>
<h3>Step 1 - Remove All Distractions</h3>
<ul>
<li>Your phone</li>
<li>Video games</li>
<li>Non-relevant tabs</li>
<li>Other people (unless you are studying in a group, and everyone is focused on studying <em>only</em>)</li>
</ul>
<h3>Step 2 - Have everything You Need to Study Ready</h3>
<ul>
<li>Textbooks</li>
<li>A notebook/paper and writing tools</li>
<li>A computer (only if necessary)</li>
<li>(<em>Optional</em>) Noise-canceling headphones; they are great for removing distractions / noise.</li>
<li>(<em>Optional</em>) Coffee, water, or tea.</li>
<li>(Optional) If you like studying with music playing it can help. But only if it's without lyrics. And perhaps don't play loud or agitated music.</li>
</ul>
<h3>The Third (bonus) Step - Get Started</h3>
<p>Now, all you have to do is to get started studying. If you feel that you have trouble getting started, you can try the <a href="https://bagerbach.com/blog/getting-more-done-in-less-time-using-the-pomodoro-technique/">Pomodoro Technique</a>. The Technique is incredibly helpful when feeling unmotivated because all you have to do is to focus for a short 25 minutes.</p>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>How To Quickly Boost Your Productivity With Time Tracking</title>
<link>https://bagerbach.com/blog/how-to-quickly-boost-your-productivity-with-time-tracking/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-to-quickly-boost-your-productivity-with-time-tracking/</guid>
<description>Time tracking increases your productivity, keeps you motivated and focused, and it helps you beat procrastination. Learn how here.</description>
<pubDate>Wed, 22 Jan 2020 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<blockquote>
<p>"If you love life, don't waste time, for time is what life is made up of."</p>
<p><cite>Bruce Lee</cite></p>
</blockquote>
<p>Most people can relate: you're lying in bed at night, thinking to yourself; "<em>I did not get enough done today... Now I'm behind for tomorrow...</em>", and then you can't sleep because you're thinking about everything that you have to do tomorrow. <a href="https://www.youtube.com/watch?v=jGLW6o6zQfg">Fuck</a>. Right?</p>
<p>Do you feel that you are not getting enough done in a day?</p>
<p>Do you procrastinate or keep getting distracted while trying to focus?</p>
<p>Are you struggling to keep yourself accountable?</p>
<p><strong>Time Tracking might be the solution.</strong></p>
<p>I hinted at them above, but let's take a closer look at...</p>
<h2>The Benefits of Time Tracking</h2>
<blockquote>
<p>"Time equals life; therefore, waste your time and waste of your life, or master your time and master your life."</p>
<p><cite>Alan Lakein</cite></p>
</blockquote>
<ul>
<li><strong>Increases your productivity</strong> so that you get more done</li>
<li>Helps you <strong>beat procrastination</strong></li>
<li>Lets you measure and <strong>track your progress</strong>, which</li>
<li><strong>Keeps you motivated</strong> to do more</li>
</ul>
<p>Time tracking increases your productivity. Why? It keeps you accountable and focused on your task.</p>
<p>You'll be able to procrastinate less because you'll be more aware of what you do. Likewise, you'll know how long you spend things that don't contribute to your success.</p>
<p>By tracking your time you are tracking how much time you invest in your goals and projects. That keeps you very motivated to keep going, and even find more productive things to do in a day.</p>
<p><strong>But how do you actually achieve those benefits?</strong> Let me teach you how. Now, you'll learn...</p>
<h2>How to Track Your Time</h2>
<blockquote>
<p>"Don't be fooled by the calendar. There are only as many days in the year as you can make use of. One man gets only a week's value out of a year while another man gets a full year's value out of a week."</p>
<p><cite>Charles Richards</cite></p>
</blockquote>
<p>How do you squeeze so much value out of a week? Well, you're going to need a helper. That'll make the process so much easier, and you won't need to waste time to save time after setting it up.</p>
<p>I personally use <em><a href="https://toggl.com/">Toggl</a></em>. There are, of course, <a href="https://blog.hubstaff.com/best-time-tracking-apps/">alternatives</a>, but a lot of them you have to pay for. So I recommend Toggl, which is <em>free</em> (unless you want premium, but that's not necessary).</p>
<p>Go ahead and <a href="https://toggl.com/">register for an account</a> and download the <a href="https://toggl.com/toggl-desktop/">desktop</a> or <a href="https://toggl.com/mobile-time-tracking-app/">mobile app</a> (or just use the web client, that's on you).</p>
<p>On to the next step!</p>
<h4>Setting Up Your Projects</h4>
<blockquote>
<p>"The key is not in spending time, but in investing it."</p>
<p><cite>Stephen R. Covey</cite></p>
</blockquote>
<p>At this point, we need to get your projects set up. They're what groups your time-entries, so we need to make them general but specific to an area that you spend time on.</p>
<p>I think of my projects more like categories, as you can see here.</p>
<img src="https://bagerbach.com/uploads/screengrab_toggl.png" alt="I like reading, as you can see">
<p>You can copy mine (because they are very general) or make your own. But...</p>
<p><strong>The most important thing is that your projects align with your goals.</strong></p>
<p>So ask yourself: <em>What are my goals? How do I take my goals and give them a good name, so that I can track them most efficiently?</em></p>
<p>For example, you might have a goal of reading a specific amount of books in a year. So then you'd want a project like the one I have, "<em>Books &#x26; Articles</em>".</p>
<p>Now that you're all set up with projects that align with your goals and the areas that you want to be productive in, you need to start...</p>
<h4>Tracking Your Time</h4>
<blockquote>
<p>"Time is what we want most, but what we use worst."</p>
<p><cite>William Penn</cite></p>
</blockquote>
<p>Simple. Just put in the name of your task, select the relevant project, and then press start.</p>
<p><strong>Stop!</strong> Before doing that, you are going to need some principles. Some guidelines that define how you track your time.</p>
<p><strong>Ask yourself:</strong> <em>What will I track? What won't I track? How will I deal with interruptions: do I stop the timer? Do I track breaks, even though I'm going right back to the task after?</em></p>
<p>So here are a few examples. <strong>My principle:</strong> <em>I track everything related to my goals that I can do while being I'm completely focused, and nothing else</em>. So...</p>
<ul>
<li>I don't track time spent on school-work while I'm actually at school.</li>
<li>I don't track interruptions: if someone interrupts my focus/flow, I'll stop the timer.</li>
<li>I don't track breaks (even if it's just a few minutes to get water).</li>
</ul>
<p>Alright. Now you can begin tracking your time. And since you're doing that, here are a few...</p>
<h2>Three Time Tracking Tips</h2>
<ul>
<li>Stay motivated by setting weekly or daily goals for time spent. This can be in total or on a specific project. Track it by using your dashboard to see what you spend your time on.</li>
<li>Keep track of your time <em>not</em> tracked. For example, Toggl has a great calendar feature on the mobile app that lets you see your tracked time that day. Here you can see the gaps between your tracked time: are they longer than expected? Are there too many?</li>
<li>Use Idle Detection (in preferences) to stop the timer, in case you forget to.</li>
</ul>
<p><strong>Remember that productivity techniques should help you become more productive.</strong> Not force you to spend more time on perfecting them.</p>
<p>Make tracking your time quick and easy by setting everything up in the beginning. Then you simply have to press start.</p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>Stoic Wisdom: 11 Principles For A Better Life</title>
<link>https://bagerbach.com/blog/stoic-wisdom-11-principles-for-a-better-life/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/stoic-wisdom-11-principles-for-a-better-life/</guid>
<description>These letters have had a profound impact on philosophy and can guide all of us lead a better life.</description>
<pubDate>Thu, 16 Jan 2020 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<h2>Who was Seneca?</h2>
<p>Lucius Annaeus Seneca was a Roman Stoic philosopher. He was an advisor to emperor Nero who later ordered his suicide because of the alleged involvement in the Pisonian conspiracy to assassinate emperor Nero. It seems that he, however, was innocent. Nevertheless, the influence of Seneca is undeniable, which is, in no small part, due to the letters he wrote.</p>
<p>In total Seneca wrote 124 letters, which were all sent to his friend Lucilius, advising him on how to become a better Stoic.</p>
<p>These letters have had a profound impact on philosophy and can guide all of us lead a better life; so let us explore the Letters in search of such wisdom.</p>
<p>As with most works, it is a product of its time, and it is defined by the underlying philosophy. There will be messages that you gain more from than others, which is to be expected. You may agree and you may disagree, but nevertheless, these messages are food for thought. I will try to expand upon these quotes in my own way, attempting to provide additional value and perhaps put them in a more modern context so that it is easier to take action upon them. Thereafter I will give you some practical advice on how you can use these Stoic principles in action.</p>
<h2>1. A Well-Ordered Mind</h2>
<blockquote>
<p>Nothing, to my way of thinking, is a better proof of a well ordered mind than a man’s ability to stop just where he is and pass some time in his own company.</p>
</blockquote>
<p>The normal state of the mind is chaos. Without any object in the external world that demands attention, people cannot focus for more than a few minutes at a time.</p>
<p>So, as Mihaly Csikszentmihalyi suggests in <strong><a href="https://amzn.to/2TwXVPv">Flow</a></strong>, daydreaming can help avoid chaos in our consciousness. Generally, the best way to avoid chaos in consciousness is through habits that give us control over our mental processes, rather than external sources of stimulation, such as the endless browsing of social media that many of us resort to.</p>
<blockquote>
<p>“Great thinkers have always been motivated by the enjoyment of thinking rather than by the material rewards that could be gained by it”</p>
<p><cite>Mihaly Csikszentmihalyi</cite></p>
</blockquote>
<h2>2. Be Grateful For What You Have</h2>
<blockquote>
<p>It is not the man who has too little who is poor, but the one who hankers after more.</p>
</blockquote>
<p>It is not our lack of possessions that make us poor; it is our attitude which does. If you always compare your own possessions to those of another, you will always feel as if you lack something. This is, however, not true.</p>
<p>Do not be jealous of someone who is famous, has a specific profession, or in another way has something you do not. They paid the price: they spent time, or wealth, on something which you did not. Why then are you jealous? You simply didn’t make the same exchange they did.</p>
<blockquote>
<p>“Do not dream of possession of what you do not have: rather reflect on the greatest blessings in what you do have, and on their account remind yourself how much they would have been missed if they were not there. But at the same time you must be careful not to let your pleasure in them habituate you to dependency, to avoid distress if they are sometimes absent.”</p>
<p><cite>Marcus Aurelius</cite></p>
</blockquote>
<blockquote>
<p>‘Any man,’ he says, ‘who does not think that what he has is more than ample, is an unhappy man, even if he is the master of the whole world.</p>
</blockquote>
<hr>
<blockquote>
<p>What difference does it make, after all, what your position in life is if you dislike it yourself?</p>
</blockquote>
<h2>3. Choosing Books</h2>
<blockquote>
<p>You should be extending your stay among writers whose genius is unquestionable, deriving constant nourishment from them if you wish to gain anything from your reading that will find a lasting place in your mind.</p>
</blockquote>
<p>Read books by ‘unquestionably genius’ people slowly and digest what they say: that way you’ll get more out of your reading. When you read books quickly, only to move on to the next, you only get the big-picture idea of what the book details. Instead, you should study those books that have had a profound impact on you, or find the greatest books written.</p>
<p>I started 2020 by setting a goal of reading 100 books. I realized, however, that this wasn’t in alignment with my goals. I would barely be able to retain any of the knowledge, which was what I was seeking, not the achievement of reading 100 books in one year. <em>What does it matter that one reads many books if they barely remember the name of the book they read?</em></p>
<p>This is why I will re-read <strong><a href="https://bagerbach.com/blog/the-best-books-ive-read-in-2019/">The Best Books I’ve Read in 2019</a></strong>. And as Epictetus says…</p>
<blockquote>
<p>“Don’t just say you have read books. Show that through them you have learned to think better, to be a more discriminating and reflective person. Books are the training weights of the mind. They are very helpful, but it would be a bad mistake to suppose that one has made progress simply by having internalized their contents.”</p>
</blockquote>
<h2>4. Choosing Your Mentors and Friends</h2>
<blockquote>
<p>‘We need to set our affections on some good man and keep him constantly before our eyes, so that we may live as if he were watching us and do everything as if he saw what we were doing.’ [Epicurus] (…) There is a need, in my view, for someone as a standard against which our characters can measure themselves. Without a ruler to do it against you won’t make the crooked straight.</p>
</blockquote>
<p>To choose a mentor for yourself, even if you never meet them, will help you become better. I do this myself. I have mentors in many aspects of my life, all of them which I wish to improve upon.</p>
<p>You do not need to choose someone who you have the chance of meeting, nor someone who you pay to mentor you. While paying for the service increases your own accountability, you can just as well pick someone who you will never meet. If you choose to do so, you still have access to their writings, and can learn from that all the same. Then, when you need their advice, you simply ask yourself “<em>What would (my mentor) do?</em>”.</p>
<p>We live in an age where information is freely accessible, so it is wise to take advantage of this. You can choose who you want to influence you; be they dead or alive, you choose who you spend your time with. Read their books, watch their videos, or listen to interviews with them.</p>
<blockquote>
<p>Associate with people who are likely to improve you. Welcome those whom you are capable of improving. The process is a mutual one: men learn as they teach.</p>
</blockquote>
<h2>5. Learn From the Past and Prepare for the Future</h2>
<blockquote>
<p>Wild animals run from the dangers they actually see, and once they have escaped them worry no more. We however are tormented alike by what is past and what is to come. A number of our blessings do us harm, for memory brings back the agony of fear while foresight brings it on prematurely. No one confines his unhappiness to the present.</p>
</blockquote>
<p>And as Seneca also said, “<em>We are more often frightened than hurt; and we suffer more from imagination than from reality</em>” and “<em>What’s the good of dragging up sufferings which are over, of being unhappy now just because you were then?</em>”.</p>
<p>We should learn from the past, not suffer from it. Likewise, we should prepare for the future, not dread what it might bring.</p>
<blockquote>
<p>What really ruins our characters is the fact that none of us looks back over his life. We think about what we are going to do, and only rarely of that, and fail to think about what we have done, yet any plans for the future are dependent on the past.</p>
</blockquote>
<p>A powerful way to review our life and reflect upon the past in a productive way is to journal. I personally keep a daily journal where I write about what I have done that day, as well as reflect upon my week every Sunday. This not only keeps me accountable and responsible for my own growth, but it also helps me learn from my mistakes and identify my faults and what is holding me back.</p>
<h2>6. Obtaining Knowledge</h2>
<blockquote>
<p>To remember is to safeguard something entrusted to your memory, whereas to know, by contrast, is actually to make each item your own, and not to be dependent on some original and be constantly looking to see what the master said.</p>
</blockquote>
<p>There is the saying that “<em><a href="https://bagerbach.com/blog/how-to-learn-new-subjects-easily-the-feynman-technique/">if you can’t explain it simply, you don’t understand it well enough</a></em>”. There is a very large gap in knowledge between being able to recite knowledge simply because you know how it is formulated from where you read it, and being able to explain it because you know and understand it yourself.</p>
<p>To be truly knowledgeable is to know and understand what it is that you are saying, and being able to explain it to others so that they can understand it as well.</p>
<h2>7. The Golden Rule</h2>
<blockquote>
<p>Treat your inferiors in the way in which you would like to be treated by your own superiors.</p>
</blockquote>
<h2>8. Living in Fear</h2>
<blockquote>
<p>You want to live — but do you know how to live? You are scared of dying — and, tell me, is the kind of life you lead really any different from being dead?</p>
</blockquote>
<p>As Marcus Aurelius said, <em>“It is not death that a man should fear, but he should fear never beginning to live</em>”. Living in fear of going past your comfort zone is not living life to the fullest. You have to push your limits in order to grow. This may be scary, but it is necessary. The thing is, we get to choose our pain. We either get to experience the pain of discipline or experience the pain of regret. Your choice.</p>
<blockquote>
<p>“Imagine you are now dead, or had not lived before this moment. Now view the rest of your life as a bonus, and live it as nature directs.”</p>
<p><cite>Marcus Aurelius</cite></p>
</blockquote>
<blockquote>
<p>My own advice to you — and not only in the present illness but in your whole life as well — is this: refuse to let the thought of death bother you: nothing is grim when we have escaped that fear.</p>
</blockquote>
<h2>9. Overcoming Obstacles and Achieving Your Goals</h2>
<blockquote>
<p>Why, Lucilius, I ask you why should any real man be afraid of hardship, or any human being be afraid of death? I constantly meet people who think that what they themselves can’t do can’t be done, who say that to bear up under the things we Stoics speak of is beyond the capacity of human nature. How much more highly I rate these people’s abilities than they do themselves! I say that they are just as capable as others of doing these things, but won’t. In any event what person actually trying them has found them prove beyond him? Who hasn’t noticed how much easier they are in the actual doing?It’s not because they’re hard that we lose confidence; they’re hard because we lack the confidence.</p>
</blockquote>
<p>As Marcus Aurelius said; “<em>Do not imagine that, if something is hard for you to achieve, it is therefore impossible for any man: but rather consider anything that is humanly possible and appropriate to lie within your own reach too</em>”.</p>
<p>When people look at a large goal or task, they usually see the mountain that they have to climb. But that’s not a very good way of looking at it. Instead, one should think of simply taking the first step. You do everything the same way that you do anything; you start, you take one step at a time, and you just keep going until you’ve finished.</p>
<p><a href="https://www.youtube.com/watch?v=FNJjY4s-WAM">Will Smith told a story</a> in which he, along with his brother, was told to build a wall. He was only 12 years old at the time, so it seemed impossible. At one point, he even said to himself “<em>There will be nothing but a giant hole here <strong>forever</strong>!</em>”. But then, one and a half years later, they finished the wall: they laid the final brick. Their father stood back and said “<em>don’t y’all ever tell me that you can’t do something</em>” and walked into the shop.</p>
<p>The lesson that Will learned was that you don’t set out to build the biggest, baddest wall ever built. You set out to lay a brick as perfectly as a brick has ever been laid before. You do that every single day, and soon you’ll have a wall. It’s difficult to take that first step when you see how huge the task is, but remember… It’s always just one brick.</p>
<h2>10. Being Self-Made</h2>
<blockquote>
<p>So continually remind yourself, Lucilius, of the many things you have achieved. When you look at all the people out in front of you, think of all the ones behind you.</p>
</blockquote>
<p>Arnold Schwarzenegger gets asked quite often what, as a self-made man, his blueprint for success is. The answer always shocks the person asking, because he says “<em>I am not a self-made man. I got a lot of help</em>”.</p>
<p>Arnold, as he says, stood on the shoulders of giants. Joe Weider brought him to America and took him under his wing. Lucille Ball took a chance and let him guest star in a special, which he says is his first big break in Hollywood.</p>
<p>So he says; “<em>So how can I ever claim to be self-made? To accept that mantle discounts every person and every piece of advice that got me here. And it gives the wrong impression — that you can do it alone. I couldn’t. And odds are, you can’t either.</em>”</p>
<p>So when you are grateful for how far you have gotten, remember to be grateful also to every piece of advice you have ever received. Every man or woman who has ever helped you. For every inspired moment you have had because of another. Because without those, you wouldn’t be where you are today.</p>
<h2>11. Overcoming Anger</h2>
<blockquote>
<p>What’s the use of overcoming opponent after opponent in the wrestling or boxing rings if you can be overcome by your temper?</p>
</blockquote>
<p>Marcus Aurelius said, “<em>How much more grievous are the consequences of anger than the causes of it</em>”. We must realize that anger doesn’t solve the problem at hand. If you break something, does yelling at it fix it?</p>
<p>Mastery of one’s own emotions leads to a better life. Anger only makes a problem worse than it is.</p>
<blockquote>
<p>“One can have no smaller or greater mastery than mastery of oneself.”</p>
<p><cite>Leonardo da Vinci</cite></p>
</blockquote>
<h2>Putting The Letters into Practice</h2>
<p>To achieve <strong>A Well-Ordered Mind,</strong> try to meditate for a few minutes every day. You do not have to do it for more than a few minutes. All you have to do is to find a nice spot to sit and be aware of your breath.</p>
<p>Being <strong>Grateful For What You Have</strong> is very important. Therefore you can practice gratitude every day: “<em>reflect upon the greatest blessings in what you do have</em>”. Write down what you are grateful for today. If you find that you dislike your position in life, you should do your best to change it.</p>
<p>When you are <strong>Choosing Books</strong>, instead of picking a new book each time, go back to the books that you think have had a profound impact on your life. If you haven’t found such a book yet, you could start by reading the <strong><a href="https://bagerbach.com/blog/the-best-books-ive-read-in-2019/">Best Books I’ve Read in 2019</a></strong>. These are the books that have changed my life greatly. You shouldn’t rush through a book when you are reading it. Do your best to learn from it, and show that you have learned something by putting it into action.</p>
<p><strong>Choosing Your Mentors</strong> can be done by picking someone you idolize in an area of your life that you’d like to improve upon. When you have chosen one, try to learn from them by reading their books, articles, or by watching their interviews. When <strong>Choosing Your Friends</strong>, try to seek out people who will improve you. This is a two-way street, so help those who you can help as well.</p>
<p><strong>Learning From The Past and Preparing For The Future</strong> can be done by keeping a daily journal in which you reflect upon your day. Herein you shouldn’t try to victimize yourself, but instead, ask what you could have done better that day.</p>
<p>When you want to learn something new, to <strong>Obtain Knowledge</strong>, you should try the <a href="https://bagerbach.com/blog/how-to-learn-new-subjects-easily-the-feynman-technique/">Feynman Technique</a>. It is a powerful technique that helps one understand subjects.</p>
<p><strong>The Golden Rule</strong> is very practical in nature; <em>Treat your inferiors in the way in which you would like to be treated by your own superiors</em>.</p>
<p>To avoid <strong>Living in Fear</strong>, you should try to do something every day that is a bit outside your comfort zone. Try to improve yourself every day; to be a little better than you were yesterday. You don’t have to do much, because something (no matter how small) is better than nothing. Read one page in a book, do one pushup, go for a small walk. Try to put some distance between you and living a hedonistic life. You’ll be much happier for it.</p>
<p>To <strong>Overcome Obstacles and Achieve Your Goals</strong> you should divide your goals into smaller tasks. Instead of thinking about the large goal that might take a long time to achieve, think of what you can do on a weekly or even daily basis. What can you do today that will help you achieve this goal? You don’t have to achieve it by tomorrow; these things take time. But if you have a goal, you should at least put in the effort to achieve it. So divide your goals into small daily tasks.</p>
<p>When you think that you are a <strong>Self-Made</strong> person, remind yourself (in your journal, for example) that you are not a self-made person. You have had help. So try to write that you are grateful for the people in your life. Be specific; <em>what advice or help have you received this week?</em></p>
<p>To <strong>Overcome Anger</strong>, the next time something unfortunate happens and you feel the need to become angry, try to instead think of how you can solve the problem; remember that anger won’t fix the issue.</p>
<h2>Summary</h2>
<ol>
<li>Meditate.</li>
<li>Practice gratitude.</li>
<li>Reread life-changing books.</li>
<li>Pick a mentor and learn from them.</li>
<li>Keep a daily journal.</li>
<li>Use the Feynman Technique to learn.</li>
<li>Practice the Golden Rule.</li>
<li>Divide and conquer your goals.</li>
<li>Remember that you are not self-made.</li>
<li>Anger will not fix the issue, so instead think of a solution.</li>
</ol>]]></content:encoded>
<category>Life</category>
</item>
<item>
<title>The Best Books I’ve Read in 2019</title>
<link>https://bagerbach.com/blog/the-best-books-ive-read-in-2019/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/the-best-books-ive-read-in-2019/</guid>
<description>I reached my goal of reading 54 books last year. What a journey it was. I’ve read some great books last year. So let’s talk about them.</description>
<pubDate>Sat, 11 Jan 2020 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>I reached my goal of reading 54 books last year. What a journey it was. I’ve read some great books last year, and some not so great books as well.</p>
<p>I decided to pick out the books that I learned the most from so that you can do the same. These books are the ones that I would gladly reread in 2020; which I most likely will.</p>
<p>I can, without a doubt, say that had I not read these books, I wouldn’t be where I am, nor would I be on the trajectory that I am. Reading these books changed my life. And I hope that they do the same for you.</p>
<h2>Atomic Habits - James Clear</h2>
<blockquote>
<p><em>“You do not rise to the level of your goals. You fall to the level of your systems.”</em></p>
<p><cite>James Clear</cite></p>
</blockquote>
<p>This is, without a doubt, the best book on habits that I’ve read. I looked forward to reading this book every day.</p>
<p>The approach that Clear has to build and break habits has truly laid the groundwork for me building the systems that I have in life.</p>
<p>This book teaches you about more than habits alone. It teaches you how to achieve your goals.</p>
<p>It is THE BOOK to read if you want to change something in your life.</p>
<p><strong><a href="https://amzn.to/2VG6S6T">Get the book here.</a></strong></p>
<h2>Can’t Hurt Me - David Goggins</h2>
<p>I read this book in a day. I didn’t skip a single part. It’s that good.</p>
<p>The work ethic and discipline that this man has, the life that he has lived, and the message that he sends is truly life-changing-ly inspiring.</p>
<p><strong><a href="https://amzn.to/2J7cAgy">Get the book here.</a></strong></p>
<h2>Outliers - Malcolm Gladwell</h2>
<p>What exactly makes high-achievers different from the rest?</p>
<p>This is the exact question that this book searches to answer. The answer will very likely surprise you.</p>
<blockquote>
<p><em>“Practice isn’t the thing you do once you’re good. It’s the thing you do that makes you good.”</em></p>
<p><cite>Malcolm Gladwell</cite></p>
</blockquote>
<p>So often we believe that the successful people and the high-performance people come out of nowhere; born that way. This is not true. We do not see the hours that they have put in to get where they are when we see them in their moments of brilliance.</p>
<p><strong><a href="https://amzn.to/2HjPfpB">Get the book here.</a></strong></p>
<h2>Extreme Ownership - Jocko Willink</h2>
<blockquote>
<p><em>“Extreme Ownership. Leaders must own everything in their world. There is no one else to blame.”</em></p>
<p><cite>Jocko Willink</cite></p>
</blockquote>
<p>Extreme Ownership inspired me to write my <a href="https://bagerbach.com/blog/one-man-army-leading-yourself-to-success">One Man Army</a> article. The notion of taking extreme ownership, owning every part of your life, has become one of my core principles after having read the book.</p>
<p>The layout of the chapters makes the principles easy to understand and learn from, and also makes the book an enjoyment to read from cover to cover.</p>
<p>Taking ownership frees you. Because when you realize that you are in control, that you are responsible, you realize that it is also up to you to change your situation. You realize that you CAN change your situation.</p>
<p><strong><a href="https://amzn.to/2XI78UL">Get the book here.</a></strong></p>
<h2>Meditations - Marcus Aurelius</h2>
<blockquote>
<p><em>“If you are distressed by anything external, the pain is not due to the thing itself, but to your estimate of it; and this you have the power to revoke at any moment.”</em></p>
<p><cite>Marcus Aurelius</cite></p>
</blockquote>
<p>The Meditations is so good that a book about the great man, Marcus Aurelius himself, made this list as well.</p>
<p>It’s a book to base your life upon, as Ryan Holiday says.</p>
<p>This book served as my ‘proper’ introduction to stoicism, if we are only counting the books written before 200 AD.</p>
<p>Be indifferent to the external event over which you have no control, for there is no reason for you to obsess over them.</p>
<p>Make sure that you get the Gregory Hays translation; it makes all the difference.</p>
<p><strong><a href="https://amzn.to/2Hk4HSy">Get the book here.</a></strong></p>
<h2>How To Think Like A Roman Emperor - Donald Robertson</h2>
<p>My praise for Meditations should take nothing from this book, only add to its merits. There are many great books written about living a stoic life, and this is one of the better ones.</p>
<p>Not only is the book very well told (telling the story of Marcus as he grew up) but it is an incredible introduction to putting the stoic principles to action in your own life. Robertson guides one in applying the methods that Marcus used to overcome adversity and live a stoic life.</p>
<p>If the Meditations is the theory book, then this book is the practical field-guide (and the same goes for <a href="https://amzn.to/2NjBPvZ">The Obstacle is the Way</a>, another amazing book).</p>
<p><strong><a href="https://amzn.to/2Tjxwob">Get the book here.</a></strong></p>
<h2>Shoe Dog - Phil Knight</h2>
<p>Both incredibly intriguing and well told. What a joy it was to read this wonderful book by Phil Knight. I’ve always been an Adidas-type-of-guy, but after reading it, I almost wanted to go out and buy some Nikes just because I now knew what was behind it all. Like Warren Buffett says, Phil Knight is a gifted storyteller.</p>
<p><strong><a href="https://amzn.to/2Zo4R0O">Get the book here.</a></strong></p>
<h2>Total Recall - Arnold Schwarzenegger</h2>
<p>Arnold’s work ethic and drive is out of this world. It’s probably the greatest immigrant story ever to have taken place; one of the greatest rise-to-greatness stories as well.</p>
<p>I must admit that my interest lies in the first half of the book: Arnold’s youth and early career. Everything before he became a politician. That’s simply because it’s what I can relate to most of all.</p>
<p>You cannot avoid being inspired and learning from Arnold’s approach to life. I use Arnold’s rules, as well as his ten principles, very often to guide myself in life.</p>
<p><strong><a href="https://amzn.to/2KvKAUF">Get the book here.</a></strong></p>
<h2>Mindset - Carol S. Dweck</h2>
<blockquote>
<p><em>“We like to think of our champions and idols as superheroes who were born different from us. We don’t like to think of them as relatively ordinary people who made themselves extraordinary.”</em></p>
<p><cite>Carol S. Dweck</cite></p>
</blockquote>
<p>I had very low expectations for this book. I did not think that it would be any good. I’m not even sure why, but I thought that it would be like any run of the mill self-help book that doesn’t tell you anything useful.</p>
<p>I was <em>very</em> positively surprised.</p>
<p><strong><a href="https://amzn.to/2tPGXkI">Get the book here.</a></strong></p>
<p>Now, having discussed books, I see it fitting to end this post with the following quote.</p>
<blockquote>
<p><em>“Don’t just say you have read books. Show that through them you have learned to think better, to be a more discriminating and reflective person. Books are the training weights of the mind. <strong>They are very helpful, but it would be a bad mistake to suppose that one has made progress simply by having internalized their contents.</strong>”</em></p>
<p><cite>Epictetus</cite></p>
</blockquote>
<p>Books won’t change your life. <em>Turning what you learn from them into actions will</em>.</p>]]></content:encoded>
<category>Books &amp; Reading</category>
</item>
<item>
<title>Getting More Done In Less Time Using The Pomodoro Technique</title>
<link>https://bagerbach.com/blog/getting-more-done-in-less-time-using-the-pomodoro-technique/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/getting-more-done-in-less-time-using-the-pomodoro-technique/</guid>
<description>The Pomodoro Technique is a time management method that helps you boost your productivity and get more done in less time.</description>
<pubDate>Tue, 10 Dec 2019 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<h2>What is it?</h2>
<p><em>The Pomodoro Technique is a time management method that helps you boost your productivity and get more done in less time.</em></p>
<p>The technique was originally developed by Francesco Cirillo while he was a university student looking to get <em>more done in less time</em>.[1]</p>
<p>The story goes that Cirillo felt confused while being a student; he felt that he didn’t know what he was doing and that he had been wasting his time. He found out by comparing himself to his classmates that the many distractions and interruptions and low levels of concentration were the root of his confusion, which led him to make a bet with himself; “<em>Can you study — really study — for 10 minutes?</em>”.</p>
<p>Cirillo then set a timer for those 10 minutes. A fun fact about the Pomodoro Technique is that each interval is called a P<em>omodoro</em>, which is the Italian word for tomato. The name stems from the tomato-shaped kitchen timer that Cirillo used because he needed an objective measuring device to prove that he could study for 10 minutes straight.</p>
<p>He didn’t win the bet at first but eventually succeeded. And this led to the creation and development of the Pomodoro Technique.[2]</p>
<h2>Why does it work?</h2>
<p>I’ve previously written about doing ‘<a href="https://bagerbach.com/blog/the-5-habits-that-will-have-the-biggest-impact-on-your-life/">Zero Distraction Work</a>’, but I’ll say it again here. Distractions are one of the killers of productivity. And as Cirillo states, the Pomodoro Technique helps you “<em>Enhance focus and concentration by cutting down on interruptions</em>” [2], which is one of the key reasons why the method works so well.</p>
<p>I won’t delve deep into why doing Zero Distraction Work is as important as it is, so you can read more about it <a href="https://bagerbach.com/blog/the-5-habits-that-will-have-the-biggest-impact-on-your-life/">here</a> if you want to, <em>including</em> 4 additional habits will that help you <em>succeed in life</em>.</p>
<p>Another reason why the Pomodoro Technique works is because of the timer itself. Timing your work makes you focus on the task at hand; it keeps you accountable. I’ve also <a href="https://bagerbach.com/blog/how-to-quickly-boost-your-productivity-with-time-tracking/">written about tracking time before</a>. I am a huge proponent of tracking your time because “<em>what get’s measured, gets managed</em>”.<em>More often than not, you’re very likely to overestimate the amount of time that you’re actually working, and tracking your time spent being productive is one of the best ways to increase that productive-time.</em></p>
<h2>How does it work?</h2>
<p>The basic process is as follows.[3]</p>
<ol>
<li>Choose a task that you’d like to finish; this is the task to which you will devote your full attention for 25 minutes.</li>
<li>Set the Pomodoro (timer) for 25 minutes.</li>
<li>Work on the task until the Pomodoro (timer) rings.</li>
<li>Take a short break for five minutes.</li>
<li>Every four pomodoros you take a longer break for 15 to 30 minutes.</li>
</ol>
<p><strong>What if I finish my task before the Pomodoro ends?</strong></p>
<p>Say you devote yourself to spending (at least) 25 minutes on the given task. If you finish the task in, say, 3.5 pomodoros, what do you do with the remaining half Pomodoro?</p>
<p>In those cases (and trust me, it happens) you’d devote the remaining time to ‘overwork’ on the task. If your task was to study a specific chapter, and you happen to finish studying with time remaining, you’d spend the remaining time processing the material and trying to understand it even better than you already do.</p>
<p><strong>Can I do more than 25 minutes?</strong></p>
<p>Of course. Pomodoros can last longer than 25 minutes. Some do 30 minutes, others do 45, or even 1 hour. That all depends on the individual using the technique. You can also do smaller intervals, which is incredibly helpful if you are tired or fatigued. Try to experiment and find what works best for you.</p>
<h2>Personal experience</h2>
<p>As I stated above, I track my time a lot. I use the principles behind the Pomodoro Technique for this, meaning that I usually do my work in Pomodoro intervals, however, when I’m in the flow state, I’ll blow past 25-minute timer. Personally, the 25 minutes act more like a minimum amount of time spent, rather than a definite deadline.</p>
<p>I use the <a href="https://bagerbach.com/tools">Toggl time tracker</a> for all of my time tracking needs, and Toggl has an in-built Pomodoro feature which also lets you customize your Pomodoro duration.</p>
<h3>Sources</h3>
<p>[1] Francesco Cirillo | Cirillo Consulting GmbH. (n.d.). Retrieved December 10, 2019, from <a href="https://www.francescocirillo.com/">here.</a></p>
<p>[2] Gobbo, F., &#x26; Vaccari, M. (2007). The Pomodoro Technique. Retrieved from <a href="https://www.pomodorotechnique.com/">the official Pomodoro Technique site</a></p>
<p>[3] The Pomodoro Technique® - proudly developed by Francesco Cirillo | Cirillo Consulting GmbH. (n.d.). Retrieved December 10, 2019, from <a href="https://www.pomodorotechnique.com/">here</a></p>]]></content:encoded>
<category>Productivity</category>
</item>
<item>
<title>How To Learn New Subjects Easily - The Feynman Technique</title>
<link>https://bagerbach.com/blog/how-to-learn-new-subjects-easily-the-feynman-technique/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-to-learn-new-subjects-easily-the-feynman-technique/</guid>
<description>If you can’t explain something to someone who knows little to nothing about it, you don’t understand it yourself.</description>
<pubDate>Tue, 12 Nov 2019 19:09:27 GMT</pubDate>
<content:encoded><![CDATA[<h2>Who is Richard Feynman?</h2>
<p>Richard Phillips “Dick” Feynman was an American theoretical physicist[<a href="https://en.wikipedia.org/wiki/Richard_Feynman">1</a>], recipient of the Nobel Prize in Physics (1965), named one of the 10 greatest physicists of all time[<a href="https://web.archive.org/web/20120321043038/http://media.caltech.edu/press_releases/12019">2</a>], and author of multiple books.</p>
<p>That introduction of Mr. Feynman does certainly not serve his achievements justice, but knowing what he accomplished in physics does not relate to the topic of this article, namely the ‘Feynman Technique’.</p>
<h3>Why is the technique named after Feynman?</h3>
<p>In “<em>Feynman’s Lost Lecture: The Motion of Planets Around the Sun</em>”[<a href="http://calteches.library.caltech.edu/563/2/Goodstein.pdf">3</a>], David Goodstein writes</p>
<blockquote>
<p>Feynman was a truly great teacher. <strong>He prided himself on being able to devise ways to explain the most profound ideas to beginning students</strong>. Once, I said to him, “Dick, explain to me, so that I can understand it, why spin one-half particles Fermi-Dirac statistics”. […] <strong>Feynman said, “I’ll prepare a freshman lecture on it.” But he came back a few days later to say, “I couldn’t reduce it to freshman level. That means we don’t really understand it”.</strong></p>
</blockquote>
<p>And this truly is the essence of the Feynman Technique. If you can’t explain something to someone who knows little to nothing about it, you don’t understand it yourself.</p>
<p>In the biography that James Gleick wrote, “<em>Genius: The Life and Science of Richard Feynman</em>”, something similar is said about how Richard Feynman learned what he didn’t know.<em>“He [Feynman] remained ignorant of the basic literature and unwilling to even read through the papers of Dirac or Bohr. This was now deliberate</em>”. Doing so seems counter-productive, right? So what did he do?</p>
<p>He opened a fresh notebook, and on the title page he wrote <strong>Notebook Of Things I Don’t Know About</strong>. Following that, he</p>
<blockquote>
<p><em>[…] reorganized his knowledge. He worked for weeks at disassembling each branch of physics, oiling the parts, and putting them back together, looking all the while for the raw edges and inconsistencies. He tried to find the essential kernels of each subject.</em></p>
</blockquote>
<p>So to explain, what he did was find the most important parts of each subject, completely reorganizing the way the subject is structured in his mind. <strong>He looked for holes in his understanding and tried to fill them</strong>.</p>
<p>Looking for gaps in your understanding is the exact point of the Feynman Technique. It is not possible to explain something in such simple terms that someone with little to no knowledge of the subject can understand it if you do not understand the subject well enough yourself.</p>
<h2>Using the Feynman Technique</h2>
<h3>The Four Steps</h3>
<ol>
<li><strong>Name it</strong>: write the name of the concept that you’re trying to learn on the top of the page.</li>
<li><strong>Explain it</strong>: Write an explanation of the concept on the page. This explanation should be so simple that someone who has little to no knowledge of the topic can understand it. Using simple analogies works incredibly well here. Focus on what you don’t understand yourself; the gaps in your understanding are crucial to identify.</li>
<li><strong>Review it</strong>: When you’ve identified the gaps in your knowledge, you go back and review what it is that you don’t understand.</li>
<li><strong>Repeat it</strong>: Now you simply repeat steps two and three until your explanation is satisfactory.</li>
</ol>
<h3>Why does it work?</h3>
<p>Like I wrote earlier, it is not possible to explain something in such simple terms that someone with little to no knowledge of the subject can understand it if you do not understand the subject well enough yourself.</p>
<p>When trying to explain a subject in your own words, it’ll be almost impossible if you don’t understand it fully. What usually happens is that you start citing the textbook almost word for word. That means you’ve found a gap in your understanding.</p>
<p>Until you can explain the subject in your own words, you don’t understand it well enough.</p>
<h3>My experience with the Feynman Technique</h3>
<p>I don’t like writing about nor recommending things that I haven’t tested myself. Otherwise, how would I endorse it?</p>
<p>I use the Feynman Technique while studying. It helps me understand the subject at hand. I have found that asking myself questions like “<em>what does this mean?</em>” or “<em>what could be an example of this?</em>” as if someone were asking me those questions works well because it is easy to write notes answering those questions.</p>
<p>To illustrate what I mean, here is an example of a question from my notes on Number Theory:</p>
<img src="https://bagerbach.com/uploads/1_ryzszyn1btm_ngzw1uu7ww.png" alt="Example of the Feynman Technique">
<p><strong>Note:</strong> <em>The example is taken out of context; the whole page is too long to include here. I had described using modulo earlier in the same way. The above is a description of using ‘arithmetic modulo m’.</em></p>
<p>As a last note, I want to say that I wholeheartedly endorse his book “<em><a href="https://amzn.to/2NTvd6q">Surely You’re Joking Mr. Feynman!</a></em>” as well as “<em><a href="https://amzn.to/2WKHk9g">Six Easy Pieces</a></em>“. I have read both of them and I think that they are absolutely fantastic. Richard Feynman is not in any way a boring physicist, he is actually quite the character!</p>]]></content:encoded>
<category>Learning</category>
</item>
<item>
<title>Lessons To Be Learned From The Prince</title>
<link>https://bagerbach.com/blog/lessons-to-be-learned-from-the-prince/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/lessons-to-be-learned-from-the-prince/</guid>
<description>Recently having finished “The Prince” by Niccolò Machiavelli, I believe that there is a lot to learn from the book. While the book discusses methods that I don’t particularly agree with; deception, for example, there is still a lot of great and important points within the pages.</description>
<pubDate>Mon, 11 Nov 2019 23:00:00 GMT</pubDate>
<content:encoded><![CDATA[<p>Recently having finished “<em><a href="https://amzn.to/32y0r97">The Prince</a></em>” by Niccolò Machiavelli, I believe that there is a lot to learn from the book. While the book discusses methods that I don’t particularly agree with; deception, for example, there is still a lot of great and important points within the pages.</p>
<p>You can get your own copy of <em><a href="https://amzn.to/32y0r97">The Prince</a></em> <strong><a href="https://amzn.to/32y0r97">here</a></strong>.</p>
<p>The quotes chosen were the ones that particularly stood out in the book. There has been commented on them briefly, but there was no need to explain every quote fully; therefore some have merely been expanded upon as seen fit.</p>
<h2>On helping yourself</h2>
<p>Machiavelli writes</p>
<blockquote>
<p><em>Therefore, my son, if you wish to please me, and to bring success and honour to yourself, do right and study, <strong>because others will help you if you help yourself</strong>.</em></p>
</blockquote>
<p>This reminds me of a story I once heard. It was about a man whose car had broken down, and he was stranded on the side of the road. He tried for a long time to wave someone in to help him but to no use. Everyone simply drove past him, ignoring him.</p>
<p>However, he then started pushing the car himself. That’s when someone pulled over and helped the man.</p>
<p>Others will only help you if you help yourself.</p>
<p>Don’t go around expecting others to do the work for you. Nobody will pull you up. Pull yourself up, and they will help you. Prove that you want this to happen by helping yourself, and others will aid you as well.</p>
<h2>Turning enemies to friends</h2>
<blockquote>
<p><em>Because men, when they receive good from him of whom they were expecting evil, are bound more closely by their benefactor, thus the people quickly become devoted to him than if he had been raised to the principality by their favors.</em></p>
</blockquote>
<p>To turn your enemies into friends, you should treat them well and generously when they are expecting you to do the opposite.</p>
<h2>On seeking council</h2>
<blockquote>
<p><em>Therefore, a wise prince ought to hold a third course by choosing the wise men in his state, and giving them only the liberty of speaking the truth to him, and then only of those things which he inquires, and of none others; but he ought to question them upon everything, and listen to their opinions, and afterward form his own conclusions.</em></p>
</blockquote>
<p>When receiving advice, always question it. Listen to their opinions, but form your own conclusions.</p>
<p>Just because you receive some advice, it is not necessary for you to act upon it.</p>
<blockquote>
<p><em>A prince, therefore, ought always to take counsel, but only when he wishes and not when others wish; he ought rather to discourage every one from offering advice unless he asks for bit; but, however, he ought to be a constant inquirer, and afterwards a patient listener concerning the things of which he inquired; also, on learning that any one, on any consideration, has not told him the truth, he should let his anger be felt.</em></p>
</blockquote>
<h2>Learning from the greats</h2>
<blockquote>
<p><em>But to exercise the intellect the prince should read histories, and study there the actions of illustrious men, to see how they have borne themselves in war, to examine the causes of their victories and defeat, so as to avoid the latter and imitate the former; and above all do as illustrious man did, who took as an exemplar one who had been praised and famous before him, and whose achievements and deeds he always kept in his mind, as it is said Alexander the Great imitated Achilles, Caesar Alexander, Scipio Cyrus.</em></p>
</blockquote>
<p>I am a huge proponent of reading regularly. Machiavelli recommends doing the same; reading. Read of the great men who achieved great feats. Learn from them.</p>
<p>Learn <a href="https://bagerbach.com/blog/how-you-can-achieve-success-by-reading">how you can achieve success by reading</a>.</p>
<h2>The road less traveled</h2>
<blockquote>
<p><em>Where the willingness is great, the difficulties cannot be great.</em></p>
</blockquote>]]></content:encoded>
<category>Books &amp; Reading</category>
</item>
<item>
<title>One Man Army: Leading Yourself</title>
<link>https://bagerbach.com/blog/one-man-army-leading-yourself-to-success/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/one-man-army-leading-yourself-to-success/</guid>
<description>How do we apply the leadership principles that U.S Navy SEALs use to lead our own lives?</description>
<pubDate>Sun, 17 Mar 2019 19:46:31 GMT</pubDate>
<content:encoded><![CDATA[<p>I just finished the book <a href="https://amzn.to/2FhUFjr">Extreme Ownership</a> by Jocko Willink and Leif Babin.</p>
<p>This article is not a review of the book, but an article about applying the leadership principles from the book in your personal life, by leading a team of one; you.</p>
<p>I will, however, give a few thoughts of the book. I think that Jocko Willink and Leif Babin nailed this book. The layout of the chapters makes the principles easy to understand and learn from, and also makes the book an enjoyment to read from cover to cover.</p>
<p>Now, how do we apply the leadership principles that U.S Navy SEALs use to lead our own lives? We start by:</p>
<h2>Taking Extreme Ownership.</h2>
<p>In life, you must know that in the end, all successes and failures that you have rests on your shoulders. It’s your responsibility to do what is necessary to get what you want out of life.</p>
<p>When you make a mistake, acknowledge it. Admit that you made a mistake. This is what taking ownership of the situation is all about. Then you develop a plan to win.</p>
<p>Refusing to take responsibility for your own life eventually leads to failure. You are making excuses if you always think that “I can’t do that because of x” or “because of him/her I am not where I want to be”.</p>
<p>Shit happens sometimes. It is up to you to deal with it, and you’ll be a better person for it.</p>
<h2>Have Standards.</h2>
<p>When it comes to standards, it’s not the standards you say you have, it’s the standards you tolerate.</p>
<p>If there are no consequences to bad performance, the bad performance becomes the new standard.</p>
<p>Maybe you’re trying to lose weight. If there are no consequences to your overeating, then the overeating becomes the new standard. Commit to what you say that you are going to commit to.</p>
<p>You have to always strive to improve. Love yourself for where you are because you are great as you are. But you can be better. You can be much better. Strive to be that.</p>
<h2>Believe</h2>
<p>Believe in yourself. You can do whatever you want to, but you have to believe that you can do it.</p>
<p>Understand why it is that you are doing it, and I mean really understand it. You must align your thoughts and visions with the mission at hand: to achieve your goals.</p>
<p>You are someone who achieves goals. Know that you can do it.</p>
<h2>Keep it simple</h2>
<p>Sometimes, shit hits the fan. To really combat those situations, know exactly what you are going to do when that happens.</p>
<p>When you’re out with your friends or family at a restaurant, and you’re trying to lose weight, but everyone is ordering unhealthy food. What do you do?</p>
<p>You know what to do because you planned ahead. You already decided what you’re going to order, and you stick to that. Make it so simple that you can act upon it without thinking.</p>
<h2>Prioritize and execute</h2>
<p>When these situations where you have a lot of things to do occur. These stressful situations can be combated with prioritization and execution.</p>
<p>First, you identify the utmost critical task. Then you perform that one task. And then you repeat.</p>
<p>Keep a broad overview of all of your responsibilities, so that you can adapt if anything happens.</p>
<h2>Failing to plan is planning to fail</h2>
<p>Plan ahead. Make sure that you always know what to do. Explore different options so that you know that you are taking the most efficient route of overcoming the obstacles that you might face.</p>
<p>The plan must mitigate identified risks whenever possible. Of course, you cannot succeed without taking risks, but it’s just plain stupid to not avoid the risks that are avoidable by nature.</p>
<p>After completion of the plan, review what happened. Analyze what went right, and what didn’t. Do not repeat mistakes. Always strive to improve.</p>
<h2>Decision making</h2>
<p>Sometimes you must act decisively amid uncertainty. You will have to make the best possible decision based on what information you have.</p>
<p>There is never a decision that is 100 percent right. You are never going to know the full story; the picture is never complete. This is something that you must adapt to and be comfortable with because you’re still going to have to make a decision. However, if the situation changes, you must also be ready to adapt and change your decision.</p>
<h2>Discipline equals freedom</h2>
<p>I couldn’t resist adding that. Discipline is the most important factor for success and victory. You may think that discipline doesn’t equal a free life, but this is the total opposite of the truth.</p>
<p>With discipline, you become freer. Do what is hard, and life will be easy. Do what is easy, and life will be hard.</p>
<p>It’s easy to not exercise. It’s easy to not eat healthily. It’s easy to not do something. But by not doing anything, you are setting yourself up for a difficult life.</p>
<p>If you do what is hard, you’ll have an easy life.</p>]]></content:encoded>
<category>Life</category>
</item>
<item>
<title>The 5 Habits That Will Have The Biggest Impact On Your Life</title>
<link>https://bagerbach.com/blog/the-5-habits-that-will-have-the-biggest-impact-on-your-life/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/the-5-habits-that-will-have-the-biggest-impact-on-your-life/</guid>
<description>You can improve by these huge amounts yearly if you only make these small improvements daily.</description>
<pubDate>Thu, 14 Mar 2019 19:49:10 GMT</pubDate>
<content:encoded><![CDATA[<p>Habits are such amazing things. They can be the best possible thing, and they can be the worst possible thing. The best way to illustrate this is by using math.</p>
<img src="https://bagerbach.com/uploads/0_gvmkr6noml-tbbac.png" alt="">
<p>If you improve by just 1% daily, you can completely change your life over the course of a few years.</p>
<p>Imagine if you worked out every day for a few years. How would you look? Pretty great, I'd imagine.</p>
<p>All of this comes from consistently using good habits to your advantage.</p>
<p>So now that you see why you should have habits, let me show you the five habits that I believe will help you the most.</p>
<h2>The Five Habits</h2>
<h3>Focusing on your health</h3>
<p>In this ‘one habit’, there are in fact three habits of great importance. The first is exercise, then healthy eating, and last but not least, sleep. Think about exercise like this:</p>
<p>If I told you that you could get any car you wanted. You can have that car, and it’ll be in your driveway by tomorrow morning. But then I told you that you only get that one car. You can never have another car. How would you treat it? Would you feed it with the wrong fuel?</p>
<p>Would you not do your best to make sure that the car is maintained properly?</p>
<p>Now imagine that the car is your body. Because this analogy is as true for your body as it were for the car. You only get one body, and you have to live in the body that you are given for your whole life. Make sure that you take care of it.</p>
<p>Some people do not exercise and only start to do so when it becomes critical that they do, for example when they become overweight. You can prevent that by exercising. Think of it as preventing your car from breaking down by maintaining it properly and caring for it. Health issues will be a natural consequence of your neglect.</p>
<p>The benefits of exercise are numerous. Exercise improves practically improves all aspects of your life. Exercise is what Charles Duhigg calls a keystone habit in his book <a href="https://amzn.to/2ClTTjB">The Power of Habit</a>, and that’s because exercise leads to improvement in various areas of your life. For example, you’re more likely to eat better, when you exercise regularly. Those two habits contribute enormous energy reserves to your daily reservoir.</p>
<p>Have you ever eaten a large portion of unhealthy food, only to fall asleep right after because you got so tired? I know I have.</p>
<p>Not exercising and eating healthy are some of the worst things you can do to yourself, but by doing them, you’ll reap the benefits tenfold.</p>
<p>Even just going for a walk every day will result in great results when compounded over time. In fact, all of these healthy habits will do just that.</p>
<p>I mention the habits behind focusing on your health habits first, simply because they are the most important. Trying to improving your productivity while neglecting your body is the same as trying to drive while simultaneously stepping on the gas and brakes. You are only hindering your own progress.</p>
<p>It is like thinking that you are cheating your teacher by not doing your homework. Cheating your dentist by not brushing your teeth. Cheating your personal trainer by not exercising. No, you are cheating yourself. Do not cheat yourself.</p>
<h3>Self Awareness and Reflection</h3>
<p>Life is like steering a ship. If you only set the course once, you’ll end up where life takes you. If you consistently set the course, you’ll arrive at the destination that you chose.</p>
<p>The self-awareness habit is, in essence, all about taking responsibility for yourself. It’s about learning from your past mistakes and identifying what is holding you back from where you want to go.</p>
<p>Being self-aware, you ask yourself questions about your life. Are you where you want to be? If not, are you trying to get there? What is working for you, what isn’t?<br>
By asking these questions, you get answers. And these answers will help you overcome the obstacles that you face in life. A question that I love asking myself is the focusing question, which stems from <a href="https://amzn.to/2HEhlMD">The ONE Thing</a>, by Gary Keller: “<em>What’s the ONE thing I can do such that by doing it everything else will be easier or unnecessary?</em>“.</p>
<p>Asking yourself this question helps you know what’s next. It tells you exactly what you should prioritize.</p>
<p>Asking yourself the right questions, and then getting the answers to those questions is the first step. The second step is to take action. You have to take action on the answers that you find. There is no other way around the obstacles than to fix them by taking action.</p>
<p>Insanity is doing the same thing over and over again and expecting different results.</p>
<h3>Meditation</h3>
<p>Meditation is such an amazing habit because it has so many benefits.</p>
<p>By meditating you learn to calm and control your mind, which in turn, cultivates more control and builds a strong discipline.</p>
<p>This is due to you silencing your thoughts and inner distractions, and only focusing on your breath. You learn to shut down the stampede of thoughts that would otherwise overwhelm your mind. And this skill is directly transferrable to other aspects of your life as well.</p>
<p>I personally use it for studying and reading. When I’m studying or reading, it’s really easy for me to get stuck on a tangent. I’ll think about something that I just read and go on this journey in my mind about that thing. It’s like a rabbit hole. After I started meditating, I’ve found that it’s a lot easier for me to go back to the topic at hand, and stay focused on it. And speaking of reading…</p>
<h3>Reading</h3>
<p>I previously wrote an article about reading that I would recommend you to read: <a href="https://bagerbach.com/blog/how-you-can-achieve-success-by-reading/">How You Can Achieve Success By Reading</a>. You should really read that article because I go a lot more in-depth about reading and why it might help you improve.</p>
<p>In essence, reading gives you the framework to help you make great decisions. Success is the result of many small decisions (and habits), and reading help you make the best possible decision because you’ll have the knowledge to make that correct decision.</p>
<p>Think of reading books as if an expert in the field were personally coaching you. Books are mentors in written form. You only get one life. But by reading, you are handed so many people’s life experiences and knowledge. Reading is the one and only shortcut to success, because it allows you not to make the mistakes others have made, while still learning from those mistakes.</p>
<h3>Zero Distraction Work</h3>
<p>When you are at work, it’s almost the norm that people can pop by and interrupt your workflow. Your phone is constantly pinging and beeping with news and messages that are all craving your attention. However, these distractions only serve to hinder our productivity. They have their time and place, but not when you are trying to get quality work done.</p>
<p>I’m a student, and when we are solving problems in the classrooms, it’s hard to get work done because of all of the interruptions and distractions there. That is why I’ve found that working on the problems at home, where I can do focused work in peace, I get so much more done, and I learn the concepts more easily.</p>
<p>You truly do your best work when there are no distractions and no interruptions.</p>
<p>Not having any distractions means closing unnecessary browser tabs, putting your phone on flight mode, and only having what’s necessary for you to work open on your computer.</p>
<p>If your phone pings or beeps while you are doing focused work, you would have to consciously focus on not opening the notifications that you receive. Even if you merely take a quick glance at them, they’ll occupy space in your mind. This only removes focus from the task at hand, and actively hinders you from doing your best work.</p>
<p>When you get zero distraction work done, you get so much more done than otherwise. By doing zero distraction work, you increase the quality and quantity of your work. Either you get so much more done in a fixed amount of time, or you finish so much faster.</p>
<p>There’s this great story about a man who was busy cutting down a tree. He had been going at it for a long time and was really exhausted. When asked why he didn’t just take a break and sharpen the saw, because then he might cut the tree down faster, he answered: “<em>I don’t have time to sharpen the saw, I’m too busy sawing!</em>“.</p>
<p>There is a difference between being busy and being productive. Make sure that you cultivate productivity, and that’s done by doing zero distraction work.</p>]]></content:encoded>
<category>Life</category>
</item>
<item>
<title>How You Can Achieve Success By Reading</title>
<link>https://bagerbach.com/blog/how-you-can-achieve-success-by-reading/</link>
<guid isPermaLink="true">https://bagerbach.com/blog/how-you-can-achieve-success-by-reading/</guid>
<description>You can lose everything. Your job, your wealth, your friends, and even your home. But will never lose your knowledge.</description>
<pubDate>Thu, 07 Mar 2019 19:51:46 GMT</pubDate>
<content:encoded><![CDATA[<p>You can lose everything. Your job, your wealth, your friends, and even your home. But will never lose your knowledge.</p>
<p>If you lose your business, you still know exactly how you built it in the first place. You have something that others don’t: knowledge. Knowledge is power. You gain knowledge by reading. Therefore, by reading, you are becoming increasingly more powerful.</p>
<ul>
<li>Bill Gates read 50 books a year.</li>
<li>Warren Buffett reads 500 pages a week.</li>
<li>Mark Cuban reads for 3 hours a day.</li>
<li>When asked how he learned how to build rockets, Elon Musk answered; “<em>I read books</em>“.</li>
<li>Tim Ferris said that he reads about 3–4 books a week.</li>
</ul>
<p>As you can see, leaders are readers. This proves the point: <em>knowledge is power.</em></p>
<h3>Exercising the Mind</h3>
<p>As we all know, exercise is one of the most amazing things that you can do for yourself. Then, reading is to the mind, what exercise is to the body.</p>
<p>It is all about constantly improving your mind (and body), about becoming better and broadening your knowledge. You can learn anything.</p>
<blockquote>
<p><em>"A reader lives a thousand lives before he dies, said Jojen. The man who never reads lives only one."</em></p>
<p><cite>George R. R. Martin</cite></p>
</blockquote>
<p>Think of reading books as if an expert in the field is personally coaching you. Books are mentors in written form. You only get one life. But by reading you are handed so many people’s life experience and knowledge.</p>
<h3>Saving a Soul</h3>
<blockquote>
<p><em>"I’m not saying that you have to be a reader to save your soul in the modern world. I’m saying it helps."</em></p>
<p><cite>Walter Mosley</cite></p>
</blockquote>
<p>I love this quote so much because this is one of the biggest benefits of reading that I have experienced. Reading provides me with a sense of direction. It’s like a compass to life. You learn to find your way.</p>
<h2>How do I Start?</h2>
<blockquote>
<p><em>"Read 500 pages every week. That’s how knowledge works. It builds up like compound interest."</em></p>
<p><cite>Warren Buffett</cite></p>
</blockquote>
<p>What this essentially boils down to is priorities. If you make reading a priority, then you’ll spend time on that rather than other tasks where you may just be “killing time”. That way, you will read so much more than if you merely read when you felt like it. Anything action you take is a choice. Even inaction is a choice. Spending time on mindless things takes time away from other things that help you become a better version of yourself. There is, and should be, time for relaxation; everyone needs that. But to pick up reading, a great start is just to start slow. Start out by reading a small chapter, or even just a page.</p>
<p>Here are a few tips:</p>
<ul>
<li>Sign up to Goodreads and take part in the yearly reading challenge. Pick a number of books that you want to read this year. Aim a little high. That way, even if you miss, you’ll still have gone far.</li>
<li>Using the X Chain, a method originally created by Jerry Seinfeld, which is about using a calendar. Every day, after reading for your specified amount of time, you make an x. After a few days, you’ll have a chain; your goal is now to not break that chain. Remember: even a little action is still an action. The worst thing you can do is not taking any action.</li>
<li>Another way that I like to pick up new things is to make a 21-Day Challenge for myself. I put in on my to-do list to remind me of this every day for 21 days. You can make it a challenge to read for 30 minutes a day, every day, for 21 days.</li>
<li>The last tip I have for you is to have an accountability buddy, or buddies. Ask others to join you. If you really don’t want to do that, then go to the Betterment Book Club on Reddit. There you will find readers that are interested in reading together; it’s a book club after all. As I said, something that has helped me build habits is to be a part of a community of like-minded people.</li>
</ul>
<h3>I’m reading. Now what?</h3>
<p>When you are reading a lot of books, something that helps is to take notes or highlight the most important concepts.</p>
<p>That way, you are more likely to internalize the content. Also, if you take notes, make sure that you don’t just copy what the author wrote. Make sure to write it in your own words. Because to paraphrase something, you have to really understand it first.</p>
<p>After reading a chapter, recap what it was about in your head. I would not recommend writing a summary of each chapter, that would just take too long. Taking notes is about capturing the essence of something.</p>
<p>When you are finished reading the book you should summarize it using your notes. Capture the essence of the book. This also makes it easier to go back and review it.</p>
<p>But, the most important thing is to <em>take action</em> on what is said in the book. It helps you remember what you read, but most importantly, it takes the author's advice and life experience and applies it to your life. You now have the notes. <em>Use them.</em></p>]]></content:encoded>
<category>Books &amp; Reading</category>
</item>
</channel>
</rss>