技术专区
-
Java工具篇之Disruptor高性能队列
简介: disruptor适用于多个线程之间的消息队列,`作用与ArrayBlockingQueue有相似之处`,但是disruptor从功能、性能都远好于ArrayBlockingQueue,当多个线程之间传递大量数据或对性能要求较高时,可以考虑使用disr…
-
python获取Windows硬件特征信息
1.python pip安装WMI 并用pyinstaller编译出device_chk.exe # 参考内容:https://blog.csdn.net/fengmm521/article/details/79468677 #!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import wmi c …
-
python:cmd管道
commands = f"""ssh root@120.7x.254.99 -p2483 cd /data/wwwroot/csjs2_client_dev git pull ssh://git@172.16.x.161x:2483/data/repos/csjs2_client_dev.git """ import subprocess def subprocess_popen(command…
-
sqlserver 时间格式函数详细
--getdate 获取当前时间 select getdate() --dateadd 原有时间加: 2013-02-17 13:20:16 此时间加12个月 select dateadd(MONTH,12,'2013-02-17 13:20:16') --返回:2014-02-17 13:20:16.000 (参数month可以改为 da…
-
如何根据已有的数据库sql文件,逆向生成模型类?
这个情况是,我们已经在navicat工具上已经建立了一个数据库和若干数据表,然后我们在pycharm中与数据库建立连接得到了数据库的信息,但是因为是直接连接数据库取得的数据表信息,所以在应用的models模型类中并不存…
-
sqlserver reporting service造成cpu某核占用100%
Windows Server 2019的操作系统,双cpu共64线程 打开任务管理器的cpu界面,发现第3个核占用100%,其他核心都很低只有2%左右,本是开发服务器,没有多少访问量。这个问题发现多次,对系统响应也没什么影响,一直没发…
-
[Oracle] LeetCode 696 Count Binary Substrings
Given a binary string s, return the number of non-empty substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively. Substrings …
-
docker中的mysql中文乱码解决办法
博主最近在做谷粒商城,因为要使用docker安装mysql,但是由于安装的时候没有指定mysql的数据库的utf8格式,导致插入的时候就出现了中文是问号的情况,到处百度终于解决,于是打算记录一下自己的解决办法。 下面…
-
Python_13包
一、包 1、包用于将一组模块归并到一个目录中,将有联系的模块组织在一起,可以有效避免模块名称冲突问题,让应用组织更加清晰。2、Python语法要求每个包都必须有__init__.py文件,__inti__.py可包含python代码,但…
-
用 Java?试试国产轻量的 Solon v1.10.1
相对于 Spring Boot 和 Spring Cloud 的项目: 启动快 5 ~ 10 倍。 (更快) qps 高 2~ 3 倍。 (更高) 运行时内存节省 1/3 ~ 1/2。 (更少) 打包可以缩小到 1/2 ~ 1/10;比如,90Mb 的变成了 9Mb。 (更小) …