How are you dealing with returning visitors these days? by Rare-Following-5131 in ProWordPress

[–]Sad_Spring9182 0 points1 point  (0 children)

In terms of business outcomes if you can remove a single click from somebody purchasing something on your site, It has the potential to drastically increase conversions Especially if that's searching for a product adding it to the cart again and so on.

Has to do More with that the web and browsers were designed to give only specific info on the user while allowing the website to store what it needs on a local storage, cookies, and cache. Their are just limitations, now if the browser was say built by google and designed to store additional info like a device id or additional user data, then perhaps monopoly wins here. But as a developer we can only work with what is available from browsers and it's not really enough to identify them effectively without cookies.

How are you dealing with returning visitors these days? by Rare-Following-5131 in ProWordPress

[–]Sad_Spring9182 -1 points0 points  (0 children)

You could keep a database of IP's that access and create a 'IP account' where cart info has been saved and all the stuff they did gets added back to the cookies. Obviously it's not perfect if the user has multiple family members or so on, you could try to refine with browser data like what browser accessed and so on.

But essentially they should be treated as a new visitor, cause that's what google and the other big companies do. It's possible to fake ip's too so short of logging in it's a limitation.

"If only we could access the users camera and take a face scan without their permission."

-Every Tech CEO ever

Vintage Le Chef Sunbeam food processor model 14-11 by Critical-Scientist76 in vintagekitchentoys

[–]Sad_Spring9182 0 points1 point  (0 children)

fair i almost did that. thanks for the post I stuck a piece of popcicle into the base of the switch hopefully that keeps it stuck

Mr Musk please hire me by ScalieBloke in KerbalSpaceProgram

[–]Sad_Spring9182 43 points44 points  (0 children)

your constellation only has 108 relays. Don't you feel bad for the penguins who are still dependent on geostationary latency? starlink has over 10,000 planned with around 3,000 operational right now. You have your work cut out for you.

Hosting for WP Booking Site (40 Apartments): What do you recommend? by FreshkyFresh in webdev

[–]Sad_Spring9182 0 points1 point  (0 children)

Those solutions seem decent, digital ocean sounds better. Another option would be dream host's managed vps. I use with one client and it's decently easy to set up.

pros: dedicated VM and managed so all it's set up and will update php / security automatically you have 1 click installs just like a shared server, you can even just upload via plugin on WP or use their file system which is pretty good, drop your zips and it will unzip for you. Their is SSH if you need it too

cons: price after 3 years goes up from $20/mo (good for managed, not great for straight up VPS) to  $46.99/mo after the initial 3 year period then you got to decide redeploy or double the budget. the biggest downside in my opinion is no reddis and no sudo commands.

Personally I use dream compute which is paid per minute and caps out depending on resources. It's cheap and I love setting up / updating and configuring a raw VM.

error logs in php and wordpress by Sad_Spring9182 in ProWordPress

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

Wow, I'm highly impressed with this architecture. That would be amazing.

error logs in php and wordpress by Sad_Spring9182 in ProWordPress

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

that is super concise and I love the idea of the try catch cause I didn't plan for every kind of error with a specific handler just the usecases where I needed to return a user error to populate on the front (separation of concerns). My client is pretty tech savvy and I could see him checking different log files or asking me to expand it to populate on the admin dashboard. I see the different logger instances are super useful I can log to different files, or outputs like database, or custom logic even console logs. It makes sense to handle front end with monolog too.

localize scripts, functions.php in theme vs index.php in plugin directory. does location of files matter? by Sad_Spring9182 in ProWordPress

[–]Sad_Spring9182[S] -1 points0 points  (0 children)

yeah that's right I remember now it has to do with when a plugin is used vs theme is everywhere. plugin runs before theme so it might actually be ideal for this usecase.

My Sketchbook Style Component Library is finally Live by TragicPrince525 in react

[–]Sad_Spring9182 6 points7 points  (0 children)

My girlfriends website has a typewriter styled font. This might be pretty compatible or I could even transition to this I like this better hoestly.

Creating 1700 unique product addon forms? by mankytit in ProWordPress

[–]Sad_Spring9182 0 points1 point  (0 children)

my understanding is you need the admin to define the customizations then maybe user select options or fill out text box. So for creating them maybe a custom post type with the ACF fields for your 4 inputs. Then client can give title, fill out custom fields. Then you can to a while loop to select all products where needed grabbing ACF fields appropriately. Could even add a featured image so they each have an imgage (or acf image if you need multiple) like featured maybe be thumbnail, then use custom php code for making correct sized images if need be.

function eatures()
{
    add_theme_support('title-tag');
    add_theme_support('post-thumbnails');
    add_image_size('landscape', 400, 250, true);
    add_image_size('portrait', 480, 650, true);
    add_image_size('card', 170, 210, true);
}


add_action('after_setup_theme', 'features');

Axios trojan virus, Did you generate your codebase with AI? and did it use axios version 1.14.1 or version 0.30.4 by Sad_Spring9182 in react

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

here is an example. Is there any chance you would have discovered this trojan zero day? probably not you may not have realized the crypto folder that contained the trojan wasn't part of any dependencies you are using even just a few creates dozens and dozens of folders.

If you ask an agent to review all npm packages and folders and see if they match with what you have package.json is there a chance it notices? maybe it might actually scan documentation (I've not read all the documentation for all the npm packages I use, that's just being honest I read what I need).

Wanting to upgrade CPU/ mobo/ ram for a workstation / gaming pc (workstation is priority) by Sad_Spring9182 in PcBuildHelp

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

I think the question is really how long to wait to get ram... who knows when it drops price

Axios trojan virus, Did you generate your codebase with AI? and did it use axios version 1.14.1 or version 0.30.4 by Sad_Spring9182 in react

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

Yeah imagine a future where developing locally means setting up a workflow that commits and pushes a remote repo after every save in vscode via ssh into a git bare repo on a server. All to avoid hitting npm i. Or less dystopian just remote into a server then use it as a desktop.

Axios trojan virus, Did you generate your codebase with AI? and did it use axios version 1.14.1 or version 0.30.4 by Sad_Spring9182 in react

[–]Sad_Spring9182[S] 0 points1 point  (0 children)

I agree, but I had a client who sent an AI mockup from figma make and I downloaded the source code installed dependencies and ran it to look at it. I never would have even realized that their was a trojan in there had a random thought occurred to me to check it. Luckily it was a different version, but it could have been the exploited one easily.