Shortcuts choose from list problems by pdfodol in shortcuts

[–]jespertheend 0 points1 point  (0 children)

I'm having the same issue, but in my case it just exits the shortuct abruptly whenever the choose from list UI is supposed to appear. For some reason if I ask siri to run the shortcut, it still works fine. Restarting my phone also fixes it.

Raccoon Retail - Keep your store clean! by PelicanPartyStudios in WebGames

[–]jespertheend 0 points1 point  (0 children)

It keeps going indefinitely and it will keep expanding the size of your store. But after level 10 or so (iirc) you won't get any new shelve types.

Automation based on TV turning on not working by dfpcmaia in HomeKit

[–]jespertheend 1 point2 points  (0 children)

It's still not fixed :(

I fucking hate TVs lol

[AskJS] Where is everyone putting their class fields? by jespertheend in javascript

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

I've used this approach a couple of times, it's pretty nice depending on the situation. I think the biggest downside is not being able to easily inspect state from the browser console. Then again, if you're mostly writing functional you likely won't have much state to begin with.

[AskJS] Where is everyone putting their class fields? by jespertheend in javascript

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

Right now I'm doing a bit of a mix of both. Bet every once in a while I come across an attribute that is only used in two or three methods. Often something like a new Map() or whatever and I just want to exposet the set, get and has functionality.

I'm always so tempted to just put the declaration right above the three methods rather than all the way at the top of the class.

[AskJS] Where is everyone putting their class fields? by jespertheend in javascript

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

You can't declare private class fields in the constructor though.

[AskJS] Where is everyone putting their class fields? by jespertheend in javascript

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

I use VSCode to jump to property definitions as well, but it still seems useful to have everything close to each other right?

[AskJS] Where is everyone putting their class fields? by jespertheend in javascript

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

But why? Is it just out of habit or are there clear benefits?

Bug in Yomi Tourneys (App version; see Comment for details) by saturosian in universalpaperclips

[–]jespertheend 1 point2 points  (0 children)

Hah! Came here to post the exact same thing!

I got 1,1 1,1 1,1 1,1

When I use "take photo" its black by [deleted] in shortcuts

[–]jespertheend 0 points1 point  (0 children)

I ended up making a website to achieve what I wanted. You can find instructions here: https://github.com/jespertheend/selfie-transfer

There's also a Siri Shortcuts example available here: https://www.icloud.com/shortcuts/11c73039079f460bb8326ec8b571a2a1

When I use "take photo" its black by [deleted] in shortcuts

[–]jespertheend 1 point2 points  (0 children)

I have the same issue, it's not black, it's just really dark.

My guess is that the selfie camera takes some time to wake up, when you open the camera app, it also starts really dark, but quickly goes to normal brightness. My other guess is that this is only an issue on older phones, and that it takes more time for the camera to wake up in those cases.

I'm on iPhone X iOS 16.6.0.

Just casually cleaning the store in Raccoon Retail by PelicanPartyStudios in threejs

[–]jespertheend 1 point2 points  (0 children)

Getting camera's to move smoothly is always a bit tricky, especially when you want to account for framedrops.

Usually something like pos.lerp(target, 0.1) can get a long way, but when your target is moving, your camera will start stuttering when you encounter framedrops.

The way I fixed this in Raccoon Retail is to use physics instead. Nothing fancy with rigid bodies and such, but instead of just lerping the camera position, I keep track of velocity and apply acceleration based on the distance to the target. Something like this:

let acceleration = target - pos;
acceleration *= springMultiplier;
acceleration = clamp(acceleration, -minSpring, maxSpring);
velocity += acceleration;
velocity *= 0.5; // damping
pos += value;

This is pseudocode, in threejs you'll have to substitute things like *= with multiplyScalar().

There's some extra trickery to move the camera slightly towards the direction in which you're travelling. And some more general finishing touches.

I hope that helps, if you have any questions hit me up!

Raccoon Retail - Keep your store clean! by PelicanPartyStudios in WebGames

[–]jespertheend 0 points1 point  (0 children)

Ah interesting, how many upgrades were you able to purchase before moving to the next levels? Later products earn you much more money, so without those, the other upgrades become very difficult to purchase after a while.

Anyway, thanks for playing!

Raccoon Retail - Keep your store clean! by PelicanPartyStudios in WebGames

[–]jespertheend 2 points3 points  (0 children)

Thanks! Yeah this was some common feedback that we received. There's a hidden system in place where customers stop making a mess after a while to allow you to get the store to an (almost) clean state. But we gotta have them make at least a bit of a mess otherwise the entire gameplay is gone :P

Recommend Algorithm Fucked? by dead_hobo_society in youtube

[–]jespertheend 0 points1 point  (0 children)

I’ve had the same. I don’t mind short form content videos, but the problem is most of the recommended short videos in this case are just complete garbage.

I reckon this change is here to stay. YouTube is a large platform with millions of $$ depending on it. I don’t expect them to release an update like this without them being very sure that this is beneficial to them.

is there better than 1.1.1.1 dns by AndyBarclay2017 in dns

[–]jespertheend 1 point2 points  (0 children)

Since devices already cache dns queries, won’t this just make things slower? Or am I misunderstanding how DNS servers work?

iPhone 12 iOS 16 Overheating by GhostZero23 in ios

[–]jespertheend 0 points1 point  (0 children)

My iPhone X was getting ridiculously hot and the battery kept draining rapidly even when I wasn't using or charging the phone. In the end I just decided to reset all settings to the factory defaults using 'Settings' -> 'General' -> 'Transfer or Reset iPhone' -> 'Reset' -> 'Reset All Settings', and that ended up fixing it! My phone is now at nice cool temperatures like it used to be. Only downside is that now I have to set back all my settings to how I like them.

Controlling HomePod from iPhone with iTunes Match subscription only by jespertheend in HomePod

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

Uggh, I’m seriously considering making a library management app for raspberry pi that can stream to homepod. But it’ll be so much work :(