20250321在荣品的PRO-RK3566开发板的buildroot系统下使用ll命令【直接编译进IMG】
./buildroot/system/skeleton/etc/profile
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
20250321在荣品的PRO-RK3566开发板的buildroot系统下使用ll命令【直接编译进IMG】
2025/3/21 16:53
cd /etc/
echo "" >>
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
20250318在荣品的PRO-RK3566开发板的buildroot系统下使用ll命令【通过VI直接修改profile】
2025/3/18 10:40
缘起,在ubuntu20.04下使用ll命令习惯了。在Rockchip的Android10/11/12/13下也解决了ll命令的使用。
在Rockchip的buildroot下使用ll命令一直没有解决。
@余顺?请问如何在RK3566的buildroot下实现ll命令 ls -l
在 ubuntu下使用ll习惯了
这个在环境变量配置文件/etc/profile中间加上
alias ll='ls -al' 然后重启测试
在串口终端中使用VI直接修改/etc/profile:
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc# diff profile profile.bak1
--- profile
+++ profile.bak1
@@ -16,8 +16,6 @@
fi
fi
-alias ll='ls -alF'
-
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc#
我直接使用了 ubuntu20.04的ll了。可以了
追问:我希望 直接将 ll编译进 IMG固件中。
请问该如何配置呢?
在sdk中find-name 同名文件将修改放进去去,然后重新清理之前构建的文件,重新编译buildroot
./buildroot/system/skeleton/etc/profile
这个profile和板子上的profile很像。应该是这里了
rootroot@rootroot-X99-Turbo:~/source$
rootroot@rootroot-X99-Turbo:~/source$ find . -name profile
./kernel/include/config/branch/profile
./kernel/include/config/arch/has/gcov/profile
./buildroot/system/skeleton/etc/profile
./buildroot/output/rockchip_rk3566/host/aarch64-buildroot-linux-gnu/sysroot/etc/profile
./buildroot/output/rockchip_rk3566/build/host-gcc-initial-12.3.0/libstdc++-v3/testsuite/23_containers/vector/profile
./buildroot/output/rockchip_rk3566/build/host-gcc-initial-12.3.0/libstdc++-v3/testsuite/23_containers/unordered_map/profile
./buildroot/output/rockchip_rk3566/build/host-gcc-final-12.3.0/libstdc++-v3/testsuite/23_containers/vector/profile
./buildroot/output/rockchip_rk3566/build/host-gcc-final-12.3.0/libstdc++-v3/testsuite/23_containers/unordered_map/profile
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/include/config/branch/profile
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/include/config/arch/has/gcov/profile
./buildroot/output/rockchip_rk3566/build/linux-custom/include/config/branch/profile
./buildroot/output/rockchip_rk3566/build/linux-custom/include/config/arch/has/gcov/profile
./buildroot/output/rockchip_rk3566/build/busybox-1.36.0/examples/bootfloppy/etc/profile
./buildroot/output/rockchip_rk3566/target/etc/profile
./buildroot/output/rockchip_rk3566_recovery/host/aarch64-buildroot-linux-gnu/sysroot/etc/profile
./buildroot/output/rockchip_rk3566_recovery/build/host-gcc-initial-12.3.0/libstdc++-v3/testsuite/23_containers/vector/profile
./buildroot/output/rockchip_rk3566_recovery/build/host-gcc-initial-12.3.0/libstdc++-v3/testsuite/23_containers/unordered_map/profile
./buildroot/output/rockchip_rk3566_recovery/build/host-gcc-final-12.3.0/libstdc++-v3/testsuite/23_containers/vector/profile
./buildroot/output/rockchip_rk3566_recovery/build/host-gcc-final-12.3.0/libstdc++-v3/testsuite/23_containers/unordered_map/profile
./buildroot/output/rockchip_rk3566_recovery/build/linux-headers-custom/include/config/branch/profile
./buildroot/output/rockchip_rk3566_recovery/build/linux-headers-custom/include/config/arch/has/gcov/profile
./buildroot/output/rockchip_rk3566_recovery/build/busybox-1.36.0/examples/bootfloppy/etc/profile
./buildroot/output/rockchip_rk3566_recovery/target/etc/profile
./yocto/poky/meta/recipes-core/base-files/base-files/profile
rootroot@rootroot-X99-Turbo:~/source$
Z:\source\buildroot\system\skeleton\etc\profile
export PATH=@PATH@
if [ "$PS1" ]; then
if [ "$BASH" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
root@rk3566-buildroot:/# cd /etc/
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc# cat profile
export PATH="/usr/bin:/usr/sbin"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
alias ll='ls -alF'
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
root@rk3566-buildroot:/etc#
修改记录:
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ll
total 108
drwxr-xr-x 23 root root 4096 Aug 4 17:00 ./
drwxr-xr-x 23 root root 4096 Aug 4 17:00 ../
drwxr-xr-x 3 root root 4096 Aug 4 17:03 .cache/
-rw-r--r-- 1 root root 0 Aug 4 2017 .resized
-rw-r--r-- 1 root root 0 Mar 12 2025 .skip_fsck
-rw-r--r-- 1 root root 0 Aug 4 2017 640x512-at600.mp4
lrwxrwxrwx 1 root root 7 Mar 21 2025 bin -> usr/bin/
-rw-r--r-- 1 root root 489 Mar 12 2025 busybox.fragment
lrwxrwxrwx 1 root root 8 Mar 21 2025 data -> userdata/
drwxr-xr-x 15 root root 4940 Aug 4 17:00 dev/
drwxr-xr-x 25 root root 4096 Aug 4 2017 etc/
drwxr-xr-x 2 root root 4096 Mar 21 2025 info/
lrwxrwxrwx 1 root root 7 Mar 21 2025 lib -> usr/lib/
lrwxrwxrwx 1 root root 3 Mar 21 2025 lib64 -> lib/
lrwxrwxrwx 1 root root 11 Mar 21 2025 linuxrc -> bin/busybox*
drwx------ 2 root root 16384 Mar 21 2025 lost+found/
drwxr-xr-x 11 root root 4096 Mar 21 2025 media/
drwxr-xr-x 5 root root 4096 Mar 21 2025 mnt/
drwxr-xr-x 2 root root 4096 Mar 21 2025 oem/
drwxr-xr-x 3 root root 4096 Mar 21 2025 opt/
dr-xr-xr-x 219 root root 0 Aug 4 17:00 proc/
drwxr-xr-x 16 root root 4096 Mar 21 2025 rockchip-test/
drwx------ 2 root root 4096 Mar 12 2025 root/
drwxr-xr-x 7 root root 4096 Mar 12 2025 rp_stress_test/
drwxr-xr-x 31 root root 4096 Mar 12 2025 rp_test/
drwxr-xr-x 11 root root 520 Aug 4 17:00 run/
lrwxrwxrwx 1 root root 8 Mar 21 2025 sbin -> usr/sbin/
lrwxrwxrwx 1 root root 10 Mar 21 2025 sdcard -> mnt/sdcard/
dr-xr-xr-x 14 root root 0 Aug 4 17:00 sys/
drwxr-xr-x 3 root root 4096 Mar 21 2025 system/
drwxrwxrwt 6 root root 280 Aug 4 17:00 tmp/
-rwxr-xr-x 1 root root 18608 Aug 4 2017 uart_test*
lrwxrwxrwx 1 root root 9 Mar 21 2025 udisk -> mnt/udisk/
drwxr-xr-x 3 root root 4096 Aug 4 2017 userdata/
drwxr-xr-x 8 root root 4096 Mar 21 2025 usr/
drwxr-xr-x 6 root root 4096 Mar 21 2025 var/
lrwxrwxrwx 1 root root 6 Mar 21 2025 vendor -> system/
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ls -l
total 96
-rw-r--r-- 1 root root 0 Aug 4 2017 640x512-at600.mp4
lrwxrwxrwx 1 root root 7 Mar 21 2025 bin -> usr/bin
-rw-r--r-- 1 root root 489 Mar 12 2025 busybox.fragment
lrwxrwxrwx 1 root root 8 Mar 21 2025 data -> userdata
drwxr-xr-x 15 root root 4940 Aug 4 17:00 dev
drwxr-xr-x 25 root root 4096 Aug 4 2017 etc
drwxr-xr-x 2 root root 4096 Mar 21 2025 info
lrwxrwxrwx 1 root root 7 Mar 21 2025 lib -> usr/lib
lrwxrwxrwx 1 root root 3 Mar 21 2025 lib64 -> lib
lrwxrwxrwx 1 root root 11 Mar 21 2025 linuxrc -> bin/busybox
drwx------ 2 root root 16384 Mar 21 2025 lost+found
drwxr-xr-x 11 root root 4096 Mar 21 2025 media
drwxr-xr-x 5 root root 4096 Mar 21 2025 mnt
drwxr-xr-x 2 root root 4096 Mar 21 2025 oem
drwxr-xr-x 3 root root 4096 Mar 21 2025 opt
dr-xr-xr-x 219 root root 0 Aug 4 17:00 proc
drwxr-xr-x 16 root root 4096 Mar 21 2025 rockchip-test
drwx------ 2 root root 4096 Mar 12 2025 root
drwxr-xr-x 7 root root 4096 Mar 12 2025 rp_stress_test
drwxr-xr-x 31 root root 4096 Mar 12 2025 rp_test
drwxr-xr-x 11 root root 520 Aug 4 17:00 run
lrwxrwxrwx 1 root root 8 Mar 21 2025 sbin -> usr/sbin
lrwxrwxrwx 1 root root 10 Mar 21 2025 sdcard -> mnt/sdcard
dr-xr-xr-x 14 root root 0 Aug 4 17:00 sys
drwxr-xr-x 3 root root 4096 Mar 21 2025 system
drwxrwxrwt 6 root root 280 Aug 4 17:00 tmp
-rwxr-xr-x 1 root root 18608 Aug 4 2017 uart_test
lrwxrwxrwx 1 root root 9 Mar 21 2025 udisk -> mnt/udisk
drwxr-xr-x 3 root root 4096 Aug 4 2017 userdata
drwxr-xr-x 8 root root 4096 Mar 21 2025 usr
drwxr-xr-x 6 root root 4096 Mar 21 2025 var
lrwxrwxrwx 1 root root 6 Mar 21 2025 vendor -> system
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# cd /etc/
root@rk3566-buildroot:/etc# ls -l
root@rk3566-buildroot:/etc# cat profile
export PATH="/usr/bin:/usr/sbin"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc# sudo cp profile profile.bak1
sh: sudo: command not found
root@rk3566-buildroot:/etc# cp profile profile.bak1
root@rk3566-buildroot:/etc# ls -l
root@rk3566-buildroot:/etc# vi profile
root@rk3566-buildroot:/etc# diff profile profile.bak1
--- profile
+++ profile.bak1
@@ -16,8 +16,6 @@
fi
fi
-alias ll='ls -alF'
-
export EDITOR='/bin/vi'
# Source configuration files from /etc/profile.d
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc#
root@rk3566-buildroot:/etc# reboot
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ll
root@rk3566-buildroot:/#
ubuntu20.04下的ll的配置【.bashrc文件中】
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ cat .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ cat /etc/issue
Ubuntu 20.04.6 LTS \n \l
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ uanme -a
Command 'uanme' not found, did you mean:
command 'uname' from deb coreutils (8.30-3ubuntu2)
command 'uacme' from deb uacme (1.0.22-1)
Try: sudo apt install <deb name>
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ uname -a
Linux rootroot-X99-Turbo 5.15.0-131-generic #141~20.04.1-Ubuntu SMP Thu Jan 16 18:38:51 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$
相关文章:
20250321在荣品的PRO-RK3566开发板的buildroot系统下使用ll命令【直接编译进IMG】
./buildroot/system/skeleton/etc/profile # some more ls aliases alias llls -alF alias lals -A alias lls -CF 20250321在荣品的PRO-RK3566开发板的buildroot系统下使用ll命令【直接编译进IMG】 2025/3/21 16:53 cd /etc/ echo "" >> # some more ls ali…...
Flink 自定义数据源:从理论到实践的全方位指南
目录 第一章:自定义数据源的基础概念 数据源是什么?它在 Flink 中扮演什么角色? Flink 的内置数据源:开箱即用的 “标配” 为什么需要自定义数据源?它的杀手锏在哪? 第二章:自定义数据源的实现之道 接口选择:从简单到高级,选对工具事半功倍 SourceFunction:入门…...
如何在 Java 中查找 PDF 页面大小(教程)
PDF 文件并未被 Java 直接支持。本教程将向您展示如何使用 JPedal Java PDF 库 以简单的步骤提取 PDF 文件的页面大小(高度和宽度)。页面大小可以以 厘米、英寸或像素 为单位获取。 为什么要使用第三方库处理 PDF 文件? PDF 文件是一种复杂…...
java版嘎嘎快充玉阳软件互联互通中电联云快充协议充电桩铁塔协议汽车单车一体充电系统源码uniapp
演示: 微信小程序:嘎嘎快充 http://server.s34.cn:1888/ 系统管理员 admin/123456 运营管理员 yyadmin/Yyadmin2024 运营商 operator/operator2024 系统特色: 多商户、汽车单车一体、互联互通、移动管理端(开发中) 另…...
使用Mastra.ai构建AI智能体:一次动手实践
Mastra框架提供了一种简洁高效的AI智能体构建方式。 本文将分享我使用Mastra.ai的实践经历。 我们将逐步完成环境搭建、探索框架核心功能,并构建一个能与工具交互的基础智能体。 过程中我会总结成功经验、遇到的问题以及收获的启示。 如果你对AI开发感兴趣,或正在寻找一个…...
Redis之大key问题
BigKey 常见面试题目 你会么? MoreKey 案例 大批量往redis里面插入2000W测试数据key Linux Bash下面执行,批量插入100W for((i1;i<100*10000;i)); do echo "set k$i v$i" >> /tmp/redisTest.txt ;done;生成100W条redis批量设置kv的…...
Excel第41套全国人口普查
2. 导入网页中的表格:数据-现有链接-考生文件夹:网页-找到表格-点击→变为√-导入删除外部链接关系:数据-点击链接-选中连接-删除-确定(套用表格格式-也会是删除外部链接)数值缩小10000倍(除以10000即可&am…...
深度学习驱动的车牌识别:技术演进与未来挑战
一、引言 1.1 研究背景 在当今社会,智能交通系统的发展日益重要,而车牌识别作为其关键组成部分,发挥着至关重要的作用。车牌识别技术广泛应用于交通管理、停车场管理、安防监控等领域。在交通管理中,它可以用于车辆识别、交通违…...
PageHiOffice网页组件(WebOffice文档控件)开发集成技巧专题一
PageHiOffice网页组件作为最新一代的WebOffice文档控件,这是目前市场上唯一能做到在Chrome等最新版浏览器中实现内嵌网页运行的商用文档控件,是OA及ERP等系统处理各种文档的福音。从发布到完善已经超过3年,不管是功能性还是稳定性都已经有了长…...
A2 最佳学习方法
记录自己想法的最好理由是发现自己的想法,并将其组织成可传播的形式 (The best reason for recording what one thinks is to discover what one thinks and to organize it in transmittable form.) Prof Ackoff 经验之谈: 做培训或者写文章ÿ…...
从JVM底层揭开Java方法重载与重写的面纱:原理、区别与高频面试题突破
🌟引言:一场由方法调用引发的"血案" 2018年,某电商平台在"双十一"大促期间遭遇严重系统故障。 技术团队排查发现,问题根源竟是一个继承体系中的方法重写未被正确处理,导致订单金额计算出现指数级…...
线程控制与线程操作
目录 线程的创建 tid pthread_self() 线程的退出 pthread_join 传参问题和返回值问题 pthread_exit 线程取消 线程分离 我们来学习线程的控制与线程操作 线程的创建 我们之前在线程的概念中就讲过了,我们可以通过pthread_create来创建一个或者多个子线程…...
Spring相关API
1是相对路径 2 是绝对路径 3 在注解时使用...
【GoLang】调用llm时提示词prompt的介绍以及使用方式
介绍 提示词是一种与大模型交互的对话格式,它以 JSON 格式定义了一个消息列表(messages),包含了系统消息和用户消息。 我们向AI提问时,其实发给AI的都是提示词,别看我们只是简单输入了一句话,…...
[杂学笔记]锁为什么影响效率、I/O多路复用、三种I/O多路复用模型的区别、atomic原子操作类、MySQL的持久性是如何实现的
目录 1.锁为什么影响效率 2.I./O多路复用 3.三种I/O多路复用模型的区别 4.atomic原子操作类 介绍 常用函数 内存顺序含义 5.MySQL持久性的实现 1.锁为什么影响效率 线程阻塞与上下文切换:在多线程并发访问的场景下,只有一个线程能够进入临界区…...
AI Agent开发大全第八课-Stable Diffusion 3的本地安装全步骤
前言 就像我们前面几课所述,本系列是一门体系化的教学,它不像网上很多个别存在的单篇博客走“吃快餐”模式,而是从扎实的基础来带领大家一步步迈向AI开发高手。所以我们的AI课程设置是相当全面的,除了有牢固的基础知识外还有外面互联网上也搜不到的生产级实战。 前面讲过…...
Leetcode 刷题笔记 图论part05
卡码网 107 寻找存在的路径 初识并查集 并查集功能: 寻找根节点,函数: find(int u),也就是判断这个节点的祖先节点是哪个将两个节点接入到同一个集合,函数: join(int u, int v),将两个节点连在同一个根节点上判断两…...
NSSRound(持续更新)
了解过PHP特性吗 这个题相当于是php特性大杂烩 先看源代码 <?php error_reporting(0); highlight_file(__FILE__); include("rce.php"); $checker_1 FALSE; $checker_2 FALSE; $checker_3 FALSE; $checker_4 FALSE; $num $_GET[num]; if (preg_match(&qu…...
Python虚拟环境:从入门到实战指南
目录 一、为什么需要Python虚拟环境? 二、如何创建Python虚拟环境? 1. 使用venv(Python 3.3内置) 2. 使用virtualenv(第三方工具) 3. 使用conda(适合数据科学项目) 三、虚拟环…...
Python实现小红书app版爬虫
简介:由于数据需求的日益增大,小红书网页版已经不能满足我们日常工作的需求,为此,小编特地开发了小红书手机版算法,方便大家获取更多的数据,提升工作效率。 手机版接口主要包括:搜素࿰…...
注册中心之Nacos相较Eureka的提升分析
1. 传统拉取模式的缺陷(如Eureka) 在类似Eureka的注册中心中,消费者需要定时(如每30秒)主动拉取服务列表(Pull模式)。如果此时某个服务突然宕机,消费者可能无法立即感知,…...
高数下---8.1平面与直线
目录 平面的确定 直线的确定 若要求某一直线或平面就根据要素来求。 例题 平面中的特殊情况 平面中的解题思路 直线的解题思路 平面的确定 两要素 一 一点 二 倾斜角 即法向量 点法式 可化为一般式 Ax By Cz D 0; (A,B,C) 即法向量; 改变D 即…...
【AI速读】30分钟搭建持续集成:用Jenkins拯救你的项目
每个开发者都踩过的坑 你有没有这样的经历?花了一周时间改代码,自信满满准备提交,结果合并同事的更新后,项目突然编译失败,测试跑不通。你焦头烂额地排查问题,老板还在催进度……但明明不是你的错! 这种“集成地狱”几乎每个团队都遇到过。传统的手动集成方式(比如每周…...
centos 9 编译安装 rtpengine (快方式)-使用 debian12 系统自带
1:更新系统包 dnf update 2:启用EPEL仓库(提供额外软件包) # 安装EPEL仓库 sudo dnf install epel-release -y# 检查EPEL仓库是否启用(输出应包含epel) dnf repolist# 启用CRB仓库 sudo dnf config-manager --set-e…...
Android第六次面试总结(okhttp篇)
OkHttp 是一个高效的 HTTP 客户端,它的工作流程包含多个步骤,从请求的创建、发送,到服务器响应的接收和处理,每个环节都有特定的逻辑和组件参与。以下是对 OkHttp 工作流程的详细说明: 1. 请求构建 在使用 OkHttp 发…...
ngx_http_escape_location_name
定义在 src\http\ngx_http.c static ngx_int_t ngx_http_escape_location_name(ngx_conf_t *cf, ngx_http_core_loc_conf_t *clcf) {u_char *p;size_t len;uintptr_t escape;escape 2 * ngx_escape_uri(NULL, clcf->name.data, clcf->name.len,NGX_ESCAPE_U…...
QT网络通信的接口与使用
文章目录 前言1.服务端实现流程1.1步骤 1:创建 QTcpServer 并监听端口1.2步骤 2:处理新连接请求1.3步骤 3:接收客户端数据1.4步骤 4:处理客户端断开 2.客户端实现流程2.1步骤 1:创建 QTcpSocket 并连接服务器2.2步骤 2…...
基于生成对抗网络(GAN)的图像超分辨率重建:技术与应用
图像超分辨率重建(Super-Resolution, SR)是计算机视觉领域的重要任务,旨在从低分辨率图像中恢复出高分辨率图像。这一技术在医学影像、卫星图像、视频增强等领域具有广泛的应用价值。传统的超分辨率方法依赖于插值或基于模型的重建,效果有限。近年来,生成对抗网络(GAN)通…...
【spring对bean Request和Session的管理流程】
在 Spring 框架中,除了常见的 单例(Singleton) 和 原型(Prototype) 作用域外,还支持 Request 和 Session 作用域。这两种作用域主要用于 Web 应用程序中,分别表示 Bean 的生命周期与 HTTP 请求或…...
FastGPT原理分析-数据集创建第二步:处理任务的执行
概述 文章《FastGPT原理分析-数据集创建第一步》已经分析了数据集创建的第一步:文件上传和预处理的实现逻辑。本文介绍文件上传后,数据处理任务的具体实现逻辑。 数据集创建总体实现步骤 从上文可知数据集创建总体上来说分为两大步骤: &a…...
AI重构SEO关键词优化路径
内容概要 人工智能技术的深度应用正在推动SEO优化进入全新阶段。传统关键词优化依赖人工经验与静态规则,存在效率瓶颈与策略滞后性缺陷。AI技术通过智能语义分析系统,能够穿透表层词汇限制,精准捕捉用户搜索意图的语义关联网络,结…...
VMWare Ubuntu 详细安装教程
VMWare Ubuntu 详细安装教程 一、下载安装VMware二、下载 Ubuntu 镜像文件三、安装 Ubuntu四、开启虚拟机 一、下载安装VMware 官网下载地址https://www.vmware.com/products/desktop-hypervisor/workstation-and-fusion知乎大佬的博客原文,含下载地址https://zhua…...
SystemVerilog 数据类型
1、内建数据类型 verilog有两种基本的数据类型:变量和线网,他们各自都可以有四种取值:0 1 z x; RTL代码使用 变量 来存放组合和时序值;变量可以是单bit或者是多bit的无符号数 reg [7:0] m, 32bit的有符号…...
C语言:扫雷
在编程的世界里,扫雷游戏是一个经典的实践项目。它不仅能帮助我们巩固编程知识,还能锻炼逻辑思维和解决问题的能力。今天,就让我们一起用 C 语言来实现这个有趣的游戏,并且通过图文并茂的方式,让每一步都清晰易懂 1. 游…...
特殊行车记录仪DAT视频丢失的恢复方法
行车记录仪是一种常见的车载记录仪,和常见的“小巧玲珑”的行车记录仪不同,一些特种车辆使用的记录仪的外观可以用“笨重”来形容。下边我们来看看特种车载行车记录仪删除文件后的恢复方法。 故障存储: 120GB存储设备/文件系统:exFAT /簇大小:128KB 故…...
_DISPATCHER_HEADER结构中的WaitListHead和_KWAIT_BLOCK的关系
第一部分: // // Wait block // // begin_ntddk begin_wdm begin_nthal begin_ntifs begin_ntosp typedef struct _KWAIT_BLOCK { LIST_ENTRY WaitListEntry; struct _KTHREAD *RESTRICTED_POINTER Thread; PVOID Object; struct _KWAIT_BLOCK *R…...
智能汽车图像及视频处理方案,支持视频实时拍摄特效能力
在智能汽车日新月异的今天,美摄科技作为智能汽车图像及视频处理领域的先行者,凭借其卓越的技术实力和前瞻性的设计理念,为全球智能汽车制造商带来了一场视觉盛宴的革新。美摄科技推出智能汽车图像及视频处理方案,一个集高效性、智…...
Rust + 时序数据库 TDengine:打造高性能时序数据处理利器
引言:为什么选择 TDengine 与 Rust? TDengine 是一款专为物联网、车联网、工业互联网等时序数据场景优化设计的开源时序数据库,支持高并发写入、高效查询及流式计算,通过“一个数据采集点一张表”与“超级表”的概念显著提升性能…...
Android Audio基础(13)——audiomixer
在 Android 平台上,音频混合器 AudioMixer 主要用在 AudioFlinger 里,将多路音频源数据混音(包括混音、音量处理、重采样及处理声道等)。位于 framework 的音频处理模库 libaudioprocessing(frameworks/av/media/libau…...
vivo 湖仓架构的性能提升之旅
作者:郭小龙 vivo互联网 大数据高级研发工程师 导读:本文整理自 vivo互联网 大数据高级研发工程师 郭小龙 在 StarRocks 年度峰会上的分享,聚焦 vivo 大数据多维分析面临的挑战、StarRocks 落地方案及应用收益。 在 即席分析 场景,…...
常见中间件漏洞攻略-Tomcat篇
一、 CVE-2017-12615-Tomcat put方法任意文件写入漏洞 第一步:开启靶场 第二步:在首页抓取数据包,并发送到重放器 第三步:先上传尝试一个1.txt进行测试 第四步:上传后门程序 第五步:使用哥斯拉连接 二、后…...
基于linuxC结合epoll + TCP 服务器客户端 + 数据库实现一个注册登录功能
1. 整体功能概述 实现了一个简单的用户注册和登录系统,采用客户端 - 服务器(C/S)架构。 客户端可以选择注册或登录操作,将用户名和密码发送给服务器,服务器接收请求后处理并返回相应的结果给客户端。 服务器使用 SQLit…...
redis7.4.2单机配置
解压源码包 将从官网下载的redis源码压缩包上传到服务器的相关目录下。 [roothcss-ecs-2851 ~]# cd /opt/soft/redis/ [roothcss-ecs-2851 redis]# ls redis-stable.tar.gz解压并进入解压后的目录中。 [roothcss-ecs-2851 redis]# tar -zxvf redis-stable.tar.gz [roothcss-…...
Unity代码热更新和资源热更新
知识点来源:人间自有韬哥在,hybridclr,豆包 目录 一、代码热更新1.代码热更新概述2.HybridCLR 二、资源热更新1.资源热更新概述2.AB包2.1.AB包的加载2.2.卸载AB包2.3.加载AB包依赖包2.4.获取MD52.5.生成对比文件2.6.更新AB包 3.Addressable3.1.AssetRef…...
【MySQL篇】DEPENDENT SUBQUERY(依赖性子查询)优化:从百秒到秒级响应的四种优化办法
💫《博主介绍》:✨又是一天没白过,我是奈斯,从事IT领域✨ 💫《擅长领域》:✌️擅长阿里云AnalyticDB for MySQL(分布式数据仓库)、Oracle、MySQL、Linux、prometheus监控;并对SQLserver、NoSQL(…...
腾讯四面面经
说明 是的,没听错,确实是腾讯四面,而且是技术面。先声明下,这个面经是帮朋友整理的,都是真实的面经,不得不说,四面确实是有强的的,接下来让我们一起看下 面试部门:s3&a…...
【mysql】唯一性约束unique
文章目录 唯一性约束 1. 作用2. 关键字3. 特点4. 添加唯一约束5. 关于复合唯一约束 唯一性约束 1. 作用 用来限制某个字段/某列的值不能重复。 2. 关键字 UNIQUE3. 特点 同一个表可以有多个唯一约束。唯一约束可以是某一个列的值唯一,也可以多个列组合的值唯…...
如何理解前端工程化
前端工程化详解 一、 定义二、特点1. 模块化2. 组件化3. 自动化4. 规范化 三、涉及环节1. 项目架构2. 版本控制:3.自动化构建4.任务自动化5. 部署与CI/CD 五、 前端工程化的实际应用六、前端工程化的优势:七、总结 一、 定义 前端工程化是指将前端开发…...
嵌入式八股RTOS与Linux---进程间的通信与同步篇
前言 同步异步、阻塞/非阻塞是什么? 同步:在执行某个操作时,调用者必须等待该操作完成并返回结果后,才能继续执行后续的操作异步:在执行某个操作时,调用者发起操作后不必等待其完成,可以立即继续执行后续的操作。操作完成后&am…...
this.centerDialogVisible = true this.$nextTick(()=>{ this.resetForm(); })
这段代码的作用是 打开一个对话框,并在对话框打开后 重置表单。下面是对这段代码的详细解析: 1. 代码作用 this.centerDialogVisible true:控制对话框的显示。this.$nextTick(() > { ... }):在 DOM 更新后执行回调函数&#…...