Guilherme
Like this
Guilherme
How to use the bot?
Guilherme
Anonymous
Guilherme
Thanks, bros
Dark
Thanks, bros
Give me a couple of days and I will make you a bot that compiles C code from telegram. I don’t know why you’d want it but ha.
Afees
DaVlad 🇸🇰
Dark
I have a solution already, it will compile it and sent the compiled file back to the user.
Dark
That’s the only way I can see it work
Guilherme
Don't worry men
Guilherme
I found a way
Dark
Ok, well I am just try to put ideas out there
Dark
You got any idea
Pavel
No, sorry.
Actually Docker sounds promising, if you can limit cpu and memory that consumed by one instance, and won't allow to run some long calculations.
Dark
Ok, I was kinda thinking of having a python bot and that you would send a code file like example “test.c” and then it would get downloaded and compiled then added to share file on virtual machine and make a simple program to check the shared file on the virtual machine every 2 seconds and then send a temp link to display output.
Pavel
Also there can be some libs for online compilers that have some sandboxes with them
Dark
Dark
Because is a security risk
Anonymous
sanboxes?
Anonymous
Ohk
Dark
Anyway I think he found something anyway so I don’t need to make it. But it would be a fun project
Dark
If I start a GitHub repo maybe we can work together to make it.
Dark
Anonymous
/notes
Anonymous
/rules
Anonymous
#ide
Anonymous
Is it okay to put all #include's in .h file and then just include .h file in implementation file (.cpp)??
Anonymous
I hope the question is understandable
Talula
Talula
That is a normal way to write a program that even the main program should have .h file.
Talula
Normally people don't do it these days but that is how it should work.
Anonymous
/ide
Anonymous
Talula
why?🙄
Because they write small program in C/C++ now a days.
Talula
So it doesn't make sense to have a seperate .h file for main.
Anonymous
Talula
Or whereever your main is implimented.
Anonymous
There is one libssh library that is needed in .cpp implementation file, but not in .h file. Ideally, where should I put it?
Talula
Assuming your program is called main.c or main.cpp your .h file will be main.h
Talula
in your main,c or main.cpp you simply add #include "main.h"
Talula
And your main,h includes every other .h file you want to include.
Anonymous
It's sshConn.cpp and sshConn.h.
Main.c will use sshConn.h
Anonymous
DaVlad 🇸🇰
DaVlad 🇸🇰
do not place #include in header if it's not neccessary
Anonymous
@Tazmikar @ilayja you guys are contradicting each other
Talula
As I understand.
Anonymous
Normal best practice is for every file to include all the header files it requires, disregarding #include directives in included files. Each header file should header guard.
Anonymous
DaVlad 🇸🇰
DaVlad 🇸🇰
I would add that you should not include something in the file where it's not required, including something in header will cause problems for other people if they use your library in binary form+headers
Anonymous
Got it. Thanks.
Anonymous
I am working on an SSH password cracker (Brute/dictionary attack). C++ project educational project.
https://github.com/x899/ssh_brute_force
I will really appreciate if you could review the code.
Anonymous
If you guys want to contribute, here is a list of things I want to implement
Logging
Argument Parser
Multithreading
This is not an exclusive list.
Lalit
Someone can provide the hand written notes of c language please
Lalit
If anyone have
Dima
Lol what.
Dima
Lalit
Hmm
H̲i̲L̲e̲v̲e̲l̲
Anonymous
Is there proxy allowed?
If you want...you can implement it...
In the process, i will learn something new...:p
H̲i̲L̲e̲v̲e̲l̲
I don't know how it works
Anonymous
H̲i̲L̲e̲v̲e̲l̲
Anonymous
Anonymous
i have heard some debate on the subject
Francisco
Is Boost used in industry?
There're some boost libraries that are really good (hana, fusion, signals2, multi_index...), but some others are quite outdated and need a good refactoring and new APIs
Anonymous
thanks. will look into it.