ICode9

精准搜索请尝试: 精确搜索
  • hisql 表管理相关功能DEMO2022-03-03 14:32:20

    HiSql新增对表的操作(暂时仅支持SqlServer,陆续会加上对其它数据库的实现) 可能有人会疑问作为ORM框架为什么会加这些功能?HiSql是致力于低代码平台的ORM框架,如果有了解过低代码平台的原理你就会明白这些功能有多有用! HiSql提供以下对表及视图的操作 表的重命名 //OpLevel.Execute

  • Jenkins Build step 'Execute shell' marked build as failure2022-02-23 14:34:29

    背景:   命名命令执行了也成功了,但是jenkins标记为失败,且提示 Build step 'Execute shell' marked build as failure   解决:   在步骤“Execute shell”命令最上面添加 #!/bin/bash   解释: 默认情况下,Jenkins采取/bin/sh -xe这种方式-x将打印每一个命令。另一个选项-e,当

  • springboot之RedisTemplate总结2022-02-22 22:35:39

    使用 首先导入相关的RedisTemplate包 <!--spring data redis 依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <!--commons-poo

  • Python连接MySQL数据库,批量生成随机测试数据。2022-02-22 17:32:36

    Python连接MySQL数据库,批量生成测试数据。 效果如图所示: 代码如下: import os import random import time import pymysql as ps db=ps.connect(host='192.168.1.1',user='root',password='123456',database='test',charset='utf8') #连接数据库 cur=

  • 线程池2022-02-21 01:01:56

    线程池 背景:经常创建和销毁、使用量特别大的资源,比如并发情况下的线程,对性能影响很大 思路:提前创建好多个线程,放入线程池中,使用时直接获取,使用完放回池中。可以 避免频繁创建销毁、实现重复利用。类似生活中的公共交通工具 好处: 提高响应速度(减少了创建新线程的时间)

  • 关于 modbustcp python 借鉴别人的码2022-02-20 23:30:37

    代码自用  demo1 = master.execute(1, cst.READ_HOLDING_REGISTERS, 0, 9) import modbus_tk import modbus_tk.defines as cst import modbus_tk.modbus_tcp as modbus_tcp logger = modbus_tk.utils.create_logger("console") if __name__ == "__main__":

  • 线程池基本使用2022-02-20 15:33:47

    线程池基本使用 import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class PoolDemo { public static void main(String[] args) { // 创建一个长度为5的固定线程池 ExecutorService executorService = Executors

  • Python+selenium 网页滚动条操作详解2022-02-18 17:33:26

    selenium没有控制页面滚动的方法,这时候只能借助Js了,selenium提供了一个操作js的方法: execute_script(),可以直接执行js的脚本。 js="var q=document.getElementById(‘id‘).scrollTop=0" driver.execute_script(js)     scrollTop是右侧高度滚动,Y轴滚动 1.滚动条回到

  • 内存管理篇——线性地址的管理2022-02-17 22:32:07

    写在前面   此系列是本人一个字一个字码出来的,包括示例和实验截图。由于系统内核的复杂性,故可能有错误或者不全面的地方,如有错误,欢迎批评指正,本教程将会长期更新。 如有好的建议,欢迎反馈。码字不易,如果本篇文章有帮助你的,如有闲钱,可以打赏支持我的创作。如想转载,请把我的转载信

  • [Snowflake+Python]Python中如何使用Snowflake2022-02-09 11:03:25

    Snowflake + Python 使用场景:自动化/构建数据管道以及在预处理后将数据存储到Snowflake中. Snowflake Setup: 11.登录: https ://www.snowflake.com/ 输入详细信息并申请 30 天试用,通过 Gmail 验证。 在试用中,Snowflake 将提供足够的积分来开始使用。 2.下载雪花 CLI: Redirectin

  • JS设计模式-命令模式2022-02-06 23:00:28

    JS设计模式-命令模式 1.面向对象模式 看以下代码,用面向对象的方式实现命令模式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="

  • 数据库与SQL语言入门2022-02-02 18:00:46

    一,数据库与sql语言 数据库其实就是用来存储大量数据并便于检索的一种手段,便于快速的检索大量数据     后面是最常用的sql命令         这个greate table就是在数据库里面创建了一张表,如果这张表不存在的话,就创建这张表,如果存在的话就忽略这段话。     二,创建数据库: i

  • spring security中前端访问Refused to execute script from 'http://localhost:8080/' because its MI2022-01-31 17:35:29

    springboot集成spring Security时前端出现Refused to execute script from 'http://localhost:8080/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.问题 最近学习springSecurity,遇到很多坑,在此记录一下,借此可以帮助更多的

  • python操作mysql之pymysql2022-01-28 20:34:07

    python操作mysql之pymysql 准备工作: 下载固定模块: 方法一:命令下载 pip3 isntall pymysql 方法二:借助于pycharm 模块的基本使用 import pymysql # 导入模块 # 创建链接 conn = pymysql.connect( host='127.0.0.1', # 本地回环地址 port=3306, # mysql固定端口

  • postgresql/lightdb prepare、bind、execute与fetch cursor的内核与jdbc驱动实现详解2022-01-28 17:31:24

      preparedstatement将PREPARE,BIND,EXECUTE分开,其好处是避免了重复的语法分析、语义分析与重写,对于复杂SQL来说,其效果更加明显。 In the extended-query protocol, execution of SQL commands is divided into multiple steps. The state retained between steps is represented

  • jtopo报Uncaught DOMException: Failed to execute ‘getImageData‘ on ‘CanvasRenderingContext2D‘错误解决2022-01-28 17:31:10

    jtopo官方demo,告警 node的图片是可以变红色的,但是复制下来的代码并没有变红, 官方demo效果 拷下源码运行效果 F12打开浏览器,看到错误Uncaught DOMException: Failed to execute ‘getImageData‘ on ‘CanvasRenderingContext2D‘ 找到解决方案,使用VsCode,下载一个叫Live

  • 在Maven中出现Failed to execute goal on project ...Could not find artifact解决办法2022-01-28 12:35:50

    引入maven仓库包下载不了的做法 首先maven需要换到自己下载的maven 然后到自己下载的maven下的setting.xml换仓库路径 <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url&

  • 不通过删除重建方式,重置序列值的简单方法2022-01-28 07:31:09

    重置oracle序列从指定数字开始 declare n number(10); v_startnum number(10):=10000001;--从多少开始 v_step number(10):=1;--步进 tsql varchar2(200); v_seqname varchar2(200):='MIP_JF_SEQUENCE';--序列名 begin execute immediate 'select '||v_seqname||'.nextv

  • 在idea命令行中mvn clean install命令时,报The goal you specified requires a project to execute but there is no2022-01-26 19:00:49

    D:\xxx>mvn clean install[INFO] Error stacktraces are turned on.[INFO] Scanning for projects...[INFO] ------------------------------------------------------------------------[INFO] BUILD FAILURE[INFO] ---------------------------------------------------

  • 协程 && 异步例子2022-01-24 16:00:09

    # 异步redis # 在使用python代码操作redis的时候,连接、操作、断开都是网络IO。 # 安装aioredis模块: pip install aioredis==1.3.1 # 例: 该例子使用的是aioredis==1.3.1,想要使用最新版本,请直接到pipy上查看文档。 import asyncio import aioredis async def execute(address,

  • 使用64位TestStand调用32位LabVIEW代码模块2022-01-21 20:32:10

    Software TestStand LabVIEW How can I call 32-bit LabVIEW VIs from 64-bit TestStand? How can I configure my code modules to execute on separate processes from my TestStand process?   The steps below show you how to configure LabVIEW and LabWindows™/CVI™

  • Android中AsyncTask的使用与源码分析,2021年移动开发者未来的出路在哪里2022-01-21 12:58:15

    3.“后台计算结果的类型” 、 注: 在特定场合下,并不是所有类型都被使用,如果没有被使用,可以用java.lang.Void类型代替。 一个异步任务的执行一般包括以下几个步骤: 1. execute(Params… params),执行一个异步任务,需要我们在代码中调用此方法,触发异步任务的执行。 2. onPreExecute

  • Python操作数据库增删查改2022-01-19 13:00:18

    import pymysql def opop1(): """ 创建一个表 :return: """ try: db = pymysql.connect(host="localhost", user="root", password="root", database="lzy",charset="ut

  • Cannot execute binary file 之原因2022-01-17 20:34:04

    文章目录 1. 写在最前面2. 排查方向2.1 非 root 用户2.2 编译目标与执行环境不同2.3 程序需要的动态库或静态库缺失2.3.1 解决办法 4. 等等4.1 真·解决办法4.1.1 使用 CGO_ENABLED=04.1.2 更换依赖的基础镜像 5. 碎碎念6. 参考资料 1. 写在最前面 问题:笔者用 kaniko

  • 由浅入深了解线程池之初识线程池2022-01-13 15:36:32

    之前简单介绍了下BlockingQueue也算是为本文做了一个前置铺垫了,今天就来介绍下线程池,因为如果每个线程任务都要显示的手动创建的话会大大浪费资源,所以用线程池来统一维护线程的生命周期;下面先介绍了解线程池需要提前知道的相关类或接口; 前置类或接口 Executor 线程调度的顶层接

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有