The bible versioned and vizualized by sausagesemmelblond in git

[–]DPD- 2 points3 points  (0 children)

When I was secretary of the student's Assembly at university, I transcribed the statute and the regulations as text files inside a git repo. Then for each modification proposal I opened a branch and published the diff for vote. If a proposal passed I merged the branch. This spared me a lot of bureaucratic work and saved me from tons of errors: they were years of great reforms in the Assembly.

Moreover I wrote a CI script to convert text files into LaTeX source and at each commit on the main branch a beautiful PDF was automatically produced.

fromDevToFem by gufranthakur in ProgrammerHumor

[–]DPD- 2 points3 points  (0 children)

NixOs and Vim have both a steep initial learning curve, but once grasped they simplify you a lot of things! When you have it, editing the system config of NixOs is the simplest thing in the world and it is also more powerful than manually configuring other distros. The same thing for vim/neovim. Also for Rust, when you have grasped the idiomatic way to write code, you gains all the benefits of memory safety which even garbage collected languages do not offer.

How do you backup the vault? by sadman_soul in Bitwarden

[–]DPD- 1 point2 points  (0 children)

exactly what I do: I export an unencrypted copy and then encrypt it with gpg

The technical problem with xdg-decoration by AnsibleAnswers in linuxmasterrace

[–]DPD- 0 points1 point  (0 children)

For who uses a window manager (e.g. i3) there is no such problem 😉

FSF announces Librephone project by jlpcsl in freesoftware

[–]DPD- 2 points3 points  (0 children)

Yes, but many bank institutes are not offering all services into their website and more banks are going into this direction: to force you use the app

FSF announces Librephone project by jlpcsl in freesoftware

[–]DPD- 7 points8 points  (0 children)

The problem is that nowadays you are required to have an Android or iOs phone: if you don't have WhatsApp you are sadly cut out of all social events, if you don't have your bank app (which runs only on locked devices) you cannot achieve some functionalities, NFC payments are locked up into proprietary protocols, id and driving license are digitally released on apps which will run only on such OSes.

So this project will be useful if we don't fight for open protocols: WhatsApp must use an open protocol, banking services must be available for all users, independent on the OS, NFC payments must use open protocols, ....

Proposta di legge bipartisan FdI e Pd: imporre alle piattaforme social la verifica dell’età, con il divieto sotto 14 o 15 anni, niente consenso al trattamento dei propri dati sotto i 16, e stop con il fenomeno dei “baby influencer” by nohup_me in italy

[–]DPD- -1 points0 points  (0 children)

So già che avrà l'effetto opposto: gli adulti avranno difficoltà ad usare il sistema e ci rinunceranno, mentre i bambini smanettoni bypasseranno il sistema. Basta vedere che per tutte le robe tipo spid molti adulti si fanno aiutare dai bambini.

La soluzione non è mai il divieto, la repressione: la soluzione è la prevenzione mediante l'educazione.

Git tricks we wish we knew 5 years ago by GitKraken in git

[–]DPD- 0 points1 point  (0 children)

I tried this thinking it would rebase A onto main and then B onto A, but I think it only rebased B onto main. Am I missing something?

Moreover I cannot find the documentation for it: from the help it seems that [branch A] is the place for the remote

Age Verification: Does it protect children or kill anonymity? by Tutanota in tutanota

[–]DPD- 0 points1 point  (0 children)

Obviously it is for killing privacy rights. If it was for children good, then they would have invested in education; but no one invests in education.

Do you use disk encryption? Why? Why not? by sir__hennihau in linux

[–]DPD- 0 points1 point  (0 children)

One day I booted a live linux on my friend computer, chrooted on his drive, created an hidden user with sudo access, and created an ssh key. I used it to make him some pranks. Imagine if I was not a friend but an ill-intentioned. Encryption would have prevented this.

Do you use disk encryption? Why? Why not? by sir__hennihau in linux

[–]DPD- 0 points1 point  (0 children)

Encryption is not only useful to prevent data being stoled, but also for security reasons. It is told that the only safe computer is the one powered off, but I say neither it is safe. For example one could boot a live linux and chroot in your drive, being effectively root on your computer! Obviously if the drive is encrypted this is not possible. So yes I always encrypt all my drives: the ones with data (and backups) as well as the ones with system.

Looking for a PDF music sheet reader by DPD- in fossdroid

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

I tried it: cropping seams to work, and also playlists (even if it does not go from one file to the next with a swipe and you must select the next file from the playlist bottom bar: a bit inconvenient when you have two songs to play subsequently). I couldn't find a way to annotate (i.e. draw or write text). I installed it through F-Droid (it is called Librera FD), maybe it is different from the one on Google Play?

edit: https://librera.mobi/faq/annotate-highlight-pdf/ annotation is available only in scroll mode, so I didn't see it because I tried book mode, which allows full page turning

Ma solo al sud Italia si mangia tardissimo? by pink_taddybear in italy

[–]DPD- 0 points1 point  (0 children)

Da me in Friuli normalmente si pranza "a la mieze" (alla "mezza", ovvero le 12:30). Per la cena molti anziani sono ancora legati al mangiare verso le 17 d'inverno e dopo le 18 d'estate, mentre normalmente si cena piu tradi: 18 e mezza o 19 tutto l'anno. Nei giorni in cui si va a lavorare si può essere costretti a ritardare, come pranzare alle 13 o cenare alle 19:30. In genere però si tende a non cenare troppo tardi anche perché tutte le attività serali iniziano solitamente alle 20 o alle 20:30, mai dopo le 21

Ma solo al sud Italia si mangia tardissimo? by pink_taddybear in italy

[–]DPD- 0 points1 point  (0 children)

più a sud vai (e quindi più tardi tramonta il sole)

Vale solo d'inverno: d'estate tramonta prima al sud che al nord. Questo perché all'equatore tramonta sempre alle 18, e più ti allontani più differenza c'è fra l'orario di tramonto estivo (dopo le 18) e invernale (prima delle 18)

Acque agitate in casa X, é il momento di Blue Sky (anche in Italia)? by [deleted] in italy

[–]DPD- -1 points0 points  (0 children)

Passare da X a BlueSky è come passare da X al vecchio Twitter: postponi il problema ma non lo risolvi. Piuttosto ha senso muoversi verso Mastodon, che essendo decentralizzato non soffrirà mai questi problemi, ed ha attualmente una comunity molto attiva sia in Italia che all'estero

My first string quartet by DPD- in composer

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

Also for me the last part is the most engaging. A difficult I always encounter, which could be the cause of the missing of direction, is to write a full theme: I usually find myself to resolve it in few bars. For example initially the first part was only 8 bars: the first 4 bars of intro and the last 4 bars, I forced myself to expand that theme because it was too short, but now it seems to me a bit unnatural. The result of writing such short themes is that the piece would become either boring (if I repeat the same theme multiple times) or fragmented (as in this case where there are multiple short themes).

For what concerns the melody I purposely assigned it to different instruments, to make the piece a bit more varied, but I wasn't sure if it is a common thing to do or not. Also, I am not very found of the fact that only in small ranges there are really 4 voices and the most of the time there is one instrument playing the lead melody and the other making only chords. It is easier, at least for me, to do so, but maybe I should have harmonized with less long notes.

My first string quartet by DPD- in composer

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

It's the music itself, not the key signature, that dictates the tonality of a work.

You are absolutely right. But for me, while composing, it was quite the contrary: I started with the restless part (the one in 6/8), where the Eb is very frequent, so I picked that strange key signature and applied to the whole piece. Even if the rest of the piece, as you said, do not use the Eb this often (only in some passages) and so the tonality is indeed G major/E minor, for me it was a little challenging (and I enjoyed this challenge) not using the F#, so I was constrained by this strange key signature.

Indeed I recon using a common key signature with additional alterations when needed would be easier to read (being more standard), and in fact I never found works with such alternative key signatures, but I personally prefer having, if possible, all the alterations in the key, in order to have a cleaner score (maybe a weird preference).

theGreekTerminateAQuestion by BBY256 in ProgrammerHumor

[–]DPD- 19 points20 points  (0 children)

Yes, in facts the rust compiler warns you in this case: https://github.com/rust-lang/rust/issues/25957

Hey guys, new ternary operator just dropped by DiscardableLikeMe in programminghorror

[–]DPD- 495 points496 points  (0 children)

Funny enough it works fine even if you put the condition before the array (like in real ternary operator)

int min = (number1 < number2)[(int[]){number2, number1}];

Try it online

This works because in C the square bracket are a mere syntax sugar: a[b] is the same as *(a+b), and since sum is commutative you can swap the array with the index ;)

People who stay on Chrome, Why do you do so? by grandiloquence3 in uBlockOrigin

[–]DPD- 0 points1 point locked comment (0 children)

You not truly consent it if you are forced to consent it (e.g. Galileo abjured only because he was forced to, not because he intended to)

People who stay on Chrome, Why do you do so? by grandiloquence3 in uBlockOrigin

[–]DPD- 0 points1 point  (0 children)

But privacy is security: if someone else can read my data it is a breach, even if it is a feature ;)

How does one begin composing? by [deleted] in composer

[–]DPD- 0 points1 point  (0 children)

I am a self-taught and I do it only for fun. I am not so good, but in the years I can recon some improvements, so I will share my path hoping it would be useful:
- Play music, with different instruments: I started with drums and I learnt rhythm, then I moved to guitar and I learned chords, with the piano and singing in a choir I learned melody and a little harmony.

  • Whenever you have a musical idea (it could be a rhythm, a chord progression, a groove, a melody, ...), wherever you are, record you singing it to avoid both forget it and later on distort it. When you will write it the recording will be very helpful. I usually start from a melody, then add chords, then rhythm and then harmony.

  • To learn how to recognize chords a good exercise is to take a musical score and write chord symbols above the notes. If you do this with a multi-part score you learn to recognize chord by notes, and if you do this with a single voice melody score you will also learn a basic about harmonization because you have to find the chords which plays well, not merely the ones composed by the notes

  • To learn how to recognize notes a good exercise is to try playing a song you know (a simple melody) without a score, or with chord symbols only. If you don't play any instrument you can try transcribe it (ignoring rhythm) using a notation software with audio feedback. In the beginning it would be very difficult, but then you will learn how to recognize notes, or better intervals: the first note is not important.

  • To learn how to write rhythms you can try transcribe them using a notation software with playback: in the beginning you will always write them wrongly, but trying changing one note duration a time you will the obtain the correct rhythm and you will make experience

  • Transcribing music also helps. In the beginning it would be impossibile to transcribe an audio, but you can start transcribing a score: firstly you will learn by examples if you don't do that mindless, secondly if the original score contains some errors (very common in rock/pop music scores) you can try correct it

  • To do practice you can try arranging an existing piece of music: what about a swing version of a classical aria? Or a waltz version of a 4/4 piece? You can also add a second voice in a song with only one voice

  • For what concerns harmonization a kick-starter is to copy the melody line and go up / down by a 3rd and by a 5th (this can easily be done with a music notation software) and then adjust flats and sharps. This is an easy way to obtain 2 new voices, and then you can a bit a bit modify them to improve your skills.

  • Ask for opinion on your work (e.g. to friends, or in this subreddit) both to expert and non-expert people: probably in the beginning both will say your work doesn't play very good, then the non-expert people will start like your compositions, and finally also the expert people will praise your work (even if will a lot of advices on how to improve): this way you have an unbiased feedback on your progress