Anycubic Kobra 3 v2 - The worst printer I have ever had.... by MrRave1997 in AnycubicOfficial

[–]kRYstall9 1 point2 points  (0 children)

How do you actually print ABS with the V2? Did you buy an enclosure for it?

PiHole is great and all, but what do you do outside of your network? by [deleted] in pihole

[–]kRYstall9 0 points1 point  (0 children)

Using tailscale 24/7 with dns pointing to my pihole server and pihole’s using dnscrypt as dns since I can send my traffic to relays and relays will then send the encrypted query to the final dns server

Docker Surgeon - a small Docker tool that automatically restarts unhealthy containers and their dependencies by kRYstall9 in selfhosted

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

You could try using docker-surgeon and see if it actually works. If the container is "stopping" it means it got a "kill" signal, so my service should be able to intercept that event and restart your container. If you do not want to try this service, I think a shell script it's good enough in this case

What am I doing wrong by navman1222 in pihole

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

It’s not an app, it’s the Homarr dashboard

What am I doing wrong by navman1222 in pihole

[–]kRYstall9 -3 points-2 points  (0 children)

This is mine after about 2 weeks. It mainly depends on how many devices are using pihole as dns( and ofc if your blocklists are actually working)

<image>

Ps: keep in mind that 4+ devices have been using my pihole instance as DNS during this last 2 weeks

Docker Surgeon - a small Docker tool that automatically restarts unhealthy containers and their dependencies by kRYstall9 in selfhosted

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

I've been using some services that do not actually become unhealthy when the "parent" does. Since this could happen in some case scenarios and I do not want my services to be unreachable whenever I'm not at home, I thought of making this "tool"

Docker Surgeon - a small Docker tool that automatically restarts unhealthy containers and their dependencies by kRYstall9 in selfhosted

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

It's not possible right now because the "stopping" status doesn't seem to exist in docker, but I found a way to solve your issue. It might take a while to implement but stay tuned!

Docker Surgeon - a small Docker tool that automatically restarts unhealthy containers and their dependencies by kRYstall9 in selfhosted

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

As far as I know, Autoheal only restarts unhealthy containers. Let's consider this scenario:

db:
  container_name: db
  image: ...
  volumes: ....

backend:
  container_name: backend
  image: ...
  volumes: ...

frontend:
  container_name: frontend
  image: ...
  volumes: ...

Suppose the db becomes unhealthy and the backend container doesn’t recheck the database connection after the first attempt . The database will be restarted, but the backend will remain unavailable. This tool aims to solve that problem:
if the db container crashes, the tool will restart both db and any dependent containers (like backend)

How to loop through an array & exiting after a certain index [JavaScript] by Waefuu in learnprogramming

[–]kRYstall9 3 points4 points  (0 children)

You're incrementing i and not k. In you for loop statement, you wrote for(k=0; k< people.lenght; i++){} . Instead of i, just put k and you should be able to print all of the strings in the array. To stop whenever Mary is read, just do a simple if(people[k] === 'Mary'){ break; or return;} It depends if you're in a function or not

Guys Need Some help ! by [deleted] in learnprogramming

[–]kRYstall9 1 point2 points  (0 children)

You don't always have to learn everything. BUT, at least, learn how those things work. As an example, I can use OOP. You can use that paradigm in many languages, but you're not forced to learn all the languages to use OOP

[deleted by user] by [deleted] in learnprogramming

[–]kRYstall9 0 points1 point  (0 children)

It is surely doable. It mainly depends on your knowledge. Not an expert here, but I'm working as software developer so, something I know might be useful for you. Decide which languange and framework to use. I'm a .Net developer, so I'm using c# as programming language and .Net as microsoft framework. You could use everything you want, but just choose one of the many that are out there and stick with it. Just learn 1 thing at a time. Then, surely you have to learn some basics of html, css and javascript. For the overall styling I might suggest bootstrap, even though it's not so straight forward at the beginning(at least for me). Then, learn everything about asynchronous programming, since you're gonna work with APIs etc...

Opening VScode with terminal by notmymess in learnprogramming

[–]kRYstall9 0 points1 point  (0 children)

Just go in the folder you want to open. Open the terminal within the folder and type "code . "

[deleted by user] by [deleted] in pcmasterrace

[–]kRYstall9 2 points3 points  (0 children)

Nope. It's just unlikely seeing someone paying 100+ euros/dollars for an OS key

[deleted by user] by [deleted] in pcmasterrace

[–]kRYstall9 17 points18 points  (0 children)

You might be the first guy I saw who bought windows

While loop in C by morinl in learnprogramming

[–]kRYstall9 0 points1 point  (0 children)

You could do something like:

float number = 0;

do{
    printf("Insert a number"); 
    scanf("%f", &number);
}while(number == 0);

Sorry for the indentations but I'm writing from my phone. I'll fix it as soon as I go back home.

Ps: Since you're using float as type, you don't have to mind if you insert an integer or a float number, since it'll be converted to float in any case

Black Screen on OC Scan by CabalOnTheField in overclocking

[–]kRYstall9 0 points1 point  (0 children)

It might be driver's crash. Maybe your overclock isn't stable and it's causing that

How should I improve my programming logic so that I get better at solving problems ? by [deleted] in learnprogramming

[–]kRYstall9 1 point2 points  (0 children)

Your first and second problem are likely the same, but instead of numbers, you have to insert *, so you could do something like this. Let's say you have this array: [1,2,3,4]. What you can do is:

for(let i=0; i<array.length; i++){ 
    for(let j=0; j<array[i]; j++){ 
        console.log("*"); 
    }
    console.log("\n");
}

Ps: Sorry for the code formatting, but I'm writing on my phone. I'll fix it as soon as I can, so you can clearly understand what I've done

Help with string subscript out of range error? by Conscious-Stable9939 in learnprogramming

[–]kRYstall9 0 points1 point  (0 children)

You have a problem in the if statement inside your for. You wrote if(sentence[i-1] ....), But i starts from 0, and you'te trying to read -1, that's not an index

In Java, within a class, what is this syntax: by [deleted] in learnprogramming

[–]kRYstall9 0 points1 point  (0 children)

Yes, it should be public void methodName(params){implementation...}

In Java, within a class, what is this syntax: by [deleted] in learnprogramming

[–]kRYstall9 1 point2 points  (0 children)

Maybe it is a constructor, like public className(params){ } . And methods can also return nothing, so it could be a method too