rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As AD says, "What do you want from us?" - you just say you want help, but with what? For whatever it's worth (FWIW), date manipulation classes should use Julian dates (integral or floating-point numbers representing the date/date+time - no years, months, days). Then, date arithmetic is simple, and the same equations are used to convert the julian value to the current year+month+day (+ optionally time). This is how it is done for professionally written programs. Here is the header for a Julian date class that I wrote some time ago:

    class Date
    {

    private:

        uint32_t m_JulianDate;

    public:

        /**
         * Date constructed from a system time value. Since these are trivially
         * created from struct tm objects using the system ::mktime() function,
         * we don't need a constructor for that structure type. Use of a
         * default argument makes this the default constructor.
         */
        Date( time_t ctm = ::time(0) );

        /**
         * Create date object with specified year, month, and day where
         * the date is in the Gregorian calendar from 15 October 1582 on.
         * The 32bit unsigned integer value will store dates until sometime
         * after the year 5,878,800.
         */
        Date(int year, int month, int day);

        /**
         * Date constructed from string. The 'fmt' argument specifies how the string is to
         * be decoded, using the same tokens as is used for output by the asString()
         * method and the system strftime() function.
         */
        Date(const char* dateStr, const char* fmt = "%Y%m%d");

        /**
         * Date constructed …
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As far as I can tell from my friend Google, this is what you need to do. In the file dhcp.conf (somewhere under /etc) you need to do this (or something like it):

------------------------------ CUT HERE ------------------------------

option domain-name "your.domain";
option option-242 code 242 = string;
ddns-update-style none;
default-lease-time 14400;
#Data VLAN
subnet 192.168.0.0 netmask 255.255.255.0 { 
option domain-name-servers 192.168.0.15, 192.168.0.5;
option routers 192.168.0.9;
option option-242 "L2QVLAN=190,L2Q=1";
range 192.168.0.240 192.168.0.249;
default-lease-time 86400;
max-lease-time 345600;
}
# Voice VLAN
subnet 192.168.190.0 netmask 255.255.255.0 {
option routers 192.168.190.254;
option option-242 "MCIPADD=192.168.190.1,HTTPSRVR=192.168.190.4,HTTP DIR=/,L2QVLAN=190,L2Q=1";
range 192.168.190.201 192.168.190.215;
}

------------------------------ CUT HERE ------------------------------

This is just something I got from the internet - no guarantees since I don't use avaya gear. You will have to alter the IP addresses to suit your network settings. No guarantees, and just my "best effort" to get you going.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Re. WaltP's reply. You can have a main() in Java, but not C++. In C/C++, main() is a global (external) function, and the entry point for the application. No main(), no program - just a part of a program.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Inheritance: you get all of your parents' characteristics (attributes and behaviors), yet you can add to, remove, or modify them (esp. behaviors).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is a lot of stuff you are doing that has not been defined, such as the Info member/variable, the Pixel class, etc. Without that, debugging this is impossible. Also, have you built this application for debugging, and then run it in the debugger so you can see what is happening directly?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Reminds me of cyphers I wrote back in the mid-1980's before I was comfortable with public-key encryption using large prime factors. Then I went and wrote a serious prime factorization tool so I could generate/decode Goedel numbers for radom strings... :-)

np complete commented: cool :) +3
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would consider that a serious invasion of privacy! Find something that does not impinge on the user's right to privacy, at least without their EXPLICIT agreement to let you do so! IE, an opt-in vs. an opt-out policy. What you propose is reasonably, but invasive. You need, in such cases, to carefully consider the needs/rights of the user. Call this a wakeup call for Ethics 101.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

ryantroop's advice is good. There are a LOT of open source Java projects out there that you can start working with - first to learn how "experts" work with the language, and then to contribute yourself to the project. For whatever it's worth, a lot of the Apache code base is java.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sort-of Pseudo-Code:
1. Find position of character in string.
2. Copy from position+1 to end of string to position (ie, move up remainder 1 character).
3. Terminate string (if necessary).
4. Done.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming this is ALL of the code, you are compiling a component of a program, but it has no main() function. Add a -c flag to the compile CFLAGS (directives). That will generate a .o (Linux/Unix) or .obj (Windows/DOS) file which can be linked to other object files to make a running program.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As usual, mike_2000_17 gives awesome advice! :-) Mike, you have a LOT more patience than I do!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this a workstation with external display, or laptop with built-in display? In the former case, you would use the monitor's physical brightness controls. In the latter case, you would use the FN-Key combo that is associated with lowering the display brightness. Personally, after over 25 years of running X-Windows systems, I have NEVER used xrandr to control screen brightness, which is not to say you can't...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What JorgeM said. In addition, a lot of external actors can affect this. We were having serious internet access problems the other day due to a failure of GoDaddy.com, the domain registrar for a major portion of systems on the Internet. Our company is one of the largest corporations in the world (and has over a billion network users), yet our internet connectivity was seriously impacted by GoDaddy's problems. In such cases, there isn't a lot you can do, other than hope it is resolved PDQ (pretty darn quickly)!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are going to need to be a LOT more clear on what you are looking for. These are NOT simple subjects. Also, just WHAT do you mean by "nano antenna configurations" (I'm translating from your post)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

BTW, the reason to not use alcohol is that it contains too much water already. You would need anhydrous alcohol (very difficult to find). Even the 90-95% alcohol that you can find in some pharmacies (normal rubbing alcohol is 70% - 140 proof), is not adequate. Anhydrous alcohol is 99+% pure, and sucks up H2O like nobody's business! You would have to get that from an industrial chemical supply company, and you would probably have to register the purchase with the authorities.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That was basically what I was suggesting. Don't use alcohol. Go to your local computer store, or possibly office supply store. There you might find some sort of aerosol to dry wet electronics. It will contain some sort of non-invasive solvent which will adsorb the water and not affect the electronics when it evaporates. I've used such in the past when I was a computer repair tech, but that was a LONG time ago (about 25 years now). You might do a Google search to find what is sold today, and where to get it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Phones can exhibit at least two distinct "personnas". One is as a removable USB device. The other is as a USB communication device, modem, etc. Are you SURE it doesn't see the phone in any capacity? Go do the Devices section of the Control Panel (I assume you are running some variety of Windows), and see if it shows it listed there in some capacity.

For whatever it's worth, Android phones when plugged in may not appear as a usb drive - you may need to set the phone properly so that it appears to the system as a drive. Ditto if you want to use it as a modem. I know that I have to deal with that when I plug my Andoid phone (a Google Nexus One) into my laptops (both Linux and Windows).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What about my answer do you not understand? I thought I was pretty clear... Anyway, here is some further explanation of what I said.

When a user runs a program, they typically run in the user's account, with the user's privileges. The root user has full administrative access to the computer - it can do anything, access any file, etc. There are a number of attributes associated with all files on Linux, such as readable, writeable, executable, and a couple of other more subtle ones, such as the setuid attibute bit. All files/directories have an associated owner and group. There are bits that represent the readble, writeable, and execute attributes for each file and directory, for the owner as well as the group. What setuid means is that when the program is run, the program runs with the privileges of the owner, not the user running it. Since root owns the passwd program, when a regular user runs it, it is as though root was running it. Root also owns and has read+write permissions on /etc/shadow where the passwords are stored, so the passwd program can change your own user settings when you change your password. One way that the admin can make it so that no user can change their password is to remove the setuid bit on the /usr/bin/passwd program (NOT recommended).

I don't know if I can make it any clearer than that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Contact Dell for a replacement, and insist that they also send you an installation disc so you can reinstall the OS if this happens again.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It does help to have some description of what is happening. There can be many faults related to a CPU.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I wave magic wand, and BINGO! Problem solved! :-)

goto WaltP;

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Use a switch statement on a variable representing the question you are at. Then, to return to a specific question, you can reset the variable to that question, putting all of this in a loop.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The coding is not too complex, but there are a lot of small steps involved. If you really are insterested in this stuff, get this book: http://www.amazon.com/Internetworking-TCP-Vol-III-Client-Server/dp/0130320714

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My guess is that audible.com books are DRM-encumbered, and only support decryption on Windows. My advice is to try installing audible software with Wine, and if that doesn't work, then install a virtual machine manager such as VirtualBox and run Windows as a guest operating system - in which you can install the audible tools. I have some Windows software that I need to run which won't play nice with Wine on my Linux systems (I only run Linux as the host OS on all of my computers), so I installed them in a Windows virtual machine where they are very happy to work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

School work? Sorry, we really don't want to help you cheat... :-( Generate a formal proof and I will help you verify it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This:

typedef std::vector<Student_info> container_Student_info;

should be this:

typedef std::vector<struct Student_info> container_Student_info;

Of course, you could do this:

typedef struct Student_Info studentinfo_t;
typedef std::vector<studentinfo_t> Student_info_containter_t;

I like to put the trailing _t on the defined types so I know that these are defined types... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you HAVE to use strtok()? If not, try some different methodology. Why? Because strtok() will alter the string being processed, inserting a null byte at the end of each token returned. In any case, it will return NULL when there are no more tokens to return. I have used it in the past, but often found that it was unsuitable for what I was trying to do. Why? Because if you are processing quote-delimited strings as one example, and there is a delimiter character inside a string that you want to keep intact, you are quickly hosed!

When I was writing a parser for a major application framework that had to read a TCL-based string that represented a hierarchy of C++ objects, I tried using strtok() to tokenize the string. I quickly found this problem and had to roll my own tokenizer. It was effective, and is still in use today in software that runs most semiconductor fabs in the world.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Frankly, we hire a LOT of java programmers (we have over 200 in my department), and certification never comes up, though we will ask the candidate to solve some fundamental programming problems. When I was interviewed, I was asked to write a factorial function in the language of my choice. Why? Because we have found that most of these certifications are kind of like degrees. We all know what BS means. MS? Just More of the Same. PhD? More of the Same, just Piled Higher and Deeper! :-) Anyway, a degree may mean something, but is not always necessary. After all, I am a senior systems engineer at a major international company, was principal engineer and architect at another major company, am a published author of graduate level engineering text books, and have a US patent to my credit as sole inventor (owned by a fortune 50 corporation), yet I am a non-degreed engineer. I am also a member and officer of the IEEE-USA.

So to me, and my team when we are hiring Java developers, what does a "certificate" mean? Not a whole lot, honestly. Write code. Contribute to open source initiatives. Be comfortable with your abilities, yet cognizant of your limitations. When you are interviewed for a position, if you don't know the answer to a question, just say so. No one can know everything, and honesty is a major positive!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I don't see where you are declaring / defining the variable 'index', which is used as the terminator for the two loops on the lines in question. My guess is that it is defined elsewhere (in some header or other) as a pointer...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If I understand correctly what you are doing, then your professor is correct. The terminating condition of the loop is being able to read words from the input file. If you want to handle multiple files, then in the calling function (the one that calls pupulateStruct()) you will need to close the input file and open the next in another loop, inside of which you would call the populateStruct() function.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A tool that works on Windows, Linux, and other (BSD) systems is VNC (Virtual Network Computing). This lets you share viewing and control of your system with others, locally or remotely. I have used it for years for supporting clients when I was a consultant - since 2000 or earlier. I use it on my laptop to remotely access and control my workstation just like I was sitting in front of it! FWIW, my laptop runs both Windows 7 and Red Hat Enterprise Linux 6.3. My workstation at home runs Scientific Linux 6 (a clone of Red Hat Enterprise Linux). I can also set up my workstation to create a virtual display environment for remote login and access using VNC - so I don't have to access the primary console, though I can still do that if necessary.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

On a standard partition table, you can only have 4 primary partitions. When people may need to have more than 4, then they make at least one an extended partition, which is kind of like another partition table, where you can create more partitions. Windows operating system bootloaders have to boot from a primary partition, but current linux grub bootloaders are not so constrained. I have see people with 4 or more bootable partitions on their systems using extended partitions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The passwd program and others like it are owned by root, and have the setuid bit set, so when you run it, it is running as root. Hence, it is able to update /etc/shadow when you change your password, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It's not worth the trouble to fix. FWIW, I am a senior Nokia systems engineer. You can get a Lumia 900 for about $50 USD these days. I'm using one for my primary phone, and it isn't bad (very good, actually). I also have a Google Nexus One running Gingerbread, a Nokia N8 running Symbian, and a Nokia C3-00 feature phone. The 900 is the best of the lot. I used the Nexus One almost exclusively for 2 years and thought it would be hard to find a better phone, but the Lumia 900 has a lot going for it, including the ability to handle my personal gmail account and contacts lists seamlessly. That was important to me as I have a lot of gmail contact lists for things like the IEEE consulting group that I am an officer (past president) of.

If you want to wait a couple of months, you can get the new Lumia 920 with inductive charging and multi-tasking Windows 8. Unfortunately, the company probably won't be giving me one until sometime next year! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

MySQL is a good choice for a low maintenance database that is widely supported, and free.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Really, you need to disassemble the phone as much as possible, and then use something like blow-dry (a volatile solvent that adsorbs water, and then evaporates quickly with the propellent it comes in, taking the water with it). Then, let the system sit open and disassembled in a warm, dry room for at least a day. After reassembling, it may work. If not, then you are going to need a new phone. I'd say your chances are less than 50/50... :-( FWIW, you need special tools to disassemble the iPhone.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You have assigned min from arraySize[0] before it was initialized. You are lucking that it was initialized to zero - it just as easily could have been garbage. So, change then initial assignment from min = arraySize[0] to min = 0, and then change the for() loop to determine min from for (i = 1; i < 5; i++) to for (i = 0; i < 5; i++)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Unless you use something like a C++ vector, removing an item from an array will not adjust the array. You have to do that yourself, otherwise you have an empty spot as you saw.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try changing

   DisplayAll(Players);
   TotalPoints(Players);
   HighestScore(Players);

To

   DisplayAll(SoccerPlayers);
   TotalPoints(SoccerPlayers);
   HighestScore(SoccerPlayers);
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That sounds like a compiler error to me. Are you actually getting to the point you have an executable file?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If undeclared/unimplemented, C++ will create default base constructor (no arguments), copy constructor, destructor, and assignment operator. The base constructor will do no initialization of variables whatsoever. The copy constructor will do a bit-wise copy of the copied data (member variables), as will the assignment operator. Often these are not safe. In any case, you should always create your own default constructor, and initialize all member variables. Example:

class foo
{
private:
    int a;
    int b;
    int c;
public:
    foo() : a(0), b(0), c(-1) {}
};
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you are trying to configure a complext network with Cisco gear? You have your work cut out for you. Nobody in their right mind would attempt to do so without real Cisco training. Contact them. They may have some on-line training material which would help you; however, I doubt that there are many lurkers on this site who are expert Cisco networking boffins. We have specialists at our company who deal with this stuff (Network Operations, or NetOps for short), and they have all the requisite training.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You probably have not installed the Qt development package. It should be named something like "qt-devel". That's what it is named on Red Hat systems. Not sure about Ubuntu.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Myself, I run Linux on my systems and run Windows in a virtual machine, which I can back up, export, reinstall on another system, or whatever, and to MS it looks like the same machine in all cases. So, I can run Windows in a VM on my workstation, or my laptop, or if I need a new machine I can move or copy the VM there without problems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What happens when you reboot the computer?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try changing this code:

else if ((!user.equals(uname)) && (!pwd.equals(password)))

to this:

else if ((user.equals(uname)) && (!pwd.equals(password)))
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is that the built-in browser, or the add-on mobile proxy browser? I work in the division that does the mobile proxy browser. If that is the one, I can check with some of my colleagues who are directly responsible for the code on the phone. I am responsible for performance engineering, so I would not personally know the answer to your question. If it is the built-in browser, then I would have to send an email to the team who wrote it. Also, please be more specific in details as to what you are trying to do, and how you are doing it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The Google Chrome browser has some add-in extensions that let you run a tab in IE mode. Some only run on Windows, but others don't care. You might want to check them out.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Where do you initialize the mIntersectable member of the mSelectedLuminaire object? You are dereferencing it, but not verifying that it is not null.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
if (strcmp(Input, "Pick Up Knife") == 0)
{
    cout << "You got the knife" << endl;
}