|
Yup, the bus it gets on is always slow.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Mine is still a floppy drive...
|
|
|
|
|
Andre Oosthuizen wrote: Mine is still a floppy drive... You need a good suspension for that!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Since I have half a dozen raspberry pi 4's running various things in my house, I wanted a way to monitor various metrics, such as temp, file system free space, free memory, etc.
I decided to build a .Net Core console app that will run as a service on one of the pis, and will pull in the metrics from the other pi's on the network, and put them in a MySql database. The data will be visualized in a MVC DotNetCore web app (also running on the main pi).
The goal is to only put software on the main Pi, and have it reach out to other pi's specified in a config file. The biggest hurdle so far has been getting the data from the other pi's, because:
0) Some of the data I'm retrieving lives in text files in system folders, so I didn't want to create a share.
1) I didn't want to have to put software on the other pi's to get their performance info.
2) The code would be running on a linux box which dictated that I couldn't use any of the handy Windows-specific stuff to impersonate a user on a remote box.
All of those issues were solved by using SshNet (a nuget package). This package lets you connect via ssh and run commands on a remote machine. Huzzah!
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I'll have to check that out, it sounds useful
|
|
|
|
|
Sounds interesting I'll have to check it out.
Just starting to get back to do some Pi work, got a Pi 4 2GB for NAS and have plans for OpenHab later.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
I don't. It's sad I know, esp considering I just delivered a MIDI library unto the world.
Anyway, I have a question for a music nerd, and it has to do with key signatures.
Googling led me to some confusion.
Basically I'm getting my key signature back as an int and a bool together, where the int is range -7 to 7 and the bool indicates minor or major.
The int indicates the number of flats (int is negative) or the number of sharps (int is positive) or C if it's 0.
Regarding the int, I'm not sure if I'm translating it correctly in code.
const string FLATS = "FBEADGC";
const string SHARPS = "GDEABFC";
if (0 == scode)
return "C " + (IsMinor ? "minor" : "major");
if(0>scode)
return FLATS[((-scode)-1)].ToString() + "b " + (IsMinor ? "minor" : "major");
else
return SHARPS[(scode - 1)].ToString() + "# " + (IsMinor ? "minor" : "major");
scode is the aforementioned int.
Real programmers use butterflies
|
|
|
|
|
The flat key signatures go F, Bb, Eb, Ab, Db, Gb, Cb.
The sharp key signatures go G, D, A, E, B, F#, C#.
EDIT: That's major. No sharps/flats = C.
The minor flat key signatures go D, G, C, F, Bb, Eb, Ab.
The minor sharp key signatures go E, B, F#, C#, G#, D#, A#.
No sharps/flats = A.
But that's just major/minor. Then there's Dorian, Phrygian, and others.
modified 10-Jul-20 14:58pm.
|
|
|
|
|
thanks!
Real programmers use butterflies
|
|
|
|
|
There is a strong tradition for denoting major scales with uppercase letters, and minor scales with lowercase letters. So,
The minor flat key signatures go d, g, c, f, bb, eb, ab.
The minor sharp key signatures go e, b, f#, c#, g#, d#, a#.
No sharps/flats = a.
Maybe this tradition is stronger in some musical styles than others. I have never seen guitar chord annotations where it is not followed.
|
|
|
|
|
True. That's how I mark up scores, although the pop music charts I've seen use A and Am for major and minor chords, respectively.
|
|
|
|
|
I don't recall seeing lowercase for minor. I've only seen key signatures like A and Am. Even with minor keys there are two variant - Harmonic and Melodic.
To quote Ella Fitzgerald: How strange the change from Major to Minor (actually it is by Noel Coward, but mostly known as sang by Ella Fitzgerald)
|
|
|
|
|
I think it's fairly common on the Continent (edit: for classical music).
|
|
|
|
|
I'll probably avoid that in my MIDI library because of things like "bb" looking confusing and my hesitancy to use a unicode flat character in the alternative that won't display on things like a console window. "Bb" is much clearer in my specific scenario, IMO, even if it defies convention.
Real programmers use butterflies
|
|
|
|
|
Or learn German (or a related language, such as Norwegian): In the Germanic tradition, B is called H, and B flat is called B.
In any case, it will be less confusing if you use a true musical ♭ sign for the flats, rather than a plain lowercase b letter. B♭ and b♭ isn't that confusing.
Bonus joke: What could you get if you drop a piano down a mine shaft?
Answer: a♭
|
|
|
|
|
I thought you'd get a fff!
|
|
|
|
|
I guess that even a piano would turn into a forte, or forte fortissimo molto, so you for practical purposes you are right.
You could also point out the accelerando - close to 9.8 m/s2.
But we were talking scales, weren't we?
|
|
|
|
|
Accelerando?
|
|
|
|
|
heh. I would use the flat sign but it doesn't render properly everywhere. I do not want to return it from ToString()
Real programmers use butterflies
|
|
|
|
|
What could you get if you drop a piano down a mine shaft?
ab minor (miner)
|
|
|
|
|
or to make it more explicit: A flat minor (/miner)
|
|
|
|
|
I just realized this is probably regional. Maybe you do it that way in Norway.
I have some Le Orme sheet music, and those weird Italians don't write A minor as "a" or "Am". They actually write "La m" (La from do-re-mi... and m = minore). I rarely think in solfege. And if I do, it's relative: "la" = submediant (^6). But they use it absolutely: "la" = A, regardless of the key. Needless to say, I find their annotations useless.
|
|
|
|
|
Accelerando - Conjugation of the infinite "Accelerare" in italian; In English, "to accelerate": The "Gerundio" (a form of the verb), is like the -ing in English.
Most of the musical notation currently used was invented in Italy many centuries ago (even the pentagram, for example). In Italy the musical notes are represented by syllables which traditionally are: DO, RE, MI, FA, SOL, LA, SI with LA to be the equivalent to A in international notation.
All words like crescendo, diminuendo, piano, pianissimo, etc. etc. they are Italian words used as an international jargon for the music.
|
|
|
|
|
I wouldn't call it "international jargon for the music", but "established notational conventions".
You'll see acc. in all sorts of sheet music. It has been used for centuries.
We had a conductor that took pleasure in playing with such terms, like he could ask for an "accelerandissimo" - a small increase in the beat rate. Or "acelerando moltissimo", not a very strong accelerando (like an "accelerando molto") but above average.
|
|
|
|
|
Member 7989122 wrote: acelerando moltissimo
Accelerando, not acelerando always put double 'c' the correct form in italian.
|
|
|
|
|