Category Archives: How to Fix

What is cs1525 error

The original address: https://support.unity3d.com/hc/en-us/articles/206126976-What-is-CS1525-
symptoms
You see the following error in the Console window:

Error CS1525: Unexpected symbol ‘__, expecting’.

why
This error is raised when an invalid character is encountered in an expression. For example, the if statement in the following example does not allow the symbol “a” to follow the if statement.

The error message for this example is as follows:

Error CS1525: Unexpected Symbol ‘a’, expecting ‘(‘

The solution
Make sure the correct symbol appears in the expression. In this case, we need to add a “(” symbol to the right of the if statement, because the missing left parenthesis makes” a “an invalid symbol.

For more information
https://msdn.microsoft.com/en-us/library/3hdyz4dw(v=vs.90).aspx

Solving the problem of saving object set by save() function in R language

Solve the save() function in R language to save the collection of objects – & GT; The Art of R programming, P195

>ls()
[1] "j"              "joe"            "k"              "o"              "print.employee" "z"             
> z<-rnorm(100000)
> hz<-hist(z)
> save(hz,"hzfile.RData")
Error in save(hz, "hzfile.RData") : The target object 'hzfile.Rdata' does not exist.
> save(hz,"hzfile")
Error in save(hz, "hzfile") : The target 'hzfile' does not exist.
> save(hz,file="hzfile.RData")
> ls()
[1] "hz"             "j"              "joe"            "k"              "o"              "print.employee" "z"             
> rm(hz)
> ls()
[1] "j"              "joe"            "k"              "o"              "print.employee" "z"             
> load("hzfile")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'hzfile', probable reason 'No such file or directory'
> load("hzfile.RData")
> ls()
[1] "hz"             "j"              "joe"            "k"              "o"              "print.employee" "z"             

As shown below:


When you use save(), you use the “file” parameter, and the suffix of the file is “.rdata “. If you use load(), the suffix of the file is “.rdata”

How to solve oserror: [errno 98] address already in use and kill the python3 process

[root@localhost appp_dai]# python3 run_app.py

Traceback (most recent call last):

File “run_app.py”, line 33, in < module>

app. The run (debug = True, the host = ‘0.0.0.0’, the port = 5000)

the File “/ usr/local/python3/lib/python3.6/site – packages/flask/app. Py”, line 841, in the run

run_simple(host, port, self, **options)

the File “/ usr/local/python3/lib/python3.6/site – packages/werkzeug/serving. Py”, line 795, in run_simple

s.b ind (get_sockaddr (hostname, port, address_family))

OSError: [Errno 98] Address already in use

[root@localhost appp_dai]#
ps -elf|grep 500

4 S root 14674 14513 0 80 0-47537 futex_ April 02?00:00:00/usr/libexec/docker/docker – proxy – current proto TCP – host – IP 0.0.0.0 – host – port 50070 – container – IP 172.17.0.2 – container – port 50070

0 S root 17743 1076 0 80 0-28170 pipe_w 18:34 PTS /0 00:00:00 grep –color=auto 500

[root @ localhost appp_dai] #

[root@localhost appp_dai]#
net

netreport netstat

[root@localhost appp_dai]#
netstat -tlnp|grep 5000

TCP 0 0 0.0.0.0:5000 0.0.0.0: * LISTEN 2345/python

[root@localhost appp_dai]#
kill -9 2345

[root@localhost appp_dai]#
netstat -tlnp|grep 5000

[1]+ python run_app.py killed

View all ongoing processes on the machine

[root@localhost appp_dai]# ps -elf|grep 500

View the native 5000 port process

[root@localhost appp_dai]# netstat -tlnp|grep 5000

Reason: Close the IDE without stopping the project.  

Or the previous project did not stop and the project was run again.  

Solution: The former is simple and kills the process. The latter is easier to stop a project that is running.  

The order to kill the process (a little insulting to everyone’s intelligence, but to add) :

lsof -i :
5000

This command is for the hostport5000 I am using. Please change it by yourself.

1

If you are viewing all ongoing processes on the machine:

ps aux
# See all processes with PS-A

1

Kill process:

kill

9
PID
# PID is the process number, which is displayed when viewing a process, such as 23645

MySql ERROR CODE:1215 Cannot add the foreign key constraint

The reason why mysql cannot add foreign keys appears
1. The data type and data length of the associated columns of the two tables are inconsistent.
For example, vARCHAR (20) is in column A of Table A, and VARCHAR (25) is in column B of table B. In this way, A and B cannot form foreign key association relationship.
 
2, when creating tables, add ENGINE=InnoDB DEFAULT CHARSET= UTf8;
CREATE TABLE `A` (

) ENGINE=InnoDB DEFAULT CHARSET=utf8;
In this way, if the B table and A table to be associated with the foreign key, then create B table also add ENGINE=InnoDB DEFAULT CHARSET= UTf8;

【error】Segmentation fault (core dumped)

Make, Make all, Make Runtest, make Pycaffe were all successfully installed in caffe
However, when making pytest, an error fault occurs (core Dumped) as follows

    [zs@gpu09 caffe]$ make pycaffemake: Nothing to be done for `pycaffe’.[zs@gpu09 caffe]$ make pytestcd python; Python-m unittest discover -s caffe/test/bin/sh: line 1: 10541 **Segmentation fault (core dumped)** pythonm unittest discover -s caffe/testmake: *** [pytest] Error 139

I have encountered Segmentation fault (Core Dumped) when I was writing my program, one dimension of the three tensors was too large, which caused the memory overflow.
But this time I was running the official program at Caffe, so I probably won’t use Pointers or illegal Pointers at will.
Explanation:
 
Core dump is also called a core dump.
When an exception occurs while a program is running and the program exits, the operating system stores the current memory status of the program in a core file called core dump.
While the program is running, errors like Segment faults are difficult because there is no stack and trace information output.
This type of error is often associated with pointer operations. Positioning can often be done in this way.

    [zsun@gpu09 caffe]$ulimit -a | grep ‘core file size’– dump core file size (blocks, -c) 0– 0 $ulimit -c unlimited- open dump core[zsun@gpu09 caffe]$ulimit -a | grep ‘core file size’core file size (blocks, -c) unlimited

 
Or – view all, as follows
 

    [zsun@gpu09 caffe]$ulimit-c unlimited[zsun@gpu09 caffe]$ulimit-acore file size (blocks, -c) unlimiteddata seg size (kbytes, -d) unlimited file size (blocks, -f) UnlimitedStack Size (KBytes, -s) 8192 Max User Processes (-U) 4096Virtual Memory (KBytes, -v) UnlimitedFile Locks (-x) Unlimited…

I’m going to make the core file again.
!!!!! Mine didn’t generate a core file!! There’s a blog post that goes something like this: “If there’s an error but there’s no Core dump, it’s because the system has banned the creation of core files.”  
 
 
And my current “Import Caffe” in Python code shows that there is no caffe module. Does this mean that caffe was not installed successfully?
 
 

Call to undefined function oci_ Connect() problem solving

Call to undefined function Oci_connect () issue resolved

Important: Make sure that PHP is the same version as the Oracle client that you want to install. It must be both 32-bit and 64-bit, or the OCI extension will not be available

1. View the PHp.ini configuration file:

A. Open the module path setting: view; Extension_dir = “ext” or “ext”; , and change the quotes to “PHP installation path \ext”, such as extension_dir = “D:\ PHP \php5\ext”


B. Open the OCI module and will; The extension = php_oci8. DLL,; Extension = PHp_oCI8_11g.DLL started; Remove to open the OCI module


After the module opens, restart IIS or Apache,
Check the output of your phpInfo () function to see if OCI8 is supported;

If not, proceed to the next step

2. Confirm whether oracle client is installed. If not, install Oracle client first. The client download address: link: http://pan.baidu.com/s/1kUUY1tP password: xq37.

At present, I am using oracle10g database and only have oracle10g client.

Installation tutorial: open ora10client.exe to start the installation, there is nothing special to set up, the default next step to know the installation is successful.


After successful installation, modify the HOST,PORT and SID parameters in the TNsnames.ora file under the Oracle folder


After modification, use the plsqldev.exe client to log in:


At this point, the client installation is complete. Please proceed to the next step

3. Write the oracle PATH to the computer environment variable PATH, and then restart the computer to make the PATH effective.

At this point, the basic solution to the problem, welcome to discuss.

If it has not been solved and there is a follow-up solution, please leave me a message, thank you.

ERROR 2026 (HY000): SSL connection error: ASN: before date in the future

When setting up mysql database to implement master-slave replication based on SSL today, an error occurred when logging in master server from slave server test:
ERROR 2026 (HY000): SSL connection error: ASN: before date in the future
ERROR 2026 (HY000): SSL connection error: protocol version mismatch

So the Internet search under the master, slave server time is not synchronized, but found that the master, slave time is consistent
And you can log in to the Master server without SSL
It was determined that the problem was SSL
Finally, it was found that the problem was caused by the CA host, whose time was ahead of its time, which was very weird…

Solution:
Synchronize ca host time, revisa

TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::HistoryManagerImpl@f22eee1

Recently discovered a flex modules loaded trigger dragManager error, in the main application inside put a moduleLoader to load module, put the two buttons to control the repeated load, according to the first load module, a button press another button to uninstall the module, using the moduleLoader load method, loading unloading using unloadModule () method, module placed in a datagrid, found in the testing process, when to reload the module, Is also carried out a unloadModule method and then press the first button to reload the module, if this time to click on any one line will appear inside the datagrid:
TypeError: Error # 1034: the Type Coercion failed: always convert.
mx managers: : DragManagerImpl@12631a61 converts to the error mx.managers.idragmanager
. After a long search on Google, I finally found the solution on a foreign forum. It is as simple as adding
import mx.managers.DragManager into the main application.
private var dragManager: dragManager;
these two sentences will solve the problem. As for why can appear such circumstance, find an explanation for the others on the Internet, the following is from Google a flex discussion group of other people’s answer (HTTP:// groups.google.com/group/riadev/tree/browse_frm/month/2007-05/5eeebf64e4926c45?rnum=11& _done = % 2 fgroup % 2 friadev % 2 fbrowse_frm % 2 fmonth % 2 f2007-05% 3 f)
QUOTE:

This is Shared code for Module,

this problem tends to occur when managers are used in a Module (such as PopUpManager, DragManager, HistoryManager),

manager’s methods are static methods, and a singleton of this manager interface is created throughout the application,

but a module USES this singleton only in its own Application domain, when multiple modules use the same singleton and main
This empty object reference problem occurs when the
application is not in use: a module that first introduces a manager cannot follow the singleton of the manager interface

is Shared by other modules. When other modules call the method of the Manager, the application will not create the instance of the Manager interface any more, so this module cannot refer to the instance of the Manager interface, which causes the problem of empty object reference. You can refer to Flex source code.

Accordion and TabNavigator’s historyManagementEnabled = by default

true; And ViewStack’s historyManagementEnabled = false;

so be aware of HistoryManager’s Shared code issues when using TabNavigator and Accordion. This problem also occurs when only one module USES HistoryManager and that module is loaded after uninstalling, indicating that the second load is equivalent to a new module.

a solution:

introduces the relevant manager in the main application by declaring the reference of the manager in the main application, as follows:

import mx.managers.HistoryManager;

var historyManager:HistoryManager;

other managers are similar.

can also load the Shared code into the main application domain as a module, which can be explained in detail by referring to Alex

Harui PPT:

Speak http://blogs.adobe.com/aharui/presentations/ below the presentation about the module, very detailed.

WCF error “an error occurred when verifying security for the message”… “

This is the problem encountered when deploying a project on the client machine in June. C and S can’t be connected to each other. If they are installed on one machine, it will be ok. Finally found that the two machine clock is out of sync, the difference of a few hours, after the correction of time is OK. The problem took a day to solve.

Reproduced in: https://www.cnblogs.com/Gildor/archive/2009/09/05/1560825.html

Solve the unmarshalling error: unexpected element (URI: “local:” name “). Expected elements are

Unmarshalling Error: unexpected Element (URI :””, local:”name”). Expected Elements are < {}arg0>
Solutions:
Call the WebService interface to Error Unmarshalling Error: unexpected Element (URI :””, local:”name”). Expected Elements are < {}arg0>
Reason is the server-side service interface parameters before add: http://www.yayihouse.com/yayishuwu/chapter/1788