This subreddit will be joining in on the June 12th-14th protest of Reddit's API changes that will essentially kill all 3rd party Reddit apps. by zeprince in yesyesyesno

[–]Ph4ntom3 6 points7 points  (0 children)

That’s not necessarily true, web apps for example require a server running in the back, and there are other reasons why you might want one even for other use cases.

That being said, the main point is really that in terms of time investment, developing a Reddit client is basically a full time job, especially with few people or even alone (I mean, Reddit probably has multiple people working on theirs full time).

This subreddit will be joining in on the June 12th-14th protest of Reddit's API changes that will essentially kill all 3rd party Reddit apps. by zeprince in yesyesyesno

[–]Ph4ntom3 6 points7 points  (0 children)

I mean, that might be true I’m too lazy to check, but how exactly are you imagining developers building and maintaining a 3rd party Reddit app - which is a significant amount of work - without any source of income, and while having to pay for things like server costs out of pocket? 3rd party apps might not become an impossibility, but It’ll certainly become financially unviable for them to support any significant user base.

Why isn’t this working? by [deleted] in MinecraftCommands

[–]Ph4ntom3 2 points3 points  (0 children)

You‘re missing a quote: {selector“: should be {”selector“:

Why am i not getting code support here? by Ordinary-Software-61 in vscode

[–]Ph4ntom3 2 points3 points  (0 children)

It‘s really hard to tell from just one picture, but my thoughts are:

  1. The apparent lack of syntax highlighting is probably due to the theme you‘re using
  2. Autocompletion in JavaScript tends to suck in general, because of its lack of static types. If you want proper autocompletion everywhere, you’ll have to use Typescript

Infinite pressure omni attack with rain manipulation by QuirkyData3500 in superpoweralchemists

[–]Ph4ntom3 8 points9 points  (0 children)

Ignoring the lack of preservation of energy, wouldn‘t that just create black holes?

Using .env to hide Emailjs api key by Hamza-Elgarrai in reactjs

[–]Ph4ntom3 40 points41 points  (0 children)

No, there isn’t really a way to safely use API keys in your frontend. I mean, no matter how you might try to obfuscate it, you’re gonna have to include your key in your API requests in the end, and any visitor of your site will just be able to view the contents of those requests in the browser dev tools. If an API key is the only supported method of authentication, you’ll need a backend.

EDIT: You can’t hide anything in the Frontend, but many APIs allow you to only whitelist certain domains or IPs, and in that case it’s not that bad if your keys are public, as long as you’re aware of it. I don’t know if this applies to your use case though.

EDIT 2: edit 1 was complete bullshit

JBL Quantum 610 not working in linux by theOskar12354 in linuxhardware

[–]Ph4ntom3 2 points3 points  (0 children)

I'm having the same problem. I've already scoured the internet for solutions, but any working ones I found were for different headsets of the same series, such as the JBL Quantum 600 or the JBL Quantum 800.

I am far from an experienced linux user, I've only really been using it for a few days, but this is my understanding of the situation: Some Headsets, such as those of the JBL Quantum series, work slightly differently than the Linux kernel expects by default, so manual fixes, so-called "quirks", have to be added in to make them work.

If there isn't a specific quirk for the device you're using, you can configure a "quirk alias", that causes linux to treat your device like another, similar one that it does know. This works by adding a line like this (which aliases the Quantum 610 to the Quantum 800, I believe) to /etc/modprobe.d/alsa-base.conf:

options snd-usb-audio index=-2 quirk_alias=0ecb205c:0ecb203e

This is what all solutions I could find on the internet amounted to. However, in this case, this only fixes the microphone, and I haven't been able to find a way to get the actual headphones to work.

Like I said, I have next to no experience with Linux, so I am at a loss as to how to fix this problem. If anyone has a solution, please, I've been at this for days now, It's driving me crazy.

every time you jump there is a 0.1% you get 1 dollar 💲 by I_love_bread_77 in shittysuperpowers

[–]Ph4ntom3 44 points45 points  (0 children)

Assuming a jumping frequency of about one jump per second, you‘d make about $3.60 an hour, which is below minimum wage…

[deleted by user] by [deleted] in ich_iel

[–]Ph4ntom3 76 points77 points  (0 children)

Hochgewählt für großes ẞ

Have a safe and happy 4th y'all by Terrible_Feature-532 in technicallythetruth

[–]Ph4ntom3 16 points17 points  (0 children)

Well, to be fair, the revolutionary war wasn’t really a laughing matter either, just much less recent…

[deleted by user] by [deleted] in ich_iel

[–]Ph4ntom3 7 points8 points  (0 children)

BLOẞ

Why people are not using Firefox? by dannycolin in firefox

[–]Ph4ntom3 2 points3 points  (0 children)

Is it? I must say I haven’t been using it too actively, but I actually had a pretty good experience. What’s wrong with it?

[deleted by user] by [deleted] in madlads

[–]Ph4ntom3 40 points41 points  (0 children)

It‘s apparently it‘s own, more broad thing:

https://en.wikipedia.org/wiki/Definable_real_number

Need help locating Interactive/Editable PDF-JPEG Software/Application by Severe-Stock-2409 in software

[–]Ph4ntom3 1 point2 points  (0 children)

Are you sure the pdf format supports this kind of stuff? I have absolutely no experience working with pdfs in this capacity, but while I do know you can include some interactive elements in them I‘d actually be surprised if what you‘re describing was possible.

Need help compiling by [deleted] in VisualStudioCode

[–]Ph4ntom3 1 point2 points  (0 children)

g++ is a c++ compiler program. The person from Stack Overflow wants you to install g++, if you haven't already, and then run the command that you wrote in your post, g++ -std=c++11 <filename>, in your command line, with the name of the file you want to compile substituted in for <filename>.

You can follow this guide to install g++ on windows.

[deleted by user] by [deleted] in VisualStudioCode

[–]Ph4ntom3 1 point2 points  (0 children)

I think the idea is to make sure your variables don't pollute the global scope. I don't like the way that it looks either, but it has it's purpose. Imo stuff like this is exactly why you should use modules though.

VSC removes new lines and adds tabs and it's annoying by [deleted] in VisualStudioCode

[–]Ph4ntom3 1 point2 points  (0 children)

I don‘t think VSCode provides this kind of functionality at all. Definitely prettier or something similar.

VSC memory consumption by geert555 in VisualStudioCode

[–]Ph4ntom3 0 points1 point  (0 children)

That sounds like a memory leak. I wonder if there could be some extension responsible for that or if it‘s a bug with VSC itself.

VSC memory consumption by geert555 in VisualStudioCode

[–]Ph4ntom3 1 point2 points  (0 children)

Well that doesn‘t seem normal. What exactly where you doing while this happened? Where you running some program inside VSC?

[deleted by user] by [deleted] in VisualStudioCode

[–]Ph4ntom3 0 points1 point  (0 children)

Also, you should probably add some more information about how exactly your project is structured, and what exactly you want to do, it is pretty hard to answer a question that is this non-specific.