rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Using personal data is never secure - note that the use of a pet name + number broke the encryption of the laptop for a major Lulzsec hacker. I use obscure data related to stuff only I could possibly know. Your idea about a python script to help you generate keys may not be a bad one, but NEVER use anything that can be related back to you! Those are easy for professionals to break. Myself, for my more secure passwords, I use as a base words in a long-dead language that only I would relate to, combined with numbers and non-alphanumeric characters. I can easily remember them, but the chances of them being hacked is seriously unlikely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. This is a simple compound interest problem.
  2. Programming this in C or C++ will be esentially the same (with some syntactical differences).
  3. We don't do your homework for you. Make a start, post your code here, and if you are making a real effort we may be able to help you with your errors and such.
  4. Start with pseudo-code to show the computations and processes (loops) needed to compute the results.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your question is not clear. What are you trying to do, to set execute permissions on a file? On a list of files? What?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

After the prompt, how are you inputting the data for the or-ords? Like this?

10 10<enter>
20 20<enter>

Try:

void Input()
{
    printf("Enter the co-ods\n");
    scanf("%f %f %f %f",&x0,&y0,&x1,&y1);
}

with this as input instead: 10 10 20 20<enter> and see if that works. Also, you may need to add a decimal since these are floating point numbers, as in: 10.0 10.0 20.0 20.0<enter>

Note that <enter> above represents pressing the Enter key.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What Schol-R-Lea says, plus having someone else do your homework for you is cheating and likely to make you fail the class or get thrown out of school.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'd up the power supply to 1000w instead of 800 for this size of gear. I presume it is a full-size tower?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

KVM sits right on top of the hardware, so it is much more efficient than VirtualBox or VMware, et al. However, it is not really intended for personal type of use and is not simple to configure properly or for ease of use. I have successfully used VirtualBox on all of my systems for about 7 or 8 years, and use that as well as VMware at work. They are much simpler to configure and use. In truth, KVM is more intended I think for server use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Even with an Intel GPU, you can still add an nVidia card if the mobo supports external video cards. If you are going to run Linux on a system with both Intel and nVidia GPUs, then you may need to disable the built-in Intel GPU in the BIOS.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are several approaches. One that bigger companies use is to lease connections from the branch offices that are part of the company global network. They will be different subnets, but routers keep it all together. Smaller organizations will use standard ISP connections and use VPNs to connect into a bigger network.

As for hackers, that depends upon the applications, servers, routers, and firewalls that you use and more importantly how they are configured. If you don't have good network and systems operations staff, then hire a firm that specializes in that sort of work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How to do that depends upon the make and model of the laptop. Many require shorting out the reset pins on the motherboard for the flash memory where the password is stored. To access the motherboard you need to remove the laptop cover and keyboard. Which pins to short out (with battery removed) is information you can get from the technical specs found usually on the manufacturer's web site.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. DeletePlayer() never does anything with the array returned by ProcessDelete().
  2. As Shark_1 said, since you are passing the array PlayerLastname by value to ProcessDelete(), you get a copy, not references to the actual array.
  3. What are array2 and array3 being used for in ProcessDelete()? They accomplish nothing.

You need to totally rethink your logic in this code. It cannot work as I think you wish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The const getters return a non-mutable reference to the internel properties. The non-const getters (protected) provide a mutable reference to the properties, allowing them to be changed directly. Normally you want to use public setter methods to change properties, which can be coded to test for invalid inputs and throw the appropriate exceptions when necessary.

As for copy constructors and assignment operators, each class has its own. The compiler will create them for you if necessary, but that is not recommended.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That is not too helpful. What exactly is your problem?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would recommend that you create a support class, call it Person, that encapsulates name, address, city, state, and zipcode. That will simplify the underlying code considerably. IE:

class Person
{
private:
    string name;
    string address;
    string city;
    string state;
    string zipCode;
public:
    Person() {}
    Person(const string& aName,
           const string& anAddress,
           const string& aCity,
           const string& aState,
           const string& aZipCode) : name(aName),
                                     address(anAddress),
                                     city(aCity),
                                     state(aState),
                                     zipCode(aZipCode) {}
    ~Person() {}

    // Getters
    const string& getName() const { return name; }
    const string& getAddress() const { return address; }
    const string& getCity() const { return city; }
    const string& getState() const { return state; }
    const string& getZipCode() const { return zipCode; }

    // Setters
    void setName( const string& aName );
    void setAddress( const string& anAddress );
    void setCity( const string& aCity );
    void setState( const string& aState );
    void setZipCode( const string& aZipCode );
};

class Package
{
private:
    Person sender;
    Person recipient;
public:
    Package();
    Package( const Person& aSender, const Person& aRecipient)
     : sender(aSender), recipient(aRecipient) {}
    virtual ~Package();

    virtual void CalculateCost(void) = 0;
    virtual void Display(void) = 0;

    //setters
    void setSender(const Person& aPerson);
    void setRecipient(const Person& aPerson);

    //getters
    const Person& getSender() const { return sender; }
    const Person& getRecipient() const { return recipient; }
protected:
    Person& getSender() { return sender; }
    Person& getRecipient() { return recipient; }
};

There are a couple of important methods I left out of both classes - a copy constructor and assignment operator. I leave that to you as an exercise! :-)

ddanbe commented: Great recommendation. +15
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just nitpicking, but this:

#include <vector>
#include "Eggs.h"
#ifndef TRAY_H
#define TRAY_H

should be this:

#ifndef TRAY_H
#define TRAY_H
#include <vector>
#include "Eggs.h"
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A newline in a string is just some more data to send, whereas std::endl will send a newline and then flush the output. You can also use std::flush to flush the output in those cases where you don't want a newline (input prompts for example). IE: cout << "Enter code:" << std::flush;

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Send it to Dell for service?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

huh?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please explain what you mean by "update files are small".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is also not a Monte Carlo sampling routine. You need to have a set of bottles, and then pick one at random until you find the winner. You will also need to make multiple runs and average the number of samples you had to try before finding a "winner". The roulette wheel is a great example of a true random number generator... :-)

Here is a great tutorial about the subject: http://www.phy.ornl.gov/csep/mc/mc.html

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Did you install Windows 8 after you installed Fedora? If so, then the Windows installer munged your grub boot sector. You might be able to recover it, but no guarantees. This may help: http://wiki.osdev.org/GRUB

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you mean your account with Dell, or your account on the computer? It sounds like you forgot the password for the admin account on the computer. That may not be recoverable. I've had clients with similar problems when an employee that was subsequently fired had changed the admin account password. We had to remove the drive, use Linux to mount the drive, copy the data to a backup thumb drive, and then reimage the system completely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What the previous poster said. If all the systems are having problems and you replaced the switch, then it is either a router problem, or a modem problem. Since the router and modem are usually provided by the ISP, contact their tech support to get a service tech on site. One of my clients had the same sort of problem recently, and it turned out to be a bad router/modem. They replaced it and everything was back to "normal".

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Boot into the system. Login as root. Run the commands "lspci" and "lsmod", posting the output here.

hithirdwavedust commented: I feel this is an inappropriate response to someone whom states that they are 'new at using linux'. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Was the ink HP ink, or 3rd party?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Stefan_1 This is not necessarily true. Usually, the hashed password is stored in non-volatile flash memory. Kabir will probably have to remove the keyboard cover and short out a couple of pins (not sure which) in order to reset the system to factory settings and erase the flash memory where these configuration settings are usually stored. My advice is to go to the Dell web site and in their support section you can start a chat with their technicians who will probably be able to advise you appropriately.

We had this problem with a Toshiba tablet/laptop that my attorney gave us and my grandson had to apply this technique. In less than an hour, he had the BIOS unlocked and Windows 7 installed... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ignore it. You know the saying, "If it ain't broken, DON'T FIX IT!"... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Contact the "gurus" at your local Apple Store. They probably have the proper magic wand to fix this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you can, post the contents of /etc/ssh/sshd_config here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What deceptikon said. Myself, I prefer genuine Intel motherboards. The engineering is superb, and they are incredibly reliable. My dual-cpu (8 core) workstation with the SVN5000 workstation/server board has been running almost 24x365 since the beginning of 2008. I only shut the system down when I leave home for more than 2 days, mostly to cool off the hard drives. :-) They also support ECC memory which a lot of systems do not, though they are a bit more expensive than the commercial boards such as Asus and GigaByte. That said, the motherboard will probably be the least expensive part of your system, next to the power supply.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What distribution+version of Linux are you running for a server? The standard python for RedHat Enterprise Linux 6.5 systems and clones (such as CentOS) is version 2.6.6. I'm sure there are newer ones that you can download and install to upgrade if necessary. That said, there are a gazillion python apps that run on these systems very nicely.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try initializing the variable 'i' first before using it.

Ashveen96 commented: I already have initialized it as Dim i as Integer. but still i get the same error. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you turned off the Windows firewall after reinstalling the OS? What about credentials for enabling RDP?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Usually the display is an all or nothing proposition. The problem is possibly the hard drive, RAM, or CPU. If it was still displaying the progress bar, but was hung, then I would suspect it is the HDD. Send it in for repair. They have diagnostic tools to determine exactly what is the problem. This is a good example why an extended warranty (3 years) is not a bad idea... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try this google search: streaming tv server
FWIW, multi-cast is usually not viable outside of a LAN, and your routers need to be configured to allow multi-cast outside of a subnet.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you looked on YouTube? Setting up a network can be simple, or complex, depending upon the gear, complexity of the network, security requirements, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What is the purpose of the 3rd parameter 'e'? Also, in your average() function, you don't return the results of the recursive call. IE, line 9 should be return average(A, s+1, e);

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

On the last line you are printing fromDB[1]. It should be fromDB[0] I would think.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Even more important is the interconnect bus. That controls how fast and efficiently data moves between the CPU and RAM, secondary cache, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Doesn't wireshark or tcpdump provide the tools you need? Or do you need to see what is "in the air"?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Apparently a bunch of other banks (last I saw was at least 9 total) have been hit as well. Some think this is a Russian attempt at retaliation for recent Ukraine-related sanctions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Look at the Lynksys routers when this happens to see if they have exceeded their number of connections - they may not be relinquishing the connection in a timely manner. If this is the case, then you can try changing the lease time to say 12 hours. If one of the sub-routers runs out of available dhcp addresses, then the request would fall back to the Comcast router.

Another issue is where on each floor the router resides. It is possible that some rooms are not connecting to that floor's router, which could contribute to this problem.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

256 bit AES is good for stuff only you are going to need to decode, otherwise you want to use at least a 1024 bit RSA algorithm such as PGP. Dropbox should have some guidelines for this use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show what you are doing. There are too many factors here to say without seeing your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Read the terms of use for this site. We DO NOT do your homework for you. That would be cheating... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

GPS does not use the internet. It uses signals from satellites to triangulate your position. You do need to be in a location where the signals can be detected however.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Send it back for replacement. The keyboard is probably fubar.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Other than the snail-slow 1GHz CPU, the specs are OK. Video display is more a function of the GPU (graphics processor) which on this device is probably running at 1GHz as well, which doesn't do too well for rendering videos running at full resolution and frame-rates. I assume it is running Windows 8.x and you are probably using the bundled media player. Try installing VLC and see if that works better for media playback purposes (video). It won't help for the other stuff, but it is the best video player currently available, and cheap at 2x the price since it is FOSS (free and open source).

FWIW, dual cores doesn't mean that it is any faster at a single task than 1 core unless it is multi-threaded. It just means that it can do twice the number of tasks at the same time.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Write out the program in pseudo-code first and work it through using that logic. It will likely show you where your mistake is. Sorry, but I haven't written x86 assembler since about 1992...

That said, it is obvious from your results that your logic as to where to stop recursing is faulty. You are only stopping if n == 1 or n == 2. In all cases, you can only do two levels of recursion in order to get the 4-level sum.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't do your homework for you. Make an honest effort, show us the code if you are having problems, and if it seems appropriate we will help you resolve your problems and point out some of your errors.