Step 1: Click Build –>; Build Module

le –>; Project Structure

ep 3: Artifacts –>

br> a>
then op>our project –>;

> Then click on Compile Output for your project –>; ok

package.json And package- clock.json The difference between
Json versus package.json
Json is the configuration file generated when building a project, which contains the configuration information needed for the project, as well as various dependencies, including name and version number; It is divided into development dependencies and operation dependencies. ^ Refers to other updated versions after the current major version
{
"name": "managenmet",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "^3.6.5",
"vue": "^2.6.11"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
Json is the latest version dependency automatically generated after NPM installIt is used to record the version number of the current project dependency and cannot be changed. When you delete node_modules or modify package.json and execute NPM install, the current project dependencies will be updated to the appropriate version according to the rules
MinGW + libpython installation record
> Error conda.core.link:_execute_actions(337): An ERROR occurred while installing package ‘;
> Error conda.core.link:_execute_actions(337): An ERROR occurred while installing package ‘; ERROR conda.core.link:_execute_actions(337): An ERROR occurred while the package was installed;
Type in the following code in CMD:
conda install mingw libpython
The following error occurred:
The following NEW packages will be INSTALLED:
conda-package-handling: 1.7.2-py36h76e460a_0
libpython: 2.1-py36_0
mingw: 4.7-1
tqdm: 4.55.1-pyhd3eb1b0_0
The following packages will be UPDATED:
conda: 4.3.30-py36h7e176b0_0 --> 4.9.2-py36haa95532_0
conda-env: 2.6.0-h36134e3_1 --> 2.6.0-1
menuinst: 1.4.10-py36h42196fb_0 --> 1.4.16-py36he774522_1
pycosat: 0.6.2-py36hf17546d_1 --> 0.6.3-py36h2bbff1b_0
vc: 14-h2379b0c_2 --> 14.2-h21ff451_1
vs2015_runtime: 14.0.25123-hd4c4e62_2 --> 14.27.29016-h5e58377_2
Proceed ([y]/n)?y
libpython-2.1- 100% |###############################| Time: 0:00:37 1.08 MB/s
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'defaults::tqdm-4.55.1-pyhd3eb1b0_0'.
CondaError: Cannot link a source that does not exist. D:\software\Anaconda\Scripts\conda.exe
Running `conda clean --packages` may resolve your problem.
Attempting to roll back.
Solutions:
conda clean --all
Type in the following code again:
conda install mingw libpython
Installation successful!
On the intern () method of string class in Java
String s1 = new StringBuilder(” Go “).append(” od “).toString();
System.out.println(s1.intern() == s1); String s2 = new
StringBuilder(” ja “).append(” va “).toString(); String s2 = new
StringBuilder(” ja “).append(” va “).toString();
System.out.println(s2.intern() == s2); Output is true or false
in the search on the net, have explained string constants in the pool a Java this string constants, and so the example below would be false.
String sb =new StringBuilder(” Go “).append(” OD “).toString();
String sb =new StringBuilder(” Go “).append(” OD “).toString();
String s1 = new String(” Good “);
System.out.println(sb.intern()==sb);
returns false!!
originally used in intern method, will first judgment in the constant pool have the corresponding string, have put the string, not words
The intern() implementation in JDK 1.7 does not copy the instance any more, it just records the instance reference that first appears in the constant pool, so the reference returned by the intern() is the same as the instance of the string created by the StringBuilder
Access characteristics of construction methods in Java inheritance
Access characteristics of constructors in Java inheritance
The
- subclass constructor has a default implicit “super()” call, so it must be the parent constructor called first and the subclass constructor executed later. Subclass constructs can be invoked with the super keyword to call superclass overloaded constructs. Super’s superclass constructor call must be the first statement of the subclass constructor. A subclass construct cannot call the super construct more than once.
Conclusion:
subclasses must call the superclass constructor, don’t write gives super (); You can only have one super, and it has to be the first one.
V-for styles individual elements
v-forts styles for individual elements
v-formponent can loop through a bunch of components. However, when styling, there is a need for individual elements to be styled in such a way that they are highlighted.
<card-grid
style="width:25%; text-align: center"
v-for="(item,i) in menuItems"
:key="i"
ref="items"
:style="i === itemIndex ?chosenStyle:'' "
>
{{ item.name }}
</card-grid>
itemIndex code> as needs to be individually styled sequence, when the I code> render time and itemIndex code> is equal, this component will be separately set a : style = 'chosenStyle' code>, can achieve the corresponding effect.
Transformation of JS map and JSON
I was going to store the map as a JSON string in window.localStorage, but I found that I could not convert the map to a JSON string
var map = new Map();
map.set(21,'A');
map.set(22,'B');
console.log(JSON.stringify(map));
![]()
ah
Deploy mongodb fragment combined with replica set to realize distributed storage of MySQL database files (step 10)
Configure the mongos process of the SHARD2 node
[root@shard2 bin]# cat < > /usr/local/mongodb/bin/mongos.conf
bind_ip=192.168.100.103
port=27025
logpath=/usr/local/mongodb/logs/mongos.log
fork=true
maxConns=5000
configdb=configs/192.168.100.101:27017,192.168.100.101:27018,192.168.100.101:27019
END
[root @ shard2 bin] # touch…/logs/mongos.log
[root @ shard2 bin] # chmod 777…/logs/mongos.log
[root @ shard2 bin] # mongos -f/usr/local/mongodb/bin/mongos.conf
about to fork child process, waiting until server is ready for connections.
forked process: 1562
child process started successfully, parent exiting
[root@shard2 ~]# netstat -utpln |grep mongo
tcp 0 0 192.168.100.103:27019 0.0.0.0:* LISTEN 1095/mongod
tcp 0 0 192.168.100.103:27020 0.0.0.0:* LISTEN 1122/mongod
tcp 0 0 192.168.100.103:27025 0.0.0.0:* LISTEN 12122/mongos
tcp 0 0 192.168.100.103:27017 0.0.0.0:* LISTEN 1041/mongod
tcp 0 0 192.168.100.103:27018 0.0.0.0:* LISTEN 1068/mongod
Sata3.0 host controller IP
SATA3.0 Host IP not only realizes the PHY (physical layer), LINK (Link layer) and TRN (transport layer) of SATA protocol, but also realizes the CMD (command layer) and APP (application layer), and supports 1.5, 3 and 6Gbps transmission rates, which is fully compatible with SATA specification.
SATA3.0 Host IP provides an efficient and easy to use interface for users to use SATA storage devices. Without user intervention, SATA3.0 Host IP automatically connects, diagnoses, identifies and initializes SATA storage devices, and outputs the Identify Data Structure of SATA devices. SATA3.0 Host IP built-in DMA controller, users can not only access SATA storage devices through IO interface, but also use DMA interface to efficiently read and write SATA storage devices.
SATA3.0 Host IP is not limited to the number of connected SATA storage devices, that is, the number of connected SATA storage devices is programmable.
Kernel features:
- and SATA 1.5 Gbps, 3.0 Gbps and 6.0 Gbps industry specification is fully compatible with the AXI – Lite or application registers (ARI) interface, at the same time support IO (including PIO and Trim) and IO DMA operation data interface adopts the design of RAM, the DMA data interface the AXI – Stream or FIFO design support SerDes interface, and the programmable SerDes interface number (the number of SATA storage devices can be connected is programmable, The quantity depends on the number of GT of FPGA) Support SATA storage device with electric plug support Xilinx device: Spartan-6, Virtex-5, Virtex-6, Artix-7, Kintex-7, Virtex-7, Kintex UltraScale, Kintex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale +, Virtex UltraScale + for easy integration of synchronous, integrable Verilog design through fully validated SATA3.0 IP OL>
External interface:
- axi-lite or application register (ARI) interface axi-stream or FIFO streaming data bus RAM block data bus


Performance indicators:
- SATA 3.0 Core: Continuous Write Speed> 530MB/s, Continuous Read Speed> 550MB/sSATA 0 Core: Continuous Write Speed> 240MB/s, Continuous Read Speed> 250MB/s s
1 channel (connect 1 SATA storage device) SATA3.0 IP resource usage (XC7K325 as an example) :
- LTS: 3850, FFS: 4630, BRAM: 16, GT: 1 OL BBB>
4 channels (connect 4 SATA storage devices) SATA3.0 IP resource usage (XC7K325 as an example) :
- LTS: 15363, FFS: 18468, BRAM: 64, GT: 4 OL BBB>
8 channels (connect 8 SATA storage devices) SATA3.0 IP resource usage (XC7K325 as an example) :
- LTS: 30763, FFS: 37011, BRAM: 128, GT: 8 OL BBB>
Deliverables:
Design File: Post-synthesis EDIF netlist or RTL SourceTiming and layout constraints, Test or Design Example Project Technical support: email, phone, on-site, training service OL>
Contact Information:
Email:[email protected]
SATA3.0 Host IP Block Diagram
Oracle11gr2 database suddenly “TNS no listener” protocol adapter error
lsnrctl status
TNS-12541 no listening program
TNS-12560 protocol adapter error
TNS-00511 no listener program
According to the online solution I have various reconfiguration listening, but none of them work.
Finally, I saw a post where he accidentally found that the listening log had reached 4G. I looked at mine and sure enough it was the same. I didn’t hesitate to delete it and restart the service. Solve the problem.
Log position app/administrator/diag/TNSLSNR/XXXXXX/listener/trace/listener. The log
Abstract precautions
Abstract methods require that subclasses be overridden after inheritance. So what keywords can’t the abstract keyword be used with?The following keywords, in the abstract class. It is possible to use it, but it is meaningless.
- private: A subclass cannot override an abstract after it has been privatized. Static: Static, taking precedence over an object. Abstract methods require subclass overriding, and static methods cannot be overridden, so the two are contradictory. Final: Modified by final, the abstract cannot be rewritten against the abstract.
Converting PDF file to JPG image in Ubuntu
>
sudo apt-get install imagemagick
ImageMagick
(Use image instead of the specific file name.)
With the convert image. PDF image. JPG code> can translate directly, but the image resolution is not high
with the following command transformation effect is better
convert -verbose -colorspace RGB -resize 1800 -interlace none -density 300 -quality 100 image.pdf image.jpg
(-Resize the following coefficient to adjust the width of the image in pixels, and the height to scale)
If the following error occurs
convert: not authorized `grade.pdf' @ error/constitute.c/ReadImage/412.
convert: no images defined `*.jpg' @ error/convert.c/ConvertImageCommand/3210.
Because the ImageMagick policy. XML file does not give "read and write PDF files" permission by default.
Open the policy-.xml file
sudo vi /etc/ImageMagick-6/policy.xml
< policy domain="coder" rights="none" pattern="PDF" /> code> in the "none" code> instead "read/write" code>
In addition, a few simple features of ImageMagick are also posted below
Pictures are made into GIFs
convert *.jpg images.gif
Where * is the wildcard, *. JPG means all the path under the JPG file
in addition to the image format in JPG, can also be PNG and other common image format
Modify image size
Take a single picture for example
convert 'image.jpg' -resize 1200 image2.jpg
(1200 means that the width becomes 1200 pixels, and the height varies proportionally)
Take several pictures for example
convert '*.jpg' -resize 1200 %03d.jpg
(can also be converted to other image format)
(% 3 d. The JPG said to give the picture of the new generation in 000. The JPG, 001 JPG rule named)
(if written image % 3 d. The JPG, said to a new generation of picture by image000. The JPG, image001. The law of the JPG)
This can also be written:
convert '*.jpg[1200]' %03d.jpg