Author Archives: Robins

TensorFlow tf.keras.losses .MeanSquaredError

Mean-square error (MSE)

mse = tf.keras.losses.MeanSquaredError()
loss = mse([0., 0., 1., 1.], [1., 1., 1., 0.])
print('Loss: ', loss.numpy())  # Loss: 0.75

 

__init__(
    reduction=losses_utils.ReductionV2.AUTO,
    name='mean_squared_error'
)

 

__call__(
    y_true,
    y_pred,
    sample_weight=None
)

 

Error: Cannot find module ‘webpack/schemas/WebpackOptions.json’

1. Error reason

C:\Users\Administrator\cma>webpack you.js today.js
internal/modules/cjs/loader.js:573
    throw err;
    ^

Error: Cannot find module 'webpack/schemas/WebpackOptions.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (C:\Users\Administrator\node_modules\v8-compile-cache\v8-compile-
cache.js:159:20)
    at Object.<anonymous> (C:\Users\Administrator\node_modules\webpack-cli\bin\c
onfig-yargs.js:1:85)
    at Module._compile (C:\Users\Administrator\node_modules\v8-compile-cache\v8-
compile-cache.js:178:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)

C:\Users\Administrator\cma>

2. Error reason
When you use WebPack to package JavaScript files, you first prompt for this

One CLI for webpack must be installed. These are recommended choices, delivered
as separate packages:
 - webpack-cli (https://github.com/webpack/webpack-cli)
   The original webpack full-featured CLI.
 - webpack-command (https://github.com/webpack-contrib/webpack-command)
   A lightweight, opinionated webpack CLI.
We will use "npm" to install the CLI via "npm install -D".
Which one do you like to install (webpack-cli/webpack-command):

Webpack-cli was selected and installed

Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm WARN deprecated [email protected]: Package no longer supported. Contact support@n
pmjs.com for more info.
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\esparse.cmd as
 it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@espri
ma
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\esparse as it
wasn't installed by C:\Users\Administrator\node_modules\[email protected]@esprima
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\esvalidate.cmd
 as it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@es
prima
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\esvalidate as
it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@esprim
a
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\coffee.cmd as
it wasn't installed by C:\Users\Administrator\node_modules\coffee-script
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\cake.cmd as it
 wasn't installed by C:\Users\Administrator\node_modules\coffee-script
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\coffee as it w
asn't installed by C:\Users\Administrator\node_modules\coffee-script
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\cake as it was
n't installed by C:\Users\Administrator\node_modules\coffee-script
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\semver.cmd as
it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@semver
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\semver as it w
asn't installed by C:\Users\Administrator\node_modules\[email protected]@semver
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\rimraf.cmd as
it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@rimraf
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\rimraf as it w
asn't installed by C:\Users\Administrator\node_modules\[email protected]@rimraf
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\mkdirp.cmd as
it wasn't installed by C:\Users\Administrator\node_modules\[email protected]@mkdirp
npm WARN rm not removing C:\Users\Administrator\node_modules\.bin\mkdirp as it w
asn't installed by C:\Users\Administrator\node_modules\[email protected]@mkdirp
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\Administrat
or\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\
package.json'
npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is install
ed. You must install peer dependencies yourself.
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.

+ [email protected]
added 615 packages from 252 contributors, removed 615 packages and updated 30 pa
ckages in 139.557s
[!] 855 vulnerabilities found [13424 packages audited]
    Severity: 846 Low | 9 High
    Run `npm audit` for more detail

{ Error: Cannot find module 'webpack/schemas/WebpackOptions.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (C:\Users\Administrator\node_modules\v8-compile-cache\v8-compile-
cache.js:159:20)
    at Object.<anonymous> (C:\Users\Administrator\node_modules\webpack-cli\bin\c
onfig-yargs.js:1:85)
    at Module._compile (C:\Users\Administrator\node_modules\v8-compile-cache\v8-
compile-cache.js:178:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3) code: 'MODUL
E_NOT_FOUND' }

During the installation process, a lot of prompts can not be removed, can not find the relevant JSON file

3. Solutions
CNPM install – save – dev webpack

C:\Users\Administrator>cnpm install --save-dev webpack
\ [0/1] Installing object.pick@^1.3.0[[email protected]] download Error: GET
 http://registry.npm.taobao.org/fast-deep-equal/download/fast-deep-equal-2.0.1.t
gz response 504 status, fail count: 1
/ [0/1] Installing uglifyjs-webpack-plugin@^1.2.4[npminstall:get] retry GET http
s://registry.npm.taobao.org/uglifyjs-webpack-plugin after 100ms, retry left 4, e
rror: SyntaxError: Unexpected end of JSON input
- [0/1] Installing is-descriptor@^1.0.0[npminstall:get] retry GET https://regist
ry.npm.taobao.org/acorn after 100ms, retry left 4, error: ResponseError: socket
hang up (req "error"), GET https://registry.npm.taobao.org/acorn -1 (connected:
true, keepalive socket: false, agent status: {"createSocketCount":21,"createSock
etErrorCount":0,"closeSocketCount":3,"errorSocketCount":0,"timeoutSocketCount":1
,"requestCount":138,"freeSockets":{"registry.npm.taobao.org:443::::::::true:::::
:::":4},"sockets":{"registry.npm.taobao.org:443::::::::true::::::::":4,"cdn.npm.
taobao.org:443::::::::true::::::::":10},"requests":{"cdn.npm.taobao.org:443:::::
:::true::::::::":12}})
headers: {}
\ [0/1] Installing kind-of@^3.0.2platform unsupported [email protected] › watchpac
[email protected][email protected] › fsevents@^1.1.2 Package require os(darwin) not comp
atible with your platform(win32)
[fsevents@^1.1.2] optional install error: Package require os(darwin) not compati
ble with your platform(win32)
/ [0/1] Installing minimalistic-crypto-utils@^1.0.1[npminstall:get] retry GET ht
tps://registry.npm.taobao.org/move-concurrently after 100ms, retry left 4, error
: ResponseError: socket hang up (req "error"), GET https://registry.npm.taobao.o
rg/move-concurrently -1 (connected: true, keepalive socket: true, agent status:
{"createSocketCount":23,"createSocketErrorCount":0,"closeSocketCount":4,"errorSo
cketCount":0,"timeoutSocketCount":2,"requestCount":415,"freeSockets":{"registry.
npm.taobao.org:443::::::::true::::::::":8},"sockets":{"cdn.npm.taobao.org:443:::
:::::true::::::::":10,"registry.npm.taobao.org:443::::::::true::::::::":1},"requ
ests":{"cdn.npm.taobao.org:443::::::::true::::::::":16}})
headers: {}
\ [0/1] Installing once@^1.4.0[npminstall:get] retry GET https://registry.npm.ta
obao.org/component-emitter after 100ms, retry left 4, error: ResponseError: sock
et hang up (req "error"), GET https://registry.npm.taobao.org/component-emitter
-1 (connected: true, keepalive socket: true, agent status: {"createSocketCount":
26,"createSocketErrorCount":0,"closeSocketCount":7,"errorSocketCount":0,"timeout
SocketCount":3,"requestCount":436,"freeSockets":{"registry.npm.taobao.org:443:::
:::::true::::::::":9},"sockets":{"cdn.npm.taobao.org:443::::::::true::::::::":10
},"requests":{"cdn.npm.taobao.org:443::::::::true::::::::":21}})
headers: {}
\ [0/1] Installing is-buffer@^1.1.5[npminstall:get] retry GET https://registry.n
pm.taobao.org/run-queue after 100ms, retry left 4, error: ResponseError: socket
hang up (req "error"), GET https://registry.npm.taobao.org/run-queue -1 (connect
ed: true, keepalive socket: true, agent status: {"createSocketCount":26,"createS
ocketErrorCount":0,"closeSocketCount":14,"errorSocketCount":0,"timeoutSocketCoun
t":7,"requestCount":499,"freeSockets":{"cdn.npm.taobao.org:443::::::::true::::::
::":7,"registry.npm.taobao.org:443::::::::true::::::::":1},"sockets":{"cdn.npm.t
aobao.org:443::::::::true::::::::":3,"registry.npm.taobao.org:443::::::::true:::
:::::":1},"requests":{}})
headers: {}
/ [0/1] Installing aproba@^1.1.1[npminstall:get] retry GET https://registry.npm.
taobao.org/p-limit after 100ms, retry left 4, error: ResponseError: socket hang
up (req "error"), GET https://registry.npm.taobao.org/p-limit -1 (connected: tru
e, keepalive socket: true, agent status: {"createSocketCount":27,"createSocketEr
rorCount":0,"closeSocketCount":25,"errorSocketCount":0,"timeoutSocketCount":17,"
requestCount":506,"freeSockets":{"cdn.npm.taobao.org:443::::::::true::::::::":1,
"registry.npm.taobao.org:443::::::::true::::::::":1},"sockets":{},"requests":{}}
)
headers: {}
√ Installed 1 packages
√ Linked 256 latest versions
√ Run 0 scripts
Recently updated (since 2018-05-25): 21 packages (detail see file C:\Users\Admin
istrator\node_modules\.recently_updates.txt)
  Today:
    → [email protected] › acorn@^5.0.0(5.6.1) (15:49:17)
√ All packages installed (263 packages installed from npm registry, used 3m, sp
eed 26.89kB/s, json 257(1.73MB), tarball 3.23MB)

node.js Cannot find module “XXX” solution

Node. js can’t find a solution for the module XXX.
in order. 1. Check for spelling mistakes.
2. This module is written by myself. Check to see if the path is correct.
3. If it is the imported module. Use the NPM List command to output whether this module exists. 4. Also note that the global module installation directory defaults to users/ user /node_modules below. The module that your project is reading is your installation directory (and probably the two directories are different). So sometimes you don’t have this module, and after you install it, you continue to report that you can’t find the module
The solution is to output the path of your installation module with NPM, find the reading path of the current project, and copy the corresponding module to it

Analysis of [error code [942], ora-00942 in synchronization of DDL statements in ogg

Recently, we encountered an OGG environment configured with DDL synchronization. During the synchronization, there was a synchronization exception on the backup library, and Fatal Error executing DDL Replication was reported: Error [Error Code [942], ORA-00942: By analyzing the OGG error log GGserr.log, it can be found that during the normal DDL synchronization, there is an operation to set the current SCHEMA, while during the synchronization error, the OGG software does not set the current SCHEMA operation; at this time, the USER OGGDBA executes the DDL, so the orA-00942 table does not exist.
In the future, I will further query from MOS. This problem may be caused by a BUG. The following documents are related to this problem:
OGG V11.2 Extract operator Session schema name in to the trails Causing replicat to fail on DDL Operations (ORA-00942) Table or View does not exist (document ID 1484499.1) for DDL Replication, Replicat Sets Session To different Schema than original one in source (document ID 1270161.1)
Related error reporting and troubleshooting analysis:
1. As can be seen from the reperp.rPT file, the information of the current OGG version is as follows:

$ cat REPPER.rpt
***********************************************************************
                 Oracle GoldenGate Delivery for Oracle
    Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
   Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:48:07</span>

2. From the GGserr.log file, it can be found that the log information when the problem occurred: ### Normal DDL synchronization information when OGG backup was applied: — column edit condition deleted the irrelevant column output

2018-01-30 21:38:47 :  Setting current schema for DDL operation to [JS_PERSONAL_TSM].
2018-01-30 21:38:47 :  Executing DDL operation.
2018-01-30 21:38:47 :  DDL operation successful.
2018-01-30 21:38:47 :  Restoring current schema for DDL operation to [ogg].
===========>>>>>Start a DDL sync.
2018-01-30 21:38:47 :  DDL found, operation [ALTER TABLE "AAABBB" ADD CONSTRAINT "FK_BMK_ABCDE_3" FOREIGN KEY ("KEK_INDEX") REFERENCES "T_ABCDE" ("KMS_ABCDE_INDEX") ENABLE NOVALIDATE  (size 131)].
2018-01-30 21:38:47 :  DDL is of mapped scope, after mapping new operation [ALTER TABLE JS_PERSONAL_TSM."AAABBB" ADD CONSTRAINT "FK_BMK_ABCDE_3" FOREIGN KEY ("KEK_INDEX") REFERENCES "T_ABCDE" ("KMS_ABCDE_INDEX") ENABLE NOVALIDATE  (size 147)].
2018-01-30 21:38:47 :  DDL operation included [INCLUDE MAPPED], optype [ALTER], objtype [TABLE], objowner [JS_PERSONAL_TSM], objname [AAABBB].
2018-01-30 21:38:47 :  Setting current schema for DDL operation to [JS_PERSONAL_TSM].
2018-01-30 21:38:47 :  Executing DDL operation.
2018-01-30 21:38:47 :  DDL operation successful.
2018-01-30 21:38:47 :  Restoring current schema for DDL operation to [ogg].
===========>>>>>stop a DDL sync.
===========>>>>>Start a DDL sync.
2018-01-30 21:38:47 :  DDL found, operation [ALTER TABLE "AAABBB" ADD CONSTRAINT "FK_BMK_ABCDE_2" FOREIGN KEY ("MAC_WK_INDEX") REFERENCES "T_ABCDE" ("KMS_ABCDE_INDEX") ENABLE NOVALIDATE  (size 134)].
2018-01-30 21:38:47 :  DDL is of mapped scope, after mapping new operation [ALTER TABLE JS_PERSONAL_TSM."AAABBB" ADD CONSTRAINT "FK_BMK_ABCDE_2" FOREIGN KEY ("MAC_WK_INDEX") REFERENCES "T_ABCDE" ("KMS_ABCDE_INDEX") ENABLE NOVALIDATE  (size 150)].
2018-01-30 21:38:47 :  DDL operation included [INCLUDE MAPPED], optype [ALTER], objtype [TABLE], objowner [JS_PERSONAL_TSM], objname [AAABBB].
2018-01-30 21:38:47 :  Executing DDL operation.
2018-01-30 21:38:47 :  Fatal error executing DDL replication: error [Error code [942], ORA-00942: 琛ㄦ垨瑙嗗浘涓嶅瓨鍦SQL ALTER TABLE JS_PERSONAL_TSM."AAABBB" ADD CONSTRAINT "FK_BMK_ABCDE_2" FOREIGN KEY ("MAC_WK_INDEX") REFERENCES "T_ABCDE" ("KMS_ABCDE_INDEX") ENABLE NOVALIDATE  /* GOLDENGATE_DDL_REPLICATION */], due to explicit ABEND error handling and filter [include all (default)].
2018-01-30 21:38:47 :  PROCESS ABENDING.
===========>>>>>DDL Synchronized post-error process ABENDING

From the above normal DDL synchronization log information, it can be found that when DDL is synchronized, the information displayed on the OGG backup library is as follows:
Line 1 log: DDL found. What is the specific DDL operation statement
Row 3: DDL operation included, which shows the operations, object types, OWNER, etc., that are mapped into the REP process in the OGG library. Row 4: Setting current schema for DDL operation to [JS_PERSONAL_TSM]., namely, to set the current schema for the subsequent execution of DDL statement, the fifth row log: executive DDL operation.
Line 6 Log: DDL operation Successful.
Mice with ALZHEIMER’s Disease Have been restored in mice with alzheimer’s disease. Restores the current SCHEMA to the OGG synchronization user.
The DDL synchronization information when the problem occurred was applied in the OGG backup library, and the current SCHEMA setting was missing in step 4, so the OGG user was used at this time and the table could not be found when executing the DDL statement: [Error Code [942], OrA-00942:
Further reason analysis: by referring to the log information of OGG data synchronization, it can be found that compared to the log information of successful DDL synchronization, there is less operation of Setting current schema for DDL operation when OGG data synchronization occurs. At this point, an abnormal operation SCHEMA is used, so the report of executing DDL statement does not exist -[Error code [942], OrA-00942.
Validation on the source side: — Look at the GGS_MARKER TABLE under the OGG user on the source side, press the OPTIME information of the field or the file information of the MARKER_TEXT field (ALTER TABLE “AAABBB” ADD CONSTRAINT*), find the DDL statement that is causing the problem, and see if there is a problem with the DDL capture. Select * from GGS_MARKER

Python error: pandas.errors.ParserError: Error tokenizing data. C error: Expected 3……

Error message
When doing data processing in Python, the following error is reported:

pandas.errors.ParserError: Error tokenizing data. C error: Expected 3 fields in line 28, saw 4


The reason for the error
First, let’s take a look at error reporting:

pandas.errors.ParserError: Error tokenizing data. C error: Expected 3 fields in line 28, saw 4

Translation:

Alphaers. errors.parserror: Error marking data. C Error: Three fields are required on line 28, see 4

The error was caused by a data set format error.
The solution
We need to modify the data format or make some Settings in the read-in. The following two methods are feasible:
1. Modify the read-in code
Add the following parameters after reading the code:

error_bad_lines=False #Addition of parameters

2. Modify the file format
I made the error because I was lazy and modified the suffix name directly. The correct way to do this is to open the file in the format required by another existing dataset. For example, I need a CSV file, and the existing file is XLSX. I need to open another CSV file, and the suffix name cannot be directly modified.

WindowsError: [Error 2] The system cannot find the file specified

I did a performance error opening Firefox with Selenium in ipython Notebooks, using the Firefox browser with the following code:

from selenium import webdriver
driver = webdriver.Firefox()

The error message is as follows:

The error the code returns is as follows:
    WindowsError                              Traceback (most recent call last)
<ipython-input-7-fd567e24185f> in <module>()
----> 1 driver = webdriver.Firefox()

Solutions:
When you try to initialize Firefox(), specify the Firefox binaries. The default path, FirefoxDriver, is in %PROGRAMFILES%\Mozilla Firefox\ Foxfox.exe. Specify the Firefox Driver or add the path of the Firefox binaries to the Windows path. The code to specify the firefoxdriver path is as follows:

from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('path/to/binary')
driver = webdriver.Firefox(firefox_binary=binary)

Sweep yards attention
Practical AI Inn
Get the latest AI information and practical cases

WeChat ID: langu86

Git commit encountered error: pathspec (Fixed)

 This is the first problem I've encountered as a rookie just learning to use git.
 The problem is that after git clone a repository, it adds two files to it, but when git commits, it says error: pathspec 'add README.txt.........' did not match any file(s) known to git.
 When I looked at the command more closely, I found that I was missing the -m parameter in my git commit, and the error was: git commit 'add README.txt'.
 The error is: git commit 'add README.txt_.....'
 It should read: git commit -m 'add README.txt......'

Microsoft JScript runtime error: ‘sys’ is undefined

Microsoft JScript Runtime Error: ‘Sys’ is undefined solution

Want to learn AJAX system, unexpectedly just drag a ScriptMange, appeared “Microsoft JScript runtime error: ‘Sys’ is undefined” error, Google a, found that the original friends have also encountered a similar error, put the method post,

ajax.net1.0 official version
in web.config–> Add
< httpHandlers> < remove verb=”*” path=”*.asmx”/>
& lt; add verb=”*” path=”*.asmx” validate=”false” type=”System.Web.Script.Services.ScriptHandlerFactory”/>
& lt; Add the verb = “the GET and HEAD” path = “ScriptResource. Axd” type = “System. Web. Handlers. ScriptResourceHandler, System. Web. Extensions, Version = 1.0.61025.0, Culture = neutral, PublicKeyToken=31bf3856ad364e35” validate=”false”/>
& lt; /httpHandlers>

From:
http://www.cnblogs.com/zhonghua-sun/archive/2008/04/14/1152555.html

Windows 10 upgrade 1803 failed because of dual hard disk!!

Microsoft in recent days to push the win10 1803 version of the update, and then when I upgrade has been wrong, tip need to restart the complete installation, but after the restart and prompt 0 x80070002 error, tried 4, 5 times the same mistake repeatedly, baidu, said with win10 rise would have the chances of success, hope to try, can be the result of nima is the prompt me,
What The FK!! Update is going to give up, close the 35 days to update, obsessive compulsive disorder, I do not lose heart, however, continue to baidu, see some old article mentioned Windows 7 upgrade win10 similar mistakes, the reason is caused by double hard disk, and my machine is a mechanical hard disk and a solid, estimates that, immediately began unstitching chassis, pull the mechanical drive, the power cord cable boot, to update, brush brush… Problem solved!! Problem solved!! Problem solved!! Ten thousand monsters in my heart! Is this Microsoft update too sloppy??BUG10 lives up to its name?

Creating test database for alias ‘postgres’… Got an error creating the test database: permission

Django Python manage.py test error, error prompt:
Creating test database for alias ‘postgres’…
Got an error creating the test database: permission

Django Settings:

DBNAME = 'multi_test'
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    },
    'mysql': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': DBNAME,
        'USER': 'root',
        'PASSWORD': 'xxx',
        'HOST': '127.0.0.1',
        'PORT': 3306,
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
        },
    },
    'postgres': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': DBNAME,
        'USER': 'root',
        'PASSWORD': 'xxx',
        'HOST': '127.0.0.1',
        'PORT': 5432,
    },
}

 

Python manager.py Migrate will work fine

Solutions:
Add createdB access to the PostgresQL database for root (the ‘USER’ corresponding to ‘Postgres’ in Settings)

wenjie@digi007:~/study/dbtest/multi_dbs$ su - postgres
Password: 
postgres@digi007:~$ psql
psql (9.6.2)
Type "help" for help.

postgres=# alter user root createdb;

will no longer report an error when you rerun test.

Solution of 500 internal server error reported by [SVN] TortoiseSVN

Background: For some reason, I restarted the physical machine of SVN service. After restarting, I found that everyone accessing SVN reported the following error.

Since no changes have been made before the restart, I am a little confused about this error. I have tried firewall, network management, cache cleaning and other methods, but still haven’t solved the problem. There is no problem between the network, can ping and Telnet each other, but the access report 500 errors.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — omitted here for a long time of research time…
Solutions:
1. Log in to SVN Server and open VisualSVN Server management tool.
2. Right-click to open the property “Properties”, as shown in the figure below:

3. See the “Automatically adjust Permissions “option on the General screen. If the value has been checked, undo the check and apply it. During the process, it will re-serve.

 
After the above steps, I visited SVN again and found that the problem was solved. After such a long study, the rain finally cleared up. This should be a SVN permission failure, I hope this method can help you open the article.

Reproduced in: https://www.cnblogs.com/whylaughing/p/7646419.html

error C2146: syntax error : missing ‘;’ before identifier ‘fd’

Compiler error: error C2146: Syntax error: Missing ‘; ‘ before identifier ‘fd’
Follow up my_socket FD in mySQL_com.h file; /* For Perl DBI/ DBD */ line, found that the compiler does not recognize my_socket, but my_socket is defined in mysql.h: #define my_socket SOCKET, so the next is the SOCKET definition. SOCKET definition is in Winsock2.h, but with the predefined # IFDEF ___, the header winsock2.h is not included at all.
Solution: In #include< mysql.h> With # include< winsock2.h> Can!