rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I developed risk analysis software for the options trading industry in Chicago up to 2007. C++ was what was required.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

We don't write your code for you. We will help you fix it once you post it! I've been writing professional C++ code since 1992...

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

Have you checked on the MS website for help with this?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Asus boards are of good quality. Myself, I like Intel mobos, but they are quite a bit more expensive. I purchased a dual core mobo from them in 2007 for my server, which is still functional though I had to replace the nVidia card a couple of years ago when it died. Everything else works great now, 10 years later!

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

Last time I used 8086 assembler was when I wrote a TCP/IP stack for QNX in the early 90's (work for the US Navy). At this point, I really can't help you. I occasionally write a few assembly statements when modifying Linux kernel code, but that is very rare these days.

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

Select a subject that is of interest to you and then decide how your coding can improve or alter it to your desires.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My solution is to not run Win-whatever. I Run Linux and never had a problem!And I have run Linux for the past 12 years!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are two kinds of increments for integers - pre-fix and post-fix. X++ is one and ++X is the other. You figure it out! Or read your C/C++ programming manual!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, 200+ lines of code but no explanation of what your problem is. Sorry, but that does not work!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And, you want us to comment on 500+ lines of code? Sorry, but that isn't going to happen! Show us where the error is, and then we may be able to help you...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My sanskrit name is also Vikrant! How amazing is that? In any case, p++ works. You allocated buffptr and assigned it to p. So, p should be the address of the structure.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Pascal is a defunct language. Even the inventor of it redid it as Modula! If your school is still teaching Pascal, go somewhere else!

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

Here is what he said: im guessing ready made light for the RPI ? or do they mean the meters, in either case there isn't a ready made solution, it doesn't take much time to wire a little led light off the 5 V line with a diode or resistor to drop the voltage.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

After having written a LOT of time conversion software over the years I can only say this. DO NOT GUESS! Study the domain and understand what is required to convert from one timezone to another. My software had to work properly in countries all over the world (China, Japan, Korea, India, Europe, USA, et al). I'm not going to try to teach you how to do this, but is isn't that hard if you make some effort!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My solution for Java programming issues is simple. Don't use Java! Fine for trivial applications, but a pit for system-level applications! Don't be lazy. Learn C++ instead!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I will let you know if/when I hear back from him.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm going to forward this to my grandson who is an expert in this sort of stuff.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show your shell code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In my opinion, Windows is a virus, just waiting to infect your systems! I ONLY use Linux. My wife is an Apple user (iPad and Mac workstations). Neither of us have virus issues, or lost files such as this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Random number generators is a "mature" science. This may help you understand the subject matter: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html

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

To put it succinctly, this site is here to provide general computer as well as programming help to the community. It has a number of forums for these and other related purposes. If you have a question, such as a problem with your computer, you can post it here and usually someone will respond within a day or two.

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

You say you are using the cable that came with the display? Have you tried an "official" Apple cable? It is possible that your cable is defective.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This article may help you: https://en.wikipedia.org/wiki/ISO_8601

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

As diafol said - do you just want to convert PHP output to Word documents? That is easy (assuming you know php well enough). To convert abstract data to Word is an entire other kettle of fish! In any case, you need to show us what your data is and what problems your are having before we can contribute more to your solution.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It mostly depends upon the video card you are going to use. I have dual monitor support on my server (a Linux CentOS system with nVidea 1800GT card w/ 2 ports). My laptop has an HDMI and VGA ports, and runs an nVidia GTX card. Unfortunately, it will display the same output on both monitors... :-( I will report back if I can overcome this problem.

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

I've had similar problems when either the CPU or RAM would overheat. As a Linux user, I had access to the sensors tool and could monitor the temperature of these parts. I found that the RAM was overheating, but because I was only using 1/2 of the available slots, I staggered the spacing and the problem went away. Now, it runs nice and cool! At 10+ years old, it is still a kick-### server! Dual quad-core Intel chips and 8GB of RAM. Also, it, being custom built, has a 1000 watt PS. Never go cheap on the power supply!

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

Your first problem here is the factorization of any random number. The second is to see if the factors sum up to the number itself. The function is the simple part. It should take a single argument (the number) which is factored and summed in the function. From there the answer is either true or false.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In any case, this is HTML code, not PHP. You can put HTML in PHP class member variables and then output them in one shot, and this error should not occur. Do remember you still need to express the HTML code properly in the PHP variable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When I compile a Linux kernel and use too many cores (my server is an 8 core dual cpu) it gets very hot. I monitor the temperature with the sensors tool. That also monitors my RAM heat. It has saved my ass on a number of occasions! :-)

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

I have all of my hardware plugged into a top-line UPS which also includes an industrial grade surge supressor. We get somewhat frequent electrical storms here, power surges, and black/brown outs. So far, after 12 years I have no lost any gear as a result.