@lewiscowles1986@phpc.social avatar

lewiscowles1986

@lewiscowles1986@phpc.social

Polyglot, using PHP since version 3, currently leading technical delivery and change in a Python, backend team.

I Love Linux, NodeJS, TypeScript, Python, PHP, Ruby, Golang, C.

Can be a snark, especially if stressed.

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

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Hmm native Riscv 64-bit PHP mostly Just Works...

–without-pcre-jit needed and to pull from a specific alpine base image build for riscv64

That isn't the worst trade-off I've ever seen.

PCRE without JIT apparently 1%. I'll be honest, seeing all the denial of service attacks, I feel justified in trying to avoid regex's where they are not needed.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

No mans sky for OSX is out... I Don't care if it hits 2FPS, I love that it exists.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Considering writing a piece on DRY SQL, using CTE's as composable pieces of query, to make things more readable.

Would anyone use it though?

It's gone down a storm at work with some folks.

No need to guess how a large query might perform, because you can test parts of it, and gradually compose.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Todays conundrum... Do I play with any of the code I have to control a Stream-deck via HID; or do I do literally anything else; including nothing.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

whoever runs and operates the eXoDOS, is such an aggressive d-bag

I noticed they distribute (as part of a larger collection) a file to play a game, that cannot be run without the rest of their collection.

Problem: I don't own all the titles in that collection. I only want things I've paid for. So I only download things I have bought prior.

Those things cannot self-serve. And contain a file talking about scummvm (this title doesn't use that)

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Excalidraw is such a win for my note-taking.

As despite donating to my note-taking app, it being at-least temporarily discontinued; I set about hacking a single-page which I can use to load excalidraw files.

I have got rid of some UI I don't value, such as the burger menu, command pallete and library link; but library import / export, publish works; with dark mode and light mode via user browser preferences A.L.A matchMedia API

It's also

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I've been far too happy, and grateful since my surgery. So here I sit, in surgical assessment unit 2, because I've been in agony since 5am.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Replacing spaces with tabs, just saved 37MB. I don't think it's a worthy debate tabs vs spaces; but I will keep this in mind for particularly large documents.

I have used spaces for a long time. But VS-code refusing to re-format a >100MB document left me curious.

a mix of jq and sed

cat input.json | jq -r output.json
sed -i '' 's/ /\t/g' output.json

boooo

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

What laptops do you all get your kids? I have a 7 year old niece and a 15 year old niece. Just had to fix the 7 year old's laptop because they'd installed malware. I've taken away their admin access; but it also seems like expensive laptops for kids might be a bad idea, looking at some of the damage.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I went looking for a klondike / Solitaire game that didn't have ads for OSx.

What came up, made me very pleased with the web.

https://github.com/HectorVilas/solitaire
👏 Bravo Hector👏 Bravo💌

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Why is everything the EFF does annoying

https://www.eff.org/deeplinks/2024/03/should-caddy-and-traefik-replace-certbot

If resources are a problem, maybe don't keep developing Traefik or Caddy.

Put them both in the bin where they belong, set fire to them, and salt the earth they came from.

It can't be "easier" to develop full server software, compared to a single-purpose utility.

Now ACME is proven it should be charged for anyway

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Had to explain Jupyter notebook format to a friend today. They are a PHP Developer. I said this.

So remember in the 90's you could write PHP, and then run it. They were like, sure.

So JS and Python folks have now cottoned on to the fact that is a benefit.

I think my friend liked that explanation 😂

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Today when faced with snarking about bluesky and refusing to engage with it; I aired on the side of "Let's not upset the person offering me an invite" so I'm now also at https://bsky.app/profile/lewiscowles.bsky.social

I may do nothing with it, or I may tinker with @ramsey code to save some reference of their proprietary protocol and what things look like without the app-frame.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Okay, since I cannot comment on GitHub https://github.com/RupertBenWiser/Web-Environment-Integrity is one of the stupidest proposals I've ever read.

In 2019-2020, I worked for a company building a web-app with a mobile-counterpart.

I was astounded some engineers were so green, they thought locking to specific clients was a good idea.

If you're launching a new product. Don't shoot off all it's limbs before launching it into the wild; it will likely die. (they had to go back on months of effort after ignoring the advice).

1/x

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

MongoDB is taking so long to compile, and has so many steps, compared to postgres, it's actively upsetting.

process exits if < 10GB RAM (I've just given it 32GB so it never crashes due to RAM again)

-Wno-error is not supplied, and sometimes gets unapplied mid compile (why tho)

iteration time can be over an hour, on a very large compiling machine, with lots of cores, and appropriate -j flag.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I know there is the "slippery slope" argument. But this really frustrates me:

https://phpc.social/deck/@msw@mstdn.social/112130308373760101

Source Available, at-least means I can learn from a thing.

Most people do not, and maybe cannot compile the "OpenSource" software they use.

It's poorly documented, CI is hard to reproduce or is choc full of proprietary crap. Less than 10,000 people worldwide can use the thing fully, beyond the getting started docs.

So Source Available, bringing funding helps those businesses.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

How common / normal is it for doctors to be trying to push DNR's on patients?

I've had two family members, both had doctors threatening to not treat them, unless they sign a DNR; and mysteriously, both have surprise clots in their hearts.

Luckily, the youngest of them, refused to sign a DNR (death sentence); so the hospital has to resuscitate them and perform medical care beyond the palliative.

How and when did medical professionals get so callous?

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Quite the take... I wouldn't even let someone intern if they expressed this to me.

Everyone deserves opportunity to learn and grow, but I'd get an ulcer with such hot-takes.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Another day wasted to trying to automate windows.

Luckily not the whole day

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

If we could just settle on arm64 and x86_64 for uname -m I'd be really appreciative. Thanks

aarch64, amd64, f***-off you are confusing and add needless complexity to my life.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I Wonder who funds Matz of Ruby fame. I've never once heard of them complaining that they need more funding.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I just got nodejs v20 running via nvm on a non-rooted 2020 iPad

ha.. Might need to try asdf with @ramsey php to see if I can run above php 7.4

Why? Because I can and I'm interested

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

@simon
I was really surprised recently to be unable to find time-series data in datasette.

Has anyone contacted you about that, which you can remember?

lewiscowles1986, to StarTrek
@lewiscowles1986@phpc.social avatar

First ever operation achieved.

Amazing job by the pre-op, surgical and post-op teams.

While laying, and pacing the corridoors in recovery, it was so easy to see how much worse outcomes others get.

I think I might be in less pain now, than I've been in for the last 2 years.

short of medicine I can't really work out how it could have gone better (although there was post-op discomfort obviously)

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

TIL via @Crell tht PHP is getting C-sharp style getter / setter "hooks"

nice.

IDK if the way I think about objects is the issue, but inherritance here feels weird.

If I have a struct and the only way to set values on it is via a header file where some macro modifies my input; then there is a layer of direct setting, that I'm not sure would translate to another struct with same address locations / names, without that header.

So if folks stack the hooks does perf get progressively worse?

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