Jump to content

mansoor_

Member
  • Posts

    519
  • Joined

  • Last visited

Everything posted by mansoor_

  1. Setup ssh authentication for your github account, you won't have to go through this process again. But yes, it is safe to enter your credentials there.
  2. During gameplay or whilst idling in the game? How can you be certain that it's a memory leak? Generally you would need a debug build of the game to be sure of that.
  3. This question is asked so frequently, I doubt it has any value. Some imperative advice, don't bother learning something you will never use. Focus on developing skills that help your workflow. When it comes to software in real world applications, you will have to adapt to whichever language is used for the project you are working on. There are useful concepts in software, many of which are language agnostic: Design patterns, OOP, meta-programming etc. The language is just an implementation detail. With all that said, go for C++.
  4. I get a segmentation fault after writeStoredData() writes 0,1,2,3,4 to the console.
  5. Can someone explain to me why this piece of code fails: I get a segmentation fault after writeStoredData() writes 0,1,2,3,4 to the console. #include <iostream> //Class storing data class DataStorage { public: DataStorage() { } ~DataStorage() { delete x; } void storeThis(int* xIn, unsigned sizeIn) { x = xIn; size = sizeIn; } void writeStoredData() { for (unsigned i=0; i<size; ++i) { std::cout << x[i] << std::endl; } } bool exist(int value) { for (unsigned i=0; i<size; ++i) { if (x = value) { return true; } } return true; } private: int *x; unsigned size; }; //Stores and writes the stored data void exercise1() { std::cout << "Exercise 1" << std::endl; int x[5] = {0,1,2,3,4}; DataStorage dataStorage; dataStorage.storeThis(x,5); dataStorage.writeStoredData(); } int main(int argc, char* argv[]) { exercise1(); return 0; } what simple changes could I make to solve this problem?
  6. There are easier ways to dump any electrostatic charge build up. You could ground yourself with any large metal plate, or by plugging in your power supply and touching the case.
  7. Razer Blade - preferably without edzel vandalising the back but I'm not that fussed.
  8. I'm pretty sure linus had videos covering all of these topics years ago.
  9. If that is on a wired connection, then it is shockingly bad. However If you are using the xbox wireless adapter, then it's understandable. I recently switched to fibre because I often download/upload large files. I save quite a bit of time, but I was only on 7 down / 1 up beforehand. For streaming 1080p videos, the upgrade made no difference, I only notice the difference when streaming 4K. Also most of the uk isps give better wireless router to their fibre customers (5Ghz, QoS, more ethernet port and usb ports ...etc), so if you are in a densely populated area that should be helpful.
  10. 17 mbps isn't really measly, most people on copper have an average download speed of about ~6-7 mbps. Unless you are constantly downloading, you probably won't notice the upgrade to fibre (40mbps). 17 mbps is plenty for streaming right?
  11. Really, when i hit he link it takes me to the s6. (£350)
  12. http://www.simplyelectronics.net/mainproduct.php?pid=27560 Much better deal
  13. The NSA has always been a well known organisation, I remember it being mentioned in good will hunting.
  14. you can buy it now without an invite, its even cheaper now too.
  15. s6 wipes the floor with all the other smartphones in terms of synthetic benchmarks, the display is arguable the best on any smartphone, camera is on par with the current iphone, other than the ID of the htc and the front facing speakers, there is no reason to opt for it ahead of the s6, where i am from the htc is slightly cheaper than the s6, but you can get the g4 for ~ £200 less which makes it worth buying.
  16. The s6 is the superior phone is most regards, If you find a good deal for the g4 (cheaper than the s6), I would go for it, If you want to wait a little longer, the note 5 and oneplus 2 should be coming in Q3. I am in the same position as you, I want to see what oneplus has to offer, especially if it ends up being half the price of the s6
  17. Have you tried another browser, refreshing your network connection....
  18. Not true, it is really bad for you, on par with smoking but does not necessarily make you susceptible to the same diseases : http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0116861
  19. 1) conditional, trivial to prove 2) absolute, by taking the absolute value of each term, demonstrate that series where the sin terms are replaces by a 1 converge (use integral test), then by the squeeze theorem the original series converges aswell. 3) method of difference. ans. = 1 edit: For Q3 you can also use partial fraction decomposition and the the series {sum (1/n) from 1 to inf = 2}, to show that the result is 1.
  20. If there actually were any electrical engineers at NEXPAQ, they would know how much of a stretch this idea is. Smartphone devices are so tightly integrate that this kind of a thing is practically impossible, even for the likes of google who attempted the same thing with project ara.
  21. Worth the wait if the price of the g3 comes down...
  22. If authenticator stops working, you can use your backup codes, text message to another number, ... or a list of other things. I don't see why the oneplus is any more likely to stop working as compared with the lg g3. BTW the g4 is coming out tomorrow.
×