自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(70)
  • 收藏
  • 关注

原创 wsl使用

root 用户打开wls。设置wsl默认启动用户。

2024-11-16 10:28:27 311

原创 cython 中操作字符串类型的内存视图

cimport cythoncimport numpy as npimport numpy as npfrom cython import addressimport pandas as pd@cython.boundscheck(False)@cython.wraparound(False)cpdef unsigned char[:,:] get_bytes_arr_view(np.ndarray bytes_arr): # 在每个bytes数组最后补零,(可自行测试不补零的..

2021-09-08 14:34:09 317

原创 使用pre-commit检查代码风格

依赖安装pip install pre-commitpip install flake8pip install pep8-namingpip install blackpre-commit 配置文件创建如下内容配置文件 .pre-commit-config.yaml ,放在git项目根目录repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: - id: che

2021-01-16 11:43:44 829

原创 Clion linux开发环境搭建

clion 下载 安装https://download.jetbrains.8686c.com/cpp/CLion-2019.3.exehttps://download.jetbrains.8686c.com/cpp/CLion-2019.3.tar.gzlinux开发环境搭建sudo apt-get install build-essentialclion 配置File->Setting->Build,Execution,Deployment项目刷新项目文件夹右

2020-10-15 09:09:10 2019

原创 ubuntu 安装文件下载 启动u盘制作 双系统安装

阿里云镜像http://mirrors.aliyun.com/ubuntu-releases

2020-10-14 10:01:30 160

原创 windows手动清理垃圾文件

这个临时目录有很多垃圾文件:C:\Users\XXX\AppData\Local\Temp

2020-09-23 13:39:11 323

原创 nuxt+vuetify项目图标无法显示

默认的远程加载图标图标本质上就是字体,而vuetify默认从远程地址拉取css和字体文件所以在离线环境下必须使用本地加载字体的方式默认的加载图标的方式如下<link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">使用离线方式加载1.在nuxt

2020-09-23 11:17:41 1579 2

原创 Pytorc分布式训练

当模型训练过程显存占用较大无法在单个gpu上完成的时候,必须使用分布式训练,将模型或者数据分配到不同的节点上,降低单个gpu的负荷。这里重点介绍最简单的数据并行范式的分布式训练(DistributedDataParallel,ddp),基本思想就是将一个大的batch的训练数据的loss计算拆分成多个小的batch,分配到多个不同的gpu上分别计算loss,然后收集加总,再进行反向传播。多机多卡数据并行训练多机多卡数据并行训练最方便的实现是利用torch.nn.parallel.Distributed

2020-08-11 14:04:28 262

原创 unbuntu18.0.4 安装nvidia驱动 cuda cudnn

1.打开终端窗口,使用以下命令检查Nvidia卡正在使用哪个驱动程序:sudo lshw -c display还可以使用video而不是display作为类名:sudo lshw -c video默认情况下,开源nouveau驱动程序用于Nvidia卡2.禁用nouveau 显卡驱动blacklist nouveauoptions nouveau modeset=02.重新生成 kernel initramfs:sudo update-initramfs -u3...

2020-06-30 13:55:04 1193

原创 NLP 学习资源

// 美团技术博客美团nlp团队参加竞赛获奖项目介绍美团数据开发团队整合Jupyter和Spark

2020-06-19 15:26:18 191

原创 talib 安装

ta-lib-0.4.0-msvc.zip 下载链接下载上述源代码后解压到C盘 在开始菜单下搜索Native Tools Command Prompt运行后进入cmd界面:: 切换到C盘C::: 进入talib 编译目录cd C:\ta-lib\c\make\cdr\win32\msvc:: 执行编译nmakepip install ta-lib...

2020-06-05 17:09:40 1149

原创 编程启动zookeeper和kafka broker

maven 依赖 <!-- https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-core --> <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactI...

2020-06-05 10:01:29 233

原创 进行快速axios请求测试的html文件

<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>快速测试axios请求</title> <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.19.2/axios.min.js"></script> <script> var.

2020-05-25 18:08:53 1554

原创 transformers 使用bert中文模型

pytorch 下载gpu版pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.htmlcpu版pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html中文bert-wwm 模型 下载中文bert-w

2020-05-23 21:17:44 9924 4

原创 1个 pywinauto issue 和 Windows DPI 设置

Python获取Win7,Win10系统缩放大小

2020-05-08 11:18:00 444

原创 SpringCloudStream学习

Spring Cloud GitHubSpring cloud 官方文档Rabbitmq binderIBM MQ binder

2020-04-24 16:38:23 203

原创 windows环境 rabbitmq 启动关闭脚本

set ERLANG_HOME=D:\Programs\erl10.4set PATH=%PATH%;%ERLANG_HOME%\bincd D:\Programs\RabbitMQServer\rabbitmq_server-3.8.3\sbin:: 服务地址在http://localhost:15672/call rabbitmq-plugins enable rabbitm...

2020-04-17 14:26:35 589

原创 rabbitmq参考资料

https://www.rabbitmq.com/admin-guide.html

2020-04-15 11:44:01 191

原创 Mybatis参考

https://mybatis.org/mybatis-3/zh/getting-started.html

2020-04-13 16:23:32 186

原创 获取泛型参数类型

public abstract class AbstractEventHandler<T extends BaseEvent> { /** * 子类获取抽象父类的泛型参数类型 * * @return {@code Class<T>} * @author fengxin * @date 2020/3/3...

2020-04-13 15:13:30 363

原创 RabbitMq 实现消息自动序列化和反序列化的配置

配置@Configurationpublic class RabbitMqConfig implements RabbitListenerConfigurer { //以下配置RabbitMQ消息服务 @Autowired public ConnectionFactory connectionFactory; @Bean public De...

2020-03-27 17:52:44 4100 7

原创 EA 源码工程 Java

1.编码设置项目->项目设置->源代码工程默认语言设置为:java默认字符集设置为: utf-8

2020-03-27 13:12:38 494

原创 tensorflow_datasets imdb_reviews数据下载失败解决方案

谷歌的资源国内下载很容易卡住首先从百度网盘下载数据集压缩包存放到 XXX/tensorflow_datasets 文件夹链接:imdb_reviews提取码:vfng然后修改源码中如下方法tensorflow_datasets.text.imdb.IMDBReviews#_split_generators定义压缩文件路径:USER_DEFINED_ARCH_PATH...

2020-03-17 15:43:33 2602 3

原创 分布式版本jdbc

当当网 Sharding Sphere 分布式版本jdbc

2020-03-10 15:31:57 186

原创 ZipKin链路追踪

ZipKin官网ZipKin链路追踪介绍

2020-03-10 15:31:09 299

原创 编程思想学习资源

// 蚂蚁金服王益推荐The Art of Unix ProgrammingStructure And Interpretation of Computer ProgramsPaul Graham 博客

2020-03-10 15:23:07 185

原创 Java Spring 学习资源

https://tech.meituan.com/2019/02/21/wsdm-cup-meituan-nlp-practice.htmlhttps://tech.antfin.com/community/articles/751http://www.catb.org/~esr/writings/taoup/html/https://mitpress.mit.edu/sites/de...

2020-03-10 15:20:14 140

原创 maven install命令 指定模块 跳过测试

mvn install -pl unimall-launcher -DskipTests=truemvn install -pl unimall-launcher -Dmaven.test.skip=true

2020-03-10 10:29:49 2627

原创 非空数据库使用flyway

-- 执行以下sql,创建 flyway_schema_history 表即可-- dbname 为要使用flyway的非空数据库create table if not exists dbname.flyway_schema_history( installed_rank int not null primary key, version varchar(50) null, de...

2020-03-09 18:38:11 618

原创 一个JavaScript bug

// 错误写法that.couponList = couponListTemp.filter(item=>{item.categoryId &&(item.categoryId === that.goods.categoryId}))// 正确写法that.couponList = couponListTemp.filter(item=>item.cat...

2020-03-08 17:30:16 122

原创 Intellij IDEA运行报Command line is too long解决办法

configuration设置里面 把 shorten commandLine 选为 classpath file

2020-03-06 11:50:27 557

原创 Windows系统查看指定端口占用情况

// 查看所有端口占用进程netstat -ano// 查看80端口占用进程netstat -aon|findstr ":80"记下PID 后 进入 :任务管理器-》详细信息 按需停止对应进程

2020-02-29 12:30:31 319

原创 Spring配置项明细查询

// 配置项明细可在如下jar包中找到 也可在idea中按住ctrl加鼠标点击实现从配置项跳转到配置类.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.4.RELEASE\spring-boot-autoconfigure-2.2.4.RELEASE.jar...

2020-01-21 17:57:19 310

原创 nltk资料

官方教程http://www.nltk.org/book/ch00.htmldocumentationhttp://www.nltk.org/github 源码https://github.com/nltk/nltk我爱自然语言处理论坛http://www.52nlp.cn/tag/nltk%E4%BB%8B%E7%BB%8D结巴中文分词https://gith...

2020-01-18 20:56:40 172

原创 python3 简化条件语句的两种方法

# -----简化条件语句的两种方法----- # valt if condition else valf def test_if(b): return 'true' if b else 'false' # condition and valt or valf def test_if2(b): return ...

2020-01-14 15:53:04 1371

原创 maven 使用自定义仓库

在 pom.xml中加入 <repositories> <repository> <id>local</id> <url>file:C:/Users/toosimple/.m2/repository</url> </...

2019-12-25 18:02:44 385

原创 Swagger注解的规范用法 提高前后端及测试配合效率

详解https://blog.youkuaiyun.com/xiaojin21cen/article/details/78654652###用法1.@ApiParam结合JAX-RS注解或Sping web.bind注解组合使用代码样例: @ApiOperation(value = "测试swagger注解") @PostMapping("/testSwagger/{id}...

2019-12-24 15:42:38 639

原创 ZeroMQ 消息模式简介 ——java版

本介绍基于以下依赖 <dependency> <groupId>org.zeromq</groupId> <artifactId>jeromq</artifactId> <version>0.5.1</version> ...

2019-12-20 10:59:46 1162

原创 SpringCodeGen使用说明

SpringCodeGenidea插件,针对sql脚本中的所有"create table"语句生成对应表的相关springboot代码。使用说明在idea中的任意Module下,在编辑器中打开包含CREATE TABLE语句的sql脚本(可以有多个语句,用;分隔)按下快捷键之前状态如下图所示,光标需要选中当前sql脚本。按下快捷键Ctrl+Alt+G,即可生成代码,插件会提示生成代码的...

2019-12-13 17:26:56 1054

原创 idea 插件开发

官方教程http://www.jetbrains.org/intellij/sdk/docs/welcome.htmlgithub上sdk源码,文档,demo地址 (有sample 代码)https://github.com/JetBrains/intellij-sdk-docs.gitidea社区版githubhttps://github.com/JetBrains/...

2019-12-12 13:29:42 648

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除