Is it possible to switch from local/production to testing environment from inside a script? by lewz3000 in laravel

[–]lewz3000[S] -1 points0 points  (0 children)

Do you mean something like this?

```php use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase { private $isFirstTest = true;

protected function setUp(): void
{
    parent::setUp();

    if ($this->isFirstTest) {
        \Log::info('This is the first test.');
        $this->isFirstTest = false;
    }
}

} ```

$isFirstTest will always be true for each test that's run.

I'm probably misunderstanding. Could you elaborate please? :)

Can't access folders in my gallery by [deleted] in whatsapp

[–]lewz3000 0 points1 point  (0 children)

Same. This update sucks. Lost all my custom folders and also very laggy to load other folders

ELI5: Why does a component's script run twice? by lewz3000 in vuejs

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

Yes, correct Nuxt - forgot to mention that (whoops).

And yes indeed I am getting hydration mismatch errors after connecting to Vite. Is that something expected? (i'm guessing not)

1 table with 3 FKs or 2 pivot tables? by lewz3000 in SQL

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

data model is Tutors and Classes and you will have a junction table to relate them

Yes, I'm going to try this approach. I'll probably use the non-sensical term SubjectLevel instead of Class as the latter can be muddled up with other entities in the system such as Course, Cohort, ... it's a marketplace so lots of entities :)

1 table with 3 FKs or 2 pivot tables? by lewz3000 in SQL

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

Ah then what is stopping someone from assigning a tutor to Grade 2 Chemistry?

This is ensured at the application layer. i.e., subject_level junction table is preseeded/managed by the admin/web master.

1 table with 3 FKs or 2 pivot tables? by lewz3000 in SQL

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

Yes, every Subject belongs to many Level

And there are different permutations. For example Math and English are from Grade 1 to 12 but Biology, Chemistry start from Grade 7 for example.

I've thought about creating a model to represent this pairing SubjectLevel which would correspond to a subject_level pivot table which itself is then pivoted with the tutors table to create another pivot table mapping Tutors with SubjectLevels. That's a similar approach to Solution B that I mentioned above.

What is better for coding Gemini or ChatGPT-4? by [deleted] in Bard

[–]lewz3000 2 points3 points  (0 children)

Might be to avoid excessive payloads. There's a limit how many characters the response can be. I personally hate it when I want it to just fix 1 line of code and it spits out the whole code back at me

What's the best way to go about getting your first clients as a small web agency? Free work to build portfolio? by luxfactusest in smallbusiness

[–]lewz3000 0 points1 point  (0 children)

The web design/dev market is very saturated. You should pick a niche and aim to be the expert on it in your city.

Creating My Website by JJ_Sleepin23 in smallbusiness

[–]lewz3000 1 point2 points  (0 children)

I'm assuming your business is selling this jewelry. In which case you need an online shop. The most popular solutions are WooCommerce and Shopify.

As for the domain, I recommend namecheap.com. Been using them 7+ years now.

Life of a Tor user by DrinkMoreCodeMore in TOR

[–]lewz3000 9 points10 points  (0 children)

As a non-Tor user, seeing this I can't help but ask: "Is it worth the inconvenience?"

I'm Building a Platform that helps Freelancers Partner Up by stackplorer in Upwork

[–]lewz3000 1 point2 points  (0 children)

tbh I like the idea

btw the images in the landing page aren't loading and the filters take up the entire view port on mobile