@cabbey@phpc.social avatar

cabbey

@cabbey@phpc.social

sourcerer @ SmugMug, photo geek, dad, licensed rocket scientist (L2 w/ NAR and Tripoli).

This is MY stream of consciousness. I don’t speak for my employer, club, or hobby.

Fiscally conservative, socially liberal; he/him

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

hennell, to RegEx
@hennell@phpc.social avatar

This is pretty neat. A better way to in ? 🤔

https://github.com/gherkins/regexpbuilderphp

cabbey,
@cabbey@phpc.social avatar

@kboyd @hennell or write with it, run it in script and capture the output, put both in the code for later reuse.

cabbey, to mastodon
@cabbey@phpc.social avatar

Has anyone found an iOS client with controls for ignoring hashtags? There’s a couple I’d like to stop seeing.

kboyd, to random
@kboyd@phpc.social avatar

My "Roko's Blocklist" word filter is getting a workout today due to Amazon's re:Invent conference. Apparently they're talking about AI a lot. Which makes sense, they've been at it for a while under its other name - machine learning.

Yet it still reminds me of when they tried to cash in on bitcoin hype with stuff like "AWS Quantum Ledger" and "Managed Blockchain".

cabbey,
@cabbey@phpc.social avatar

@kboyd @ramsey indeed I am. A dozen of us here this year. And @shandrew is speaking this year.

Crell, (edited ) to php
@Crell@phpc.social avatar

I'm noodling with a data storage layer library in . specific. There's 2 options:

  1. Auto-generate SQL tables/views/queries off of PHP data types (with attributes)
  2. Auto-generate PHP classes off of SQL tables/views/queries.

Which would you prefer? The goal is fully typed interaction in PHP space, but I'm not sure which side should be canonical.

Which would you rather work with, and why? Assuming a "good" DX in either case.

Answer why in replies, boost for reach, etc.

cabbey,
@cabbey@phpc.social avatar

@Crell I grudgingly voted for sql centric, not because that’s where I want to be long term, but because I for see more uses where you are sitting down trying to deal with a legacy app’s data and want to start fresh in the code that wraps it.

cabbey, to random
@cabbey@phpc.social avatar

welcome to the 1700000000+ era my nerds.

cabbey,
@cabbey@phpc.social avatar

@kboyd well, something has. For some users. Allegedly.

ramsey, to random
@ramsey@phpc.social avatar

Supposedly, this is a real, unedited photo this woman’s friend took of her from behind while she was modeling a wedding dress in front of two mirrors. She swears the photo is not altered in any way. Yet, her pose reflected in each mirror is different from how she’s posed standing in front of the mirrors.

There’s no way this isn’t doctored.

Original photo on Instagram: https://www.instagram.com/p/CzPGNmJIebC/

cabbey,
@cabbey@phpc.social avatar

@ramsey @syntaxseed it was supposedly an iPhone, which can do all sorts of “computational photography magic” by default.

foone, to random
@foone@digipres.club avatar

Do you ever think "I should hack the firmware on my tumble dryer so it'll boot faster"?
Or are you a normal person with a regular brain?

cabbey,
@cabbey@phpc.social avatar

@kboyd @foone closely related: I should hack this LG washer dryer to play sounds that don’t annoy my wife.

kboyd, to random
@kboyd@phpc.social avatar

Foods of The Expanse:

  • Coffee
  • Lasagna
  • Red Kibble
  • Martian Curry
  • Canned Chicken
  • Eros Noodles
  • Guanshiyin Cucumber Sandwiches

I am currently eating the single most luxurious and expensive of those.

cabbey,
@cabbey@phpc.social avatar

@kboyd using the fancy pan with the extra corners?

cabbey,
@cabbey@phpc.social avatar

@kboyd I had somehow forgotten about that.

kevbob, to random
@kevbob@xoxo.zone avatar

deleted_by_author

  • Loading...
  • cabbey,
    @cabbey@phpc.social avatar

    @kevbob but resetting the pram might fix it! You won’t know if you don’t try.

    cabbey,
    @cabbey@phpc.social avatar

    @kevbob I saw recently that someone has brought that beloved classic ui to phpunit.

    stevegrunwell, to random
    @stevegrunwell@phpc.social avatar

    “Using dollar signs and arrows vs no dollar sign and periods. Those are the only differences between PHP and JavaSceipt, right?” — @ramsey

    cabbey,
    @cabbey@phpc.social avatar

    @alexstandiford @stevegrunwell @ramsey pretty sure you can do that in php now too.

    cabbey,
    @cabbey@phpc.social avatar

    @stevegrunwell @ramsey and one package manager vs what is it now… seven? Ten?

    gemeenteamsterdam, to random Dutch
    @gemeenteamsterdam@amsterdam.nl avatar

    Vanaf nu kun je bij 4️⃣ Recyclepunten in onze stad gratis een elektrische bakfiets 🚲 lenen. Handig als je geen auto hebt of liever jouw grof afval met de fiets wegbrengt.

    ➡️ https://www.amsterdam.nl/nieuws/nieuwsoverzicht/recyclepunt-bakfiets/

    cabbey,
    @cabbey@phpc.social avatar

    @eyrea @notjustbikes @WaterSword there has got to be something off about the machine translation they offer though. A “baking bike” to haul trash?? I assume it’s a cargo bike, not a bike with an oven on board.

    cabbey,
    @cabbey@phpc.social avatar

    @eyrea @notjustbikes @WaterSword probably a different underlying translation engine. My client uses LibreTranslate and came up with this: “From now on, you can borrow an electric baking bike free of charge at 4 . Convenient if you don't have a car or rather take away your garbage by bike.”

    loriemerson, to random
    @loriemerson@post.lurk.org avatar

    long before Émile Baudot's creation of Baudot code in the 1870s, Francis Bacon developed a 5-bit binary code in 1605 called "Exemplum alphabeti biliterarii"!

    cabbey,
    @cabbey@phpc.social avatar

    @juliank @loriemerson yeah. That’s just plain old binary counting.

    grmpyprogrammer, to random
    @grmpyprogrammer@phpc.social avatar

    “PHP 8.2 is largely seen as skippable” It’s important to start the day with a good laugh

    cabbey,
    @cabbey@phpc.social avatar

    @grmpyprogrammer wow. Whoever said that has no clue how wrong they are. Skipping all the deprecations in 8.2 and going straight from “it works” on 8.1 to “it’s fataling” on post 8.2 would be such a monumental own goal.

    kevbob, to random
    @kevbob@xoxo.zone avatar

    deleted_by_author

  • Loading...
  • cabbey,
    @cabbey@phpc.social avatar

    @kevbob pretty sure the “show papers” these clowns are talking about was a proof of vaccination check, which some places were doing in the early easing of restrictions. We twice showed our cards to eat inside when places first started doing dine in again.

    seldo, to random
    @seldo@alpaca.gold avatar

    American politics is going to be Republicans nominating speakers and having them fail to win until November 2024.

    cabbey,
    @cabbey@phpc.social avatar

    @ramsey @seldo well, she tried. https://www.huffpost.com/entry/nikki-haley-jake-tapper-biden-blame_n_652ce166e4b03b213b06775d (not to endorse HuffPo, just the first hit I got from searching trying to find it.)

    kboyd, to random
    @kboyd@phpc.social avatar

    I try to avoid "Dudes Sitting In Gamer Chairs and Talking at the Camera" as a genre on YouTube.

    You should, too.

    And, instead, always always watch this mad genius.

    https://www.youtube.com/watch?v=Yzj1JgEnaRc

    cabbey,
    @cabbey@phpc.social avatar

    @kboyd worse than “dudes sitting in gamer chairs talking to camera” are “dudes kicked back in recliners with a boom mic reading from a screen 20° off camera.”

    kboyd, to random
    @kboyd@phpc.social avatar

    It's a cool fall evening, gentle wind, bit of rain ... and I find myself wanting a real rager of a winter storm.

    cabbey,
    @cabbey@phpc.social avatar

    @kboyd our daily forecast calls for thunder storms tomorrow. But the hourly break down does not. 🤨🤷

    nev, to webdev
    @nev@bananachips.club avatar

    it was only this year I learned that the proper way to nest lists in HTML is

    <ul>
    <li>Item
    <ul><li>Sub-item</li><ul>
    </li>
    </ul>

    and not

    <ul>
    <li>Item</li>
    <ul><li>Sub-item</li></ul>
    </ul>

    which makes sense and all, but it is making things hard for me because I am trying to write a thing in PHP that generates a table of contents (a list of nested links) from a web page's headings, and I am having a DICKENS of a time. I figured out how to tell it to start a nested list, but I am having trouble figuring out how to close the containing </li> tags correctly. Especially in cases where the list goes from, like, <h4> to <h2>. Do I have to, like, nest the LOOPS too?

    I do want to figure it out by myself but if anyone has dealt with this particular problem, hints would be welcome!

    cabbey,
    @cabbey@phpc.social avatar

    @Crell @nev strong plus one to both Eric and Larry here, recursion is the solution to this. In an OO world you would have an object that represents an item, potentially has sub items that are themselves instances of the same object. An output method emits the opening li, the item, potentially an opening ol or ul, then loops on its children, calling the same output method, before finally emiting closing elements for whatever it opened. (At least the li, maybe the ol or ul.)

    seldo, to random
    @seldo@alpaca.gold avatar

    Ticket prices to an NFL game rose 43% overnight after Taylor Swift fans figured out she was going to be there. She's not singing or anything, she's just in the stands. https://www.washingtonpost.com/sports/2023/10/01/taylor-swift-kelce-chiefs-jets/

    cabbey,
    @cabbey@phpc.social avatar

    @seldo not even in the stands. In a VIP luxury box.

    kboyd, to random
    @kboyd@phpc.social avatar

    Well, hmm. I wonder who might be to blame if this becomes a problem.

    https://en.wikipedia.org/wiki/Kessler_syndrome

    cabbey,
    @cabbey@phpc.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • thenastyranch
  • GTA5RPClips
  • tester
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • kavyap
  • JUstTest
  • cisconetworking
  • khanakhh
  • normalnudes
  • osvaldo12
  • cubers
  • tacticalgear
  • Durango
  • ethstaker
  • modclub
  • anitta
  • provamag3
  • Leos
  • lostlight
  • All magazines