

Not sure but I think the limiting rate is actually Python syscalling the kernel rather than the actual GPIO hardware.


Not sure but I think the limiting rate is actually Python syscalling the kernel rather than the actual GPIO hardware.
It regretfully is not called hand socks.


Yes! And weirder that bicolour banded flags are not consistently on top. I suspect some float errors. I just know that using the typical Shannon style does even worse. I might add some filter that calculates a differential or something.


That really depends on the algorithm used. Ideally it takes colous and spacial information into account. I’ll keep you posted on the ranking.


I tried different definitions and settled on spectral entropy. This one uses fourier transform and (I think) this takes the spacial relation of the pixels into account, as opposed to the more common Shannon definition. I’d like to share it but am not sure on how to do that: were I to use GitHub I would doxx myself.


Their previous version was indeed without the coat of arms. Much cooler I think. During that time the Liechtenstein flag was identical, but they (Liechtenstein) changed it upon discovery.


Simplicity I suppose. Colour combination. In my opinion if i can draw it from memory it’s a good flag.


I owe it to the community. Since I don’t have it anymore I am coding it up again. Allow me some time - it’s weekend and I have family to look after.


I see a flag. I like flags. Especially the Japanese flags. I don’t specifically care for Japan, but the flag is one of my favourites. I prefer flags with low entropy: so I wrote a script once that ranks the nations flags by entropy so I could quantify my preference. Thanks for letting me infodump a bit.
Edit: Due to people aski g for it: here is the top ten of my ranking:
Nations' flag entropy ranking (n=208).
Image source: Wikimedia.
0 white_field -1.439759075204976e-10
1 Indonesia 3.3274441922278752
2 Germany 3.391689777286108
3 South_Ossetia 3.8174437373506778
4 Monaco 3.9718936201427066
5 Poland 3.9719290780440133
6 Austria 4.372592975412404
7 Ukraine 4.405280849871184
8 Hungary 4.4465472496385985
9 Albania 4.6134257669087395
10 Mauritius 4.707109405551959
11 Luxembourg 4.721346585737304
Here’s how I defined the entropy value for each flag:
def color_weighted_spectral_entropy(image):
b_channel, g_channel, r_channel = cv2.split(image)
# Calculate spectral entropy for each channel
def channel_spectral_entropy(channel):
f_transform = np.fft.fft2(channel)
f_shifted = np.fft.fftshift(f_transform)
magnitude_spectrum = np.abs(f_shifted)
if np.sum(magnitude_spectrum) > 0:
normalized = magnitude_spectrum / np.sum(magnitude_spectrum)
else:
normalized = magnitude_spectrum
# Entropy calculation with color channel weighting
epsilon = 1e-10
entropy = -np.sum(normalized * np.log2(normalized + epsilon))
return entropy
weighted_entropy = (
0.333 * channel_spectral_entropy(b_channel) +
0.333 * channel_spectral_entropy(g_channel) +
0.333 * channel_spectral_entropy(r_channel)
)
return float(weighted_entropy)
“White_field” is just an array that holds zeroes. I use this as a sanity check. Code is on github. I can send DM to whomever is interested. I guess it can also be searched for.


I didn’t go through all that in the video from the link you posted but I only hear a sine wave at G2, 98 Hz. Not sure if I missed something.


Waking life - I have no way of explaining why, it just leaves me with something unique. Blissful maybe?
Not sure. In Begium I’ve seen butcher shops that specialise in horse meat and in Korea there are restaurants where horse meat is served.
Even if your child turns out to be not autistic, in my opinion, being aware of the condition - its various traits and the challenges it brings will help you in your parenting tasks and help you in understanding yourself.


Of course. Let me know how you’re getting on.


The idea with the first valve is to drive it with an H-bridge. This allows for reversing polarity and is commonly used with motors to allow for spinning in two directions. This requires 4 MOSFETs. I’m not sure what type of MOSFET you are using but if you can find a simple dc motor to test this setup you can verify that it works with the one you have before you extend the circuit to an H-brigde configuration. This would be cheaper than buying another valve. You’d need two GPIO pins and careful design to not short circuiting the H-bridge.


So the setup you have is not going to work. Even if you managed to get the valve to engage, it’ll require a negative voltage pulse to disengage according to the specs you linked above.


Could you clarify a few things? The circle symbol is meant to represent the voltage supply? Is it connected correctly? When you say solenoid, you mean an electromagnet, right? If so, why does it require that specific pulse with? You say you swapped out the LED for the coil, was the LED tested with MOSFET and diode in place? Does the solenoid engage when you take the connection off the RP2040 and drive it high directly? How did you ascertain the functioning of the solenoid by means of measuring resistance?


That’s not uncommon in many other languages aside from German. Think of it as saving space(s).


I started to read Earthsea books by Le Guin. I’m impressed by the pacing: few pages in, the protagonist already traveled half the world. I feel it’s written more for teenagers but I don’t mind it at all. Having a blast so far.
Congrats on the sleep. What’s the story about you not sleeping?