5,331 Posted Topics
Re: Is this a workstation with external display, or laptop with built-in display? In the former case, you would use the monitor's physical brightness controls. In the latter case, you would use the FN-Key combo that is associated with lowering the display brightness. Personally, after over 25 years of running X-Windows … | |
Re: You are going to need to be a LOT more clear on what you are looking for. These are NOT simple subjects. Also, just WHAT do you mean by "nano antenna configurations" (I'm translating from your post)? | |
Re: The passwd program and others like it are owned by root, and have the setuid bit set, so when you run it, it is running as root. Hence, it is able to update /etc/shadow when you change your password, etc. | |
Re: It does help to have some description of what is happening. There can be many faults related to a CPU. | |
Re: Let's see if I understand what you want to do. 1. Search a file. 2. Find string1 that is followed in the same line by string2 3. Follow string2 with string3, in the file, written back to disc? | |
Re: Do you HAVE to use strtok()? If not, try some different methodology. Why? Because strtok() will alter the string being processed, inserting a null byte at the end of each token returned. In any case, it will return NULL when there are no more tokens to return. I have used … | |
Re: Use a switch statement on a variable representing the question you are at. Then, to return to a specific question, you can reset the variable to that question, putting all of this in a loop. | |
Re: Frankly, we hire a LOT of java programmers (we have over 200 in my department), and certification never comes up, though we will ask the candidate to solve some fundamental programming problems. When I was interviewed, I was asked to write a factorial function in the language of my choice. … | |
Re: My guess is that audible.com books are DRM-encumbered, and only support decryption on Windows. My advice is to try installing audible software with Wine, and if that doesn't work, then install a virtual machine manager such as VirtualBox and run Windows as a guest operating system - in which you … | |
Re: The default speed of most serial ports is 9600 baud (about 8kbits/sec). You need to configure the speed on both ends (the computer as well as arduino board) to a higher speed. Most rs232 serial ports will support about 115kbps these days. | |
Re: This: `typedef std::vector<Student_info> container_Student_info;` should be this: `typedef std::vector<struct Student_info> container_Student_info;` Of course, you could do this: typedef struct Student_Info studentinfo_t; typedef std::vector<studentinfo_t> Student_info_containter_t; I like to put the trailing _t on the defined types so I know that these are defined types... :-) | |
Re: If I understand correctly what you are doing, then your professor is correct. The terminating condition of the loop is being able to read words from the input file. If you want to handle multiple files, then in the calling function (the one that calls pupulateStruct()) you will need to … | |
Re: School work? Sorry, we really don't want to help you cheat... :-( Generate a formal proof and I will help you verify it. | |
Re: Unless you use something like a C++ vector, removing an item from an array will not adjust the array. You have to do that yourself, otherwise you have an empty spot as you saw. | |
Re: If undeclared/unimplemented, C++ will create default base constructor (no arguments), copy constructor, destructor, and assignment operator. The base constructor will do no initialization of variables whatsoever. The copy constructor will do a bit-wise copy of the copied data (member variables), as will the assignment operator. Often these are not safe. … | |
Re: You have assigned min from arraySize[0] before it was initialized. You are lucking that it was initialized to zero - it just as easily could have been garbage. So, change then initial assignment from `min = arraySize[0]` to `min = 0`, and then change the for() loop to determine min … | |
Re: That sounds like a compiler error to me. Are you actually getting to the point you have an executable file? | |
Re: So, you are trying to configure a complext network with Cisco gear? You have your work cut out for you. Nobody in their right mind would attempt to do so without real Cisco training. Contact them. They may have some on-line training material which would help you; however, I doubt … | |
Re: You probably have not installed the Qt development package. It should be named something like "qt-devel". That's what it is named on Red Hat systems. Not sure about Ubuntu. | |
Re: Myself, I run Linux on my systems and run Windows in a virtual machine, which I can back up, export, reinstall on another system, or whatever, and to MS it looks like the same machine in all cases. So, I can run Windows in a VM on my workstation, or … | |
| |
Re: Try changing this code: else if ((!user.equals(uname)) && (!pwd.equals(password))) to this: else if ((user.equals(uname)) && (!pwd.equals(password))) | |
Re: Is that the built-in browser, or the add-on mobile proxy browser? I work in the division that does the mobile proxy browser. If that is the one, I can check with some of my colleagues who are directly responsible for the code on the phone. I am responsible for performance … | |
Re: The Google Chrome browser has some add-in extensions that let you run a tab in IE mode. Some only run on Windows, but others don't care. You might want to check them out. | |
Re: Most of these cards have built-in antennas, but provide external antenna leads so you can install better or high-gain ones for better distance and performance. | |
Re: SQL Server, or something else? Look up the C# documentation for ODBC. | |
Re: When I was studying mechanical engineering back in the 1960's, Fortran was a required course. I am now a software engineer... :-) FWIW, my wife, the physicist, is one of the few people I know who still use Fortran, and mostly she uses C++. | |
Re: Where do you initialize the mIntersectable member of the mSelectedLuminaire object? You are dereferencing it, but not verifying that it is not null. | |
Re: A video file is already in binary. What operating system are you using? There are a lot of tools to do what you want. Both ffmpeg and vlc (and other tools) have video streaming capabilities. You can also use something like netcat (nc) to send the data to another system, … | |
![]() | Re: The Fibonacci sequence. It is as np_complete said, with the addition that by definition Fib(0) == 0, Fib(1) == 1. int fib(int n) { if (n == 0) return 0; else if (n == 1) return 1; else return fib(n-1) + fib(n-2); } |
Re: If this is a balanced tree, then you need to rebalance when deleting the node. This is usually done recursively, which I don't think you are doing. Recursive algorithms are often MUCH simpler than trying to do the same thing in-line, though they may be a bit more resource intensive … | |
Re: Well, since you want to do it yourself, the old cfront C++ precompilers would do that for you just fine (up to the point you need to convert template classes and functions), and I believe that the current GNU C++ compiler will do that with the -E option. However, the … | |
Re: Here you are... #include <stdio.h> int main(void) { printf("Hello World!\n"); return 0; } | |
Re: if (strcmp(Input, "Pick Up Knife") == 0) { cout << "You got the knife" << endl; } | |
Re: Some call C a "high-level assembly code" language, though it really isn't (in my opinion). Assembly language is as close as you will want to get to machine code. Do remember that each processor family has a different instruction set, and trying to do machine code on modern computer gear … | |
Re: Please be more specific as to what your particular problem is, and what you want to do to resolve it. Just saying "remove limited connectivity from LAN connection" is not particularly helpful in understading your real problem. | |
Re: You can remove the drive from the laptop and try to boot into the BIOS. If it still "lets the smoke out", then the system is fried, though the HD may be recoverable as far as your data is concerned. If it can get to the BIOS, then it may … | |
Re: Also Qt is cross-platform. I've used it for Windows and Linux cross-platform development quite nicely. | |
Re: The overhead of function calling is directly proportionate to the number of arguments and automatic variables declared in the function. They all have to be pushed onto the stack. Also, deep recursion will cause similar overhead. That said, you are generally better off to have a bunch of small, easily … | |
Re: Besides circular queues, looping pointer constructs are necessary to deal with when you have references to other types of items, and they may have a reference back to one of the parents in the hierarchy. There are a number of methods to detect these situations, some of which I have … | |
Re: There are some excellent Qt tutorials out on the web. Fire up your Google search tool and find them... | |
Re: You will still need to obtain the RPM file for it, then you can use yum to install it (yum install filename.rpm) and then follow the rest of the instructions that turncoatlol mentioned. Here is a link to directories that contain the rpms (do you want 64bit or 32bit?): 1. … | |
Re: The answer is "it depends". Most OEM Windows installations will check to see if the hardware is supported - device drivers have little to do with it. I know that HP Windows installation discs won't work with non-HP gear - I've tried it. I would suspect that Dell versions are … | |
Re: Here is an excellent wikipedia article on quicksort, including sample pseudocode illustrating how to implement the algorithm: http://en.wikipedia.org/wiki/Quicksort | |
Re: Google... Two sites to check out: [url]www.kernel.org[/url] [url]www.tldp.org[/url] | |
Re: There are all kinds of html to pdf converters on the market, and a PDF is eminently printable. | |
![]() | Re: The variable i needs to be instantiated outside of main, either in the same file, or in another one that is subsequently linked to create the executable. Try this: #include <stdio.h> int i = 0; int main(void) { extern int i; i=20; printf("%d\n",i); return 0; } In any case, your … |
Re: You are a graduating BIS student and you are not much of a programmer? Business information systems are all about programming - implementing complex business logic with computer systems. What kind of systems have you studied? What interested you the most? What could you do that would help push that … | |
Re: Take the input into a string, the use the `strtof(const char* ptr, char** endptr)` function to convert the string to a number. You pass the address of a char* variable as endptr and if the conversion stops because it encounters a non-float character in the string, endptr will be set … | |
Re: The port number of the sending and receiving tasks are usually different. A server will listen on a known port, and when the client connects to it, it will provide an anonymous port to use for that connection. |
The End.