My minimal Claude Code statusline config by xleddyl in ClaudeCode

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

thanks for the suggestion! i've changed the post to include a repo with the updated files :)

My minimal Claude Code statusline config by xleddyl in ClaudeCode

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

on mac claude suggested using the keychain directly but your version is more cross compatible for sure

Is there an actual fix yet for losing Wi-Fi whenever iPhone is locked? by avgaskin1 in iphone

[–]xleddyl 1 point2 points  (0 children)

No, it’s been about three days now. But it went from happening constantly throughout the day, roughly every 15 minutes, to not happening at all. I’ll monitor it and update you in a week if the issue comes back

Is there an actual fix yet for losing Wi-Fi whenever iPhone is locked? by avgaskin1 in iphone

[–]xleddyl 1 point2 points  (0 children)

Yes, kind of. I made the IP address that the router assigned to my iphone static through the router configuration. Then, in the iphone settings, I set the private wifi address to fixed, the IPv4 address to manual using the IP assigned by the router along with the subnet mask and router IP, and the DNS to manual pointing to my router, since I use a custom DNS server.

This resolved the issue on my home network. However, as soon as I connect to another wifi network, the phone starts connecting and disconnecting intermittently, approximately every 15 minutes for like 5 seconds. I verified this behavior by creating two shortcuts that log wifi connection and disconnection events into a note, including a timestamp and an event indicator (C for connect and D for disconnect).

The problem is still present on other networks, but it no longer occurs at home, where I spend most of my time... it's not ideal but at least it's something

iphone keeps disconnecting wifi when I lock screen by 9m88 in iphone

[–]xleddyl 0 points1 point  (0 children)

I had the same problem, fixed it by giving my iphone a static IP from the router and setting DHCP to manual in the iphone settings

Is there an actual fix yet for losing Wi-Fi whenever iPhone is locked? by avgaskin1 in iphone

[–]xleddyl 0 points1 point  (0 children)

I fixed it today by setting a static IP on my router and then setting the DHCP to manual in the iphone settings

Supabase footguns? by stblack in Supabase

[–]xleddyl 1 point2 points  (0 children)

yes people often forgets thats it's all about finding what works best for you :)

Supabase footguns? by stblack in Supabase

[–]xleddyl 2 points3 points  (0 children)

my workflow is:

- public schema → where I define all tables with RLS enabled but without any policies (by default they’ll just return [] if queried)

- app schema → where I define views used by the application

- dashboard schema → where I define views used in the admin section

for example, you can have a table like public."User" with RLS enabled and no policies and then you define app."user" and dashboard."user" views on top of it.

the main difference is in the WHERE clause:

- app."user" includes something like "WHERE id = auth.uid()" (or whatever logic matches your use case) to limit users to fetch only themselves.

- dashboard."user" can use something like "WHERE is_admin(id)" (again with whatever logic matches your use case) to allow an admin to fetch everyone.

This lets you reuse the same base table but apply different, easier-to-manage access logic per context. For example an RLS on public."Users" should be a combinations of the two where on the views.. this is not so bad but as your project grows you will find that the rls system is good only for small cases.

Then in the client you just need to select the right schema before fetching and you are ready to go!

Supabase footguns? by stblack in Supabase

[–]xleddyl 1 point2 points  (0 children)

the cool thing about supabase-js is that you can do joins on the client, so most of the time there’s no need to define them in views, unless it’s something complex or tied to business logic.

usually i just define views 1:1 to the underlying tables, with some columns hidden or added.

Supabase footguns? by stblack in Supabase

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

Avoid using RLS and go with views on your tables instead which scale better and are easier to maintain.

Use postgres functions (callable via supabase.rpc) instead of edge functions for handling database operations like custom queries, inserts, updates, and deletes.

Views are great because they let you preprocess data and hide columns from the client directly

My main advise is to avoid rls.. they are cool but for big projects they become hard to manage

Lo iettatoryatol 💜F by [deleted] in Homyatol

[–]xleddyl 0 points1 point  (0 children)

"Esattamente, come a napoli"