Open in app

Sign In

Write

Sign In

Panjeh
Panjeh

416 Followers

Home

About

Jul 5, 2021

Compiling OpenMP on macOS

Note: Apple does not include OpenMP in the clang they ship, and the gcc in macos is just an alias to clang Using the gcc compiler: brew install gcc Then you can use it by calling gcc-11 gcc-11 -fopenmp

Openmp

1 min read

Openmp

1 min read


Apr 28, 2021

Pretty Laravel Routes in console

This package pretty-routes add a route:pretty command to your artisan console for pretty route output. Thanks to Alex Wulf! Installation: composer require wulfheart/pretty_routes Usage: php artisan route:pretty php artisan route:pretty --except-path=horizon --method=POST --reverse

Laravel

1 min read

Pretty Laravel Routes in console
Pretty Laravel Routes in console
Laravel

1 min read


Apr 22, 2021

How to convert ipynb to Python

How to run an .ipynb Jupyter Notebook from terminal — First you need to convert the ipynb file to Python: jupyter nbconvert --to python filename.ipynb Then run it in Terminal using: python3 filename.py

Python

1 min read

Python

1 min read


Apr 22, 2021

Check whether a numpy array is empty or not?

Numpy array has .size attribute. If it returns zero it means there are no elements in the array. Suppose A is a numpy array. if A.size == 0: # then A is an empty array

Numpy

1 min read

Numpy

1 min read


Mar 28, 2021

How Mockery Interacts with Laravel Service Container

When testing Laravel applications, you may wish to “mock” certain aspects of your application so they are not actually executed during a given test. Goal: Instructing the Laravel IOC container to use our mocked instance of the object instead of constructing a real object of a class. How: We need a bridge…

Laravel

2 min read

How Mockery Interacts with Laravel Service Container
How Mockery Interacts with Laravel Service Container
Laravel

2 min read


Mar 28, 2021

First Run Failed Tests in Laravel php

For phpunit test you need config a phpunit.xml file. You can set this little config in phpunit.xml and see how in the next run your, last failed tests will be run first.

Laravel

1 min read

First Run Failed Tests in Laravel php
First Run Failed Tests in Laravel php
Laravel

1 min read


Mar 27, 2021

Mysql clients for Linux and Mac

HeidiSQL Sequel Pro Mysql workbench Data grip jetbrains https://dbeaver.io/

Mysql Workbench

1 min read

Mysql Workbench

1 min read


Mar 15, 2021

Setup MailHog with Laravel valet localhost or Laravel Sail

Installing MailHog — brew install mailhog Enabling: Enable the service via running the command below: brew services start mailhog # also you can stop it whenever you want using: brew services stop mailhog This tells Homebrew to setup a background service. Then MailHog is always running on your machine. As long as Homebrew is…

Laravel

1 min read

Setup MailHog with Laravel valet localhost or Laravel Sail
Setup MailHog with Laravel valet localhost or Laravel Sail
Laravel

1 min read


Mar 13, 2021

How to handle enums in Laravel database

Suppose there are two models Patient and also Exam and the relationship between them is One To Many, I mean each patient can have many exams.

Enum

2 min read

How to handle enums in Laravel database
How to handle enums in Laravel database
Enum

2 min read


Mar 5, 2021

Laravel routes controller action declaration

I’ve just installed Laravel 8 besides Laravel Breeze and in auth.php file in the routes directory, I see how we should import the namespace the of the controllers. As you see you for declaration the store action, we have to put a bracket around the controller and the action like…

Laravel

2 min read

Laravel routes controller action declaration
Laravel routes controller action declaration
Laravel

2 min read

Panjeh

Panjeh

416 Followers

Posting about Python and Laravel

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech