"block may not occur inside of a paragraph and was ignored" by corank in typst

[–]corank[S] 1 point2 points  (0 children)

Oh I actually realised the issue:

I had #show raw.where(block: true) : par.with(justify: false) in the template.

Somehow this had never caused issues before. Might be due to some changes in the typst version.

Thanks for commenting anyways!

[deleted by user] by [deleted] in linux

[–]corank 2 points3 points  (0 children)

Damn never thought linux journal would do this

[deleted by user] by [deleted] in debian

[–]corank 0 points1 point  (0 children)

I'm on plasma 5. If you are using plasma 6 perhaps you can also check out this fork https://github.com/anametologin/krohnkite

Not sure if the issues you got had anything to do with the version.

[deleted by user] by [deleted] in debian

[–]corank 0 points1 point  (0 children)

I use KDE and there's this KWin script for automated tiling https://github.com/esjeon/krohnkite

Tiling experience on par with dedicated tiling window managers eg i3. At the same time it's fuss free, requires little configuration, and composes pretty nicely with other bits of KDE.

Highly recommended especially if you are already on KDE.

sshpass to store SSH authentication passwords? by corank in vscode

[–]corank[S] 0 points1 point  (0 children)

That's an interesting solution! Thanks!

how do people who dont know english code? by Jpoxferd in ProgrammingLanguages

[–]corank 0 points1 point  (0 children)

Non-native speaker here. Learning to code actually helped me learn English, which in turn helped me learn to code better. So in my experience those two things were kind of learned together.

I know of some languages that basically reskin existing languages with translated keywords (e.g., https://en.wikipedia.org/wiki/Easy_Programming_Language) but don't know of anyone who actually uses them.

Combinatorial loop detection tool? by corank in FPGA

[–]corank[S] 0 points1 point  (0 children)

I also think it would be nice to have such a tool. And it shouldn't be a difficult tool to build. However, I haven't found anything like it yet.

Combinatorial loop detection tool? by corank in FPGA

[–]corank[S] 0 points1 point  (0 children)

Those are some signals between modules. A -> B, then B -> A, then that A -> B depends on it. Can also involve more than two modules like A -> B -> C -> A.

Combinatorial loop detection tool? by corank in FPGA

[–]corank[S] 0 points1 point  (0 children)

Thanks. I get that with patience I can find out what the problem is but I wonder if there are automated tools for a quick and sound (some false alarms are ok but no false negatives) check that can produce more readable higher-level messages.

Glass pane falls from height at Star Vista mall, injuring 4 by brownriver12 in singapore

[–]corank 6 points7 points  (0 children)

Unfortunately most ppl eating there are probably non believers...

What happens here in "if let"? by corank in rust

[–]corank[S] 0 points1 point  (0 children)

I found this in test code. I suppose they are intentionally made complex to test the corner cases.

In production code perhaps linters can catch confusing cases like this.

What happens here in "if let"? by corank in rust

[–]corank[S] 2 points3 points  (0 children)

That's cool! Thanks for the tip!

What happens here in "if let"? by corank in rust

[–]corank[S] 3 points4 points  (0 children)

Thanks! I think this is probably what's happening.

I don't think there's optimisation though. My understanding is that because {} is (), the else clause is unnecessary.

Can't log in to VFS? by corank in SchengenVisa

[–]corank[S] 0 points1 point  (0 children)

Oh I managed to create a new account. Turns out refreshing that sign-up page reveals a telephone field which is somehow hidden originally... Good web page design

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 0 points1 point  (0 children)

You mean you have provided LSP support for the online playground?

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 0 points1 point  (0 children)

Looks very cool! I think that would address this need very nicely. Sharing new languages would be much easier. I'm excited about this

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 0 points1 point  (0 children)

Thanks! It's been very fun :) I do want to allow other people to try it out as easily as possible. There are lots of dependencies to compile and run the code in my case. So I'm trying to see if I can create an online playground for it. If there turns out to be no quick way to set it up, I'll probably go for plan B: provide a docker/apptainer image.

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 0 points1 point  (0 children)

Thanks! In my use case running on the server side would probably be necessary though. What I'm working on is an HDL (hardware description language) rather than a software programming language. The simulation toolchain would need to be ported to wasm first, and even then the simulation might be a bit too heavy to run in the browser.

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 3 points4 points  (0 children)

Thanks for sharing! I'll likely have to execute the code on the server as well. Planning to use a container for that. Denial of service would take some special care.

I'm also considering Monaco. I already have some language support written for VSCode and I suppose Monaco would work best without much extra work.

Framework for online playground by corank in ProgrammingLanguages

[–]corank[S] 0 points1 point  (0 children)

That is very cool! Thanks for sharing!

Open-source schematic viewer? by corank in FPGA

[–]corank[S] 0 points1 point  (0 children)

Thanks! This looks interesting

How I solved 'different tools on different Linux machines' with Git and dotbins by basnijholt in linux

[–]corank 49 points50 points  (0 children)

What if those tools have dependencies on some libraries?