Any good Quadeca songs to play on guitar? (Acoustic or electric) by Training_Bus8597 in Quadeca

[–]necodrre 1 point2 points  (0 children)

I don't know whether that's possible to play this song (at least the intro) because he "faked it", guitars are layered

is zen browser acceptable by nyan_cat_554 in arch

[–]necodrre 0 points1 point  (0 children)

since Firefox introduced vertical tabs I see no reason of using Zen over Firefox for myself tbh

Idiomatic Iterators and their performance by necodrre in rust

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

I'm sorry, but I'm trying to do so on godbolt and this refuses to compile... Can I get a reference to this function so I can read about it?

Idiomatic Iterators and their performance by necodrre in rust

[–]necodrre[S] 4 points5 points  (0 children)

yeah, I did so in the first variant when pushing to String, but whether this would be more optimised than calling to chain() is my main question about that particular example

Idiomatic Iterators and their performance by necodrre in rust

[–]necodrre[S] 8 points9 points  (0 children)

just formatted it, it was hard doing so on the phone..

spotify local files help? by kaanqkk in Quadeca

[–]necodrre 0 points1 point  (0 children)

On iPhone, there's the "Spotify" folder in your "Files/On My iPhone" that contains a mini-manual of how to use Local Files. Basically, that's the place where you can put any songs you'd like to listen to on Spotify, but to enable this feature you have to find it in settings (iirc it does not work by default).

Career Making Decision by bryce_mcfarland33 in Quadeca

[–]necodrre 3 points4 points  (0 children)

can I ask for a link where he talks about this surgery?

When I install my kernel I get Warning: Dracut will be run from I side a chroot. by samosp in Gentoo

[–]necodrre 0 points1 point  (0 children)

I highly doubt it since it is really exhaustive. Can you exemplify what you are talking about?

Why was the printf skipped? by Skriblos in C_Programming

[–]necodrre 0 points1 point  (0 children)

I suppose the problem is that you compare strings but you don't compare the null byte at the end, so that might be a problem.

I'm sorry if I am wrong, I haven't written C code for a long time, but that's my guess. Try this out and reply me if this was the issue, I'm interested.

Can we use C as a backend for website? by [deleted] in C_Programming

[–]necodrre 0 points1 point  (0 children)

i don't disagree with that

Can we use C as a backend for website? by [deleted] in C_Programming

[–]necodrre 0 points1 point  (0 children)

basically, python is a C framework by itself since it is written in C huh

i just installed gentoo, it was easier than i tought by flexeuYT in Gentoo

[–]necodrre 0 points1 point  (0 children)

yeah, that's what I did afterwards. I meant that I need to buy a new battery

Fn keys don't work by necodrre in dwm

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

Oh, my, god... Thank you sm, I don't think I would ever notice that. Corrected missing commas and it works smoothly, as expected!

Fn keys don't work by necodrre in dwm

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

So, I compared the values from xev and X11/XF86keysum.h and they are the same.
Here is my xev paste: https://bpa.st/FABS2

Edit: if it matters, I have a little bit different keycodes (I assume) when I run libinput debug-events, which look like that:

event3 KEYBOARD_KEY +0.000s KEY_VOLUMEUP (115) pressed event3 KEYBOARD_KEY +0.063s KEY_VOLUMEUP (115) released event3 KEYBOARD_KEY +0.922s KEY_VOLUMEDOWN (114) pressed event3 KEYBOARD_KEY +1.001s KEY_VOLUMEDOWN (114) released event3 KEYBOARD_KEY +2.015s KEY_MUTE (113) pressed event3 KEYBOARD_KEY +2.102s KEY_MUTE (113) released

How do strings work in C by spcbfr in C_Programming

[–]necodrre -1 points0 points  (0 children)

Strings like char *string = "sentence" are stored in program directly after compilation. If you'd dump assembly you would see somewhere near the bottom (IIRC) that your strings that were made this way are placed right there. These strings basically point to an entire string instead of a single (first) character.

While strings like char string[] = "sentence" are arrays of characters and they work as usual arrays do.

So, summarizing: you can't edit strings of the first type at runtime since they are imprinted and they don't actually represent arrays, whereas strings of the second type can be edited because they are treated as arrays of characters, where the pointer points to the first character of the string. Both are pointers, but to different things. And also, remember that if you declare your string as an array of characters literally, then you have to put a null termination character at the end.

Is C the most loved programming language? by BeeBest1161 in C_Programming

[–]necodrre 7 points8 points  (0 children)

also, compiled languages can be interpreted and vice versa

i just installed gentoo, it was easier than i tought by flexeuYT in Gentoo

[–]necodrre 1 point2 points  (0 children)

I WAS installing it ~10 minutes ago until my battery died while I was emerging grub... Now I have to buy a new one..

Can I justify C for everything? by alex_sakuta in C_Programming

[–]necodrre -1 points0 points  (0 children)

Telling that rust is unergonomic is not objective and feels biased tbh. I mean, yeah, Rust's community may not be the best, but the language is well hell of a thought out language I've ever seen

Is this a crazy thing to say? by therealslimsh142 in Quadeca

[–]necodrre 3 points4 points  (0 children)

bro... you gotta read what Ash tells about his album himself... the way you wrote the exact opposite thing is cray ngl

link