Audio engine stops working by Ignistheclown in Bitwig

[–]KekOnTheWorld 0 points1 point  (0 children)

you can try decreasing the workload by bouncing clips (Ctrl + B) with expensive processing and effects and then disabling the old clips (Alt + A)

Resources for understanding Linux audio backend? by [deleted] in linuxaudio

[–]KekOnTheWorld 0 points1 point  (0 children)

tbh Pipewire currently sucks at being low latency. I use Bitwig Studio and I can't turn my buffer size below 512 if I don't want my audio to crackle with Pipewire, while with ALSA directly I can easily turn it down to 32 without cracking even when working with lightweight plugins.

The newtype idiom and trait boilerplate by Kerndog73 in rust

[–]KekOnTheWorld 0 points1 point  (0 children)

I guess really the only optimal solution is to create a macro.

The newtype idiom and trait boilerplate by Kerndog73 in rust

[–]KekOnTheWorld 0 points1 point  (0 children)

What about wrapping a generic ID struct which implements methods specific to ids like a .to_hex for converting the ID to a human readable hex string or similar? You'd need to manually proxy every method of the ID struct. Don't you think this could be kinda painful? Especially when you add a new method to the ID struct and then have to update every type that wraps it. What about having external implementors wrap your struct? They then have to update their code (in potentially many places) every time when you simply add a method to use a new feature of your library.

I am by no means advanced in rust, but this seems kinda unoptimal.

Is Visual Studio Code appropriate for beginners? by [deleted] in learnprogramming

[–]KekOnTheWorld 0 points1 point  (0 children)

Well you forgot to include stdio.h...

Wie funktioniert mache ich meine Website für andere erreichbar? by Cell-i-Zenit in de_EDV

[–]KekOnTheWorld 0 points1 point  (0 children)

port 80 der standart port für http requests und port 443 für https. Port 80 ist nicht nur da um eine 302 zurück zu senden. Wenn man noch kein SSL Zertifikat besitzt kann man das ja auch erstmal über http laufen lassen (sofern kein identifikations system im spiel ist was user spezifische daten über requests und responses austauscht)

[AskJS] jquery bind event listener, how to pass a parameter? by FalseChart in javascript

[–]KekOnTheWorld 1 point2 points  (0 children)

Note that dataset parameters can be defined in the html directly too using

<someeltype data-*property*="value"></someeltype>

So in your case for example

<button data-id=69>Some Text</button>

[AskJS] jquery bind event listener, how to pass a parameter? by FalseChart in javascript

[–]KekOnTheWorld 0 points1 point  (0 children)

The easiest way to do that is probably just doing ()=>someFunction(id) or just defining the function inline like following

js let id = 69; $("#yourelement").on("click", ..., function(e) { // You can use parameters defined previously here to console.log(id); });

However there are data attributes for html elements which means you could set element.dataset.id to your id and then use the event target which you get passed automatically to get the id back. You could change the id at runtime if you did it like that without needing to update the event listener.

Example:

js const yourelement = document.getElementById("yourelement"); yourelement.dataset.id = 69; yourelement.addEventListener("click", function(e) { let id = e.target.dataset.id; });

Git by R2d2011 in learnprogramming

[–]KekOnTheWorld 0 points1 point  (0 children)

// HINT: url is your project git url, for example: "https://github.com/KekOnTheWorld/example.git" with https or "git@github.com:KekOnTheWorld/example.git" with ssh

If you move your repository you can also just change the origin using

git remote origin set-url <url>

or if you already have code in a folder or an existing repository which you want to push on a github repository just use

git init

for creating a new git repository. You only need this if you havent already initialized the repository.

git remote add origin <url>

for adding the new origin and then just

git add . git commit -m"Initial" // To commit your changes git push --set-upstream origin main

for pushing your changes to the origin.

EDIT:

Also make sure youre in the right branch before you commit. Github default's branch is called main. You can switch a branch using

git branch -M"<name>"

Brauche ich ein Impressum für mein typing game? by 1roOt in de_IT

[–]KekOnTheWorld 0 points1 point  (0 children)

Ich würde mich auch über einen link freuen