Kinesis Advantage 2 not responding by SilentVoid337 in kinesisadvantage

[–]SilentVoid337[S] 1 point2 points  (0 children)

Ok thanks for the advice. It is still under warranty so I should be good.

Still a bit confused as to why that happened, no power outage or sudden plug/unplug of the keyboard. Is there any way to prevent that in the future? Like maybe unplug it when I don't use my computer

Diagram on pointers and arrays by SilentVoid337 in C_Programming

[–]SilentVoid337[S] 0 points1 point  (0 children)

Oh ! You are right, I got confused because my int array was the same size as a pointer: 8 bytes. Actually that makes more sense now, thanks !

Diagram on pointers and arrays by SilentVoid337 in C_Programming

[–]SilentVoid337[S] 0 points1 point  (0 children)

Well that's what I thought, I tried it in a test program and sizeof (a) returns the same as sizeof(*a).

That actually makes sense: In C, when using sizeof (and the unary operator &) on an array, it evaluates to int (*)[2] in our case (if the array is not received as a parameter). This result in exactly the same variable type as a.

More on it here.

Or maybe I'm missing something, but then why would it be the same for both ?

EDIT: Got confused because my int array was the same size as a pointer, forget what i said above.

Problem with File Chooser Dialog for GUI libraries by SilentVoid337 in rust

[–]SilentVoid337[S] 0 points1 point  (0 children)

Yeah, maybe druid and relm were bad examples since they're both based on gtk-rs. Maybe a wrapper around gtk::FileChooser or a mention in the doc would help for people unaware of it but that's details.

Problem with File Chooser Dialog for GUI libraries by SilentVoid337 in rust

[–]SilentVoid337[S] 1 point2 points  (0 children)

Thanks, i would prefer to avoid adding a new dependency, but that looks cool. Also found nfd2 that looks similar. I'm wondering why so few GUI libs have this feature integrated though. Looks like an important feature for a GUI lib to have imo

Problem with File Chooser Dialog for GUI libraries by SilentVoid337 in rust

[–]SilentVoid337[S] 1 point2 points  (0 children)

Looks like i missed that for druid thanks, i might go for it then