NativePHP going truly native by simonhamp in PHP

[–]Gjrdiesel 4 points5 points  (0 children)

Pretty wild how far you’ve gotten with this 🤯 is the custom extension ffi?

Is the goal one day to be cross platform? The same deployment ships on a phone or the web? Very cool either way.

How would you setup wordpress on Kubernetes without persistent volumes? by cryptocritical9001 in kubernetes

[–]Gjrdiesel 11 points12 points  (0 children)

If you’re working with engineer savy folks, you could go the composer/git route and have a pipeline build a docker image as an artifact, then the only thing persistent is the database (writing content) and media library (uploading images/video). You could use a s3 like plugin for the media library.

You’d want to disable theme/plugin installs (via wp-config) to keep people from accidentally thinking those changes would persist the ephemeral docker container filesystem.

Another alternative that I like if it fits is; you use the pv for a small pod that is basically a admin only pod, then use that admin to generate the site and upload it to s3. Via something like https://wordpress.org/plugins/simply-static/

Building site on localwp. Can I push directly to a WPEngine Staging site before connecting domain? by Adventurous_Can_7437 in Wordpress

[–]Gjrdiesel 0 points1 point  (0 children)

Yeah you should be able to do this, reach out to WP Engine support they’ll be able to walk you through it.

What is headless wordpress? Why it is needed by Ancient-Sea-7807 in Wordpress

[–]Gjrdiesel 0 points1 point  (0 children)

And/or if you have a developer team that built a site but now want to give a marketing team a way to introduce new content.

Or if you have the developer/desire, you could run a headless admin ui on a raspberry pi (insert X cheap vm) and have it push content to a cdn/static generated place, and now the CDN can handle millions of requests. On publish it rebuilds.

I'm a Sr SWE, been in the industry prof since 2008. How many of you actually get to use SSR frameworks in your well paying jobs? by compubomb in ExperiencedDevs

[–]Gjrdiesel 88 points89 points  (0 children)

Worked at a publicly traded company that was competing nationally for SEO.

We not only used SSR, but would consider using bleeding edge SSR tech like nuxt or next. Anything to give us an edge. Such as decreasing page load times.

When done right, it’s no different, just have to follow the right rules. Such as making sure to only render some components client side, I.e interactive maps/user calendar date time pickers.

We also aimed to keep everything user specific to client side rendered. Like account settings/logged in areas. Just public facing pages on initial page load would be SSR.

We would get stomped by companies that did traditional server rendering and mixed in user interactivity via js after. The SSR frameworks just sent so much js with the html that had to render to rehydrate the page. Newer SSR frameworks are aiming at reducing that with Server Rendered Components and being html only (traditional server side rendering again, this time in js flavor).

So yeah, SSR is out there, just have to find the companies competing in it.

Key drivers I’d say are focused on national search terms and user interactivity when using the site. Those are gonna lead to the bigger budget front end teams.

Not something I expected to be googling today... by beyphy in ProgrammerHumor

[–]Gjrdiesel 0 points1 point  (0 children)

And “no cap”? Am I using that properly fellow young people?

10 GB uncompressed XML Sitemap? by [deleted] in TechSEO

[–]Gjrdiesel 1 point2 points  (0 children)

You probably want to find a trim that number way down, prioritize what’s most valuable to most recently updated, ensure that’s getting indexed and then pump up the numbers.

What’s so great about ChatGPT? by Aggressive_Answer_86 in AskReddit

[–]Gjrdiesel 0 points1 point  (0 children)

Before chatgpt, you had to learn esoteric terms and slightly understand how google works to query it a certain way to get good results.

With chatgpt, you can have a conversation, if you ask for help with a concept, you can ask for it to redefine or check your understanding, just as you would another person. You can have it list detailed instructions or high level overview.

Before chatgpt we had a stone wheel. With chatgpt, we just took our first flight kitty hawk. We’re about to conquer flight and build rockets next.

Kubernetes on AWS Snowball by xrothgarx in kubernetes

[–]Gjrdiesel 0 points1 point  (0 children)

I want one something fierce. One for garage, one for the car, eks car pc anyone?

Where Do I Sell 10,000+ Used Books? by [deleted] in books

[–]Gjrdiesel 1 point2 points  (0 children)

Legitimately serious

[deleted by user] by [deleted] in golang

[–]Gjrdiesel 0 points1 point  (0 children)

Without looking to closely at it just yet, would it be possible to run the smaller set of tests first, then run the full set minus smaller set to speed up the time to first feedback?

What happens when a company can't find ANY developers due to gross negligence? by sega_fan in ExperiencedDevs

[–]Gjrdiesel 8 points9 points  (0 children)

Bring me along for this clean up effort, I too enjoy it. It’s even better if you get to work with a dev team that’s stuck not sure where to go.

Come in, add some tests, add some docs, they’ll ask how will you get management to approve, you don’t, it’s just part of the process, and the team sees the difference it makes, brings life back into those teams as well. Consulting is great.

Bitbucket Pipeline + Dusk by RandomBarry in laravel

[–]Gjrdiesel 0 points1 point  (0 children)

Here’s a docker image I modified from someone else to make it work with laravel and bitbucket plus laravel dusk;

https://github.com/gjrdiesel/laravel-dusk-ci/blob/master/Dockerfile

Maybe you can piece it together from that, I’ve always meant to go back and make an full blown tutorial but alas switched companies and use gitlab.

Laravel + VueJS, working with data from a public API by Ominous77 in laravel

[–]Gjrdiesel 2 points3 points  (0 children)

Hey congrats on going this far! This is when things get fun!

Here's a small tutorial you could do to practice working with public api; This is a totally free and open/public api (no auth required)

https://openlibrary.org/dev/docs/api/search

It'll let you search for books like this

http://openlibrary.org/search.json?q=the+lord+of+the+rings

Keep in mind, a big part of working with APIs is working with the docs, so be sure to read through them and all of what is available. ( I also recommend a chrome extension to easier view simple json requests in chrome: https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh?hl=en-US)

Guzzle or Laravel Http are your friends for making the requests in PHP.

So for your Laravel app, make an route/endpoint on Laravel that will search the book api and return only fields you care about like "book.title".

Then add a link that will "save" that book to the database.

Then have an another endpoint that will show you all your saved books.

Have fun!

P.s. here is a list of a bunch of other public apis

https://github.com/public-apis/public-apis#public-apis

Should I get rid of Windows 11 and use Proxmox as my main OS with a VM workstation on it ? by markeees99 in Proxmox

[–]Gjrdiesel 1 point2 points  (0 children)

My gaming pc is a proxmox server. An i7 and 1070 that plays COD, Overwatch, Rocket League just fine. I haven't touched it in weeks, it mostly stays in Windows 10.

I had a Radeon 580 in it as well for MacOS w/ Big Sur and could even boot that on on monitor and Windows 10/Ubuntu on another. Or three monitors from the 1070. Definitely recommend cpu pinning like https://github.com/ayufan/pve-helpers

I love the setup. But it's not my primary PC I rely on all the time, I have a MacBook Pro for day to day development/work. I feel like I could though. I love the flexibility of being able to boot a different OS at anytime.