5,331 Posted Topics
Re: Standard boot/partition sectors (old style DOS ones) cannot handle more than 2.2TB disc sizes. As the warning states, you need to use a GPT partition table type. I don't know if Windows supports that or not. Also, RHEL systems (5.x and later) can handle NTFS file systems just fine. What … | |
Re: Open the Control Panel "Sound" option. Click on the "Recording" tab, and look for an entry for the microphone. Click on that, and then click on the "Properties" button. At the bottom of the window you will see a selection entry with the label "Device usage:". Click on that and … | |
Re: It is probably a problem with the web site. Have you tried other browers, and if so, does the problem persist? | |
Re: I haven't used the PayPal API's before, but looking at the samples provided I don't see that they have an API for shipping/delivery instructions. They have objects for shipping info (address, type, costs, etc). You will likely need to invent that wheel yourself, or find an API that supports it. … | |
Re: ` std::cout << "beep: " << '\07' << std::endl; ` | |
Re: You can call C++ methods from C#, but not the other way around, easily... If you have a C# service running (as a server I presume), then you can use tcp/ip to send an RPC (Remote Procedure Call) to the service from C++. The major issues will be formatting the … | |
Re: You probably ran out of RAM and don't have adequate swap space configured. Check memory usage, and increase swap space. The system will run slower as the swap file is in use, but it should run. If it continues to happen in much the same way, then you may have … | |
Re: MS keys its system based upon certain hardware parameters. Sometimes if you add new cruft to the system, the key no longer "recognizes" the system. One of the reasons why I NEVER use Windows operating systems... Chances are that if you add a new video adapter, the same thing will … | |
Re: The obvious point of this exercise is to learn recursion, which is when a function calls itself, terminating when some barrier is reached. A symbol for this is the great worm Ouroboros who encircles the Earth, eating his tail. An interesting article about this is here: [url]http://en.wikipedia.org/wiki/Ouroboros[/url]. The process potentially … | |
Re: If you are using SSL (such as via https instead of plain old http) then this should not be necessary as it will be encrypted before it leaves your system. That said, you could configure your client-side web page to do that - probably using javascript. | |
Re: What do you specifically mean by "rank"? How far down the tree it is? A couple of things about b-trees - usually less-than values move to the left branch, and greater-than go right. Also, just start at the root and iterate: if key == node value, you are done. If … | |
Re: I never do a software project before I model it in UML, including class design, state machines, work/process flows, etc. The visual components of this provide a very good view of what your system is doing, how stuff is related and interacts, etc. My favorite tool for this is Sparx … | |
Re: This is a situation where multiple threads may be appropriate. Have a thread for handling incoming messages, and another for communicating with the remote server (don't close the socket if possible). You have a mutex that controls access to the outgoing messages - grab the mutex from one thread, post … | |
Re: One question I have is whether these directories are on the same file system, or other file systems (partitions) or drives? Even if same drive and/or partition, there could be file system corruption or disc issues going on. You need to run your chkdisk tools and check for bad blocks … | |
Re: Are you sure it is properly formatted and has a valid NTFS or FAT file system installed on it? | |
Re: This should be fine, running an ethernet cable through a PVC pipe, although you will want to check with your city to verify whether you need a permit to do it. Also, make sure you get exterior-class cat 6 or cat 7 cable (not cheap) so that the signal will … | |
Re: First, describe the problem, how you would solve it in plain language, and the step-by-step process that you would follow to implement the solution - this is sometimes called pseudo code. That will help you develop the logic needed for the program, which we can help you with. Then you … | |
Re: Microsoft has happily turned Win10 into a virus - "whatever is yours is ours" seems to be their attitude these days. Disabling this cruft is a total PITA. My attorney who is a very happy Mac user had to get a Win10 system recently and the first thing that happened … | |
Re: I had to do a bunch of code remediation for PHP 5.5.x with their http output handling (totally broken). Don't know about later versions as I haven't had the time or resources to analyze the code. My guess is that a lot of that has continued, but I cannot say … | |
Re: You can also find all the specs for their cards on www.nvidia.com. | |
Re: Go to zareason.com - lots of great linux-compatible laptops, and can ship without an OS installed if you prefer. Good people. Decent prices. Good options. | |
Re: You need to study object-oriented design and development a LOT more before you can deal with this. Consider PHP to be C++ for web programming. In any case, the answer to your question would require a 500 page book to cover in detail... :-( | |
Re: Use a std::map<int,double> that maps the student id to their GPA. It will be sorted for you. The implementation I leave to you. Note that you got 2 down-votes, mostly because WE DO NOT DO YOUR HOMEWORK FOR YOU! Make an effort to solve the problem. Post the code and … | |
Re: You really should not post the same query in multiple forums. I have answered your question elsewhere. :-( | |
Re: Depending upon how many files you have added to your system, you may be able to recover most of them. This link may help: http://pcsupport.about.com/od/filerecovery/tp/free-file-recovery-programs.htm | |
Re: Your assignment is a trivial one. Salary ($50K) + (sales * .15) == total compensation. Java is not difficult. Read some manuals/books/tutorials, all available online... | |
Re: OOP - object-oriented programming is just that, programming with objects. The code you show is function-oriented. For OOP you need classes with member variables and methods (functions that work on the data of a particular class). That encapsulates all that code and variables in a single object (or multiple objects … | |
Re: What are you trying to accomplish? You can set up SSH to only use RSA keys, or to allow logins with user id and password. Automated script? Back to the first question... | |
Re: There is a tool called dd that is on every Linux distribution. Boot from a Linux live CD/DVD and do this (assuming that the Apple drive is /dev/sda): dd if=/dev/zero of=/dev/sda bs=1M When it is done, the drive will be completely zeroed out. If you want, you can also specify … | |
Re: Start with a Linux virtual machine. Install VirtualBox on your Win7 system and create a Linux virtual machine. That way, you can experiment with a number of different distributions until you find one that you prefer. You can also use them to learn how to use the OS. | |
Re: @happygeek - I read that as well. Here is Bruce Schneier's post about it last Friday: https://www.schneier.com/blog/archives/2016/04/breaking_semant.html Basically, it all boils down to image analysis and pattern recognition. I used to do crude versions of this back when I was researching image processing algorithms (mid-1980's). | |
Re: It boggles my mind how so many "universities" teaching computer science are utilizing outdated compilers and tools. It is as though they have never heard of Linux and virtual machines... Best, up-to-date compilers, tools (all free) available. | |
Re: @Shantha_mh - good post. A thumbs up from me, and someone else as well. SIP - Session Initiated Protocol, used for VOIP (voice over internet phone) is very important these days. Good reference links are important to understand what this stuff does. | |
Re: Simple: sum all of the data values and divide by the number of nodes in the list. I am guessing that you did not write the functions to add/remove/size the list, etc. We don't do your homework for you. This is very much elementary math... :-( | |
Re: Ads suck up bandwidth and push data caps that are so ubiquitous these days. Ensure your publishers respect these facts by making their ads mostly static text with minimal graphics and NO video! Then, they can be whitelisted by the major ad blockers. IE, respect the reader/consumer... | |
Re: C++ is an object-oriented language which allows much more complex applications to be written in a shorter period of time than C. You can model the structure and behavior of the "things" you are dealing with using classes and inheritance with much less programming. You should do some reading about … | |
Re: @Suzie999 - you are definitely NOT a noob! In any case, the problem has a couple of components. One is the loading of the DLL in your code - for Linux it is dlopen(), for Windows it is LoadLibrary(). Then there is code to map functions in the shared library … | |
Re: Not sure - not my domain of expertise - but don't you need to oauth the facebook site on yours? | |
Re: Write an insertion sort routine, based upon bsearch and qsort algorithms. Yes, they are C code, but are easily translated into Java. Basically you use an array - presize it to your expected maximum size + some space for overflow. When you do need to resize it, double the size. … | |
Re: What operating system are you using? Also, are you using UDP packets, or TCP streams? TCP streams are simple - you connect a monitoring client to the address:port of the server with a Keep-Alive option, and if the server cannot connect or drops the connection, you will know about it. | |
Re: Sorry Justin, but this is a repost of the same cruft that I commented on before... I am downposting this as a result. | |
Re: I could not have said it better @AleMonteiro! I too am giving you a "thumbs-up" for your response. | |
Re: No description of problem - no help. Also, either declare the functions before you use them, or put them above main() and each other as an alternative. You want us to analyze 240 lines of code with no description of what your actual problem is, other than you obviously have … | |
Re: Get more RAM if your laptop can handle it. Also, how are the VM's in VirtualBox configured with regard to number of cores, amount of RAM, etc? I would suspect that your performance issues are related to swapping of virtual memory to disc. A solid-state disc can help there. There … | |
Re: 1. Make sure you have a high performance USB drive. They are much faster to read than write. 2. Disable memory swapping in the OS and remove the swap file. The performace of virtual (swap) memory is very dependent upon the write performance of your drive - see #1 above. … | |
Re: As mentioned in the article posted by @ryantroop, fgets(stream) will also return the newline. If you don't want it, you will either have to trim it or use stream_get_line(). FWIW, you can't use STDIN if your script is being read from stdin... :-) Read this: http://php.net/manual/en/features.commandline.io-streams.php | |
Re: What @rproffitt says, however in your case you do need the Windows API for this. What happens? Does it just hang, or does it give the negative answer? Also, what compiler are you using, MS's visual C compiler? Some other compiler that supports the win32 API? Nevermind. I see you … | |
Re: Geeze - people are still using Pascal these days? Are you running a P-machine, or some version of Turbo Pascal? Ok. Better to use a timer interrupt instead of a constant loop, and if you need to do stuff before the timer kicks, then use a loop and check the … | |
Re: DO NOT DO THAT!!! Assuming that /dev/sda1 is the root file system, then the problem is more difficult. If it isn't, then as root you will need to umount that file system with "umount /dev/sda1", and then run "fsck /dev/sda1". If it is the root file system, then you need … |
The End.