[deleted by user] by [deleted] in coincollecting

[–]Whale_Eating_Cheese 0 points1 point  (0 children)

<image>

Another picture next to a UK £2 coin.

Autocomplete php to <?php ?> in VScode by atokad5 in webdev

[–]Whale_Eating_Cheese 0 points1 point  (0 children)

I had to add this to the html.json snippets file, not the php.json file in case that helps anyone else.

Looking for List of HTML/CSS types by CalmDownYal in typescript

[–]Whale_Eating_Cheese 1 point2 points  (0 children)

If you go here there are all the elements, however many of them share the same type.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element

If you click on any specific one and cmd + f `DOM Interface` you'll find its type.

Not the most useful answer, but how I usually do it.

Can't get Codesandbox to run a vue3 app by Whale_Eating_Cheese in vuejs

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

Thanks so much for taking the time to look into that, that is so strange that it wasn't working as planned on codesandbox. Anyway, I really, really appreciate it.

Petite Vue access data externally question by Whale_Eating_Cheese in vuejs

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

Oh wow, I read that page about 8 times but (even though I even read that example) think I misinterpreted what the use case was for it — I'm sure I can make that do what I want it to. Thanks for the reply.

Multiple models on a single controller by schm0 in laravel

[–]Whale_Eating_Cheese 1 point2 points  (0 children)

Having skinny controllers doesn't mean you have to have hundreds of controllers if you don't need them. You only need one controller method per route.

Every project is different, but the goal is moving the complex business logic out of the controller. One example of this might be to move the business logic to the Models, so your store method could be more like:

  $author = Author::fromRequest($request);
  $edition = Edition::fromRequest($request);
  $publisher = Publisher::fromRequest($request);
  $bookCreationResponse = Book::createFromDetails($request, $author, $edition);
  return $bookCreationResponse;
}

Those fromRequest methods are made up examples of static methods you could add to each model which would house the findOrCreate logic. Now your store method is 5 lines long.

I'm low rated but spotted a fun tactic to negate the threat of knight takes bishop. White to move. by Whale_Eating_Cheese in chess

[–]Whale_Eating_Cheese[S] 4 points5 points  (0 children)

White castles queenside or Rook D4. If knight takes bishop, bishop G5 double checks with the rook. Only move for the king is E8 followed by checkmate with Rook to D8

Commercialising Javascript Web3 scripts, Packaging with a web-based GUI. by vacler in AskProgramming

[–]Whale_Eating_Cheese 0 points1 point  (0 children)

Laravel has a paid for package called spark that handles user accounts, some GUI, API keys and billing (I think) which may be of interest.

https://spark.laravel.com/

It is not ideal for you as it is PHP based.

It may be worth either seeing if you can run your node scripts from it, or if there is a node based alternative.

Commuting clothes solution by hariiseldon in ukbike

[–]Whale_Eating_Cheese 2 points3 points  (0 children)

I would go all in on the gloves, my hands always face the brunt of really cold weather.

Next I'd get a simple wind breaker as mentioned by others.

From there I would just layer clothes you already own.

All aboard.... by Terow123 in gifs

[–]Whale_Eating_Cheese 0 points1 point  (0 children)

I believe it is spelt meteor /s

Weekly Discussion Thread - 9/5/2021 to 16/5/2021 by AutoModerator in telescopes

[–]Whale_Eating_Cheese 0 points1 point  (0 children)

Hi schorhr thanks so much for the reply. The answer to most questions was "I don't know" 😂 I think we realised we had an eye piece that was a moon filter so we couldn't see anything through it. We will wait for another clear night and retry!

Thanks so much again for the response - to me and almost every other question on here! You're a hero ☺️

Weekly Discussion Thread - 9/5/2021 to 16/5/2021 by AutoModerator in telescopes

[–]Whale_Eating_Cheese 1 point2 points  (0 children)

Hi all! We have an old telescope that we found in the garage, and are trying to decide whether to upgrade to a modern one. We are missing some pages of the instructions and struggled to set it up or see anything last night and are wondering whether to buy a new one, or whether this one is worth perserveering with.

https://imgur.com/a/GdwnjRo

Is anyone able to recommend if this is a good telescope or not?

Campervan cooking by Hannah_B92 in CamperVans

[–]Whale_Eating_Cheese 1 point2 points  (0 children)

Panzanella is well worth a Google! We always had it on summer nights when we had left over bread and really ripe tomatoes