自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 通过实验弄清楚MinMaxScaler

实验验证了MinMaxScaler的工作原理:通过加载形状为(5094,1280,4)的曲线数据,计算各特征的最大最小值后,使用MinMaxScaler进行归一化处理。结果显示scaler.scale_等于1/(data_max_-data_min_),证实了MinMaxScaler的标准化公式为X_std = (X - X.min()) / (X.max() - X.min())。实验数据包含4个特征,其取值范围差异较大,经MinMaxScaler处理后所有特征值将被线性变换到[0,1]区间。

2026-02-05 09:16:10 25

原创 在python中测试两种字符转数值的方法

本文测试了Python中两种字符串转数值的方法:方法1使用try-except结构依次尝试int和float转换,方法2通过字符串分割和isnumeric()判断。对包含"123"、"456.78"等4个测试字符串进行5轮10万次测试,结果显示方法1平均耗时约29.3万微秒,方法2约52.6万微秒。结论表明,基于异常处理的转换方法比手动字符串判断效率更高,与预期相反。这可能因为字符串操作比异常处理开销更大,但方法1更健壮能处理更多边界情况。

2026-01-12 09:37:32 232

原创 不同系统的程序员有什么区别

程序员,在外人眼里都是一样的,其实在设计不同的系统时,需要考虑的东西有天壤之别的。

2025-08-17 05:38:31 257

原创 TDD测试驱动开发的意义

这主要是在大型项目团队中应用的,每个成员接收到分配的任务后,如何确保自己负责的模块符合要求呢?可以将测试模型做出来,自己负责的那部分代码只要符合测试模型的要求就可以了。最近在读《奔跑吧程序员》这本书,里面讲了TDD测试驱动开发这个概念。对于我这种草莽程序员来说是头一次听说,开始的时候觉得新颖和不理解。

2024-09-13 06:26:37 241

原创 ubuntu与windows双系统时间同步问题——简明指南

【代码】ubuntu与windows双系统时间同步问题——简明指南。

2024-03-04 10:30:13 666

原创 Spring Framework的设计哲学(Bing翻译)

Spring Framework的设计哲学

2023-03-11 11:19:04 540

原创 Spring Boot官方例子《Developing Your First Spring Boot Application》无法运行

Failed to read candidate component class: URL

2023-03-10 20:59:02 678

原创 Elasticsearch 8.0 installation

after creating an enrollment token on your existing cluster. You can complete the following actions at any time: Reset the password of the elastic built-in superuser with '/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'. Generate a

2022-02-18 07:44:16 896

原创 使用nginx代理更新ubuntu的apt和elasticsearch

名称定义 ProxyServer: 能上外网的服务器有2个IP,其中内网IP是192.168.0.10 Client: 不能上外网,希望通过ProxyServer进行更新的客户机,可以与ProxyServer连通。 配置ProxyServer 安装nginx(不在这里介绍) 增加一个nginx的子配置文件proxy_conf/proxys.conf: cd /usr/local/nginx/conf sudo mkdir proxy_conf && cd proxy_conf

2022-02-15 10:43:37 2539 1

原创 nvm在ubuntu中本地安装

不要再改host了,改host只是改了DNS,不代表你能连上那个IP。 其实nvm的github中说的很清楚了,可以使用git方式安装: Git Install If you have git installed (requires git v1.7.10+): clone this repo in the root of your user profile cd ~/ from anywhere then git clone https://github.com/nvm-sh/nvm.git .

2021-11-30 05:43:54 511

原创 Visual Studio从2017 Express升级到2019 Professional,C++项目无法找到头文件

之前的项目用Visual Studio Express 2017编写的,升级后再打开时,发现一堆红线,无法编译 找到项目属性 发现Platform Toolset显示的是not installed 更改成一个已经安装的platform 这里也要改一下,改成latest installed version 红线消失,可以编译了。 问题解决。 ...

2021-09-14 08:04:03 543

原创 C#中的静态变量与内部变量的效率

一直不了解到底应该将变量定义成动态还是静态,做了一个实验: // -------------- APP ----------- public partial class App : Application { public static int int_static = 0; public static test_class class_static = new test_class() { age=0, name=""}; } // ----

2021-08-31 08:01:12 638

原创 C# WPF编译错误:App 没有合适的静态Main方法

查看app.xml的属性,发现Build Action的属性为“Page”,将其改为"ApplicationDefinition",问题解决。

2021-04-20 08:46:50 520

原创 在Jetson AGX Xavier上安装运行deepstream-app

1. 安装Jetpack,我这个Xavier买回来就安装好了Jetpack4.4,我也不想折腾最新的4.5了,就这样安装吧。 2. 安装适合nVidia的Tensorflow. 步骤参考: 在这里搜索tensorflow:https://developer.nvidia.com/zh-cn/embedded/downloads 然后按照右侧Document里面的指导进行安装 3. 安装Deepstream依赖 https://docs.nvidia.com/metropolis/deepstre.

2021-01-27 15:32:28 527

转载 2021-01-15 利用TensorRT进行预测

https://docs.nvidia.com/deeplearning/tensorrt/developer-guide/index.html#build_engine_python 3.5.Performing Inference In Python The following steps illustrate how to perform inference in Python, now that you have an engine. Procedure Allocate some h.

2021-01-15 16:46:04 574

转载 Docker 本地导入镜像/保存镜像/载入镜像/删除镜像

原文链接:https://www.cnblogs.com/linjiqin/p/8604756.html Docker 本地导入镜像/保存镜像/载入镜像/删除镜像 1、Docker导入本地镜像 有时候我们自己在本地或者其它小伙伴电脑上拷贝了一份镜像,有了这个镜像之后,我们可以把本地的镜像导入,使用docker import 命令。 例如这里下载了一个 alibaba-rocketmq-3.2.6.tar.gz 镜像文件,使用下列命令导入: [root@rocketmq-nameserver4

2021-01-08 16:23:42 819

原创 ffplay利用directshow播放USB摄像头

首先,利用ffmpeg查看摄像头的列表: C:\Windows\system32> ffmpeg -list_devices true -f dshow -i dummy ffmpeg version 2020-12-24-git-9a0f5e412a-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers built with gcc 10.2.0 (Rev5, Built by MSYS2 project)

2021-01-04 21:23:31 2795

原创 Visual Studio Express 2017 报错 :HRESULT E_FAIL

故障描述: 在选择项目的References的时候,报错HRESULT E_FAIL 参考链接: https://blog.csdn.net/qq_36981814/article/details/103574485?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFr

2021-01-04 16:21:08 338

原创 ubuntu 20.01利用apt部署logstash并添加到自启动服务

参考官方指导: https://www.elastic.co/guide/en/logstash/current/installing-logstash.html sudo apt-get install apt-transport-https 设定elasticsearch的源 echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-

2020-12-08 16:47:42 859

原创 Error: Could not find or load main class xxxx错误

运行环境: Windows data_wrapper.java的源代码: public class data_wrapper{ public static void main(String[] args){ System.out.println("Hello"); } } 直接执行 javac data_wrapper.java java data_wrapper 会报错: Error: Could not find or load main class data_wrapper 解决办法:

2020-11-26 14:20:08 643

原创 Python错误:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte...

错误提示如下: (tf2) C:\Users\user>python Python 3.7.6 | packaged by conda-forge | (default, Mar 5 2020, 14:47:50) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Failed calling sys.__interactiveh.

2020-09-03 14:22:16 12580 7

原创 Some configuration for Raspiberry

Backup disk using dd command in Ubuntu sudo dd if=/dev/sdc | gzip>/home/pi/raspberry.gz Hide the mouse: apt install unclutter echo "@unclutter -idle 1 -root" >> /etc/xdg/lxsession/LXDE/autostart Download a deb package: sudo apt download x.

2020-08-13 20:53:54 204

原创 Opencv Python 录像

import numpy as np import cv2 import datetime from general_utils import ImgUtil cap = cv2.VideoCapture(0) ## some videowriter props sz = (int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)), int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))) fps = 10 #fourcc = cv2.VideoWrit.

2020-07-21 22:13:25 431

原创 在Jetson的虚拟环境中安装scipy的问题

问题如下: (tf2) cpt@cie-jetson:~/jm/envs$ pip install PEP517 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting PEP517 Downloading https://mirrors.aliyun.com/pypi/packages/43/f6/4af3567c136e8e1620f6fcff665f9a478e68d06f9c990d0f2717cf9a2.

2020-06-11 14:16:03 1062

原创 Vue的index.html文件

里面有一个 这个id需要和App.vue里中的id,以及main.js里面的el:’#app’保持一致 否则有问题。

2020-05-20 11:24:02 1221

原创 开始玩Vue

1. 安装nodejs 参考教程:https://www.runoob.com/nodejs/nodejs-install-setup.html 2. 安装npm 参考教程:https://www.runoob.com/nodejs/nodejs-npm.html 3. Vue的安装以及创建第一个项目: 参考教程:https://www.runoob.com/vue2/vue-install.html 注意,Vue应该安装在你的项目下,否则会有下面的错误信息: D:\MyDev\vue\te

2020-05-20 10:51:40 739

原创 用nginx解决Ubuntu安装Nodejs的8080端口无法访问

在树莓派Ubuntu 20.4 Server中,安装了一个Vue,在本机可以通过curl访问,但是在局域网中的其他电脑无法访问。 用nginx代理服务器的形式解决了: 编辑/etc/nginx/nginx.conf sudo nano /etc/nginx/nginx.conf 在http段的server下 user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled..

2020-05-09 17:29:40 866

原创 可以实现自动挂载双硬盘的/etc/fstab配置文件

可以实现自动挂载双硬盘的/etc/fstab配置文件 LABEL=writable / ext4 defaults 0 0 LABEL=system-boot /boot/firmware vfat defaults 0 1 UUID=C6BCE210BCE1FAB7 /home/ubuntu/usb1 ntfs defaults 0 0 UUID=9AE097F8E097D8B9 .

2020-05-09 08:50:43 424

转载 FSTAB的手册

FSTAB(5) File Formats FSTAB(5) NAME fstab - static information about the filesystems SYNOPSIS /etc/fstab DESCRIPTION The file fstab contains ...

2020-05-09 08:27:56 395

原创 ubuntu下装载ntfs硬盘

需要先安装ntfs-3g的支持 sudo apt install ntfs-3g 然后创建一个用来装载ntfs硬盘的目录 mkdir ~/usb 查看硬盘的名字 sudo fdisk -l 比如我的硬盘名字是 dev/sdb 1 那么我就用下面的命令装载 sudo mount -t ntfs-3g /dev/sdb1 ~/usb ...

2020-04-16 20:27:20 1424

原创 在Windows的Anaconda环境构建Object Detection应用

Prerequisite packages Name Tutorial version-build pillow 5.4.1-py36hdc69c19_0 lxml 4.3.1-py36h1350720_0 jupyter 1.0.0-py36_7 matplotlib 3.0.2-py36hc8f65d3_0 opencv ...

2020-03-06 20:09:40 331

原创 Logstash 使用JDBC的注意事项

问题: 使用如下配置文件,logstash无法连接数据库: input { jdbc { jdbc_driver_library => "../connector/mysql-connector-java-5.0.8.jar" jdbc_driver_class => "com.mysql.jdbc.Driver" jdbc_connection_string =...

2020-01-12 09:36:50 1412

原创 logstash使用JDBC连接MySQL错误(已经解决)

开始时候使用JDBC8.0.11 [2020-01-03T08:17:00,189][ERROR][logstash.inputs.jdbc ] Unable to connect to database. Tried 1 times {:error_message=>"Java::JavaSql::SQLNonTransientConnectionException: CLIENT...

2020-01-03 08:38:53 7226

原创 logstash的file input plugin插件不按顺序读取数据

比如csv文件的内容如下: rec1,1,5,5 rec1,2,2,2 rec1,3,44,44 rec1,4,33,22 rec2,5,66,55 rec2,6,4,4 csv的mapping: csv { separator => "," skip_empty_rows => true columns => [ "Sensor...

2020-01-02 15:52:42 1236

转载 《动手学深度学习》

http://zh.d2l.ai/index.html

2019-12-26 22:21:28 173

原创 linux系统配置文件

/etc/sudoers 设置哪些用户可以使用sudo命令,编辑要用so模式 /etc/hosts 设置本地主机与地址解析

2019-12-18 08:20:20 219

原创 视觉检测方法

https://m.sohu.com/a/286018721_100251942/?pvid=000115_3w_a https://m.sohu.com/a/237994751_100166336/?pvid=000115_3w_a

2019-12-18 05:42:13 697

原创 elk与hadoop的区别

https://help.aliyun.com/document_detail/48204.html

2019-12-17 05:32:49 2372

原创 anaconda打不开的解决方法

电脑系统Windows10,不知为何,anaconda navigator 点了之后没有反应,无法启动。 网上有一系列教程,告诉怎么conda update之类的,尝试多种方法都没有效果。 考虑到自己系统里面还有别的python被安装了,会不会是这个原因? 卸载了所有的python以及anaconda,并且把anaconda的安装文件夹全部删除: C:\Users\ljm\AppData...

2019-12-11 14:12:12 18464

转载 【转】【深度学习】目标检测算法总结(R-CNN、Fast R-CNN、Faster R-CNN、FPN、YOLO、SSD、RetinaNet)

本文转自于cnblogs https://www.cnblogs.com/guoyaohua/p/8994246.html 目标检测是很多计算机视觉任务的基础,不论我们需要实现图像与文字的交互还是需要识别精细类别,它都提供了可靠的信息。本文对目标检测进行了整体回顾,第一部分从RCNN开始介绍基于候选区域的目标检测器,包括Fast R-CNN、Faster R-CNN 和 FPN等。第二部分...

2019-12-11 12:39:22 607 1

空空如也

空空如也

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

TA关注的人

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