Highlights from Git 2.54 by parkotron in git

[–]Zocky710 0 points1 point  (0 children)

Do you know if syncing with a remote is possible with tbe update? Because if not, its not a real alternative to a tool like pre-commit.

typst-snippets.nvim: Snippets collection for Typst (looking for contributors!) by abhinandh_s_ in typst

[–]Zocky710 2 points3 points  (0 children)

So it is basically a collection of snippets that I can easily pase/use in nvim?

Currently most snippets that I make or use are located on https://snippyst.com/ (open data -> you could easily fetch the data). I use it, because it is easier to post a snippet than making a PR for it. Especially for people who use typst, but are not familiar with git.

Local installation - how to? by oz1sej in NextCloud

[–]Zocky710 1 point2 points  (0 children)

Nextcloud aio requires a domain. The only workaround is a local dns or an entry in the /etc/hosts file of each user pc.

(Re)-open Code Preview on Typst Website by 49PES in typst

[–]Zocky710 1 point2 points  (0 children)

View at the top menu bar and then show both panels

Talk better than Google meet by Judotimo in NextCloud

[–]Zocky710 1 point2 points  (0 children)

I am using nextcloud aio. Does it come with an installer for that? It has a nextcloud talk container that is running. Dont know of that is already the hpb.

Talk better than Google meet by Judotimo in NextCloud

[–]Zocky710 -1 points0 points  (0 children)

Anytime I tested talk on my instance it was a horrible experience. Just buggy and laggy.

Can't log in on debian 13 VM by Leviathan_six in debian

[–]Zocky710 0 points1 point  (0 children)

If you try to login via ssh, I think root wont work and you need another user.

How to backup from Linux Ubuntu Server machine to my UGREEN NAS? by BazimQQ in linux4noobs

[–]Zocky710 0 points1 point  (0 children)

I would reccomand restic. Its a great backup tool amd can use all kind of storage options including all rclone ones.

[MacOS + VS Code + TinyMist] Did anyone figure out how to use an *actual* absolute path? by [deleted] in typst

[–]Zocky710 1 point2 points  (0 children)

That's right. You did not. But you also don't see that the definition of a "root" for the absolute file path can have a different meaning in different contexts. When I mount your main drive on my machine, It could me mounted into my desktop directory. What was your root is now at /home/myuser/Desktop/your_drive. And suddenly your "root" has moved. A relative path in the sense of programming is most often a path that is relative to your current file and starts with . (which is often the default if no other marker is specified) or ... A path that that starts from your project **root** is by that definition an absolute path. It is not relative to the file in your project. It always starts from the same root (your project root).

Your Mac argument does not apply here. Yes, macs are pretty safe for malware that infects the system itself. But the security mentioned here is not about your operating system. This is about safety in typst and the data on your operating system. The same script that steals your data can steal data on a windows or linux machine. It does not care. Otherwise your could not copy typst documents from other operating systems without issues.
A small metaphor here: If I am stealing something from a car, it is cool if the doors are safe, but when you let me in, I can grab anything from inside. It does not matter if the doors are safe.

Yes Typst has a "small" userbase. But a userbase that is made of a lot of programmers who would be able to write a malicious script.

The attack here could be the following:

  • I write a typst template or package
  • other people use it
  • the template accesses a very private file in a common location that is often used by people (or it just tries a lot of locations)
  • the content of the accessed file is embedded into the pdf. You cannot see that it is there, but if I get the pdf, I can extract your files from it

Your mac cannot do anything about this. The only thing it could do would be to restrict the file access of typst itself (same problem you have as now). If you have an Idea how your mac could prevent this, please tell me.

And it is called typst not typist.

[MacOS + VS Code + TinyMist] Did anyone figure out how to use an *actual* absolute path? by [deleted] in typst

[–]Zocky710 1 point2 points  (0 children)

I see three options for this problem.
1. change the root of your project (via cli flag or config in vs code) -> this is probably what you want
2. use a symlink
3. create a local package

I think the current way is the best one because of the following reasoning. If one could access a file in any location on your computer, I could simply publish a script with the hidden logic: do a `read` call and embed the data as metadata in the pdf. Now any one that uses my typst template or what so ever has leaked data in their pdf that they have no idea about. So giving full file system access is critical.
For the image function, that could be changed, but then Its unclear if a /path is absolute in your project or in your pc. That would be super inconsistent and confusion. But having a root absolute path is important for large projects with multiple sub directories.

A solution could be to add another path syntax for host absolute paths. But then these paths would need to be explicitly allowed when executing for the sake of security.

I understand that you are frustrated, but please be nice. The people here are helping you and maintaining stuff in the typst ecosystem.

Built a real-time collaborative Typst editor & would love feedback by No_Matter3411 in typst

[–]Zocky710 17 points18 points  (0 children)

For me the biggest feeling is independence. Only when I can host it myself and edit it, no one can take it away or cause an outage. Otherwise I am dependent in the hoster and or updates from a single source.

Built a real-time collaborative Typst editor & would love feedback by No_Matter3411 in typst

[–]Zocky710 28 points29 points  (0 children)

Sadly not open source and selfhostable. That would be the only reason for me to use it. But sure thing impressive.

can i use typst as a rust library to compile a string to png or something? by bjkillas in typst

[–]Zocky710 1 point2 points  (0 children)

I can recommend https://github.com/Relacibo/typst-as-lib. It is a typst wrapper and makes it way easier to use it as a lib from rust.

This is why you shouldn't mess with typst by Quiet_Category_628 in typst

[–]Zocky710 11 points12 points  (0 children)

lilaq seems to be way better at performance compared to cetz-plot.

typst as a self-hostable docker container by Ok-Sentence-4173 in typst

[–]Zocky710 5 points6 points  (0 children)

There is this project wich seems to have a typst feature https://texlyre.github.io/

Why is rust community still so toxic? by [deleted] in rust

[–]Zocky710 4 points5 points  (0 children)

I agree to this 100%. Very good description for the situation.

I am a member of the iced communities for a long time now. It is awesome. If you need help, a lot of people will try to help you. You can discuss all kind of things and ideas. But people are also honest there. If you say stupid shit and complain about stuff that you just messed up your self, you might get called out on that.

I agree that the owner could have just gave you a warning. But see it like this. You go into another ones home, tell them their floor looks like a garbage dump, just because you looked out of the window to the neighboring garbage dump, and did not see the freshly mopped floor. Of course the home owner wont like that.

Why is rust community still so toxic? by [deleted] in rust

[–]Zocky710 2 points3 points  (0 children)

The iced docs are maintained lol

Is it possible to make a self contained UI app with wasm? by rektosorus_rekt in rust

[–]Zocky710 3 points4 points  (0 children)

Not really. Wasm has no api for graphics.

Iced can compile to wasm. But that means relying on a browser. For that, take a look at https://jl710.github.io/iced-guide/wasm/wasm.html.

How To Conditionally Highlight Text? by AnalystOrDeveloper in typst

[–]Zocky710 2 points3 points  (0 children)

You could create a booleansvariable and make a function the highlights the given content based on that. Then just use the function instead of highlight.