Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2020-07-17 13:33:50
阅读次数:
46
OS:7.2.1511(Core)[root@zabbix-server~]#cat/etc/redhat-releaseCentOSLinuxrelease7.2.1511(Core)[root@zabbix-server~]#cat/etc/redhat-releaseCentOSLinuxrelease7.2.1511(Core)1,下载CentOS7的repo文件wget-O/etc/yu
分类:
其他好文 时间:
2020-07-17 01:18:57
阅读次数:
97
IntelliJ IDEA 启动一个之前运行正常的项目失败,报错是: java.lang.OutOfMemoryError : GC overhead limit exceeded 百度了一下,说是 IntelliJ IDEA 设置的内存太小,需要设置大一点。修改完成后,果然可以运行了,这里记录一下 ...
分类:
编程语言 时间:
2020-07-16 21:48:15
阅读次数:
310
cache-control:must-revalidate 首部会对过期后的缓存进行验证 1.must-revalidate和no-cache的区别 no-cache会强制验证缓存(无论缓存是否过期),而must-revalidate只会验证过期后的缓存。 2.为什么需要must-revalidat ...
分类:
Web程序 时间:
2020-07-16 21:27:35
阅读次数:
78
b站近日把登录页面的验证方式从滑块验证改为了汉字验证,我看网上也没用相关的爬虫教程,所以自己写了一个,作为b站爬虫参考。 from selenium import webdriver from selenium.webdriver.common.action_chains import Action ...
分类:
其他好文 时间:
2020-07-16 21:20:22
阅读次数:
109
安装 Gitlab CE 和 Gitlab Runner 若有现成环境,这一步可以忽略 用 Docker-Compose 进行安装 version: '3' #1 services: gitlab: image: gitlab/gitlab-ce:latest #2 container_name: ...
分类:
编程语言 时间:
2020-07-16 18:22:06
阅读次数:
69
一.前言 1.编译器优化介绍: 由于内存訪问速度远不及CPU处理速度,为提高机器总体性能,在硬件上引入硬件快速缓存Cache,加速对内存的訪问。另外在现代CPU中指令的运行并不一定严格依照顺序运行,没有相关性的指令能够乱序运行,以充分利用CPU的指令流水线,提高运行速度。以上是硬件级别的优化。再看软 ...
分类:
编程语言 时间:
2020-07-16 12:10:40
阅读次数:
64
settings.py文件的配置 # 缓存相关配置 CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', # 指定缓存使用的引擎 'LOCATION': 'D:\django ...
分类:
其他好文 时间:
2020-07-16 00:28:01
阅读次数:
95
参考: SpringBoot 2.X @Cacheable,redis-cache 如何根据key设置缓存时间? @Cacheable(value = "Menus", unless = "#result == null or #result.size() == 0") public List<Sy ...
分类:
编程语言 时间:
2020-07-15 15:49:38
阅读次数:
327
create-react-app,官方推荐脚手架 配置及安装方式: 1.搭建 react : npx create-react-app my-app (my-app 自己起的文件名,如果一直安装失败,试着清一下缓存:npm cache clean --force) 1.1: npm i react- ...
分类:
移动开发 时间:
2020-07-14 13:54:20
阅读次数:
108