nginx add_header not working
See this conf first:location /i/ {
add_header X-Frame-Options "SAMEORIGIN" always;
if ($uri ~ "^/i/([0-9a-zA-Z]*)([/]{0,1})$") {
set $id $1;
add_header Set-Cookie "...
chrome headless by puppeteer: No dialog is showing
I wrote these code and run on chrome headless mode.page.on('dialog', async dialog => {
console.log('Dialog: ', dialog.type()); // 'confirm'
await delay(2000...
趣题 摆书 USACO 2012 Bookshelf
http://www.usaco.org/index.php?page=viewproblem2&cpid=138首先第一反应是可以做n2的dp,但是总有种预感是会有更优化的解法,想了想优化dp的迭代过程又没有结果。这时我有种感觉是这题可以用队列做,找单调性。好的答案来了设dp[i]是放完前i本书以后 书架的最小高度,显然dp单调递增。程序从第一本书开始,一本一本的往书架里填塞:我们用一个双...
Android Emulator with WHPX (Windows Hypervisor Platform)
OS: Windows Server 2019.WHPX & HAXM (conflicted by each other, can only choose one):HAXM: Base on VT-x(Intel CPU), If you haven't hyper-V on system, using it to calling VT-x on CPU.WHPX: Base on Hy...
RHEL8 Beta cannot fetch update
https://access.redhat.com/management/I have a developer account on redhat.com, and on my subscription manager page, I can see 2 subscriptions.RHEL: Red Hat Beta AccessRHEL Developer: Red Hat Develo...