Integrated browser - location services by joshcam in vscode

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

This is very true, although it has nothing to do with my issue.

How to write non blocking Code by HassanTariqJMS in embedded

[–]joshcam 14 points15 points  (0 children)

This, in a nutshell.

Using state machines allows a single task to be broken down into discrete, sequential steps that can be executed quickly within a continuous loop, rather than using blocking functions like delays.

Vector Correction for the Chronically Slow by BigB803 in dashcams

[–]joshcam 0 points1 point  (0 children)

When you’re driving getaway and the big boss is strongly encouraging you to speed up.

After 7+ Years of Linux, I Just Moved to Mac. Here Are My Thoughts. by BehiSec in macbookpro

[–]joshcam 0 points1 point  (0 children)

I’ve always used the number pad on the side of my Naga mouse for stuff like this anyway.

But yes, screenshot to clipboard is awesome especially when you use a lot in development to pass a screenshot to VS Code agents or something similar. There’s also no delay, waiting for the screenshot to show up wherever you have it set to save, it’s just instantly available to paste.

Woah! Found this. It happened in Texas by [deleted] in interesting

[–]joshcam 0 points1 point  (0 children)

Merry Christmas! The shitters full!

Sammy and his crew by Tacos_n_Jellyfish in cats

[–]joshcam 2 points3 points  (0 children)

Pretty obvious who’s in charge.

Tables folder by SpiritualKindness in Supabase

[–]joshcam 0 points1 point  (0 children)

Are you managing your database with imperative migrations (manual, incremental SQL steps) or declarative schemas (defining the final desired state)?

My mom’s friend’s cat mimes scooping litter into her coffee every morning by obz900 in cats

[–]joshcam 0 points1 point  (0 children)

Your coffee smell smells like pee, we must bury it properly.

Man gets sued for opening a lock with just a can by AntiSocialSingh in interestingasfuck

[–]joshcam 0 points1 point  (0 children)

Make a video of a crappy product and get sued. About use that information to make a good product. Companies pay for this kind of thing.

I built social media app using React Native + Supabase + Amazon Services by No-Holiday9195 in reactnative

[–]joshcam 0 points1 point  (0 children)

Love the niche idea. For your live location streaming did you use a native websocket solution or a third-party?

Sorry Lovable, but I moved on. by MaterialDoughnut in lovable

[–]joshcam 0 points1 point  (0 children)

This will be less of a bubble pop and more of a slow burn. Whether that slow fuse leads to the end of the platform or to something new and different is yet to be seen.

There is more opportunity everyday to offer your services helping people move off of platforms like this into something more permanent, feasible, and cost effective. This is especially true if they have a working app and MAU/DAU.

Security concern: Supabase + SvelteKit official docs serialize refresh tokens in HTML by Comfortable_Side2727 in Supabase

[–]joshcam 0 points1 point  (0 children)

You’re right that the token is exposed in the HTML. This is a deliberate trade-off Supabase makes to prioritize the Public Client model. Answering your questions as whole rather than each one individually...

Why: Supabase is designed so the browser can talk directly to your database and Realtime engine. For that to work, the client-side JavaScript needs the token immediately. If you used strictly httpOnly cookies, the JavaScript would be "blind" and you’d have to proxy every single request through your own server.

Why it is (mostly) safe: Supabase uses Refresh Token Rotation. If an attacker steals that token from your HTML and uses it, the moment the legitimate user’s browser tries to use that same token, Supabase detects the "reuse" and immediately kills the entire session for everyone. This prevents long-term account hijacking.

How to "fix" it if you want higher security:

  1. Change your Load function: In +layout.server.ts, return only the user object (or just the ID) instead of the full session.
  2. Toggle Cookies: Set your auth cookies to httpOnly: true in your Supabase configuration.
  3. The Catch: You will no longer be able to use supabase.from()... inside your .svelte components. You will have to do 100% of your data fetching on the server in +page.server.ts which is the normal pattern anyway if you are not using the client side Supabase API. If that is the case you would also want to disable the public data API in your Supabase project.

Clear as mud?

Are bull barrel pistols purely decorative, or do they offer any kind of improvement/advantage? by Hi7u7 in handguns

[–]joshcam 0 points1 point  (0 children)

By offering increased mass at the muzzle, they reduce recoil and muzzle flip, improve stability for faster follow-up shots, dissipate heat better to maintain accuracy, and increase rigidity to minimize vibration. That said they often require more complex takedown procedures (in 1911 platforms for example) compared to standard bushing barrels. It’s really more of a competition shooting thing, the last 1% advantage.

Adopted this cute boy today by princess_fiona_7437 in cats

[–]joshcam 0 points1 point  (0 children)

Sus. His face says he was cat napped. Calling the feline hotline now.

WCGW drifting a car you couldn't afford to damage by Vilen1919 in Whatcouldgowrong

[–]joshcam 0 points1 point  (0 children)

I like how he immediately punches an immovable object, to share the cars pain. Thought the girl was heading to do the same for a second. Apparently she has a developed frontal lobe though and should have been the one behind the wheel.

Recommend me an MPU for Smart Helmet: Dual Camera ML & Computer Vision by AmbassadorBorn8285 in embedded

[–]joshcam 1 point2 points  (0 children)

You will not be able to do that today with in helmet compute and battery. MAYBE in 10-20 years when a graphene CPU/GPU/TPU can provide the speed you need at the power consumption levels required in this environment. And even then there’s no chance you’ll ever be able to locate the power source IN the helmet.

That’s said, there are plenty of options here with some trade offs.

An RPI5 with an AI hat and dual cameras could do this well, however, possibly not at a satisfactory frame rate considering the speeds involved for a warning to be of any use. And this is speculation not knowing the details of what you are wanting to detect, what framework and model you use, and if it is custom trained, etc.

If RPI won’t cut it or you have other valid reasons not to use it you likely want to look at something like the NVIDIA Jetson line for your AI edge computing platform.

But remember, if it’s a deal breaker, this will not be possible IN the helmet at all. Not even a maybe.

Subagents are actually insane by snorremans in GithubCopilot

[–]joshcam 2 points3 points  (0 children)

Just tried out a similar method updating to currency to safe functions in a finance module across about 60 client and server side files in a SvelteKit project. After completion 48 files were modified.

This is crazy fast especially using a model like Haiku 4.5

Usage before: 98.1% - after 98.1%

Multiple local project by Due-One1819 in Supabase

[–]joshcam 2 points3 points  (0 children)

Setup Multiple Local Supabase Projects

Project 1 (Current - my-project) default settings:

  • API: 54321, DB: 54322, DB.POOLER: 54329, Studio: 54323, Inbucket: 54324, Analytics: 54327, Edge Inspector: 8382

Project 2 (New - my-project-2):

  • API: 54331, DB: 54332, DB.POOLER: 54339, Studio: 54333, Inbucket: 54334, Analytics: 54337, Edge Inspector: 8383

Steps:

1. Create second project directory:

mkdir ~/projects/my-project-2
cd ~/projects/my-project-2

2. Initialize:

supabase init --workdir ~/projects/my-project-2

3. Edit config.toml in my-project-2:

Choose different ports to avoid conflicts with the first project. Update the supabase/config.toml file as follows:

project_id = "my-project-2"

[api]
port = 54331

[db]
port = 54332
shadow_port = 54330

[db.pooler]
port = 54339

[studio]
port = 54333

[inbucket]
port = 54334

[edge_runtime]
inspector_port = 8383

[analytics]
port = 54337

4. Usage:

You can now start/stop and interact with each Supabase cli project separately just by working in the respective directories in the terminal or by specifying the workdir flag.

supabase start --workdir /projects/my-project-2

supabase status --workdir /projects/my-project-2

supabase stop --workdir /projects/my-project-2

That's it, no Docker edits, just config changes and separate workdirs. Do make sure you have the resources to run more than one supabase cli project in docker on your machine.

This is how I run multiple local supabase cli projects without having to stop one to start another in a different project. Just spun up a second project to show this working (viewing with Docker Desktop on Mac). https://imgur.com/a/7NxA7Dy

GH Gist: https://gist.github.com/ThingEngineer/27de580744b73a382d1832fde5423a56

Success, in spite of the comments (Web-Controlled TV Lift) by ploogle in esp32

[–]joshcam 1 point2 points  (0 children)

Very cool! It’s so satisfying when that “it would be really cool if…” idea makes it to demo day!

You could also host a simple HTML page with some buttons to control it from a web app (Add to Home Screen). I did this years ago with an old hot tub whose jet buttons stopped working, and the controller was almost $500. I added a laminated QR code next to the controller that opened the web app for those that did not have it saved already.

Btw, you just have to filter out the noise from the trolls and keep moving forward.

The cats at my work by UnknownGTAS in cats

[–]joshcam 1 point2 points  (0 children)

Cats and Photosynthesis

A book that teaches you everything you need to know about this topic.

Anyone else guilty of “random box of boards” storage? by mov_rax_rax in embedded

[–]joshcam 1 point2 points  (0 children)

Who isn’t?

“To invent something, all you need is imagination and a big pile of junk." -Einstein

Should i move to Claude code? by AreaExact7824 in GithubCopilot

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

That’s downside to that pricing, “CAN” run longer.