quote

giovedì, marzo 12, 2020

How to get out of projector mode (Win 7) - black screen

I was stuck on windows reboot, after having tried to connect my windows laptop to a projector.
I could see just black screen, it was scaring.

Solution: Hold [Windows key] + P
source

domenica, febbraio 02, 2020

Uninstall Logitech GHUB from Mac

  • Delete the G Hub application from /Applications
  • Trash the entire folder lghub at ~/Library/Application Support/
  • Trash ~/Library/Application Support/Logitech/Gaming/ghubDevices.json
  • Trash settings.json from that same folder

domenica, gennaio 05, 2020

default spring security in spring-boot app

If you include this dependency in your pom:

 groupId: org.springframework.boot
 artifactId: spring-boot-starter-security


you "inherited" the default spring security.
When you application starts, have a look to this message:

Using generated security password: 03219696-3a8d-49d5-8385-11e84fe94ac8

Then if the login mask shows up:













Type this:

user: user
password: that password in the message...

martedì, settembre 10, 2019

Issue with wireless Ubuntu 18.04 - board QCA6174


Workaround:
  1. Replace the folder /lib/firmware/ath10k/QCA6174/hw3.0 with the corresponding from https://github.com/kvalo/ath10k-firmware/tree/master/QCA6174/hw3.0
  2.  rename firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 to firmware-6.bin


giovedì, marzo 28, 2019

Information about maven plugin

$mvn help:describe -Dplugin=io.swagger.codegen.v3:swagger-codegen-maven-plugin:3.0.7 -Ddetail=true
link

martedì, marzo 19, 2019

Debugging test with maven

$ mvn -Dmaven.surefire.debug -Dtest=MultipleJsonDatasetLoaderTest#loading_Multiple_Dataset_Loading_From_Jar test
From intellij remote attach debug on port 5005

venerdì, marzo 08, 2019

intellij - find class not working

In case [ctrl]+[N] is no longer working in intelli then delete the following folder: %USER_HOME%\.IntelliJIdea70\system\caches.
link

martedì, novembre 13, 2018

Ubuntu deja-dup Backup [exclude list]

$ dconf-editor

  • Search for /org/gnome/deja-dup/exclude-list
  • Add ['**/target', '**/.git']

lunedì, settembre 24, 2018

tmux

$ tmux
$ [Ctrl]+[b] / [Shift] + 5
$ [Ctrl]+[b] / [arrow]
$ [Ctrl]+[b]/ [Shift] + "

sabato, luglio 29, 2017

maven dependency tree

$ mvn dependency:tree > result.txt
or
$ mvn dependency:tree | grep -A 5 -B 2 module

mercoledì, giugno 21, 2017

sabato, maggio 20, 2017

Ma quanto prendi al mese?

Spesso mi viene chiesto, ma quanto prendi al mese a Zurigo? Beh è una domanda a cui non si può rispondere, gli stipendi in Svizzera sono considerati strettamente confidenziali, però per avere un' idea di quanto possa guadagnare un senior software engineer a Zurigo si può fare riferimento a questo sito: payscale .

Ciò detto alcune considerazioni di base devono essere fatte.
Aspetti negativi:

- ci sono solo 12 mensilità;
- non c'è di regola il TFR;
- non esiste art. 18 quindi si può essere licenziati anche senza giusta causa.
- il pranzo a lavoro te lo paghi te, non esiste mensa gratis né buoni pasto.
- hai un' assicurazione sanitaria molto costosa da pagare ogni mese, diciamo di base circa 250 chf al mese.
- le ferie sono molto di meno rispetto all' Italia, parliamo di qualcosa come 25 giorni all' anno, anche se ci sono aziende che ne offrono anche meno, 20.
- si lavora 42 ore settimanali, rispetto alle 40 ore (?) italiane.
- last but not least, il costo della vita è esageratamente alto: affitto, ristoranti, alimentari, etc.

Aspetti positivi:

- stipendi lordi annuali molto alti;
- servizi (trasporti, pubblica amministrazione, etc) eccellenti;
- le tasse sono estremante più basse rispetto all' Italia. Approssimativamente tra tasse cantonali e federali, al netto di detrazioni e rimborsi, mi viene da dire meno del 10% sul lordo annuale, almeno se hai un permesso di lavoro di tipo C.
- se perdi il lavoro hai diritto ad un' indennità di disoccupazione pari a circa il 70% della tua retribuzione, per almeno 18 mesi.

Fatte queste considerazioni lascio a voi se conviene lavorare in Svizzera o in Italia :-)

lunedì, marzo 06, 2017

jerky movement of the mouse with ubuntu - how to fix it

$ xinput  (search for id corresponding to external mouse -> 9 )
xinput --list-props 9  
xinput --set-prop 9 "Device Accel Constant Deceleration" 2

It's also possible to calibrate acceleration and threshold by using xset command

xset q | grep -A 1 Pointer
$ xset m 18/10 0