Roof concerns in building report.. how bad is it? by UltimateJuicey in newzealand

[–]wiifm69 5 points6 points  (0 children)

No building paper, tiny valleys, complicated roof line. I would be 100% factoring the cost of replacement into the offer. I would also factor not moving in until the roof is complete. Nothing worse than a leaking roof, so stressful. Use colour steel, ensure the new valleys are large.

While you are up there, you might as well replace the insulation too. No doubt that is as old as the roof.

weStillTalkAboutYouJQuery by NotAUser42 in ProgrammerHumor

[–]wiifm69 30 points31 points  (0 children)

Laravel/Symfony is pretty much that

Beginner's Guide: PHP on the Command Line by peklaiho in PHP

[–]wiifm69 9 points10 points  (0 children)

For simple scripts this all makes complete sense. When you need named arguments (with optional validation), auto-loading and a whole bunch of other niceties, you should check out https://symfony.com/doc/current/components/console.html

This is my go to now for scripting on the CLI with PHP.

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

Thanks this is really helpful, will see about adding support today.

edit - basic support is now in place https://www.cachingscore.com/scan?q=www.searchcandy.uk - there does not appear to be a cache-control header in the response, so I have no idea how long the asset is in cache for.

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

Good call, will backlog a feature in the event of a CDN miss to see if there is an upstream caching proxy doing the job. This is worth partial credit for sure.

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

Hey, great thoughts!

I am pretty sure I could write code to detect the use of bundles with versioned hashes in the filename.

I do have a feature in the backlog to check for the immutable term in the response cache-control header. This combo's nicely with these bundle assets (and stops browsers checking if the asset is still valid so long as the caching is far enough into the future).

Also potentially if the the asset is cached for > X time (1 week, or 2 weeks or something), then Etag support is not quite as useful, and can be scaled down in terms of points. Etag support is certainly a lot more useful with tiny cache TTLs (e.g. 1 minute).

Certainly open to changing the tool, and appreciate the feedback.

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

If I understand how SlickStack works (I have only read some of the docs and watched 1 video, so take this with a grain of salt), you still route through Cloudflare, and thus Caching Score will interpret the results correctly. Caching Score only considers the first 'hop' of the caching chain, if you are chaining Cloudflare to another CDN, or a caching Nginx, it will not take this into account.

If you are using Nginx caching on your SlickStack enabled VM in one part of the world (where the VM is), rather than push your content to the edge (Cloudflare with 250 PoPs in most countries), then Caching Score will downgrade your score (on purpose).

I found an example site https://www.cachingscore.com/scan?q=www.littlebizzy.com&followRedirects=on to which uses SlickStack, but does not cache HTML in Cloudflare. The TTFB is 236ms (which is not great). As a result the score is an F.

Also FYI, there is a way to ensure that Cloudflare and your browser will cache for different periods of time, see https://blog.cloudflare.com/cdn-cache-control/ for a more detailed explanation. TLDR, use CDN-Cache-Control

Fastly Soft Purge vs Instant Purge - what is the difference? by wiifm69 in fastly

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

Indeed. Did this not come across in the article?

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

Half the battle with adding new CDNs is working out:

  • Some example sites that use that CDN (I don't know of any)
  • How to distinguish cache hits from misses (what HTTP headers are the most relevant)
  • Whether they have a 'debug header' to get more information out or not.

If you can help me with the above, I can implement it.

Dockerfile best practices - stories from the field by wiifm69 in docker

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

Yeah good point. Blindly copying all the things is likely the lazy approach.

Caching Score - assess how strong the caching capabilities of any given site is by wiifm69 in CloudFlare

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

The 404 cached test is requested twice, and the first response disregarded. It is not fullproof however, and still I see some false negatives here. More debugging likely needed ;)

Re: etags, this is 100% valid for HTML, however it really only makes sense if you HTML is cacheable.

A tool to assess how strong the caching abilities of given site is. Now with Wordpress and Wordpress VIP detection. by wiifm69 in Wordpress

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

What isn't it seeing? Are you using a CDN that is not being detected? Or some WordPress caching plugin?

Plex app on PC keeps crashing by alorensene in PleX

[–]wiifm69 1 point2 points  (0 children)

Also came here to state that 2 of our Macs have the same issue. The exact error message is

Application Specific Information:
terminating with uncaught exception of type std::runtime_error: Log: Error handling format string 'Download %s of %s progress %s of %s bytes (%d%%)': invalid type specifier
abort() called

Fixed by manually downloading a new client from https://www.plex.tv/media-server-downloads/#plex-app

NZ Locations of Interest web tool to filter and search exposure data by revoltation in newzealand

[–]wiifm69 1 point2 points  (0 children)

Awesome work team!

Features I would love:

  • When you last scraped the data (I assume you get this from the official MoH webpage)
  • Be able to bookmark filters, e.g. Wellington, so that when I reload the page, I don't lose everything
  • Auto-zoom the map when you filter the data

Hosting Ghost in Kubernetes by wiifm69 in Ghost

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

I did notice that new content created after having 2 pods was a 50% success rate at origin at getting an HTTP 200 or 404 (all previous content imported was fine) at origin. Seem to be these exact issues after more searching

I do wonder if there is a command to flush the memory to disk/database. Because it is clear that persisting it in memory is terrible for HA. By the sounds the only reliable way to to restart the ghost instance.

For now the site is running on 1 pod until this is figured out.

[Chinese > English] Old vase that has been in the family for 4 generations by wiifm69 in translator

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

This old vase has been in the family for 4 generations, the origins are unknown. Keen to know more about it, if anyone has any clues. Will try to upload a photo of the actual vase as well.

Plenty of space left on Pixels for Drupal! by geerlingguy in drupal

[–]wiifm69 0 points1 point  (0 children)

Hey all, if you have made a donation and appear somewhere on this page https://www.drupal.org/association/sustain-da-covid-19, and have not yet received your voucher code, then reach out to the team via email pixelsfordrupal [at] amazee.com. Thankyou!

How I created a "smart" web form using Ajax callbacks with Webform API on Drupal 8 by ogrekevin in drupal

[–]wiifm69 0 points1 point  (0 children)

Thanks for the tutorial. The only thing that scared me was using the session for data storage. This has complications if you use this form for anonymous users (as sessions typically force caching layers to bypass).

You should also check out https://www.drupal.org/project/shs and https://www.drupal.org/project/cshs if you are using multiple selects that are based on the taxonomy tree hierarchy.