martedì 16 ottobre 2018

10 Twig tips

Simply an interesting article sharing 10 Twig tips.

lunedì 17 settembre 2018

My technology sites list

A group of sites sharing interesting articles for developers. Other sites along the way.

Let's start:
- https://hackernoon.com
- https://flaviocopes.com
- https://www.howtogeek.com
- https://codeburst.io

giovedì 13 settembre 2018

How to Create Symbolic Links in Windows 10

You need to open "command prompt" (not "power shell") as administrator and then you can easily do it by "mklink" command.
To find "command prompt" icon you can use Cortana and then click right bottom mouse and select command prompt (admin)

Files symbolic link

Grammar
mklink Link Target

Example
mklink "E.\path\symbolic_link.txt" "E.\path\real_file.txt"

Directory symbolic link

Grammar
mklink /D Link Target

Example
mklink /d "E.\path\symbolic_link" "E.\path\real_folder"

Ref:
https://www.maketecheasier.com/create-symbolic-links-windows10/

sabato 16 giugno 2018

Relations between models


Relations between models are a fundamental topic in ORM and a key knowledge in coding and is not easy to find good explanations.

Here it is some good articles about it:

Relation Many to Many
Pivot tables and many-to-many relationships

domenica 13 maggio 2018

Reset user password in Linux Bash on Windows 10

  1. edit file (in notepad or notepad++):
    %localappdata%\lxss\rootfs\etc\shadow
    
  2. find your normal user, for example:
    user1:$jsdjksadgfhsdf.saflsdf.sadf.safd:17299:0:99999:7:::
    
    and simply remove the hash part (below part)
    $jsdjksadgfhsdf.saflsdf.sadf.safd
    
    you will see a different hash - I hope :), so should look like:
    user1::17299:0:99999:7:::
    
  3. Save the file
  4. start bash again
  5. sudo bash
  6. password this will ask for your new password without requiring previous one.

sabato 3 febbraio 2018

Which linux version we have to do with?

Here is a memo to find it:

Check linux kernel version number

Open a shell prompt and type the following command to see your current Linux kernel version:

$ uname -a

Sample outputs:
Linux vivek-laptop 2.6.32-23-generic-pae #37-Ubuntu SMP Fri Jun 11 09:26:55 UTC 2010 i686 GNU/Linux
Where:
- 2.6.32-23 – Linux kernel version number
- pae – pae kernel type indicate that I’m accssing more than 4GB ram using 32 bit kernel.
- SMP – Kernel that supports multi core and multiple cpus.

/proc/version file

Type the following command to see Linux version info:

$ cat /proc/version

Sample outputs:
Linux version 3.2.0-0.bpo.1-amd64 (Debian 3.2.4-1~bpo60+1) (ben@decadent.org.uk) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Sat Feb 11 08:41:32 UTC 2012
The above output identifies the kernel version that is currently running.

Find Distribution Version

Type the following command:

$ cat /etc/*release

OR

$ lsb_release -a

Sample outputs:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid

Rif: 
https://www.cyberciti.biz/faq/command-to-show-linux-version/

Some resources about Eloquent ORM


Here the links: