Skip to content

myreadings1/RDING

Repository files navigation

Nice courses:

Nice projects:

Articles:

Wireless Comm., mobile computing, MIMO, etc

CAN

Python

Goog progects

Error correction coding

Misc

RT Linux

Tech repor CSE

PHP Practice

Software Design Pattrens

  • Question: Isn't MVC anti OOP?

  • https://softwareengineering.stackexchange.com/questions/168316/isnt-mvc-anti-oop

  • MVC works at a much higher level of abstraction than single objects, and in fact each of the three (model, view and controller) will typically consists of many objects that each have both data and behavior. That objects which encapsulate data and behavior are a good fundamental building block for programs in general doesn't mean it's the best pattern at all levels of abstraction and for all purposes.

  • OOP does not restrict interactions among objects that each have their own data and their own behavior. Think of an ant and an ant colony analogy: behavior of an individual ant (run around all day, bringing food) is different from behavior of the overall colony (find the most desirable place, make more ants). The MVC pattern describes the desired social structure of an ant colony, while OOP guides the design of individual ants.

Database concepts

MySQL Workbench vs MariaDB

However I needed to change the "Default Target MySQL Version" to 5.7.

This can be done by going to: Edit->Preferences in the menu. And finally to Modeling->MySQL.

Since the latest MySQL version, v8.x, the SQL statements are not compatible with MariaDB statements (like creating an index). MariabDB creating an index on a table:

INDEX fk_rsg_sub_level_rsg_top_level1_idx (rgs_top_level_id ASC)

vs

MySQL:

INDEX fk_rsg_sub_level_rsg_top_level1_idx (rgs_top_level_id ASC) VISIBLE

MariaDB can't handle this VISIBLE keyword in this example. Using an old MySQL Version, MySQL Workbench will forward engineer a compatible MariaDB SQL file.

Currently (Oct 2019) the generated SQL_MODE output is still compatible with MariaDB. Just like InnoDB, which is also preferred when using MariaDB in most cases.

Laravel

  • What is URI? URI stands for Uniform Resource Identifier. URI is a text which is used to identify any resource or name on Internet. URI has two specializations in the form of URL (Uniform Resource Locator) and URN (Uniform Resource Name) to identify resource and name. We mostly see examples of URL and URN in the real word. If you are working on JSP and familiar with using tag library e.g. display tag and JSTL core tag library, then you may remember the use of URI to locate binary corresponding to a tag library.

Read more: https://www.java67.com/2013/01/difference-between-url-uri-and-urn.html#ixzz6MFlF9ptZ

A URI (Uniform Resource Identifier) is a string that refers to a resource. The most common are URLs, which identify the resource by giving its location on the Web. URNs, by contrast, refer to a resource by a name, in a given namespace, such as the ISBN of a book.

The most common form of URI is the Uniform Resource Locator (URL), which is known as the web address.

Read more: https://www.java67.com/2013/01/difference-between-url-uri-and-urn.html#ixzz6MFkosq66 Read more: https://skorks.com/2010/05/what-every-developer-should-know-about-urls/ Read more: https://launchschool.com/books/http/read/what_is_a_url

  • What is URN URN stands for Uniform Resource Name. URN is also the subset of URI. One of the best examples of URN is ISBN number which is used to uniquely identify a book. URN is completely different than URL as it doesn't include any protocol.

Read more: https://www.java67.com/2013/01/difference-between-url-uri-and-urn.html#ixzz6MFlzCHDJ

Query Parameters

View in Laravel

  • Read here: https://laravel.com/docs/7.x/views Views may also be nested within subdirectories of the resources/views directory. "Dot" notation may be used to reference nested views. For example, if your view is stored at resources/views/admin/profile.blade.php, you may reference it like so:

return view('admin.profile', $data);

Multiple role-based authentication in Laravel

Installing composer

Deploy Laravel on server

  • See (https://dev.to/asapabedi/deploying-laravel-5-applications-on-shared-hosting-without-the-use-of-ssh--16a6)

    1. Upload compressed file of the project, like drcharity3.zip.
    1. unzil the file outside the public_html folder (server).
    1. Move files in the public folder (Laravel) to the public_html folder (server). Other Larval project's file should be placed in some folder outside public_html. Example, we use a folder called (drcharity3).
    1. Edit index.php in the public_html (server) and change two lines as follows: .. //require DIR.'/../vendor/autoload.php'; require DIR.'/../drcharity3/vendor/autoload.php'; .. //$app = require_once DIR.'/../bootstrap/app.php'; $app = require_once DIR.'/../drcharity3/bootstrap/app.php';
    1. On the server side, create a DB, then get (DB_Name, DB_Username, DB_Pass).
    1. On the server side, create a (.env) file, copy and paste content from (.env) file in your Laravel project;
    1. Edit two files (.env) and config/database.php and change DB access parameters as shown in point (5) above. .. the database.php should looks like: //'database' => env('DB_Name', 'forge'), 'database' => env('DB_Name','DB_Name'), //'username' => env('DB_Username', 'forge'), 'username' => env('DB_Username','DB_Username'), 'password' => env('DB_Pass', 'DB_Pass'),
    1. You should be good to go!

Laravel on local server

Multiple Domains on Debian/Apache2

httacess Debian

RPI4 update

TCPDF + Laravel

TCPDF ADD NEW FONT

TCPDF Custom Header and Footer

Static and Fallback IP address

Install LAMP

  • Install phpmyadmin (sudo apt install phpmyadmin)

HTML Date

document.getElementById('datePicker').valueAsDate = new Date();

https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement

Group of checkboxed Laravel

In array check

  • See () $design_id = 'hc1wXBL7zCsdfMu'; $list_desings_ids = array('hc1wXBL7zCsdfMu','dhdsfHddfD','otheridshere');

if(in_array($design_id, $list_desings_ids)) { echo "Yes, design_id: $design_id exits in array";

}

Popup Model Laravel

Git

  • clone local repo git clone C:\folder1 folder2

-Branches: git checkout -b iss53 Switched to a new branch "iss53"

This is shorthand for:

$ git branch iss53 $ git checkout iss53

Enable bootstrap

Enable Bootstrap 4 RTL

  • See bootstrap file here ()

Probability Books

Change raspberry pi pass

  • sudo passwd root

TP-Link 8 Linux Driver

axios normal request

MariaDB allow remote connections

Math readings:

Laravel search nested relation tables

Filter query results

Q&A stackoverflow

Components with Vuejs

Sharing data between components

Watch changes in Parant component

Partition DB Based on (years, months, and so on) to optimize search performance and reduce search time.

Processing chunks in laravel

Search how to switch between DB connections on the fly

Copy Big DB files

JSON to JS_String

Passing data from Laravel to JSON

Nested Object with v-model

v-model Object binding

Update Array and Object

MySql Trigger ==> important

Laravel MVC classes and functions

Birds repeller

Change RPi4 Mirror

RPi4 to wireless router

rfkill RPi3

PHP Versions

-- ------------ Set Default PHP Version 7.0 ------------ $ sudo update-alternatives --set php /usr/bin/php7.0

  • Check PHP versions
  • sudo update-alternatives --list php
  • cd /etc/php
  • dir

Install LAMP Ubuntu 18.04

Nice Article Async function vs await

Laravel Fillable fields

Calculator with VueJS

Open new window with VueJS

Install multiple domain on a single Debian Serve

Install PHP7.4

Binary Calculator

Oracle Linux 8 Security

Oracle DB

Oracle installation probelm

Install Google Chrome on Oracle Linux 8

Install ORAcle DB19 on OL8

Add DB Oracle DB19 on OL8.5

Listner Security

Oracle Free Services

Oracle Configure TDE

Enable SSH Oracle Linux 8

Shared Folder

Flutter path

شعر امير المؤمنين

Enable Networking Centos 8

Flash Back problem

Thread vs Parallezim Golang

Go Cheat Sheet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published