rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can also do this with the bash shell and ssh from Cygwin on Windows. I used to use those tools extensively for management of Linux servers as well as software development for Linux on Windows.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actuallly, https://en.wikipedia.org/wiki/Lexical_analysis does have links to C/C++ lexers as well as java ones. Lexical analysis is the process of turning a program into symbolic tokens and creating a structure (usually some sort of tree structure) that a parser/compiler can use to create byte code and binary (executable) program code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to post your errors and where they are coming from if you want any reasonable help. Asking for people to analyze 250+ lines of code is not usually received well. In any case I don't have time as I am currently out of the country until after the first of the year and have little time for such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ouch! Not sure what you can do as the system is remote. Have you run chkdsk on the system to see if there are file system problems? You can do that without rebooting, or on reboot if you wish. Anyway, a reboot may be necessary. Given the user directory is gone and the user account isn't there any longer, I'm not sure what you can do. If you had a recent system backup and you were on site, then not so much an issue, though if the backup disc is online you might be able to restore the user data after recreating the user account. You will lose anything done in the interim however. :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like it has a serious hardware or software problem. If not still under warranty, they should just replace the unit.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How are you supposed to modify the title? Manually? Automatically? And why can't you use a file to assist in the processing? IE, name pairs of "old name" + "new name". Also, is this a homework project?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can also use it to encode hex characters as in \x1e.
Example: printf("This is 0x1e as output: \x1e\n");
Note the \n at the end. That's so the new-line is output also. Makes for easier reading.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

25 % 2 == 1. The modulus is the remainder after the division, so 25 / 2 == 12 with a remainder of 1. So, if i % 2 == 1, it is odd. If 0, then it is even.

The bit-wise operation, if the language supports that, is a nice hack though.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Check your directory and file permissions. This is the most likely problem - incorrect permissions on sub-directories or for file access.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The update may have altered device settings. Check there to see if the mouse is detected, but not enabled.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A perfect example of how to NOT get help on Daniweb...

Aeonix commented: Worked for me thus far! +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, I think you might be able to do this with Audacity - open source audio processing tool. If you know the wave form of the sound you are interested in (your beep in this case), then you can use that tool to scan for it in an audio stream. It also has the ability to filter it out if you wish.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, comment each line with what you are intending it to do. Next, I havent been doing serious x86 assembler programming in 20 years so I need your comments in order to understand your intentions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What the Reverend Jim said. Also, have you checked the HDMI cable? What if you connect via VGA (I assume your system has a VGA connector)?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is always the speed of light to consider, plus switching time in the necessary optical cable repeaters. That's about 135ms to traverse the world without repeaters, routers, switches, etc. From Amsterdam to NYC you still are looking a 20ms just to cover the distance. There there are all of the routers, spy systems, switches, etc. Longer if you go via satellite. These are barriers that cannot be avoided. So, if your packet from Amsterdam to NYC takes less than 100 ms, consider it a win. Try pinging a server across the Atlantic like that with Speedtest.net to see what is your likely best bet.

Aeonix commented: I see now. Thanks. I guess next "breakthrough" is when we will find out how to travel faster than light. Only 500 billion years to go! +4
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How to open and read a file in assembly language? Is it compiled, or source? If source, just use a regular text editor. If compiled, you need to get a decompiler and turn it into text first.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, how are you calculating that?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but this is invalid code. i is not initialized before you use it in the switch statement. It will contain random values.

AndrisP commented: Oh, sorry - it can initialize in line 4 by any value except 4 and 5 +5
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Pattern recognition. Genetic algorithms are good for what you want to do. Time for some advanced study!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is one of the most common real-world problems you will encounter in computer programming. There are a number of approaches. There is simple but slow, and more complex but fast. Which depends upon your needs. If you are needing parse a million of these strings in a short period, then complex but fast is better. If not such a high volume of data, then simple but slow would be better. Simple but slow: copy data to a standard C string buffer up to the next comma and use strtod() to convert the value to a double, or atoi()/atol() for integers or long ints. Don't forget to null-terminate the buffer first before conversion in either case. Complex but fast is another story. Buffer, array, right-to-left scanning of string to previous comma, replacing comma with null, put numeric string in array, scan to next previous comma, replace with null, put string in array, repeat until you get to beginning of the string. Then you can convert each member of the array. Remember that in this case, the values will be in reverse order. If the entry is empty, you need a default value (true in either slow or fast approach), usually either 0 or -1, your choice what is appropriate.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffitt said. Also, this is an indication that either the file system is munged, or the disc has too many bad sectors. Back up the data and get a new thumb drive, as advised.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to read up on sed and Linux/Unix regular expressions. The dot (.) has a special meaning - ie, any character. You need to preface each with an escape back slash (in a shell, two back slashes) to tell the tool to consider only a dot. Also, forward slashes are expression separators. They also need to be escaped like the dots. Try some experimentation until the output reflects your intention.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Basic programming stuff. Show your code and I'll show you where you are in error.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Probably an LED back-lit LCD display of at least 1920x1200 resolution (higher resolutions are now available such as 4K displays). I'm not sure that in your case any particular technology is preferable, though you might want to check them out at a computer store near you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Learn arrays in C. Unless you are talking about std::array, they are the same. This stuff is covered in just about every C and C++ text book known to humankind.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

1) The x and y members of Point2D are protected, and since Line2D doesn't inherit from Point2D, or has been friended by the Point2D class, this is expected.
2 and 3) setLength() in Line2D has no return type in the .cpp file. Even if it returns void, you still need to declare that since C++ assumes no return type indicates an int return type, and you have no int setLength() member function declared in Line2D.cpp. You make similar mistakes elsewhere. Time for some code cleanup I think.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

All you show is the XML file. Please show your code (php and laravel) and errors you are getting. Also, read the terms of use for this site. We don't do your work/homework for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please read this site's terms of use. We don't do your homework for you. Make an honest effort, then show your code and errors/problems you are getting and then we can help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It looks like you have two subnets, 10.0.0.0 and 10.0.1.0. Is this correct?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You don't show the message in your post, so helping is difficult. Since a lot of system tools depend upon Java these days, it should be installed on your system. You need to do a thorough system virus/malware scan, preferable using multiple A/V tools.

rproffitt commented: Reminds me of folk that need car parts but don't tell make, model, year, etc. +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just posting all this code isn't too helpful. Please also post the errors you are getting.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Several things. One, what is the OS and compiler you are using? Two, please post the output you are getting. Three, what don't you understand about that output?

That said, it is crappy code, but should work OK. That said, all of the cout function calls do not have an endl or flush operator at the end of each line, so the output will be cached until the next call to one of those operators (output manipulators).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why do you need to convert it? Simple VB6 code like this should work in VB.net. If you have already tried, what errors are you getting?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming you are running some version of Windoze, then you can also install Cygwin and the GNU F77 compiler suite. Works quite well and it works with gdb, the GNU debugger. FWIW, I have had to reverse-engineer worse Fortran code than this. It will take some thinking "outside of the box" to get a well-structured C++ program out of it though.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My advice is to not try and do a direct translation from Fortran to C++, but to first analyze what the code does, and then re-implement that in C++. There are tools, such as Enterprise Architect that can reverse engineer code into UML models, state machines, etc. which can help with this process.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you mean as in a print screen capability? All versions of Win7 should be able to capture a screen up to the full resolution of the display. What precisely is your problem? And what screen capture program are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not asking for much are you? You figure out what game you want to code, and then you write the code. Post code and such here when you have run into problems. Sorry, but we don't do your work (or homework) for you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

No one uses Pascal any more (mostly) unless they are using Niklas Wirth's (the author of Pascal and Modula) text books. I think the latest editions have migrated to Java (not sure about that).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How you code this depends upon how the lights are integrated into the system. If directly connected to I/O ports of the computer, then you would use io-in and io-out instructions to read or set their states (on or off). If other such as serial ports, the problem is a bit more complicated but not too difficult. What you have posted so far is useless for us to help you.

rproffitt commented: Lights += 1; +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like you are lacking the fundamentals of the language. Remember that C++ is an advanced version of the C language, and iterations are generally for() and while() loops with some rational terminator (like when you get to the end of the list). Study the language a bit (there are a lot of good books out there to help you), then post your work here. First expressing the problem in pseudo-code will help understand what you are doing before you actually code it for the computer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to learn about date computation. Read this: https://en.wikipedia.org/wiki/Julian_day

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to learn about bit fields. Not difficult, but we don't do your homework for you. Also, what do you mean by "changes on the fly"? What is changing the bits? An interrupt routine? Other code? Another thread?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What JamesCherrill is saying - do the work and when you are still having problems, show the work (code) to us for review. We DO NOT do your homework for you!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Persuant to my comment about recursive exceptions, that tool found that a lot of C++ compilers in the early 1990's had major exception handling issues! I had written a solid recursive fib function in C years before for a contract I had with the Mellon Bank to balance their S&P 500 index funds daily after the market closed. It was used to determine which of the "smaller" equities would be included in the bag of stocks, so the appropriate buy/sell orders would be placed before the market open the following day.

At the time, they had over $50 billion in investments - retirement funds from states, major corporations, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Get a copy of K&R (Kernighan and Ritchie) and read a lot of code. Then, find a mentor you can talk to when you are having problems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Baran_1: CodeBlocks is a development UI that uses GCC under the covers to compile stuff. What compiler version are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That is called a compiler + linker. Most compilers will invoke the linker to create the executable file (.exe for Windows). For Windows, there is Visual Studio (there is a free version), as well as other ones you can use. There are more than I would want to touch on here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, check out Clonezilla. That is a standard Linux tool to clone drives and systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Microsoft is trying to migrate everyone from Win7 to Win10 and this may be part of the problem. Try to limit your updates to security updates only. This requires changing your update settings.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rproffitt commented: !] +11