This commit is contained in:
Mattia Ippoliti 2022-08-26 13:03:27 +02:00
parent 042dcdf252
commit efa0894954
25 changed files with 815 additions and 849 deletions

View File

@ -1,26 +1,50 @@
---
title: 🪴 Quartz 3.2
title: Hi there, I'm Mattia!👋
---
Host your second brain and [digital garden](https://jzhao.xyz/posts/networked-thought) for free. Quartz features
Your now in my personal North Star... and Hola! 👋, I'm Mattia Ippoliti this is Mattia's Brain 🧠 [^1]
1. Extremely fast natural-language [[notes/search|search]]
2. Customizable and hackable design based on [Hugo](https://gohugo.io/)
3. Automatically generated backlinks, link previews, and local graph
4. Built-in [[notes/CJK + Latex Support (测试) | CJK + Latex Support]] and [[notes/callouts | Admonition-style callouts]]
5. Support for both Markdown Links and Wikilinks
- [[1. Projects]]
- [[2. Areas]]
- [[3. Resources]]
- [[4. Archive]]
Check out some of the [amazing gardens that community members](notes/showcase.md) have published with Quartz or read about [why I made Quartz](notes/philosophy.md) to begin with.
---
## Get Started
> 📚 Step 1: [Setup your own digital garden using Quartz](notes/setup.md)
Taking a deep breath, you [[README|enter the forest]]. My sub-brain :
Returning user? Figure out how to [[notes/updating|update]] your existing Quartz garden.
- [[1. Projects]]
- [[1. Projects/Workout/Workout|Workout]]
- [[2. Areas]]
- [[2. Areas/Finances/Finances|Finances]]
- [[2. Areas/Health/Health|Health]]
- [[2. Areas/Personae/Personae| Personae]]
- [[2. Areas/Quotes/Quotes| Quotes]]
- [[2. Areas/Libri/Libri| Libri]]
- [[3. Resources]]
- [[3. Resources/Cheat Sheet/Cheat Sheet| Cheat Sheet]]
- [[3. Resources/Critical Thinking/Critical Thinking| Critical Thinking]]
- [[3. Resources/Financial Indipendence/Financial Indipendence| Financial Indipendence]]
- [[3. Resources/Personal Finance/Personal Finance| Personal Finance]]
- [[3. Resources/Pillole Economia/Pillole Economia| Pillole Economia]]
- [[3. Resources/PKM/PKM| PKM]]
- [[3. Resources/Programmazione/Programmazione| Programmazione]]
- [[3. Resources/Project Management/Project Management| Project Management]]
- [[3. Resources/Strumenti Finanziari/Strumenti Finanziari| Strumenti Finanziari]]
- [[Tablerone]]
- [[4. Archive]]
- [[4. Archive/Archive Areas/Archive Areas |Archive Areas]]
- [[4. Archive/Archive Projects/Archive Projects |Archive Projects]]
- [[4. Archive/Archive Resources/Archive Resources |Archive Resources]]
If you prefer browsing the contents of this site through a list instead of a graph, you see a list of all [setup-related notes](/tags/setup).
---
### Troubleshooting
- 🚧 [Troubleshooting and FAQ](notes/troubleshooting.md)
- 🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues)
- 👀 [Discord Community](https://discord.gg/cRFFHYye7t)
- | #state/tobecontinued | [[Tablerone]] | [[Others/Templates/mdToDo]] | [[Daily Notes]] | [[mdToDo]] |
- #home/projects| #home/areas | #home/resources | #home/archived
---
[^1]: If you wanna join the dark site of *your life*, please go to [[your life in weeks]]. 👁️
[⬆ back to top](#Home)

View File

@ -1,40 +0,0 @@
---
title: "CJK + Latex Support (测试)"
---
## Chinese, Japanese, Korean Support
几乎在我们意识到之前,我们已经离开了地面。
우리가 그것을 알기도 전에 우리는 땅을 떠났습니다.
私たちがそれを知るほぼ前に、私たちは地面を離れていました。
## Latex
Block math works with two dollar signs `$$...$$`
$$f(x) = \int_{-\infty}^\infty
f\hat(\xi),e^{2 \pi i \xi x}
\,d\xi$$
Inline math also works with single dollar signs `$...$`. For example, Euler's identity but inline: $e^{i\pi} = 0$
Aligned equations work quite well:
$$
\begin{aligned}
a &= b + c \\ &= e + f \\
\end{aligned}
$$
And matrices
$$
\begin{bmatrix}
1 & 2 & 3 \\
a & b & c
\end{bmatrix}
$$
## RTL
More information on configuring RTL languages like Arabic in the [config](notes/config.md) page.

View File

@ -0,0 +1,236 @@
---
tags: Economics
title: How The Economic Machine Works
---
back:: [[Libri]]
# [[How The Economic Machine Works]]
**Autor**: [[Ray Dalio]]
Watch this: [**Video**](https://www.youtube.com/watch?v=PHe0bXAIuk0)
On this day: [[2022-01-09]]
```ad-quote
title: Ray Dalio
Il mondo è inpazzito e il sistema è rotto
```
## Table-of-Contents
- [1.What is the Economy](#1.What-is-the-Economy)
- [2.Productivity growth](#2.Productivity-growth)
- [3.The Short term debt cycle](#3.The-Short-term-debt-cycle)
- [4.The Long term debt cycle](#4.The-Long-term-debt-cycle)
- [5. Conclusion](#5.Conclusion)
## 1.What-is-the-Economy
It's made up of a few simple parts and a lot of simple transactions that are repeated over and over again a zillion times.
These transactions are above all else driven by human nature, and they create 3 main forces that drive the economy:
- Productivity growth
- The Short term debt cycle
- The Long term debt cycle
### 1.1 Transaction
You make transactions all the time. Every time you buy something you create a transaction.
Each transaction consists of a buyer exchanging money or credit with a seller for goods, services or financial assets.
So adding together the money spent and the amount of credit spent, you can know the **total spending**. The total amount of spending drives the economy.
If you divide the amount spent by the quantity sold, you get the **price**.
And that's it. That's a **[[transaction]]**.
- All cycles and all forces in an economy are driven by transactions. So, if we can understand transactions, we can understand the whole economy.
- A market consists of all the buyers and all the sellers making transactions for the same thing. For example, there is a wheat market, a car market, a stock market.
- An economy consists of all of the transactions in all of its markets.
The biggest buyer and seller is the government, which consists of two important parts:
- a Central Government that **collects taxes and spends money**;
- Central Bank, which is different from other buyers and sellers because it **controls the amount of money and credit in the economy**. It does this by influencing interest rates and printing new money. the Central Bank is an important player in the flow of **[[Credit]]**.
### 1.2 Credit
Just like buyers and sellers go to the market to make transactions, so do lenders and borrowers.
Lenders usually want to make their money into more money and borrowers usually want to buy something they can't afford, like a house or car.
Borrowers promise to repay the amount they borrow, called the principal, plus an additional amount, called **interest**. When interest rates are high, there is less borrowing because it's expensive. When borrowers promise to repay and lenders believe them, credit is created.
As soon as credit is created, it immediately turns into debt. Debt is both an asset to the lender, and a liability to the borrower.
*So, why is credit so important?*
Because when a borrower receives credit, he is able to increase his spending. And remember, spending drives the economy. This is because one person's spending is another person's income.
So increased income allows increased borrowing (from the bank) which allows increased spending. And since one person's spending is another person's income, this leads to more increased borrowing and so on. This self-reinforcing pattern leads to economic growth and is why we have **Cycles**.
[⬆ back to top](#Table-of-Contents)
## 2.Productivity-growth
Those who were invented and hard-working raise their productivity and their living standards faster than those who are complacent and lazy. BUT Productivity matters most in the long run, but **[[Credit]]** matters most in the **short run**.
This is because productivity growth doesn't fluctuate much (it is a linear function), so it's not a big driver of economic swings. **[[Debt]]** is(non linear function) — because it allows us to consume more than we produce when we acquire it and it forces us to consume less than we produce when we pay it back.
Debt swings occur in two big cycles:
- One takes about 5 to 8 years;
- The other takes about 75 to 100 years.
*But How does these three big forces (**Productivity**, **Debt**, **Credit**) interact with each others?*
These non linear function that swings around the line are not due to how much **innovation** or hard work there is, they're primarily due to how much **credit** there is.
Let's for a second imagine an economy without credit. In this economy, the only way I can increase my spending is to increase my income, which requires me to be more productive and do more work. Increased productivity is the only way for growth: **Linear**.
But because we borrow, we have cycles. This isn't due to any laws or regulation, it's due to human nature and the way that credit works.
Think of borrowing as simply a way of **pulling spending forward**. In order to buy something you can't afford, you need to spend more than you make. To do this, you essentially need to borrow from your future self. In doing so you create a time in the future that you need to spend less than you make in order to pay it back. It very quickly resembles a **cycle**.
The reality is that most of what people call money is actually credit. The total amount of credit in the United States is about $50 trillion and the total amount of money is only about $3 trillion.
As a result, an economy with credit has more spending and allows incomes to rise faster than productivity over the short run, but not over the long run.
**NB**: Now, don't get me wrong, credit isn't necessarily something bad that just causes cycles. For example, if you borrow money to buy a big TV, it doesn't generate income for you to pay back the debt. But, if you borrow money to buy a tractor — and that tractor let's you harvest more crops and earn more money — then, you can pay back your debt.
[⬆ back to top](#Table-of-Contents)
## 3.The-Short-term-debt-cycle
Suppose you earn $100,000 a year and have no debt. You are creditworthy enough to borrow $10,000 dollars, so you can spend $110,000 dollars even though you only earn $100,000 dollars.
Since your spending is another person's income, someone is earning $110,000 dollars. The person earning $110,000 dollars with no debt can borrow $11,000 dollars, so he can spend $121,000 dollars even though he has only earned $110,000 dollars. His spending is another person's income, exc. A cycle is beginning.
And if the cycle goes up, it eventually needs to come down. This leads us into the **Short Term Debt Cycle**.
### 3.1 Inflation
As economic activity increases, we see an [[expansion]], the first phase of the short term debt cycle. Spending continues to increase and prices start to rise. When prices rise, we call this **[[Inflazione]]**.
The Central Bank doesn't want too much inflation because it causes problems. Seeing prices rise, it **raises interest rates**. With higher interest rates, fewer people can afford to borrow money.
### 3.2 Deflation / Recession
Because people borrow less and have higher debt repayments, they have less money leftover to spend, so spending slows ...and since one person's spending is another person's income, incomes drop!
When people spend less, prices go down. We call this **[[deflazione]]**.
Economic activity decreases and we have a [[recessione]].
### 3.3 ...and again Inflation
If the recession becomes too severe and inflation is no longer a problem, the central bank will **lower interest rates** to cause everything to pick up again.
With low interest rates, debt repayments are reduced and borrowing and spending pick up and we see another **[[expansion]]**.
And note that this cycle is controlled primarily by the central bank. The short term debt cycle typically lasts 5 - 8 years and happens over and over again for decades.
..But notice that the bottom and top of each cycle finish with more growth than the previous cycle and with more debt.
*Why?*
Because people push it — they have an inclination to borrow and spend more instead of paying back debt. It's human nature. Over long periods of time, debts rise faster than incomes creating the **Long Term Debt Cycle**.
[⬆ back to top](#Table-of-Contents)
## 4.The-Long-term-debt-cycle
Despite people becoming more indebted, lenders even more freely extend credit (that's strange, banks should be reclined to give credit to people that are in debt!).
But Why lenders do that? Because everybody thinks things are going great! They can see only the short term. Incomes have been rising! Asset values are going up! The stock market roars! It's a boom! When people do a lot of that, we call it a **bubble**.
So even though debts have been growing, incomes have been growing nearly as fast to offset them.
People borrow huge amounts of money to buy assets as investments causing their prices to rise even higher. Over decades, debt burdens slowly increase creating larger and larger debt repayments.
At some point, **debt repayments start growing faster than incomes** forcing people to cut back on their spending. And since one person's spending is another person's income, incomes begin to go down...which makes people less creditworthy causing borrowing to go down. This is the **long term debt peak**.
### 4.1 Short term VS Long term
*But what is the difference between this situation and the short-term?*
This appears similar to a recession but the difference here in a [[Deleveraging]] is that **interest rates can't be lowered** to save the day.
In a [[Deleveraging]]; people cut spending, incomes fall, credit disappears, assets prices drop, banks get squeezed, the stock market crashes, social tensions rise. borrowers get squeezed. No longer creditworthy, and they can no longer borrow enough money to make their debt repayments.
So borrowers are forced to sell assets. The rush to sell assets floods the market. More people wanna sell so they prices go down.This is when the stock market collapses.
In a recession, lowering interest rates works to stimulate the borrowing. However, in a [[Deleveraging]], lowering interest rates doesn't work because interest rates are already low and soon hit 0% - so the stimulation ends.
The difference between a recession and a deleveraging is that in a deleveraging borrowers' debt burdens have simply gotten too big and can't be relieved by lowering interest rates.
### 4.2 Possibile Solutions
*So what do you do about a deleveraging?*
The problem is debt burdens are too high and they must come down. There are four ways this can happen:
1. Austerity: People, businesses, and governments cut their spending.
2. Debts are reduced through defaults and restructurings.
3. Wealth is redistributed from the 'haves' to the 'have nots'.
4. The central bank prints new money.
### 4.3 Austerity
Usually, spending is cut first. Because spending is cut, and one man's spending is another man's income - it causes incomes to fall. They fall faster than debts are repaid and the debt burden actually gets worse.
This cut in spending is deflationary and painful. Businesses are forced to cut costs... which means less jobs and higher unemployment.
### 4.4 Reducing Debts
Many borrowers find themselves unable to repay their loans -- and a borrower's debts are a lender's assets. When borrowers don't repay the bank, people get nervous that the bank won't be able to repay them so they rush to withdraw their money from the bank. Banks get squeezed.
This severe economic contraction is a **[[depression]]**.
### 4.5 Welth is redistributed
All of this impacts the central government because lower incomes and less employment means the government **collects fewer taxes**. At the same time it needs to increase its spending because unemployment has risen.
Additionally, governments create stimulus plans and increase their spending to make up for the decrease in the economy.
Governments' budget **[[deficits]]** explode in a deleveraging because they spend more than they earn in taxes. This is what is happening when you hear about the budget **[[deficit]]** on the news.
To fund their deficits, governments need to either raise taxes or borrow money. But with incomes falling and so many unemployed, who is the money going to come from? The **rich**.
Since governments need more money and since wealth is heavily concentrated in the hands of a small percentage of the people, governments naturally raise taxes on the wealthy which facilitates a redistribution of wealth in the economy.
If the depression continues social disorder can break out. This situation can lead to political change that can sometimes be extreme. In the 1930s, this led to Hitler coming to power.
### 4.6 Printing money
Inevitably, the central bank prints new money — out of thin air — and uses it to buy financial assets and government bonds. In 2008, when the United States' central bank — the Federal Reserve — printed over two trillion dollars. **$5.2 trillion** in COVID.
The Central Government, on the other hand, can buy goods and services and put money in the hands of the people but it can't print money. So, in order to stimulate the economy, the two must cooperate.
By buying government bonds, the Central Bank essentially lends money to the government, allowing it to run a deficit and increase spending on goods and services through its stimulus programs and unemployment benefits.
However, it will lower the economy's total debt burden. This is a very risky time. The deflationary ways need to balance with the inflationary ways in order to maintain stability. If balanced correctly, there can be a Beautiful Deleveraging.
### 4.7 How a Deleveraging could be a good situation (more than leveraging)?
Even though a deleveraging is a difficult situation, handling a difficult situation in the best possible way is beautiful. A lot more beautiful than the debt-fueled, unbalanced excesses of the leveraging phase.
In a beautiful deleveraging, debts decline relative to income, real economic growth is positive, and inflation isn't a problem. It is achieved by having the right balance.
The right balance requires a certain mix of:
- cutting spending,
- reducing debt,
- transferring wealth
- printing money
The Central Bank needs to not only pump up income growth but get the rate of income growth higher than the rate of interest on the accumulated debt. Basically, income needs to grow faster than debt grows.
So If policymakers achieve the right balance, a deleveraging isn't so dramatic. Growth is slow but debt burdens go down.
### 4.8 [[Reflation]]
When incomes begin to rise, borrowers begin to appear more creditworthy. And when borrowers appear more creditworthy, lenders begin to lend money again. Debt burdens finally begin to fall.
Able to borrow money, people can spend more. Eventually, the economy begins to grow again, leading to the [[reflation]] phase of the long term debt cycle. It takes roughly a **decade** or more for debt burdens to fall and economic activity to get back to normal
## 5.Conclusion
Laying the short term debt cycle on top of the long term debt cycle and then laying both of them on top of the productivity growth line gives a reasonably good template for seeing where we've been, where we are now and where we are probably headed.
So in summary, there are three rules of thumb that I'd like you to take away from this:
---
1. Don't have debt rise faster than income, because your debt burdens will eventually crush you.
---
2. Don't have income rise faster than productivity, because you will eventually become uncompetitive.
---
3. Do all that you can to raise your productivity, because, in the long run, that's what matters most.
---
[⬆ back to top](#Table-of-Contents)
### Collegamenti
```query
Ray Dalio
```
[⬆ back to top](#Table-of-Contents)

View File

@ -0,0 +1,123 @@
---
Title: How To Not Die Alone
---
back:: [[Libri]]
# [[How To Not Die Alone]]
Read this fantastic post of [[Tim Urban]]: https://waitbutwhy.com/2014/02/pick-life-partner-part-2.html
## Table-of-Contents
- [1. Why is dating so hard?](#1.Why-is-dating-so-hard?)
- [2. Know your blind spot](#2.Know-your-blind-spot)
- [3. Don't let perfect be the enemy of great](#3.Don't-let-perfect-be-the-enemy-of-great) ^ac5d25
- [4. Stop looking for prom dates](#4.Stop-looking-for-prom-dates)
- [5. Decide don't slide](#5.Decide,don't-slide)
- [6. Bonus](#Bonus)
- [7. Tim Urban](#7.Tim-Urban)
#### 1.Why-is-dating-so-hard?
1. Now-days we do define our personal identities more so than we did in the past in the past there was a lot less personal agency you would kind of have these expectations thrust on you you'd become a doctor because your parents told you to become a doctor you'd marry this person because your parents told you to marry that person
2. We've just got way too many options
3. We see all these comparator things and even if it's not like famous youtuber a couple vloggers or it's our friends on social media you know engagement photos all that kind of stuff it's so easy to compare our failures in dating with other people's highlight reels
4. t's actually a pretty big decision
If relationships are the thing the main lever that we can move to contribute to our happiness why are we not spending more time thinking about them?
#### 2.Know-your-blind-spot
Tip number one from the book is to know your blind spot. Three dating tendencies and the idea is that all of us fit into one of these categories but we probably have traits from all three of the categories:
1. the first type of dating tendency is the **romanticizer** this is the sort of person who kind of believes the whole soulmate stuff (Mmmh yeah but not so much);
2. Hesitator now this is the sort of person that thinks you know what i am not ready for dating just yet (But I am);
3. Maximizer they're looking out for and find the person who most maximize sort of hits the highest score point (That's it!);
#### 3.Don't-let-perfect-be-the-enemy-of-great
We should be trying to do is become instead of a maximizer a satisficer and the idea here is that instead of trying to maximize trying to find the absolute perfect person you possibly can you we should try and find someone who is like good enough and then work to make that relationship something that is absolutely fantastic.
If we look at the studies, the thing we're optimizing for is not can we find the perfect partner because there's no such thing as a perfect partner!
The thing we're trying to optimize for is what is going to lead to long-term happiness in our relationship and it turns out that even if you are a maximizer AND if you find the perfect person, the fact that you're a maximizer and you're approaching this with a maximizing kind of point of view means **you're going to be less happy in that relationship than someone who is a satisficer**.
Being a satisfier rather than a maximizer is one part of the equation but it's not the only part of the equation and the next thing is to actually figure out what sort of person we're looking.
#### 4. Stop looking for prom dates
Present bias and that is the feeling that causes us to prioritize the short term over what actually matters in the long term this is the reason why we procrastinate from all sorts of things in life.
Looking for a prom date rather than looking for a life partner a prom date as she says is someone who looks great in pictures someone is really good looking someone who makes us feel amazing.
Most important trades when choosing a person:
1. Emotionally stable and kind;
2. Growth mindset relative to the fixed mindset. Someone with a growth mindset is more likely to want to work together to overcome those problems because they believe they can grow into;
3. we want to try and find someone who can **fight well**. not let their kind of emotions get like override kind of the way that they're approaching the conversation;
#### 4. Spread your wings
Three important **cardinal rules** to keep in mind rule:
1. number one is that we don't actually know what we want. things that we think we want do not correlate to the things that actually bring us long-term happiness
2. The *spark* is b.s. : it was love at first sight oh i really felt a really strong spark when we first met. Apparently that's all bs.
One study that she cites in the book uh that looked at 400 happily married like long-term successful relationship couples and found that only 11 of them fell to that feeling of love at first sight. that spark is not enough to sustain things, instead focus on more on long term life partnery qualities [[#^ac5d25 | See 3.]]
3. Always go on a second date. we're just not compatible because we had those three seconds of silence.
4. **Fundamental attribution** error where we um attribute a behavior that someone has exhibited to a personality. for example if someone is five minutes date late to a date we will do the fundamental attribution error and think oh this this is the sort of person who just doesn't respect people's time
#### 5.Decide,don't-slide
We've been dating for a few months maybe a few years now maybe the pandemic is coming up why don't we just move in together these are all like sliding type things.
You want to actively decide these very big things you want to sit down with your partner and draw up a pros and cons list and like really really actively talk about what could go wrong what what the expectations what are we hoping for from this.
Really actively think about what you want from the relationship what they want from the relationship communicating expectations.
#### Bonus
###### [[Self-Acceptance]]
1. Practise relaxed awareness. this is about meditating and recognising and just sort of generally being more aware of our own thoughts. To practise, the idea is that you close your eyes for a minute and instead of pushing thoughts away for trying to focus on your breath, just softly notice your thoughts and feelings and body.
You might see negative thoughts or emotions, that's totally okay. Just notice them, watch them. Don't try to turn them into positive thoughts or push them away.
2. Rating yourself.
3. Practise gratitude. Writing down a few things you're grateful for each day, that does as much to increase our happiness as doubling our salary.
4. Forgiveness and compassion. If we judge ourselves for not doing well at something or not being good enough at something, can we forgive ourselves for this just as we might forgive someone else. We would recognise that we're all human. Humans are all imperfect.
#### 7.Tim-Urban
> Marriage is Forgettable Wednesday. Together.
So Ill leave the butterflies and the kisses in the rain and the twice-a-day sex to you and spend this post trying to figure out the best way to **make Forgettable Wednesday** as happy as possible.
To endure 20,000 days with another human being and do so happily, there are three key ingredients necessary:
**1) An Epic Friendship**
I enjoy spending time with most of my friends—thats why theyre my friends. But with certain friends, the time is so high-quality, so interesting, and so fun that they pass the Traffic Test. To me, almost nothing is more critical in choosing a life partner than finding someone who passes the Traffic Test. When there are people in your life who do pass the Traffic Test, what a whopping shame it would be to spend 95% of the rest of your life with someone who doesnt.
A Traffic Test-passing friendship entails:
- **A great sense of humor click**. No one wants to spend 50 years fake laughing.
- **Fun.** And the ability to extract fun out of unfun situations—airport delays, long drives, errands. Not surprisingly, studies suggest that the amount of fun a couple has is a strong predictor for their future.6
- **A respect for each others brains and way of thinking.** A life partner doubles as a career/life therapist, and if you dont respect the way someone thinks, youre not going to want to tell them your thoughts on work each day, or on anything else interesting that pops into your head, because you wont really care that much what they have to say about it.
- **A decent number of common interests, activities, and people-preferences.** Otherwise a lot of what makes you you will inevitably become a much smaller part of your life, and you and your life partner will struggle to find enjoyable ways to spend a free Saturday together.
**2) A Feeling of Home**
If someone told you you had to sit in a chair for 12 straight hours without moving, aside from wondering why the hell they were making you do this, your first thought would be, “I better get in the most comfortable possible position”—because youd know that even the _slightest_ bit of discomfort would grow to pain and eventually, torture. When you have to do something for a long, _long_ time, its best if its _supremely_ comfortable.
Feeling “at home” means feeling safe, cozy, natural, and utterly yourself, and in order to have this feeling with a partner, a few things need to be in place:
- **Trust and security.** *Secrets are poison to a relationship*, because they form an invisible wall inside the relationship, leaving both people somewhat alone in the world—and besides, who wants to spend 50 years lying or worrying about hiding something?
- **Natural chemistry.** Interacting should be easy and natural, *you should feel on the same “wavelength”* in general. When Im with someone on a very different wavelength than I am, it doesnt take long before the interaction becomes exhausting.
- **Acceptance of human flaws.** Youre flawed ==imperfetto==. Like, really flawed. And so is your current or future life-partner. Being flawed is part of the definition of being a human. This isnt to say people shouldnt work on self-improvement, but when it comes to a life partnership, the healthy attitude is, “Every person comes with a set of flaws, these are my partners, and theyre part of the package I knowingly chose to spend my life with.”
- **A generally positive vibe.** Remember, this is _the_ vibe youre a part of now, forever. Its not really acceptable for it to be a negative one, nor is it sustainable.
**3) A Determination to be Good at Marriage**
Relationships are _hard._ Expecting a strong relationship without treating it like a rigorous part-time job is like expecting to have a great career without putting in any effort.
*So what skills does someone need to learn to be good at marriage?*
- **Communication.** Communication being on this list is as silly as **“oxygen”** being on a list of items you need to stay healthy. And yet, poor communication is the downfall of a huge number of couples Communication is hard to do well consistently—successful couples often need to create pre-planned systems.
- **Maintaining equality.** Relationships can slip into an unequal power dynamic pretty quickly. When *one persons mood always dictates the mood in the room*, when *one persons needs or opinion consistently prevail over the others*, when one person can treat the other in a way theyd never stand for being treated themselves—youve got a problem.
- **Fighting well.** Fighting is inevitable. But there are good and bad ways to fight. When a couple is good at fighting, they defuse tension, approach things with humor, and genuinely listen to the other side, while *avoiding getting nasty, personal or defensive*. They also fight less often than a bad couple. According to John Gottman, *69% of a typical couples fights are perpetual, based on core differences, and cannot be resolved*—and a skilled couple **understands this and refrains from engaging in these brawls again and again**.
In searching for your life partner or assessing your current life partnership, its important to remember that every relationship is flawed and **you probably wont end up in something that gets an A in every one of the above items and bullet points**—but you should hope to do pretty well on _most_ of them, since each one plays a large part in your lifelong happiness.
---
### Backlinks
List of backlinks:
```dataview
list from [[How To Not Die Alone]]
```
### Index
All links leaving a note:
```dataview
list from outgoing([[How To Not Die Alone]])
```
[⬆ back to top](#Table-of-Contents)

View File

@ -0,0 +1,300 @@
back::[[Cheat Sheet]]
# [[Learning Obsidian]] 🦑
```md
*Questo testo sarà in corsivo*
_Anche questo testo sarà in corsivo_
```
*Questo testo sarà in corsivo*
_Anche questo testo sarà in corsivo_
```md
**Questo testo sarà in grassetto**
__Anche questo testo sarà in grassetto__
```
**Questo testo sarà in grassetto**
__Anche questo testo sarà in grassetto__
```md
_Si possono **combinare** insieme_
```
_Si possono **combinare** insieme_
---
### Elenchi
```md
- Elemento 1
- Elemento 2
- Elemento 2a
- Elemento 2b
1. Elemento 1
1. Elemento 2
1. Elemento 3
1. Elemento 3a
1. Elemento 3b
```
- Elemento 1
- Elemento 2
- Elemento 2a
- Elemento 2b
1. Elemento 1
1. Elemento 2
1. Elemento 3
1. Elemento 3a
1. Elemento 3b
---
### Immagini
```md
![Engelbart](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)
```
![Engelbart](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)
#### Ridimensionamento immagini
La stessa immagine di sopra ridimensionata a 100 pixel di larghezza:
```md
![Engelbart|100](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)
```
![Engelbart|100](https://history-computer.com/ModernComputer/Basis/images/Engelbart.jpg)
---
### Collegamenti
```md
http://obsidian.md - automatico!
[Obsidian](http://obsidian.md)
```
#### Video
```html
<iframe src="INSERT YOUR URL HERE"></iframe>
```
http://obsidian.md - automatico!
[Obsidian](http://obsidian.md)
I collegamenti Markdown possono essere utilizzati per puntare a oggetti esterni, come pagine web, oppure per riferirsi a pagine interne o immagini. Se ci sono spazi nell'indirizzo, si può usare una sequenza di escape come `%20` al posto dello spazio, per esempio come in [Opzioni di esportazione](Pasted%20Image.png), o racchiudendo il testo in `<>`, come [Dimostrazione Diapositive](<Dimostrazione Diapositive>).
---
### Blocchi di citazioni
```md
> Gli esseri umani affrontano problemi sempre più complessi e urgenti e la loro efficacia nell'affrontare questi problemi è una questione fondamentale per la stabilità e il progresso continuo della società.
\- Doug Engelbart, 1961
```
> Gli esseri umani affrontano problemi sempre più complessi e urgenti e la loro efficacia nell'affrontare questi problemi è una questione fondamentale per la stabilità e il progresso continuo della società.
\- Doug Engelbart, 1961
---
### Codice in linea
```md
Il testo racchiuso tra `backtick` (accenti gravi) viene formattato come codice.
```
Il testo racchiuso tra `backtick` (accenti gravi) viene formattato come codice.
---
### Blocchi di codice
L'evidenziazione della sintassi è supportata per il linguaggio specificato subito dopo la prima serie di backtick. Per evidenziare la sintassi viene utilizzato Prismjs. Un elenco dei linguaggi supportati è disponibile [sul loro sito web](https://prismjs.com/[[supported-languages]]).
```js
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'[[foo]]'})
}
}
```
```js
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'[[foo]]'})
}
}
```
```md
Il testo indentato usando la tabulazione (o quattro spazi) viene formattato in questo modo, e verrà mostrato come un blocco di codice nell'anteprima.
```
Il testo indentato usando la tabulazione (o quattro spazi) viene formattato in questo modo, e verrà mostrato come un blocco di codice nell'anteprima.
---
### Elenco delle attività
```md
- [x] supporta [[tag]], [collegamenti](), e **formattazione**
- [x] necessita della sintassi degli elenchi (supporta elenchi puntati e numerati)
- [x] questa attività è stata completata
- [ ] questa attività non è stata completata
- [ ] in modalità Anteprima è possibile spuntare le voci con il mouse
```
- [x] supporta [[tag]], [collegamenti](), e **formattazione**
- [x] necessita della sintassi degli elenchi (supporta elenchi puntati e numerati)
- [x] questa attività è stata completata
- [ ] questa attività non è stata completata
- [ ] in modalità Anteprima è possibile spuntare le voci con il mouse
---
### Tabelle
Le tabelle possono essere create assemblando una lista di parole e dividendole con i trattini `-` (per la prima linea); poi, separando ogni colonna con una barra verticale `|`:
```md
Primo titolo | Secondo titolo
------------ | ------------
Contenuto della cella 1 | Contenuto della cella 2
Contenuto nella prima colonna | Contenuto nella seconda colonna
```
Primo titolo | Secondo titolo
------------ | ------------
Contenuto della cella 1 | Contenuto della cella 2
Contenuto nella prima colonna | Contenuto nella seconda colonna
---
```md
Le tabelle si giustificano con i due punti | Altro esempio con titolo lungo
:----------------|-------------:
a causa dei `:` | queste saranno giustificate
I collegamenti possono essere inseriti nelle tabelle, ma se si utilizzano collegamenti con barre verticali, queste devono essere accompagnate da un carattere di escape per evitare che vengano lette come elementi della tabella.
```
Le tabelle si giustificano con i due punti | Altro esempio con titolo lungo
:----------------|-------------:
a causa dei `:` | queste saranno giustificate
I collegamenti possono essere inseriti nelle tabelle, ma se si utilizzano collegamenti con le barre verticali, queste devono essere precedute da un carattere di escape per evitare che vengano lette come elementi della tabella.
```md
Primo titolo | Secondo titolo
------------ | ------------
[[Formatta le tue note\|Formatta]] | [[Tasti rapidi\|scorciatoie]]
```
Primo titolo | Secondo titolo
------------ | ------------
[[Formatta le tue note\|Formatta]] | [[Tasti rapidi\|scorciatoie]]
---
### Testo barrato
```md
Ogni parola che viene racchiusa tra due tilde (come ~~questa~~) apparirà barrata.
```
Ogni parola che viene racchiusa tra due tilde (come ~~questa~~) apparirà barrata.
---
### Testo evidenziato
```md
Racchiudere le parole tra due simboli di uguale ==per evidenziare il testo==.
```
Racchiudere le parole tra due simboli di uguale ==per evidenziare il testo==.
---
### Note a piè di pagina
```md
Questa è una nota a piè di pagina,[^1] questa è un'altra nota più lunga.[^bignote]
[^1]: davvero significativa!
[^bignote]: Eccone una con paragrafi multipli e un blocco di codice.
Indenta i paragrafi per includerli nella nota a piè di pagina.
`{ il mio codice }`
Puoi aggiungere tutti i paragrafi che desideri.
```
Questa è una nota a piè di pagina,[^1] questa è un'altra nota più lunga.[^bignote]
[^1]: davvero significativa!
[^bignote]: Eccone una con paragrafi multipli e un blocco di codice.
Indenta i paragrafi per includerli nella nota a piè di pagina.
`{ il mio codice }`
Puoi aggiungere tutti i paragrafi che desideri.
```md
È possibile utilizzare le note a piè di pagina anche in linea. ^[in questo caso il circonflesso è posto al di fuori delle parentesi quadre.]
```
È possibile utilizzare le note a piè di pagina anche in linea. ^[in questo caso il circonflesso è posto al di fuori delle parentesi quadre.]
### Matematica
```md
$$\begin{vmatrix}a & b\\
c & d
\end{vmatrix}=ad-bc$$
```
$$\begin{vmatrix}a & b\\
c & d
\end{vmatrix}=ad-bc$$
È anche possibile inserire espressioni matematiche in linea come $e^{2i\pi} = 1$ .
### Diagrammi
Obsidian usa [Mermaid](https://mermaid-js.github.io/) per gestire diagrammi e grafici. Mermaid ha [un utile editor live](https://mermaid-js.github.io/mermaid-live-editor).
<pre><code>```mermaid
sequenceDiagram
Alice->>+Gianni: Ciao Gianni, come stai?
Alice->>+Gianni: Gianni, riesci a sentirmi?
Gianni-->>-Alice: Ciao Alice, ti sento!
Gianni-->>-Alice: Sto benissimo!
```</code></pre>
```mermaid
sequenceDiagram
Alice->>+Gianni: Ciao Gianni, come stai?
Alice->>+Gianni: Gianni, riesci a sentirmi?
Gianni-->>-Alice: Ciao Alice, ti sento!
Gianni-->>-Alice: Sto benissimo!
```
## Note degli sviluppatori
CI sforziamo di fornire il massimo delle funzionalità senza interrompere la compatibilità di alcun formato esistente, per questo utilizziamo una combinazione un poco meno ortodossa di sintassi Markdown. Per la maggior parte si tratta di CommonMark, con l'aggiunta di alcune funzionalità da GitHub Flavored Markdown (GFM), il supporto a LaTeX e una sintassi d'incorporamento personalizzata. Ulteriori informazioni su [[Formati di file accettati]].

View File

@ -0,0 +1,80 @@
---
Title: Principles for Dealing with the Changing World Order
---
# [[Principles for Dealing with the Changing World Order]]
### 1. How to anticipate the future by studing the past
**currency devaluation**: Back then paper dollars were also linked to gold which the us was running out of because it was spending more paper money checks then it had gold to exchange for them. Breaking the link to gold allowed the US to speding more than it erned, simply by printing more paper dollars, and the value of each dollar fell. Without a corrispendence in productinity, all this money went to buy lots of stocks gold and commodities and causes their price to rise!!
The excact same things happend many many times before:
- 2008: leeman Brother
- 1971: Nixon
- 1933: Roosvelt
- 1850: UK
- 1650: Netherlands
When governament spent much more than they took in in taxes and conditions got bad they ran out of money and they needed more so they printed more.
**Principles**: when central banks print a lot of money to relieve a crisis buy stocks gold and commodities because their value will rise and the value of paper money will fall
**Principles**: to understand what is coming at you you need to understand what happened before you
###### 1.1 What is a Reserver Currency
After WW2 dollar as the world's leading reserve currency a **reserve currency** is a currency that is commonly accepted around the world and having one is a key factor in a country becoming the richest and most powerful empire. And a new world order begins. This is what we define as a **Big Cicle**.
### 2 Big Cicle
If we take the history data, they transpired in overlapping cycles that lasted about 250 years with 10 to 20 year transition periods between them:
###### 2.1 All the cycle of a new World Order
In a nutshell the big cycle typically begins after a major conflict often a war establishes the new leading power and the new world order.
Because no one wants to challenge this power a period of peace and prosperity typically follows as people get used to this peace and prosperity they increasingly bet on it continuing they **borrow money** to do that which eventually leads to a financial bubble.
When most transactions are conducted in its currency it becomes a **reserve currency** (peak of the curve).
Which leads to even more borrowing at the same time this increased prosperity distributes wealth unevenly so the **wealth gap typically grows** between rich and pour.
Eventually the financial bubble bursts which leads to the printing of money and increased internal conflict between the rich and the poor which leads to some form of revolution to redistribute well.
When a new rising power gets strong enough to compete with the dominant power that is having domestic breakdowns external conflicts most typically wars take place.
## 3 The three phase of a typical cycle
Let's describe the typical cycle by dividing it into three phases the rise the top and the decline:
###### 2.1 The rise
- strong education: provides a healthy respect for rules and laws order within society low corruption and enables them to unite behind a common purpose and work well together
- They do this they increasingly shift from producing basic products to innovating and inventing new technologies
- as a result the people in the country become more productive and more competitive in world markets which shows up in their growing economic output and rising share of world trade
- they develop great military strength
- leads to strong income growth which can be used to finance investments in education infrastructure and research and development they must also develop systems to incentivize and empower those that have the ability to make or take wealth
- Because their currency is so widely accepted and frequently used people around the world want to save in it making it the preferred storehold of wealth and thus the world's leading **reserve currency**. having a reserve currency enables the empire to borrow more than other countries.
- they can always print more the exorbitant privilege afforded by the empire's reserve currency leads borrowing to increase and the beginning of a **financial bubble**
###### 2.1 The top
- As a rule as people in these rich and powerful countries earn more that makes them more expensive and less competitive relative to people in other countries who are willing to work for less at the same time people in other countries naturally copy the methods and technologies of the leading power which further reduces the leading power's competitiveness;
- people get used to doing well they increasingly bet on the good times continuing and borrow money to do that which grows into financial bubbles
- naturally the financial gains come unevenly so the **wealth gap grows**. wealth gaps are self-reinforcing because rich people use their greater resourcesto reinforce their powers for example they give greater privileges to their children like better education and they influence the political system to their advantage. as long as the living standards of most people are still rising these gaps and resentments don't boil over into conflict;
- having the world's reserve currency inevitably leads to **borrowing excessively** ,**building up large debts** with foreign lenders while this boosts spending power over the short term. it weakens the country's financial health and **weakens** the currency over the long term.
- In this cycle the richer countries eventually get deeper into debt by borrowing from poorer countries that save more it's one of the early signs of a wealth and powershift. this started in the united states in the 1980s when it had a per capita income 40 times that of china's and started borrowing from chinese who wanted to save in dollars
###### 2.1 The decline
the decline comes from internal economic weakness together with internal fighting or costly external fighting or both:
- when debts become very large and there is an economic downturn and the empire can no longer borrow the money necessary to repay its debts the **financial bubble** bursts
- this forces the country to choose between defaulting on its debts or printing a lot of new money
- that devalues the currency and raises inflation
- when there are bad economic conditions and living standards for most people are declining and there are large wealth values and political gaps internal conflict between the rich and the poor. this leads to political extremism that shows up as populism of the left or the right
- when the move to a strong populous leader who will bring order to the chaos is most likely as conflict within the country escalates it leads to some form of revolution or civil war to redistribute wealth
- this internal conflict makes the empire weak and vulnerable to rising external rivals who seeing this domestic weakness are more inclined to mount a challeng this raises the risk of great international conflict especially if the rival has built up a comparable military
- wars are terribly costly at the same time they produce the tectonic shifts that realign the new waters to the new realities of wealth and power in the world
---
#### Backlinks
List of backlinks:
```dataview
list from [[Principles for Dealing with the Changing World Order]]
```
#### Index
All links leaving a note:
```dataview
list from outgoing([[Principles for Dealing with the Changing World Order]])
```
---

View File

@ -0,0 +1,36 @@
---
Title: Writing in Markdown
---
# 6 keys to write like a PRO 🦑
- The link. of the cheat sheet: [[Learning Obsidian]]
- The tag. [[Learning Obsidian]] cliccando su ctrl+click vedremo tutti i tag con lo stesso nome
- Italic. as you're typing and you want to *emphasize something* you add asterisks.
- Bold. Use it when you want to bring attention to **BIG NOUNS**.
- Lists. I'm already in a list, but I can create even more lists inside the list:
- One #one
- Two
- Three
- Header. You can watch it above. But i can make it
##### smaller
- We can also create list: esy with *ctrl+M*
```md
Questo sembra GitHub vero?
```
## Commands
1. ctrl+link: opens the link
2. **ctrl+e**: from edit to view mode *yeahhh*
3. Open quick switcher citrl+O: it's a fider *boom*
4. ctrl+shift+F: SEARCH everything
5. ctrl+ALT+left or right arrow: andare avanti e indietro tra le pagine
6. ctrl+n: new note
7. ctrl+click on a note: opens a new page note
8. ctrl+3: toggle fold: wrappa tutto il contenuto di un bullet
9. shift+rotella per cambiare pagine **+** shift+click on note to open another one
10. PastenURL: selezionare parola e poi fare copia incolla di un sito. Ex: [Google](https://www.google.it/?hl=it)
12. ctrl 1/2: spostare linea in basso o in altro rispetto le altre
13. Cambiare da lista a bullet list: ctrl+4
14. ctrl+M: creare to do list
15. **Emojii**: windows+"."

View File

@ -1,63 +0,0 @@
---
title: "Callouts"
---
## Callout support
Quartz supports the same Admonition-callout syntax as Obsidian.
This includes
- 12 Distinct callout types (each with several aliases)
- Collapsable callouts
See [documentation on supported types and syntax here](https://help.obsidian.md/How+to/Use+callouts#Types).
## Showcase
> [!EXAMPLE] Examples
>
> Aliases: example
> [!note] Notes
>
> Aliases: note
> [!abstract] Summaries
>
> Aliases: abstract, summary, tldr
> [!info] Info
>
> Aliases: info, todo
> [!tip] Hint
>
> Aliases: tip, hint, important
> [!success] Success
>
> Aliases: success, check, done
> [!question] Question
>
> Aliases: question, help, faq
> [!warning] Warning
>
> Aliases: warning, caution, attention
> [!failure] Failure
>
> Aliases: failure, fail, missing
> [!danger] Error
>
> Aliases: danger, error
> [!bug] Bug
>
> Aliases: bug
> [!quote] Quote
>
> Aliases: quote, cite

View File

@ -1,223 +0,0 @@
---
title: "Configuration"
tags:
- setup
weight: 0
---
## Configuration
Quartz is designed to be extremely configurable. You can find the bulk of the configuration scattered throughout the repository depending on how in-depth you'd like to get.
The majority of configuration can be found under `data/config.yaml`. An annotated example configuration is shown below.
```yaml {title="data/config.yaml"}
# The name to display in the footer
name: Jacky Zhao
# whether to globally show the table of contents on each page
# this can be turned off on a per-page basis by adding this to the
# front-matter of that note
enableToc: true
# whether to by-default open or close the table of contents on each page
openToc: false
# whether to display on-hover link preview cards
enableLinkPreview: true
# whether to render titles for code blocks
enableCodeBlockTitle: true
# whether to render copy buttons for code blocks
enableCodeBlockCopy: true
# whether to render callouts
enableCallouts: true
# whether to try to process Latex
enableLatex: true
# whether to enable single-page-app style rendering
# this prevents flashes of unstyled content and improves
# smoothness of Quartz. More info in issue #109 on GitHub
enableSPA: true
# whether to render a footer
enableFooter: true
# whether backlinks of pages should show the context in which
# they were mentioned
enableContextualBacklinks: true
# whether to show a section of recent notes on the home page
enableRecentNotes: false
# whether to display an 'edit' button next to the last edited field
# that links to github
enableGitHubEdit: true
GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content
# whether to use Operand to power semantic search
# IMPORTANT: replace this API key with your own if you plan on using
# Operand search!
enableSemanticSearch: false
operandApiKey: "REPLACE-WITH-YOUR-OPERAND-API-KEY"
# page description used for SEO
description:
Host your second brain and digital garden for free. Quartz features extremely fast full-text search,
Wikilink support, backlinks, local graph, tags, and link previews.
# title of the home page (also for SEO)
page_title:
"🪴 Quartz 3.2"
# links to show in the footer
links:
- link_name: Twitter
link: https://twitter.com/_jzhao
- link_name: Github
link: https://github.com/jackyzha0
```
### Code Block Titles
To add code block titles with Quartz:
1. Ensure that code block titles are enabled in Quartz's configuration:
```yaml {title="data/config.yaml", linenos=false}
enableCodeBlockTitle: true
```
2. Add the `title` attribute to the desired [code block
fence](https://gohugo.io/content-management/syntax-highlighting/#highlighting-in-code-fences):
```markdown {linenos=false}
```yaml {title="data/config.yaml"}
enableCodeBlockTitle: true # example from step 1
```
```
**Note** that if `{title=<my-title>}` is included, and code block titles are not
enabled, no errors will occur, and the title attribute will be ignored.
### HTML Favicons
If you would like to customize the favicons of your Quartz-based website, you
can add them to the `data/config.yaml` file. The **default** without any set
`favicon` key is:
```html {title="layouts/partials/head.html", linenostart=15}
<link rel="shortcut icon" href="icon.png" type="image/png">
```
The default can be overridden by defining a value to the `favicon` key in your
`data/config.yaml` file. For example, here is a `List[Dictionary]` example format, which is
equivalent to the default:
```yaml {title="data/config.yaml", linenos=false}
favicon:
- { rel: "shortcut icon", href: "icon.png", type: "image/png" }
# - { ... } # Repeat for each additional favicon you want to add
```
In this format, the keys are identical to their HTML representations.
If you plan to add multiple favicons generated by a website (see list below), it
may be easier to define it as HTML. Here is an example which appends the
**Apple touch icon** to Quartz's default favicon:
```yaml {title="data/config.yaml", linenos=false}
favicon: |
<link rel="shortcut icon" href="icon.png" type="image/png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
```
This second favicon will now be used as a web page icon when someone adds your
webpage to the home screen of their Apple device. If you are interested in more
information about the current and past standards of favicons, you can read
[this article](https://www.emergeinteractive.com/insights/detail/the-essentials-of-favicons/).
**Note** that all generated favicon paths, defined by the `href`
attribute, are relative to the `static/` directory.
### Graph View
To customize the Interactive Graph view, you can poke around `data/graphConfig.yaml`.
```yaml {title="data/graphConfig.yaml"}
# if true, a Global Graph will be shown on home page with full width, no backlink.
# A different set of Local Graphs will be shown on sub pages.
# if false, Local Graph will be default on every page as usual
enableGlobalGraph: false
### Local Graph ###
localGraph:
# whether automatically generate a legend
enableLegend: false
# whether to allow dragging nodes in the graph
enableDrag: true
# whether to allow zooming and panning the graph
enableZoom: true
# how many neighbours of the current node to show (-1 is all nodes)
depth: 1
# initial zoom factor of the graph
scale: 1.2
# how strongly nodes should repel each other
repelForce: 2
# how strongly should nodes be attracted to the center of gravity
centerForce: 1
# what the default link length should be
linkDistance: 1
# how big the node labels should be
fontSize: 0.6
# scale at which to start fading the labes on nodes
opacityScale: 3
### Global Graph ###
globalGraph:
# same settings as above
### For all graphs ###
# colour specific nodes path off of their path
paths:
- /moc: "#4388cc"
```
## Styling
Want to go even more in-depth? You can add custom CSS styling and change existing colours through editing `assets/styles/custom.scss`. If you'd like to target specific parts of the site, you can add ids and classes to the HTML partials in `/layouts/partials`.
### Partials
Partials are what dictate what gets rendered to the page. Want to change how pages are styled and structured? You can edit the appropriate layout in `/layouts`.
For example, the structure of the home page can be edited through `/layouts/index.html`. To customize the footer, you can edit `/layouts/partials/footer.html`
More info about partials on [Hugo's website.](https://gohugo.io/templates/partials/)
Still having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).
## Language Support
[CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) comes out of the box with Quartz.
Want to support languages that read from right-to-left (like Arabic)? Hugo (and by proxy, Quartz) supports this natively.
Follow the steps [Hugo provides here](https://gohugo.io/content-management/multilingual/#configure-languages) and modify your `config.toml`
For example:
```toml
defaultContentLanguage = 'ar'
[languages]
[languages.ar]
languagedirection = 'rtl'
title = 'مدونتي'
weight = 1
```

View File

@ -1,17 +0,0 @@
---
title: "Custom Domain"
---
### Registrar
This step is only applicable if you are using a **custom domain**! If you are using a `<YOUR-USERNAME>.github.io` domain, you can skip this step.
For this last bit to take effect, you also need to create a CNAME record with the DNS provider you register your domain with (i.e. NameCheap, Google Domains).
GitHub has some [documentation on this](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site), but the tldr; is to
1. Go to your forked repository (`github.com/<YOUR-GITHUB-USERNAME>/quartz`) settings page and go to the Pages tab. Under "Custom domain", type your custom domain, then click **Save**.
2. Go to your DNS Provider and create a CNAME record that points from your domain to `<YOUR-GITHUB-USERNAME.github.io.` (yes, with the trailing period).
![Example Configuration for Quartz](/notes/images/google-domains.png)*Example Configuration for Quartz*
3. Wait 30 minutes to an hour for the network changes to kick in.
4. Done!

View File

@ -1,66 +0,0 @@
---
title: "Editing Content in Quartz"
tags:
- setup
weight: -4
---
## Editing
Quartz runs on top of [Hugo](https://gohugo.io/) so all notes are written in [Markdown](https://www.markdownguide.org/getting-started/).
### Folder Structure
Here's a rough overview of what's what.
**All content in your garden can found in the `/content` folder.** To make edits, you can open any of the files and make changes directly and save it. You can organize content into any folder you'd like.
**To edit the main home page, open `/content/_index.md`.**
To create a link between notes in your garden, just create a normal link using Markdown pointing to the document in question. Please note that **all links should be relative to the root `/content` path**.
```markdown
For example, I want to link this current document to `notes/config.md`.
[A link to the config page](notes/config.md)
```
Similarly, you can put local images anywhere in the `/content` folder.
```markdown
Example image (source is in content/notes/images/example.png)
![Example Image](/content/notes/images/example.png)
```
You can also use wikilinks if that is what you are more comfortable with!
### Front Matter
Hugo is picky when it comes to metadata for files. Make sure that your title is double-quoted and that you have a title defined at the top of your file like so. You can also add tags here as well.
```yaml
---
title: "Example Title"
tags:
- example-tag
---
Rest of your content here...
```
### Obsidian
I recommend using [Obsidian](http://obsidian.md/) as a way to edit and grow your digital garden. It comes with a really nice editor and graphical interface to preview all of your local files.
This step is **highly recommended**.
> 🔗 Step 3: [How to setup your Obsidian Vault to work with Quartz](notes/obsidian.md)
## Previewing Changes
This step is purely optional and mostly for those who want to see the published version of their digital garden locally before opening it up to the internet. This is *highly recommended* but not required.
> 👀 Step 4: [Preview Quartz Changes](notes/preview%20changes.md)
For those who like to live life more on the edge, viewing the garden through Obsidian gets you pretty close to the real thing.
## Publishing Changes
Now that you know the basics of managing your digital garden using Quartz, you can publish it to the internet!
> 🌍 Step 5: [Hosting Quartz online!](notes/hosting.md)
Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).

View File

@ -1,92 +0,0 @@
---
title: "Deploying Quartz to the Web"
tags:
- setup
weight: -1
aliases:
- hosting
---
## Hosting on GitHub Pages
Quartz is designed to be effortless to deploy. If you forked and cloned Quartz directly from the repository, everything should already be good to go! Follow the steps below.
### Enable GitHub Actions
By default, GitHub disables workflows from running automatically on Forked Repostories. Head to the 'Actions' tab of your forked repository and Enable Workflows to setup deploying your Quartz site!
![Enable GitHub Actions](notes/images/github-actions.png)*Enable GitHub Actions*
### Enable GitHub Pages
Head to the 'Settings' tab of your forked repository and go to the 'Pages' tab.
1. (IMPORTANT) Set the source to deploy from `master` (and not `hugo`) using `/ (root)`
2. Set a custom domain here if you have one!
![Enable GitHub Pages](/notes/images/github-pages.png)*Enable GitHub Pages*
### Pushing Changes
To see your changes on the internet, we need to push it them to GitHub. Quartz is a `git` repository so updating it is the same workflow as you would follow as if it were just a regular software project.
```shell
# Navigate to Quartz folder
cd <path-to-quartz>
# Commit all changes
git add .
git commit -m "message describing changes"
# Push to GitHub to update site
git push origin hugo
```
Note: we specifically push to the `hugo` branch here. Our GitHub action automatically runs everytime a push to is detected to that branch and then updates the `master` branch for redeployment.
### Setting up the Site
Now let's get this site up and running. Never hosted a site before? No problem. Have a fancy custom domain you already own or want to subdomain your Quartz? That's easy too.
Here, we take advantage of GitHub's free page hosting to deploy our site. Change `baseURL` in `/config.toml`.
Make sure that your `baseURL` has a trailing `/`!
[Reference `config.toml` here](https://github.com/jackyzha0/quartz/blob/hugo/config.toml)
```toml
baseURL = "https://<YOUR-DOMAIN>/"
```
If you are using this under a subdomain (e.g. `<YOUR-GITHUB-USERNAME>.github.io/quartz`), include the trailing `/`. **You need to do this especially if you are using GitHub!**
```toml
baseURL = "https://<YOUR-GITHUB-USERNAME>.github.io/quartz/"
```
Change `cname` in `/.github/workflows/deploy.yaml`. Again, if you don't have a custom domain to use, you can use `<YOUR-USERNAME>.github.io`.
Please note that the `cname` field should *not* have any path `e.g. end with /quartz` or have a trailing `/`.
[Reference `deploy.yaml` here](https://github.com/jackyzha0/quartz/blob/hugo/.github/workflows/deploy.yaml)
```yaml {title=".github/workflows/deploy.yaml"}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # this can stay as is, GitHub fills this in for us!
publish_dir: ./public
publish_branch: master
cname: <YOUR-DOMAIN>
```
Have a custom domain? [Learn how to set it up with Quartz ](notes/custom%20Domain.md).
### Ignoring Files
Only want to publish a subset of all of your notes? Don't worry, Quartz makes this a simple two-step process.
❌ [Excluding pages from being published](notes/ignore%20notes.md)
---
Now that your Quartz is live, let's figure out how to make Quartz really *yours*!
> Step 6: 🎨 [Customizing Quartz](notes/config.md)
Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).

View File

@ -1,31 +0,0 @@
---
title: "Ignoring Notes"
---
### Quartz Ignore
Edit `ignoreFiles` in `config.toml` to include paths you'd like to exclude from being rendered.
```toml
...
ignoreFiles = [
"/content/templates/*",
"/content/private/*",
"<your path here>"
]
```
`ignoreFiles` supports the use of Regular Expressions (RegEx) so you can ignore patterns as well (e.g. ignoring all `.png`s by doing `\\.png$`).
To ignore a specific file, you can also add the tag `draft: true` to the frontmatter of a note.
```markdown
---
title: Some Private Note
draft: true
---
...
```
More details in [Hugo's documentation](https://gohugo.io/getting-started/configuration/#ignore-content-and-data-files-when-rendering).
### Global Ignore
However, just adding to the `ignoreFiles` will only prevent the page from being access through Quartz. If you want to prevent the file from being pushed to GitHub (for example if you have a public repository), you need to also add the path to the `.gitignore` file at the root of the repository.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -1,32 +0,0 @@
---
title: "Obsidian Vault Integration"
tags:
- setup
weight: -3
---
## Setup
Obsidian is the preferred way to use Quartz. You can either create a new Obsidian Vault or link one that your already have.
### New Vault
If you don't have an existing Vault, [download Obsidian](https://obsidian.md/) and create a new Vault in the `/content` folder that you created and cloned during the [setup](notes/setup.md) step.
### Linking an existing Vault
The easiest way to use an existing Vault is to copy all of your files (directory and hierarchies intact) into the `/content` folder.
## Settings
Great, now that you have your Obsidian linked to your Quartz, let's fix some settings so that they play well.
1. Under Options > Files and Links, set the New link format to always use Absolute Path in Vault.
2. Go to Settings > Files & Links > Turn "on" automatically update internal links.
![Obsidian Settings](/notes/images/obsidian-settings.png)*Obsidian Settings*
## Templates
Inserting front matter everytime you want to create a new Note gets annoying really quickly. Luckily, Obsidian supports templates which makes inserting new content really easily.
**If you decide to overwrite the `/content` folder completely, don't remove the `/content/templates` folder!**
Head over to Options > Core Plugins and enable the Templates plugin. Then go to Options > Hotkeys and set a hotkey for 'Insert Template' (I recommend `[cmd]+T`). That way, when you create a new note, you can just press the hotkey for a new template and be ready to go!
> 👀 Step 4: [Preview Quartz Changes](notes/preview%20changes.md)

View File

@ -1,17 +0,0 @@
---
title: "Quartz Philosophy"
---
> “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
## Why Quartz?
Hosting a public digital garden isn't easy. There are an overwhelming number of tutorials, resources, and guides for tools like [Notion](https://www.notion.so/), [Roam](https://roamresearch.com/), and [Obsidian](https://obsidian.md/), yet none of them have super easy to use *free* tools to publish that garden to the world.
I've personally found that
1. It's nice to access notes from anywhere
2. Having a public digital garden invites open conversations
3. It makes keeping personal notes and knowledge *playful and fun*
I was really inspired by [Bianca](https://garden.bianca.digital/) and [Joel](https://joelhooks.com/digital-garden)'s digital gardens and wanted to try making my own.
**The goal of Quartz is to make hosting your own public digital garden free and simple.** You don't even need your own website. Quartz does all of that for you and gives your own little corner of the internet.

View File

@ -1,37 +0,0 @@
---
title: "Preview Changes"
tags:
- setup
weight: -2
---
If you'd like to preview what your Quartz site looks like before deploying it to the internet, here's exactly how to do that!
Note that both of these steps need to be completed.
## Install `hugo-obsidian`
This step will generate the list of backlinks for Hugo to parse. Ensure you have [Go](https://golang.org/doc/install) (>= 1.16) installed.
```bash
# Install and link `hugo-obsidian` locally
go install github.com/jackyzha0/hugo-obsidian@latest
```
If you are running into an error saying that `command not found: hugo-obsidian`, make sure you set your `GOPATH` correctly! This will allow your terminal to correctly recognize hugo-obsidian as an executable.
Afterwards, start the Hugo server as shown above and your local backlinks and interactive graph should be populated!
## Installing Hugo
Hugo is the static site generator that powers Quartz. [Install Hugo with "extended" Sass/SCSS version](https://gohugo.io/getting-started/installing/) first. Then,
```bash
# Navigate to your local Quartz folder
cd <location-of-your-local-quartz>
# Start local server
make serve
# View your site in a browser at http://localhost:1313/
```
> 🌍 Step 5: [Hosting Quartz online!](notes/hosting.md)

View File

@ -1,50 +0,0 @@
---
title: "Search"
---
Quartz supports two modes of searching through content.
## Full-text
Full-text search is the default in Quartz. It produces results that *exactly* match the search query. This is easier to setup but usually produces lower quality matches.
```yaml {title="data/config.yaml"}
# the default option
enableSemanticSearch: false
```
## Natural Language
Natural language search is powered by [Operand](https://operand.ai/). It understands language like a person does and finds results that best match user intent. In this sense, it is closer to how Google Search works.
Natural language search tends to produce higher quality results than full-text search.
Here's how to set it up.
1. Create an Operand Account on [their website](https://operand.ai/).
2. Go to Dashboard > Settings > Integrations.
3. Follow the steps to setup the GitHub integration. Operand needs access to GitHub in order to index your digital garden properly!
4. Head over to Dashboard > Objects and press `(Cmd + K)` to open the omnibar and select 'Create Collection'.
1. Set the 'Collection Label' to something that will help you remember it.
2. You can leave the 'Parent Collection' field empty.
5. Click into your newly made Collection.
1. Press the 'share' button that looks like three dots connected by lines.
2. Set the 'Interface Type' to `object-search` and click 'Create'.
3. This will bring you to a new page with a search bar. Ignore this for now.
6. Go back to Dashboard > Settings > API Keys and find your Quartz-specific Operand API key under 'Other keys'.
1. Copy the key (which looks something like `0e733a7f-9b9c-48c6-9691-b54fa1c8b910`).
2. Open `data/config.yaml`. Set `enableSemanticSearch` to `true` and `operandApiKey` to your copied key.
```yaml {title="data/config.yaml"}
# the default option
enableSemanticSearch: true
operandApiKey: "0e733a7f-9b9c-48c6-9691-b54fa1c8b910"
```
7. Make a commit and push your changes to GitHub. See the [[notes/hosting|hosting]] page if you haven't done this already.
1. This step is *required* for Operand to be able to properly index your content.
2. Head over to Dashboard > Objects and select the collection that you made earlier
8. Press `(Cmd + K)` to open the omnibar again and select 'Create GitHub Repo'
1. Set the 'Repository Label' to `Quartz`
2. Set the 'Repository Owner' to your GitHub username
3. Set the 'Repository Ref' to `master`
4. Set the 'Repository Name' to the name of your repository (usually just `quartz` if you forked the repository without changing the name)
5. Leave 'Root Path' and 'Root URL' empty
9. Wait for your repository to index and enjoy natural language search in Quartz! Operand refreshes the index every 2h so all you need to do is just push to GitHub to update the contents in the search.

View File

@ -1,32 +0,0 @@
---
title: "Setup"
tags:
- setup
weight: -5
---
## Making your own Quartz
Setting up Quartz requires a basic understanding of `git`. If you are unfamiliar, [this resource](https://resources.nwplus.io/2-beginner/how-to-git-github.html) is a great place to start!
### Forking
> A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
Navigate to the GitHub repository for the Quartz project:
📁 [Quartz Repository](https://github.com/jackyzha0/quartz)
Then, Fork the repository into your own GitHub account. If you don't have an account, you can make on for free [here](https://github.com/join). More details about forking a repo can be found on [GitHub's documentation](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
### Cloning
After you've made a fork of the repository, you need to download the files locally onto your machine. Ensure you have `git`, then type the following command replacing `YOUR-USERNAME` with your GitHub username.
```shell
git clone https://github.com/YOUR-USERNAME/quartz
```
## Editing
Great! Now you have everything you need to start editing and growing your digital garden. If you're ready to start writing content already, check out the recommended flow for editing notes in Quartz.
> ✏️ Step 2: [Editing Notes in Quartz](notes/editing.md)
Having problems? Checkout our [FAQ and Troubleshooting guide](notes/troubleshooting.md).

View File

@ -1,18 +0,0 @@
---
title: "Showcase"
---
Want to see what Quartz can do? Here are some cool community gardens :)
- [Quartz Documentation (this site!)](https://quartz.jzhao.xyz/)
- [Jacky Zhao's Garden](https://jzhao.xyz/)
- [Scaling Synthesis - A hypertext research notebook](https://scalingsynthesis.com/)
- [AWAGMI Intern Notes](https://notes.awagmi.xyz/)
- [Shihyu's PKM](https://shihyuho.github.io/pkm/)
- [Chloe's Garden](https://garden.chloeabrasada.online/)
- [SlRvb's Site](https://slrvb.github.io/Site/)
- [Course notes for Information Technology Advanced Theory](https://a2itnotes.github.io/quartz/)
- [Brandon Boswell's Garden](https://brandonkboswell.com)
- [Siyang's Courtyard](https://siyangsun.github.io/courtyard/)
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/hugo/content/notes/showcase.md)!

View File

@ -1,81 +0,0 @@
---
title: "Troubleshooting and FAQ"
---
Still having trouble? Here are a list of common questions and problems people encounter when installing Quartz.
While you're here, join our [Discord](https://discord.gg/cRFFHYye7t) :)
### Does Quartz have Latex support?
Yes! See [CJK + Latex Support (测试)](notes/CJK%20+%20Latex%20Support%20(测试).md) for a brief demo.
### Can I use \<Obsidian Plugin\> in Quartz?
Unless it produces direct Markdown output in the file, no. There currently is no way to bundle plugin code with Quartz.
The easiest way would be to add your own HTML partial that supports the functionality you are looking for.
### My GitHub pages is just showing the README and not Quartz
Make sure you set the source to deploy from `master` (and not `hugo`) using `/ (root)`! See more in the [hosting](/notes/hosting) guide
### Some of my pages have 'January 1, 0001' as the last modified date
This is a problem caused by `git` treating files as case-insensitive by default and some of your posts probably have capitalized file names. You can turn this off in your Quartz by running this command.
```shell
# in the root of your Quartz (same folder as config.toml)
git config core.ignorecase true
# or globally (not recommended)
git config --global core.ignorecase true
```
### Can I publish only a subset of my pages?
Yes! Quartz makes selective publishing really easy. Heres a guide on [excluding pages from being published](notes/ignore%20notes.md).
### Can I host this myself and not on GitHub Pages?
Yes! All built files can be found under `/public` in the `master` branch. More details under [hosting](notes/hosting.md).
### `command not found: hugo-obsidian`
Make sure you set your `GOPATH` correctly! This will allow your terminal to correctly recognize `hugo-obsidian` as an executable.
```shell
# Add the following 2 lines to your ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# In your current terminal, to reload the session
source ~/.bash_profile
```
### How come my notes aren't being rendered?
You probably forgot to include front matter in your Markdown files. You can either setup [Obsidian](notes/obsidian.md) to do this for you or you need to manually define it. More details in [the 'how to edit' guide](notes/editing.md).
### My custom domain isn't working!
Walk through the steps in [the hosting guide](notes/hosting.md) again. Make sure you wait 30 min to 1 hour for changes to take effect.
### How do I setup Google Analytics?
You can edit it in `config.toml` and either use a V3 (UA-) or V4 (G-) tag.
### How do I change the content on the home page?
To edit the main home page, open `/content/_index.md`.
### How do I change the colours?
You can change the theme by editing `assets/custom.scss`. More details on customization and themeing can be found in the [customization guide](notes/config.md).
### How do I add images?
You can put images anywhere in the `/content` folder.
```markdown
Example image (source is in content/notes/images/example.png)
![Example Image](/content/notes/images/example.png)
```
### My Interactive Graph and Backlinks aren't up to date
By default, the `linkIndex.json` (which Quartz needs to generate the Interactive Graph and Backlinks) are not regenerated locally. To set that up, see the guide on [local editing](notes/editing.md)
### Can I use React/Vue/some other framework?
Not out of the box. You could probably make it work by editing `/layouts/_default/single.html` but that's not what Quartz is designed to work with. 99% of things you are trying to do with those frameworks you can accomplish perfectly fine using just vanilla HTML/CSS/JS.
## Still Stuck?
Quartz isn't perfect! If you're still having troubles, file an issue in the GitHub repo with as much information as you can reasonably provide. Alternatively, you can message me on [Twitter](https://twitter.com/_jzhao) and I'll try to get back to you as soon as I can.
🐛 [Submit an Issue](https://github.com/jackyzha0/quartz/issues)

View File

@ -1,34 +0,0 @@
---
title: "Updating"
aliases:
- update
---
Haven't updated Quartz in a while and want all the cool new optimizations? On Unix/Mac systems you can run the following command for a one-line update! This command will show you a log summary of all commits since you last updated, press `q` to acknowledge this. Then, it will show you each change in turn and press `y` to accept the patch or `n` to reject it. Usually you should press `y` for most of these unless it conflicts with existing changes you've made!
```shell
make update
```
Or, if you don't want the interactive parts and just want to force update your local garden (this assumed that you are okay with some of your personalizations been overriden!)
```shell
make update-force
```
Or, manually checkout the changes yourself.
> [!warning] Warning!
>
> If you customized the files in `data/`, or anything inside `layouts/`, your customization may be overwritten!
> Make sure you have a copy of these changes if you don't want to lose them.
```shell
# add Quartz as a remote host
git remote add upstream git@github.com:jackyzha0/quartz.git
# index and fetch changes
git fetch upstream
git checkout -p upstream/hugo -- layouts .github Makefile assets/js assets/styles/base.scss assets/styles/darkmode.scss config.toml data
```