ICode9

精准搜索请尝试: 精确搜索
  • linux的anaconda 环境修复办法 (自动进入 base 环境怎么办?)...2022-05-04 14:31:13

    查看你的. bashrc 文件是否有下面这段代码, 如果有, 注释掉就可以解决了!     记得修改完要 source ~/.bashrc 才会生效!!!

  • 在目录下查找图片文件并拷贝到指定目录2022-05-02 21:03:19

    代码如下: #!/usr/bin/env python3 import os import shutil #遍历目录下的所有文件 for root, subdirs, files in os.walk('.'): #其中root为当前根目录,subdirs为子目录,files为文件 for file in files: if 'png' in file: source_file = os

  • source-map追踪代码错误debug2022-05-02 18:33:45

    const { resolve } = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: ['./src/js/index.js', './src/index.html'], output: { filename: 'js/built.js'

  • python多进程multiprocessing实现拷贝2022-04-29 16:34:08

    import os import multiprocessing def copy_file(file_name , source_dir, dest_dir): # 1.拼接源文件路径和目标文件路径 source_path = source_dir + "/" + file_name dest_path = dest_dir + "/" + file_name # 2.打开源文件和目标文件 with open(sour

  • linux安装conda后不生效的操作方法2022-04-27 16:31:47

    1、先安装conda,https://www.cnblogs.com/qiaoer1993/p/13612485.html。正常情况下重新打开一个终端后默认的环境就是conda的默认base环境。如果不生效的话请安第二步~ 2、在/etc/profile里面添加如下: # conda,这是把conda的环境加入系统的环境变量export conda=/root/miniconda3exp

  • Shell 脚本避免多次重复 source2022-04-26 22:34:37

        https://kodango.com/avoid-repeated-source-in-shell ${!_sourced_}是间接引用,这个执行没问题,source 会报错 bad substitution  _sourced_="__sourced_$$__" echo "Flag variable $_sourced_=${!_sourced_}" if [ -z "${!_sourced_}" ]; then ev

  • mysql 备份数据库2022-04-26 10:32:12

    mysql 备份数据库   数据库备份方式: 一.  Navicate 转储sql文件,运行sql文件 二.  Navicate 转储sql文件,source 还原 用管理员权限打开cmd,登录mysql后 mysql>source /home/work/db/bkdb.sqld  三. mysqldump 备份还原 注意先开启binlog日志,参考:https://blog.51cto.com/u_

  • Sublime text3 C++自建编译系统2022-04-25 17:31:06

    { "encoding": "utf-8", "shell_cmd": "/opt/homebrew/Cellar/gcc/11.2.0_3/bin/g++-11 $file_path/$file_name -std=c++11 -o yuhyuhy", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "s

  • 【Spring事务控制】编程式事务控制2022-04-25 09:35:49

    事务控制模板类 通过实现接口:TransactionCallback action ,重写里面的doInTransaction方法,将切入点放入方法中,实现事务控制。 该模板类也需要在bean中配置TranscationManger。 样例 bean.xml <!--配置事务管理器--> <bean id="transactionManager" class="org.springfram

  • 【Spring事务控制】基于注解的声明式事务控制2022-04-23 18:01:41

    配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springfr

  • innoSetup打包文件编写模板2022-04-20 17:01:13

    现在打包主要是使用 innosetup 这个软件来进行打包,支持录制脚本和手动编写脚本,比较好用。 此文章主要记录手写脚本,便于后期查询,借鉴。   ; 自定义的宏,方便后期维护 #define MyAppName "良田讲课仪" #define MyAppVersion "V1.0" #define MyAppExeName "TMaker.exe" #define MyAp

  • Axios取消请求以及其原理(v0.26.1)2022-04-18 23:01:16

    Axios取消请求以及其原理(v0.26.1) 1. 取消请求 const axios = require('axios') const instance = new axios.Axios({}) // 创建source,通过source.cancel()取消请求 const source = new axios.CancelToken.source() instance.defaults.timeout = 10000 instance.interceptors.re

  • Makefile文件里变量作用2022-04-18 07:00:17

    - PKG_NAME:=libglog PKG_VERSION:=0.3.3 PKG_REV:=da816ea70645e463aa04f9564544939fa327d5a7 PKG_SOURCE_URL:=git://github.com/google/glog.git PKG_SOURCE_PROTO:=git 扩展变量定义: PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_VERSION:=$(PKG_REV) P

  • rxjs 里 CombineLatest 操作符的一个使用场景2022-04-15 23:32:29

    一个具体的例子: combineLatest([ data$.pipe(startWith(null)), loading$, ]).pipe( takeWhile(([data, loading]) => !data || loading, true), map(([data, loading]) => loading ? null : data), skip(1), distinctUntilChanged(), ); 我们在这里使用巧妙的 takeW

  • 阿里云redis-shake2022-04-15 12:33:55

    一、介绍 redis-shake是阿里云Redis&MongoDB团队开源的用于redis数据同步的工具。下载地址: https://github.com/alibaba/RedisShake/releases?spm=a2c6h.12873639.article-detail.4.4b8974957Y7slI 二、配置 第一次使用,如何进行配置: https://github.com/alibaba/RedisShake/wiki

  • jupyter nbconvert --to FORMAT xxx2022-04-15 07:31:25

    $ jupyter nbconvert --to FORMAT notebook.ipynb This will convert the Jupyter notebook file notebook.ipynb into the output format given by the FORMAT string. 通过命令行把.npynb文件转换成网页形式浏览,得到html之后使用查看源(source),然后把source粘贴到Google sit

  • Maven Project Setting the -source and -target of the Java Compiler2022-04-13 14:04:49

    <project> [...] <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> [...] </project> https://maven.apache.org/plu

  • [Javascript] Build lodash.merge from Scratch2022-04-11 01:32:27

    This lesson will demonstrate how to recreate a simplified version of the popular lodash.merge method from scratch. First we'll create a test file with two objects that we want to merge together and demonstrate the output after running them through lo

  • |NO.Z.00010|——————————|BigDataEnd|——|Hadoop&PB级数仓.V02|---------------------------------------|PB数仓.v2022-04-10 14:34:50

    [BigDataHadoop:Hadoop&PB级数仓.V02]                                      [BigDataHadoop.PB级企业电商离线数仓][|章节二|Hadoop|会员活跃度分析:日志数据采集&taildir/source|]一、日志数据采集### --- 原始日志数据(一条启动日志) 2020-07-3014: 18: 47.33

  • |NO.Z.00039|——————————|BigDataEnd|——|Hadoop&Flume.V02|-------------------------------------------|Fl2022-04-07 15:02:27

    [BigDataHadoop:Hadoop&Flume.V02]                                                  [BigDataHadoop.Flume数据采集工具][|章节三|Hadoop生态圈技术栈|数据采集工具_Flume|Flume架构|]一、Flume体系结构### --- Flume架构中的组件: ~~~ # Agent本

  • Serializer高级用法_字段改名,序列化all2022-04-06 03:03:27

    ```python # source的使用 1 可以改字段名字 xxx=serializers.CharField(source='title') 2 可以.跨表publish=serializers.CharField(source='publish.email') 3 可以执行方法pub_date=serializers.CharField(source='test') test是Book表模型中的方法 # S

  • Golang | 测试与性能调优2022-04-06 01:02:53

    Test 我们在日常的工作过程中,自测是不可缺少的,公司还会要求所有的公共方法必须要写单测,在别的语言中,我们如果想要写单测还需要使用到测试框架,但是Go语言中,直接支持测试,并且使用起来非常简单。 比如说我现在写了一个: // twoSum 给定数组,求两个之和的数组内地址 func twoSum(nums []

  • mysql安装2022-04-05 22:35:13

    mysql安装 清明节明明放了三天,却感觉一回家就结束了,今天又把时间放在了一些小知识点上,不能收整为一篇,所以,我掐指一算,今晚宜发历史存货... 一、yum版 [root@mysql ~]# yum erase mariadb mariadb-server mariadb-libs mariadb-devel -y [root@mysql ~]# userdel -r mysql [root@my

  • 2.python3虚拟环境2022-03-29 01:32:32

    python3虚拟环境 # 进入目录 cd my-probject # 创建虚拟环境 python3 -m venv myvenv 激活虚拟环境 平台 Shell 用于激活虚拟环境的命令 POSIX bash/zsh $ source /bin/activate fish $ source /bin/activate.fish csh/tcsh $ source /bin/activate.csh PowerShe

  • OpenLayers入门练习2022-03-27 18:31:57

    一、实验内容 练习OpenLayers的引用形式; 简单地图加载; 控件加载。 二、实验步骤 2.1 ol引用 <!doctype html> <html lang="zh"> <head> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en

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

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

ICode9版权所有