Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. X

    javascript how to express many-digit exponentials to 2 decimal places

    I have a javascript program which spits out large arrays of numbers of the form '3.173538947635389377E+98', in the console, and have tried without luck to reduce them to something like '3.17E+98' for ease of comparison. I Stringified the number, calculated the period and E locations, cut and...
  2. X

    How to find the position of a specific row in a laravel collection(already fetched)

    You can do this from many ways. First which i remember use Laravel Helper. use Illuminate\Support\Arr; $filtered = Arr::where($array, function ($value, $key) { return $value->student_id == 3 ? $value: ''; }); Also you can use map helper as well. $mapped = Arr::map($array, function...
  3. X

    Writing a DELETE query for 3 tables

    I am trying to write a simply query that will delete an event based off its event_id. That event_id could be in 1 of 3 tables in a database however. Leagues Tournaments Trainings Each event_id is generated by a randomizer function so each id is unique. I have tried a few different syntaxs for...
  4. X

    How to speed up VueJS SPA?

    You can use webpack to extract different components and pages into different JavaScript and CSS files, and then you can use dynamic imports to load the files when they are needed. To use webpack, you will need to create a configuration file that tells webpack which files should be extracted and...
Top