mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

:kitten: 🎉 Kitten is now using the new versioning/deployments system hosted on kittens.small-web.org

This is going to allow us to handle automatic updates of Small Web places rather elegantly.

Installation is also now much faster.

You can find out more about Kitten at codeberg.org/kitten/app#kitten

Known issue: commit links on the Kittens site are 404ing right now. I just opened an issue to see if @forgejo can add support for 6-digit git hashes*

* codeberg.org/forgejo/forgejo/i

PS. Like everything else I do, the Kittens site¹ is free and open source and written in Kitten itself.

So if you’d like to see a real-world example of simple site created in Kitten, head over to:

codeberg.org/kitten/kittens.sm

What you’ll likely notice is just how little code there is for an app with a database + authentication that handles uploads.

(I also just added a View Source link to the bottom of the Kittens site.)

¹ kittens.small-web.org

Codeberg.orgkittens.small-web.orgKitten distribution management place. Handles uploads and downloads of Kitten distributions.
Aral Balkan

Also, if you are looking at the code, notice how I’m persisting and retrieving custom JavaScript objects from the database and generally interacting with the database as I would with any JavaScript object.

e.g., codeberg.org/kitten/kittens.sm

That’s thanks to the built-in JavaScript Database (JSDB) that Kitten uses:

codeberg.org/small-tech/jsdb#j

To see how the custom classes are created, see the database app module:

e.g., codeberg.org/kitten/kittens.sm

Codeberg.orgkittens.small-web.orgKitten distribution management place. Handles uploads and downloads of Kitten distributions.

Finally, please ignore the annoying and incorrect “This file contains ambiguous Unicode characters!” messages on @Codeberg. This is a longstanding @forgejo bug:

codeberg.org/forgejo/forgejo/i

Codeberg.org[BUG] “This file contains ambiguous Unicode characters!” warning should not show for characters inside comments and strings- Forgejo version (or commit ref): The one used on Codeberg.org - Git version: n/a - Operating system: n/a - Database (use `[x]`): n/a - How are you running Forgejo? Codeberg.org ## Description ### What happens Code listing pages show an error: ``` This file contains ambiguous Unicode characters! This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters. ``` When using [proper typographical quotes](https://ar.al/2018/07/18/typographical-typing-habits-for-linux/) in comments (and in strings). E.g., see https://codeberg.org/kitten/app/src/branch/main/examples/kitten-conditionals/index.page.js ### What should happen This warning: 1. Should not show if the characters in question occur inside of string literals or comments. (This will require the feature to be aware of what constitutes comments and what constitutes strings in the languages that are supported.) And/or: 2. Should be configurable. If I don’t want it to show on my repositories I should be able to turn it off. (I want to link to code in my repositories without people being distracted by this.) The more I think about it, the less I feel this feature is necessary in the web view of a repository. It should be the sort of thing your development tools/linter implements. The goal of the web view should be to present the code as well as it can in terms of legibility, etc., to make your Codeberg repository a place you can be proud to link to and encourage others to browse. ## Screenshots ![image](/attachments/5ca706db-96c7-48e2-837c-c2b4869671fa)

Just published a userstyle for the Stylus Firefox extension¹ that removes the ambiguous Unicode character warnings on @Codeberg code listings (for example, when you use proper curly quotes in comments and strings, etc.)

Should work with any @forgejo install if you tweak the domain it pertains to.

userstyles.world/style/13057/r

¹ addons.mozilla.org/en-US/firef

userstyles.worldRemove ambiguous character warnings on Codeberg by aralRemoves the annoying ambiguous character warnings on Codeberg that trigger for curly quotes, etc., in comments and strings.

@aral @Codeberg @forgejo it's possible this is related to CVEs like this one: blog.rust-lang.org/2021/11/01/

But, it's certainly annoying to see warnings that a compiler/interpreter will trip over anyway (e.g. quote symbols), because that's what CI is for

Really should only see warnings/errors for text that is both valid to the compiler, and also conceals code from human review (per the CVE)

blog.rust-lang.orgSecurity advisory for rustc (CVE-2021-42574) | Rust BlogEmpowering everyone to build reliable and efficient software.

@jokeyrhyme In this case, we⚠️ ’re seeing warnings for curly quotes in comments and strings ;)

@Codeberg @forgejo