在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

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

如果是抽樣的話,那就可以用隨機(jī)數(shù)了吧。

  1. 每個(gè)數(shù)據(jù)設(shè)置唯一數(shù)字序號(hào)用于標(biāo)識(shí)
  2. 在范圍中生成10個(gè)不重復(fù)的隨機(jī)數(shù)
  3. 在ES查詢中使用es的引擎計(jì)算相關(guān)性(分?jǐn)?shù))
久不遇 回答

感謝邀請(qǐng),根據(jù)題主描述應(yīng)該是想實(shí)現(xiàn)一個(gè)定時(shí)器的任務(wù),而不是時(shí)間線的問(wèn)題。我的思路是這樣的,首先JOB執(zhí)行程序最大時(shí)間應(yīng)該高于30min,30min鐘執(zhí)行完成后,在JOB本身進(jìn)行狀態(tài)的判斷。網(wǎng)上有相關(guān)代碼(其中腳本51上就有,所以不再說(shuō)了)。其次是你要寫一個(gè)php文件可以運(yùn)行在cli模式下,用"php XXX.php start -d"然后每隔兩分鐘檢測(cè)一下你運(yùn)行中的JOB是否完成,進(jìn)而判斷是否進(jìn)入下一個(gè)狀態(tài),還是提醒你手動(dòng)創(chuàng)建C1任務(wù)。

尐懶貓 回答

Apache,項(xiàng)目文件下有.htaccess文件
內(nèi)容

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule  ^$ public/    [L]
    RewriteRule  (.*) public/$1 [L]
</IfModule>
別傷我 回答
let obj = [{'a1': 'bbb', 'b1': 'jkk'}, {'a1': 'ccc', 'b1': 'jkp'}, {'a1': 'ddd', 'b1': 'jkk'}, {'a1': 'eee', 'b1': 'jkk'}];

function dealObj(obj) {
    let keyIndex = {}, objItem, result = [], index;
    for (let i = 0; i < obj.length; i++) {
        objItem = obj[i];
        if (undefined === keyIndex[objItem.b1]) {
            index = result.length;
            keyIndex[objItem.b1] = index;
            result.push(objItem);
        } else {
            index = keyIndex[objItem.b1];
            if (undefined === result[index].children) result[index].children = [];
            result[index].children.push(objItem);
        }
    }
    return result;
}

console.log(dealObj(obj));
涼心人 回答

因?yàn)镠TTP是無(wú)狀態(tài)的,所以需要Cookie來(lái)記錄一些狀態(tài)。HTTP2只是對(duì)于復(fù)用單一TCP連接,但是從服務(wù)器角度而言依然需要cookie來(lái)記錄一些狀態(tài),因此并不能說(shuō)HTTP2是有狀態(tài)的。

故人嘆 回答

這個(gè)問(wèn)題[1]的中文翻譯版?引自[1]的回復(fù),那個(gè)數(shù)字表示不同亮/暗度的編號(hào)
A是強(qiáng)調(diào)色(accent color),A200表示主色調(diào)是200的情況下的強(qiáng)調(diào)色
[1] https://stackoverflow.com/que...

尕筱澄 回答
  1. A類中的foo()是private,不能被繼承,所以不存在重寫;
  2. test()繼承于A類,由于foo()是不能繼承的,所以B中的foo()可以認(rèn)為是一個(gè)全新的方法;
  3. 當(dāng)A中的foo()從private變?yōu)榭衫^承的時(shí)候,B中的foo()就屬于foo()的重寫了;
  4. 這樣想調(diào)用A中的foo()的話只能用parent::foo();
結(jié)論: test()是A的,$this也是A的,調(diào)用自己私有的foo()很正常嘛。
延伸:為什么A中的foo()改為public結(jié)果不一樣了呢?
因?yàn)锽是繼承A的,B把foo()繼承又重寫了,所以A中的foo()不能再用$this訪問(wèn)了,只能用parent::foo()

不能繼承是關(guān)鍵。

乖乖噠 回答

1. 關(guān)于 pyo 優(yōu)化:

參考鏈接

  • When the Python interpreter is invoked with the -O flag, optimized code is generated and stored in .pyo files. The optimizer currently doesn't help much; it only removes assert statements. When -O is used, all bytecode is optimized; .pyc files are ignored and .py files are compiled to optimized bytecode.
  • Passing two -O flags to the Python interpreter (-OO) will cause the bytecode compiler to perform optimizations that could in some rare cases result in malfunctioning programs. Currently only __doc__ strings are removed from the bytecode, resulting in more compact .pyo files. Since some programs may rely on having these available, you should only use this option if you know what you're doing.
  • Your program doesn't run any faster when it is read from a .pyc or .pyo file than when it is read from a .py file; the only thing that's faster about .pyc or .pyo files is the speed with which they are loaded.
  • When a script is run by giving its name on the command line, the bytecode for the script is never written to a .pyc or .pyo file. Thus, the startup time of a script may be reduced by moving most of its code to a module and having a small bootstrap script that imports that module. It is also possible to name a .pyc or .pyo file directly on the command line.

2. 關(guān)于 pyd:

pyd 可以理解為 Windows DLL 文件。

參考鏈接

  • Yes, .pyd files are dll’s, but there are a few differences. If you have a DLL named foo.pyd, then it must have a function PyInit_foo(). You can then write Python "import foo", and Python will search for foo.pyd (as well as foo.py, foo.pyc) and if it finds it, will attempt to call PyInit_foo() to initialize it. You do not link your .exe with foo.lib, as that would cause Windows to require the DLL to be present.
  • Note that the search path for foo.pyd is PYTHONPATH, not the same as the path that Windows uses to search for foo.dll. Also, foo.pyd need not be present to run your program, whereas if you linked your program with a dll, the dll is required. Of course, foo.pyd is required if you want to say import foo. In a DLL, linkage is declared in the source code with __declspec(dllexport). In a .pyd, linkage is defined in a list of available functions.
情殺 回答

這個(gè)是你的源文件中有部分字符不能被識(shí)別為UTF8,但你的文件編碼又是UTF8的原因

命令行敲擊

cd android

windows:

gradlew.bat assDebug --stacktrace

類unix:

./gradlew assDebug --stacktrace

然后根據(jù)日志可以查看具體是哪個(gè)文件有問(wèn)題
這個(gè)是提示偏移量116的位置

陌南塵 回答

有沒(méi)有人能幫幫我呀?目前正在自己看cordova文檔,英文的看的好累,但還在看著。

挽歌 回答

一般不會(huì)加密數(shù)據(jù),交給https(畢竟人家自己要看自己操作生成的數(shù)據(jù)也沒(méi)什么好阻止的),只是加密cookie等,目的也只是為了增加破解難度。

兩個(gè)方法:

1.
readPicFile(){
  let that=this;
  ...
  reader.onload = function (e) {
       that.base64 = xxx;   
    }
  }

2.
readPicFile(){
  ...
  reader.onload = (e)=> {
       this.base64 = xxx;   
    }
  }
傲寒 回答

原來(lái)還是maven 得配置問(wèn)題:
在 pom.xml <project>標(biāo)簽下添加
<build>

    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
        </plugin>
    </plugins>
</build>

原文鏈接:

https://blog.csdn.net/gwd1154...

疚幼 回答

你好, 請(qǐng)?jiān)赽方法中 使用 $this->a(); 然后在 $n = $this->name;

赱丅呿 回答

es6:

[...Object.values({ key1: 'a', key2: 'b', key3: 'c'})]

lodash沒(méi)記到,es6也比較方便,不支持es6的話,es5也可以。
es5:

var arr=[];
for(var key in json){
    arr.push(json[key])
}
溫衫 回答

在顯示動(dòng)畫中,加上動(dòng)畫延時(shí),這樣就不會(huì)出現(xiàn)同步和重疊的情況,
但這樣會(huì)有一種情況就是初始化的時(shí)候會(huì)慢,如果想要解決,還可以初始化后給他們加上一個(gè)class,
然后.fade-enter-active.xxxx 兩個(gè)class都有就加上動(dòng)畫延時(shí),transtion-delay,就能解決

生性 回答

upload的data屬性是給后臺(tái)的,upload提供的鉤子里的參數(shù)都不會(huì)有這個(gè)data

如果要在success 中訪問(wèn)data,可以在自己data中加一個(gè)currentUploadData ,在Upload 組件中加一個(gè)@click.native = xxxx(color_info)事件并且把color_info傳遞進(jìn)去,xxxx方法中讓this.currentUploadData = color_info,然后在success 中通過(guò)this.currentUploadData來(lái)color_info。

不過(guò)一次上傳多個(gè)文件時(shí),success 也會(huì)調(diào)用多次,這點(diǎn)請(qǐng)注意