杂记-20251209
最近买了三本书:《李光耀观天下》、《以日为鉴》、《国家为什么会失败》,也不知啥时能静下心看,买来先丢着。 看电 … 继续阅读杂记-20251209
最近买了三本书:《李光耀观天下》、《以日为鉴》、《国家为什么会失败》,也不知啥时能静下心看,买来先丢着。 看电 … 继续阅读杂记-20251209
《老张博客搬家至酷鸭数据香港VPS》时,还算是比较顺利。想着既然老张博客已经搬到了酷鸭数据,那也把我的后花园“老张随笔”也搬过来吧,说干就干。
以前用的CC家服务器,安装的是宝塔面板,手里一直还有一个1panel的永久授权版,所以这次酷鸭数据的香港VPS我使用的是1panel。如果两台服务器都是宝塔,那搬家真的是分分钟的事,直接用应该商店里的“网站迁移”就行,而现在,只能通过备份网站文件、数据库文件后再上传到新服务器的方式来进行搬家了。
这块还比较顺利,因为两台服务器我都使用了相同版本的MYSQL、PHP等。另外需要特别注意的就是PHP的扩展、禁用函数也必须要保持一致。
这个问题非常好解决,宝塔面板链接数据库MYSQL默认的是localhost,而1panel面板连接MYSQL地址是MYSQL的容器的名称,这点必须要修改。
这个是我折腾最久的一个坑,当把老张随笔搬过来后,登录后台发现出现500报错,提示为Unmatched '}'。这个坑一直折腾了几个小时。其实在这里,我也是犯了一个非常简单的错误,就是搬家之前没有关闭所有插件。所以建议像这样的搬家,最好在搬家之前把所有的插件停掉、主题换成默认的,搬家后再一个一个启用插件,以便可以更好的测试到错误。
把所有的插件和主题停用后,后台可以正常进入,这个时候再一个一个启用插件,当排查到LoveKKCommentModify这个插件,只要启用就会提示Unmatched '}'。因为对1panel不熟悉,找到AI解决了问题。修改了LoveKKCommentModify的Plugin.php文件第343行:将 <? 改为 <?php、第589行:将 <? 改为 <?php。
其实导致这个问题的最终原因是LoveKKCommentModify插件使用了PHP短标签,宝塔面板默认是开启的,而1panel默认是关闭的。只需要到1panel的运行环境中,把PHP短标签开启即可。根本就不需要修改什么代码。
登录1panel后台,为typecho网站设置未静态,代码是默认的,但是出问题了。登录后台出现404错误,并提示:“找不到以下 Web 地址的网页: https://zhangbo.net/index.php/action/login?_=5ca13260eXXXXXXX53adXXXXc92a HTTP ERROR 404。
deepseek分析原因为Typecho的路径处理与当前伪静态规则不匹配。我也就想不通了,为什么官方的默认的代码就不匹配了。最后解决方法添加break指令修正规则
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
break;
}
搬了一个家,遇到很多坑,折腾N天!要是若干年前还没有AI的时候,估计请教N位大佬也不一定能把问题解决。现在好了,AI普及,遇到问题都可以自己解决,有了AI,人人都是程序员了!!
终于昨天15点左右上海这组客户单子成功完成,即他们选好房、搬行李入住、签约,后续不会有太多事儿了,这第一单算是完成啦。
他们租了哪套房?花了多少钱?是否如我上篇文预测那样?这又是一篇值得记录的小文章,又是值得反思和复盘的事件。
早上被老妈夺命连环电话从床上叫起来。过一会儿又是微信视频打过来了,强力勿扰挡不住她直接换个人打,打到顶梁柱那里。
最近还在读《枪炮、病菌与钢铁》,坐在家里沙发晒着太阳,这时候就不想去公司努力了。听贝多芬第九交响曲停不下来,特别是第三乐章的慢板,推荐。
今天 SnapVinyl 目标是优化同步,reddit 上有用户说他四千多张唱片,同步有点问题。上次还有反馈说六千多张同步闪退。我脑子里都是他们用的过程中抓狂的画面,迫不及待要解决这个问题。
当然同步是个复杂的问题,用 Discogs 提供的这点 API 是很难做得完美。着实花了我一点时间思考这个方案,晚上的时候已经有些眉目。
全世界有快三千万人下载过我设计的产品。我与世界连接的方式就是这样,做一个 App,某时某刻某地,一个完全不会产生交集的人在 App Store 点了下载按钮,于是我们开始产生了连接。

As a child born at the end of 1962, I caught the dying gasp of the Beatles run as a band. My family bought a copy of the 45 RPM single Let it Be, released in 1970. I suppose by that time, the band was already a thing of the past, but my older brothers (by one and two years) and I sat in front of the family hi-fi and listened to it repeatedly. The flip side was You Know My Name (Look Up the Number), which, as a music obsessed adult, now strikes me as poorly executed filler, but as a child, it was simply weird, so we never flipped the record over for a break. We just listened to Let It Be and Let It Be and Let It Be.
For the next six years. I immersed myself in popular music. I latched onto the Beach Boys’ Endless Summer, Elton John’s Goodbye Yellow Brick Road, and much of the music that I heard on the radio, Sweet’s Ballroom Blitz, R. Dean Taylor’s Indiana Wants Me, Zeppelin’s Black Dog, etc. Like most young listeners, I gravitated towards whatever songs my preteen classmates played. During that period the Beatles music was everywhere.
For Christmas one year, my mother bought me what is colloquially known as the Beatles Red Album, the hits from 1962-1966. With that album as my launch pad, I sought out other early Beatles compilations, my favorite being Rock ‘n’ Roll Music which I listened to nonstop until my cassette tape stretched out and broke. My mother also bought my brother the Blue Album, hits from 1967-1970. This album spent as much time on the family stereo as the Red Album.
In ninth grade, I fell in with a group of stoners. We spent our afternoons smoking pot, quoting Monty Python, and listening to the Beatles. Being high, we preferred the band’s later, more psychedelic music. I purchased Revolver, Sgt. Pepper, Magical Mystery Tour, The White Album and Abbey Road. I spent countless hours closeted in my bedroom listening to those five albums. I can still, fifty years later, sing along with each LP from beginning to end. The songs on those five Beatles albums remain my favorite to this day.
I give this background as testimony to prove that I’m not a casual Beatles fan. By the end of high school, I identified as a Superfan. Over the decades, I’ve branched out and enjoy most musical genres, but the Beatles still show up annually on my Spotify list of top artists. So, what’s my favorite Beatles song? Don’t Pass Me By, written and sung by Ringo Starr on The White Album.
This morning, for the zillionth time, I read yet another ARTICLE trashing Ringo Starr in general and Don’t Pass Me By specifically. You might ask why Far Out Magazine, a UK pop culture website is reviewing a fifty-seven-year-old song, a song almost twice as old as half the people in the world. I’m not sure. People love to hate on this song. And it’s high time for me to speak up, cuz I’m f*cking sick of it.
Don’t Pass Me By is often cited for its simplicity, tucked in the middle of a double album exalted for its experimental tracks. But as a reminder, the Beatles made their name with simple songs like She Loves You Yeah, Yeah, Yeah? Yes, Don’t Pass Me By lacks the complexity, lyricalness, and depth of many Beatles songs, but it might very well be the most fun. No other song by the Beatles, or maybe any other band I know of, makes me want to sing along like Don’t Pass Me By.
The title of the article I read: “Is ‘you were in a car crash, and you lost your hair’ the worst lyric the Beatles ever wrote?” by Reuben Cross. It’s true, the song does include this unfortunate line:
I’m sorry that I doubted you, I was so unfair
You were in a car crash, and you lost your hair
You said that you would be late, about an hour or two
I said that’s alright, I’m waiting here, just waiting to hear from you
But the line isn’t the only complaint Cross has with the song. In his article, before he starts digging into this one lyric, he slams the backing track: “The honky-tonk piano and bluegrass violins are grating to say the least.” I disagree, Mr. Cross. The bluegrass flair is what makes the song amazing. In fact, as a one-time Beatles Superfan, it’s my opinion that those violins might be the most charming aspect of the entire White Album.
In the second to last paragraph, Cross briefly addresses the lost your hair line “at no other point does (Starr) mention the person he is pining over suffering from traumatic alopecia.” I don’t know if Cross is being willfully ignorant, trying to be funny, or is just stupid, but ‘lost your hair’ is clearly an idiom that was in usage when the song was written—much like ‘lost your mind’ or ‘lost your shit.’
Regardless, the White Album easily has worse lyrics. The very next song on the album goes like this (repeated three times, and that’s the whole song):
Why don’t we d-do it in the road?
Why don’t we do it in the road?
Why don’t we do it in the road? Hmm
Why don’t we do it in the road?
No one will be watching us
Why don’t we do it in the road?
Much better? Absolutely, people say, because the song was written by Paul McCartney. The hate directed towards Don’t Pass Me By is part of a snobbishness against Ringo Starr so many rock critics have embraced over the decades. Three of the Beatles were touched by the divine. George Harrison, McCartney and John Lennon all channeled something otherworldly during their stint with the Beatles. Ringo Starr, critics say lucked into the mix.
That’s bullshit. Starr was a solid drummer, and the fab four finally clicked when he joined the band. He just might be the mysterious force that corralled those three supernovas together into a cohesive unit that worked. Starr only wrote a couple of songs for the Beatles, and Don’t Pass Me By is easily the best. Give my song a break, before I lose my hair.










