« first day (3136 days earlier)      last day (1808 days later) » 

12:21 AM
-1
Q: Can microsoft visual studio tell if code has been copied?

CinnaHi I have a small and simple question. If I have some code say I got it from the internet or wherever and I pasted this code on microsoft visual studio and ran it and it was all fine etc. Is there a way of checking to see if this code was copied and pasted onto visual studio and not typed ?

@Mysticial @milleniumbug
 
@Puppy so you are an Agender :p
 
12:39 AM
@Borgleader Excellent. Looking forward to their future progress xD
 
1:25 AM
@Rick sad
@JerryCoffin Yeah, with the interconnect increasingly done by Intel they're becoming a solutions provider. But also Intel is becoming a solutions provider. I think half the people worked for either HP or IBM.
@JacobSchneider wtf is bdining .gyp. Anyways use cereal for json
 
Can anyone help me with Node-Gyp?
well s***
 
@JacobSchneider Maybe you could try here ?
 
you're hilarious
 
But I have poor markup skills :-(
 
So no one knows anything about Gyp?
sigh
 
1:32 AM
@JerryCoffin Your kid getting to ya?
 
1:53 AM
I accidentally went to work at 8:00 am, this is fucking terrible. Day is almost over. Everything is darker and smaller.
 
2:33 AM
@Mikhail Game of thrones is over
 
There are a lot of incests in the GoT, and killings on weddings.
I have not watched the actual GoT series, but I spent 6 hours in total watching synopsis, analysis of characters and highlights. I think I understood the whole story line now.
I did watch like 10 minutes of two actual episodes - two slow for me.
 
2:55 AM
@Rick stop trying to normcore me with that shit
I realized I can write tests without thinking
Also go fucking learn C++, you should be able to get the interview question.
 
@Mikhail I wish I could blame my kids, but I'm afraid it's mostly my own fault.
 
3:10 AM
I assume Saturn gained some weight, too
@JerryCoffin Also all the interns who successfully answered the question came from reddit.
 
My optometrist and dentist have been very honest (and brutal) with me, they told me that my gum is receding which is common for people over 30 and myopia will be reverted in the short future once I am somewhere in my 40s.
Another way to tell me I am getting old and my body is losing optimum functionality.
My doctor has not told me to lose weight yet, and there is no usual test at the doctors to test whether I have become dumber.
 
AKL
3:28 AM
Hello!
@TelKitty I am sorry to hear that! but don't take it too hard. With age also comes experience!
 
Lol
 
AKL
Common man I was not joking!
I am also getting old and I am also facing health problems!
 
I'm loling mikhail
 
Being honest is not a bad thing. Optimum solution can only be devised once I know the true picture.
We are all getting older, all the times.
 
AKL
I agree but constant thinking about problems also reduces performance.
 
3:38 AM
I constantly think about problems, but I take care of many things, and there are many problems. I might not dwell on any of them, but spending a bit time on each of them still takes a lot of time. I can not run away from my problems.
 
AKL
Good. also remind your self of the good things in your life!
 
I am generally a happy person. Just for the past few days I have not been sleeping well because of this future solar farm venture and A.I. in robotic group. On top of that, paper work for my app company is a few month overdue & my overseas holiday is within less than 2 weeks, I have not arranged for accommodation or transport. But I am not worried about holiday because that's just a couple of hundred dollars difference even if I don't plan it well. I do need to get my eTA & ESTA though.
If I have experience with a problem and know it can be solved by a few hundred or thousand dollars and a bit of time, then it's not a real problem that I worry a lot about (albeit it could be annoying). A problem worries me if I have no experience with it and I don't know the potential up/down swing. So I spend a lot of effort trying to find it out.
 
AKL
4:00 AM
I see. Well I am generally a modest person, but I think there is a great chance that if told you what types of problems I am facing right now or what is the situation I am in now you would agree that my case is much worse! But I also don't think I am the most unfortunate person in the world!
I hope the best for all of us! and good luck to you!
 
 
2 hours later…
5:47 AM
@Xeo @StackedCrooked @ScarletAmaranth Made in Abyss movie screenie free swag:
Movie was stupid though. Just a recap of the series + one extra scene at the end showing Prushka for the first time.
 
Cool.
 
I'm not sure how to deal with paper posters.
They don't hang like wall scrolls, and they don't roll up for storage.
 
 
1 hour later…
7:18 AM
Welp. Go hang out with "friends". Spend two hours of them calling me a bitch, and otherwise weak. Paper get accepted to Nature family journal on Friday, but apparently academic game is above these guys. They are probably right. You guys do anything interesting?
If only C++ was helpful or otherwise useful
Also put in a request to hire two interns for an NIH funded grant I contributed to.
 
7:42 AM
They are probably correct about the acedmic game being above white people (or citizens)
It should also be noted that the Chinese untermensch that my Pi prefers is better able to manage their free time. For them a 30k a year job is better than whatever the fuck the industry offers back in their native land. Actually, graduate school is less work.
 
The 996 working hour system (Chinese: 996工作制; pinyin: Jiǔjiǔliù gōngzuò zhì) is a de facto work schedule commonly practiced in the People's Republic of China. It derives its name from its requirement that employees work from 9:00 am to 9:00 pm, 6 days per week. A number of Chinese internet companies have adopted this system as their official work schedule. Critics argue that the 996 working hour system is a flagrant violation of Chinese law.In March 2019 an "anti-996" protest was launched via GitHub. == Background == The culture of overtime work has a long history in Chinese IT companies, where...
 
8:13 AM
'Email me', she said. 'You definitely should to email again', she said. When I emailed her, she did not reply. Perhaps. she thought just because she works one of the biggest software corporations, I would totally spam her about getting sponsorship for my group. Of course it's nice to be associated and sponsored by them, if little effort is needed. But I am not a beggar, and frankly, events with free food and beverage tend to attract people who come for the free food and beverage.
 
8:23 AM
What I really need are brilliant and knowledgeable people in the group. We are willing to train others so they can reach their ambitious goals as well. I don't need 100 extra people coming for the free pizza and beer and I am not keen to beg for a couple hundred dollars a year sponsorship. I know many VCs will be interested if our group can actual come up with useful A.I. robots that can generate positive income.
... well ... the hard part is to make those A.I. robots that can generate positive cashflow in the short term
 
 
2 hours later…
10:57 AM
Hey everyone, I've created a window with winapi and I was wondering if it's possible to have the window be a Live Canvas kinda thing?
A live canvas would be something where I can render games or videos etc
and it would update in real time
 
@Mysticial I have several posters rolled up in cardboard tubes vOv
 
Without embedding an image and modifying that image
 
11:13 AM
@JacobSchneider In short if you want more complicated drawing functionality you need a widget kit that supports that functionality. Qt kinda works, but most games require the functionality and structure of a engine.
 
no, I don't want advanced functionality, in fact, I want to draw rounded rectangles, that's it
 
Welp, GDI does have a RoundRect function, but you will need to write non-paradigmatic code where you need to manually service and event pump.
 
@JacobSchneider Live canvas, as you so call it, is somewhat advanced by nature.
there's a shitload of native buffering, resource management, hardware devices, etc going on
you can either have fun with something like GDI or Direct2D or just download a library like Qt
 
Somehow libraries don't work, If I could, I'd be use SFML
 
sounds like a problem you probably should fix
but you can always GDI, Direct2D, whatever it up yourself if you want
just don't expect it to be simple
 
11:21 AM
haha, yeah, I wasn't planning on scratching it up in 2 days, I see this as a larger project
 
probably D2D as GDI is pretty painful
 
I was just about to ask
that's for the tip
hey, this post stackoverflow.com/a/13900688/7792079 says I need to familiar with COM interfaces, but googling it gives me AVI video converters, what exactly am I looking for?
 
You need to use Qt
 
COM interfaces are just a kind of interface
you might have an AVI video converter interface which is a COM interface, but that's about as far as it goes
you can find plenty of tutorials on Direct2D which will cover the basics
(also lol Qt)
 
Thanks
 
11:37 AM
piping to ffmpeg is perhaps a better strategy, or just invoking ffmpeg
 
Piping to FFMPEG?
 
12:15 PM
Final Fantasy Mr Peg
 
 
1 hour later…
1:24 PM
@JacobSchneider you mean a D3D surface?
 
1:47 PM
No, I am looking for a 2D surface
 
 
7 hours later…
8:55 PM
@Mikhail, let me know if this an acceptable answer. both A and B point to the same object. So when the destructor is called the first pointer no longer points to the deleted object. However, can you tell me why the B destructor is called before the A destructor?
Also, why is my compiler not showing an error, when I compile the program?
Also, had it been a deep copy instead of a shallow copy it should have worked.
It would have also worked if we used a smart pointer
You mentioned two things being wrong. if what is said is correct what was the second thing?
 
9:26 PM
@Rick context?
 
@Puppy pastebin.com/raw/gKkCBvEW
 
I don't see why the compiler would show an error
what problem are you expecting it to detect?
I mean, don't get me wrong, the code is obviously wrong, but there's no diagnostic required (or really feasible)
 
@Puppy well why is it wrong, is what I said correct
 
the B destructor is called first because destructors are called in the inverse order of constructor
the code is wrong because it manually destroys resources through any means, and the fact that the author happened to get this manual destruction wrong this time is relatively immaterial on the scale of "Used completely the wrong technique"
there's various style and whatnot but for a significantly minimised sample reproduction I would not criticise them so really I'd just go with that as the one thing wrong with the code
anyway I'm off to bed
good night
 
@Puppy toodles
 
9:36 PM
@Puppy but don't you have to manuly delete when you place into memory with new
good night
"Explicit call to destructor is only necessary when object is placed at particular location in memory by using placement new. Destructor should not be called explicitly when the object is dynamically allocated because delete operator automatically calls destructor."
 
@Rick uaing free instead of delete, and a double free which will runtime error
Msvc for example won't compile it with free, you need to include cstd or something like that to get it
 
yeah, I included <cstdlib> and it compiles without issue.
 
Yeah but that wasn't part of the question -)
It will also not run the destructor, I suspect there is no guarantee that the two heaps are even the same (might be wrong here)
 
@Mikhail both A and B point to the same object, and they do get run. because they would get run anyway because they are local
however, puppy response provides a satisfactory answer.
however, I'm still confused about this statement "Explicit call to destructor is only necessary when object is placed at particular location in memory by using placement new".
 
 
1 hour later…
10:53 PM
@Rick There is this thing called a "placement new" which doesn't allocate, its a memory pooling strategy. You are building the object at a specific location rather than relying on C++ to give you the location. I think its used heavily in Chrome.
@Rick yeah, but it won't run the destructor for the item object (whatever it may be)
Anyways, its a solid question because a sufficient number of people answered it correctly. The real problem will be if those guys accept, can work for us. Its easy to find competent people, much harder to pay for them.
 
@Mikhail thanks I was a little confused about that.
 
I gotta figure out how to move a tensorflow network into CUDA so that it can be directly evaluated on a GPU/device pointer. I don't want to memory copy it off the GPU, pass it to library that will memory copy back onto the GPU, and then copy it back. Like GPU->HOST->[HOST->GPU->HOST]->GPU if I do it wrong. Where the thing in the brackets are the libraries I've found. Should be GPU->GPU (evaluate network)
 
@Mikhail does your GPU support P2P
 
Don't know what that is
GPUs have separate data copy forward, data copy back, and compute engines. So they can be concurrently running 3 streams, but this particular code is no longer optimized that much.
Biggest problem is that the few inference engines I've seen operate on host data
My years of GPU microoptomization experience have been made obsolete by massive performance gains.
 
11:11 PM
data transfers can flow directly over the PCIE bus from one GPU to another
 
Okay...
Fun fact, back in the day some vendors let you do a MPI_Recv a GPU pointer, which would copy it directly to the GPU.
 
so they stopped doing that now because of security
 
It cost the vendor who shall not be named a bunch of money to develop, and nobody used it.
 
seems like it would be useful. what do people normally do in your situation
 
Has nothing to do with my situation. My situations is that the libraries that make using my network easy, all consume host pointers rather than GPU pointers. I don't know what people normally do. I probably will figure that out in a few hours :-)
 
I wrote a bunch of tests of the form, pastebin.com/raw/BZPwLxMU and shocked that they keep catching errors or oddities, most of them have to do with qt rounding values in widgets.
 

« first day (3136 days earlier)      last day (1808 days later) »