I just figured out, that I can perfectly work on a standing desk with the baby in my sling, me wrapped like a mummy. Even though I bought the cheapest standing desk mechanism and made the top from an old plywood with a foil on it, it starts to be the best thing I've bought recently. Given the price of ~150EUR in total (if you have the top surface it is some 45 EUR less) I have no idea why companies don't buy these on mass scale.
@djumaka not everyone can stand for a long time 😕of course sitting for prolonged time isn't good, but in my case standing is way worse than sitting intercepted by occasional short walks
My father, even before he got dementia and ended up in a nursing home, could be extremely difficult to deal with. While in the home he’s stopped brushing his teeth to the point where they are rotting and falling out of his mouth. My mother has filed a complaint, the staff at the home are upset (screw them, it’s their fault) and he is now trying to bite anyone who tries to touch his mouth.
This is all kinds of messed up and I miss my pre-dementia dad, difficult person and all.
they are physically the people you've known for decades, but they are actually someone else now.
my late grandfather had Parkinson's and then dementia kicked in. he was back and forth in time, but most of the time just lost somewhere in between, mixing everything up and being paranoid about random (benign) stuff. at some point he had an idea to stop eating because it was "useless".
@grmpyprogrammer my grandmother slipped into dementia as well, following the two strokes not much apart. her memory rolled back by 40+ years. she didn't know who I am any more, or that my mom (her daughter) has passed away. sometimes didn't even know she got married and had children at all. at times it was fun, like being so determined to get dressed for a party, asking for make up and stuff. but, for the most part, it was simply devastating.
@Crell it depends. If the class names are long, or if there are many of them, then I put the spaces in between in order to visually scan them faster. There are no fixes rules.
Or... maybe to rephrase: no spaces until my eyes hurt and it looks like a mess.
@bobmagicii it's all good until you figure out that a rather important table has just run out of room for a PK that's signed int, which is also referenced from similar-sized tables via FKs 😶
@bobmagicii Yes, I saw it's a bigint, you've done all your could. Wish it's been the same in my case. Instead, we had a war room set up and eventually worked around the problem in a rather disgusting way, but when the prod can't even be placed in a proper maintenance mode, then you grab whatever straw you can hang on to.
@bobmagicii well yeah, that's dangerously similar 🤷🏼♂️
Our live table hit the unsigned int max. But, now we have 2 archives 😄 ...because the original one was so big that it'd take a couple of days or weeks (nobody knows for sure) to upgrade.
It’s been so long since I did anything with authenticated users, curious about “modern” patterns and standards.
Specifically, an authenticated user wants to do something. What patterns and standards are you using for permissions?
I’m seeing middleware mentions. But, curious what else is out there. Not looking for “use Framework X” and should be testable. Doesn’t need to be web-specific as I’m just looking for patterns and standards.
@itsjoshbruce it's the request (route or route group middleware). Authenticated user is set early to the container and then various areas are protected based on the user's roles. Of course, there are more detailed checks later in the flow (e.g. parts of the interface are hidden or different depending on role/permissions). Middleware is stopping the unintended actions, like playing with URLs to access what's not supposed to be seen or actioned on.
I managed to avoid #Kubernetes for 10 years, but it’s finally caught up to me, so I hope I’m a Kubernetes god after going through all this required (by job) Kubernetes training.
If you were about to start a medium-sized #PHP project, what would you choose as an #ORM, and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.
Caveat: imagine that Doctrine and Eloquent haven't been invented yet.
@thgs it is a side project that will be maintained by me for the foreseeable future. It has some commercial potential I hope, but if it starts growing fruits then I will make sure to bring someone in who will have enough experience and no fear to dive in, regardless of the libraries used. The goal is to start minimal.
Looks like some dbal + data mapper is the way to go, the latter probably something custom.
@zimzat yeah, on the surface level things seem to be attractive, but as you go further and deeper, facepalms emerge. Some dbal & a custom data mapper will probably be the start.
I use Doctrine on my day-to-day work, and have used Eloquent before. Eloquent I liked up to some point, but can't say that for Doctrine. I wish I had more time to build something like Eloquent but with less magic and bloat (simple to use but not trying to do everything imaginable)