5,331 Posted Topics
Re: It depends upon the usage. For personal and gaming systems, mostly Debian and derivatives (Ubuntu, Mint, et al). For enterprise servers, mostly RHEL and clones (CentOS, Scientific Linux, Oracle Linux). | |
Re: And remember, we don't do your homework for you. We get really cranky when people post the assignment, but not their work... | |
Re: Here is the results I come up with: `9*9*9*9*9*9*9*9*9*9*9*9*9` (9^13) == 2541865828329, which definitely requires an unsigned long long. When I tried a simple long unsigned value, the compiler (gcc 4.4.7) complained about an integer overflow. | |
Re: As one old (very old) programmer to another (I started with Fortran on punch cards in the 1960's) you might want to check out Eclipse. It supports most languages and is a decent open source IDE (no cost, source code available). Here is what may be a helpful link: http://marketplace.eclipse.org/content/pydev-python-ide-eclipse | |
Re: I'm not sure there is much we can help you with here. Part of the issue with algorithm development is the math and the logic. If you aren't strong with those, then you are going to have problems. Start by writing out the problem, and then your solutions, using plain … | |
Re: Media converter? Such as gigabit ethernet to fiber? Go to www.blackbox.com. They have lots of such stuff. And yes, you would need two converters - one to go from ethernet to fiber, and another from fiber back to ethernet, unless the system, router, bridge you are connecting from/to has a … | |
Re: So, do you have a problem, or are just showing off? :-) Sorry, couldn't help myself! For some problems, recursion is simple and elegant. There are classes of problem where recursion is the only reasonable approach. Once upon a time, I found that a compiler (mainstream commercial C++ compiler for … | |
Re: Some browsers today aren't allowing plain http access, but require https (secure, encrypted connections) to work. Try using https instead of http as the protocol type. | |
Re: Also, please avoid duplicate posts. Your question (?) has already been answered in your other post. | |
Re: You might be able to get it unlocked at an Apple Store, or if you know who the original vendor was (AT&T et al), you could go to one of their stores to get an unlock code. | |
Re: Posting 500+ lines of code with no indication or description of the errors or problems you are getting just doesn't work. | |
Re: 1. 30 days has September, April, June, and November. 2. All the rest have 31 except February which has 28 unless it is a leap year, in which case it has 29. 3. Leap years are those where year % 4 == 0 unless year % 100 == 0 but … | |
Re: So, are you having a problem? The code looks ok, functionally, although you should probably add conditions that test for equality as your code won't trigger if it finds an equality condition. IE, `if (a >= b && a >= c) { if (a==b) printf(a and b > c); }`, … | |
Re: Working out efficient algorithms is a key part of computer science. Good math skills helps. Also, don't be afraid of trying other approaches to solving the problem at hand. As someone once said, there is more than one way to skin a cat. Try different approaches and test them for … | |
Re: Joke: I can easily help you "badly". Helping you well (good) is another problem! :-) FWIW, JamesCherrill usually gives good advice. Also, read stultuske's comment about Random(N). IE, create one instance of Random and then call the appropriate methods on that instance to get the next random number. If it … | |
Re: So, what is your problem. Don't expect us to analyze 260+ lines of code without some indication of the errors you are getting, and where you think they may be. | |
Re: How did you format the laptop? Also, did you clear/reset the BIOS flash memory as well, and as part of the refomatting, include the boot sector, or just the NTFS partitions? | |
Re: Switch to Linux? Not an option I suppose... Back up data to external drive. Scan and clean the drive for malware by another (uninfected) system. Wipe your system drive. Reinstall the system from DVD. Reinstall all your necessary applications. Copy data back to system from backup drive. And when I … | |
Re: Accidentally removing the power like that can damage system files or the hard drive. When you say it won't boot, do you get the boot POST (power-on self test) that lets you press a function key (or escape) to get to the BIOS setup? | |
Re: @saifN - your post makes little sense to me. You are declaring a function that takes an argument 'n', and only has a statement 's' in the body. No operations. No nothing. | |
Re: Have you read this in detail yet? http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UM245R.pdf Use the **Code** block to post your code. Just make sure your code is properly braced and indented. I assume you are talking about C or C++ code? | |
Re: 1. Read the data file into a single string, replacing new lines with spaces. 2. For each string in the query file, use strstr() to find the position in the string from the data file. 3. Done. | |
Re: This is a cross-platform build. You will need the GCC cross-platorm tool-chain to build this code, and DO NOT try to install the binaries on your Apple system unless you want "bad things" to happen! I build ARM binaries (kernel, etc) on my x86 Linux system frequently. Then, I move … | |
Re: Read this tutorial on random number generators and you will understand better how all this works: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html | |
Re: My advice? Just build optimized code and strip it before shipping. Trying to make it impossible to reverse engineer is a waste of time and resources. Yes, you could encrypt it, and require a proprietary key to decrypt it as it is loaded into memory, but once in memory, it … | |
Re: Then to do that backwards: for (int i = value.length()-1; i >= 0; i--) { char currentChar = value[i]; // do something with the char if you like } | |
Re: Sorry, but I haven't used OpenMP for about 20 years... Try the OpenMP user forums, assuming there are some. FWIW, OpenMP is good to distribute computations over multiple discrete systems, but given today's multi-processor, multi-core systems, threads work a lot better, at least up to a point. | |
Re: And your problem is? From your code, when the program ends, the destructor for class A should be called for each instance, generating something like this: X=30,Y=40 X=10,Y=10 X=20,Y=50 Note that the output should be in reverse order of their declarations. This is what my Linux system shows from your … | |
Re: Make effort. Post code. Post errors and problems. Not doing your homework for you, as per AleMonteiro. | |
Re: On Windows systems, Cygwin provides a Linux-type command environment with all the usual tools, including GCC compilers, bash shell, c-shell, and such. It works very well. I used to use its xorg X-Windows server in order to run X applications on remote servers that I had connected to with ssh … | |
Re: So, what is your problem? What do you think it needs to make it "better"? | |
Re: Please read the terms of service/use for these forums. We do not do your homework for you. When you have written the code to solve the assignment, and you are having errors or problems, then post it here and we may be able to help. | |
Re: Most current 64-bit processors can run either 32-bit or 64-bit operating systems. As noted, a 32-bit one can only handle about 4GB of RAM whereas a 64-bit one can handle about 4 billion times that (in theory). In any case, you should run a 64-bit OS on a 64-bit processor. … | |
Re: This is a common compiler issue with new programs. If you intend to use that variable in the future, then just comment it out for now if you want to make the compiler to shut up. :-) | |
Re: One last question. Does it shut down after 15 minutes of user inactivity? Does it keep running if you keep "diddling" the system and running programs? If either is the case, then it has to be some obscure power configuration setting, at least that's what it would seem to me. … | |
Re: Scheme is basically Lisp. Sounds like you need to do some more study here. This may not be school work, but it looks a lot like homework for a course you are taking, even if an online one. Do you know how to write a recursive Scheme function? That is … | |
Re: If it isn't an Apple, then you probably won't be able to install Mac OSX on it directly. You should be able to install it in a VirtualBox virtual machine, assuming you have an install disc and license. | |
Re: Yeah. You're busted, with one of those "We are the authorities and we have detected your illegal activities. Pay us a fine or you'll go to gaol!" viruses. Time to re-install your operating system, or better still, move to Linux where this sh!t doesn't happen. | |
Re: As Mike2K said, dd will happily wipe any disc, file system, or file as needed. That said, did you try to use fsck to fix the file system? FWIW, you can only do a fix if the file system isn't mounted, otherwise it will only to a read-only analysis to … | |
Re: You would probably need to set up routing in the computer the modem is attached to. Also, you need the modem's IP address, which if it is dynamic (not a static address) may be a problem. Check with your ISP about this. | |
Re: I first started using Unicode back around 1989-1990 before it became a standard in order to support our Korean customers and provide help and other system messages in Hangul. Not simple! We contracted with another company that had already created the code to deal with this stuff - "wide" characters … | |
Re: Also, your app can talk to a web server running PHP, which can easily access a MySQL database. In any case, you DO NOT want to run the database on your mobile device - it would quickly bring it to its knees! | |
Re: I assume there is a start node for <xs:schema>? Also, please properly indent the nodes. It helps to find such problems. In any case, this should be ok. What happens if you take the maxOccurs parameter out of the elements? | |
Re: Please don't make multiple identical posts. Not good forum etiquette, plus it makes it difficult for people to collaborate when the answer is non-trivial, as this one is. | |
Re: What deceptikon said. In addition, modern processors have a lot of cache memory that could, in theory, be used as main core if desired. That said, most BIOS's will refuse to run without main memory, unless modified. | |
Re: Check memory usage to see if your system may be hitting the virtual memory swap space. | |
Re: What errors do you get? Does your system allow you to access the pendrive? These devices are generally factory formatted with a FAT file system which can be read by Windows, Linux, or Apple system. If you cannot access it, then it is likely a problem with your system software. … | |
Re: In the first case, 12.345 is probably being decoded as a double. In the second case, the variable A is a float. Welcome to the world of floating point numbers and rounding errors! | |
Re: What do you mean by "not working hardware". Are you speaking about the computer system itself, or do you mean the disc. If the disc is still functional, data should be retrievable. I remove the disc from the system, put it in a docking bay (either eSata or USB), mount … | |
Re: @javedkalabagh - please don't hijack other people's threads. Not good netiquette. Start your own thread to get help with learning C++. |
The End.