This looks like a python programmer that is mad they have to write C# Java…
This looks like a python programmer that is mad they have to write C# Java…
C#. Or Python if you must. Don’t use Javascript.
I would like to use IPv6 but google and MS are having a dick waving contest with competing implementations, as I understand it. So fuck it.
Also not from the US, but I’ve been told he can. Which seems a little odd to me, considering I’m sure I’ve heard felons can’t vote.
IMO they should be able to do both things, but only after they’ve served their time. Tho that requires a fair and functioning judicial system so one cannot just jail their political opponents to get rid of them, I suppose…
If the only tool you have is a hammer, everything looks like a nail.
That’s the only thing I can think to answer your question. There are some problems that are best solved with other tools, like text parsing for example you might want to call out to some code written in a functional language.
I don’t tend to see that stuff, but I wouldn’t be surprised.
Interesting word choice. China wants to “dominate”, the US wants to “lead”.
This is true, but compared to the prevailing alternative I’ll take it. Unless there’s a viable FOSS alternative for whatever software we’re talking about at the time, of course. :P
The best part is, unless that function name is misleading, it doesn’t matter how the data is passed; a copy is being sent out over TCP/IP to another device regardless.
A very momentary process.
The problem with blazor as I understand it, is that no, it does not compile your C# into WASM. Instead, it compiles into a standard .net module – with as much excising of unused code as possible – and distributes it with a CLR that is compiled to WASM. So effectively you’re running the .net VM inside the WASM VM. If you do client-side blazor, which is not even MS’s push anymore because they stand to make more money if you write server-side blazor and deploy it to Azure.
Do look it up yourself tho. I could have a totally wrong understanding. I haven’t looked into it in some time because I’ve not been in a position to start a new frontend project from scratch. I would love to do my frontend stuff in C# though, don’t get me wrong.
It’s annoying when it is not a duplicate tho
I just noticed lemmy didn’t like the #include statement because it uses angle brackets. I tried to update it but it doesn’t look right, so I’m going to change it to quotes which should work the same, I believe. I’m not a C expert, I usually code in C#.
Discord push-to-talk. :P
Here’s the code I wrote:
#include "Keyboard.h"
const char FUNCTION_F14 = 0xF1;
int down = 0;
void setup() {
// make pin 2 an input and turn on the
// pullup resistor so it goes high unless
// connected to ground:
pinMode(2, INPUT_PULLUP);
// initialize control over the keyboard:
Keyboard.begin();
}
void loop() {
int nowDown = digitalRead(2) == LOW;
if (down != nowDown) {
down = nowDown;
if (down) {
Keyboard.press(FUNCTION_F14);
} else {
Keyboard.release(FUNCTION_F14);
}
}
}
Note that the #include was meant to use angle brackets, but Lemmy ate them. If this doesn’t work, change it back to angle brackets around the Keyboard.h instead of quotes.
Also, the parts I used:
I wired it up like in the photo, and just laid it on a bed of hot glue so the USB port sticks out the hole. I had intended to get a mini USB extension cable inside the pedal, but the one I ordered turned up defective, and this worked out just fine.
I bought an existing foot pedal off aliexpress. It came with a little dangling wire, supposedly meant to be hooked up to a piece of industrial equipment. Opened it up, removed the existing wire, soldered a wire to a suitable arduino dev board and hot glued it inside. If you want I can dig up the exact parts I used and even the code. But I also suspect maybe you want to figure it out yourself?
I built myself a foot pedal that presses F14. It’s super useful as a global hotkey 'cause nothing else uses it. :P
The fuck is a hemi?
No, you`re right.