diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-06-04 00:49:33 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-06-04 00:49:33 +0200 |
| commit | 3266ed55e29e65874480e0883ebdd70f789481ce (patch) | |
| tree | 8462618717945a14d85ba4fb3223c30c5a7299ec /src/blog | |
| parent | 3d4eb955c2b589d1cc739065a272be26c933722b (diff) | |
| download | sebastiano.tronto.net-3266ed55e29e65874480e0883ebdd70f789481ce.tar.gz sebastiano.tronto.net-3266ed55e29e65874480e0883ebdd70f789481ce.zip | |
Some fixes to blog post
Diffstat (limited to 'src/blog')
| -rw-r--r-- | src/blog/2022-06-04-gemini/gemini.md | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/blog/2022-06-04-gemini/gemini.md b/src/blog/2022-06-04-gemini/gemini.md index 6d10112..710dd31 100644 --- a/src/blog/2022-06-04-gemini/gemini.md +++ b/src/blog/2022-06-04-gemini/gemini.md | |||
| @@ -54,7 +54,7 @@ Server: OpenBSD httpd | |||
| 54 | 54 | ||
| 55 | So there is some garbage that you don't care about (your browser does), | 55 | So there is some garbage that you don't care about (your browser does), |
| 56 | plus the actual content that you want to view. What exact garbage your | 56 | plus the actual content that you want to view. What exact garbage your |
| 57 | browser and the server should exchange before one ships actual content | 57 | browser and the server should exchange before one ships the actual content |
| 58 | to the other is exactly what the protocol defines. Calling it "garbage" | 58 | to the other is exactly what the protocol defines. Calling it "garbage" |
| 59 | is a bit unfair, because there can be some useful information: for example, | 59 | is a bit unfair, because there can be some useful information: for example, |
| 60 | when the page was last modified, so if your browser has already seen and | 60 | when the page was last modified, so if your browser has already seen and |
| @@ -82,13 +82,13 @@ exactly your browser is sending and receiving this information. Well, http | |||
| 82 | other protocols in turn are on top of other protocols and... basically, | 82 | other protocols in turn are on top of other protocols and... basically, |
| 83 | [it's protocols all the way down](https://en.wikipedia.org/wiki/Internet_protocol_suite). | 83 | [it's protocols all the way down](https://en.wikipedia.org/wiki/Internet_protocol_suite). |
| 84 | 84 | ||
| 85 | (If you are curious where I got the server responses from: the UNIX command | 85 | (*If you are curious where I got the server responses from: the UNIX command |
| 86 | `curl` and the gemini browser [`gmni`](https://git.sr.ht/~sircmpwn/gmni) | 86 | `curl` and the gemini browser [`gmni`](https://git.sr.ht/~sircmpwn/gmni) |
| 87 | have a `-i` option that allows to see the messages received from the server.) | 87 | have a `-i` option that allows to see the messages received from the server.*) |
| 88 | 88 | ||
| 89 | ## The gemtext markup language | 89 | ## The gemtext markup language |
| 90 | 90 | ||
| 91 | Web pages are usually sent to your browser in | 91 | Web pages are usually written in the |
| 92 | [HTML](https://en.wikipedia.org/wiki/HTML) format. There are plenty of | 92 | [HTML](https://en.wikipedia.org/wiki/HTML) format. There are plenty of |
| 93 | resources to learn how HTML works, so I will not explain it here. | 93 | resources to learn how HTML works, so I will not explain it here. |
| 94 | Very briefly, | 94 | Very briefly, |
| @@ -114,11 +114,11 @@ Lists: | |||
| 114 | 114 | ||
| 115 | There is however a fundamental difference in how lines are parsed: in gemtext, | 115 | There is however a fundamental difference in how lines are parsed: in gemtext, |
| 116 | newlines in the code are preserved. This sounds completely normal for anyone | 116 | newlines in the code are preserved. This sounds completely normal for anyone |
| 117 | used to modern word processors, but it is different from how html, markdown | 117 | used to modern word processors, but it is different from how HTML, Markdown |
| 118 | and Latex work, just to name a few. In practice, this means that in gemtext | 118 | and LaTeX work, just to name a few. In practice, this means that in gemtext |
| 119 | you nhave to write your paragraphs as long lines, without inserting line breaks | 119 | you have to write your paragraphs as long lines, without inserting line breaks |
| 120 | unless you want the line to be broken at that specific point. | 120 | unless you want the line to be broken at that specific point. |
| 121 | This may be annoying for people used to old-style line-based editors, such as | 121 | This may be annoying for people who use old-style line-based editors, such as |
| 122 | vi, but it makes parsing a gemtext file much simpler. | 122 | vi, but it makes parsing a gemtext file much simpler. |
| 123 | 123 | ||
| 124 | There are only three other things you can do in gemtext: links, block quotes | 124 | There are only three other things you can do in gemtext: links, block quotes |
| @@ -160,7 +160,7 @@ an external app. | |||
| 160 | ## Gemini in practice | 160 | ## Gemini in practice |
| 161 | 161 | ||
| 162 | Gemini is basically a very stripped down version of the Internet. To me it | 162 | Gemini is basically a very stripped down version of the Internet. To me it |
| 163 | feels like some kind of very nice, underground web. Some *capsules* I like | 163 | feels like some kind of very niche, underground web. Some *capsules* I like |
| 164 | browsing are [smol.pub](gemini://smol.pub) and | 164 | browsing are [smol.pub](gemini://smol.pub) and |
| 165 | [midnight.pub](gemini://midnight.pub). I don't have an account there | 165 | [midnight.pub](gemini://midnight.pub). I don't have an account there |
| 166 | yet, but I think I will make one at some point. I also check the | 166 | yet, but I think I will make one at some point. I also check the |
| @@ -169,7 +169,7 @@ stuff. | |||
| 169 | 169 | ||
| 170 | Basically, if you like the idea of a small and text-only version | 170 | Basically, if you like the idea of a small and text-only version |
| 171 | of the internet, you should check out the gemini space. | 171 | of the internet, you should check out the gemini space. |
| 172 | The page [geminiquickst.art](https://geminiquickst.art) suggests some | 172 | The page [geminiquickst.art](http://geminiquickst.art) suggests some |
| 173 | browsers - I personally use gmnln, but it is more or less an interactive | 173 | browsers - I personally use gmnln, but it is more or less an interactive |
| 174 | curl, you probably won't like it. | 174 | curl, you probably won't like it. |
| 175 | 175 | ||
| @@ -178,13 +178,12 @@ curl, you probably won't like it. | |||
| 178 | I think gemini is an interesting exercise of minimalism, which I like. | 178 | I think gemini is an interesting exercise of minimalism, which I like. |
| 179 | I am not a networking expert, so I don't know what the pros and cons of using | 179 | I am not a networking expert, so I don't know what the pros and cons of using |
| 180 | gemini:// rather than http(s):// are, but I quite like gemtext as a markup | 180 | gemini:// rather than http(s):// are, but I quite like gemtext as a markup |
| 181 | language. I am not too fond of using long lines, because as a terminal editor | 181 | language. I am not too fond of using long lines, but this is not |
| 182 | user I am used to breaking up lines at 70-80 characters, but this is not | ||
| 183 | a deal-breaker. However, I still prefer making use of a few of the extra | 182 | a deal-breaker. However, I still prefer making use of a few of the extra |
| 184 | features that html offers, such as inline formatting. | 183 | features that html offers, such as inline formatting. |
| 185 | 184 | ||
| 186 | I will keep offering this website in gemtext via gemini://, but it will | 185 | I will keep offering this website in gemtext via gemini://, but it will |
| 187 | stay html-first. This means that inline links will look a bit ugly in gemini | 186 | stay html-first. This means that inline links will look a bit ugly in gemini |
| 188 | and, more annoyingly for the few gemini users, I am always going to use | 187 | and, more annoyingly for the few gemini users, I am going to use |
| 189 | http(s) links even when a gemini counterpart is available. | 188 | http(s) links even when a gemini counterpart is available. |
| 190 | 189 | ||
