From ceaf24acd391d392e43177cfac1c10f8992ec699 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 16 Aug 2021 16:03:14 +0700 Subject: Add webp alternative to reduce loading time Also, edit CSS version to clear cache --- content/posts/2021-05-30-css-stylus.md | 5 +- content/posts/2021-06-21-ipwhl-update.md | 65 ++++++++++++--------- content/posts/2021-07-03-decentral-contribution.md | 6 +- content/posts/badwolf-ish.png | Bin 97272 -> 0 bytes content/works.md | 5 +- content/works/axuy.png | Bin 2694045 -> 0 bytes content/works/wikt-cli.png | Bin 535450 -> 0 bytes layouts/partials/head-extra.html | 10 ++-- static/android-chrome-192x192.png | Bin 0 -> 1510 bytes static/android-chrome-512x512.png | Bin 0 -> 3768 bytes static/apple-touch-icon.png | Bin 0 -> 1350 bytes static/favicon-16x16.png | Bin 0 -> 217 bytes static/favicon-32x32.png | Bin 0 -> 296 bytes static/images/android-chrome-192x192.png | Bin 1510 -> 0 bytes static/images/android-chrome-512x512.png | Bin 3768 -> 0 bytes static/images/apple-touch-icon.png | Bin 1350 -> 0 bytes static/images/axuy.png | Bin 0 -> 2694045 bytes static/images/axuy.webp | Bin 0 -> 65764 bytes static/images/badwolf-ish.png | Bin 0 -> 97272 bytes static/images/badwolf-ish.webp | Bin 0 -> 39470 bytes static/images/begging-for-help.webp | Bin 0 -> 52352 bytes static/images/favicon-16x16.png | Bin 217 -> 0 bytes static/images/favicon-32x32.png | Bin 296 -> 0 bytes static/images/favicon.ico | Bin 15406 -> 0 bytes static/images/git-pr.webp | Bin 0 -> 10754 bytes static/images/site.webmanifest | 1 - static/images/tensegrity.webp | Bin 0 -> 8060 bytes static/images/xkcd-dependency.webp | Bin 0 -> 15424 bytes static/site.webmanifest | 1 + 29 files changed, 56 insertions(+), 37 deletions(-) delete mode 100644 content/posts/badwolf-ish.png delete mode 100644 content/works/axuy.png delete mode 100644 content/works/wikt-cli.png create mode 100644 static/android-chrome-192x192.png create mode 100644 static/android-chrome-512x512.png create mode 100644 static/apple-touch-icon.png create mode 100644 static/favicon-16x16.png create mode 100644 static/favicon-32x32.png delete mode 100644 static/images/android-chrome-192x192.png delete mode 100644 static/images/android-chrome-512x512.png delete mode 100644 static/images/apple-touch-icon.png create mode 100644 static/images/axuy.png create mode 100644 static/images/axuy.webp create mode 100644 static/images/badwolf-ish.png create mode 100644 static/images/badwolf-ish.webp create mode 100644 static/images/begging-for-help.webp delete mode 100644 static/images/favicon-16x16.png delete mode 100644 static/images/favicon-32x32.png delete mode 100644 static/images/favicon.ico create mode 100644 static/images/git-pr.webp delete mode 100644 static/images/site.webmanifest create mode 100644 static/images/tensegrity.webp create mode 100644 static/images/xkcd-dependency.webp create mode 100644 static/site.webmanifest diff --git a/content/posts/2021-05-30-css-stylus.md b/content/posts/2021-05-30-css-stylus.md index 65a9e8f..b5206ae 100644 --- a/content/posts/2021-05-30-css-stylus.md +++ b/content/posts/2021-05-30-css-stylus.md @@ -29,7 +29,10 @@ privacy policy: I've customized my theme to look a bit like my vim theme, badwolf, but with a lighter background: -![badwolf-ish](/posts/badwolf-ish.png) + + + badwolf-ish theme + Here is the CSS I used: diff --git a/content/posts/2021-06-21-ipwhl-update.md b/content/posts/2021-06-21-ipwhl-update.md index 342dd34..c431561 100644 --- a/content/posts/2021-06-21-ipwhl-update.md +++ b/content/posts/2021-06-21-ipwhl-update.md @@ -76,37 +76,59 @@ programming meme groups. It represents an underlying problem of having too many packages depending on each other. PyPI is saner, I would say, but it does have that problem. -![xkcd comics "Dependency": -A tower of blocks is shown. The upper half consists of many tiny blocks -balanced on top of one another to form smaller towers, labeled: -"All modern digital infrastructure" -The blocks rest on larger blocks lower down in the image, finally on a -single large block. This is balanced on top of a set of blocks on the left, -and on the right, a single tiny block placed on its side. This one is -labeled: A project some random person in Nebraska has been thanklessly -maintaining since 2003](/images/xkcd-dependency.png "Such dependency, wow") -*(Image Attribution[^0])* +
+ + + xkcd comics "Dependency":
+  A tower of blocks is shown. The upper half consists of many tiny blocks
+  balanced on top of one another to form smaller towers, labeled:
+  "All modern digital infrastructure"
+  The blocks rest on larger blocks lower down in the image, finally on a
+  single large block. This is balanced on top of a set of blocks on the left,
+  and on the right, a single tiny block placed on its side. This one is
+  labeled: A project some random person in Nebraska has been thanklessly
+  maintaining since 2003 + +
+ Original XKCD comics shared under a + CC-BY-NC 2.5 License.
Transcript retrieved (with some edits) from + + ExplainXKCD shared under a CC-BY-SA 3.0 License. +
+
I would even say if the package dependency were like the above illustration, it would be simple. In reality, *circular dependency* makes it impossible to declare one package without declaring the other, which can be demonstrated by this tensegrity shape: -![A tensegrity structure](/images/tensegrity.png -"Remove any part and it's broken") -*(I drew this!)* +
+ + + a tensegrity structure + +
+ A tensegrity structure, drawn by me +
+
Or, in some cases, such as for `tox`, it can even be like this: -![A tensegrity icosahedron made from straws and string](https://upload.wikimedia.org/wikipedia/commons/5/5d/Icosahedral_tensegrity_structure.png "I don't even know how this work") -*(Image attribution[^3])* +
+ A tensegrity icosahedron made from straws and string +
+ Icosahedral tensegrity structure, retrieved from + WikiMedia, authored by QuarterNotes, + shared under a CC-BY-SA 4.0 License. +
+
# How to help ![Rick from *Rick and Morty* dancing and singing "I'm begging for help"](/images/begging-for-help.png "I hope adult swim don't sue me for this.") -*(Image Attribution[^1])* Due to mentioned problems, it is critical for the project to have contribution. To start, please take a look at [the manual page][ipwhl-man] @@ -142,14 +164,3 @@ Therefore, you can help developing and packaging [docutils-stubs][stub] so we can have newer packages on IPWHL [stub]: https://github.com/tk0miya/docutils-stubs - -[^0]: Original XKCD comics: , shared under a CC-BY-NC - 2.5 License. - Transcript retrieved (with some edits) from ExplainXKCD: - , shared under a - CC-BY-SA 3.0 License. -[^1]: Scene cropped from *Rick and Morty*, a show by *Adult Swim*: - -[^3]: Image retrieved from WikiMedia, authored by QuarterNotes: - , - shared under a CC-BY-SA 4.0 License diff --git a/content/posts/2021-07-03-decentral-contribution.md b/content/posts/2021-07-03-decentral-contribution.md index 854a320..b3cade5 100644 --- a/content/posts/2021-07-03-decentral-contribution.md +++ b/content/posts/2021-07-03-decentral-contribution.md @@ -50,7 +50,10 @@ clicked on the link above, you can see how: 4. feedback/discussion continues out of band, contributor can push updates to the branch, you can pull them down to review -![Illustration of how it works][git-pr-il] + + + Illustration of how it works + In fact, this is described as [one of the common workflows][git-workflow] for git and is what happens behind the scene in GitHub pull request (except a @@ -96,7 +99,6 @@ Disclaimer: I'm not affiliated with codeberg.org, notabug.org, or sr.ht [orig-thread]: https://merveilles.town/@maxc/106502916709836497 [git-pr]: https://merveilles.town/@nasser/106504758341988490 [git-workflow]: https://git-scm.com/about/distributed -[git-pr-il]: /images/git-pr.png [sourcehut]: https://sourcehut.org/ [^0]: I know [services can't be free or non-free](https://www.gnu.org/philosophy/network-services-arent-free-or-nonfree.html), diff --git a/content/posts/badwolf-ish.png b/content/posts/badwolf-ish.png deleted file mode 100644 index b65afd9..0000000 Binary files a/content/posts/badwolf-ish.png and /dev/null differ diff --git a/content/works.md b/content/works.md index 84fdeaf..5408f3d 100644 --- a/content/works.md +++ b/content/works.md @@ -61,7 +61,10 @@ I have transferred the repo ownership to my friend [dinhanhx][dinhanhx-gh] I added face culling and added texture to the 3D shooting game [axuy][axuy] by [McSinyx][cnx]. -![axuy](axuy.png) + + + axuy + The game uses [palace](#palace) for 3D audio by the way. diff --git a/content/works/axuy.png b/content/works/axuy.png deleted file mode 100644 index 7c3cd44..0000000 Binary files a/content/works/axuy.png and /dev/null differ diff --git a/content/works/wikt-cli.png b/content/works/wikt-cli.png deleted file mode 100644 index eed4370..0000000 Binary files a/content/works/wikt-cli.png and /dev/null differ diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html index a3bc7b9..94683e8 100644 --- a/layouts/partials/head-extra.html +++ b/layouts/partials/head-extra.html @@ -1,5 +1,5 @@ - - - - - + + + + + diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 0000000..334222b Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 0000000..d935e97 Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..3dcf481 Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png new file mode 100644 index 0000000..4e2eee7 Binary files /dev/null and b/static/favicon-16x16.png differ diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png new file mode 100644 index 0000000..9ad0725 Binary files /dev/null and b/static/favicon-32x32.png differ diff --git a/static/images/android-chrome-192x192.png b/static/images/android-chrome-192x192.png deleted file mode 100644 index 334222b..0000000 Binary files a/static/images/android-chrome-192x192.png and /dev/null differ diff --git a/static/images/android-chrome-512x512.png b/static/images/android-chrome-512x512.png deleted file mode 100644 index d935e97..0000000 Binary files a/static/images/android-chrome-512x512.png and /dev/null differ diff --git a/static/images/apple-touch-icon.png b/static/images/apple-touch-icon.png deleted file mode 100644 index 3dcf481..0000000 Binary files a/static/images/apple-touch-icon.png and /dev/null differ diff --git a/static/images/axuy.png b/static/images/axuy.png new file mode 100644 index 0000000..7c3cd44 Binary files /dev/null and b/static/images/axuy.png differ diff --git a/static/images/axuy.webp b/static/images/axuy.webp new file mode 100644 index 0000000..195c47d Binary files /dev/null and b/static/images/axuy.webp differ diff --git a/static/images/badwolf-ish.png b/static/images/badwolf-ish.png new file mode 100644 index 0000000..b65afd9 Binary files /dev/null and b/static/images/badwolf-ish.png differ diff --git a/static/images/badwolf-ish.webp b/static/images/badwolf-ish.webp new file mode 100644 index 0000000..65ebed2 Binary files /dev/null and b/static/images/badwolf-ish.webp differ diff --git a/static/images/begging-for-help.webp b/static/images/begging-for-help.webp new file mode 100644 index 0000000..35d9c70 Binary files /dev/null and b/static/images/begging-for-help.webp differ diff --git a/static/images/favicon-16x16.png b/static/images/favicon-16x16.png deleted file mode 100644 index 4e2eee7..0000000 Binary files a/static/images/favicon-16x16.png and /dev/null differ diff --git a/static/images/favicon-32x32.png b/static/images/favicon-32x32.png deleted file mode 100644 index 9ad0725..0000000 Binary files a/static/images/favicon-32x32.png and /dev/null differ diff --git a/static/images/favicon.ico b/static/images/favicon.ico deleted file mode 100644 index d9ff90e..0000000 Binary files a/static/images/favicon.ico and /dev/null differ diff --git a/static/images/git-pr.webp b/static/images/git-pr.webp new file mode 100644 index 0000000..206e31d Binary files /dev/null and b/static/images/git-pr.webp differ diff --git a/static/images/site.webmanifest b/static/images/site.webmanifest deleted file mode 100644 index 45dc8a2..0000000 --- a/static/images/site.webmanifest +++ /dev/null @@ -1 +0,0 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/static/images/tensegrity.webp b/static/images/tensegrity.webp new file mode 100644 index 0000000..37bcfa8 Binary files /dev/null and b/static/images/tensegrity.webp differ diff --git a/static/images/xkcd-dependency.webp b/static/images/xkcd-dependency.webp new file mode 100644 index 0000000..12d9f67 Binary files /dev/null and b/static/images/xkcd-dependency.webp differ diff --git a/static/site.webmanifest b/static/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/static/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file -- cgit 1.4.1