Paolo Redaelli personal blog

Category: Documentations

Modernize Your Scripts By Adding GUI

Shalitha Suranga wrote How to Modernize Your Bash Scripts By Adding GUI : Tired of displaying raw text on Console? Try Zenity & notify-send I do use zenity and notify-send myself but zenity fails miserably when it cannot access a graphical interface. It would be better if it fallback to the good, old NCurses library.…

Create wireless access point

It is as simple as issuing nmcli dev wifi hotspot  ssid MyHotSpot password "test1234" Actually ysdx in the answer given on Unix & Linux Stack Exchange added the interface name (for example ifname wlp4s0 ) but when you have only one wifi interface it is not necessary: nmcli is smart enough to know which interface…

Link

If you are familiar with Object-Oriented Programming, then you’ve probably heard about the SOLID principles.

Ugonna Thelma explains The S.O.L.I.D Principles in Pictures and she explains them very well.

In fact I shall admit that while I’ve interiorized the S, the O, the L and the I, I always tend to forget the “Dependency injection” principle. Now it’s really clear!

Don’t Use Database Generated IDs | The Startup

Stop letting the database be in charge of your application Source: Don’t Use Database Generated IDs | The Startup This is old lore: the almight Davide Bianchi wrote in 2002 “PK autogenerate… amici o nemici?” (“autogenerated Primary Keys… friends or foes?. The answer is plain, simple, short Absolutely no! Then he explain why.