rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
while(fgets(line, sizeof line, stdin)
{
    if (sscanf_counter != 2)
    #breakout here#
}
rproffitt commented: From Fear Factor to Re Factor. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I also use MS Remote Desktop, about 10 or so years ago. Worked well. Haven't used it since so I don't know what MS has done with it.

rproffitt commented: MS Rabbit goes down the rabbit hole. Didn't follow. +14
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This mobo seems to an intel processor tuned device - no mention of AMD support. It seems to run a core i7 processor, so games should be good on it, especially if you get one of the recommended nVidia video processors. Has a good sound system built in. It says it supports Windows 7-10, though I imagine it will handle Linux as well. Lots of sata ports and USB 3.1 ports. Anyway, Linux is the only open question here. You may want to contact newegg.com about that, or check on the Asus web site.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a lot of free system testing tools to do this. Try Googling for that!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Check out WinClam - a free AV. There is also a Unix/MacOSX/Linux version available (called ClamAV). I use it all the time, and have never had a problem with it not detecting malware on my systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just remember, Android is primarily Java (with a different back-end), so if you can code it in Java, you can use the same code for Android.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A C or C++ switch statement is just a code branch that is delineated by the value specified by the statement. So, I don't really understand what your conundrum may be. Please illustrate what your problem is.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Reverend Jim, Windows is much more susceptible to malware and virus attacks than Linux. Yes, you can harden your MS system against them, but the design of Linux makes such attacks much more rare, unless you are an idiot and leave your system open to remote access. Usually, web services are the most accessible to outside stuff. I managed something like 5000 servers for Nokia Mobile Phones, and we had zero intrusions! And we had 100 million remote customers all over the world. There was work involved to accomplish that, but with proper system monitoring we were able to detect when some asshat would be trying to penetrate the system. Let's just say that their #######s were a bit puckered when we were done with them!

FWIW, we used CentOS 6.x for the servers.

happygeek commented: Hehe +16
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Get rid of all the "goto" statements! That isn't C++, it is badly written C code!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sometimes the factory reset switch is a recessed button somewhere on the back of the unit.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Wordpress is a PHP application. To verify that it is not "infected" you would need a known good CRC checksum for all the pages you are going to visit, and then rerun the checksums for each page to verify that the page has not been altered. This really isn't practical in real life. You should trust that the WordPress site does this on a regular basis, or some other means to verify that their code base has not been altered by an outside source.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need to decide what research areas excite you. FWIW, natural language processing is an important research area. You have parsing of phenomes to deal with, and then taking the results to make sense. This work is necessary to translate one language into another by computer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The ffmpeg tool can handle this conversion: https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv

rproffitt commented: I think a requirement could be "no DRM." The BBC tends to DRM stuff. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Coller pretty much has it nailed. If you have a try/catch block that fails, then allocated code that was allocated before the try/catch block will no longer be valid.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Likely a power supply issue. Modern mother boards have 12v and 5v inputs, but usually one is inadequate (usually the 5v) for the load it needs to support. They don't fail immediately, but when they go, time to get a new PSU. This has happened to me in the past. My multi-meter found the problem in about 2 minutes.

rproffitt commented: Having the right tools and skills for the job. DMMs are not optional in my view. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is no way but the right way to compute dates - Julian and Gregorian. :-)

rproffitt commented: I think wars were fought over this. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When I would generate such things (performance and quality metrics) from PHP for our QA manager, I would export it as CSV files which he was easily able import into Excel. Once I started doing that, to complete the analysis of a new phone firmware (this was at Nokia Mobile Phones) took an hour or so instead of a week doing it manually. Needless to say he was a happy camper!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@rproffitt - we onlly used the assembler for very low-level hardware controls. Most code was K&R C.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

OMG, 68K assembler. I think it has been about 30 years since I last built 68K assembly code. They used to build custom servers using the 68K chip at Fermi National Lab. Then they migrated to IBM gear, and finally they are using off-the-shelf X86_64 Linux (Scientific Linux and Fermi Linux) gear. They have 1000s of those suckers to analyze the zetabytes of data they accumulate from the accelerator runs.

Anyway, this should not be a difficult problem to solve. What are you using for your ASM-68K manual?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this where you tried to download the IDE? http://www.eclipse.org/downloads/

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

On my 8 core CentOS server, it takes over an hour to compile a complete kernel - that just uses one core. If I add the "-j number-of-jobs" option to make such as "make -j 4" it will use 4 cores and takes about 15 minutes to build. I usually only use 4 jobs since building the kernel is a background process and I have enough power left over to continue with other work.

rproffitt commented: Nice to read as it's a reminder how to enable more cores for the make/compile. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This Microsoft article explains what each is (they are Outlook mail repositories): https://support.office.com/en-us/article/Introduction-to-Outlook-Data-Files-pst-and-ost-6d4197ec-1304-4b81-a17d-66d4eef30b78

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can run java code in your pl/sql modules. In fact, Oracle has Java built into the server for just such purposes. RTFM (Oracle's manual) to learn how to access and use java engine. The last time I did this it was 12 years ago, so don't expect me to remember details.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a lot errors with your code. First off you have two sets of class vaiables in Circle with the same name:. You can't do that. You compiler should complain I would think. This will cause issues with your constructor. Either us a default constructor (no arguments) and add a setter method. Additionally you can have another constructor like this: Circle( double radius, double diameter, double circumference )'
Ignore PI in constructor. It is a global constant. Also, area is a computable value. You only need to compute it the first time when needed. Think about this, retry to write your code, and then post here again. I could give you the corrections directly, but what will you learn then?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a type of load-balancing or system optimization. It is normal behavior and is built into the kernel. In any case, using top to do what you are interested in is not optimal. Check out sar - read the man page for that.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is also possible that backup versions of the file stay on said PC, depending upon how the OS and/or Word are configured.

rproffitt commented: Excellent. (Mr. Burns) +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Calling main(int c) is just plain wrong. Acceptable forms are main(void), main(), and main(int c, char[]). If you are trying to ask the system to evaluate the char[] argument using an int c that is not smaller than the size of the array, then you will get a SEGFAULT.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please, just show the functions/methods you are having issues with and the errors you are getting. Asking us to analyize 300+ lines of code is just not reasonable!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PHP no longer supports MySQL APIs. It has been using MySQLi APIs for years. Most all calls need the resource identifier returned when you open the database. Anyway, as others have said, show your code. Until you do we can't help you any further.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

P.S. MySQL - easy to use. PHP - easy to use incorrectly, but not simple if you want to do it correctly. Consider it C++ for web servers, and program it accordingly.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yeah. We don't do your work for you. You can hire some of us for a lot of $$ to do it if you want, or you can make an effort, post your code and errors here, and we may decide to help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

PHP is a fully object oriented language - C++ for web servers. Stop intermingling your PHP and HTML or other client-side code. IE, write the HTML or JavaScript code for the button and put that in a PHP class method and/or variable. Then, just output it to the client. You will need to use some HTTP to process the return data. Most of the time I look at "commercial" PHP code and then go throw up in the bathroom!

FWIW, I spent a couple of years at Nokia writing production PHP code, including a cell phone emulator. I also had to debug and fix the output HTTP code for the 5.4.1 version of PHP that was the latest/greatest at the time. Serious bugs there. Oh, and I had to do all of that inside of 2 months!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

NEVER use MS Access for a production database. SQL Server is good, as are most other high-end DBMS servers such as Oracle, Informix, Postgres, MySQL, etc. Access databases are good for pre-production testing of your other code, but when you are ready, use a real database.

rproffitt commented: Words for the wise. Tears for the foolish. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The scanner manufacturer may have some open source code to use to write your own scanning apps. They may be in something like C++ using an API like Qt, but you should be able to adapt that to VB. It is the interfaces to the scanner that are critical here, buttons not-withstanding. Those are what you need in order to control the scanner.

rproffitt commented: API and examples by the scanner maker is critical, unless Linux and SANE. By extension Windows is insane. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, what about dropbox? Not sure what their basic storage amounts are for the free version, but you can pay I think for more storage.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The best (cheapest) policy is to trust your users, making sure they all agree to terms of use for these devices. But you can verify what they do with them via software. There are a lot of software tools out there you can install on your systems that will monitor what is uploaded/downloaded to/from the system from external sources, including the internet.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You might want to replace the power supply. I have had nVidia GPUs fail on me in the past, but only after about 10 years. I had an 8800GT that I got in 2007 and it failed last year. It didn't cause the sort of issues you have, but then I have a much heftier power supply.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the USB ports have not been disabled at the OS level, then it is difficult (impossible) to do what you want. The simple thing is to disable the USB driver. Unfortunately, a lot of stuff on current systems, such as WiFi and Bluetooth, run off of the USB hubs, as do most keyboards and mice.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

After 3 years of use, the CMOS battery is probably failing. Not sure about this system, but they used to be those quarter-sized LiOn batteries that cost a buck or two. They are usually soldered into their carrier, so you may need to get out the soldering iron, or take it to a computer repair shop for replacement.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Actually, you can run OSX in a VirtualBox VM on Linux. Not sure about Windows. How well that would work I'm not sure as I haven't tried it, but VBox does have an Apple OSX startup option. You can at least try it.

rproffitt commented: If it works on VirtualBox I find it works on all host OSes. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

To be a little kinder than rproffitt (with whom I agree 100% in this sort of case), we DO NOT do your homework for you! Make an effort. Show your code, and the errors you may be getting.

Also, FWIW, I charge $200 USD per hour for consulting services.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Ella_3 and crymari2 - I have found after 30+ years of software development and engineering that code obfuscation is only useful for code obfuscation contests. Don't waste your time. It will just make debugging much more difficult without the original source.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, make sure the directory and associated files are readable. If they aren't readable, then you can have this problem. I have had similar issues in the past. Make sure the directory also has full rwx permissions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what is your question?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Two things. First, visit the cplusplus.com web site and study their tutorials. Second, purchase and study the Ellis and Stroustrup C++ reference manual.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Why does this matter to you? How accurately you can sync your clock? Anything within one second is not discernable to humans.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I have libreoffice 5.1.6.2 on my Mint system. Works fine with the default Java runtime. No JRE required.

rproffitt commented: Bring out your dead (versions.) +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, I have been programming C++ professionally for 25 years. When I am writing code I keep cplusplus.com open in my browser. Over the years, the language has evolved and how you deal with stuff depends upon the version (C++11, C++14, etc). This helps keep one from using the wrong version for projects, especially those that are built on older versions and require older compilers.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@diafol - WP could fix this if they wanted to make the effort. It isn't rocket science, just simple object-oriented programming. I did a lot of PHP at Nokia, including fixing up other folks' code that was in the WP mish-mosh format. Gee, after rewriting the code, suddenly we had a 2-order-of-magnitude speed up in client response! Complex stuff that took minutes to render suddenly took a couple of seconds. My QA director thought there was something wrong! Nope. Just something quite right! He loved me after that because stuff that used to take him 2 weeks to analyze (new phone firmware for example) was now only taking him a few hours! His group was able to increase their workflow tremendously, and with less effort!

rproffitt commented: Clean code and design that runs faster? I like it. +12