##laravel
logging in laravel
tail -n0 -F storage/logs/laravel.log
add use Log;
above the class then use Log::info('check this var =' . $var);
install laravel
composer create-project laravel/laravel laravelapp
ERROR: java.sql.SQLException: The server time zone value 'EEST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. | |
SOLVE: | |
1. sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf | |
2. add after line [mysqld] | |
default_time_zone='+03:00' | |
3. ctrl+o | |
4. ctrl+x | |
5. sudo service mysql restart |
# copied from default config | |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
{ | |
"U2": "easyjet", | |
"1T": "Bulgarian Air Charter", | |
"Q5": "40-Mile Air", | |
"4O": "Interjet", | |
"7A": "Express Air Cargo", | |
"JY": "Air Turks and Caicos", | |
"JU": "Air Serbia", | |
"QH": "Kyrgyzstan", | |
"A8": "Benin Golf Air", |
import { DomSanitizer } from '@angular/platform-browser'; | |
import { Pipe, PipeTransform } from '@angular/core'; | |
import { icons } from 'feather-icons'; // v4+ | |
@Pipe({ name: 'feather' }) | |
export class FeatherIconsPipe implements PipeTransform { | |
constructor(private sanitizer: DomSanitizer) {} |
public class Converter{ | |
static long kilo = 1024; | |
static long mega = kilo * kilo; | |
static long giga = mega * kilo; | |
static long tera = giga * kilo; | |
public static void main(String[] args) { | |
for (String arg: args) { | |
try { | |
System.out.println(getSize(Long.parseLong(arg))); |
[ | |
"Abarth", | |
"Alfa Romeo", | |
"Aston Martin", | |
"Audi", | |
"Bentley", | |
"BMW", | |
"Bugatti", | |
"Cadillac", | |
"Chevrolet", |
##laravel
logging in laravel
tail -n0 -F storage/logs/laravel.log
add use Log;
above the class then use Log::info('check this var =' . $var);
install laravel
composer create-project laravel/laravel laravelapp
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158327, -66.932928 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.447538, -66.557681 | |
00622,17.991245, -67.153993 |