Linux中-Python 3.7源码安装

  • Post author:
  • Post category:linux

Python 3.7 源码安装 Python官网: https://www.python.org # 安装一些依赖 yum install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel libffi-devel tk-devel wget curl-devel # 下载python3…

继续阅读 Linux中-Python 3.7源码安装

npm ERR! Error: EPERM: operation not permitted

  • Post author:
  • Post category:其他

在根据angular4官网的例子做时,安装完node.js和angular/cli后,进行新建项目 采用命令ng new my-app时,报如下错误 npm WARN tarball tarball data for @angular/compiler@^6.1.0 (sha1-arNchYT72hOmcI3 xS4sDzI+EmpQ=) seems to be corrupted. Trying…

继续阅读 npm ERR! Error: EPERM: operation not permitted

java继承和多态的试题分析

  • Post author:
  • Post category:java

java继承和多态的试题分析 第一题:写出下面题目的运行结果 题目: interface A{} class B implements A { public String func() { return "func"; } } class Demo { public static void main(String[] args) { A a=new B(); System.out.println(…

继续阅读 java继承和多态的试题分析

JS端计算一段时间内工作日的天数,排除周末和法定节假日,同时考虑到调休日

  • Post author:
  • Post category:其他

//法定节假日和调休日的设定 var Holiday = [“2012-01-01”, “2012-01-02”, “2012-01-03”, “2012-01-22”, “2012-01-23”, “2012-01-24”, “2012-01-25”, “2012-01-26”, “2012-01-27”, “2012-01-28”, “2012-04-02”, “2012-04-03”, “2…

继续阅读 JS端计算一段时间内工作日的天数,排除周末和法定节假日,同时考虑到调休日

ruoyi-springboot通过接口下载文件配置

  • Post author:
  • Post category:其他

package com.ruoyi.web.controller.groundwater.monitor; import cn.hutool.core.io.file.FileReader; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core…

继续阅读 ruoyi-springboot通过接口下载文件配置

MATLAB中regionprops的一些属性

  • Post author:
  • Post category:其他

MATLAB中regionprops一般用在标记连通区域后,用来获得被标记的连通区域的一些属性: [img_label,n]=bwlabel(img_bw_open,4); props=regionprops(img_label); props是一个结构体,如果写成regionprops(img_label)或regionprops(img_label,'basic')时,props中只获得连通区…

继续阅读 MATLAB中regionprops的一些属性

RPC 框架性能大比拼

  • Post author:
  • Post category:其他

Dubbo 是阿里巴巴公司开源的一个Java高性能优秀的服务框架,使得应用可通过高性能的 RPC 实现服务的输出和输入功能,可以和 Spring框架无缝集成。 Motan 是新浪微博开源的一个Java 框架。它诞生的比较晚,起于2013年,2016年5月开源。Motan 在微博平台中已经广泛应用,每天为数百个服务完成近千亿次的调用。 rpcx 是Go语言生态圈的Dubbo, 比Dubbo更轻量,实…

继续阅读 RPC 框架性能大比拼

mac zsh: command not found: vim

  • Post author:
  • Post category:其他

mac 配置bash时导致基本命令失效的解决办法 背景:在mac环境下安装hive 时候,由于脑残修改了bash_profile 文件中的配置错误,导致所有hadoop 的命令都用不了,然后在网上搜各种解决方案,从开始的权限问题排查,到后来定位到时bash 的配置问题.于是在修改bash文件时候结果更糟糕,连一般的vim 命令都用不了了,根本打不开文件,后来这个博客,给了灵感 救了命了 https…

继续阅读 mac zsh: command not found: vim

数据库乐观锁

  • Post author:
  • Post category:其他

乐观锁 乐观锁(Optimistic Lock),顾名思义,就是很乐观,每次去拿数据的时候都认为别人不会修改,所以不会上锁,但是在提交更新的时候会判断一下在此期间别人有没有去更新这个数据。乐观锁适用于读多写少的应用场景,这样可以提高吞吐量。 乐观锁:假设不会发生并发冲突,只在提交操作时检查是否违反数据完整性。 乐观锁一般来说有以下2种方式: 使用数据版本(Version)记录机制实现,这是乐观锁最…

继续阅读 数据库乐观锁

display属性详解及用法

  • Post author:
  • Post category:其他

display属性详解 1 block、inline、inline-block 2 flow-root 3 table、inline-table 4 flex、inline-flex 5 none 6 list-item 7 contents 8 grid、inline-grid 1 block、inline、inline-block display: block; ,使用之后生成一个 块级 元素…

继续阅读 display属性详解及用法