5,331 Posted Topics
Re: So, you say it copies the data correctly (you have verified that with cksum or md5sum, right?), but just doesn't close the terminal window when done? There can be many reasons for that, including unintended input in the terminal window, so our being able to determine exactly what is causing … | |
Re: A common cause of WiFi network slow-downs is due to using the default signal channel. Example: on 802.11b networks, there are 13 channels. The default that all WiFi routers (access points) use is channel 6. Other AP's that your systems can see are likely using channel 6 as well. So, … | |
Re: TCP/IP is not deterministic, nor is ethernet. As my signature says, "Real fast is ALMOST as good as real-time"... The only deterministic real-time networks that I am aware of are Arcnet (up to 20mbps) and Token Ring, and then you need a real-time operating system to support them (QNX does, … | |
Re: I have written assembler code for Intel 8048 and 8086 as well as Sparc chip sets. Each target processor has its own instruction set, so assembler programmers (very low level - direct to the processor) generally focus on one processor family. Mostly today, you can write C code that will … | |
Re: Normally, you initialize static class variables in a translation unit (a source file, NOT a header). IE, in pessoa2.cpp: #include "./pessoa2.h" string Pessoa2::strnome("ana"); . . . You should NOT be initializing it in the header (class definition), although I think the latest C++ standard does allow that (not 100% sure) … | |
Re: L1, L2, and L3 cache are hardware based. The cache block size is probably determined by the CPU (L1 and possibly L2), or system board BIOS/flash settings (L2 and/or L3). I don't think that the OS has much to do with that, though I may be wrong. The standard Linux … | |
Re: C# is NOT cross platform! Yes there is Mono for Linux, but it is not really ready for prime time... Consider it a Windows-only tool. If working in the Windows environment is what you want, then fine, but realize that even on Windows phone systems, Java is still the language … | |
Re: Unless there is some really good reason to use arrays, why not use std::vector constructs that contain structures with your data? struct location { string city; string country; double latitude; double longitude; }; void getLocationData(vector<location>& locations, ifstream& inFile ); | |
Re: Unless you use an arbitrary precision library (such as Boost), this is not possible. All floating point (including double types) are imprecise and cannot be used easily for *precise* values as can integer types. So, use integers to express dollars and cents. Use the modf() function to extract the dollars … | |
Re: Just a cursory glance, but you have defined all of your arrays to have 2 columns. Why are you iterating over the passed column count? Also in your sub() function, you define g as a 2x2 array, yet you overrun the size with your g[3][3] = f - e. You … | |
Re: These days, most systems will support WebApps apis, which is about as platform neutral as you might get.Javascript is another (and common) platform neutral approach. | |
Re: Reputation, referrals (both positive and negative), examples of code, interview the team that will be designing, developing, and delivering the end product. There are other points as well, but this is a starting point. | |
Re: Show the equations you need to use, and show the code you are trying to get to express them - as well as all required inputs and outputs. | |
Re: Place the "Study making forms" last in your list of stuff to learn. Add "Study C++ GUI tool kits" before that - the forms will be part of that... :-) So, 1. Study the basics. 2. Practice the basics, gradually getting more complex with your code. 3. Study C networking … | |
Re: You should have some idea of projects that may interest you by now. Please don't ask us - there are just too many. My interests in this domain (professional) are in predicting network and systems failures by using strong engineering analytical methods on captured system performance, SNMP, and application behavioral … | |
Re: Sorry, but I'm not familiar with this distribution. Taking a bootable USB stick is not a bad idea. It should work fine in foreign internet cafes, but until you try you won't know for sure. Before you boot the thumb drive, do check with the cafe proprietors as to whether … | |
Re: Two problems. One is that this thread is 8 years old! Two is that writing *good* random number generators is not a trivial undertaking, and thinking it is just shows your ignorance of the subject. Read this: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html From the document, 2 relevant quotes: Anyone who considers arithmetical methods of … | |
Re: What you call the "bios screen" is the system's POST (Power On Self Test). If you go into the BIOS (usually F2), you should be able to set the BIOS to report more details about the results of the POST activities. This should give you some data to post (sic) … | |
Re: Most scanners generate ascii strings of the code, so basically you only need to open the port and use normal stream I/O to gather the data. | |
Re: There are several problems with this. One is that a letter can be input in either upper or lower case. Since you are limiting input to 26 letters (the number of letters in the English alphabet), then you need to convert the letter to upper case to match your array. … | |
Re: Most sata/esata controllers can handle multiple devices over one connection. I do that by connecting multi-disc carriers (4 discs each) to a single port. I can configure them as JBOD (Just A Bunch of Discs), or LVM volumes, or RAID arrays. So, get a multi-disc carrier (StarTech has some good … | |
| |
Re: You probably need to remove the CPU heatsink and reapply thermal tape or paste after cleaning both the cpu and heatsink surfaces that mate to each other. | |
Re: Actually, to get a random number between 0 and 25 (exclusive) using rand(), use a modulus operation: `num = rand() % 25` | |
Re: First, you need to understand how basic colors can be combined to create others. There are a number of standards for this. Do some Google/Wikipedia searches - there is a lot of information on the web to help you understand this domain better. | |
Re: Conversions between types are more strict in C++ than C (the compiler errors in testprint.c), and you probably didn't "guard" your external C function declarations with `extern "C"` (the linker errors). So, please show your code. | |
Re: Huh? Convert what to sata? And what are "byous"? I know what a "bayou" is - just go to Louisiana and you'll find plenty of them (still), along with some great Cajun music and dance! :-) Sorry, but my sarcasm gene just got control of me... | |
Re: Please do your own homework! That is why you are in school, to learn this stuff, and not to get the answers from someone else! :-( | |
Re: So, if you use WiFi you can connect, but if you use a direct ethernet connection you cannot? If that is the case, then it is likely that you need to change your TCP/IP connection settings for the direct connection to use DHCP instead of a static IP address. If … | |
Re: What if you take the battery out, and plug in the power brick? | |
![]() | Re: The poster said "no pointers"... :-) Here is a function to do that without pointers at all. // Recursive function to remove spaces from string void removeSpc(char array[], size_t posn) { for (size_t i = posn; array[i] != '\0'; i++) { if (array[i] == ' ') { // Move data … |
Re: Basic for loop for (int hours = 1; hours <= totalhours; hours++) { // Compute distance travelled - distance = hours * speed int distance = hours * speed; // then print the disance using cout cout << "After " << dec << hours << " hours at " << … | |
Re: Two major areas of interest today (and in the future) are "network security" and "large-scale distributed systems engineering", especially in the "cloud". | |
Re: Unfortunately, dropping a system is not covered under warranty. My advice is in any case to send it into the manufacturer for repair - you should be able to get an RMA (Return Merchandise Authorization) from their web site. DO NOT trust this to third parties! When fixed by the … | |
Re: Use an output statement to display the resulting sql string to the console, and then post that here so we can see what you are actually trying to store. In any case, remember that string values in SQL have to be delimited by single quotes, which you didn't do for … | |
Re: Babble, babble, babble. Please, just tell us precisely what you are trying to accomplish! I do this stuff for a living - reading big long lines of log data, and then parsing that into stuff that we can store in a database (mysql or hadoop) and then apply analytical algorithms … | |
Re: Find another ISP without caps (or bigger ones), or get an unlimited business account - costs more, but is probably cheaper in the long run. | |
Re: You need to blacklist the source of the pings in your iptables configuration files. This will block all connection attempts by those sources. Read the iptables man pages for more information. | |
Re: The original ethernet was invented by Robert Metcalf at the Xerox Parc (Palo Alto Research Center) in California in 1973-74. Here is the Wikipedia article about it: http://en.wikipedia.org/wiki/Ethernet Its design was inspired by the ALOHAnet and incorporated by Metcalf in his PhD thesis. FWIW, I have personally known Metcalf since … | |
Re: Has he enabled a BIOS / admin unlock password? What happens if you try to boot into the BIOS? | |
Re: What file system was on the usb drive - NTFS or FAT? NTFS file systems are much more recoverable than FAT file systems. Also, in either case, if you write anything to disc, then it makes recovery a lot more problematic. FWIW, I usually use Linux tools to recover files … | |
Re: This is where a VPN (virtual private network) is the solution. It allows one system that is geographically separate from the other group to act as though it is a local node. That's what allows me to work anywhere in the world on my corporate network just as though I … | |
Re: What do you mean? What precisely do you want to do in this regard. Changing the location of the repo files is not difficult - you edit /etc/yum.repos.d/*.repo and change the location therein. | |
Re: Windows assumes it owns the system. Normally, if you want to dual boot a system, you install Windows first, and then Linux. Linux will install a grub boot loader and recognize the Windows system, allowing you to boot either that or the Linux system as desired. IE, start over, and … | |
Re: Sounds like school work. We don't do it for you. First, make an effort to solve the assignment. Then, post your code here. We will be happy to help you understand/fix your issues/problems at that point. | |
Re: Build it with the debug flags enabled and then run it in the debugger. It is either that, or sprinkling a bunch of print statements through your code to help isolate the problem. For core dump exceptions like this, I find that running in the debugger is the better choice. … | |
Re: First off, Linux doesn't accept Windows-style back-slash characters for directory delimiters in a path. On the other hand, Windows will handle Linux-style forward slashes just fine, so when referring to file paths in Java, use '/' instead of '\'. IE, use: `"c:/Users/myname/directory/filename"` instead of `c:\\Users\\myname\\directory\\filename"` The first case is universally … | |
Re: Like voice recognition, facial recognition is one of those so-called NP-Hard problems. IE, there are so many variables involved that you cannot state categorically that any image matches any face. You can only state a probability that an image matches a particular face. Probabilities are like statistics (and are part … | |
Re: Sorry, but I haven't done any Prolog for almost 30 years... I'll have to refer to my copy of Clocksin and Mellish when I get home tonight. |
The End.