« first day (3134 days earlier)      last day (1818 days later) » 

12:04 AM
@Mikhail did you expect them to know to use <cstdlib>
 
no, but I printed it with syntax highlighting, maybe as a hint.
The top header wasn't actually in the question...
 
Something to do with the difference between assignment constructor and copy constructor?
But why Struct, free?
 
Anyways, the person that got it, got it immediately.
 
12:19 AM
new + free does not computer :/
 
1:03 AM
@TelKitty And if something contains a pointer, copying it usually involves more than a shallow copy.
 
@Mikhail so what's wrong with it? they can still access the value by accessing the object then the pointer
B.an_item->value
 
1:18 AM
obviously it should be std::free
 
I thought you were supposed to use virtual in front of the ~ when freeing a struct
*a base class
@LucDanton he said the header part was not included, so we should assume it's name space std
because it would be unethical, to use the wrong c++ library and then have the reader make other assumptions about the headers
 
1:49 AM
@Mikhail I'm trying to do my part. Problem is I just got offered 2x my current salary (this is a regularly occurring thing, say once a week on avg) most would go for that salary.
 
@CaptainGiraffe I would never take the salary, it's quality of life issue when you become a professor.
 
@Rick Yes, for me it's I belong here.
To build things is human, to teach divine.
 
@CaptainGiraffe true, it's because you're teaching people how to fish (metaphorically speaking).
 
@Rick I get them well paid jobs with people I know and love. It's like a friggin utopia.
@Rick One person from utopia offered me 4x my salary with the qualifier I had to replace myself at the university.
 
even if you don't get them jobs, there is untold value in just teaching people how to think. You know Aristotle taught Alexander the great, that's conquest by proxy.
 
2:28 AM
@Rick Not really. You get to choose to do as much work as you want, nobody can tell you what to do. Pretty sweet gig.
I'm filing this under my "people outside academia telling me what its like to be in academia" .
@Rick run it
 
3:06 AM
@Mikhail I am sorry, you would have to begin with better script to start with. 1 error, there are like at least 3 I am now aware of.
Although nothing wrong with copy vs assignment constructor.
 
3:47 AM
I'd like to learn if there is a way to find if a process is communicating with a driver. Can I create a question for this on StackOverflow or should I ask it somewhere else?
 
 
5 hours later…
Anyone knows a good book about that explains how to structure c++ projects? or any good online source as well that you can point me towards
Something that teaches structuring projects from the ground up, still graduating so assume I know nothing on this topic...
 
@anand_v.singh Recently got a digital copy of the book "Professional CMake". It has a chapter on project organization.
 
nwp
Suggesting cmake is just mean.
 
@anand_v.singh that's going to depend a bit on what the project is
anything with a gui is going to be centered around an event loop that pulls gui events from the OS and dispatches them around
 
It's an Image processing algorithm written in Python, using external libraries, I would be working on writing it natively in C++
Writing the algorithms it uses form certain imports from ground up and everything
So I am looking for best practices that I should follow
 
9:23 AM
a server is going to be centered around a select/poll loop that listens to the sockets and dispatches the recieved data
 
Like I know practices in a single file code, but never really worked with multiple files, so how to organize files, what kind of abstraction to use, access specifiers and what and how to expose things, I hope you get what I am looking for
 
nwp
Write tests if you have defined input and output. Catch2 is pretty decent.
Imagine the library is already done and just write the code a user would want to write. Then implement that interface.
Go easy on inheritance and don't use new and you should be good.
 
and when writing that usage code make as few assumptions about the inner workings of the library as possible
 
Thanks, I will keep these in mind and notes.
 
@anand_v.singh It takes years.
 
9:31 AM
@StackedCrooked Ah I am young, so no biggie
 
 
1 hour later…
10:54 AM
@anand_v.singh you're never young enough to have time to learn everything :D
 
 
5 hours later…
3:36 PM
Hello
 
goodbye
 
4:10 PM
Does anyone know the difference between FFMPEG and OpenCV? And why one would use the other?
 
@Sailanarmo google? IIRC FFMPEG is just a codec implementation?
 
I mean it just seems like FFMPEG converts video? But doesn't OpenCV do that as well?
 
4:27 PM
not going to say it can't? Just not the primary purpose?
apples and oranges really
 
I guess I just need to ask my boss why we are using FFMPEG for our application.
I just didn't know if there was one reason to use FFMPEG vs OpenCV.
 
@Sailanarmo OpenCV uses FFMPEG. E.g., OpenCV CreateVideoReader: "FFMPEG is used to read videos. User can implement own demultiplexing with cudacodec::RawVideoSource".
At least in my experience, OpenCV is generally easier to use than FFMPEG. I haven't looked carefully to be sure, but at least looking at the FFMPEG docs, it seems like it probably provides more flexibility.
 
@JerryCoffin yeah I saw that too. Especially since OpenCV has C++ support and FFMPEG is used in Pure C. I was also going to say, OpenCV can read videos as well, so I am not sure what the point in trying to use OpenCV with FFMPEG is.
I don't know if our application is just stitching images together into a movie, which can easily be achieved within OpenCV. Or if it is converting a movie format to another, which is what FFMPEG seems to be the best at doing.
 
4:43 PM
@Sailanarmo OpenCV supports computer vision. Some people want to do vision kinds of things on videos, so OpenCV supports at least rudimentary video manipulation. If your sole interest is in video manipulation, FFMPEG might be a better choice. Then again, as I said, I've found OpenCV easier to use, so if it supports what you need, it might be an easier way to do the job.
OpenCV undoubtedly does add some overhead, but in this case I doubt it's enough to be significant.
 
@JerryCoffin which what we are doing is computer vision. I don't think we are doing any sort of video manipulation. If I recall correctly, it's just so a user can record whatever image they are on, manipulate the image, and then export what they did to a video.
 
4:59 PM
@JerryCoffin talked with boss man, it seems like it is for encoding decoding. It's essentially taking a series of .tif files, and compressing them into a video format.
 
@Sailanarmo You could undoubtedly do that with either, but if you're using OpenCV otherwise, it's probably easier to use it for this as well than to use OpenCV for some things and FFMPEG (directly) for others.
 
Yeah that is what I am thinking as well. Thanks @JerryCoffin, that cleared up a lot for me.
 
5:14 PM
Interesting, I just found out my old video card apparently lived longer than expected since apparently EVGA 1080s were blowing up back in 2016
 
5:55 PM
@Mgetz Did you actually use it? Or was it sitting in a box?
:)
 
@Mysticial I did actually use it for years, apparently the fact that I had a ton of ventilation and was blowing at it hard in my old case kept it from dying
 
So they died because of overheating?
 
The old "if you point a fan directly at a VRM it tends to be cooler" still holds true
@Mysticial Looks like a MOSFET on a minor rail died
 
lol
 
ironically one that should have been decently cooled?
but the entire VRM is basically junk at this point as best I can tell, you'd have to test every single MOSFET to check
I was expecting it to be a capacitor or something
yeah apparently the bios on that card was too aggressive out of the box or something? So EVGA shipped a new bios that limited the power more. Because I didn't have any issues of course I didn't know any of this until after the fact
 
6:01 PM
So they throttled their card. I guess that's better than it blowing up.
 
do you see the 1 phase aux rail on the right? that's the one that appears to have died
but I'd be willing to bet VCore has issues too based on liquid on the MOSFETs
 
6:19 PM
apparently according to EVGA this is a known "Lifetime" style failure and not related to the thermal issue. Had it happened earlier they would have RMA'd it, but it didn't
 
7:12 PM
@anand_v.singh common mistake is having too much abstraction, mostly because the c++ is taught as an introduction to oop
 

« first day (3134 days earlier)      last day (1818 days later) »