Telegramy
Articles
About
« Rev
@programminginc
779
Fwd »
j
and before and after variables are
j
struct tm after = {0}; after.tm_mday = 1; after.tm_mon= 1-1; after.tm_year= 2000-1900; struct tm before = {0}; after.tm_mday = 1; after.tm_mon= 1-1; after.tm_year= 2013-1900;
j
it doesnt make sense
j
!!!!!
j
:(
klimi
What doesn't make sense
Ariana
struct tm after = {0}; after.tm_mday = 1; after.tm_mon= 1-1; after.tm_year= 2000-1900; struct tm before = {0}; after.tm_mday = 1; after.tm_mon= 1-1; after.tm_year= 2013-1900;
hhh
j
JaviH: int cmp_dates(const void *d1, const void *d2){ struct tm date_1 = *(const struct tm *)d1; struct tm date_2 = *(const struct tm *)d2; double d = difftime(mktime(&date_1), mktime(&date_2)); return (d > 0)-(d < 0); }
j
why doesnt it work
j
everything seems logical to me
j
hhh
what?
Ariana
JaviH: int cmp_dates(const void *d1, const void *d2){ struct tm date_1 = *(const struct tm *)d1; struct tm date_2 = *(const struct tm *)d2; double d = difftime(mktime(&date_1), mktime(&date_2)); return (d > 0)-(d < 0); }
dude why are you (d>0)-(d<0)??
j
cause if difftime returns negative, then int returned is -1
Ariana
yeah so?
Ariana
Just return d>0?
j
oh
j
i saw it in stackoverflow
j
they did it like that because otherwise dates very close to each other would evaluate to equal
j
idk
Maxim Khromov
i saw it in stackoverflow
j
Just return d>0?
if that doesnt evaluate to true, then it goes false, which mean 0 is returned
j
i want -1 to be returned
Ariana
oh
Ariana
oh i get it
Ariana
ok so what are you using to sort that
j
yes
klimi
klimi
How are you guys?
Mark
sad
Mark
sad
tfw you compile gcc for few hours and it fails
Ariana
tfw you compile gcc for few hours and it fails
rip
BinaryByter
tfw you compile gcc for few hours and it fails
make -j4
Mark
ikr
Mark
lol
Mark
also ran out of ram right now as well
Mark
🎉
BinaryByter
lshw -short for us please?
klimi
make -j4
I do usually -j13
BinaryByter
I do usually -j13
same
Mark
protip: don't compile in /tmp with -j4 if you have 8gb of ram and lazy with browser tabs
Mark
xd
Mark
lshw -short for us please?
sec i'ma use hard reset hammer
klimi
The aamds can do -j32
Mark
or is there another way to kill shit on system to make it sorta usable?
Mark
i've heard about sysrq key
Mark
(on linux)
BinaryByter
or is there another way to kill shit on system to make it sorta usable?
don't use gnome
Mark
i don't
BinaryByter
use i3
BinaryByter
:3
Mark
i am
j
don't use gnome
whats wrong with gnome
j
?
Mark
c u c k e d b l o a t w a r e
Mark
xd
BinaryByter
whats wrong with gnome
a lot
BinaryByter
well
BinaryByter
the gnome tools are the only way to productively use i3
BinaryByter
so I use them :D
j
what DE are you using?
j
?
j
@linuxer4fun
klimi
I'm using gnome....
klimi
But I like i3 and bspwm
klimi
@linuxer4fun
I would say.... Cinnamon or gnome idk
BinaryByter
what DE are you using?
i3
Mark
it's wm tho
Mark
not de
klimi
i3
Oh nice
klimi
Show rice
Thespartann
Show rice
Why is your profile pic gone
klimi
Why is your profile pic gone
I deleted it.... And now I don't have nothing to put there
Roxifλsz 🇱🇹
or is there another way to kill shit on system to make it sorta usable?
Make your OOM killer more agressive, and yes there is also the sysrq way of manually launching the OOM killer
Thespartann
I deleted it.... And now I don't have nothing to put there
You have a face
Mark
Make your OOM killer more agressive, and yes there is also the sysrq way of manually launching the OOM killer
how do i do that?
klimi
You have a face
Where?
Mark
i've googled "make linux oom killer more agressive" but that's it tbh xd
Mark
jesus fucking christ i am retarded, i was thinking why the heck isn't my i3 working
Roxifλsz 🇱🇹
how do i do that?
I don't remember, just look it up on the internet tbh, also you might have to manually enable the sysrq combination, it's disabled by default on most distros
Roxifλsz 🇱🇹
i've googled "make linux oom killer more agressive" but that's it tbh xd
Kek
« Rev
@programminginc
779
Fwd »