tesseract --list-langstesseract input.jpg output -l deu| // 32-bit | |
| if (PHP_INT_SIZE == 4) { | |
| echo date('Y-m-d',strtotime('2040-01-10T16:41:07+01:00')); | |
| } | |
| // 64-bit | |
| if (PHP_INT_SIZE == 8) { | |
| echo (new \DateTime('2040-01-10T16:41:07+01:00'))->format('Y-m-d'); | |
| } |
| use Illuminate\Support\Carbon; | |
| // create | |
| Carbon::now(); | |
| Carbon::yesterday(); | |
| Carbon::today(); | |
| Carbon::now(); | |
| Carbon::now('Europe/London'); | |
| Carbon::tomorrow(); | |
| Carbon::createFromDate($year, $month, $day, $tz); |
prefix query with EXPLAIN ANALYZE: EXPLAIN ANALYZE SELECT * FROM ...
debug with https://explain.depesz.com
SELECT *
FROM table
WHERE
col1 = 'foo'
AND
col2 = 'foo'
AND (
col3 = 'foo'
OR| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Listen for Xdebug", | |
| "type": "php", | |
| "request": "launch", | |
| "port": 9003, | |
| "ignore": ["**/vendor/**/*.php"] | |
| } |
php artisan queue:restartphp artisan queue:work --sleep=3 --tries=1 --memory=768 --timeout=10800php artisan queue:work --env=production --sleep=3 --tries=1 --memory=768 --timeout=3600php artisan queue:listen --env=production --sleep=3 --tries=1 --memory=768 --timeout=3600 # does not need restarts, but is less more efficient