Sam Smith

RSS: https://samsm.ch/index.xml
关于摄影和 Go 编程的个人博客。

Paperless-ngx 云端备份方案:从定时任务到 webhook 触发

<p>我将所有重要的(以及许多并不那么重要的)文档都存储在我的家用实验室中运行的 实例里。鉴于这些文件的重要性,我希望能为它们再增加一份备份,同时保留相应的元数据。<br><br>虽然将文件存储在云端并非完全理想,但这样一来,如果因各种原因无法直接访问文件,我依然可以轻松地获取这些文档。</p><p>请跳转到前面部分,查看 或 的配置信息。</p><p>我选择使用 Dropbox 作为备份工具,因为多年前发送邀请时就已拥有充足的空间,并且该服务会自动同步我的文件至笔记本电脑,这样我也能在笔记本上获得额外的备份。<br><br>下面介绍的方法同样可以轻松应用于其他云存储解决方案。</p><p>最初,我想到的解决办法是:在家中实验室中运行 Dropbox 守护进程,并创建一个符号链接,指向 Paperless 存储文件的路径。然而,我很快发现,这一方案存在几个问题:</p><ol> <li>Dropbox 守护进程不支持 Arm 架构,而我的家用实验室则是一台树莓派。</li> <li>Paperless 并未以一种便于备份的方式存储元数据。</li> </ol><p>为了解决第 1 个问题,我花了一些时间研究了适用于树莓派的 Dropbox 同步脚本,随后自己编写了一段脚本来实现同样的功能,不过我对这些脚本都不太满意。<br><br>经过一番研究,我突然想起 这一工具——它比这些脚本都要强大得多,而且能够实现单向同步,这正是我所需的最佳备份方式。然而,这也带来了一个新的问题:Rclone 并…</p>
评论点赞收藏45 天前

香港之夜:哈苏胶片夜景拍摄手记

摄影师 Sam Smith 记录 2018 年香港夜景,分享胶片拍摄经验。使用哈苏 500C/M 搭配 Ilford HP5+ 胶卷,在 ISO 800 下通过寻找墙壁或垃圾桶稳定相机进行长曝光。 文中提及 Michael Kenna 展览趣事及韩国机场胶片检查难点,提供具体的暗房冲洗参数(Ilfotec HC 1:49)和扫描后期流程。
评论点赞收藏67 天前

为什么我偏爱小型机械键盘

作者作为一名软件工程师,分享了自己长期使用小型机械键盘(如 Corne)的体验与理由。他详细解释了通过分层布局让常用键靠近主行,从而减少手部移动、 提升打字舒适度的工程化思路。 文章反驳了“程序员需要所有功能键”的观点,认为小键盘迫使人们优化常用操作。同时他也客观指出了学习成本较高、不常用键查找不便的缺点,并提到自己保留了数字小键盘以兼顾效率。
评论点赞收藏90 天前

This site is moving

I have finally bought a domain for this website and it is moving to. It will continue to be available at for the time being but that should change at some point and will do so without warning.
评论点赞收藏259 天前

Photo Series: Standout

Standout is a short series of shots taken in Switzerland between March 2021 and May 2024. They are photos showing telephone poles, electricity pylons, signposts, and fence posts standing out. Every p...
评论点赞收藏437 天前

Always Sort by ID — An Interesting Gotcha

If you’re writing a database query for your web service and there’s pagination, you should always sort by a unique field like ID. This should also be done on top of any other sorting. Otherwise you ca...
评论点赞收藏491 天前

Rgeo — 5 Years On

5 years ago I wrote Rgeo, a small Go package for reverse geocoding (you input some coordinates, it gives you information about the location). Today I am putting the projected on an indefinite hiatus. ...
评论点赞收藏571 天前

Portfolio V - 2020

This year was, unlike the previous few, without any major travel. Although I did move from the UK to Switzerland, which did give me a new place to explore and photograph. Even with that I took a fract...
评论点赞收藏1746 天前

August 01

August 01 is Swiss national day, and one of the few days of the year that it’s legal to set off fireworks here in Zurich. I decided to head out in the evening with my digital camera to see the firewor...
评论点赞收藏1884 天前

Portfolio IV - 2019

2019 was another active year for me, with a trip to Venice in July and then a long trip to Barcelona, the U.S, Vietnam, Thailand but mostly Taiwan. I only shot colour film in Vietnam and Thailand so t...
评论点赞收藏2138 天前

Edgeland Nottingham

I was recently looking through all the photos I took during my 4 years living in Nottingham to see if I could come up with some kind of series out of them. After cutting it down to all the black & whi...
评论点赞收藏2376 天前

Photo Series: New York Architecture

Just 15 months after I posted my Singapore Architecture photo series, I have decided to revisit this theme with some photos I took in New York last September. Despite what this series might suggest, I...
评论点赞收藏2390 天前

Campus Lights Updates and Out-takes

It’s 5 months since I posted my project Campus Lights. Sadly I didn’t manage to make any progress with getting anything changed on campus, the person I’d emailed didn’t get back to me and my exams & d...
评论点赞收藏2625 天前

Portfolio III - 2018

Having finished my last portfolio at the end of 2017 I can now start doing them yearly, so this one covers 2018. This includes two trips to the Canary islands, one to Gran Canaria in March and anothe...
评论点赞收藏2661 天前

Campus Lights

As an astronomy student and hobbyist, light pollution has sort of become my environmental issue of choice. Not only is it an annoyance to astronomers, but also damaging to wildlife as well as our heal...
评论点赞收藏2783 天前

Burmese Dogs

"The pariah curs were baying the moon - it was only a quarter full and nearly down by midnight, but the dogs slept all day in the heat, and they had begun their moon-choruses already" - George Orwell ...
评论点赞收藏2809 天前

Photo Series: Singaporean Architecture

In another attempt at post-shooting photo series creation, I have put together a collection of architecture shots I took during my brief stay in Singapore in June of 2018.
评论点赞收藏2859 天前

Portfolio II

This set of images begins where the last portfolio leaves off and primarily shows my travels during the summer of 2017, with the last image being the only one outside of that. I have again chosen to ...
评论点赞收藏2866 天前

Qingdao Diptych

This is a pair of photos that I took from the top floor of a pagoda in 小鱼山公园 (Xiaoyushan park, or Little Fish Hill Park) in Qingdao, China.
评论点赞收藏2870 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。