Anonymous
i think
Anonymous
we need sudo perm for that
Anonymous
or root
Anonymous
i know
Anonymous
sudo != su ?
olli
we need sudo perm for that
Why? Not for clearing your home directory. Which is probably way worse then clearing /bin or /etc
Anonymous
wtf i'm doing
Anonymous
Linux unknown 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Anonymous
desktop : cinnamon
Anonymous
is that good ?:D
Anonymous
btw i'm noob in Linux things
数学の恋人
Hey everyone
Anonymous
数学の恋人
What's up
Anonymous
数学の恋人
I have one question is it good to use C++ boost
数学の恋人
And what if I don't
Anonymous
but better trying use STL
olli
Linux unknown 4.15.18-041518-generic #201804190330 SMP Thu Apr 19 07:34:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Rather outdated Kernel, it should be EOL and has some mid-to-high CVEs assigned, would recommend kernel update I like Cinnamon as Desktop environment though
Anonymous
but i dont have problem with that
数学の恋人
but i dont have problem with that
yes you don't need to update your kernel
olli
I think current one is 4.19 but I'm running on 4.18
4.18.7 is the latest one. 4.19 is in Rc3 state afaik
数学の恋人
4.19 is still experimental
数学の恋人
i will update there is nothing to lose we have grub :D
which system are you running? Like Arch or Debian?
数学の恋人
Oh so Debian based, okay update
Anonymous
y
olli
but i dont have problem with that
I think this contradicts with some Linux Users that claim to use Linux because it is safer, but refusing to upgrade their kernel. 4.15.18 can be exploited by some overflow attacks (iirc)
数学の恋人
y
Does this mean, "WHY?"?
Anonymous
Does this mean, "WHY?"?
no y = yes it is debian based
olli
However enough #offtopic
数学の恋人
Oh yes
Anonymous
#offtopic
Marie
#offtopic
https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ
Azizul
Rokas Urbelis: ## Welcome We're very glad to welcome you to join the International C/C++ Group. You can invite others by https://t.me/programminginc ## Rules * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages right after joining will get you BANNED. * Reverse enginnering, hacking (not facebook, instagram, etc.) also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are ok (no homework requests, or "pls write entire program for me" requests). * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming will grant you a warning or an immediate ban if you spam right after joining. * Religion, politics and ideological topics are forbidden. ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
I can stay silent anf just observe right?🤔
olli
Azizul
Alignant
Since when we became so generous lol
Jonathan
Anyone here experienced with c threads? I'm trying to run one thread for a couple seconds and then switch to the 2nd thread for a couple seconds and then back to the 1 st. I can't figure out how to to implement it, I did some googling but couldn't find the explanation.
Mat
Or me
Mat
Don't PM me
Jonathan
PM is not allowed?
Mat
PM is not allowed?
Not to me, at least :)
Jonathan
😢
Jonathan
Can the sleep function also be used?
Dima
in another thread yes
Dima
but context will be blocked
Dima
you can use lightweight threads (a.k.a ucontext/setjmp/longjmp on Unix or fiber stuff on winapis)
Alignant
Not to me, at least :)
Even I can't? :c
klimi
Yo kitties
D
Use cond var
D
In C for that purpose
D
Make one thread wait for another's notification
Anonymous
Hey, when can I include parameters in the main function's argument list? Also, I did fcking google it and I'm still confused...
Anonymous
lolwat
Anonymous
Command line arguments?
Ariana
argv
Manuel
if you want, you always can pass args to your main function..
Manuel
int main(int argc, char **argv){...}
Manuel
argc : (integer) number og args, always >= 1
olli
Hey, when can I include parameters in the main function's argument list? Also, I did fcking google it and I'm still confused...
You can always use command line arguments the first parameter contains the number of arguments passed. Where the first argument is the name of your executable file. The second parameter contains these arguments. If you start your application like ./mySw param1 param2 And you main functions prototype looks like int main(int argc, char** argv) So argc will be 3 And argv will be ["mySw", "param1", "param2"]
Manuel
on GNU/Linux you can get your env vars with a third arg: int main(int argv, char **argv, char **argenv){...}
Anonymous
Ok thanks, I'll try it out and ask again if I hv problems
Anonymous
Read.
klimi
Anonymous
Yeah the pinned message 😊
klimi
oh ok
Anonymous
may gethostname() place "localhost" in the output buffer instead of the real computer's name?