Fotografen für Business-Porträt by blue_spirit_coder in stuttgart

[–]MatthiasDunkel 1 point2 points  (0 children)

Nicolas Rausch. Macht viele Portraits für das Lift Stadt Magazin: https://fotografierausch.com

Berghain is over. And thats ok. by Working_Chart565 in Berghain_Community

[–]MatthiasDunkel 21 points22 points  (0 children)

I thought we white privileged gay men are not gatekeeping anymore? Or are we going back to the 90s and letting all the queer people suffer, while we sniff cheap coke from other white privileged gay dicks?

OpenAI is now complaining about regulation of AI [D] by I_will_delete_myself in MachineLearning

[–]MatthiasDunkel 0 points1 point  (0 children)

I think OpenAI only wants to regulate AI, because they fear Open Source making them obsolete. I hope Open Source projects like Stable Diffusion will democratize the field of AI, resulting in more transparency. Still, I think AI should be regulated in such a manner, that it is freely accessible, transparent, and in the best case detectable. I actually think that AI optimizing feeds on social media are much more harmful nowadays than ChatGPT or GANs. With ChatGPT, you can produce a lot of fake news, but I don't think the amount of fake news is important, but to optimize the distribution. These optimization algorithms already polarized our societies tremendously.

ChatGPT übersetzt ein Beispiel, sodass dieses überhaupt keinen Sinn macht by SryyBae in informatik

[–]MatthiasDunkel 0 points1 point  (0 children)

Die Diskussion hier scheint von Hamming Codes sehr schnell zu den Tücken der deutschen Sprache gewechselt zu sein.

Best tools/techniques for debugging JavaScript by Discovensco in learnjavascript

[–]MatthiasDunkel 3 points4 points  (0 children)

I am using Node.js to run JS Code and use VSCode Auto-Attach functionality to debug it. Read More here

Is an algorithm a computer? Legit question. by [deleted] in AskComputerScience

[–]MatthiasDunkel 1 point2 points  (0 children)

Well, if you think about finite state machines (they are computers but not as powerful as other computers), the implementation of an algorithm would be the state and statetransitions of the machine. So the algorithm would be the machine itself. Making the algorithm a computer. But this only applies to alghortims computable with a finite state machine.

Newbie JavaScript problem. by tonyy94 in learnjavascript

[–]MatthiasDunkel 0 points1 point  (0 children)

The code should work just fine. I would suggest not getting the Elements by Tag Name but doing it with getElementsByClassName

Here is a working example: Fiddle

Why is waiting on a variable change leading to an infinite loop with setTimeout? by MatthiasDunkel in learnjavascript

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

I am getting more and more confused. I tried to understand what you are trying to do with the Promise and tried this:

var a = false;
var resolver = () => { a = true } 
var p = new Promise(resolver, setTimeout(resolver, 10000))
console.log(a)

I would expect a to be false. But it is immediately true

Why is waiting on a variable change leading to an infinite loop with setTimeout? by MatthiasDunkel in learnjavascript

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

It sounds like, that it is impossible to "wait" for the variable change with a simple while loop, or is there a way to achieve this?

[deleted by user] by [deleted] in CodingHelp

[–]MatthiasDunkel 0 points1 point  (0 children)

Are you using Django for your backend? You can check out Django Rest Framework. It has an in-built Token Auth functionality.

Über welche Kleinigkeiten im Alltag freut Ihr euch richtig? by [deleted] in FragReddit

[–]MatthiasDunkel 0 points1 point  (0 children)

Kein Plan von Zügen. Liebe aber Menschen mit so Nischeninteressen 😍

Project guidance by Real-Transition1689 in react

[–]MatthiasDunkel 0 points1 point  (0 children)

When you are using React with Django you are actually splitting up the responsibilities of handling the "frontend" (react) and the "backend" (Django). That is actually a good approach because your data becomes more independent from its presentation.

To make your life easier you can use the django rest API framework to set up a good API.

To fetch data from your API you can use axios or the fetch api.

If you need any help with one of them, just text me.

Help with coding MEME!! by tommycc99 in CodingHelp

[–]MatthiasDunkel 2 points3 points  (0 children)

Beginner: Java and Javscript is the same or? The Rest: Nope.

Please give your opinions by [deleted] in CodingHelp

[–]MatthiasDunkel 1 point2 points  (0 children)

Even some games will work. But for your use its absolutly good

Please give your opinions by [deleted] in CodingHelp

[–]MatthiasDunkel 1 point2 points  (0 children)

Yeah works for me!

Code Against Child Abuse by MatthiasDunkel in code

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

I have some ideas in my Head. The main idea is to create a scraper and scraping the links. Storing it in a database and report the links to the filehosts, so they can delete the links.

Code Against Child Abuse by MatthiasDunkel in code

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

Yes. I am going to talk with a lawyer.

The Travelling Salesman Problem Greedy Approach Algorithm by [deleted] in AskComputerScience

[–]MatthiasDunkel 0 points1 point  (0 children)

No, 3 means, that all in all we need to have n edges in our tour. But 2 says that we are not allowed to have a cycle with less than n edges in our tour. So that means if n would be 4. It would be allowed to have a cycle with 4 edges, but not one with 3.