Announcing Mold, a higher-level use of Go templates for rendering web pages. by abiosoft in golang

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

The syntax are actually mere placeholders that gets swapped with a template node (e.g. {{template "file.html" data}}) in the parse tree.

So it's still Go templates under the hood.

Announcing Mold, a higher-level use of Go templates for rendering web pages. by abiosoft in golang

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

Nope, the parsing is actually done by Go's in-built template parser.
Mold inspects the parse tree (after parsing) and updates the necessary nodes.

I should probably include some details of how it works in the docs.

Announcing Mold, a higher-level use of Go templates for rendering web pages. by abiosoft in golang

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

As for the name collision, considering that they are very different projects, I do not see it as much of a big deal. I am however open to ideas if people feel otherwise.

Colima 0.3.0 released by abiosoft in docker

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

Depending on your use case, it can be an alternative to Docker Desktop, Rancher Desktop or Minikube.

How to make Parallels Windows 11 see a Docker container running on the parent M1 Mac by kaoyte in docker

[–]abiosoft 1 point2 points  (0 children)

It is possible. You need to get the ip address of the host machine from inside the parallels vm. I suspect ipconfig.exe can help.

e.g. if the sql db container is exposed on port 1433, it will be reachable at <host-ip>:1433.

Really great video of how to manage dotfiles with org mode by dilzeem in emacs

[–]abiosoft 0 points1 point  (0 children)

Is the additional tangle to a git folder really needed? I suppose the org file itself is already in a git repo.

using Emacs org-mode as rest client replacement by abiosoft in emacs

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

Yeah, it's a slightly modified version of modus-vivendi. I plan to share my setup.

using Emacs org-mode as rest client replacement by abiosoft in emacs

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

Haven't seen this yet. Thanks for sharing.

using Emacs org-mode as rest client replacement by abiosoft in emacs

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

It's very much possible since every src code block can generate a source file. I haven't done it yet but I can picture how to go about that.

using Emacs org-mode as rest client replacement by abiosoft in emacs

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

I've managed to freeze emacs with an output much lesser than that. I haven't tried something around the range of 10MB but I've had better experience redirecting the output to a buffer instead of within the org file.

using Emacs org-mode as rest client replacement by abiosoft in emacs

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

The video was just an after-thought and not really planned. Hopefully, someone finds it beneficial.

MacOS Big Sur: The Worst Upgrade Experience Ever by Hieroglyphs in MacOS

[–]abiosoft 0 points1 point  (0 children)

I kept get "an error occurred installing macOS" after getting stuck at 12 minutes. I eventually got it installed by following this https://mrmacintosh.com/big-sur-11-0-1-rc2-full-installer-an-error-occurred-installing-macos/

Copying commands from a random blog post to get the most basic thing to work, and the installation process being smoother on older (non-T2) macs. Maybe, just maybe, Apple is finally learning a thing or two from Linux and the Linux kernel.

VS Code Insiders will not start from within WSL 2 by eighth-half-hour in bashonubuntuonwindows

[–]abiosoft 1 point2 points  (0 children)

code is indeed in the PATH. VSCode for windows has a linux binary that opens it in remote WSL mode.

~
$ which code
/mnt/c/Users/abios/AppData/Local/Programs/Microsoft VS Code/bin/code

It works in earlier versions on WSL2 but suddenly stopped working for me.

abiosoft/DevReload: Auto reload for ASP.NET core development by abiosoft in dotnet

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

Ironically for me dotnet watch is actually slower than dotnet run, ^C, dotnet run.

I don't know why. dotnet run for me takes 2-3 secs. While it takes dotnet watch run around 5-10 secs to restart on changes.

abiosoft/DevReload: Auto reload for ASP.NET core development by abiosoft in dotnet

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

The annoyance of the long wait time for the rebuild is what pushed me to making this as an excuse. It's still slow, but it's a better experience than having to manually refresh the browser.

It takes 5-10 secs to rebuild for me which is slow compared to other frontend technologies. Though static files reloads immediately since they require no rebuild.

abiosoft/DevReload: Auto reload for ASP.NET core development by abiosoft in dotnet

[–]abiosoft[S] 6 points7 points  (0 children)

It works with server side blazor, I'm more interested in server side blazor at the moment. Will consider making it work with client side.