prettydarknwild

joined 1 year ago
[–] prettydarknwild@lemmy.world 7 points 1 month ago

rust giveth, and rust taketh away

[–] prettydarknwild@lemmy.world 33 points 1 month ago (1 children)

mongolia has fallen

[–] prettydarknwild@lemmy.world 3 points 1 month ago

Maduro will not be Venezuela's president again, unless he rigs the shit out of those elections, or uses the military to orchestrate a coup

[–] prettydarknwild@lemmy.world 2 points 1 month ago (1 children)

so now the danish govt can sue them due to false advertising?

[–] prettydarknwild@lemmy.world 2 points 1 month ago

crowdstrike doing just a little of tomfoolery

 

Something that i find prettyd disgusting these days is how certain people put their political ideologies / viewpoints over human lives, for example, celebrating the russian invasion of ukraine because it is "a blow against US / NATO imperialism" completely ignoring all the warcrimes, the deaths, and the suffering generated by that war, the same happening with the palestinian genocide because "Israel is the only working democracy on the middle east", acting like their ideoligies are going to bring back to life all the dead people somehow

 
 
 
 
 
 

Im using neovim with nvchad, and i discovered accidentally that when im in edit mode and i type j more than 3 times in insert mode, it kicks me out of it, why does it happen?

 
[–] prettydarknwild@lemmy.world 0 points 11 months ago (1 children)

dont worry, i have one more question, i should initialize variables with = or with {}?

[–] prettydarknwild@lemmy.world 0 points 11 months ago (3 children)

i used tthe tester class with my code removing the .deallocate(), and although it doesnt crash, it still runs the destructor multiple times on the same element, i think its because im just pushing i into the container, and because that constructor creates an implicit conversion between int and ContainerTester, it creates a temporary object that gets destroyed once it is pushed into the deque, am i right?

[–] prettydarknwild@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (5 children)

so, that practice of calling .destroy() and then .deallocate() is redundant and error-prone

[–] prettydarknwild@lemmy.world 0 points 11 months ago* (last edited 11 months ago) (7 children)

that makes sense, although is kinda weird because i also did a string implementation before doing the same thing and it worked, also the c++ reference and the book that im using to learn c++ says that .destroy() only destroys the object it doesnt deallocate

[–] prettydarknwild@lemmy.world 0 points 11 months ago (9 children)

im doing it to practice, if i was going to use it for a project, i would use the STL one

 

i was trying to create a deque, and when the function that resizes the array is excuted, it crashes with the error from the title, and when i delete the deallocate() it stops happening, what im doing wrong? code: https://pastebin.com/0yHHcLnj

 

I was trying to use Hyprland, but when i start it up it crashes with 2 critical errors: m_sWLRRenderer was NULL!, and wlr_gles2_renderer_create_with_drm_fd() failed!

Logs: https://pastebin.com/LvwUDZDb Coredump: https://pastebin.com/7c8kpfU6

CPU: Intel Pentium Dual-Core E5200 GPU: Intel GMA3100 (G31)

 

I have seen so many times that systemd is insecure, bloated, etc. So i wonder ¿does it worth to switch to another init system?

view more: ‹ prev next ›