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) 浏览(5)

关于AI与程序员

2026-5-24 写生活

大约2014年谷歌发明transformer以来,自然语言处理算法走上了日新月异的发展道路。将这种神奇的算法应用于各种看上去主观的动作的事情上时,大家往往叫他为智能体(Agent),如果还给这个智能体增加一副躯体的话他还会被称为具身智能。 今年是2026年,大概可能是智能体应用于写代码的元年了。我也开始一步一步地步了这波潮流。给点简单的描述,他确实可以写出完完整整的代码来,而且从不抱怨,非常快。他的缺点也很明显,除了上述两个优点之外,人类的毛病他一个也不少。他会吹牛,会写bug,会写出可读性很差的代码,会写出冗余的代码,他无法解决一些罕见的问题,也许从网上复制是他最善长的事情。不过...

阅读全文>>

评论(0) 浏览(192)

[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) 浏览(319)

2025是难忘的

2026-1-4 写生活

2025年匆匆忙忙地过去了,那一年以争吵开始,以遗憾结束。那一年拿到了职称,取得了学位,新申请的专利也通过了。本以为是兴高采烈的一年时,岳父突发重疾,万般无奈之下与世长辞。 人生的意义是什么暂不清晰,我只知道,生活中的努力是为了以后不那么艰难。同时,很多时候,我们不认识身边的人更不认识自己,善待每一个人是何其重要。

阅读全文>>

评论(0) 浏览(415)

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) 浏览(636)

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) 浏览(828)

零到一

2025-2-23 写生活

零到一是一种质变,解决了从没有到有的问题。一生二,二生万物,理论上一就是万物。

阅读全文>>

评论(0) 浏览(1200)

[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) 浏览(1497)

不要慌太阳下山有月光

2024-10-31 写生活

工作之后十多年了,再也没有专门听过新歌,长期以来脑海里回荡的只有回忆。最近不经意地被一首从没听过的旋律打动,是心动的感觉。晚上专门翻了一个多小时的抖音,总算找到了出处: 不要迷茫,不要慌张; 太阳下山,还有月光, 它会把人生路照亮, 陪你到想去的地方。 不要彷徨,不要沮丧; 月亮睡了,还有朝阳...

阅读全文>>

评论(0) 浏览(1661)

[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) 浏览(1651)

Powered by anycle 湘ICP备15001973号-1