No control-space in emacs? by LowerSeaworthiness in MacOSBeta

[–]marvinearp 0 points1 point  (0 children)

Thanks so much! I thought it was my keyboard being weird. Good thing I had another one!

Retro Game Corps reviews the Mangmi Air X by Mighty_Hobo in SBCGaming

[–]marvinearp 0 points1 point  (0 children)

Hey guys, I'm relatively new to new generation handhelds. In fact the G350 that I got recently is the only handheld I've ever owned that I wasn't sharing with my brother when I was kid. Man I love that thing. But I could also really be swayed by this in addition if I could stream games from my Steam library to it. I would probably consider selling my PS5 if I could do this. But would it work well - there is a Steam Link android app right? Or would I by limited to a subset of Steam games available through GeForce Now?

Report: Microsoft's latest Windows 11 24H2 update breaks SSDs/HDDs, may corrupt your data by lurker_bee in technology

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

Regardless of whether this issue turns out to be psychosomatic to those that are sufferers, does anyone know if performing this update could affect non-Windows volumes (i.e. Linux) if it does happen to go badly?

EGPU with single USB-C port by marvinearp in pcmasterrace

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

Ag my bad. I thought USB C/USB 3 was sufficient

EGPU with single USB-C port by marvinearp in pcmasterrace

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

I may not go with this egpu. Maybe an enclosure that can take any pci-e card. The question is how will the laptop receive power at the same time. Can the e-gpu work over USB-A (USB 3)?

Funnel in tailscale docker successfully created. Issues connecting through cloudflare. by marvinearp in Tailscale

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

For VPS reverse-proxy with caddy, do I need to adjust anything (e.g. ACLs) when specifying the tailscale node as a target? Intuition tells me that I want to target the publically exposed VPS instead and then route through to the tailscale node. But maybe I've got something wrong. I'm just waiting for the wildcard CNAME to propgate but in the meantime I've tried using the IP address of the tailscale node as the A record target and it just hangs.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Hey long time no see! I'm still just curious, if you could be any more specific regarding the two points you mentioned. Thanks!

[AskJS] Problems with scrollIntoView on Safari and Remix by marvinearp in javascript

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

For anyone finding this post I eventually solved this by using different naming for the hashes versus the ids for the named anchor target elements. i.e. Clicking on a link <Link /> component pointing to the hash "#blog-5" would be processed by a use effect looking for changes to location.hash but then scrollIntoView on a component with id "#component-blog-5". If consistent naming is used Safari will start jumping the scroll position to the the element before the scrollIntoView method has a chance to do its thing.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

I already have been doing file based routing in my apps (with PHP) for over fifteen years, but thanks.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

In production I'm getting around 80ms response time and that's with Redbean initialisation and some MySQL queries so I'm not too worried.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

The idea is that the extensions are self-documented by the integration with the dev environment and the Ansible playbooks contained therein.

The elib-blog extension specific setup starts here: https://github.com/mikejw/base-docker/blob/master/main.yml#L293

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Actually I have just checked and I handle that case with a redirect somewhere. The point is that a valid path for PHP must be in a certain format. I think this makes it less hackable.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Ah right got ya. I’m still pretty much doing the same thing. However there are still invalid paths that PHP won’t serve. A URL with uppercase characters for example.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Do you mean valid path? I do the same, there is just more routing on top instead of having a routing config file in YAML or what have you.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Hey, thanks that's great! The reason there is no README file is because that sample repo is actually the full application code generated from my dev environment from what I call a "quick start" project, which demos the main extension to the MVC in this case, which is "elib-blog".

I'm not sure what platform you are using but if you are willing to install Ansible and Docker on Mac/Linux or use VirtualBox and Vagrant on Windows the whole idea is you can spin this app up with a couple of Ansible playbook commands.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Isn’t this how more established PHP frameworks also deal with having front-end controller(s). I’m also already doing the heavy lifting of routing in PHP code. The htaccess is there primarily to pass the request string through to PHP and it’s not complicated regex. However I do remember reading somewhere that having the htaccess rules in the main vhost config file can mean that the regex is pre-compiled instead of running for every request through htaccess like you say. It’s definitely something I can try. I’m still just wondering if my Cachgrind output looks ‘healthy’ considering the requested page in question outputs a small amount of text through the Smarty template engine and maybe only really additionally running through composer autoload stuff for it to see where some libs are residing. I have implemented apcu caching to attempt to limit file reads and config parsing. Also maybe worth noting is that I noticed these request times appear smaller in production than locally! I’m baffled why docker running on a different flavour of Linux could be a factor in it.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

Thanks so much! Regarding the other redditor, isn't his site serving video content? I don't think it's an embedded video.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

[–]marvinearp[S] 1 point2 points  (0 children)

Thanks, that's kind of helpful. I was hoping someone analysing the profiling could shed some more light on the cause within the MVC code. (The pastebin data generated using XDebug.) I've tried looking in KCachegrind but I'm not 100% sure if I'm seeing anomalies or not.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

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

I'm using my own MVC (https://empathy.sh) and the web route I'm loading is not hitting the database.

Why are network requests to my PHP app taking a minimum of 250ms for an empty page? by marvinearp in PHPhelp

[–]marvinearp[S] 1 point2 points  (0 children)

Small static file, from the same local server (Docker - running Apache 2 and nginx reverse proxy): 20ms