• debian多语言

    ```#修改sudoaptinstalllocalessudodpkg-reconfigurelocales#查看所有locale-a#查看当前locale```

  • AI技术选型

    ##编程语言`python`没办法必须了解,几乎所有训练框架都是`python`。```c++python```##训练框架```pytorchlibtorchtensorflowPaddlePaddlescikit-learn```##部署环境```ggmltensorrtopenvinoonnxruntime```##其他框架```dlibfaissollamaopencvffmpeg```

  • 20241009

    ##10月09号星期三天气晴最近广州也入秋了,但是白天天气还是很热,但是晚上还是比较凉快的,跳绳基本上都不会出汗了。而且天气非常好,天天都是上午有点点白云,过了九点就是万里无云,一片晴空。最近的股市也是不是涨停就是跌停,就像过山车,但是还是那句话没到4000点不要乱动😂😂😂国庆最后一天睡午觉的时候做了一个梦,梦到自己油尽灯枯了,躺在医院的病床上,回忆自己的一生,突然就醒了。看着这熟悉而又陌生的出租屋,感觉自己都变得非常陌生了,环顾四周一时茫然,感觉自己有点蹉跎岁月了。

  • H2数据库修复

    最近有些简单项目直接使用内嵌的`H2`数据库,但是单元测试跑着跑着文件损坏了,使用下面命令可以修复:```#原始JDBC链接:jdbc:h2:file:./hfx.db#导出SQL文件java-cp.\h2-2.2.224.jarorg.h2.tools.Recover-dbhfx.db#修改旧的文件名称hfx.db.mv.db->hfx.db.mv.db.backupjava-cp.\h2-2.2.224.jarorg.h2.tools.RunScript-urljdbc:h2:file:./hfx.db-script.\hfx.db.h2.sql```旧的文件建议保留,没有问题以后再删除。

  • Java通过FFmpeg实现rtp多路推流

    ```packagecom.acgist.stream;importjava.io.File;importjava.io.IOException;importjava.io.InputStream;importjava.io.OutputStream;importjava.net.DatagramPacket;importjava.net.DatagramSocket;importjava.net.InetAddress;importjava.net.InetSocketAddress;importjava.nio.ByteBuffer;importjava.security.cert.X509Certificate;importjava.util.ArrayList;importjava.util.List;importjava.util.Map;importjava.util.Properties;importjava.util.Timer;importjava.util.TimerTask;importjava.util.concurrent.TimeUnit;importjavax.net.ssl.H...

  • Debian解决vim乱码

    ```vim/etc/vim/vimrc---setfileencodings=utf-8,gbk,gb2312settermencoding=utf-8setencoding=prc---```

  • Linux配置24小时制

    ```vim/etc/locale.conf---LANG=zh_CN.utf8LANGUAGE=zh_CN.utf8---source/etc/locale.confvim/etc/default/locale---LANG=zh_CN.utf8LANGUAGE=zh_CN.utf8---source/etc/default/locale```

  • 名字

    少游芷榆

  • C++ STL ranges

    `C++20`在`STL`库里面提供`ranges`头文件,通过这个可以实现类似`Java`流一样的链式编程:```#include#include#includeintmain(){std::vectorv{1,2,3,4};autoc{v|std::ranges::views::filter([](constauto&i){returni%2==0;})|std::ranges::views::reverse|std::ranges::views::take(1)};for(constauto&x:v){std::cout<<x<<'\n';}std::cout<<"===="<<'\n';for(constauto&x:c){std::cout<<x<<'\n';}return0;}``````g++-std=c++20demo.cpp```

  • Android使用termux模拟Linux环境

    最近研究怎么在`Android`上面运行`SpringBoot`项目,发现使用`termux`可以模拟`Linux`环境。参考地址:```https://github.com/termux/termux-app/releaseshttps://mirrors.tuna.tsinghua.edu.cn/help/termux/```##安装`SSH````#查看IPifconfig#安装服务pkginstallopenssh#查看账号whoami#设置密码passwd#启动服务sshd#查看端口(需要root权限)netstat-alt```>默认`ssh`端口`8022`##JDK11下载默认`JDK`版本`17`,其他版本下载:```https://github.com/Hax4us/javahttps://github.com/hfib/openjdk11-termuxhttps://github.com/xiliuya/openjdk11-termuxhttps://github.com/SHivnaTH13/Termux-OpenJDKhttps://github.com/Lzhiyong/te...

  • 月季的雨季

    今年真的是难受,月季的每一波花期都在连绵的阴雨天里面。其实下一两天雨对月季还是有好处的,但是现在一下就是两三周,上次差不多两个月😂😂😂长时间下雨会带走土壤肥力不说,最麻烦的就是让根系厌氧,然后突然暴晒就容易嗝屁,就算不嗝屁很多嫩叶也会直接焦掉,难受😑😑😑还有各种奇奇怪怪的病😱😱😱来波大图赏一下:![戴维](//static.acgist.com/resources/images/article/202408/d5cffbf4-f246-4945-9963-515f3edb33b5.jpg)![红龙](//static.acgist.com/resources/images/article/202408/c448967d-f249-427e-a536-d9dc4a6ea9d8.jpg)![红龙](//static.acgist.com/resources/images/article/202408/db773926-40f2-4ee8-9d4b-208500cd611e.jpg)![红龙](//static.acgist.com/resources/images/article/202408/...

  • Git重置提交记录

    `Git`重置提交记录,删除旧的所有记录重新提交:```#创建空白分支gitcheckout--orphanresetgitadd.gitcommit-m"[+]init"#删除旧的分支gitbranch-Dmaster#修改新的分支gitbranch-mmaster#覆盖远程分支gitpush-foriginmaster```

  • C++泛型

    ```/data/lifuren/core/src/source/config/Config.cpp:Inlambdafunction:/data/lifuren/core/src/source/config/Config.cpp:90:55:error:expectedprimary-expressionbefore‘>’token90|autox=client.as();|^/data/lifuren/core/src/source/config/Config.cpp:90:57:error:expectedprimary-expressionbefore‘)’token90|autox=client.as();|^/data/lifuren/core/src/source/config/Config.cpp:Inlambdafunction:/data/lifuren/core/src/source/config/Config.cpp:25:55:error:expectedprimary-expressionbefore‘>’token25|conststd::string&vk=...

  • SpringAI Ollama

    今天发现原来还有`SpringAI`这个东西,用来和`Ollama`对接非常方便。##ollama```mkdir-p/data/ollamacondacreate--nameollamapython=3.11condaactivateollamacurl-fsSLhttps://ollama.com/install.sh|shollamapullglm4ollamapullquentinz/bge-large-zh-v1.5condadeactivate```##添加依赖```io.springboot.aispring-ai-ollama-spring-boot-starter1.0.3```##测试代码```@TestpublicvoidtestApi(){finalOllamaApiapi=newOllamaApi("http://192.168.8.50:11434");finalOllamaChatClientclient=newOllamaChatClient(api,OllamaOptions.create().withModel("glm4"));finalScannerscanner=ne...

  • SpringBoot3.x学习

    `SpringBoot3.x`支持了很多新的特性:`native`/`JDK17`/`WebClient`/`RestClient`/`HTTPInterface`等等。总结一些问题:####`RestClient`乱码```finalRestClientclient=RestClient.builder().baseUrl("https://www.acgist.com").messageConverters((list)->{list.forEach(v->{if(vinstanceofStringHttpMessageConverterx){x.setDefaultCharset(StandardCharsets.UTF_8);}});}).build();```###`WebClient`/`RestClient`/`RestTemplate````@Bean@ConditionalOnMissingBeanRestClient.BuilderrestClientBuilder(RestClientBuilderConfigurerrestClientBuilderConfigurer){...

  • RNNOISE模型训练

    #RNNOISE模型训练##环境```sudoaptinstallvimparallelsudoaptinstallbuild-essentialsudoaptinstallpython3python3-pipsudoaptinstallffmpeglibtoolautoconfvim~/.pip/pip.conf---[global]index-url=https://pypi.tuna.tsinghua.edu.cn/simple---pip3installtqdmtorchnumpy```##数据```#提取ffmpeg.exe-i.\source.wav-ar48000-ac1-fs16le-c:apcm_s16lenoise.pcmffmpeg.exe-i.\source.ts-vn-ar48000-ac1-fs16le-c:apcm_s16lenoise.pcm#去掉超过0.4秒的静音ffmpeg-ar48000-ac1-fs16le-inoise.1.pcm-afsilenceremove=stop_periods=-1:stop_duration=0.4:stop_threshold=-60d...

  • C++字面量前后缀

    ```#自动推导usingnamespacestd::string_literals;autoa="1234"s;#自动推导usingnamespacestd::string_view_literals;autoa="1234"sv;#多行文本R"(acgistacgist)"#u8、u、U、Lchar8_t、char16_t、char32_t、wchar_t```#LULLLULL

  • frp配置

    #frps```#本地监听bindAddr="0.0.0.0"bindPort=7000vhostHTTPPort=7080vhostHTTPSPort=7443#TLStransport.tls.certFile="/data/project/frp_0.58.1_linux_amd64/certs/server.crt"transport.tls.keyFile="/data/project/frp_0.58.1_linux_amd64/certs/server.key"transport.tls.trustedCaFile="/data/project/frp_0.58.1_linux_amd64/certs/ca.crt"#监控页面webServer.addr="0.0.0.0"webServer.port=7500webServer.user="admin"webServer.password="admin"webServer.tls.certFile="/data/project/frp_0.58.1_linux_amd64/certs/server.crt"webServer.tls.keyFi...

  • openssl命令生成证书

    #CA脚本```opensslgenrsa-outca.key2048opensslreq-new-x509-keyca.key-days3650-outca.crt-subj"/C=cn/ST=gd/L=gz/O=acgist/OU=acgist/CN=acgist"```#证书脚本```bashmkdir-p/tmp/servercd/tmp/serverecho"keyUsage=nonRepudiation,digitalSignature,keyEnciphermentextendedKeyUsage=serverAuth,clientAuthsubjectAltName=@SubjectAlternativeName[SubjectAlternativeName]IP.1=127.0.0.1IP.2=192.168.8.188DNS.1=*.acgist.com">server.extopensslgenrsa-outserver.key2048opensslreq-new-keyserver.key-outserver.csr-subj"/C=cn/ST=gd/L=gz/O=acgist/...

  • 20240602

    ##06月02号星期日天气晴今年广州真的是天天都是下雨,下了快一个月了,我的月季都没来及的赏就全部没了。最惨的是连续下了很久的雨,然后突然就晴了,光照太强嫩叶直接就焦了。不过夏天还是雨后的晴天最为惬意,气温不会很高,但是被雨洗过的植物在阳光下显得格外嫩绿。吹着风,看着云,舒服💃💃💃💃💃💃![蓝天白云](//static.acgist.com/resources/images/article/202406/eb726a75-3740-4216-8c46-13c92fea8d84.jpg)![蓝天白云](//static.acgist.com/resources/images/article/202406/1e5b6af5-9163-4e7d-9c90-75a40a3a2cd0.jpg)![](//static.acgist.com/resources/images/article/202406/e06ac29f-4538-4a04-a11e-43fab5022a51.jpg)![](//static.acgist.com/resources/images/article/202406/c516e19...

Snail(蜗牛)

基于Java、JavaFX开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。

GITEE GITHUB 更多信息

Java JavaFX GitHub stars Gitee stars
GitHub Workflow Status GitHub release (latest by date) Maven Central GitHub code size in bytes GitHub

Taoyao(桃夭)

桃夭是套基于`Mediasoup`开发的`WebRTC`音视频信令服务,可以非常方便的扩展信令接入更多智能终端。

GITEE GITHUB

Java GitHub stars Gitee stars
GitHub Workflow Status GitHub release (latest by date) GitHub code size in bytes GitHub

Lifuren(李夫人)

倾国倾城的李夫人

GITEE GITHUB

GitHub stars Gitee stars
GitHub Workflow Status GitHub release (latest by date) GitHub code size in bytes GitHub