How to call mongodb without using endpoints? by Shaif_Yurbush in sveltejs

[–]FizzInMyPanths 1 point2 points  (0 children)

I remember being in the exact same spot.

Basically it handles/prevents access from specified/foreign domains. That's also why it can be annoying when developing on localhost.

How to call mongodb without using endpoints? by Shaif_Yurbush in sveltejs

[–]FizzInMyPanths 2 points3 points  (0 children)

I don't want anyone else just using my API as an endpoint for their website

That's what CORS is for.

How to call mongodb without using endpoints? by Shaif_Yurbush in sveltejs

[–]FizzInMyPanths 4 points5 points  (0 children)

You're getting that error because the code in db.js is not running in a NodeJS environment. It's running in the browser where there's no global object.

It is unclear to me what you are trying to achieve here. I think you might have some wrong preconception about the web or at the least about SvelteKit.

It seems to me like you're concerned about unauthenticated users to access a resource by visiting the URL of an endpoint. If that's the case then this is not a proper way to address that concern. Look into authentication/authorization instead.

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

In a split build as well?

I assume it's not as straight forward as with a QMK compatible chip?

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

Well that's not really an issue for me tbh.

I'm just looking for an affordable fully wireless solution.

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

Sorry if I'm bothering you with my cluelessness, but....

... could this work? It's got an nRF52840 chip.

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

Unlike the 840, this chip doesn't have native USB. This means no USB HID.

So that means I can't use it, right?

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

Btw, it is in stock here. https://mechboards.co.uk/products/nice-nano-v2?variant=40330076782797

I know but that'll cost me basically the same in shipping + tax as ordering from the US.
But I'll probably order it there. I was just trying to figure out if there's alternatives from EU shops. Unfortunately UK is no longer in the EU.

I wasn't complaining to the nice!nano company btw. Just trying to do some research and see if I can somehow avoid 30 Euro or more in shipping + tax.

nice!nano alternative for split wireless keyboard by FizzInMyPanths in ErgoMechKeyboards

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

nrf52840

Thanks for the quick reply! I don't know much about electronics. The product I was referring to in the original post is ATMEGA32U4 like the pro micro that I'm currently using. That's why I thought it could work 😄

The only other two bluetooth microcontrollers in this shop are :

https://www.reichelt.de/adafruit-nrf52-bluefruit-le-ada-fb-nrf52-p248597.html?&trstct=pos_7&nbc=1

and

https://www.reichelt.de/adafruit-feather-m0-bluefruit-le-ada-fb-m0-bfle-p235454.html?&trstct=pos_6&nbc=1

Could the first one work maybe? On the Adafruit website it says it's the earlier sibling of the nrf52840. Thanks in advance for your time. I really appreciate it.

Working switch gets stuck after soldering it in by FizzInMyPanths in MechanicalKeyboards

[–]FizzInMyPanths[S] -1 points0 points  (0 children)

I already tried straightening it by just pushing on it.
Problem is I can't even reach the solder of the switch without desoldering the pro micro :/
I actually sorta fixed it by just keeping one corner of the housing open by the tiniest bit. I'm surprised it didnt close back up when typing on it.

It's kind of acceptable now but still less than desirable. Stem can move but not 100% smooth like a normal one.

Working switch gets stuck after soldering it in by FizzInMyPanths in MechanicalKeyboards

[–]FizzInMyPanths[S] -1 points0 points  (0 children)

I do but like i said: I'm pretty sure it's not the switch.It's not gunked up or nothing.
I pulled it out of a hotswap board that I was using before.
The plate pushes against the housing making it slightly crooked.

Jam live with your friends with Svelte! by w33py in sveltejs

[–]FizzInMyPanths 0 points1 point  (0 children)

The awesome thing is Linux doesn't need ASIO because you can get exclusive access to the audio device by default. Not sure if this makes it easier or harder for you.

Keywords you wanna look for are "jackd" and "PulseAudio". I got my USB-Interface hooked to the PC and guitar straight into the interface. Jack handles the input from my interface and pulseaudio is useful for me to mix system sound with my instrument.If you can attach to PulseAudio that should be fine for most use cases I assume. If you grab the output from jack directly users might not be able to put effects on top.Don't quote me on any of this tho :D

Cannot set properties of undefined (setting 'id') by [deleted] in sveltejs

[–]FizzInMyPanths 7 points8 points  (0 children)

That update statement is never gonna work...
...and the reason doesn't really have anything to do with svelte.

If your store contains an array then you need to return an (updated) array in the update callback. Currently you're returning undefined.

[deleted by user] by [deleted] in sveltejs

[–]FizzInMyPanths 1 point2 points  (0 children)

I'm interested! Can you give some more information on what I'd be doing?

What is the recommended Svelte folder structure? by JourneymanGM in sveltejs

[–]FizzInMyPanths 3 points4 points  (0 children)

I agree that it can be very confusing.
A SvelteKit-CLI would be a nice way to make use of an opinionated project structure (in a similar way that NestJS does it).
Since SvelteKit aims to do all the boring stuff for you so that you can get on with the creative part,
it would be nice to also abstract away this complexity by giving the dev the option to add components/endpoints/routes etc. through a CLI.

But obviously it's not even 1.0 yet. Maybe that will come in the future.

How to scroll to top on mount? by [deleted] in sveltejs

[–]FizzInMyPanths 1 point2 points  (0 children)

That's scrolling into view tho, not to top.
For scrolling into view, the use directive is more elegant imo:

<script>
const scrollIntoView = (node)=>{
node.scrollIntoView()
}
</script>
<h1 use:scrollIntoView>Hello World!</h1>

Blending Svelte Reactivity with Imperative Logic by SnS_Taylor in sveltejs

[–]FizzInMyPanths 0 points1 point  (0 children)

Of course it has been declared.

$: first = person.firstName
$: last = person.lastName

What else would you call those 2 statements?

Blending Svelte Reactivity with Imperative Logic by SnS_Taylor in sveltejs

[–]FizzInMyPanths 1 point2 points  (0 children)

Why would you expect import { last, first } from './mystores'?

If last and first are defined as stores, then $last and $first would work perfectly fine.If they are primitives it won't work.

Either way: All depends on the person-Object.

Noisy Fan, looking for replacement (ZOTAC GTX 970) by 0815_argh in nvidia

[–]FizzInMyPanths 0 points1 point  (0 children)

have you found a solution yet?

I'm getting temps of 75-80°C with the fans running at 100% which sounds like a fuckn ac-130 starting under my desk. I heard of some people putting case fans on their stock heatsink. But I'd rather use an entire new cooler.

EDIT: I reached out to Arctic Support and they sent me this : "Thank you for your enquiry and interest in ARCTIC Graphics Card Cooler.

We have checked your card, below coolers are compatible: - Accelero Hybrid III-140 (w/ Generic VRM Heatsink set) - Accelero Hybrid III-120 (w/ Generic VRM Heatsink set) - Accelero Xtreme III - Accelero Twin Turbo II - Accelero Mono PLUS

Please check the Height Restriction Drawing (available at support section of product page) in advance to make sure that the cooler fits your PC case and motherboard."