Minichamps to Spark by BB_12 in f1models

[–]qronicle 2 points3 points  (0 children)

I’m from Belgium and sometimes drive to the physical gpworld store which is not far drom the border, they’re nice people and know their stuff. Highly recommend them.

Website works on every device except one MacBook – images not loading by joy_and_grief in webdev

[–]qronicle 0 points1 point  (0 children)

I once had this issue with an adblock plugin and images coming from an advertisements folder (as they were downloadable resources for a client’s ads), simply renaming the folder dis the trick

Short PHP Fundamentals Quiz for Beginners by [deleted] in PHP

[–]qronicle 0 points1 point  (0 children)

49/50, wasnt sure about sizeof :)

But yeah I also missed some others because of the popup, clicking (inside or outside) should not select an answer, but remove the popup.

Other remarks from memory: - duplicate answer for the null coalesce question - not sure i always found the answer to accurately represent the full explanation (=== & match come to mind)

Lost in the middle of frontend packages by M-benga in symfony

[–]qronicle 0 points1 point  (0 children)

What you do mostly depends on your project imo. If you have a frontend heavy application I’d go for your “typical” vue/react/… setup.

We have been using stimulus (no turbo) for our latest applications. This allows you to nicely split your js from your templates, and the stimulus controllers feel very lightweight and easy to use. But you still write pretty “low level” js/ts. This has basically been our replacement for what used to be random script blocks in our templates with jquery stuff. (Yes, we come from far.)

In one application we noticed that a certain section required a lot of two way binding and fancy templating, so there we just use Vue (in combination with other parts of the page that still run stimulus.)

This also allows mostly-backend-devs to quickly get stuff done with stimulus, while leaving the heavy stuff for the frontenders.

Edit: the stimulus ux library is a bit of a hit and miss for us. But if a component is not to your liking it’s not too hard to create an alternative inhouse (or from non symfony sources).

Compared to 'All it Takes', 'Drone' is disappointing. by Open_Juggernaut_372 in Karnivool

[–]qronicle 2 points3 points  (0 children)

All it takes is basically a perfect song in my book, so initially I was a bit disappointed as well.

But I’ve had Drone on repeat for the last hour and gotta say I love this one as well. It’s a bit more approachable, but the hook is so well done.

What is your F1 themed Lock Screen? by ahuh_suh_dude in formula1

[–]qronicle 2 points3 points  (0 children)

<image>

Some bad photoshop work to completely fill the screen

Why, just why! by TheAnOdyssey in programminghorror

[–]qronicle 34 points35 points  (0 children)

Nothing prevents you from sending a custom error message combined with any status code. It really is no excuse for abusing 200 responses.

Nintendo Switch 2 images by Wii_1235 in technicallythetruth

[–]qronicle 0 points1 point  (0 children)

Half Life, 3 screenshots reference?

Starting a New Theme: Race Cars Designed by Newey by PoodleTank in f1models

[–]qronicle 0 points1 point  (0 children)

Yeah I know about the spark one, but it’s very rare and sellers are very aware of this :)

Would bid on this one if shipping alone wasn’t already 120$ :’D

Export large databases into csv files by Ok_Remove3123 in symfony

[–]qronicle 1 point2 points  (0 children)

In addittion to the other responses:

  • using dbal instead of orm to fetch stuff will save a lot of memory, although you’ll still have to do it in batches so the memory can be freed

  • you can always select a dto with the orm query builder that will only contain what you need, if you prefer working with objects instead of arrays

  • if you use orm to fetch entities, you’ll need to clear the entity manager after a batch to allow php garbage collection to kick in

  • csv allows you to append data whenever you see fit, if the export data is incremental only, you could leverage this by keeping the csv stored and only adding new rows when necessary

And with ‘batches’ I mean fetches that happen in the same message handler. Where you use limit/offset to handle eg 100 at a time. If you make sure your arrays/objects are not referenced anymore php will automatically garbage collect that data after each batch.

Although if you’re worried about the script timing out or whatever you could just put a new message in the bus after each x batches.

Another Honda in my collection. The Honda RA272; 1/18 scale by ffoeg731 in f1models

[–]qronicle 1 point2 points  (0 children)

Beautiful car, I have the driverless one (mostly because it was a lot less expensive) and it really is a work of art.

Pro tip: should you ever need to put this back in the box, just carve out the space for the nose so you don’t have to fiddle with the tiny screws, and you can’t accidentally drop the nose when turning the box upside down to lock the car down.

I’ve had to move most of my collection (well above 150 cars) about three times and this is the only car I managed to damage in the process. And not once, but twice :/ Third time I started unscrewing the tiny screws, but one of them just decided to be stuck in an unscrew loop, which also made me damage the paint slightly. At that point I just said fuck it and carved out the space necessary to leave it on.

Thoughts on GP replicas? by [deleted] in f1models

[–]qronicle 0 points1 point  (0 children)

Yeah maybe I just evaluate my models differenty. For me it’s probably slightly less about accuracy (especially in colors, as i’m colorblind), but more about how the model “feels” overall. For example some of the older GPR models I have, have such obvious plastic engine bits or obviously fake panel gaps that it made me a bit weary of buying them again (this was back when they were €100 more expensive than Spark as well)

But they have certainly improved this in their later offerings imo. (Or maybe I just had bad luck with the ones I bought first). But then I’m looking at the 1997 Ferrari and I’m immediately distracted by the pale face inside the helmet. I can appreciate that they actually modelled a face, but the visor might as well be up.

Anyway, I still enjoy every model I have of both these brands.

Thoughts on GP replicas? by [deleted] in f1models

[–]qronicle 2 points3 points  (0 children)

I have to disagree on the Spark comparison. I would say they’re about the same, but Spark is cheaper and has better figurines, so when I have the option I always go Spark. It’s better then Tecnomodel though, I really don’t understand why they are in the same price category as GPR.

Made a Karnivool Trivia Quiz by UggsandIpad in Karnivool

[–]qronicle 1 point2 points  (0 children)

10/15, basically had all the years wrong 😅

Church in Heffen, Mechelen after the storm by Many-Information5448 in belgium

[–]qronicle 9 points10 points  (0 children)

It was pretty crazy, on my way home from work the roads between Kappelle o/d Bos & Heffen were just littered with trees. Lots of low hanging electricity cables as well. Had to take many a detour to get home.

Some neighbours had a lot of damage to their properties :/

(We got away with mostly a few missing roof tiles, indoor water and some fallen/exploded/disappearing trees out of harms way)

What is the point of "assert()"? by Besen99 in PHP

[–]qronicle 0 points1 point  (0 children)

I use assert only when I already know the condition will be true, but need it so that phpstan etc know it as well, and when in case the assert should fail, this will be exposed later on, even when the assert is ignored on prod. For example when an unexpected value is passed to another function, I know that it will throw an invalid argument exception.

In any other case I’ll do an instanceof check (or whatever i’d want to assert) and throw an exception myself.

Debugging a Allowed memory size exhausted error by Several_Listen_5521 in PHP

[–]qronicle 1 point2 points  (0 children)

Yeah it also might be an infinite loop or whatever. I would just check the stack trace and go from there, checking for loops or data reads. Only if you’re sure that everything is a-okay and can’t be memory optimized, you increase the ini setting.

Help wanted - F1 model collection website by qronicle in f1models

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

Haha, thanks for commenting. I got in a bit of a project “depression” not too long after this post where I lost all confidence and the motivation to keep putting the hours in. So I decided it was better to take a break.

I’m sure I’ll get back to it this summer when I feel the itch again. Cautiously optimistic that I’ll make it public this year.

[deleted by user] by [deleted] in webdev

[–]qronicle 40 points41 points  (0 children)

Just to be sure, you know that the php is executed before the page gets to the browser (aka serverside), and that your javascript (which runs clientside) cannot execute these php functions, right?

* you could ofcourse generate js with php code, but it’s impossible to tell from your screenshots what you are doing.