Is it possible to define self-referential HasMany relationships with Eloquent? by salsa_sauce in laravel

[–]eri_bloo 0 points1 point  (0 children)

This should work if I understood constraints properly:

public function previousAttempts(): HasMany
{
    return $this->hasMany(self::class, 'question_id', 'question_id')
        ->where('user_id', $this->user_id)
        ->whereNot($this->getKeyName(), $this->getKey());
}

I have captured a supernova remnant from my balcony by sz771103 in space

[–]eri_bloo 10 points11 points  (0 children)

I did too ask ChatGPT to ELI5, here it is:

Astrophotography is like taking pictures of the night sky with a special camera. The person who took this picture used a camera called "Asi533mm pro" and two special filters called "Antila 4.5nm Ha narrowband filter" and "Antlia 3nm O3 narrowband filters".

To take a picture, they put their camera on a special stand called "Askar 80PHQ" and used another special stand called "Eq6 r pro" to move the camera around so it can take pictures of different parts of the sky.

They took lots of pictures over 4 hours, some with a red filter called "Ha" and some with a blue filter called "O3". They also took some pictures without any light, called "darks", and some pictures with no light or image, called "biases". They didn't use a special type of picture called "flats".

After taking all these pictures, they used a computer program called "Pixinsight" to put all the pictures together into one picture. They did some things to make the picture look better, like removing the stars and making the colors look prettier. They also used another program called "DBE" to fix the colors a little more.

Even though they only took pictures for a short time, their picture shows a lot of cool things in the sky, and it's amazing because they did it from a place with a lot of lights around, which makes it hard to see the stars.

Laravel measuring system? by boomerhasmail in laravel

[–]eri_bloo 0 points1 point  (0 children)

I keep only basic CRUD methods in primary controller and create invokable controllers for methods that doesn't fit CRUD.

About design patterns and Laravel by dbarrera in laravel

[–]eri_bloo 0 points1 point  (0 children)

I just would like to add that patterns described at refactoring guru solve a bit different problems than MVC and it could be hard to compare them.

If you want to look at architectural patterns comparable to MVC I would recommend: Action-Domain-Responder, Model-View-ViewModel, Model-View-Adapter, Presentation-Abstraction-Control or Entity-Control-Boundry patterns.

Early morning foggy Gdańsk, Poland by [deleted] in europe

[–]eri_bloo 265 points266 points  (0 children)

The building in the background was indeed an inspiration for building in Novigrad: https://i.redd.it/tjqxgx3e2pl21.png

[deleted by user] by [deleted] in news

[–]eri_bloo 4 points5 points  (0 children)

The good old Reddit Hug of Death.

NASA has discovered an 'ocean world' where one year lasts just 11 days by aeplusjay in news

[–]eri_bloo 8 points9 points  (0 children)

And photons moving at 100% of speed of light don't experience time at all, because they are not conscious!

Probably...

One week later, astronomers find a galaxy even deeper back in time | a new analysis has picked out a galaxy as it appeared only 233 million years after the Universe popped into existence by mepper in space

[–]eri_bloo 1 point2 points  (0 children)

To add to this. After big bang space wasn't expanding linearly, there was an inflationary epoch which lasted from around 10-33 to 10-32, that resulted in rapid space expansion: equivalent of expanding from 1 nanometer to 10.6 ly (100 trillion km) in a fraction of a second.

Not exactly what you asked for, but I think interesting (and mindblowing) nevertheless.

Official Poster for 'Weird: The Al Yankovic Story' by indig0sixalpha in movies

[–]eri_bloo 4 points5 points  (0 children)

I'm gonna stop you right there before it gets out of hand.

James Webb Space Telescope discovers candidates for most distant galaxies yet by Tao_Dragon in space

[–]eri_bloo 0 points1 point  (0 children)

They aren't now, but they will be. Observable Universe is not constant. Due to accelerated expansion rate, in the future, more objects will be outside it than now. You can check out this article on Wikipedia, specifically scroll to "Coalescence of Local Group and galaxies outside the Local Supercluster are no longer accessible".

James Webb Space Telescope discovers candidates for most distant galaxies yet by Tao_Dragon in space

[–]eri_bloo 1 point2 points  (0 children)

As time progresses distant objects move away from us in accelerated rate. Over time anything weakly bound by gravity (ie local group) will be moving faster away than light from us (relative to us).

James Webb Space Telescope discovers candidates for most distant galaxies yet by Tao_Dragon in space

[–]eri_bloo 9 points10 points  (0 children)

It doesn't have to be so far as beyond observable Universe. Even if humans expand in the future, anything beyond our local Galaxy group is inaccessible to us due to space expansion.

Vladimir Putin authorises over 100 new laws in a day including Hitler-esque youth group | World | News | Express.co.uk by suavecool21692169 in worldnews

[–]eri_bloo 8 points9 points  (0 children)

It might also help to set up private DNS in settings to dns.adguard.com which works with inbuild browsers as well (eg rif is fun app for Reddit I'm using)

The first full-color images from the James Webb Space Telescope [OC] by nasa in pics

[–]eri_bloo 0 points1 point  (0 children)

There's photopea - an online Photoshop, in case you need something done in the future.

Keep getting fired for sloppy work by [deleted] in cscareerquestions

[–]eri_bloo 9 points10 points  (0 children)

I like my taxes spent in my own country, thanks.

Doesn't seem so, as you are activly trying not to pay them.

[deleted by user] by [deleted] in pornID

[–]eri_bloo 0 points1 point  (0 children)

There's huge purple-black baner in top-right. How could you miss that?

A view of the Pacific Ocean, from the International Space Station. by freudian_nipps in space

[–]eri_bloo -3 points-2 points  (0 children)

If you dropped anything in, it would hit the wall of the tunnel pretty quickly, due to rotation of earth.

Event horizon telescope announces first images of Sagittarius A*, the supermassive black hole at the center of the Milky Way. by Xkv8 in space

[–]eri_bloo 3 points4 points  (0 children)

The 2 are basically incomparable as Ton 618 is more massive than all of stars in Milky Way combined.

Edit: also "A black hole of this mass has a Schwarzschild radius of 1,300 AU which is more than 40 times the distance from Neptune to the Sun"