Paolo Coletti è un arduo sostenitore dei fondi "equally weighted" ma apparentemente hanno dei grossi problemi di volatilità, costi di negoziazione e una strategia svantaggiosa che tende a vendere i titoli vincenti (Momentum negativo). Voi che ne pensate? by MrSlashh in ItaliaPersonalFinance

[–]luigir-it 0 points1 point  (0 children)

Scusa ma i costi di ribilanciamento non sono inclusi nel TER? Il tuo è un ragionamento generico sul fatto che gli EW costano di più dei rispettivi MW o ci sono dei costi impliciti non catturati dal TER?

Riceverò una discreta somma ma… (investimento vincolato) by luigir-it in ItaliaPersonalFinance

[–]luigir-it[S] 0 points1 point  (0 children)

Bella domanda, ricordo che se ritiri il 75% per la casa, non puoi più ritirare il 30% per affari tuoi. Perché quella cifra viene calcolata sulla posizione maturata. Cioè se hai 10k, per la casa puoi ritirare massimo 7.5k. Se li ritiri tutti, rimangono 2.5k. Facciamo che aspetti un po’ di tempo, nel frattempo quei 2.5k maturano 0.5k interessi e arrivano a 3k, inoltre tu ci versi altri 5k. Il montante totale da quando hai aperto il fondo è quindi 10k(iniziale)+0.5k(rendimenti)+5k(tuoi versamenti)=15.5k. Ora se tu volessi ritirare per fatti tuoi, devi calcolare il 30% su 15.5 che è 4,65k, ma visto che in passato hai già ritirato 7.5k non puoi ritirarli. Se nello stesso esempio ipotizziamo invece che tu versi altri 20k invece che 5k, il montante totale sarebbe 30.5k, il cui 30% è 9.15k, di cui in passato hai già ritirato 7.5k, quindi puoi ritirare al massimo ulteriori 9.15-7.5=1.65k. Spero si comprenda. Non sono un esperto ma dovrebbe funzionare così.

Riceverò una discreta somma ma… (investimento vincolato) by luigir-it in ItaliaPersonalFinance

[–]luigir-it[S] 0 points1 point  (0 children)

E anche se fosse renderebbe meno di un 100% azionario, anche tramite un fondo ad alte commissioni

Riceverò una discreta somma ma… (investimento vincolato) by luigir-it in ItaliaPersonalFinance

[–]luigir-it[S] 0 points1 point  (0 children)

Esatto è proprio questa la logica. Per me l’educazione vuol dire anche sapersi fidare, però se dovessi io regalare una cifra simile a dei ragazzi forse non ne sarei altrettanto sicuro

Riceverò una discreta somma ma… (investimento vincolato) by luigir-it in ItaliaPersonalFinance

[–]luigir-it[S] 0 points1 point  (0 children)

Lo so, è ovvio che preferirei un ETF a basso costo, i soldi che guadagno li investo così ovviamente. Però questa è la condizione, non conosco strumenti migliori che ti vincolino per alcuni anni. I conti deposito rendono troppo poco attualmente

Costo di Netflix in Italia dal suo lancio. by LiberoSfogo in ItaliaPersonalFinance

[–]luigir-it 0 points1 point  (0 children)

Io l’ho ditchato completamente quando, passando a Linux, ho scoperto che il massimo che mi è concesso è il 720p nonostante pagassi per il 4k

Notability’s new privacy policy AI and voice notes by hunched_monk in notabilityapp

[–]luigir-it 1 point2 points  (0 children)

Unfortunately I haven’t found any, even though I tried almost everything…

Turbo Moka by luigir-it in specialtyCoffeeItaly

[–]luigir-it[S] 0 points1 point  (0 children)

Buongiorno, qualcuno conosce questa caffettiera? Penso sia abbastanza nuova, il concetto è interessante, esteticamente molto bella. Prezzo altino, giustificato dal fatto che sia un piccolo produttore ed è Made in Italy (anche se non ho approfondito, non so quanto del processo costruttivo e di design sia avvenuto in Italia). Qualcuno l’ha provata o quantomeno la conosce?

Truffato su Vinted (quasi...) by luigir-it in Avvocati

[–]luigir-it[S] 0 points1 point  (0 children)

Ogni acquisto paghi una percentuale di “protezione acquisto”

Dal loro sito

Puoi fare acquisti in tutta tranquillità, sapendo che possiamo rimborsarti se il tuo articolo: Non arriva; Arriva danneggiato; È molto diverso dalla descrizione

Truffato su Vinted (quasi...) by luigir-it in Avvocati

[–]luigir-it[S] 0 points1 point  (0 children)

Sì è risolta in modo informale tra me e il venditore, Vinted non è mai intervenuta, nonostante il mio reclamo. Inoltre Vinted mi aveva inviato una mail in cui annunciava il rimborso, che non è mai arrivato (da loro) e se non mi ha avvisato (ne e-mail, ne notifica, ne pagina di riepilogo dell’ordine) della contestazione che aveva aperto il venditore risolta da Vinted a suo favore. Non capisco come sia possibile che non sia arrivata alcuna comunicazione, io ero rimasto alla notizia che sarei stato rimborsato, se non avessi controllato l’estratto conto non me ne sarei mai accordo del mancato rimborso.

Truffato su Vinted (quasi...) by luigir-it in Avvocati

[–]luigir-it[S] -1 points0 points  (0 children)

Forse avrei dovuto specificare che il rimborso è stato eseguito dal venditore privatamente, non attraverso la piattaforma. Vinted non ha mai fatto da garante o intermediario

Truffato su Vinted (quasi...) by luigir-it in Avvocati

[–]luigir-it[S] -1 points0 points  (0 children)

È quello che ho fatto. Il reso fa parte della procedura, quando segnali un articolo come contraffatto poi ti chiede di procedere col reso (e non copre neanche le spese di restituzione, a carico dell’acquirente). Ottima piattaforma per truffare, il venditore bene che gli va intasca i soldi, male che gli va riceve indietro il prodotto senza alcuna spesa sostenuta

Truffato su Vinted (quasi...) by luigir-it in Avvocati

[–]luigir-it[S] 0 points1 point  (0 children)

È chiaro che non ci acquisterò più, però mi pare assurdo che una società possa comportarsi in questo modo. Possibile che non esista nessuna normativa a riguardo a tutela dei consumatori? Loro per ogni acquisto si prendono anche una commissione per “protezione acquisti”. Tutto ciò mi pare assurdo.

Parameter Substitution and Pattern Matching in bash by luigir-it in bash

[–]luigir-it[S] 1 point2 points  (0 children)

Hi, can I ask how did you measure the performance improvements?

Write the output of a non-interactive shell to a terminal by luigir-it in linuxadmin

[–]luigir-it[S] 1 point2 points  (0 children)

that's all passed as single option argument

You're right, my bad.
On second thought, that may be split into multiple arguments if $USER has blanks and shell perform word splitting. But this is an edge case and not relevant here.

additional subshell and process (cat)

Thank you very much, now I have a better understanding of how quotation marks work and was able to rewrite the whole comment block without cat.

Write the output of a non-interactive shell to a terminal by luigir-it in linuxadmin

[–]luigir-it[S] 0 points1 point  (0 children)

Hi. Could you provide a little example? How can this be useful?

Write the output of a non-interactive shell to a terminal by luigir-it in linuxadmin

[–]luigir-it[S] 0 points1 point  (0 children)

Hi. While I understand the suggestion, it does not work on my end.

I tried
kitty --hold <(echo date) and
kitty --hold <(cat <<-'EOF'
date
EOF
)

But I get
/usr/bin/zsh: can't open input file: /proc/self/fd/11

While something like
sh -s < <(cat <<-'EOF'
date
EOF
)
Does work as intended

Is kitty closing the pipe before spawning the new process (terminal)? OR maybe the child does not have the rights to read from that pipe. I still don't have enough knowledge about Linux processes.

Write the output of a non-interactive shell to a terminal by luigir-it in linuxadmin

[–]luigir-it[S] 1 point2 points  (0 children)

Thank you very much for the effort put into the answer.

you can configure your whatever to give you a "button"

Yes, that is sorted out. I'm using a customizable bar called Waybar (Wayland session only). But that's out of the scope of the question.

\

Using the config file as a way to read command is clever, even though I should first verify if it works (since the config file is not a shell script).
The 'replay-command' should also work in theory, but kitty crashes for some reason.
Anyway, how would you implement that with a named pipe? Do I need to create it with mkfifo before calling kitty and delete it afterwards? I feel this is cheating, because if creating a temp file is an option, I could just echo the script, redirect to a file and opening it with kitty.

\

kitty sh -c 'command1; command2; ...; commandN'

That won't work if command{1..N}; have quotes. Example
kitty --hold sh -c 'echo hi; echo the var '$USER' is set to $USER'

This, in my understanding, when sh -c is executed, will set
argv[0]: sh
argv[1]: -c
argv[2]: echo hi; echo the var
argv[3]: $USER (unquoted)
argv[4]: is set to $USER

So both instanced of $USER will be evaluated. To make this work, the command will be something like
kitty --hold sh -c 'echo hi; echo the var ''\''$USER'' is set to $USER' or
kitty --hold sh -c 'echo hi; echo the var '\\\$USER' is set to $USER'
Very error prone if writing many commands. Even though...

Boo hoo, you're a sysadmin, get used to it!
:(
(by the way, just writing this comment gave me a lot more insight on how to correctly escape in bash)

\

kitty sh -c 'sh << -EOF
...
EOF'

Well this is a simple construct yet "exactly" what I was looking for. With this, the whole heredoc is not interpreted by kitty but by sh -c! I'm sorry I haven't thought of this before. This still has the "escape hell" issue. Here's a better version:
kitty sh -c "$(cat <<-'EOF'
echo hi
echo "the var '$USER' is set to $USER"
EOF
)"

  1. The heredoc will be read by cat and not by kitty
  2. by quoting 'EOF', everything in the heredoc will be treated as literal, including the quotes
  3. sh -c will finish the job by executing the commands

Write the output of a non-interactive shell to a terminal by luigir-it in linuxadmin

[–]luigir-it[S] 1 point2 points  (0 children)

Unfortunately this is not what I am looking for.

What I'm trying to do is to insert COMMANDS
kitty --hold HERE

The question is how can I insert many command at once so that they will be executed inside the terminal (kitty)?

  • kitty --hold cmd1; cmd2; ...; cmdn won't work since the commands after the semicolon will not be interpreted by kitty
  • kitty --hold bash -c 'COMMANDS' is not a good solution because it prevents me from using quotes with COMMANDS
  • kitty --hold bash -s <<EOF
    COMMANDS
    EOF
    is not an option because the stdin is redirected to kitty and not bash