rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And you want to do this because? ...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, the toupper() function won't affect non-alpha characters, such as numbers. So, to be succinct:

/* This is pseudo-code. */
posn = 0;
while (!end-of-string)
{
    string[posn] = toupper(string[posn]);
    ++posn;
}

There are number of means to code the loop including for (int i = 0, j = strlen(string); i < j; i++), etc.

As AD said, typecasting won't work here. You are trying to apply the wrong tool to the job.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

See my reply to your other post. We DO NOT do your homework for you! :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, you want us to do your homework for you? Make an effort to solve the problem and we can help you. This is not sufficient... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Telecom companies that sell these devices often install applications that are not in the basic load from the device manufacturer. This is the most likely vector for such infections. Myself, I will NEVER purchase a phone directly from a phone company, but will purchase an unlocked one that I can use with my "preferred" phone company. It costs me more up-front, but much less in the long term since I am not paying a premium for my account and don't need to get a term-limited (2 year typically) contract. You know the old saying - you can pay me now, or you can pay me later... :rolleyes:

Using an unlocked Android phone means that I can get a SIMM in a foreign country, plug it in, and not have to pay international roaming charges. This has saved me hundreds of $$ in the past.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Explain exactly what you mean by "app tracking" and "website tracking".

catcit commented: I want to be able to see a list of the open programs how much time did the user spent using that program actively. The same for websites. +1
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, after looking on the HP web site about this system, it is unclear whether or not it has PCI expansion slots. If you are considering purchasing it, and have a need for PCI add-ins, then I would consider other alternatives unless you can get a positive response from HP directly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Agree with Jorge with one big caveat - if the drive is encrypted you may not be able to access the data without serious effort, if at all. My company uses full disc encryption, but we use McAfee tools to do it, and they have recovery keys if needed for just such reasons. I'm not saying that McAfee tools are the best, just that they can help deal with recovering data when an encrypted system fails.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As Schol-R-Lea showed (but may not have pointed out), you were, at the least, missing the leading left-bracket when defining your class. IE, you posted

class itemtype
public:
.
.
.
};

but it should have been

class itemtype {
public:
.
.
.
};
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like a Chrome issue. What is the version of Chrome you are using, and if it is the latest, what happens if you revert to an earlier version? If the problem goes away then, you need to report this to the Google Chrome forums as a bug.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you using WiFi, or wired Ethernet? If WiFi, then you probably need to install the proprietary driver and firmware for your WiFi hardware. Run "lspci" and "lsusb" and post the output here. Then I can help you get the proper drivers and firmware installed.

FWIW, this is not an uncommon problem with Ubuntu or other Linux systems that do not install proprietary drivers/firmware by default.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To complete what David W said - do this: function(&array[0]) or more simply function(array)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would suggest that you post this to the Oracle forums. One issue may be that your icons are not in the expected place by the tool.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The 'ld' command is the linker for GCC compilers, such as MingW. If you installed Ming in a normal manner, it should be on your system as well. Possibly you deleted it? Or installed MingW in a non-standard manner?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What happens if you try Firefox instead of Chrome?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good suggestions Jorge. I am writing a lot of PHP code these days, and you can do it in PHP on the server side. I was just hoping that someone knew a quick and easy approach for Dani, without requiring that she write a bunch more code. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The FSM code I have written in the past has been for both C and C++. In any case, each state has events it responds to, and those transition to the same or a new state. So, a state such as "reading-a-word" will have an event handler, and if the event is "have-a-letter" it will accumulate the letter in the current word and transition back to "reading-a-word". If the event is "have-white-space", then it will store the current word somewhere (such as an array) and transition to the "reading-white-space" state. This is just a simple example of what you will need to do. You can do this with classes in C++, and with nested arrays in C. I have written both types for SQL parsers, terminal emulators, and tcp/ip protocol handlers. You can also use lex and yacc (bison) to build a compiled-in state machine. The generated code is ugly though, and difficult to debug - in my opinion, which is why I prefer to roll my own.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Dani, what browser are you using? My people suggested that you try another, like Firefox which has good diagnostic and tracing tools to help determine what is going on. In any case, they think it is a browser issue most likely. In any case, we haven't seen this issue with our Mozilla-based proxy browsers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm only going to say one thing - you don't validate your input data. In the constructor you do not verify that either the suit or rank passed is valid. If not, you need to throw an exception. Data validation is critical for all programming processes. If you don't verify all input data at the point of use, then you are going to have a "bad time"...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not indenting your code makes it very difficult to read... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Re-read the protocol? Study some implementations? Do some research? This is non-trivial stuff, and I honestly doubt that many of us could, without study, answer your questions correctly. I have implemented triple-des algorithms, but in the deep, dark past (like 20+ years ago). I can't remember all of the details...

In any case, DES is a symmetric key algorithm. The encoding key(s) are also the decoding keys. The essential problem here is the key exchange. This may help: http://en.wikipedia.org/wiki/Triple_DES

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry Dani - been up to my eyeballs so far this week - merger of Nokia and MS stuff... I am sending myself a "nag" to ask my colleagues about this tomorrow!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The move probably damaged the computer. Either the vibrations and such that occurred during the move unseated some of the socketed circuits, or they damaged the hard drive. You need to take the cover off, press down into their connectors all the integrated circuit chips and memory sticks, and make sure all the connectors are properly connected, including to the disc drive(s). Also, remove and re-install all the PCI bus cards, such as the video card, et al.

If all that doesn't work, then find someone with a computer that works with a docking bay. Remove your hard drive, install it in the docking bay, and see if they can access the drive. If so, then the problem is the computer and not the drive, and your data should be recoverable.

FWIW, people pay me $100-$200 USD per hour to do this sort of thing... Care is needed to avoid causing additional damage. I have been trained in computer repair by IBM, Apple, Zenith, AT&T, Compaq, HP, and others (and have the paperwork to prove it - plus I am an electrical engineer), so it is something I know a little about. So, if you aren't certain that this is in your capability, take the system to a repair shop that specializes in PC repairs and service, and that has a good reputation. A lot of these may not be so good as their advertising would make you think. I have a small, local, PC shop that I use - …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When I taught networking protocols, this is what I did in class - remember that csma-cd means carrier-sense-multiple-access with collision detection. IE, the network interfaces listen for a clear carrier (no data), and then send their next packet onto the wire (this is more broadcast than point-to-point like a switch). They listen for the echo to see if other packets have corrupted it, in which case they wait a random period of time before trying to send it again. The model I used to illustrate collision detection was a bunch of people trying to get through the same door at the same time. If you collide with someone, you back off for a period, and then try to go through again...

As for collision counts, that is the number of times a NIC (network interface controller) tries to send a packet, but detects that it was corrupted by another packet. Transmission attempts would also include the ones that get through without corruption. So, for a specific packet, I would think that transmission attempts would equal collision count + 1, at least under ordinary circumstances.

This is the fundamental algorithm used by the original (non-switched) ethernet. I'm sure you can find good articles about it on Wikipedia. Also, Robert Metcalfe, the inventor of Ethernet at Xerox Parc, is an old friend of mine. When I was selling computers in the Silicon Valley in the early 1980's, I sold Robert's company, 3-Com Systems, their first 100 IBM PC's. :-)

Ok. Here is …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've been writing FSM execution engines for 25+ years. These have been used to parse computer languages, implement TCP/IP protocols, and implement generic terminal emulation programs. What do YOU know about finite-state machines? How would you approach the problem (at a high level)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since this is obviously a class problem, what does your text and class notes say? FWIW, some of your input here is not decipherable since your input ended up generating non-standard characters. I could guess, but that is not a good approach to understand a technical problem... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

School exercise? What do you know about the stated algorithms, mathematically speaking?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you (that is cheating). Please make an effort to do the assignment, and we can help you with your mistakes.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please post the code here. Without seeing your code in context, there is no way to answer your question.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, it depends upon the dependencies of the package on Windows-specfic libraries and header files. I can only ask why you would want to do this? Experimentation? Need exact functionality that the netcat on Windows provides?

I have written many cross-platform applications an libraries that run identically on Linux and Windows. It is not necessarily a simple process. Also, Linux compilers will not create .exe files, but executable files - in this case it would be netcat, not netcat.exe, although changing the name wouldn't harm anything, or you could make sure that the Makefile created it as netcat.exe.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to be sure the new RAM is compatible with your system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just install the nc package on Linux. That is the native Linux version of netcat.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, these lines are wrong

char date[]="20141018"; //the date is 10/18/2014
char _mypointer=date;

they should be

char date[]="20141018"; //the date is 10/18/2014
char* _mypointer=date;

Also, DO NOT use leading underscores for local variables. That construct is generally reserved for system libraries and such.

There are other errors as well. Look carefully at your code and see if you can detect what they are. Consider your use of pointer arithmetic. I don't think it is doing what you think it is.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These lines:

// System.out.print(aa + bb);
System.out.print(( "SELECT " + all +" FROM "));

are inside your loop, so for each column you are selecting on, it adds "SELECT column-name, FROM" to your query string, hence the malformed request. Set the query string to "SELECT " before the loop, and add a comma on all but when "i == 0", and the column-name on each loop, and " FROM table-name..." after the loop. Also, set the PreparedStatement q ... after the loop.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

For Linux, go into "Sound Preferences" and disable the audio input device. Don't have Win8 so I can't say what to do there, other than what I would do with Win7 - disable the mike in the hardware settings.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is probably an issue with your routing tables in Windows 8. Sorry, but I haven't had the "pleasure" of using Windows 8 (other than the phone version) yet, so that's as much as I can suggest right now.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not much, mostly, though the kernels and a lot of services are different. There are a number of Unix versions, some of which are free and open source (BSD mostly), and many of which are proprietary (HP-UX, Tru64 Unix, AIX,etc). There are also many Linux versions, but all of that code is fundamentally FOSS (Free, and Open Source). Remember, there are 2 types of free - free as in beer, and free as in freedom to use/change/redistribute as you wish.

Both Unix and Linux adhere to the Posix standards (api's that allow applications to interact with the operating system kernel), which means that applications that are programmed to those standards can be fairly easily ported from one system (Unix) to another (Linux). A good example of this is the nedit program editor. I have been able to recompile and run it on every Posix compliant system (Linux, Unix, QNX) I have used without changing one line of code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Perhaps your system is still pwnd and/or corrupted? Have you tried re-installing Windows from scratch (from DVD)? Also, did you scan your boot sector and recovery partition for infections. I have seen a number of instances where they contained malware so when you reboot or try to recover your system, it will become re-infected.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I suspect we do this with our mobile browsers. I'll have to ask one of my colleagues tomorrow and get back to you as I don't personally know the process. Send me a personal message as a reminder.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

NP. I get fat fingers from time to time! :-) Thanks for the response.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Reverend Jim
So, why the downvote?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What have you tried so far? We don't do your homework for you, but we will help you sort it out after you make an honest effort to solve the problem/project on your own.

In any case, there are several methods to do this such as server-based php, client/browser-based javascript, or server-based php+html+javascript. This is NOT a trivial project, so design is critical. Do the design first, and then consider the appropriate tools to implement the design.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you set your LANG environment variable to the appropriate setting for Arabic output? The default for most systems is utf-8 which would not help much. There may be Java functions to change the language in use as well that you can use within your program before you try to output the data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, where is your MIPS assembly code?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, work out the process in plain language (pseudo code). Then, write the code that follows that process. Good luck!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Standard libraries are stuff that all C compilers have to support in order to considered "standards compliant". The functions you need are things like FILE* fopen("COM:", "rw"); (for Windows), or FILE* fopen("/dev/tty", "rw"); (for Linux/Unix), and this function is declared in the header file stdio.h.

That will open the device for communication. Then you would use other functions to write/read the device. FWIW, these are C functions, not C++, there are similar means that are C++ specific, and are declared in the iostream header file. If your class requires that you use the C++ versions of the device open/write/read functions, then look at iostream.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

See my response in your duplicate posting...

Reverend Jim commented: Sorry +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What about a Raspberry Pi? Runs Linux, has ethernet (usb, etc), boots from an SD card, and has high-dev video (hdmi I think). Cost is under $50USD.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Google is your friend, as is www.kernel.org. It is time to read code...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your code is in Java. Where is your MIPS assembler code?