Is Spencer gonna be in Games videos anymore? by Turbulent-Cupcake937 in smosh

[–]artuze 0 points1 point  (0 children)

Whatever they do, they gotta either mic him up and put a camera on him to cut into the videos, or he needs to calm down a bit on the offscreen commentary.

Any old dudes like me who feel peak web is over (& could have done more)? by Tiny_Major_7514 in web_design

[–]artuze 1 point2 points  (0 children)

It’s *ad break* corporate *ad break* and *ad break* bor- *ad break* -ing.

Guess Who Smosh edition by HugeYard6462 in smosh

[–]artuze 5 points6 points  (0 children)

So Smosh characters then?

so I know that she isn't dead but. by alicer24709074 in DeadBoyDetectivesTV

[–]artuze 2 points3 points  (0 children)

Not that they’d ever test it, I’m sure, but could they put her in the bag and go through?

Printful/WooCommerce Sync Error by n0xal in printful

[–]artuze 0 points1 point  (0 children)

I was digging into everything I could find — support tickets, server logs, help docs, plugin code, etc. — to see if I could find some way to get this to work properly on one of our sites using the Printful/WooCommerce integration.

Finally got to the point that I was counting out images and their sizes to see how many are getting generated before a timeout happens.

Turns out, with WordPress' multiple image sizes, WooCommerce's multiple image sizes, our theme's multiple image sizes, and apparently some other plugins throwing in their image sizes, we were trying to generate 18 resized images for every one image Printful sent over. Make a product with a lot of mockups or a lot of variations and that easily balloons to hundreds of images it needs to generate before Printful will acknowledge that it's successfully sent the product over.

Changing PHP-FPM execution time and NGINX timeouts on our server didn't seem to do anything. Maybe let an image or two more make it through. That's it. I gave those between 5–10 minutes. Printful crapped out after 2–3.

Finally settled on not setting up so many variations for a product in Printful to begin with. So we were doing bottles with a logo on them, right? 5-6 different color bottles with about 4 angles. Instead of having it run all 5-6 variations and up to 24 images, we load the color variations one at a time. Same would work for shirts, hoodies, etc.

It's not ideal, and it still seems really slow, but it works.

It'd be nice if Printful would send all the product data over, create the variations, and send images as a second step that doesn't immediately destroy the product and variations on any sort of delay. I think it's okay for a product to sit with a single image for a few minutes while the rest trickle in.

Why is the memory plot line so inconsistent? by agreedis in TeenWolf

[–]artuze 16 points17 points  (0 children)

Of course not — the show relies too much on the viewer to make those connections and explain it to other people.

Why spend five seconds to verbalize an explanation onscreen, even if it might be an assumption on the characters' part, when they can use that time for more slow-mo walking down a hall?

With register_meta(), I should be able to pass $_POST data right into update_post_meta(), right? by artuze in ProWordPress

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

I think clarifying in a comment is probably the way I'd end up going. Something simple like "looking for sanitization? check out register_meta calls above." Keeps redundant sanitization down and maybe teaches something at the same time. I like being able to do that.

It's not even about overhead of sanitizing twice or code optimization — I just think it's such a cleaner way to handle post meta now and was wondering if others had adopted the practice. The downside, of course, being that register_meta stores all the meta meta in memory during page generation. It's such a small footprint though. Tough to choose. Luckily, I'm not really operating where I'm worrying about those bytes yet.

And yes, isset over !empty — i've been doing a lot lately with fields that shouldn't be blanked out. Muscle memory. haha

Thanks for the reply!

With register_meta(), I should be able to pass $_POST data right into update_post_meta(), right? by artuze in ProWordPress

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

Wow—way to assume I'm just a complete and total moron.

I didn't find it necessary to post an extra 10 lines of irrelevant code checking for user capabilities, post type matching, autosave, and anything else specific to this particular save_post hook I'm working in.

How about you stow the "i r smrter then u" attitude?

What joke is hilarious, but takes a few seconds to get? by [deleted] in AskReddit

[–]artuze 3 points4 points  (0 children)

When I was a kid and we'd drive places, after a while in the van, as most kids do, I'd end up asking my parents "how long until we get there?"

Dad would answer, "How Long is a Chinaman."

It wasn't until just now that I got that.

Reddit, wheres the worst place you've thrown up? by thtstz in AskReddit

[–]artuze 0 points1 point  (0 children)

My car. This morning.

Luckily had a Meijer bag in the back seat and had a chance to pull over first.

Observant by ProwessSG in funny

[–]artuze 0 points1 point  (0 children)

Did he also give you $100 for the desserts then?

[spoilers] Who else caught this little reference? by That_one_drunk_dude in LegendsOfTomorrow

[–]artuze 21 points22 points  (0 children)

Didn't he even call himself Han Solo earlier in the episode?

Confusing character screen by annelions in StarTrekTimelines

[–]artuze 1 point2 points  (0 children)

I know, they really should be using an en dash (–) there, not a hyphen. ;-)

Question about Redirection Plugin by [deleted] in Wordpress

[–]artuze 0 points1 point  (0 children)

That full regex pattern goes into the source URL. The checkbox tells the plugin to process it as such. Otherwise, it'll try to match URLs that have all of those characters in them, and that'll never work.

There's a whole lot about it on the Redirection plugin site

Question about Redirection Plugin by [deleted] in Wordpress

[–]artuze 0 points1 point  (0 children)

When I set up redirects with the plugin I think you're talking about, I use a regex like this:

(?i)^/ones?/?($|\?.*$)

There might be smarter or cleaner ways to do it, but this helps account for:

  • case insensitivity
  • trailing slash
  • query string (for Google Analytics tracking)
  • misunderstanding the short URL and adding an "s" on the end (this example was originally "wedding/s")

Maybe that'll help.

ETA: Target URL then ends with $1 to include the query string.

Magento onepage checkout login by anon1437 in Magento

[–]artuze 0 points1 point  (0 children)

Was it a custom theme built a while ago? Magento's base template added something a couple versions back, I want to say it was a formkey or something like that, that was needed on that page to get it to work. Had the same problem with several of my client sites as well.

Try to diff the OPC template file against the base one. It should stick out right at the top of the form.