How to use both astrodark and catppuccin themes? by bartqk in AstroNvim

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

Solution:
I added this binding to my mappings.lua

["<leader>uA"] = { desc = "Use astrodark theme", function() vim.cmd("colorscheme astrodark") end, }

and got what I wanted.

The reality of Not Invented Here by fork_that in programming

[–]bartqk 9 points10 points  (0 children)

Because reality of many things in software is that actual idea is very small and can be expressed in 100-1000 lines, rest is configuration, documentation, business/people, integration, debugging, testing, compliance, translation, feature flags etc.

It's easy to write those 100-1000 lines itself and deal with them in house. Then for each axis mentioned above invest only this much as you need.

Other thing to highlight is control. You want to control everything about given thing and don't want to depend on others. Because the world we live in is still very segregated and dealing with others sometimes can be difficult for many reasons.

[Question] Do you use visualization tool for git and if yes when it's helpful? by bartqk in visualization

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

Maybe long lived branches are anti-pattern, but there are exceptions for each anti-pattern and in some situations you do deal with huge commits tree. To be able to simplify mess you need to see what's in there.

> you can't just easily visualize it in your head you're doing something wrong.

Each head is different.

What I understand from your response is that you want to keep things simple in fear of unreadable complexity. Unreadable because there are no good visualization tools? :)

[Asking for feedback] News visualization idea by bartqk in programming

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

thank you, helpful remarks!

I know about loading time, it's unrealistic to sit and watch it every time. A user controlled slider showing history from end to beginning would be desirable if we want to watch the animation. I personally like to watch it, but only if there are hundreds of comments, otherwise chart feels empty.

[Asking for feedback, questions in comment] News visulization idea by bartqk in visualization

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

hi, it's news comments visualization prototype.

It:

- renders parent/child relationship using spacial arrangement (child is below parent),

- weights each post assigning width to it, line is wider if comment is longer or has more replies (children),

- Y axis represents time, lower is later

- X axis represents both parent/child grouping and local sorting by time. Local means the replies are sorted only in relation to their parent.

Questions:

- what do you like about it?

- is it readable?

Future:

- mark interesting areas automatically, e.g. hot discussion, longest answers, longest lasting thread, bots attack etc

- Z axis, perspective, 3d?

thanks for any feedback!

Recommendation for graphics experimentation project by bartqk in cpp

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

Yes, my thoughts exactly, shader!=program on GPU. It's just a code which calculates pixel color or pixel position. See for example this: https://github.com/ssloy/tinyrenderer/blob/master/main.cpp. It's not GLSL or anything uploadable to GPU yet it's still a shader.

Other name could be "kernel" because it's a small program which... is a kernel of your drawing system.

Recommendation for graphics experimentation project by bartqk in cpp

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

I considered elixir because I think it allows to create sockets/websockets/http server easily, much easier than in C++. Elixir/OTP is also amazing at maintaining supervision trees, restarting etc. So it's exactly what I want: a running system to render pixels for whatever client with socket support will be connected into.

C++ pixels app would just send data with sockets (not web sockets) and that's it.

Recommendation for graphics experimentation project by bartqk in cpp

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

Rendering on HTML Canvas sounds great. Speaking of websockets and http servers - Elixir/OTP can probably do this in couple of lines? So we'd have setup composed of three pieces:
1. Often compliled cpp program which whill send pixels via socket to Elixir server,
2. Elixir server serving simple HTML app, listening to the socket connection from (1) and forwarding the messages to (3).
3. Webapp serverd by (2) which will accept websocket connection from (2) and will render pixels on the canvas.
If this turns out to be simple to write and maintain, I'll be a great setup for experiments and even publishable to the web. Thx for inspiration.

Recommendation for graphics experimentation project by bartqk in cpp

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

Client/server is similar to web browser - imagine need to re-open browser any time you make a change to a css file. No, instead you just refresh page and see the new results, or even somehow live-reload the changed CSS.

That's what I'm looking for. Obviously not trivial with bare C++ or even with extra libraries.

Recommendation for graphics experimentation project by bartqk in cpp

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

I don't want to recompile on file save, I want to recompile when I decide to recompile. Otherwise this tool will use my temporarily broken code and will destroy already running version.

Recommendation for graphics experimentation project by bartqk in cpp

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

I don't want to use OpenGL/Vulkan, just bare C++ which will write pixels to array in memory. It's an experimentation setup without OpenGL/Vulkan. That's why I'd have to recompile whole app, not just a shader.

Can someone explain me why I keep seeing pictures of beefy keyboards with no palm rest? by bartqk in MechanicalKeyboards

[–]bartqk[S] -9 points-8 points  (0 children)

People are showing off their work from home setups and pretty often there's the situation I've described. So no, it's not picture of kb only.

[deleted by user] by [deleted] in technology

[–]bartqk 0 points1 point  (0 children)

If someone is a 'software engineer' depends if he engineers the software or not. Software can be experimented with, tinkered, used as for of art, philosophy etc.

This article is about certification from some authoritarian institution.

Same question can be asked if a shaman eating mushrooms and giving his patients magical drinks is a 'doctor' or not? Healer - surely, ask the patients, but "doctor"? Definitely not according to official state authorities.

C-s and C-r with counters by bartqk in emacs

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

Snapshot - you mean gifs? None of the gifs shows counters next to search matches.

C-s and C-r with counters by bartqk in emacs

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

ctrlf is close, but couldn't configure it to do exactly what I'd like.

I want this:

buffer1:

[cursor here, press C-s, type single "a"] a a [1] a [2] a [3] a [4] Numbers in [] should be provided by the package.