These days are really dummies.

Source: Internet
Author: User

First install the configuration environment to compile opencv or something over the past few days. But the greatest achievement is the sense of accomplishment (although weak), and the second is the awareness of a scientific method system.

 

Let's talk about programming. The algorithms running ml in the past few days are still running image classification and recognition. There will always be some errors, and then the first reaction is no matter how many people search for them. A lot of time is wasted and the frustration is huge.

I think it is useful to first check the error prompt if you encounter any more problems. Then we can look at the error results. Think about the possible error. As Allen of thinkpython introduced earlier, we need to troubleshoot the problem step by step and make a system debug. (This is not the case in the original article, but I will assume that .)

 

The previous kmeans errors were investigated separately, so it was easy to locate the first part of the iteration and write an error. It is not an algorithm error, or program errors. This also reflects that index always uses I, and J cannot be clearly classified. If the entire program uses A, B, and C, it cannot be exhausted. This method is easily grafted to discuss with students why the EM algorithm always iterates four classes into two classes. Because an error occurred during initialization.

I tried to get into the MySQL instance on Asus windows for a long time .... I thought the password was forgotten .... Later, I checked the error message and found that the MySQL server was not started... I have read a lot of tutorials on the Internet, such as how to change the password of blablabla after it is started. I turned my mind around.

I thought it should be very simple to configure the SQL environment. I configured MySQL first,

#!bin/zshbrew install mysql

Then you can easily open mysql. server. Then, the workbench on the GUI is installed.

Then, PostgreSQL is configured in the same way, and hombrew is also used. During the installation, I tried to install the S GUI, installed the GUI installation package together with the server, and set the password.

Try terminal to start ipvs service. Password.

Error...

Error...

Then it crashes. In the same way as MySQL does, it needs to be restarted. Then restart ..... Why is there an additional PostgreSQL user !!!

Different passwords are also incorrect .... Complete crash .....

In the evening, I will discuss with my colleagues about using MAC xcode for opencv. Follow the path he configured before to try, and then .... Error...

 

When I got home, there were several errors at hand. What is the PostgreSQL password? Why can xcode be used before?

In my heart, the impulse to successfully configure is that I have to deal with them.

First, let's take a look at the PostgreSQL password and reload it over and over again. Refer to the tutorial on the official website of postgresql.org. The final solution is to install the 9.3.5 version of postgresql with homebrew, then, the separate installation package of pgadmin is installed on the GUI. After a try, PostgreSQL installed by homebrew does not have a password. I used the password set on the GUI. It should be because the pgsql server password configured on the local machine is written in a file, I also read it through pgadmin, And the password is encrypted by MD5. But after homebrew is installed, there will be an additional standard PostgreSQL user in your usresgroup, this password is not my previous password, but it does not matter. We are admin, And I deleted it directly. If you have any questions in the future, I will add them.

Finally, I got one. The following describes why opencv cannot be used.

A night of tangle .. From .... The opencv of eclipse C ++ is also configured.

Then the reason is simple .... Dumb cry

Mac xcode: first, the path of librarysearchpath is incorrect ..... The following two commands can be used to locate the path of opencv. Of course, other commands can also be used.

#! bin/zshpkg-config --cflags opencvpkg-config --libs opencv

One returns the path required for include, and the other is librarysearchpath.

Then the project, that is, the error on the IDE, should be imported into a set claimed by the vs environment. Project name is not correct ...... The name is not correct !!!

Eclipse: a set of various brainless opencv.org official websites. Then it fails .....

The final problem is that the GUI of eclipse for Mac is slightly different from that of Linux, I created a displayimage folder under the displayimage project, and then prompted nothing to be done for "all" after building ".

I am speechless. I feel that these two errors are my own C ++ IDE and I am not familiar with the basic principles. In the past, I always ignored this and did not pay attention to it. When I got to the project, I put myself in the air.

Summary: The solution is sometimes very simple. Start with the basic questions, analyze them a little bit, and then test them.

PS. It is recalled that the Windows Prompt is used to compile Java. In fact, the benefits are quite a lot. I forget the simplest one when I use Python and Js. You still need to work hard.

These days are really dummies.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.