@bobmagicii@phpc.social
@bobmagicii@phpc.social avatar

bobmagicii

@bobmagicii@phpc.social

Resident PHP & Jacascript iconoclast. I still think PSR is the worst, even now that I'm on Mastodon. You might remember me from Dallas PHP and Lone Star PHP.
:elephpant_gold: :elephpant_white: :elephpant_purple: :elephpant_black:

This profile is from a federated server and may be incomplete. Browse more on the original instance.

bobmagicii, to random
@bobmagicii@phpc.social avatar

lol, in the intro cinematic of stargate atlantis, one of the chevron lamps is busted 🤣

image/png

dshafik, to random
@dshafik@phpc.social avatar

This is a great example of things you can do... but probably shouldn't: https://github.com/paragonie/typed-arrays (is paragonie in the fediverse?)

bobmagicii,
@bobmagicii@phpc.social avatar

@dshafik man i appreciate the attempt this made but yeah no not like this lol.

theseer, to random
@theseer@phpc.social avatar

Is it just me or is anyone else running their own mailserver experiencing a lot servers being blocked by zen.spamhaus.org currently that one would assume not to be considered offensive?

Like github.com, outlook.com or google/gmail?

bobmagicii,
@bobmagicii@phpc.social avatar

@theseer yes a few months ago google made the final change that basically eliminates the ability to send email unless you pay an extortion fee from one of the cool kids.

sendgrid will treat you like a criminal to try and set up a new account, so ive been using mailjet's free tier for now.

bobmagicii,
@bobmagicii@phpc.social avatar

@theseer yeah. thats my problem too. i can send them, but everyone rejects them now.

bobmagicii, to random
@bobmagicii@phpc.social avatar

researches sms integration again

gets reminded The Campaign Cartel exists to prevent you from doing it unless you pay their extortion fee

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

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.



bobmagicii,
@bobmagicii@phpc.social avatar

@itsjoshbruce we still just use a table of permissions that comes along with the user info and the controllers check if the user can before it does. most things are boolean like Blog.Create==1 but its an int for future stupid decisions. shrug

bobmagicii, (edited )
@bobmagicii@phpc.social avatar

@itsjoshbruce nah. prior to 2022 the controller method "should" check early it was my job to check something before doing something.

old alternate was a method with the same name but ending with WillAnswerRequest() if i wanted to do lots of checks for things which returned an HTTP status code.

but we recently built up some annotations that must pass their tests before the route executes, which looks like this currently:

bobmagicii,
@bobmagicii@phpc.social avatar

@ellisgl @itsjoshbruce part of our growing pains was starting with the json and then putting too much in that. im really digging the new annotations though.

bobmagicii, to random
@bobmagicii@phpc.social avatar

really glad someone put a timefall shelter here

bobmagicii, to random
@bobmagicii@phpc.social avatar

there is a special place in hell for man pages that don't have the arguments sorted alphabetically. its a very crowded place too.

bobmagicii, to random
@bobmagicii@phpc.social avatar

writing my own backup solution is kinda fun. there is a lot of attempts to over engineer when in reality all i need is:

  • cp or scp that to here
  • git clone first run then git pull later
  • mysqldump

i always struggle to just make a thing that does what i need now at this moment so that is my exersise this time.

"try not to turn it into a framework that does nothing for nobody"

bobmagicii,
@bobmagicii@phpc.social avatar

@ghorwood yep pretty much. my main goal is to be able to have an app manage multiple projects and maybe a dashboard to show when the last time it was done, since i dont bother to automate everything.

bobmagicii,
@bobmagicii@phpc.social avatar

seems to work. though i ended up on rsync instead of cp/scp.

bobmagicii, (edited ) to random
@bobmagicii@phpc.social avatar

i only added my right hand middle finger to TouchID. but three of my fingers on that hand, and also my left hand will unlock it. feel like i should be worried about that.

bobmagicii, to random
@bobmagicii@phpc.social avatar

for the record, it took zip and tar -cjf only 5 minutes. guess m1 blows at 7z.

bobmagicii, to random
@bobmagicii@phpc.social avatar

oh man oh man this one commit is going to 100% test this class

99.8%

booooooooooooooo wait what did i miss

totes gonna write a test to test that theory.

bobmagicii,
@bobmagicii@phpc.social avatar

oh lol, well then.

bobmagicii,
@bobmagicii@phpc.social avatar

@herndlm comes from hating my eyeballs jerking back and forth while flick scrolling, and preferring the line length returned for more verbose method and argument names.

bobmagicii, to random
@bobmagicii@phpc.social avatar

wanna see something cool? check out my heart rate after eating birthday cake for late lunch.

rollockg, to random
@rollockg@phpc.social avatar

Is this a good place to ask a question about a problem I'm having?

bobmagicii,
@bobmagicii@phpc.social avatar

@rollockg inb4 someone links that one article about "stop asking to ask and just ask" 🤣

bobmagicii, to random
@bobmagicii@phpc.social avatar

regardless of operating system this is the most unused key on my keyboard. with a grand total of 0 intentional uses spanning pretty much my entire life. even scroll lock and pause gets used more.

bobmagicii,
@bobmagicii@phpc.social avatar

@tress777 when i tested it on various apps today, they all kinda handled it differently and would position the menus in wildly crazy spots on my screen, often no where near my mouse.

i think it would be more useful if it was bound replicate the mouse right click, so that it always goes into that spot. or always centered kinda like mac's spotlight.

but yeah nah i dont need this key 🤣

bobmagicii, to random
@bobmagicii@phpc.social avatar

just gonna hope brew install composer does what i want without reading anything anywhere.

bobmagicii,
@bobmagicii@phpc.social avatar

it did. :elephpant:

treyhunner, (edited ) to python
@treyhunner@mastodon.social avatar

Python 3.13 beta 1 just landed.

My favorite new feature is the new REPL.

Honestly, this may be my favorite feature since f-strings.

My write up on the differences between old and new REPLs:
https://treyhunner.com/2024/05/my-favorite-python-3-dot-13-feature/

bobmagicii,
@bobmagicii@phpc.social avatar

@treyhunner does it still go "use exit() to exit" when you type exit instead of just doing it? because that is what infuriates me the most about python today.

bobmagicii,
@bobmagicii@phpc.social avatar

@treyhunner im sold 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • everett
  • magazineikmin
  • thenastyranch
  • Youngstown
  • vwfavf
  • rosin
  • slotface
  • khanakhh
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • normalnudes
  • mdbf
  • hgfsjryuu7
  • tacticalgear
  • ethstaker
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • Durango
  • modclub
  • cisconetworking
  • cubers
  • tester
  • anitta
  • All magazines