rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are never calling the member a() and b() functions to initialize the variables, so they contain random data.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Write the solution in pseudo code first - the exact steps and processes you need to follow to get the correct answer, and then write the code to reflect that. DO NOT start with code! People keep asking me why I spend so much time on analysis and design (and stuff like this). My answer is simple - I take 80% of the time to model the problem correctly, then I can write the code in a day or two! And it will work the first time... After 35 years as a professional software engineer, I can say without exception that this is the best approach. Other engineers will write the code in a couple of days, and then spend twice as much time on re-design and bug fixing than I did on the design/analysis phase in the first place!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Honestly, in 35 years of C and C++ software development professionally, I have never seen such an error. What compiler (and version) are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Home and small business routers that incorporate a WiFi access point (most do these days) allow you to set the "channel" that the access point uses. For normal WiFi devices there are 12 channels, the default of which is usually 6. That said, since 6 is the default, the more traffic on a specific channel there is (and accessible, but non-connected access points will affect this), the slower your speed and throughput will be. If that seems to be an issue for you, you can go into the router/AP setup (web) menu and change the channel. You can experiment until you find one that works best for you. The devices that connect to the AP (access point) will adapt automatically.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Asking people to analyze over 400 lines of code is disrespectful IMO. Eliminate the unnecessary cruft such as many of your getter/setter methods for this class that do no touch the $url member.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Standard data queries - SQL
Advanced Oracle programming - PL/SQL

Do note that PL/SQL is a derivative of the ADA programming language. It also gives you access to Oracle's built-in Java virtual machine, so you can also use it with Java programs (I have done this in the past).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

These are not trivial needs, but common in data analytics. You need to do your homework. There are tools such as SPSS, SAS and other statistical/analytic programs.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Date and time output formatting can easily be done with a format string in the query. Check the MySQL online documentation for your version for details: www.mysql.com

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This could also be indicative of a hardware problem. See if the system vendor has a diagnostic program that can interrogate the hardware. Sometimes such can be found on the recovery partition.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffitt said. You can boot your win10 system with a Linux live disc (as long as it is uefi compatible - Ubuntu or Mint work well) and use that to mount the failing Windows discs and copy the data to the target Windows disc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

My first custom build was almost 10 years ago - an Intel workstation/server MB socketed for dual processors, 8GB RAM, 350GB system drive, nVidia graphics card, 4 1TB data drives. It still works for my daily development tasks and only has had a couple of disc failures that I was able to pull the data from to install on new discs - the SMART interfaces of the disc warned me when they were starting to go bad.

One bit of advice - make sure your power supply is beafier than you think you need. For a system such as you describe, a 750-1000watt supply is called for - better too much than too little capacity for this.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The principal user of a computer should (under most circumstances) be a member of the Administrator group for that PC (only) so they can do these things without a lot of futzing around.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Drop hotmail. Go with gmail.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffitt said. Some routers turn that on automatically. Others require configuration to enable that. There are other solutions, but nothing that you would likely be able to employ.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This isn't simple. Please tell us exactly what you want to accomplish. FWIW, backtracking is usually a recursive algorithm. Wikipedia may help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Show your database schema (structure) and code, as well as specific issues/errors you are getting if you want some help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Showing your code would also be helpful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I suspect your sound will be fine. Dolby is primarily a noise reduction and sound enhancement technology, although that may have changed over the years.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please describe precisely what each field represents so we can tell if you are missing something.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@rproffitt - unless you set the compiler switch to treat all warnings as errors... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, there are gcc options such as -static to generate static libraries with GCC which will be passed to AR appropriately. That may be simpler for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, remember there are two MySQL api's for PHP. One is the mysql api (deprecated and no longer supported), and the newer mysqli api which is the currently supported one. You will find documentation for them on the PHP web site documentation pages.

rproffitt commented: +1 for noting that. +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I'm having a similar problem with my Dell D630 (old system) laptop due to age issues with the display card and system board/bus. I was able to reduce the problem by switching the BIOS to use the internal video adapter instead of the nVidia one.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The main question is whether or not there is a tool chain for you to compile code for this DSP. I am not familiar with it so I can't recommend any web sites, but the chip/board vendor should either have a tool chain to build code under Linux, api's that provide the glue code needed to send instructions to the chip, and other appropriate links/instructions.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

BTW, when he retired, Bruce was VP of engineering at SBC global (now AT&T).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Floating point math on digital chips is notoriously difficult, and you need to throw away the last bits at the least. My good friend and college buddy Bruce Ravenel designed the architecture of the Intel 8087 math co-processor (https://en.wikipedia.org/wiki/Intel_8086) which was the first implementation of the IEEE floating point standard on a chip. By doing all computations in 80 bits internally (instead of the 64 bit double precision floating point standard), he was able to truncate the result and store to a 64 bit variable without loss of precision like what you see. Here is the specific article on the 8087 chip set which will answer some of your questions: https://en.wikipedia.org/wiki/Intel_8087

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you are rounding up then your results should be 2.90, 3.50, and 0.80. IE, the first term is incorrect. There are standard algorithms for this which you can probably find in Wikipedia, such as this page: https://en.wikipedia.org/wiki/Rounding

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Every major distribution has a section of documentation called How-Tos or FAQs. They also have user forums which are great for getting questions answered like you will have. Then there are the Linux Forums (www.linuxforums.org) which is full of helpful posts on most distributions plus other stuff (networking, programming-scripting, etc).

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can move your photos, videos, audio tracks etc. to the SD card, and as mentioned, some apps can be moved to the card as well. Some will not allowed being moved. Myself, I have been using Android since it first came out and never had an issue moving apps to the card.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what exactly is your problem? Have you considered writing a stored procedure in the database that can take the relevant data and do those inserts within the scope of a single transaction? That is a LOT safer than doing the inserts directly in your web code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you using PHP on the server? If so, then you can load the data in the server, build the web page into a string variable, and then display it all with one output to the client. Remember, PHP is basically C++ for web servers. Most people misuse it terribly and massively intermix it with HTML, javascript, etc. with the expected results of crappy performance.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Oracle was developed for Unix systems which use a backslash as an escape character. Try either a forward slash, or a double back-slash. I haven't run Oracle on Windows systems so I am surmising here. IE: try either c:/spool.txt or c:\spool.txt and see what happens. Also, if you look at the root of the c drive, do you see the file?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A syntax error has nothing to do with the data. If the println() function on line 128 is failing, then you did something wrong in the code before that line. You need to run this in the debugger and single step through the function until you find the root cause. Please show the compiler error.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends. If the embedded system is not real-time constrained, then any such can use cloud resources for database, heavy duty application processing, etc. If they are real-time constrained, then the question is whether that is "soft" or "hard" real-time. Hard real-time is not a suitable situation to use cloud resources as communications and other latencies are unknowable, hence distinctly not real-time. Soft real-time depends upon a worst-case latency factor, and must have alternate computing/database resources if the cloud resources are unavailable due to network, cloud provider, or other issues.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, if you don't get errors, a copy of your output would be helpful. You say at the bottom of your code that you assume you have a problem in the try/catch block. Does it throw an exception? Are you catching it? Also, you have 2 try/catch blocks. Which is the problem one?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming you store the salted password in the database, why not use that to zip the files? If the user wants to access that data, then since they have been authenticated by the login process, you can just use that salted hash to unzip the file and give them access to download, view, or whatever.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can build Java apps via Make, assuming you instruct the Makefile to use the javac compiler and not C/C++, but these days Ant is most commonly used to build Java apps; however, Ant can be called from a Makefile. I did this all the time at Nokia.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

C++ is great for enterprise-class large-scale systems, but you need a good foundation in object-oriented design and software development. Personally, I don't think the language you start with is that important. The fundamentals of problem deconstruction and partitioning are. I started with Fortran in engineering school, then learned BASIC, then 8048 assembler, then C, dBaseII and dBaseIII, SQL, 8086 assembler, C++, Smalltalk, TCL, Java, Visual Basic, C#, sh, csh, ksh, bash, perl, python, XML, HTML, HTTP, PHP, Javascript, ...

Personally, I still prefer C++. :-) However, I still write C and assembler for Linux kernel code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Knowing more fully what you are trying to acccomplish would be useful.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Do a full cold shutdown - no sleep and no hibernate.
  2. Restart the computer.
  3. Get some compressed air and blow the dust out of the drive.
  4. Try the CD/DVD drive again.

If it works, it was a system software glitch or dirt on the read/write head. If not, get a replacement drive.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@ddanbe - I took a course in neural network programming at MIT some years ago. The class instructor was a very bright young US Air Force Captain who used neural networks to design the antennas for phased array radar systems. He was able to get orders of magnitude improvements in signal strength and resolution as compared to traditional engineering methods. The resulting forms of the antennas were not what one would expect, but they worked!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Open Office uses a lot of Java, as does Libre Office, but they also use C++. In the mid-1980's I was director of engineering for a company that wrote a multi-user distributed office automation suite in C for the QNX operating system. Word processing, spreadsheet, database, etc.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

For the communication of code design issues, and the wheres and whyfores of your code, do some research into javadocs. There are patterns of commenting code so that the javadoc application tool can generate documentation of the code, interfaces, class structures, etc.

As for packaging of your code, research the java ant tool. You build xml files that tells ant what to build, what packages to build, and where to build/install them.

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

Regular expressions like this can be more difficult to specify than doing something simple and obvious. IE, iterate over the string character by character and the first non-whitespace character has to be '?'. That is what you want, isn't it?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Or you just go out and purchase a pre-canned solution - probably not cheap either for anything that works reasonably well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Facial recognition is an extremely complex superset of pattern recognition. Even experts who have been working on and researching this field for decades are just now coming up with reasonable solutions. This is not an exercise for newbies. The math is not simple, and translating that into code is equally not so simple. There are some good graduate-level text books on the subject (none are cheap), but first you need a strong foundation in the math involved - and linear algebra as ddanbe suggested, is just the beginning. Add in fractal geometry, etc.

I studied pattern recognition in grad school years ago and got to the point where my software could detect simple stuff - nothing as complex and varied as 3d mutable images (faces). You have to detect eyes, ears, eyebrows, and their relative separations, as well as forehead shapes/slants, chin forms, lip conformations... Each of those requires a separate algorithm, and code, to isolate and combine into a cognizant whole computer model that can be rendered into some weighted numeric value. Then, when you are scanning an image to detect if that face is in your database, you have to perform all those calculations, generate that value, and see if there is a close match in the database. As said, the math alone is killer!

So, go to school, get a degree in software engineering, and then go for a PhD in the field of pattern recognition. In about 10-15 years you may be ready to tackle the …

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sounds like a short circuit on the mobo to me. Some of those are hard to find if you aren't an experienced computer tech or electrical engineer.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you run chkdisk on these disks/partitions?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffitt said. At the least, we need to see the code where you format and output your data.