齐秦-花祭

1. 花祭

作词 : 齐秦/黄大军,作曲 : 齐秦

(music)
你是不是不愿意留下来陪我
你是不是春天一过 就要走开
真心的花才开 你却要随候鸟飞走
留下来 留下来
你为什么不愿意留下来陪我
你是不是就这样轻易放弃
花开的时候 就这样悄悄离开我
离开我 离开我
太多太多的话我还没有说
太多太多牵挂值得你留下
花开的时候 你却离开我
离开我 离开我
你是不是不愿意留下来陪我
你是不是春天一过 一定要走
真心的花才开 你却要随候鸟飞走
留下来 留下来
你为什么不愿意留下来陪我
你是不是就这样轻易放弃
花开的时候 就这样悄悄离开我
离开我 离开我
太多太多的话我还没有说
太多太多理由值得你留下
花开的时候 你却离开我
离开我 离开我
(music)
太多太多的话我还没有说
太多太多牵挂值得你留下
花开的时候 你却离开我
离开我 离开我
太多太多的话我还没有说
太多太多理由值得你留下
在花开的时候 你却离开我
离开我 离开我 离开我 哦

安装fluxbox2

安装所需软件

fluxbox:不解释。
feh:设置壁纸。
xcompmgr:透明及其他一些特效。
lxappearance:管理 GTK、图标和鼠标主题。
nitrogen:图形化壁纸管理工具。
dmenu:图形化命令运行和命令补全。
xscreensaver:不解释。

1
2
3
4
5
6
# Fedora 下安装:
$ pkcon install fluxbox feh xcompmgr lxappearance nitrogen xscreensaver dmenu

# Debian/Ubuntu 下安装:
$ apt-get install fluxbox feh xcompmgr lxappearance nitrogen xscreensaver dmenu

创建菜单

Fedora 默认生成的菜单比较简陋,不过可以通过调用一个 Python 脚本生成:

fluxbox-xdg-menu –with-icons –theme /usr/share/icons/Faenza-Dark –with-backgrounds –bg-path=~/Pictures

这里指定使用 Faenza-Dark 图标主题,主目录下的 Pictures 为背景图片搜索路径。

Debian/Ubuntu 应该已经默认生成了菜单,若是觉得过于拥挤的话,可以去下载 fluxbox-xdg-menu 来更改。

自定义菜单

如果还想进一步自定义菜单的话,这里是一些有用的小提示。

自定义标题

更改 ~/.fluxbox/menu 文件中 [begin] 一行括号中的内容。

添加收藏置顶程序

还是在 /.fluxbox/menu 文件中,添加 [include] (/.fluxbox/fbfav) 一行,指定收藏的配置文件。

然后打开刚才指定的配置文件~/.fluxbox/fbfav,按照如下语法添加应用程序:

[exec] (Menu_name) {program}
例如:[exec] (Firefox) {/usr/bin/firefox}

设置壁纸

同样先添加[include] (~/.fluxbox/fbbg),指定壁纸配置文件。

然后编辑刚才指定的配置文件~/.fluxbox/fbbg,将其中 username 替换为您实际用户名:

[submenu] (Backgrounds)
[exec] (username) {/usr/bin/nitrogen ~/Pictures}

[exec] (system) {/usr/bin/nitrogen /usr/share/backgrounds}
[end]

屏幕保护

编辑 ~/.fluxbox/menu 文件并添加如下内容:

[submenu] (Screen saver)
[exec] (Enable screensaver) {/usr/bin/xscreensaver}
[exec] (Disable screensaver) {/usr/bin/xscreensaver-command -exit}
[exec] (Lock screen) {/usr/bin/xscreensaver-command -lock}
[exec] (Configure screensaver) {/usr/bin/xscreensaver-command -prefs}
[end]

用户切换

依然在 ~/.fluxbox/menu 文件添加

[exec] (Switch User) {/usr/bin/gdmflexiserver -a}

文件管理器

可以配置使用 Nautilus ,当然也可以使用 pcmanfm:

[exec] (Nautilus) {/usr/bin/nautilus –no-desktop}

视觉效果

如果希望使用 xcompmanager 带来的视觉效果,那么可能需要添加如下字段到 /etc/X11/xorg.conf 中:

Section “Extensions”
Option “Composite” “Enable”
Option “RENDER” “Enable”
Option “RenderAccel” “true”
Option “AllowGLXWithComposite” “true”
EndSection
自启动

Fluxbox 读取 ~/.fluxbox/startup 获得自启动的文件信息,只需要在 exec fluxbox 行之前添加的内容,都会在启动时运行,例如:

/usr/bin/nitrogen –restore &
/usr/bin/xscreensaver &
/usr/bin/start-pulseaudio-x11 &
/usr/bin/xcompmgr -f -c -n -C -F &

Network manager

nm-applet >/dev/null 2>/dev/null &

#Wicd
wicd-client -n
注销

在某些极少数情况下,Fluxbox 的注销菜单只会停止 Fluxbox 本身而不会终结应用程序,这是一个临时解决方法:

[exec] (Log Out) {killall fluxbox && killall fluxbox}

Fluxbox 快捷键

Fluxbox 读取~/.fluxbox/keys 获得快捷键信息,按照如下语法配置:

key stroke :Command

例如:Mod4 f :Exec /usr/bin/firefox

其中 Mod4 代表徽标键。

记得在配置完后需要重新启动 Fluxbox 才能生效!

windows宿主机下的Vbox 虚拟linux机安装增强

自家的2023版笔记本电脑时间长了,电池只有顶半个小时,公司就给我配了台联想E15,可是装的是win11。很不习惯用啊,不是自己的,轻易不会改linux,于是先用wsl安装Debian,却发现其实不好用,于是借助vbox初装Debian试试。

  1. 安装vbox扩展时出现问题
1
2
3
4
./VBoxLinuxAdditions.run
bash: ./VBoxLinuxAdditions.run: /bin/sh: bad interpreter: Permission denied
还以为是没有用sudo,于是
sudo ./VBoxLinuxAdditions.run #还是不行

查看文件的执行权限是555,可以执行.

改为:

1
sudo sh ./VBoxLinuxAdditions.run

运行正常.
问题的原因是挂载分区时,没有指定参数exec的缘故。可以把装载参数改为defaults或者在执行脚本前添加sh即:sh ./+脚本名称。

hugo 中的文章添加时间线1. hugo-shortcode-timeline

一. 在github上下载 hugo-shortcode-timeline
二. 把 hugo-shortcode-timeline目录下的文件,copyg到当前hugo blog的themes目录下对应的theme目录中。

比如当前场景是serif, 则把 hugo-shorcode-timeline下

assets目录中的文件 copy 到 hugo-serif-theme/assets下
layout/shortcodes/ 目录下的文件 copy 到 hugo-serif-theme/layout/shorcodes/目录下

三. 在 markdown文件中语法如下
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{< timeline >}}

{{% event title="催客户试产" from="2023-06-20" to="2023-07-24" %}}
_工作描述:_ 蓝总有意初步试定一吨,但临时变卦想用更高倔强的钢,暂时我们还做不到,项目终止
{{% /event %}}

{{% event title="客户自己的结构状况" from="2023-05-29" to="2023-06-20" %}}
_工作描述:_ 蓝总自己的结构己完成,参数可以,但什么时候生产还得看情况
{{% /event %}}

{{% event title="客户检测确认" from="2023-05-17" to="2023-05-29" %}}
_工作描述:_ 客户测试完成,表示与我们的报告性能一致,这0.5米长样品做为质检留底。
{{% /event %}}

{{% event title="样品确认到达并确认测试" from="2023-05-12" to="2023-05-17" %}}
_工作描述:_ 检测报告送达,并附上0.5米长的样品供客户测试
{{% /event %}}

{{% event title="客户拜访" from="2023-05-11" to="2023-05-12" %}}
客户蓝总需要一个三百吨的螺纹钢才,但是需要我们提供检测报告

{{% /event %}}

{{< /timeline >}}

电机驱动的两种波形

一 方波控制

  1. 通过霍尔传感器获得电机转子的位置,然后跟据转子的位置在360度的电气周期内,进行六次转向(每60度换向一次)。每个换向位置电机输出物定方向的力,因此可以说方波控制的位置精度是电气60度。由于在这种方式控制下,电机的相电流波形接近方波,所以叫方波控制
    无刷电机方波控制
  2. 特点
    价格便宜,驱动器算法简单,开发难度低,开发成本低,硬件成本相对较低
    加减速简单粗暴,类似于猛踩油门,但也容易过冲
    匹配电机简单,对电机的相位,相电感,相电阻要求低

二 正统波控制

  1. 使用的是SVPWM波形,输出的是三相正弦波电压,电机相电流为正弦波电流,可以认为在一个电气周期内进行了多次的连续变化换向,无换相电流突变。显然,正弦波与方波相比,其转矩波动较小,电流谐波小,控制起来感觉较“细腻”。
    无刷电机正弦波控制
  2. 特点
    运行平稳,转矩波动小,运行效果顺畅,不易受负载变动而波动
    稳定可靠,使用寿命长(正弦波控制避免了产生尖峰电流的冲击,而方波控制易产生尖峰电流,对MOS管及电机进行竞击,影响了寿命。)
    安静,噪音小。电机运行时,方波控制可明显听到“吱吱吱”的电流声,弦波控制电流声极小。
    效率高。正弦波控制比方波控制电机的使用效率高,输出同等功率所需的电流更低。
    算法难度高,成本比方波控制相对高一点。

三 如何选择

  1. 对运行效果,性能,稳定可靠性没有太高要求,追求低成本的。选方波驱动器
  2. 要求运行效果好,稳定可靠,静音,耗电低,效率高的。选正弦波驱动器

github上,对电脑虚拟机的辅助项目

一 Bottles:一款可轻松实现 Linux 上运行 Windows 软件的工具。

该项目由python写成,提供了清爽易用的 GUI 界面,用户就算不懂任何编程技巧,也可通过wine,轻而易举地在 Linux 系统上,运行 Windows 的游戏和软件。
地址:github.com/bottlesdevs/Bottles

二 使用 WinApps 在 Linux 桌面上无缝运行 Windows 应用程序

WinApps for Linux 使运行 Windows 应用程序变得容易

运行虚拟机以使用Windows应用程序没有错,但有时您不想加载整个操作系统只是为了使用 Microsoft Outlook 发送电子邮件。如果出于某种原因,你想要使用 Microsoft Outlook 作为默认邮件应用,则当您使用主机上的浏览器单击“mailto”链接时,在虚拟机内部激活它并不容易。

适用于 Linux 的 WinApps 使用远程桌面协议 (RDP),并允许您将 Windows 应用视为您自己的 Linux 发行版的一部分。这包括将它们添加到您的开始菜单和用于处理 MIME 类型的集成。

你仍将使用 VM,但在 Linux 桌面上运行应用将与充当 WinApps 子系统的虚拟机无缝衔接。安装后,您再也不必查看 Windows 桌面。虽然使用 WinApps 很简单,但将其放到您的系统上可能需要一些时间。

New blink 是一款虚拟机可用来跑静态编译的 x86-64 Linux,它适用于不同的操作系统和硬件架构。它和 qemu-x86_64 实现类似功能,除了 blink 不是一个 4 mb 的二进制而是一个约 158 kb 的小东西之外,在某些基准测试中,比如:gcc 模拟,blink 比 Qemu 更快。由于体积小,作为折中的方案,blink 在系统集成方面不如 Qemu 丰富。
GitHub 地址→github.com/jart/blink

四 winlator 模拟器

winlator模拟器一款可将手机变身成为一部真实的pc,可畅玩各种电脑端游戏,兼容性强大,并且对于手机的性能没有过高的要求

五 Github上新的有4K星的项目,WinApps for Linux 项目

能够直接在 Linux 系统上直接运行 Windows 应用,比如Microsoft Office/Adobe,使用起来就像是本机 OS 的一部分一样。

https://github.com/dockur/windows

简介:Docker 容器中的 Windows

七 轻量级虚拟机新宠——Multipass

Multipass的底层技术基于Hypervisor,支持KVM、Hyper-V和VirtualBox等虚拟化技术。这意味着无论你的操作系统是Ubuntu、macOS还是Windows,Multipass都能提供稳定而高效的服务。虽然Multipass在功能上可能不及VMware那样全面,但它在轻量化和易用性上展现出独特优势。VMware拥有强大的虚拟化功能,非常适合企业级环境和生产环境的复杂需求。但如果你的需求倾向于轻量级的开发和测试,Multipass则是一个理想的选择。

被初中男孩子唱红的that girl

That girl

there’s a girl but i let her get away
it’s all my fault cause pride got in the way
and i’d be lying if i said i was ok
about that girl the one i let get away
i keep saying no
this can’t be the way it was supposed to be
i keep saying no
there’s gotta be a way to get you close to me
now i know you gotta
speak up if you want somebody
can’t let them get away oh no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no hope for the broken heart
don’t you know
no no no no
there’s no hope for the broken
there’s a girl but i let her get away
it’s my fault cause i said i needed space
i’ve been torturing myself night and day
about that girl the one i let get away
i keep saying no
this can’t be the way it was supposed to be
i keep saying no
there’s gotta be a way to get you
gotta be a way
to get you close to me
you gotta
speak up if you want somebody
can’t let them get away oh no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no hope for the broken heart
don’t you know
no no no no
there’s no hope for the broken
no home for me
no home cause i’m broken
no room to breathe
and i got no one to blame
no home for me
no home cause i’m broken
about that girl
the one i let get away
so you better
speak up if you want somebody
you can’t let him get away no no
you don’t wanna end up sorry
the way that i’m feeling every day
don’t you know
no no no no
there’s no home for the broken heart
don’t you know
no no no no
there’s no home for the broken
oh
you don’t wanna lose at love
it’s only gonna hurt too much
i’m telling you
you don’t wanna lose at love
it’s only gonna hurt too much
i’m telling you
you don’t wanna lose that love
cause there’s no home for the broken heart
that girl
the one i let get away

春暖花开,不要问我过得好不好

1. 春暖花开

如果你渴求一滴水
我愿意倾其一片海
如果你要摘一片红叶
我给你整个枫林和云彩
如果你要一个微笑
我敞开火热的胸怀
如果你需要有人同行
我陪你走到未来
春暖花开 这是我的世界
每次怒放
都是心中喷发的爱
风儿吹来
是我和天空的对白
其实幸福
一直与我们同在
如果你要一个微笑
我敞开火热的胸怀
如果你需要有人同行
我陪你走到未来
春暖花开
这是我的世界
每次怒放
都是心中喷发的爱
风儿吹来
是我和天空的对白
其实幸福
一直与我们同在
春暖花开
这是我的世界
生命如水
有时平静
也有时澎湃
穿越阴霾
阳光洒满你窗台
其实幸福
一直与我们同在
我的世界
春暖花开

2 不要问我过得好不好

词:周治平 曲:周治平

我不是你想象中的那样坚强
可以一个人独自面对悲伤
其实我也希望有个温暖的地方
让我可以挡风遮雨
那些许多年不见的朋友啊
再次相遇的时候都已成对成双
是否他们已经
找到快乐的天堂
可不可以
让我也靠在你的肩上
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找
那些许多年不见的朋友啊
再次相遇的时候都已成对成双
是否他们已经
找到快乐的天堂
可不可以
让我也靠在你的肩上
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找
不要问我过的好不好
我的心事你应该知道
当寂寞越来越多
骄傲越来越少
只希望有你白头到老
不要问我过的好不好
我的心事你应该知道
当黑夜越来越长
梦想越来越小
我的春天 该到那里去找

加拿大歌手布莱恩.亚当斯的经典歌曲

1. everthing I do , I do for you

Look into my eyes

You will see what you mean to me

Search your heart search your soul

And when you find me there you’ll search no more

Don’t tell me it’s not worth trying for

You can’t tell me it’s not worth dying for

You know it’s true

Everything I do

I do it for you

Look into your heart

You will find there’s nothing there to hide

Take me as I am take my life

I would give it all I would sacrifice

Don’t tell me it’s not worth fighting for

I can’t help it there’s nothing I want more

You know it’s true

Everything I do

I do it for you

There’s no love

Like your love

And no other

Could give more love

There’s no where

Unless you’re there

All the time all the way

Ah you can’t tell me it’s not worth trying for

I can’t help it there’s nothing I want more

Yeah I would fight for you

I’d lie for you

Walk the wire for you

Yeah I’d die for you

You know it’s true

Everything I do

I do it for you

2 Here I Am (我就在这) - Bryan Adams (布莱恩·亚当斯)

作词 : Bryan Adams/Gretchen Peters/Hans Zimmer
作曲 : Bryan Adams/Gretchen Peters/Hans Zimmer

Here I am this is me
There’s no where else on earth I’d rather be
Here I am it’s just me and you
And tonight we make our dreams come true
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here we are we’ve just begun
And after all this time our time has come
Ya here we are still going strong
Right here in the place where we belong
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here I am this is me
There’s no where else on earth I’d rather be
Here I am it’s just me and you
And tonight we make our dreams come true
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
It’s a new world it’s a new start
It’s alive with the beating of young hearts
It’s a new day it ‘s a new plan
I’ve been waiting for you
Here I am
Here I am next to you
And suddenly the world is all brand new
Here I am where I’m gonna stay
Now there’s nothin standin in our way
Here I am this is me