5,331 Posted Topics

Member Avatar for khloud.alharazi
Re: c++

What ddanbe said. To expand. We don't do your homework for you. Show your work, and if appropriate we will help you to sort out your errors.

Member Avatar for rubberman
0
71
Member Avatar for newbieJava85

A class method is a single interaction point with an instance of the class. It should do only one thing, and do it well. There are methods to access state data, and methods to change/set them. The setter methods should be written to properly validate the changes the caller is …

Member Avatar for rubberman
0
208
Member Avatar for CodyOebel

I think that both Google Maps and Nokia's Here have API's that can do that for you (probable web services APIs). You need to do some research on their sites for this. When you pull up Google Maps or Here on your computer or phone, and input an address, it …

Member Avatar for rubberman
0
239
Member Avatar for muhammad_74

Is this a 32-bit only CPU, or does it have 64-bit capabilities? My Dell D630 is a Core 2 duo with 64-bit capabilities. I run a clone of Red Hat Enterprise Linux (Scientific Linux) on it very nicely. Getting the WiFi working took a little work, but it functions nicely …

Member Avatar for muhammad_74
0
369
Member Avatar for manchurianCEO
Member Avatar for HACKER420

This is not enough information to help you. Does this happen for all web sites, or only one or a few? What error do you get? A connection reset means that the site or network has reset/dropped the connection. A timeout error means that the site did not respond in …

Member Avatar for rubberman
0
33
Member Avatar for RikTelner

You should be able to right-click on the panel, and select the "add to panel" option to do what you want.

Member Avatar for sDJh
0
214
Member Avatar for The Old Man

Assembly is direct-to-processor coding and totally not portable. It is only used these days to write processor-specific code for operating system low-level programming. My last assembler coding was about 25 years ago for x86 TCP/IP device driver code. Even since then most of my device driver code for systems such …

Member Avatar for sDJh
0
190
Member Avatar for Luisa_1

It is not nice to post code with some problem, and then not indicate what/where the problem is. What IS your problem? P.S. NathanOliver was being polite...

Member Avatar for StuXYZ
0
2K
Member Avatar for exoruel

You are almost there. Do the code and show us how you might do it. Basically you are adding the values of arr[0][N] and arr[1][N] where N is 0...4.

Member Avatar for dbfud1988
0
304
Member Avatar for RikTelner

This is a situation where "I told you so" is correct, but not particularly helpful... IE, NEVER install new OS versions directly on your system. This is what virtual machines are for! If they mess up (they will, inevitably), then you can just remove the VM and files, and start …

Member Avatar for RobertHDD
0
336
Member Avatar for RAUF_2

When I had to sort a linked list in the past, I would put the nodes into an array and use qsort(), then take the sorted output and regenerate the list. Worked great, and was reasonably fast, even on old 8086 PC's with 256-640K of RAM. Of course, that limited …

Member Avatar for Duoas
0
209
Member Avatar for Jack_11

If you are working as an independent consultant doing this, and you are in the USA, then if you are experienced and good at this, you can command around $200USD per hour for short-term assignments, and $100+ for long term ones. Remember, you have to pay your FICA (social security), …

Member Avatar for glenn_3
0
151
Member Avatar for Tawhid_1

These days, "upgrades" are not so much an option, and will cost more than replacing the system with a current model - planned obsolescence is the term I believe. Replacement will probably be cheaper, and better...

Member Avatar for normanw40
0
213
Member Avatar for manchurianCEO

I know that current outlook versions do sync with office 365 online, but I don't know about 2003. Check with MS for a plugin that may do that.

Member Avatar for caperjack
0
141
Member Avatar for lewashby

TCP is connection oriented, suitable for sending complete files. UDP is packet oriented, suitable for sending short messages. TCP will verify that all the data got to the destination, and in the proper order. UDP makes no guarantees. You will have to bake your own error recovery and retry logic. …

Member Avatar for Traevel
0
598
Member Avatar for jeffersonalomia

What port is the server using? You need to know that. The server should be listening on that port for connection requests, so your client would use a TCP/IP connect call to the server computer with that port.

Member Avatar for jeffersonalomia
0
109
Member Avatar for ggeoff

JorgeM is correct. In our home, I have two wifi access points w/ switches. The router/internet connection and access point is in my office in the basement. The other switch/access-point is in my wife's office on the first floor. They are connected via a power-line connector, which is just an …

Member Avatar for ggeoff
0
211
Member Avatar for muhammad_74

What version of Xubuntu and Firefox are you running? Also, what window manager? Finally, is your mount a wireless or wired device? If wireless, is it radio, or infrared. If wired, is it USB or PS/2?

Member Avatar for muhammad_74
0
204
Member Avatar for Cripop

Not asking for much, are you? You want us to analyze 430+ lines of code. Reduce it to the sections that you are having problems with. FWIW, I charge my clients $200USD per hour to analyze their code, and this will take at least a couple of hours to do …

Member Avatar for JamesCherrill
0
237
Member Avatar for iamcreasy

Generally, the Expression is a comparison of two operands, such as i >= 0. This is a boolean expression which will return true if i is greater than or equal to zero, and false if less than zero. This is basic stuff. I would suggest you do some study of …

Member Avatar for JamesCherrill
0
179
Member Avatar for omarabed

There are a gazillion computer programming languages, some of which are main-stream and some of which are niche languages, and others are just plain old languages (Fortran, APL, PL/M, etc). I have professionally used dozens. These days, my main programming languages are shell scripts (bash, python, perl), web languages (PHP, …

Member Avatar for omarabed
0
175
Member Avatar for RobertHDD

Just because it makes noises and the fans run doesn't mean the mobo is fine, or anything else. Do you hear any beeps when it starts up? Does it use an internal video adapter built into the mobo, or do you have an external video adapter, or both? How is …

Member Avatar for rubberman
0
241
Member Avatar for Elias_5
Member Avatar for Luisa_1

All compilers have function libraries, but in truth they are not "standard". IE, what you have in Windows is not what you have in Linux, Unix, OSX (BSD Unix), etc. There are a lot of good internet resources for the classes, functions, templates, etc that standard C++ supports, and any …

Member Avatar for rubberman
0
179
Member Avatar for vivekH

Go to this site, and study it closely. It has the best RNG tutorials available: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html From the site (I've posted this here before, at least twice): Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin. -- John von Neumann (1951) Anyone …

Member Avatar for rubberman
-1
234
Member Avatar for ustadarbab.hussainisher

Is the Skype app installed? Skype works over WiFi or wired networks. Are you in range of a WiFi access point? Are you connected?

Member Avatar for Kelly Burby
0
117
Member Avatar for Henry Mark

Solved? Can you extract the prime factors for any random number? The prime factors for 12 are not what are shown, but are 1, 2, and 3, and the prime factors are what count.

Member Avatar for rubberman
0
110
Member Avatar for Rimas_1

Have you tried using qsort(). It was made for this, unless your professor wants you to implement your own sorting routine.

Member Avatar for sneekula
0
213
Member Avatar for amin234

What have you done so far? We don't do your homework for you. Please read the terms of service (TOS) for this site for details.

Member Avatar for rubberman
0
59
Member Avatar for Fahad_5
Member Avatar for stultuske
0
121
Member Avatar for Banana_1

Sorry, but we don't do your homework for you. Make an effort. Post the code here. And if it is an honest effort, we will help you.

Member Avatar for rubberman
-2
50
Member Avatar for lewashby

By default, deleting files on Linux systems will put the file/directory into the trash folder (works that way on Windows also). If you empty the trash folder, the files in that directory will be physically deleted. The reason for putting them there is that if you realize you didn't want …

Member Avatar for rubberman
0
346
Member Avatar for tatra
Member Avatar for nitin1

They are totally different animals! Thread-safe means that multiple threads in one executable image can run the same functions without interfering with each other. Re-entrant means that you can have a function that can be recursively entered even before the previous invocation has finished. This is common for recursive algorithms …

Member Avatar for mike_2000_17
0
2K
Member Avatar for fawadali
Member Avatar for rose_2

Exactly! Pass by value means the receiving function gets only a copy so changes to it are local only. Pass by reference means that the actual passed object is received by the function, so changes to it are visible outside of the function. It is much like passing a pointer …

Member Avatar for rose_2
0
256
Member Avatar for Ali_46

This is why we use surge suppressors! Chances are that many components on the motherboard and/or video card were fried with that surge. My system and peripherals are plugged into a UPS that is also a serious surge supressor (industrial strength). Brownouts can cause almost as much damage as a …

Member Avatar for RobertHDD
0
363
Member Avatar for iqra_2
Member Avatar for rubberman
-1
143
Member Avatar for Ahmed_57
Member Avatar for tnd2491

I have done massive amounts of log file processing in real time (millions of records per hour). Please be more clear on your objectives. What EXACTLY do you mean by "display 1000 logs coming from the server into 20 rows continuously"? You are processing 1000 log files/streams? You want to …

Member Avatar for Duoas
0
217
Member Avatar for nitin1
Member Avatar for nitin1
0
156
Member Avatar for mrhunt

The major problem that one must watch out for when using multiple inheritance is if more than one of the base classes are derived and one of their base classes is the same. Unless you use virtual inheritance, then you get two instances of that base-base class in each instance …

Member Avatar for Maritimo
0
165
Member Avatar for Esmerelda
Member Avatar for Transcendent

I have had a 30+ year career in software engineering, and I have programmed in at least 2 or 3 dozen different computer languages. Logic is logic, and that is the key. Differences between languages are mostly syntax. Once you have mastered one, others will not be much of a …

Member Avatar for rubberman
0
160
Member Avatar for desmy

In the future, if you want to run Debian on a Window system then download and install VirtualBox. You can then install Debian or other Linux distributions in a virtual machine, avoiding the problems you incurred, and the wrath of your IT department. That's what I did at my last …

Member Avatar for rubberman
-2
409
Member Avatar for nitin1

Scalar expressions such as the first is more efficient as every time you do some math (especially division) in your code, it adds overhead. The only advantage here is if you can reduce your search space. In the second expression, instead of n/2, use n>>1, which is the same as …

Member Avatar for Duoas
0
211
Member Avatar for muhammad_74

What distributions are you trying to install? These make no sense to me! I believe you have a bogus distribution. Have you tried Debian, Red Hat, Ubuntu, Mint, et al?

Member Avatar for muhammad_74
0
1K
Member Avatar for xeb

A lot of laptops these days do not have a vga port, but either a DVI or HDMI port, though the principal remains the same. Unfortunately, not everyone in these situations has an external monitor that will mate with the laptop. That said, all-in-all the advice in the article is …

Member Avatar for rubberman
0
52
Member Avatar for arnab_1

What browser are you using? What operating system + version? Do you have personal firewall software running on the system?

Member Avatar for RobertHDD
0
181

The End.