鍍金池/ 問(wèn)答/ 網(wǎng)絡(luò)安全問(wèn)答
故人嘆 回答

遇到同樣的問(wèn)題,需要導(dǎo)入iview以及table的樣式才能顯示正常,node_modules/iview/dist/styles/iview.css

我用的print.js 第三方
現(xiàn)在我在研究如何導(dǎo)入table的樣式,現(xiàn)在的想法是把table的less文件轉(zhuǎn)化為css文件,然后引入,不知道是否可行,如有進(jìn)展 及時(shí)聯(lián)系,謝謝

附上代碼

        this.printLoading = true
        setTimeout(() => {
          PrintJS({
            printable: this.pageId,
            documentTitle: '詳情',
            type: 'html',
            targetStyle: ['*'],
            ignoreElements: [this.actionId],
            maxWidth: 1200,
            css: ['../../../node_modules/iview/dist/styles/iview.css'],
            style: '.main-head {font-size: 16px;font-weight: bold;color: #464c5b}',
            onLoadingEnd: () => {
              this.printLoading = false
            }
          })
        }, 300)
萌面人 回答

沒(méi)問(wèn)題。babel本質(zhì)就是 ES6 轉(zhuǎn)換為 ES5,ES5的變量聲明,怎么樣都會(huì)變量提升啊。

試試ngxtop

安裝

pip install ngxtop

使用

$ ngxtop

或按ip統(tǒng)計(jì)

$ ngxtop top remote_addr

總流量前十的請(qǐng)求

  $ ngxtop --order-by 'avg(bytes_sent) * count'

參見(jiàn):

https://github.com/lebinh/ngxtop

https://blog.serverdensity.co...

鐧簞噯 回答

漏了theme(),犯了個(gè)2b錯(cuò)誤。。。

心沉 回答

當(dāng)然是的。有 maven 插件可以讓你在打包的時(shí)候自動(dòng)完成這個(gè)事情,不過(guò)前提是要安裝 protoc

<plugin>
    <groupId>com.github.igor-petruk.protobuf</groupId>
    <artifactId>protobuf-maven-plugin</artifactId>
    <version>0.6.3</version>
    <executions>
        <execution>
            <goals>
                <goal>run</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <protocCommand>/usr/local/bin/protoc</protocCommand>
    </configuration>
</plugin>
壞脾滊 回答

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>test</groupId>
<artifactId>mixedJavaAndGroovy</artifactId>
<version>0.01-SNAPSHOT</version>


<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.build.targetEncoding>UTF-8</project.build.targetEncoding>
</properties>
<repositories>
    <repository>
        <id>Sonatype</id>
        <name>Sonatype Repository</name>
        <url>http://repository.sonatype.org/content/groups/public/</url>
        <layout>default</layout>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>artima</id>
        <name>Artima Maven Repository</name>
        <url>http://repo.artima.com/releases</url>
    </repository>
</repositories>


<dependencies>
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>2.4.14</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.spockframework/spock-core -->
    <dependency>
        <groupId>org.spockframework</groupId>
        <artifactId>spock-core</artifactId>
        <version>1.1-groovy-2.4</version>
        <scope>test</scope>
    </dependency>

</dependencies>


<build>
    <plugins>

        <!-- test -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
                <execution>
                    <id>add-source</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>add-source</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>src/main/groovy</source>
                        </sources>
                    </configuration>
                </execution>
                <execution>
                    <id>add-test-source</id>
                    <phase>generate-test-sources</phase>
                    <goals>
                        <goal>add-test-source</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>src/test/groovy</source>
                        </sources>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.codehaus.gmavenplus</groupId>
            <artifactId>gmavenplus-plugin</artifactId>
            <version>1.6</version>
            <configuration>
                <stubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/stubs</stubsOutputDirectory>
                <testStubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/test-stubs</testStubsOutputDirectory>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>addSources</goal>
                        <goal>addTestSources</goal>
                        <goal>generateStubs</goal>
                        <goal>compile</goal>
                        <goal>generateTestStubs</goal>
                        <goal>compileTests</goal>
                        <goal>removeStubs</goal>
                        <goal>removeTestStubs</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-clean-plugin</artifactId>
            <version>3.0.0</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
            <version>3.7.0</version>
        </plugin>

    </plugins>
    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse m2e settings 
                only. It has no influence on the Maven build itself. -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        net.alchim31.maven
                                    </groupId>
                                    <artifactId>
                                        scala-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [3.3.1,)
                                    </versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        com.theoryinpractise
                                    </groupId>
                                    <artifactId>
                                        clojure-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [1.8.1,)
                                    </versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        org.codehaus.gmavenplus
                                    </groupId>
                                    <artifactId>
                                        gmavenplus-plugin
                                    </artifactId>
                                    <versionRange>
                                        [1.6.0,)
                                    </versionRange>
                                    <goals>
                                        <goal>addSources</goal>
                                        <goal>addTestSources</goal>
                                        <goal>generateStubs</goal>
                                        <goal>compile</goal>
                                        <goal>generateTestStubs</goal>
                                        <goal>compileTests</goal>
                                        <goal>removeStubs</goal>
                                        <goal>removeTestStubs</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

</project>

雨蝶 回答

你的Mysql表類(lèi)型是 innodb 還時(shí) myisam 后者是不支持事務(wù)的

毀憶 回答

geojson 可以轉(zhuǎn)化成平面多邊形數(shù)據(jù),然后你平均分布的點(diǎn)可以依次跟這個(gè)多邊形對(duì)比。

憶往昔 回答

bower可以把所需要的庫(kù)通過(guò)一個(gè)命令行一次性下載,方便
你有把整個(gè)andimnLTE全部文件放在同一個(gè)目錄下嗎,他用的是相對(duì)路徑,需要放在同一個(gè)目錄下保證路徑正確

孤影 回答

上面兩個(gè) synchronized 塊是互斥的.
所以基于這種鎖對(duì)象可能被誤用的情況, 建議用單獨(dú)的 final 對(duì)象做鎖, 而不要用與業(yè)務(wù)相關(guān)的變量:

final Object lock = new Object();
涼汐 回答

postcss里有一個(gè)插件 postcss-pxtorem

拽很帥 回答

emmm...也是挺無(wú)語(yǔ)的,當(dāng)懟著這個(gè)問(wèn)題來(lái)找原因的時(shí)候反而找不到,在解決別的問(wèn)題的時(shí)候卻湊巧解決了這個(gè)問(wèn)題。
解決方法如下:
因?yàn)?code>fixed定位的按鈕是屬于nav標(biāo)簽的內(nèi)容,而在它下面的div是屬于另外一個(gè)父標(biāo)簽。當(dāng)在做動(dòng)畫(huà)的過(guò)程中div所在層級(jí)被提高了,恰巧大于了nav的層級(jí),所以按鈕標(biāo)簽也就被div蓋住了。解決方法可以是給nav標(biāo)簽添加屬性z-index,只要保證它的值大于div動(dòng)畫(huà)時(shí)的值即可解決這個(gè)問(wèn)題。
也不知道解釋的對(duì)不對(duì),如果說(shuō)錯(cuò)了希望大家指正。

$_POST["key"]的寫(xiě)法是錯(cuò)誤的
正確的是isset($_POST["key"]) ? htmlspecialchars($_POST["key"]) : null;

其他的,不想說(shuō)什么了

伐木累 回答

有項(xiàng)目的
https://gitee.com/HOHD/termux...
可以的話(huà)一起探討一下

下面這個(gè)才是你想要的
https://gitee.com/HOHD/irssic...

終相守 回答

看不出來(lái)什么問(wèn)題啊,加點(diǎn)日志,看一下是不是哪個(gè)方法沒(méi)跑完。
之前通過(guò)redis處理map的更新時(shí),高并發(fā)會(huì)有鎖住的情況。后續(xù)把map中更新頻繁的值取出來(lái)直接放redis就好了。

不一定要netty來(lái)背鍋

尕筱澄 回答

這個(gè)問(wèn)題終于被哥攻克了
在Menu里添加@on-select="routeTo"
然后在

    methods: {
        routeTo(e) {
            this.$router.push(e);
        }       
    }
離觴 回答

如果你想用slf4j的日志模塊,引入org.mongodb.morphia的時(shí)候,要排除掉其日志部分。
出現(xiàn)該現(xiàn)象的原因是,log找實(shí)現(xiàn)類(lèi)的時(shí)候,先找到了mongodb的日志實(shí)現(xiàn)類(lèi)并做了實(shí)例化。
maven配置引用排除:

<exclusions>
    <exclusion>
        <groupId> XXXXXX </groupId>
        <artifactId> XXXXXX </artifactId>
    </exclusion>
</exclusions>