python

joined 2 years ago
[–] python@lemmy.world 5 points 17 hours ago

Been working in software engineering for 5 years now, I still look this site up basically any time I don't remember what an http code means

[–] python@lemmy.world 4 points 17 hours ago* (last edited 17 hours ago)

That uppermost picture strikes me as AI too. Has that weird disjointedness, plus flared out Hognoses don't look that much like cobras. Their face goes a lot flatter and their hood is longer than that:

edit: Plus, thinking about it, why the hell would that snake be just looking off to the side? It should be focusing on that foot right next to it, if it feels threatened enough to hood it would be super defensive against any moving object in its proximity

[–] python@lemmy.world 1 points 2 days ago (2 children)

It's crazy we haven't gotten a "Bob's burgers but it's 20 years later where are they now" type spinoff yet

[–] python@lemmy.world 24 points 2 days ago (2 children)

My autistic ass has observed that you're supposed to go "Hell yeah brotha" and fist bump them.

[–] python@lemmy.world 3 points 2 days ago (1 children)

It's the Any% category, everything is legal

[–] python@lemmy.world 4 points 1 week ago
[–] python@lemmy.world 1 points 1 week ago

no. I only run on spite and anger.

[–] python@lemmy.world 5 points 1 week ago (1 children)
[–] python@lemmy.world 1 points 1 week ago

Måneskin - I WANNA BE YOUR SLAVE is a total banger, but I never quite liked the rest of the album (It's all in Italian??)

[–] python@lemmy.world 0 points 1 week ago

Great tip, thanks! I'll take a look at it since I definitely would prefer it if apps didn't just talk to Google without asking me first. Kinda crazy how hard it is to even know about all the cracks that Google creeps in through 🥲

[–] python@lemmy.world 0 points 1 week ago

I don't think so! At least I don't know what a Nabu Casa is, and I have no recollection of ever setting up any VPN or tunneling shenanigans in my home network. I know there's services like Tailscale or that one everyone uses to play Minecraft together (Hamachi?) but they weren't something that I felt like fiddling with yet. I only moved into that apartment like 2-3 months ago, so all the network stuff is pretty recent, I think I would have remembered it if I set up some VPN thing haha

 

My home assistant setup is super simple: pre-configured Home Assistant Green box, Zigbee dongle and some assorted Zigbee devices scattered around my home. I have the Home Assistant app on my phone to see the Dashboard while I'm at home, but since I never configured the box to be accessible from outside of my network, I obviously can't see the Dashboard if I'm not at home. Very basic stuff so far.

A few weeks ago, I built a little automation. I shoved a vibration sensor into my doorbell box (it's one of those that uses an electric motor to hit an actual bell) and when it detects the doorbell ringing, it flickers my light and sends a notification that says "ding dong" to my phone. The purpose is just to hear the doorbell ring when I have headphones on. The lights work perfectly fine, the notification is a bit delayed sometimes because I probably don't give the App enough permissions to hang out in the background all the time. I've never felt like fixing it though, since the lights are good enough by themselves.

Now I'm on my first longer trip since setting up that automation and I've noticed that I occasionally get the "dong dong" notification on my phone. First few times I've ignored it, because I assumed it's just old notifications that got queued while I was home but didn't fire until the app was allowed to sync. But the notifications started coming in at way too reasonable times and I checked in with my husband at home -- turns out they're actually completely correct and I'm getting actual real-time notifications for the doorbell ringing.

But like - how?! I thought my Home Assistant Green box isn't set up to send anything to the outside world?! I can't see my dashboard from other networks, so why would notifications be any different? Does anyone have any ideas as to why I'm getting those notifications?

edit: Thought it would make sense to include a screenshot of my settings; As you see, my home assistant URL is a local IP address. I have no idea why my phone would be able to talk to that? It can't talk to my local-IP-only Jellyfin server either, so why would this be any different?

120
Radish update (lemmy.world)
submitted 2 weeks ago* (last edited 2 weeks ago) by python@lemmy.world to c/dull_mens_club@lemmy.world
 

All my radishes have now sprouted! I thinned them out last week and had the spare ones on top of some potato salad.
Yesterday I also planted 10 Brokkoli saplings in between the radishes so that the planter isn't empty once the radishes are ready to go (should be in like 1-2 weeks I think?)
Oh, and I'm working on transitioning my sugar snap peas to the outside world. They're outside during the day and inside at night for now, but I'm hoping to keep them outside permanently pretty soon.

 

I know the radish trend ended like a month ago, but I'm still very excited haha

 

First time building a PC. The only somewhat reasonably priced DDR5 ram in my area was 2x 8GB SODIMM for 50 bucks.

1
(lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by python@lemmy.world to c/cs_career_questions@programming.dev
 
 

I mean, if I'm not gonna have a good match anyway might as well embrace the fact it doesn't match lol

 

As in, either at an early age or early in their career.
Because I'm 26 with about 3-4 years of experience (maybe 5 if I count my apprenticeship), and my company keeps reiterating how they promote based on skill and knowledge, and not based on age. I know that I fit the soft skill requirements for senior dev on the internal checklist. And I know that I could absolutely handle the 6-week project that potential Seniors are asked to do, because all of my experience is extremely specialized into the exact current field and position I work at.

So I'm playing with the idea of asking to become a senior next year, because I plan on leaving the company and the title would look good on my resume.

Does anyone around here have experience with doing something like that?

 

I installed Linux Mint for the first time on my personal Laptop just a few months ago, and it ran so well that I didn't want to mess with it to try out different distros.

But today, my company's IT department announced that they have some spare old Laptops to give away (technically because they didn't meet the specs for Windows 11, didn't stop the IT department from giving them out with Windows 11 pre installed though)

So now I got a few devices to play around with!! They're a Precision 7530 and a Latitude 7390 2-in-1!

I already got ZorinOS running on the little guy because apparently Zorin is nice for Touchscreen support. For the big guy I was initially thinking that I could try Bazzite, but the installer was like "Intel UHD Graphics aren't really recommended" so I might try something else first. Any recommendations? I mainly just want to try as many different flavors of Linux as I can haha

 

Not really a shower thought, but a "spraying my hair with dry shampoo before a Teams meeting" thought.

 

That is such a cursed combination of words. She climbed into my credit card holders metal loop while I was answering a Teams message and got stuck. Only started backing out voluntarily when I lubed her up. She's all right now, there was only a slight hint of a dent about 5 minutes later and it's all gone by now.

This is a shitpost because I realize that this situation is fertile grounds for puns and innuendos. Go ahead.

 

Okay so, context, I've come across this video last night. It's a short comparison between React and Svelte. Point 9 - Shared state (6:20) mentions that React doesn't really have a primitive way to share state between nested components and that you basically need to use something like Redux to get that working.

But... I've been sharing state between nested Components in just React for a while now and didn't know that I can't?? But I also don't remember where I learned to do it, so the chances are high that I just hallucinated up this method as a Junior.

Basically, when I want to share state I just make a new Context and ContextProvider, wrap it around the highest level Component I need it in, and use it lower down in the component tree.
If I need a state, I put the two outputs of the useState hook into the context (which feels nice because when I look through the code, I can see right away which children only read the value in the state and which children actually take the setter and have the capacity to change that state). Sometimes I don't even hand out the actual setter from the state, but a new function that also does some input validation before calling the setState itself. Doing it this way has always felt pretty clean to me.

From the React documentation, it seems to me like that's exactly how you're supposed to use Context. But I've also never seen anyone else do it like that. So is it incredibly ill advised and I've been shooting myself in the foot this whole time?

As a more specific example, my most common use case is that I need to render fetched data in a grid. This data can be filtered, but the component that sets the filter state is either on the same level as the grid (the grid's built in filter menu) or above it (a button that sets a predefined quick filter) or even further above that (a useEffect that looks for query parameters in the URL and sets those before the data is fetched for the first time).
So what I'd do is const [filterModel, setFilterModel] =useState() at the highest level and pass it to <FilterContext value={{filterModel, setFilterModel}}>. Then, I'd just use const {setFilterModel} = useContext(FilterContext) within all the components that write the filter and const {filterModel} = useContext(FilterContext) everywhere where I just need to read the filter, like in the hook that actually fetches my data. Does that make sense? Is there an easier/safer way to do it that doesn't involve adopting yet another external library?

 
view more: next ›