conda 下替换源

2026-6-24 写技术

# 清除原有配置(可选,但建议) conda config --remove-key channels # 添加清华镜像源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu...

阅读全文>>

标签: linux

评论(0) 浏览(79)

[linux] Add or delete a lot of files in SVN

2026-4-16 写技术

svn status|grep "^!"|awk '{print $2}'|xargs svn rm svn status svn status|grep "^?"|awk '{print $2}'|xargs svn add svn status

阅读全文>>

标签: linux

评论(0) 浏览(371)

Docker images for petalinux

2025-11-10 写技术

Dockerfile:  # 使用 Ubuntu 20.04 作为基础镜像 FROM ubuntu:20.04 # 设置环境变量 ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Asia/Shanghai ENV PETALINUX_INSTALLER=petalinux-v2021.2-final-installer.run ENV PETALINUX_DIR=/data/working/peta # 重新生成 sources.list 文件 RUN dpkg --add-architec...

阅读全文>>

标签: linux

评论(0) 浏览(688)

Get Base64 codec images from RTSP

2025-6-20 写技术

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #include <libswscale/swscale.h> #include <libavutil/imgutils.h> #include <libavutil/base64.h> #include <libavutil/me...

阅读全文>>

标签: C++

评论(0) 浏览(880)

[js] Create an alert funtion by javascript

2025-1-10 写技术

document.addEventListener('DOMContentLoaded', function() { (function() { // 创建模态对话框的 HTML 结构 var modalHTML = ` <div id="myModal" class="modal"> <div class="modal-content"> <p id="modal-message"></p> <bu...

阅读全文>>

标签: JS

评论(0) 浏览(1532)

[python]Replace key words of all documents in a directory

2024-9-27 写技术

from docx import Document def replace_text_in_word(file_path, new_path, old_texts, new_text): doc = Document(file_path) for old_text in old_texts: for paragraph in doc.paragraphs: if old_text in paragraph.text: paragraph.text = paragraph.text.repl...

阅读全文>>

标签: python

评论(0) 浏览(1686)

[linux]Copy text between host and vmware machine.

2024-8-29 写技术

If there are troubles while coping text between host and vmware machine. Try to install vmware tool by vmware menus. After failed in this way, try to run the command: ./vmware-user If the command not exists, you can install it by command: sudo apt install ...

阅读全文>>

标签: linux

评论(0) 浏览(1663)

[linux] ping 127.0.0.1 failed

2024-8-12 写技术

If ping 127.0.0.1 failed. Maybe the localohst network is not available. Use the command ifconfig -a to find if the lo is available. Use the command ifocnfig lo 127.0.0.1 to enable it.

阅读全文>>

标签: linux

评论(0) 浏览(1537)

[python]Affine Transform

2023-11-3 写技术

import cv2 import numpy as np img = cv2.imread("book.png",1) img_org = img.copy() h,w = img.shape[:2] p1 = np.float32([[81,30],[378,80],[13,425]]) p2 = np.float32([[0,0],[300,0],[0,400]]) M = cv2.getAffineTransform(p1,p2) img = cv2.warpAffine(img,M,(w, h)) cv2.imshow("org",img_org) cv2.i...

阅读全文>>

标签: linux python

评论(0) 浏览(2365)

[linux]Running sftp automatically by expect tools

2023-8-27 写技术

#!/usr/bin/expect -f send "mv ./models/weights/FCRNet.weights.h5 ./models/weights/FCRNet.weights.h5.back\r" expect "*python39*" spawn sftp -P 3222 root@log.anycle.com expect "*assword" send "dppppppppppasdas\r" expect "sftp>" set timeout -1 send "get /hy-tmp/FCRN/models/weights/FCRNet.wei...

阅读全文>>

标签: linux

评论(0) 浏览(1793)

Powered by anycle 湘ICP备15001973号-1