5,331 Posted Topics
Re: Is it using your private, or your public key to encrypt it? | |
Re: Current Windows systems (7 & 8) sometimes seem to lose the ability to recognize USB drives. You can try to remove all of the USB devices from the Device Management control panel and then rebooting. That will re-install the devices, and it has worked for me an others that I … | |
Re: How do you mean? Reset to factory specs, or to totally format the internal "drive"? Any why on earth would you want to wipe your phone completely? | |
Re: There is no way to tell. You could contact Sony and find out if they support that chip. They may or may not tell you, in which case you would have to find out the hard way. Sony Vaio's tend to be pretty proprietary as to what hardware you can … | |
Re: You can use a virtual machine and build your OS in that, including using interrupts. In any case, this is not a simple subject, and from your posting you have a lot of studying to do before you start exploring the joys of interrupt tables, jump vectors, interrupt masking, non-maskable … | |
Re: Do you have the same problem with the second display if you swap them around (plug monitor 1 into monitor 2's port, and vice-versa)? If you still have the same problem with the same physical monitor, then the monitor is bad. If you have the same problem, but with the … | |
Re: On Red Hat systems it is /etc/sysconfig/network-scripts/ifcfg-Auto_ethN (where N is the NIC you want to set - usually eth0). You would edit that file to change the static IP address (IPADDR=IPV4address, such as 192.168.1.100 - you can't do this with DHCP) and then run the "service network restart". Bingo! Your … | |
Re: I don't know, but there should be profilers like valgrind or Quantify (IBM) for .NET applications. Have you tried any of those? | |
Re: So, double post and mark other as solved? Which is it? :-( Normally, you don't create .exe files with java. You create .jar files which the JVM will execute. There are compilers which will take java code and/or jar files and turn them into native executable images. For Linux there … | |
![]() | Re: What Ktsuekiame said, plus this: in your first loop, you are only moving the next element to the space. You need top move ALL of the data one character toward the head of the string, not just one. This requires another loop inside the first one. I think your teacher … |
Re: Run it in the debugger, or add some debug output statements, so you know where it is generating the exception. | |
Re: Look in the constructor `name::name(const char* s1)` this is what you do: name::name(const char * s1){ if (s!=NULL) { delete [] s; s=NULL; } len = strlen(s1)+1; s=new char [len]; // back*** strcpy(s,s1); } Do this instead: name::name(const char * s1) : s(0), len(0) { if (s1) { len = … | |
Re: Do you have code to post? A description of the algorithm? What you are saying is not enough to help you. | |
![]() | Re: If you want to print the number in octal format, then in your `printf()` statement, use `%o` for the format specifier. IE, /* Instead of this */ printf("%d", oct[i]); /* Do this */ printf("%o", oct[i]); |
Re: Also, you need to declare the type in the function argument list. This should not compile. And it would core dump since buff[] is uninitialized. | |
Re: Both of the above replies are basically correct. 1. Provide your code. 2. If you are trying to use the comparison operator (==) on a non-trivial class, you need to write an '==' operator to deal with it. | |
Re: Asking "What's the best programming language?" is much like asking "What's the best airplane?" - it entirely depends upon what you want to do with it. For system-level programming, C and C++ are the languages of choice. For system-management and scripting, bash, Perl, and Python rule. For complex application development, … | |
Re: Sorry, but your question isn't too clear. However, to try and answer the implied question from the subject: how to shut down a unix/linux computer from the command line. First, you either have to be logged in as root (not advisable), or have sudo privileges for system shutdown. IE: # … | |
Re: What cereal said. Also, if you are running a GUI desktop, then the file system browser will also work for you. | |
Re: IE, what sepp2k said. IE: #include <stdio.h> #include<string.h> struct student { int* ptr[23]; char* name[12];//store address of character string }s1; int main(void) { int roll=20; s1.ptr[0]=&roll;//ERROR s1.name[0]="zahid ali";//ERROR printf("roll no of student :%d\n",s1.ptr[0]); printf("name of student:%s\n",s1.name[0]); getch(); return 0; } | |
Re: nitin1 makes some good suggestions. I'd only add that we don't do your homework for you! First, try to solve the problem, and then show us your code. We will happily point out your errors, if we can... | |
Re: The *content* of software engineering are requirements, models, code, test plans, documentation, and a lot more. The end-game *output* is software. | |
Re: Please clarify. This description is not helpful, to me at least. Are you trying to understand enums (enumerated data types)? What exactly are you trying to accomplish? | |
Re: :-) LOL! Correct! ... You need to use the -L option with find to follow symbolic links. From the "find" man page: -L Follow symbolic links. When find examines or prints information about files, the information used shall be taken from the properties of the file to which the link … | |
Re: Without your code, we can't help you much... :-( | |
Re: What sepp2k said, with an addendum: if you have a name + score, and you want it sorted by name, then use the std::map template class. Assuming name is a string, and score is an integer, you would do this: std::map<string,int> scores; for (size_t i = 0; i < maxscores; … | |
Re: Has this tape drive + tape worked before? Did you rewind the tape after erasing it? | |
Re: Use std::cout instead, unless you added the line `using namespace std;` at the top of your code (after the #includes). | |
Re: /etc/hosts is not used to override DNS settings. That would be /etc/resolv.conf, which in many systems is reset from network settings on reboot. It is better to use the network manager tool to reset your DNS server entries. That way, when you reboot, the DNS servers you prefer are made … | |
Re: I don't know about windows cmd.exe doing this, but the bash scripting language does it just fine: pass `brute_force` >output.txt The back-quotes execute the brute_force command inside them, and then insert the output at that location in the argument list to the pass command. You can get a bash shell … | |
Re: The C++ STL (Standard Template Library) has a lot of collection types which will work well for this including vectors (resizable arrays), maps, hashmaps, etc. Go to http://www.cplusplus.com/reference/ for the entire reference manual. | |
Re: This is where you would use the std::set template class. It will automatically order your data for you. You can specify an optional comparison function to the template if you want something other than natural order, such as reverse ordering. Here is some documentation for the class: http://www.cplusplus.com/reference/set/set/ | |
Re: What does top, sar, iostat, netstat etc tell you? Just describing the problem as you did isn't particularly helpful. Many things can cause this sort of issue. You do have sysstat (sar) running don't you? :-) Also, do you have Glance installed on this system? That will tell you a … | |
Re: No matter the programming language, the process to solve this problem will be the same. Start by writing out the steps you must take, and data structurs you need, to implement the solution. As others have said, we don't do your homework for you... | |
Re: Specific error messages would be helpful... | |
| |
Re: As far as I know, these is no "standard" way to do that. What precisely are you trying to do, other than count the number of object that have been instantiated? | |
Re: This is a variant of the "Traveling Salesman Problem". There are well-known algorithms and programs that deal with it. The problem is not perfectly solvable without searching ALL possible routes, but good solutions are possible with reasonable use of computer time. Here is a link to the wikipedia article about … | |
Re: I think you wanted this: 's/\(wireless\.1\.ssid=\).*/\${SSID}' to be this: 's/\(wireless\.1\.ssid=\).*/\${SSID}/g' | |
Re: Run this is your debugger so when it segfaults you can tell where it was when it happened. Then you can tell more easily why it dumped core. Also, asking us to analyze almost 300 lines of code is really unfair - we donate our time. It is valuable. Don't … | |
Re: One way is instant messaging. Install Pidgin. Open source and works well: http://www.pidgin.im/ | |
Re: Read this, and then ask again: http://en.wikipedia.org/wiki/Locality_of_reference With regard to cache, there are complex algorithms that determine if it is more efficient to use local vs. remote cache, often depending upon the frequency of access. The more frequent, the better it is to have the cache local to the system … | |
Re: There is a huge body of work in the AI field. Do some Google searches on Artificial Intelligence, Fuzzy Logic, Neuro-computing, and Genetic Algorithms. I have a couple of linear feet of such tomes on my book shelf. The fuzzy logic and genetic algorithm books have been the most useful … | |
Re: The stdout stream is buffered. It doesn't get written to output until either some time has passed, or the buffer is full. To ensure that output to stdout is printed immediately, then you need to call the fflush(stdout) function after the fprintf(stdout,...), or printf() function. | |
Re: My opinion? Install CentOS 6 (a clone of Red Hat Enterprise Linux, but without license/support fees). RAID? Optional, but more reliable than LVM. I'd recommend a 4 disc RAID 5 array with hot-swap capabilities. That way, when one disc goes south for the winter (a technical term for failure), it … | |
Re: If you want to protect such stuff, use an encrypted zip folder. NEVER rely upon proprietary software like this - caveat user! | |
Re: Look at the scoping of your statements. Each process will output info about the parent process, including the root process, hence the 3 messages about parent process pids. This is where properly indenting your blocks of code can be helpful. IE: #include <stdio.h> int main(void) { int child1,child2; int i; … | |
Re: Please post the compiler errors, especially with regard to line numbers where the errors are detected. | |
Re: So, what is your problem? Just posting code isn't usually helpful. In any case, the problem is passing `*c` to qsort instead of just `c`. The other problem is in your final print loop, you are passing `*c[i]` to the printf statement instead of `c[i]`. |
The End.