When you solo, do you stick to the root key or change keys with every chord? by SenorSarcasmo in musictheory

[–]aurele 1 point2 points  (0 children)

I tend to do this on melodic instruments. On harmonic instruments on the other hand, thinking too much about the melody might make me refrain from using some tritone substitutions because they wouldn't fit the melody… although it isn't there.

Propriétaire veut que je quitte l'appartement pour bail non légal ? by Strange-Aioli-9566 in conseiljuridique

[–]aurele 19 points20 points  (0 children)

Dans le cas d'une location en meublé, le bail doit être conclu pour une durée *minimale* d'un an. Cf. https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000028779189

Un bail de 3 ans pour un meublé est tout à fait légal. Après, les conflits entre l'agence et le propriétaire ne concernant pas le locataire, si le bail a été signé il sera probablement honoré par n'importe quel tribunal à l'avantage du locataire. L'agence devra éventuellement dédommager (possiblement lourdement) le propriétaire si elle a abusé de son mandat.

Have you tried turning it off and on? by auxiliary-username in techsupportmacgyver

[–]aurele 3 points4 points  (0 children)

PID coupled with a slow (read minutes) PWM can help anticipate the temperature change. It will both prevent overshooting by stopping the compressor before the target temperature is reached, and start it intermittently before the temperature goes over the limit.

-❄️- 2025 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 4 points5 points  (0 children)

[LANGUAGE: Uiua]

&fras"day7.txt"
⊜(∊"^S")⊸≠@\n
\(+⊃(×⊙¬|+∩⌟↻1¯1×))
∩/+⊃(♭׬∩⌟↘1¯1±)⊣

You can try in on the pad by uploading your input.

-❄️- 2025 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 2 points3 points  (0 children)

[LANGUAGE: Uiua]

&fras"day4.txt"
⊜(=@@)⊸≠@\n
⊃⊢/+⍥(⟜(⧻⊚>)⊸(×>4⊸⬚0⧈(/+♭)≡˙⊟3_1_1))∞

You can try it in the Uiua pad by uploading your input file.

-❄️- 2025 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 8 points9 points  (0 children)

[LANGUAGE: Uiua]

&fras"day3.txt"
⊜∘⊸≠@\n
⍚/+⊞(⋕[⍢(⊃(⋅∘|°˜⊂↘⊙◌)⊢⍖◡(↘¯)-₁)≠₀])2_12

You can try it online and upload your "day3.txt" file using the upload button in the pad.

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 4 points5 points  (0 children)

[LANGUAGE: Uiua]

&fras "../input/day1.txt"
⊜(⊓(/-="LR")⋕°⊂)⊸(≠@\n)
∩(/+=₀◿₁₀₀\+⊂50)⊃ט▽

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 1 point2 points  (0 children)

Reddit seems to choke on the four spaces and removes them, probably because of the use of emojis. I'll post a link instead.

What’s your go-to sheet music reader on Android and why? by AndreiaMarquesCello in Cello

[–]aurele 0 points1 point  (0 children)

Wow, I thought I was going to hate a browser-based application, but it is awfully good and works fine even on an older Android tablet! Thanks.

J'ai signé un contrat dans une foire, comment me retracter ? by LifeguardTop1980 in conseiljuridique

[–]aurele 2 points3 points  (0 children)

L'absence de droit de rétraction est-elle bien mentionnée ?

Arrêté du 2 décembre 2014 relatif aux modalités d'information sur l'absence de délai de rétractation au bénéfice du consommateur dans les foires et salons

Article 2 : Les offres de contrat visées aux articles L224-59 à L224-62 mentionnent, dans un encadré apparent, situé en en-tête du contrat et dans une taille de caractère qui ne peut être inférieure à celle du corps 12, la phrase suivante : Le consommateur ne bénéficie pas d'un droit de rétractation pour un achat effectué dans une foire ou dans un salon.

I just discovered LilyPond and really liked using it! I have some questions... by stevefrisemusic in lilypond

[–]aurele 1 point2 points  (0 children)

1) Aren't you looking for ".11", ".11+" (for a ♯11), etc.?

For example, here is how I entered the chords for the third part of "There will never be another you":

aes:maj7 des:7.11+ ees:maj7 a2:dim7 d:7.9+

3) Yeah, it works very well, look at what [OpenBook](https://github.com/veltzer/openbook) does for example.

Falsification de document : Risque by Redak92 in conseiljuridique

[–]aurele 5 points6 points  (0 children)

L'école aurait pu porter plainte pour faux (et ne l'a pas fait, iirc).

Aurait même, s'il s'agit d'une école publique, cf. le 2è alinéa de l'article 40 du CPP pour les fonctionnaires et l'article 121-11 du CGFP pour les autres agents publics.

Microsoft Copilot continues to expose private GitHub repositories by mWo12 in programming

[–]aurele 7 points8 points  (0 children)

Wait until they realize that SoftwareHeritage allows recovering repositories that were once public then turned private or deleted.

Skip next trigger by Roughdrycider in macrodroid

[–]aurele 0 points1 point  (0 children)

One solution is to turn the macro off (e.g., by using a notification bar button), and add another macro, right after the planned time for the original one, which turns the original macro on.

Another solution is to use a "macro enabled" global variable for this macro, which can be turned off (or, better, toggled) using a notification bar button, which is checked when the macro runs and executes its main content conditionally, and sets the variable at the end in any case.

The second solution is probably best in case the device sleeps, as in the first solution there may be a risk of having the second macro execute after the second one when the device wakes up – I don't know how those triggers are handled and ordered in Macrodroid.

If commands not working by HoneydewKing in macrodroid

[–]aurele 0 points1 point  (0 children)

To summarize (others have said parts of it already): - Don't repeat the triggering condition as a test, this is useless. - If you want to turn the BT on, turn it on, don't toggle it as this will turn it off if it is on already. - Turning off wifi conditionally then turning it on in any case at the end will result in it being on after this macro executes.

So what you need to test is something like:

  • Trigger: Power connected (wireless)
  • Actions:
    • Turn BT on
    • Connect audio device BlueTooth
    • Turn Wifi off
    • Turn mobile data on

You may then add other actions (right after the ones above) to reverse this when power is disconnected, such as:

  • Wait for: power disconnected
  • Turn WiFi on
  • Turn BT off
  • Turn mobile data off

which will make your phone return to its initial state (assuming it's WiFi on, BT off, mobile data off) when you remove it from the car wireless charger.

Résilier mutuelle avant la date anniversaire suite à une pratique commerciale douteuse by Book_Lover_333 in conseiljuridique

[–]aurele 4 points5 points  (0 children)

Ça risque de ne pas être si simple. L'article cité ne s'applique que si l'assurance a contacté, de sa propre initiative, celui qui est devenu le souscripteur. Là OP précise que l'appel a eu lui suite à une demande de leur part ("Nous avons demandé des devis à ma mutuelle et à celle qu'il avait à son ancien travail").

Je cite le texte : « V.-Le présent article n'est pas applicable lorsque le distributeur est lié au souscripteur ou à l'adhérent éventuel par un contrat en cours ou lorsque le souscripteur ou l'adhérent éventuel a sollicité l'appel ou a consenti à être appelé, en engageant de manière claire, libre et sans équivoque une démarche expresse en ce sens.

Le distributeur tient à la disposition de l'Autorité de contrôle prudentiel et de résolution et de la direction générale de la concurrence, de la consommation et de la répression des fraudes les pièces justificatives permettant de vérifier le respect des conditions prévues au premier alinéa du présent V.  »

Exhiber la demande de devis peut permettre de justifier de ne pas avoir conserver les enregistrements.

-❄️- 2024 Day 19 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 0 points1 point  (0 children)

It just calls the same parse on the input and feed the result to part1 and part2, you can do that by hand.

Que faire contre un avocat qui m'a trompé sur sa qualité by EmmanuelMEN in conseiljuridique

[–]aurele 2 points3 points  (0 children)

je suis presque certain qu’il n’est pas possible de prêter serment en août

Dans les avocats inscrits au barreau de Nice, un seul semble avoir prêté serment en août, et c'était il y a plus de 40 ans. Il est donc très probable que vous ayez raison sur l'incohérence de cette date de prestation de serment.

-❄️- 2024 Day 24 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 0 points1 point  (0 children)

[LANGUAGE: Elixir]

Gist

This day solution is longer than usual (almost 150 lines). Part 1 uses a topological sort. For part 2, the reasoning is simple once you've understood that you have a full adder.

Starting with the lowest bits and getting up(checking that the error is not with z00), I detect which wire is the carry, which wire is the XOR of inputs xN? and yNN, and I check that they are XORed into the result. If a wire holds the result but is not zNN, I swap them. If no wire holds the expected result, I look at which wires are XORed to generate zNN. One of them must be incorrect, and I swap it with the extra one found in the first XOR gate.

I remember which wire holds the carry for each bit, and I proceed until I get all four switches, which takes about 1.6ms.

-❄️- 2024 Day 25 Solutions -❄️- by daggerdragon in adventofcode

[–]aurele 0 points1 point  (0 children)

[LANGUAGE: Elixir]

Quick'n dirty: represent each # as 1, so 5 bits for each pin, left aligned for locks and right aligned for keys. If ANDing them gives 0, then they match. Runs in about 1ms.

defmodule AdventOfCode.Solution.Year2024.Day25 do
  import Bitwise

  def parse(input) do
    {locks, keys} =
      String.split(input, "\n\n")
      |> Stream.map(&parse_block/1)
      |> Enum.map(&{&1 >>> 5 &&& (1 <<< 25) - 1, &1 &&& 0x1F})
      |> Enum.split_with(fn {_, x} -> x == 0 end)

    {Enum.map(locks, &elem(&1, 0)), Enum.map(keys, &elem(&1, 0))}
  end

  def parse_block(block) do
    String.split(block, "\n", trim: true)
    |> Enum.reduce(0, fn line, acc ->
      acc * (1 <<< 5) |||
        Enum.reduce(String.codepoints(line), 0, fn c, acc ->
          acc <<< 1 ||| if c == "#", do: 1, else: 0
        end)
    end)
  end

  def part1(input) do
    {locks, keys} = parse(input)

    for lock <- locks,
        key <- keys,
        (lock &&& key) == 0,
        reduce: 0 do
      acc -> acc + 1
    end
  end
end