5,331 Posted Topics

Member Avatar for saadi06
Member Avatar for sirlink99

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 …

Member Avatar for rubberman
0
492
Member Avatar for timmyjoshua

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?

Member Avatar for CimmerianX
0
166
Member Avatar for cuivenion

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 …

Member Avatar for cuivenion
0
717
Member Avatar for MasterHacker110

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 …

Member Avatar for Schol-R-LEA
0
204
Member Avatar for drlewis506

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 …

Member Avatar for rubberman
0
200
Member Avatar for lolboy123

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 …

Member Avatar for rubberman
0
2K
Member Avatar for Franze

I don't know, but there should be profilers like valgrind or Quantify (IBM) for .NET applications. Have you tried any of those?

Member Avatar for Franze
0
113
Member Avatar for Pradipnikam

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 …

Member Avatar for JamesCherrill
-3
109
Member Avatar for Sam R.

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 …

Member Avatar for MasterHacker110
0
5K
Member Avatar for Gerryne

Run it in the debugger, or add some debug output statements, so you know where it is generating the exception.

Member Avatar for stultuske
0
434
Member Avatar for Abo0od

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 = …

Member Avatar for Moschops
0
266
Member Avatar for Seth Lam

Do you have code to post? A description of the algorithm? What you are saying is not enough to help you.

Member Avatar for Adak
0
1K
Member Avatar for Rahul47

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]);

Member Avatar for somjit{}
0
370
Member Avatar for themenucha

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.

Member Avatar for RickRoss$$
0
252
Member Avatar for daniel1977

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.

Member Avatar for daniel1977
0
361
Member Avatar for CCHIndiaStore

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, …

Member Avatar for mike_2000_17
-3
370
Member Avatar for darkofpain

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: # …

Member Avatar for darkofpain
0
262
Member Avatar for rahulrevolution

What cereal said. Also, if you are running a GUI desktop, then the file system browser will also work for you.

Member Avatar for rch1231
0
154
Member Avatar for hassje

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; }

Member Avatar for rustysynate
0
163
Member Avatar for ovalaukido

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...

Member Avatar for Ancient Dragon
0
157
Member Avatar for Michael Owuor

The *content* of software engineering are requirements, models, code, test plans, documentation, and a lot more. The end-game *output* is software.

Member Avatar for mrgreen
-1
105
Member Avatar for Mr.Sagr

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?

Member Avatar for Ancient Dragon
0
136
Member Avatar for rectifryer

:-) 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 …

Member Avatar for rectifryer
0
166
Member Avatar for punit.agarwal11
Member Avatar for every1play

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; …

Member Avatar for rubberman
0
316
Member Avatar for rajasekar_1
Member Avatar for rubberman
0
195
Member Avatar for nikzer

Use std::cout instead, unless you added the line `using namespace std;` at the top of your code (after the #includes).

Member Avatar for NathanOliver
0
219
Member Avatar for tlangelani
Member Avatar for JohnCharles

/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 …

Member Avatar for JohnCharles
0
309
Member Avatar for np complete

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 …

Member Avatar for np complete
0
225
Member Avatar for torrm

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.

Member Avatar for rubberman
0
160
Member Avatar for Mantroskylo

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/

Member Avatar for rubberman
0
291
Member Avatar for SagarSe7en

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 …

Member Avatar for rubberman
0
157
Member Avatar for Rina Richie

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...

Member Avatar for rubberman
0
238
Member Avatar for somjit{}
Member Avatar for adipra90
Member Avatar for laavanya

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?

Member Avatar for laavanya
0
2K
Member Avatar for Katie_1

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 …

Member Avatar for jwenting
0
297
Member Avatar for lewashby

I think you wanted this: 's/\(wireless\.1\.ssid=\).*/\${SSID}' to be this: 's/\(wireless\.1\.ssid=\).*/\${SSID}/g'

Member Avatar for lewashby
0
321
Member Avatar for anuran

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 …

Member Avatar for anuran
0
474
Member Avatar for reshamt

One way is instant messaging. Install Pidgin. Open source and works well: http://www.pidgin.im/

Member Avatar for rubberman
0
121
Member Avatar for nitin1

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 …

Member Avatar for nitin1
-2
158
Member Avatar for Joshua_2

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 …

Member Avatar for tasara
0
209
Member Avatar for somjit{}

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.

Member Avatar for rubberman
0
2K
Member Avatar for shane.shaffer.50

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 …

Member Avatar for chizy2
0
142
Member Avatar for karabomoeng

If you want to protect such stuff, use an encrypted zip folder. NEVER rely upon proprietary software like this - caveat user!

Member Avatar for Reverend Jim
0
147
Member Avatar for Qwert_1

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; …

Member Avatar for rubberman
0
1K
Member Avatar for jd217

Please post the compiler errors, especially with regard to line numbers where the errors are detected.

Member Avatar for jd217
0
1K
Member Avatar for Akhilesh_2

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]`.

Member Avatar for Akhilesh_2
0
119

The End.