rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please don't tell me to do a fresh installation again ,,,,I have just finished this one and I have not installed all programs yet

Ok. I won't tell you to do that!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Anyway, I have no clue as to the answer for your original question. Sorry. That (previous post) was my sarcastic clone answering... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Should be, yes. Have you tried a clean reinstall of Win7 yet? As we say in the computer business, it it doesn't work the first time, try the same time again! :-)

Of course, that is the definition of insanity, trying the same thing again, and again, expecting a different result! :-) Ok - we are all nuts!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The little icon LED is on ,,,,that means it is on,,,,Isn't ?

Should be, yes. Have you tried a clean reinstall of Win7 yet? As we say in the computer business, it it doesn't work the first time, try the same time again! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most current systems have a switch to turn on/off the wireless stuff. Are you sure yours is on?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I am assuming that your are running Windows (Xp, Vista, or Win7) and not Linux, correct?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I am a senior systems engineer for a tier-one mobile phone company. I do systems and performance engineering to support 100M+ customers world-wide. What do I look for in new hires for my team? Math skills, networking knowledge, network management protocols, Linux system programming, ability to think "outside of the box". C++ and Java are nice, but basic problem-solving skills are more important, IMHO. FWIW, a senior engineer at our company will earn today well over $100K per year, plus a performance bonus of up to 30% of their base pay.

And if you want to know why the math skills? Well, for a performance engineer, the ability to apply math to failure prediction can pay off in a major way. That is what I am working on right now, so we can analyze performance and system load trends in real time in order to determine when we will "hit the wall", and then provide the means to alleviate the incipient system failure. This means that I need people with the ability to apply differential calculus to real-time data. I had to do that at a previous position writing real-time risk analysis software for the options trading industry (stock market derivatives). That position required 3rd order differential equations to compute the "greeks" - risk factors in options/derivatives. Guess what? This is exactly what is needed in our systems for performance/failure predictive analytics.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Basically clueless, aren't we?

Is there a computer programming language involved, or do you only need to model/describe the system in object-oriented terms (such as using UML)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, a BNF (Backus-Naur Form) listing of the syntax would be helpful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do either of them work? If not, have you tried the Microsoft web site for appropriate drivers?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to add some methods to the class P in order to traverse the list. IE, try creating some functions such as P::Node* first(), P::Node* last(), P::Node* next(P::Node* current). However, to do that, you need to make the Node structure public, or external to the class P.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Knoppix is a perfectly fine distribution. If you need help with your Linux wireless cruft, go visit www.linuxwireless.org - that is where I go when I have to deal with this cruft.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Argh! VAX questions! I haven't had to deal with any of this cruft for over 20 years! If you want, I might still have my system documentation in some boxes hidden in my basement, somewhere... :rolleyes: I think I also have my IBM VM 370 manuals in the same place...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I was in a similar situation some years ago when Verizon in Boston offered me their FIOS (Fiber to the Home) service. Fortunately, they offered a 3 month trial, so I kept my cable service until I was sure that the FIOS service was solid. It was - more so than the DSL service, so after a month I cancelled the cable service. For the 2 years I had it, until I moved from Boston to Chicago, I had zero downtime on the service - though that isn't to say you will have the same experience... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In my experience, your basic configuration at process is solid. However, you need to make sure that your web applications are not susceptible to SQL injection attacks. That is likely your most vulnerable point of system compromise.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If from normal room temperature, then it is likely that there is a problem with some component where when "cold" there is a broken contact, but upon some increase in temperature, the expansion of material will make the contact again, resulting in a functioning system. Analysis? There is a physical problem with the system, and finding it may be next to impossible. My advice? Do what you are now, until it stops working altogether.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Thanks for that. But in the event of poor themal contact with cpu, wouldn't the reverse situation apply ie wouldn't there tend to be more problems as the PC warmed up, rather than from cold?

Probably. Is this from a thermally cold situation? Or is this also from normal room temperature?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, to recap, your PC accesses the internet ok, but your PS3 does not? Is your PS3 configured to use 192.168.1.1 as the gatewey? What is it configured to use for the DNS server? Can you change that?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My personal laptops have been Dell (D600 and now D630 Latitudes) for almost 10 years. I've had problems with all the laptops I've had, including the IBM Thinkpads I had for work, but the question is how well the vendor/manufacturer backs up their warranty, in my opinion. In that regard, I have had nothing but good experience with Dell. They have always dealt with issues quickly and effectively, including overheating motherboards, hard drive failures, etc. The only time I had to complain was the second time the 9-cell battery on my current laptop expired, less than a year after they sent me a replacement for the first, which also expired less than a year after I got the system. It seems that for the batteries alone, if you read the fine print on the 3 year system warranty, the warranty is only for one year, and they consider that from the time you get the system, not from the time you get the replacement battery... Best guess? They had a lot of battery problems. In any case, I complained that a subsequent battery failure after such a short period of time is outside of standard warranty terms due to a design or manufacturing flaw in the unit. After getting online with a support supervisor, they agreed, and replaced the second battery with a new one at no charge. That was about 2 years ago, so maybe they got their battery maker to fix the flaw? In any case, that is …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

From what I read, it is. Since you NEVER know what kind of machine (without jumping through some non-standard hoops) you are getting data from, you have to assume that the data is in network form (and I cannot for the life of me remember if that is big or little endian!), and so convert it accordingly. If your system is the same as the network form, then the macros basically do nothing, and the performance hit is negligible. Anyway, this is standard procedure for dealing with binary numerical data from network sources.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If your system can boot from USB, then you can use either a floppy or a thumb drive for installing BIOS and flash updates these days. I usually use a USB thumb drive for that purpose.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Wrong. Red hat isnt just for servers, it makes a very stable Workstation OS, and good development environment.

Indeed. I use SL (an RHEL clone) on my home workstation, personal laptop, and a lot of people use RHEL on their PCs where I work. We even have a customized version of RHEL that installs all of our security stuff and custom applications, so you can use them in place of Windows workstations. I'm thinking of doing that myself, but my new laptop/workstation has Windows 7 Enterprise on it and I want to get more familiar with that. Once I do so, I will switch back to Linux since I REALLY like it better! Right now at work I have it (RHEL 6.1) installed in a virtual machine, since I have to do Linux system development anyway.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, you don't mention what video hardware each has. That can be a real game-changer. Bear in mind that integrated Intel GPU's share memory with the system, so that is no longer available to you for operating system or program use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show how you think it should be implemented and we will be happy to critique your code. Just don't ask us to do your homework for you... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, the first error is this, the declaration of BST::InsertRecursive: BSTNode * BST::InsertRecursive(std::string * str, BSTNode * n) in that you are calling it with a const string& (reference), yet the function is defined to tak a non-const string pointer... No go. Realize that C++ is VERY strict in type usage. Also, I don't know if the root argument passed for the second argument, defined as a BSTNode* is a pointer or something else.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

G6 - smaller screen and less disc space. However, you don't mention what the screen resolution is on either system, nor do you mention the weight. Besides the screen, disc, and weight, these are pretty comparable systems. So, you need to decide what is more important to you. FWIW, my personal laptop is a 15" Dell (4 years old) w/ hi-res display, 4GB RAM, bluetooth, wifi (a/b/g) and 250GB disc. My company-provided laptop is a Lenovo (new) w/ 17" higher-res display, 8GB RAM, processor of same speed and cores as my Dell, bluetooth, WiFi (a/b/g/n), and 250GB disc. My Dell is lighter, and other than the display is equivalent to the company Lenovo. If I am travelling, the weight of the Dell may be the winner. If I need the highest performance/memory and display resolution/size, then the Lenovo is the winner. In the final analysis, you have to decide what is most important to you. In your case, I suspect you will be happy with either. If all other things are equal, go with the lighter system to haul around. If you are going to use it as a desktop replacement, then in either case get a docking bay and external monitor (24"), usb keyboard and mouse. Then you get the best of both worlds!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, I do have floppy discs, still, and have systems that can read them, but I haven't used ANY floppy disc in about 10 years, and I am a computer systems engineer... My feeling is that if you need a floppy, see if you can find one that has a USB port. Here are some from Tiger Direct: http://www.tigerdirect.com/applications/category/category_slc.asp?CatId=287&name=Floppy%20Disk%20Drives

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Data sent over networks can have this problem, which is why there are macro functions in C that will switch one form to a neutral form (network form), and another which will take a network form number and convert it to local. This needs to be done because you might be receiving a number (16, 32, or 64 bit) from one endian, like a Sparc processor (Sun/Oracle) system, on another, like an x86 processor system, and vice versa. Some processors can be configured as either, such as MIPS or ARM processors. So, the rule is, if you get what is supposed to be a number from a network message, use the appropriate macros to convert it, and if you are sending a number over the network to another system, use the appropriate macro to convert it... :-) Anyway, this Wikipedia article gets into that in some detail, and describes the macros that I briefly described (ntohl-htonl, et al): http://en.wikipedia.org/wiki/Big-endian

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What is the output of the "route" command, when both NIC's are connected and running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Anyway, I see there is a disk temperature selection on the window. What does that show while it is loading data?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

1. A large transfer like this really stresses a drive.
2. New drives, if they are going to have problems, will exhibit them early in their life cycle, statistically speaking.
3. You probably did not monitor the drive's temperature. My experience is that overheating is the root cause of most failures of this sort. I regularly monitor my drives' temperature, and unmount them and shut them down when necessary. Some drive types are more susceptible to overheating than others. I have found Seagate 1TB and bigger drives are REALLY problematic in this regard. I have had much better experience with WD drives in the 1+ TB size range. My 2TB WD drives run about 40 degrees cooler than the same size Seagate drives, PLUS they have more spare sectors! 500GB drives don't seem to be as susceptible to overheating and bad sectors / seek/read/write errors.


So, send it back for warranty replacement to the manufacturer, or the vendor if they will accept it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You get errors when you disconnect your cable from an active NIC. What is not to understand? Why the specific error messages are occurring, or that you are getting errors at all?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What other subnets do you have?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As some wag once observed, "There are lies, damned lies, and then there are statistics!". One could make the case that most people think breathing is bad for your health, assuming you leave off (or minimize) the fact that the study was what people think about breathing truck exhaust fumes...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

WEP is not secure. You need to use WPA at least. If you want to mask all of your traffic, then subscribe to a VPN service. Then all traffic from your system to the VPN servers and back will be strongly encrypted.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can start an ISP service small - a late friend of mine did that in his little town in central Massachusetts, where there was no DSL or cable internet - only dial-up. I think he started with a T1 or fractional T3, and worked out something with the local phone company or cable provider to provide DSL or cable modem services to their customers. His customers included the local schools, library, and the general public.

So, you need the means for people to connect to you, enough bandwidth to handle them (maximum bandwidth / customer != actual bandwidth experienced - make that clear in the user agreements), a DNS and dhcp server, a block of routable IP addresses that can be assigned via the dhcp server. It may be possible to use NAT so that the IP addresses are not routable from the internet, but then if they have their own internal network they would be going through two or more NATs to get on the Internet.

As for an email server, let them use services such as gmail. No one uses their ISP mail any more, or they don't if they are smart. Web browsing server? Why? Are you going to provide hosting services? Finally, you will need a good router/switch. Unless you are hosting servers for your customers, you probably only need 2 router/switches - the primary and a backup.

For power, definitely a heavy-duty UPS is appropriate, and a backup generator (gas powered) …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, I use just one program that requires a license key (an enterprise software design/modeling/simulation tool), but under the license terms I can install it on all of my computers, assuming that I am the only user of it. If others want to try it out, that is OK since without the key they have a 30 day full/free evaluation. Given this is a $200 USD program that compares favorably with similar products from IBM that cost $5000-$10000 USD per seat, I really don't have a problem with that. They have given me an overwhelming reason to buy - great software at a very affordable price!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My opinion, and that of a lot of others, is forget the pain of DRM. Consider "piracy" as free advertising, make it easy to get your game, and easy to purchase legally. Friends share, and usually buy once they figure out that they like the game. It helps if legitimate purchasers get some sort of added benefit that enhances their gaming experience. I've been in this business for 30+ years, and I will NEVER purchase a program with some sort of DRM that makes it impossible for me to move it to a new system, let others try it out, etc. That's why I don't use Adobe Photoshop and such any longer. I stick with the open source tools that provide similar capabilities, such as GIMP.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Overheating is often the cause of this sort of symptom. What happens if you leave it off for awhile and try to restore the system? Can it boot into safe mode?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And there is always the possibility that both of you have hardware problems...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, the software I have been writing for over 20 years has had to be better than 6-sigma in reliability, especially since an hour of downtime for our customers costs them in excess of $10M USD. We program for failure, and anticipate failure modes. We extensively use tools like Purify, Quantify, Pure Coverage, and other such in conjunction with extensive unit and system testing, so that when software is delivered, we have some reasonable expectation that it will work as designed.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes. Because, since you are discussing best practices, when you test the return code from scanf() you will find all values were not entered and handle the improper input. You do advocate always testing the return values from all functions, don't you? :icon_wink:

Absofragginglutely!

WaltP commented: :-D +17
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Unnecessary. Only values that are not read in or set in the code need to be initialized. In your example

int mm = 0, dd = 0, yyyy = 0, mm2 = 0, dd2 = 0, yyyy2 = 0;
   
   printf("Enter first date (mm/dd/yyyy): "); 
   scanf("%d /%d /%d", &mm, &dd, &yyyy);

initializing mm,dd,yyyy are completely unnecessary and a waste of time.

One last comment about yours: what happens when the user hits the RETURN key or Ctrl-D after just inputting the month and day? Is the year still sane?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Unnecessary. Only values that are not read in or set in the code need to be initialized. In your example

int mm = 0, dd = 0, yyyy = 0, mm2 = 0, dd2 = 0, yyyy2 = 0;
   
   printf("Enter first date (mm/dd/yyyy): "); 
   scanf("%d /%d /%d", &mm, &dd, &yyyy);

initializing mm,dd,yyyy are completely unnecessary and a waste of time.

Speaking from experience, your comment is correct on the face of it, but all software changes over time, and this has been the root cause of MANY major system failures over the years! My personal process says "never create a variable that is not initialized". I have written quite literally millions of lines of code over the past 30+ years that runs some of the biggest manufacturing corporations, US Navy refit centers, stealth fighter avionics manufacturing plants, 80% of the semiconductor manufacturing plants in the world, and this RULE has helped provide the highest quality software in 365x24 environments anywhere. FWIW, I am currently Senior Systems Engineer for the largest cell phone manufacturer in the world...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. Some comments first (remembering the KISS principal):

1. Initialize ALL variables to sane values (if only 0 or NULL) when you declare them.
2. Be orthogonal in your branches. IE, keep things that are related to yyyy/yyyy2 in the yyyy/yyyy2 branches, the things that are related to mm/mm2 in theirs, and the things related to dd/dd2 in theirs. I'll show what I mean below.
3. Validate ALL input. IE, make sure that the input for month, day, and year are sane, in that the month MUST be >= 1 and <= 12, and use an array for the number of days in a month to validate that. The only glitch here is dealing with leap years, which you do not deal with. As for years, have a valid range of them, and DO check for leap years. There are good algorithms for computing them - including in Wikipedia, so I won't elaborate here. Consider it a study assignment! :-)

Ok, here is what I think would be better:

/*
  Program assignment name: 2_Dates

  Author:Christopher D*****
*/

#include <stdio.h>

int main (void)
{ 
   int mm = 0, dd = 0, yyyy = 0, mm2 = 0, dd2 = 0, yyyy2 = 0;
   
   printf("Enter first date (mm/dd/yyyy): "); 
   scanf("%d /%d /%d", &mm, &dd, &yyyy); 

/* Validate mm, dd, yyyy here. */

   printf("Enter second date (mm/dd/yyyy): "); 
   scanf("%d /%d /%d", &mm2, &dd2, &yyyy2); 

/* Validate mm2, dd2, yyyy2 here. */

   if (yyyy < yyyy2)
   {
      printf("%2d/%2d/%4d is …
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The rule of thumb is... EVERYONE over complicates their C code! Applying the KISS principal to code, especially C and C++ code is critical in building reliable and understandable programs/systems. Anyway, I will look at your code and comment again in another message.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are right! Doh! My bad. I think my mathematical brain cells took the day off, and I need to get them awake for programming some differential equations in the next few weeks! Likewise, 0/2 is ok as well. Gah! Sorry for the confusion. It must be mathematical dyslexia at work!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Line 14: int n;cin>>n;int x=n/2,y=n%2,d,e,f,sum=0; If 'n' evaluates to 0, then n/2 == 0, ditto n%2. BOOM! FPE...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can change your power settings so that it doesn't sleep when closing the lid. I usually set it that way for when it is plugged into wall power, but you can do it for when it is on battery as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think you didn't see this question of mine

If we update the kernel(therefore tcp/ip protocol st),will it be harder to hack the latest version than an older version of tcp/ip model?

Yeah. I clicked on the quote, and it closed right away and took me to where it thought it should in my long post that answered your 9 questions (I thought). The tcp/ip kernel drivers are only updated when there are issues to fix. They aren't updated every time the kernel is. However, when security fixes are made to the drivers, then the answer would be yes, for the exploits that were identified and fixed. In any case, there is no general answer for this question, other than "maybe" and "it depends".