Tag Archives: ProgrammerAH

Where’s Maven pom.xml Configure aliyun warehouse in

<repositories>
        <repository>
            <id>nexus-aliyun</id>
            <name>Nexus aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
            <layout>default</layout>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>nexus-aliyun</id>
            <name>Nexus aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
                <enabled>true</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>

 

Using CONDA virtual environment in pychar

(1) View the directory of the new virtual environment:>; conda env list
(2) Select File->; setting-> Project:****-> Project Interperter-> Existing Environment imports the environment address
(3) Select the virtual environment created above
D:\installed\Anaconda3
:\installed\Anaconda3\envs\tensorflow\python.exe :\installed\Anaconda3\envs\tensorflow\python.exe :\installed\Anaconda3\envs\tensorflow\python.exe

Activity of Android studio_ main.xml Unable to preview (gray page)

The activity_main.xml in Android Studio cannot be previewed (the gray page only displays the ActionBaroverLayout) and controls cannot be pulled into it. The styles.xml file is in the values file

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
</style>

To change to the preview state, add “base.” before the Theme in the

Solution of off grid pin in Ad

AD software gives a warning of “OFF GRID PIN” in the process of use, which is not caused by the electrical connection problem of the schematic diagram, but the reason that the PIN pin of the component or device is not aligned with the grid. The solution is as follows:
(1) Open AD and click “Project” – “Engineering Parameters”
(2) “Error Reporting” – “Cheesecake Associated with Others” – “Off-grid object” – Right click – “Cheesecake closed”

— — — — — — — — — — — — — — — — — — — — —
the author: Tang Lingyuan
source: CSDN
,
https://blog.csdn.net/u014473675/article/details/80629913 copyright statement: this article original articles for bloggers, reproduced please attach link to blog!

PHP & nbsp; built in server array

$_SERVER[‘PHP_SELF’] $_SERVER[‘PHP_SELF’] $_SERVER[‘PHP_SELF’] $_SERVER[‘PHP_SELF’]
$_SERVER[‘argv’] # Parameters passed to the script.
$_SERVER[‘argc’] # contains the number of command-line arguments passed to the program (if running in command-line mode).
$_SERVER[‘GATEWAY_INTERFACE’] # Version of the CGI specification used by the server. For example, “CGI/1.1”.
$_SERVER[‘SERVER_NAME’] # Host name of the server on which the script is currently running.
$_SERVER[‘SERVER_SOFTWARE’] # The string that identifies the server, given in the header in response to the request.
$_SERVER[‘SERVER_PROTOCOL’] # Name and version of the communication protocol when the page is requested. For example, “HTTP/1.0”.
$_SERVER[‘REQUEST_METHOD’] # Request method for page access. For example: “GET”, “HEAD”, “POST”, “PUT”.
$_SERVER[‘QUERY_STRING’] # $_SERVER[‘QUERY_STRING’] #
$_SERVER[‘DOCUMENT_ROOT’] # The document root where the script is currently running. Define in the server configuration file.
$_SERVER[‘HTTP_ACCEPT’] # The contents of the Accept: header for the current request.
$_SERVER[‘HTTP_ACCEPT_CHARSET’] # Accept-charset: the contents of the header for the current request. For example: “ISO-8859-1,*, UTF-8”.
$_SERVER[‘HTTP_ACCEPT_ENCODING’] # The contents of the Accept-Encoding: header of the current request. For example: “gzip”.
$_SERVER[‘HTTP_ACCEPT_LANGUAGE’]# Accept-language: contents of the header for the current request. For example: “en”.
$_SERVER[‘HTTP_CONNECTION’] # Connection of the current request: the contents of the header. For example: “Keep-Alive”.
$_SERVER[‘HTTP_HOST’] # The contents of the Host: header for the current request.
$_SERVER[‘HTTP_REFERER’] # link to the URL of the previous page of the current page.
$_SERVER[‘HTTP_USER_AGENT’] # Current request User_Agent: contents of header.
$_SERVER[‘HTTPS’] — Set to a non-null value (ON) if accessed over HTTPS, otherwise off
_server [‘REMOTE_ADDR’] # IP address of the user browsing the current page.
$_SERVER[‘REMOTE_HOST’] # Host name of the user browsing the current page.
$_SERVER[‘REMOTE_PORT’] # The port used by the user to connect to the server.
$_SERVER[‘SCRIPT_FILENAME’] $_SERVER[‘SCRIPT_FILENAME’]
$_SERVER[‘SERVER_ADMIN’] # admin information
_server [‘SERVER_PORT’] # port used by server
$>rver [‘SERVER_SIGNATURE’] # string containing the server version and virtual host name.
$_SERVER[‘PATH_TRANSLATED’] # The base path to the file system (not the document root) where the script is currently located.
$_SERVER[‘SCRIPT_NAME’] # This is useful when the page needs to point to itself.
$_SERVER[‘REQUEST_URI’] # The URI required to access this page. For example, “/index.html”.
$_SERVER[‘PHP_AUTH_USER’] # When PHP is running as an Apache module and is using HTTP authentication, this variable is the user name entered by the user.
$_SERVER[‘PHP_AUTH_PW’] # When PHP is running as an Apache module and is using HTTP authentication, this variable is the password entered by the user.
$_SERVER[‘AUTH_TYPE’] # When PHP is running as an Apache module and is using HTTP authentication, this variable is the type of authentication.

display:inline-block Solution to the gap problem

We often use display:inline-block in web layouts; The advantage is that you can arrange block elements as inline elements and set the width and height. Personal feeling is very easy to use, but with more slowly came the problem?
1.display:inline-block; Not compatible in IE6/7
Display :inline-block; *dsiplay:inline; *zoom:1;
2.display:inline-block; There will be an unknown gap (4px)
Reason: A newline or space can take up space and create a gap,
Solutions:
1. Remove whitespace or newline from the current element in the HTML code. This method is too cumbersome and affects the readability of the HTML code.
Font-size :0; font-size:0; font-size:0; This is essentially the same as the 1 method, but may not be supported in Chorme
3. Set letter-spaceing:-4px in the parent element of the current element; The effect is to control the horizontal distance between the text, allowing the text to overlap horizontally (line-height is the text to overlap vertically), thus cancelling out space space or newlines.
Conclusions are as follows:
» the inline – after the block, block level elements IE6/7 no newline gap problem, other browsers have;
» after the inline – block, the level of the inline elements, all major browsers have a newline/space gap problem;
> font-size:0; font-size:0; font-size:0; font-size:0; font-size:0; font-size:0;
» spacing is removed from all browsers by the let-spacing negative value. However, Opera’s spacing limit is 1 pixel. 0 pixels will bounce back and the spacing will be restored.
Recommended solutions:
Font-size :0; letter-spaceing:-4px;
 
 
Floating Layout – List Layout Based on Display: Inline-Block

Reproduced in: https://www.cnblogs.com/jesse131/p/4872721.html

How to use dangerously set inner HTML in react

Let’s put the directory title here
Write your own label value transformation through the transformation of the data returned by the interface

The transformation of data returned through the interface

<div dangerouslySetInnerHTML = {{ __html: checkMessages.details }} />

Write your own label value conversion

<div dangerouslySetInnerHTML={{ __html: '<div>hello World</div>' }} />

ValueError: not enough values to unpack (expected 6, got 1)

This is a problem that comes up all the time when dividing data sets by emoji labels.
The code is:

angle, idx, _, gender, expression, gaze = image_name.split('_')

The format of image_name is: dataset000_01_caucasian_female_angry_left.jpg
There have been some errors running on the server

ValueError: not enough values to unpack (expected 6, got 1)

Solution:
Later, it was found that after decompressing the data set in the unified format, the zip file was not deleted after the execution of the unzip command, so it was not easy to find. The main reason for this problem is that the file name of the compressed price can not be divided into 6 parts, so the error has been reported.
Delete the ZIP file.