<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>晚花行乐</title><link>https://www.lfhacks.com/</link><description>Recent content on 晚花行乐</description><generator>Hugo 0.125.1</generator><language>zh</language><lastBuildDate>Mon, 16 Mar 2026 23:48:28 +0800</lastBuildDate><atom:link href="https://www.lfhacks.com/index.xml" rel="self" type="application/rss+xml"/><item><title>解决 Debian 12 关机失败问题</title><link>https://www.lfhacks.com/tech/debian-shutdown-failure/</link><pubDate>Wed, 04 Sep 2024 21:48:25 +0800</pubDate><guid>https://www.lfhacks.com/tech/debian-shutdown-failure/</guid><description>&lt;p>最近新安装了一套 Debian 12，关机的时候卡住不动，提示：systemd-shutdown[1]: Failed to finalize DM devices, ignoring.&lt;/p></description></item><item><title>笠翁对韵的基本知识</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun/</link><pubDate>Sat, 20 May 2023 10:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun/</guid><description>&lt;p>本文记录有关笠翁对韵的背景知识，主要来自王伟勇教授讲座的记录，加上我自己的整理和补充。了解这些基本知识，是深入了解 &lt;a href="https://www.lfhacks.com/tags/liwengduiyun/">《笠翁对韵典故》&lt;/a> 的前提。&lt;/p></description></item><item><title>上下五千年-精简版</title><link>https://www.lfhacks.com/grow/five-thousand-years/</link><pubDate>Mon, 24 May 2021 22:51:41 +0800</pubDate><guid>https://www.lfhacks.com/grow/five-thousand-years/</guid><description>书本简介 这套书在历史读物中很有名，我也十分喜欢这套书。 书本封面 书的封面也有深意，值得解读。下面是这套书的照片： 上册封面： 上册封面是长城，是战国时期秦、</description></item><item><title>在 Debian 12 上安装 Nvidia 显卡驱动程序</title><link>https://www.lfhacks.com/tech/debian-nvidia-driver/</link><pubDate>Thu, 05 Sep 2024 22:02:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/debian-nvidia-driver/</guid><description>&lt;p>最近新安装了一套 Debian 12，下面记录安装 Nvidia 显卡驱动的过程。&lt;/p></description></item><item><title>笠翁对韵中的典故（一东）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-1/</link><pubDate>Tue, 22 Jun 2021 12:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-1/</guid><description>&lt;p>一东，笠翁对韵第一篇，许多人背笠翁对韵止步于此。&lt;/p></description></item><item><title>黄帝战蚩尤</title><link>https://www.lfhacks.com/grow/the-yellow-emperor-fought-chi-you/</link><pubDate>Mon, 24 May 2021 22:54:47 +0800</pubDate><guid>https://www.lfhacks.com/grow/the-yellow-emperor-fought-chi-you/</guid><description>典故 指南车，炎黄子孙 故事 大约四千年前，有一个部落首领叫黄帝。同时期有另一个部落首领叫炎帝，据说跟黄帝族是近亲。 蚩尤是九黎族的首领，十分强悍。传说蚩尤的</description></item><item><title>Debian 12 的常用配置项</title><link>https://www.lfhacks.com/tech/debian-configuration/</link><pubDate>Fri, 06 Sep 2024 22:02:11 +0800</pubDate><guid>https://www.lfhacks.com/tech/debian-configuration/</guid><description>&lt;p>最近新安装了一套 Debian 12，记录一些初始化的配置项，已被以后参考。&lt;/p></description></item><item><title>笠翁对韵中的典故（二冬）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-2/</link><pubDate>Tue, 22 Jun 2021 12:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-2/</guid><description>&lt;p>二冬&lt;/p></description></item><item><title>尧舜让位</title><link>https://www.lfhacks.com/grow/yao-shun-abdication/</link><pubDate>Mon, 07 Jun 2021 23:06:43 +0800</pubDate><guid>https://www.lfhacks.com/grow/yao-shun-abdication/</guid><description>典故 尧、舜、禹，禅让 故事 黄帝 之后，出了三个很出名的首领，就是尧、舜、禹。 第一个首领叫尧，尧年纪大时，想找一个继承他职位的人。那时候首领的继承，是需要各</description></item><item><title>解决瘦客户机上安装 Debian 12 启动失败问题</title><link>https://www.lfhacks.com/tech/debian-boot-failure-thin-client/</link><pubDate>Mon, 23 Dec 2024 23:25:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/debian-boot-failure-thin-client/</guid><description>&lt;p>我在一台瘦客户机 HP T620 上安装 Debian 12 Bookworm 遇到了启动失败问题，记录一下解决的方法。&lt;/p></description></item><item><title>笠翁对韵中的典故（三江）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-3/</link><pubDate>Tue, 22 Jun 2021 12:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-3/</guid><description>&lt;p>笠翁对韵中的典故（三江）&lt;/p></description></item><item><title>大禹治水</title><link>https://www.lfhacks.com/grow/yu-tamed-the-flood/</link><pubDate>Mon, 07 Jun 2021 23:09:41 +0800</pubDate><guid>https://www.lfhacks.com/grow/yu-tamed-the-flood/</guid><description>典故 大禹三过家门而不入，息壤，宜疏不宜堵 故事 尧在位的时候，黄河发了水灾。需要有人去治水。首领们推举了鲧。 传说鲧偷来了天帝的息壤，息壤遇水后能不断的生长</description></item><item><title>笠翁对韵中的典故（四支）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-4/</link><pubDate>Tue, 22 Jun 2021 12:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-4/</guid><description>&lt;p>笠翁对韵中的典故（四支）&lt;/p></description></item><item><title>姜太公钓鱼</title><link>https://www.lfhacks.com/grow/jiang-taigong-fishing/</link><pubDate>Mon, 07 Jun 2021 23:27:49 +0800</pubDate><guid>https://www.lfhacks.com/grow/jiang-taigong-fishing/</guid><description>典故 姜太公直钩钓鱼&amp;mdash;&amp;mdash;愿者上钩，太公八十遇文王 故事 周文王姬昌见纣王昏庸残暴，丧尸民心，就决定讨伐商朝。可是他身边缺少一个有军事</description></item><item><title>笠翁对韵中的典故（五微）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-5/</link><pubDate>Sat, 28 Aug 2021 00:46:31 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-5/</guid><description>&lt;p>五微&lt;/p></description></item><item><title>武王建立周朝</title><link>https://www.lfhacks.com/grow/wu-founded-zhou/</link><pubDate>Mon, 07 Jun 2021 23:27:49 +0800</pubDate><guid>https://www.lfhacks.com/grow/wu-founded-zhou/</guid><description>典故 箕子朝鲜，奴隶倒戈 故事 商纣王的暴政越来越厉害。商朝的贵族比干、箕子非常担心，苦苦劝说他别这样闹下去。商纣王不但不听，还把比干杀了，把他的心掏出来，</description></item><item><title>笠翁对韵中的典故（六鱼）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-6/</link><pubDate>Sat, 28 Aug 2021 00:46:31 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-6/</guid><description>&lt;p>六鱼&lt;/p></description></item><item><title>笠翁对韵中的典故（七虞）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-7/</link><pubDate>Mon, 13 Dec 2021 11:39:29 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-7/</guid><description>&lt;p>七虞&lt;/p></description></item><item><title>笠翁对韵中的典故（八齐）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-8/</link><pubDate>Sat, 14 May 2022 13:39:40 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-8/</guid><description>&lt;p>八齐&lt;/p></description></item><item><title>笠翁对韵中的典故（九佳）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-9/</link><pubDate>Mon, 01 Aug 2022 20:09:40 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-9/</guid><description>&lt;p>九佳&lt;/p></description></item><item><title>笠翁对韵中的典故（十灰）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-10/</link><pubDate>Thu, 16 Feb 2023 20:04:40 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-10/</guid><description>&lt;p>十灰&lt;/p></description></item><item><title>笠翁对韵中的典故（十一真）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-11/</link><pubDate>Thu, 09 Mar 2023 22:39:33 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-11/</guid><description>&lt;p>笠翁对韵中的典故（十一真）&lt;/p></description></item><item><title>笠翁对韵中的典故（十二文）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-12/</link><pubDate>Fri, 12 May 2023 22:39:33 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-12/</guid><description>&lt;p>笠翁对韵中的典故（十二文）&lt;/p></description></item><item><title>笠翁对韵中的典故（十三元）</title><link>https://www.lfhacks.com/grow/li-weng-dui-yun-13/</link><pubDate>Fri, 20 Dec 2024 22:39:33 +0800</pubDate><guid>https://www.lfhacks.com/grow/li-weng-dui-yun-13/</guid><description>&lt;p>笠翁对韵中的典故（十三元）&lt;/p></description></item><item><title>马克卡尼在2026年达沃斯论坛上的讲话（阅读材料）</title><link>https://www.lfhacks.com/blog/mark-carney-davos-speech-2026/</link><pubDate>Fri, 23 Jan 2026 09:31:53 +0800</pubDate><guid>https://www.lfhacks.com/blog/mark-carney-davos-speech-2026/</guid><description>&lt;p>2026年1月20日，加拿大总理马克·卡尼在达沃斯论坛上发表了一场备受关注的演讲，有人评论这次演讲的地位不亚于铁幕演说。列在这里作为英文阅读材料使用。下面中文部分为本人意译，如有出入请在评论区指正。&lt;/p></description></item><item><title>鸡娃如何用力才是恰到好处</title><link>https://www.lfhacks.com/grow/properly-driven/</link><pubDate>Sat, 03 May 2025 15:23:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/properly-driven/</guid><description>&lt;p>鸡娃方法论&lt;/p></description></item><item><title>读万卷书，行万里路的辩证关系</title><link>https://www.lfhacks.com/blog/read-and-travel/</link><pubDate>Fri, 18 Apr 2025 11:24:11 +0800</pubDate><guid>https://www.lfhacks.com/blog/read-and-travel/</guid><description>&lt;p>本文谈谈我对“读万卷书，行万里路”的看法。&lt;/p></description></item><item><title>反对培训机构掐尖招生</title><link>https://www.lfhacks.com/grow/agent-enrollment/</link><pubDate>Sat, 05 Apr 2025 00:10:22 +0800</pubDate><guid>https://www.lfhacks.com/grow/agent-enrollment/</guid><description>&lt;p>一直未入鸡娃圈，着实孤陋寡闻了。最近偶然听说校外培训机构也开始考试掐尖招生，让我十分震惊和抵触，不得不写篇文章声讨，一吐为快。&lt;/p></description></item><item><title>小泽和建国会谈最后10分钟全文（阅读材料）</title><link>https://www.lfhacks.com/blog/trump-zelensky-meeting-2025/</link><pubDate>Wed, 12 Mar 2025 12:31:53 +0800</pubDate><guid>https://www.lfhacks.com/blog/trump-zelensky-meeting-2025/</guid><description>&lt;p>2025年 2月28日，美国白宫椭圆办公室，三位大统领当着美国媒体记者的面，全程直播了他们争吵的全过程，这算是一起精彩外交事故+直播事故了。这里记录了最后10分钟的全文，作为英文阅读材料使用。&lt;/p></description></item><item><title>来看看 DeepSeek 怎么鸡娃</title><link>https://www.lfhacks.com/grow/deepseek-parenting/</link><pubDate>Sun, 09 Feb 2025 00:02:22 +0800</pubDate><guid>https://www.lfhacks.com/grow/deepseek-parenting/</guid><description>&lt;p>今天向 DeepSeek 抛出一个终极问题，看看会得到什么样的回答。&lt;/p></description></item><item><title>谈谈基本功</title><link>https://www.lfhacks.com/grow/basic-training/</link><pubDate>Sun, 26 Jan 2025 23:32:19 +0800</pubDate><guid>https://www.lfhacks.com/grow/basic-training/</guid><description>&lt;p>上一篇 &lt;a href="https://www.lfhacks.com/grow/four-minor-subjects/">《谈谈中考取消四小门》&lt;/a> 中最后提到有一个容易忽视的问题，就是今天要谈的基本功。&lt;/p></description></item><item><title>惠普 ProDesk SFF PC 各系列参数对比</title><link>https://www.lfhacks.com/blog/hp-pc-sff/</link><pubDate>Sun, 19 Jan 2025 22:36:36 +0800</pubDate><guid>https://www.lfhacks.com/blog/hp-pc-sff/</guid><description>&lt;p>惠普 ProDesk 系列 PC 是面向商务应用，有400、600、800 等覆盖高中低配置。文档较分散而且充斥大量冗余信息，本文希望提取一些简要指标，希望对你有用。&lt;/p></description></item><item><title>意拾喻言：老外写的文言文</title><link>https://www.lfhacks.com/grow/e-sap-yu-yen/</link><pubDate>Sat, 21 Dec 2024 09:39:33 +0800</pubDate><guid>https://www.lfhacks.com/grow/e-sap-yu-yen/</guid><description>&lt;p>《意拾喻言》是晚清第一个伊索寓言汉译本，由英国人罗伯聃（Robert Thom）翻译。&lt;/p></description></item><item><title>谈谈中考取消四小门</title><link>https://www.lfhacks.com/grow/four-minor-subjects/</link><pubDate>Sun, 15 Dec 2024 17:09:32 +0800</pubDate><guid>https://www.lfhacks.com/grow/four-minor-subjects/</guid><description>&lt;p>中考取消四小门，是指北京中考从2025年起，历史、地理、化学、生物四科从“考试”降为“考查”，只评判ABCD等级，不计分数。该如何解读这条政策，应该准备怎样的对策，我想谈谈个人的观点。&lt;/p></description></item><item><title>亚马逊云科技产品免费试用攻略(3) - 对象存储服务</title><link>https://www.lfhacks.com/tech/aws-s3/</link><pubDate>Wed, 20 Nov 2024 20:31:56 +0800</pubDate><guid>https://www.lfhacks.com/tech/aws-s3/</guid><description>&lt;p>继上次在 &lt;a href="https://aws.amazon.com/cn/free/?trk=4e3d055f-536a-4de7-858f-56bbdbaba3e7&amp;sc_channel=sm&amp;campaign=blog1428">亚马逊云科技&lt;/a> 页面试用了 &lt;a href="https://www.lfhacks.com/tech/aws-ec2/">EC2 云主机&lt;/a> 之后，最近又试用了 &lt;a href="https://aws.amazon.com/cn/free/?trk=4e3d055f-536a-4de7-858f-56bbdbaba3e7&amp;sc_channel=sm&amp;campaign=blog1428">亚马逊云科技&lt;/a> 的对象存储服务 Amazon S3。和上次一样，我把试用的过程记录下来，希望对你有用。&lt;/p></description></item><item><title>在 Windows 10 LTSC 版本上安装 WSL2</title><link>https://www.lfhacks.com/tech/installing-wsl-on-win-10-ltsc/</link><pubDate>Fri, 15 Nov 2024 01:21:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/installing-wsl-on-win-10-ltsc/</guid><description>&lt;p>本文介绍如何在 Windows 10 LTSC 精简系统上安装 WSL&lt;/p></description></item><item><title>解决 VS Code 自动更新版本后卡在连接界面</title><link>https://www.lfhacks.com/tech/vscode-server/</link><pubDate>Mon, 02 Sep 2024 23:04:01 +0800</pubDate><guid>https://www.lfhacks.com/tech/vscode-server/</guid><description>&lt;p>Visual Studio Code 自动更新后，会遇到连不上远程主机的问题，&lt;/p></description></item><item><title>观看巴黎奥运会有感</title><link>https://www.lfhacks.com/blog/olympics-paris/</link><pubDate>Mon, 02 Sep 2024 13:01:30 +0800</pubDate><guid>https://www.lfhacks.com/blog/olympics-paris/</guid><description>&lt;p>四年一度的奥运会又到来了。这次奥运会在浪漫的法国巴黎举办。我最喜欢看的运动项目是乒乓球比赛。&lt;/p></description></item><item><title>在 Windows10 上安装惠普旧打印机驱动程序</title><link>https://www.lfhacks.com/blog/install-hp-old-printer-on-win10/</link><pubDate>Thu, 29 Aug 2024 22:56:11 +0800</pubDate><guid>https://www.lfhacks.com/blog/install-hp-old-printer-on-win10/</guid><description>&lt;p>惠普老旧打印机 P1008，服役已超过10年，仍然十分能打。然而与之配合的电脑已经换了好几台，操作系统也升级到了 Windows10。在 Windows10 中为这台旧打印机安装驱动程序的过程中遇到许多困难，但是终究还是成功安装。&lt;/p></description></item><item><title>欢迎关注公众号：晚花行乐</title><link>https://www.lfhacks.com/blog/wechat-official-account/</link><pubDate>Mon, 26 Aug 2024 20:55:28 +0800</pubDate><guid>https://www.lfhacks.com/blog/wechat-official-account/</guid><description>&lt;p>公众号宗旨：分享有趣内容，参与趣味题目。&lt;/p></description></item><item><title>如何编写拼写检查器</title><link>https://www.lfhacks.com/tech/spell-correct/</link><pubDate>Thu, 15 Aug 2024 10:52:52 +0800</pubDate><guid>https://www.lfhacks.com/tech/spell-correct/</guid><description>&lt;p>本文翻译自 &lt;a href="https://norvig.com/spell-correct.html">How to Write a Spelling Corrector&lt;/a>，讲述用很少的一段代码实现拼写检查的功能。 本文是贝叶斯公式的一个很好的实例，比教科书上寥寥几句的例题更能帮助读者深入理解贝叶斯公式。&lt;/p></description></item><item><title>亚马逊云科技产品免费试用攻略(2) - 云服务器</title><link>https://www.lfhacks.com/tech/aws-ec2/</link><pubDate>Wed, 03 Jul 2024 20:31:56 +0800</pubDate><guid>https://www.lfhacks.com/tech/aws-ec2/</guid><description>&lt;p>久负盛名的 EC2 是亚马逊云科技推出的云服务器产品。继上次免费注册了 &lt;a href="https://aws.amazon.com/cn/free/?trk=82e7324f-8d11-415c-a27c-4aca0d749cf9&amp;sc_channel=sm&amp;campaign=blog1353">亚马逊云科技&lt;/a> 账号之后，最近又试用了亚马逊云科技的云服务器 EC2。&lt;/p></description></item><item><title>Pandas 中 axis 参数的理解（附实例）</title><link>https://www.lfhacks.com/tech/pandas-axis/</link><pubDate>Thu, 27 Jun 2024 20:55:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/pandas-axis/</guid><description>&lt;p>Pandas 一些函数带有 axis 的参数，对刚刚开始使用 Pandas 的新手来说，不好理解。网上有其他文章解释，但是感觉没有讲透。本文试着解释这个 axis 参数的含义。&lt;/p></description></item><item><title>我打算命个名，叫什么什么 Manager</title><link>https://www.lfhacks.com/tech/i-shall-call-it-something-manager/</link><pubDate>Sat, 01 Jun 2024 09:19:20 +0800</pubDate><guid>https://www.lfhacks.com/tech/i-shall-call-it-something-manager/</guid><description>&lt;p>本文是 &lt;a href="https://blog.codinghorror.com/i-shall-call-it-somethingmanager/">这篇文章&lt;/a> 的翻译，介绍了函数或者类命名时，应该避免和提倡的作法。&lt;/p></description></item><item><title>上海武康路历史建筑一览</title><link>https://www.lfhacks.com/blog/wukang-road/</link><pubDate>Tue, 19 Mar 2024 10:27:48 +0800</pubDate><guid>https://www.lfhacks.com/blog/wukang-road/</guid><description>武康路 武康路被誉为“浓缩了上海近代百年历史”的“名人路”。武康路-安福路街区汇聚着武康大楼、宋庆龄故居、巴金故居等历史文化建筑。 下面由南往北列出各个历</description></item><item><title>Python 实现简单的数学表达式解析并处理</title><link>https://www.lfhacks.com/tech/python-expression-parser/</link><pubDate>Wed, 27 Dec 2023 09:13:52 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-expression-parser/</guid><description>&lt;p>对于任意深度的数学表达式，希望使用 Python 解析，然后按照某种规则处理其中的元素。这里最终结果只是对单个元素的字面处理，而没有涉及表达式的表示和运算。&lt;/p></description></item><item><title>观看马拉松的感悟</title><link>https://www.lfhacks.com/blog/marathon/</link><pubDate>Fri, 22 Dec 2023 17:27:21 +0800</pubDate><guid>https://www.lfhacks.com/blog/marathon/</guid><description>&lt;p>上周末的早上，我去钱塘江边观看了杭州马拉松比赛。&lt;/p></description></item><item><title>Python 保存 Cookies 到文件并再次读取</title><link>https://www.lfhacks.com/tech/python-save-cookies-to-file/</link><pubDate>Thu, 21 Dec 2023 11:13:52 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-save-cookies-to-file/</guid><description>&lt;p>本文介绍如何使用 Python 将前次会话的 Cookies 保存下来供下次使用。&lt;/p></description></item><item><title>如何为 Hugo 静态网站添加评论功能</title><link>https://www.lfhacks.com/tech/dynamic-content-on-static-site-2/</link><pubDate>Wed, 13 Dec 2023 10:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/dynamic-content-on-static-site-2/</guid><description>&lt;p>我的网站使用 &lt;a href="https://gohugo.io/">Hugo&lt;/a> 编译静态页面。在此基础上，支持了搜索和评论等动态内容。我打算分两篇文章介绍具体的实现方法，分享给读者。这是第二篇。&lt;/p></description></item><item><title>Linux 共享打印服务 CUPS</title><link>https://www.lfhacks.com/tech/linux-cups/</link><pubDate>Tue, 21 Nov 2023 23:52:48 +0800</pubDate><guid>https://www.lfhacks.com/tech/linux-cups/</guid><description>&lt;p>家里的 HP 打印机太旧了（HP LaserJet P1008），已经不能在 Windows 10 上正常安装驱动了，于是尝试安装了 Linux 的共享打印服务 CUPS。&lt;/p></description></item><item><title>如何为 Hugo 静态网站添加搜索功能</title><link>https://www.lfhacks.com/tech/dynamic-content-on-static-site-1/</link><pubDate>Sat, 11 Nov 2023 21:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/dynamic-content-on-static-site-1/</guid><description>&lt;p>我的网站使用 &lt;a href="https://gohugo.io/">Hugo&lt;/a> 编译静态页面。在此基础上，支持了搜索和评论等动态内容。我打算分两篇文章介绍具体的实现方法，分享给读者。&lt;/p></description></item><item><title>解决 CSV 文件的第一列不能解析</title><link>https://www.lfhacks.com/tech/unable-to-unmarshal-first-column-of-csv/</link><pubDate>Wed, 25 Oct 2023 20:17:32 +0800</pubDate><guid>https://www.lfhacks.com/tech/unable-to-unmarshal-first-column-of-csv/</guid><description>&lt;p>用 Python 或者 go 语言解析 CSV 文件的时候，有时候会遇到不能解析出第一列的情况，尤其是当这个CSV文件来自 Excel的时候，容易出现这种现象。本文试着解决这个问题。&lt;/p></description></item><item><title>亚马逊云科技产品免费试用攻略(1) - 注册账户</title><link>https://www.lfhacks.com/tech/aws-review/</link><pubDate>Thu, 05 Oct 2023 22:43:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/aws-review/</guid><description>&lt;p>假期试用了 &lt;a href="https://www.amazonaws.cn?sc_channel=seo&amp;sc_campaign=blog0912">亚马逊云科技&lt;/a> 的一些产品，有一些感受和心得，于是打算把试用的过程记录下来，方便读者参考。&lt;/p></description></item><item><title>第二幕 Atma 的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-ii-atma/</link><pubDate>Sat, 02 Sep 2023 00:30:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-ii-atma/</guid><description>&lt;p>第二幕 Atma 的闲聊语音&lt;/p></description></item><item><title>第二幕野蛮人的语音</title><link>https://www.lfhacks.com/game/diablo-act-ii-barbarian/</link><pubDate>Sat, 02 Sep 2023 00:15:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-ii-barbarian/</guid><description>&lt;p>第二幕 野蛮人的语音&lt;/p></description></item><item><title>古入声和普通话平声对照</title><link>https://www.lfhacks.com/grow/rusheng/</link><pubDate>Fri, 01 Sep 2023 16:21:11 +0800</pubDate><guid>https://www.lfhacks.com/grow/rusheng/</guid><description>&lt;p>入声是古代汉语的一种声调。今天，部分方言中仍旧保留，但是普通话和一些方言中已不复存在，为操这些母语的诗词格律爱好者带来麻烦。本文试着列出古入声和普通话平声的对照表。&lt;/p></description></item><item><title>第一幕的背景音乐</title><link>https://www.lfhacks.com/game/diablo-act-i-music/</link><pubDate>Sat, 26 Aug 2023 15:45:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-music/</guid><description>&lt;p>第一幕的背景音乐&lt;/p></description></item><item><title>第二幕亚马逊的语音</title><link>https://www.lfhacks.com/game/diablo-act-ii-amazon/</link><pubDate>Fri, 25 Aug 2023 23:26:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-ii-amazon/</guid><description>&lt;p>第二幕 亚马逊的语音&lt;/p></description></item><item><title>第一幕的亚马逊的语音</title><link>https://www.lfhacks.com/game/diablo-act-i-amazon/</link><pubDate>Fri, 25 Aug 2023 23:26:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-amazon/</guid><description>&lt;p>第一幕的亚马逊语音&lt;/p></description></item><item><title>第一幕的野蛮人的语音</title><link>https://www.lfhacks.com/game/diablo-act-i-barbarian/</link><pubDate>Fri, 25 Aug 2023 23:26:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-barbarian/</guid><description>&lt;p>第一幕的野蛮人语音，野蛮人没有文化，说的语言比较粗浅简陋。&lt;/p></description></item><item><title>MacOS 的彩蛋：Here's to the crazy ones</title><link>https://www.lfhacks.com/blog/heres-to-the-crazy-ones/</link><pubDate>Fri, 25 Aug 2023 22:16:42 +0800</pubDate><guid>https://www.lfhacks.com/blog/heres-to-the-crazy-ones/</guid><description>&lt;p>MacOS Mojave 的文件预览中有一封信，内容据说是乔布斯 1997 年为苹果公司的一则广告亲自撰写的广告词。这封信作为一个彩蛋，从早期的MacOS延续下来，现在的内容比早期版本多了一些，来看看内容是什么样的。&lt;/p></description></item><item><title>杭州景点的楹联</title><link>https://www.lfhacks.com/blog/couplet-1/</link><pubDate>Sun, 12 Feb 2023 13:16:42 +0800</pubDate><guid>https://www.lfhacks.com/blog/couplet-1/</guid><description>虎跑 智慧照十方，庄严诸法界 大慈念一切，无碍如虚空 为弘一法师从华严经中收集经文得来的一副禅意对联。山西大同华严寺普光明殿也挂着同样一幅对联。 含晖亭 石涧泉</description></item><item><title>adb keycode 大全</title><link>https://www.lfhacks.com/tech/adb-keycodes/</link><pubDate>Tue, 29 Nov 2022 20:43:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/adb-keycodes/</guid><description>&lt;p>这里列出 adb 的 input keyevent 中使用的 keycode 大全&lt;/p></description></item><item><title>Scikit-learn 学习笔记（0）名词术语</title><link>https://www.lfhacks.com/tech/scikit-learn-0/</link><pubDate>Mon, 05 Sep 2022 16:50:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/scikit-learn-0/</guid><description>&lt;p>这个系列是我通过阅读 Scikit-learn 的文档，结合自己的理解和掌握的知识，重新把文档描述出来。希望能加深自己的理解，希望能帮到有需要的人。&lt;/p></description></item><item><title>Scikit-learn 学习笔记（3）监督学习的例子</title><link>https://www.lfhacks.com/tech/scikit-learn-3/</link><pubDate>Thu, 04 Aug 2022 16:50:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/scikit-learn-3/</guid><description>&lt;p>这个系列是我通过阅读 Scikit-learn 的文档，结合自己的理解和掌握的知识，重新把文档描述出来。希望能加深自己的理解，希望能帮到有需要的人。&lt;/p></description></item><item><title>SQLite 文档的学习笔记（1）长期支持计划</title><link>https://www.lfhacks.com/tech/sqlite-long-term-support/</link><pubDate>Thu, 04 Aug 2022 16:50:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/sqlite-long-term-support/</guid><description>&lt;p>前段时间偶然用了 sqlite，在阅读了文档后，感到 sqlite 背后是一个严谨、负责、专业的团队。通过阅读这些文档能学习到不少专业知识和精神。&lt;/p></description></item><item><title>SQLite 文档的学习笔记（2）测试方法</title><link>https://www.lfhacks.com/tech/how-sqlite-is-tested/</link><pubDate>Thu, 04 Aug 2022 16:50:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/how-sqlite-is-tested/</guid><description>&lt;p>在 &lt;a href="https://www.lfhacks.com/tech/sqlite-long-term-support/">这篇文章&lt;/a> 里，提到了 SQLite 采用了航空级别的测试过程。可惜这些文档的中文版，看起来是使用机器翻译的。我在这里给出一份自己翻译的中文版。&lt;/p></description></item><item><title>Scikit-learn 学习笔记（1）统计推断</title><link>https://www.lfhacks.com/tech/scikit-learn-1/</link><pubDate>Thu, 04 Aug 2022 13:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/scikit-learn-1/</guid><description>&lt;p>这个系列是我通过阅读 Scikit-learn 的文档，结合自己的理解和掌握的知识，重新把文档描述出来。希望能加深自己的理解，希望能帮到有需要的人。&lt;/p></description></item><item><title>Scikit-learn 学习笔记（2）数据集</title><link>https://www.lfhacks.com/tech/scikit-learn-2/</link><pubDate>Thu, 04 Aug 2022 13:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/scikit-learn-2/</guid><description>&lt;p>这个系列是我通过阅读 Scikit-learn 的文档，结合自己的理解和掌握的知识，重新把文档描述出来。希望能加深自己的理解，希望能帮到有需要的人。&lt;/p></description></item><item><title>Ansible 如何检查一个程序的版本</title><link>https://www.lfhacks.com/tech/ansible-check-version/</link><pubDate>Wed, 08 Jun 2022 16:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-check-version/</guid><description>&lt;p>Ansible 如何检查程序输出的版本信息&lt;/p></description></item><item><title>Ansible 如何检查一个文件夹是否存在</title><link>https://www.lfhacks.com/tech/ansible-check-directory-exists/</link><pubDate>Tue, 07 Jun 2022 16:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-check-directory-exists/</guid><description>&lt;p>Ansible 如何检查一个文件夹是否存在&lt;/p></description></item><item><title>pip 配置文件详解</title><link>https://www.lfhacks.com/tech/python-pip-config/</link><pubDate>Thu, 02 Jun 2022 11:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-pip-config/</guid><description>&lt;p>&lt;code>pip&lt;/code> 的配置文件 &lt;code>pip.conf&lt;/code> 用来规定 &lt;code>pip&lt;/code> 的行为，有哪些实用的配置项？配置文件一般放在什么地方生效？ 本文简单介绍一下。&lt;/p></description></item><item><title>Ansible 如何检查一个URL是否正常</title><link>https://www.lfhacks.com/tech/ansible-check-url/</link><pubDate>Tue, 31 May 2022 18:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-check-url/</guid><description>&lt;p>Ansible 如何针对 URL 做健康检查，确保是正常服务的？&lt;/p></description></item><item><title>Ansible 如何修改 iptables 规则</title><link>https://www.lfhacks.com/tech/ansible-iptables/</link><pubDate>Tue, 31 May 2022 17:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-iptables/</guid><description>&lt;p>Ansible 如何修改 iptables？&lt;/p></description></item><item><title>Ansible 指定 playbook 运行的主机</title><link>https://www.lfhacks.com/tech/ansible-playbook-host/</link><pubDate>Mon, 30 May 2022 09:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-playbook-host/</guid><description>&lt;p>Ansible 使用 ansible-playbook 命令来运行指定的 playbook，但是如何指定个别主机运行一个 playbook？&lt;/p></description></item><item><title>Ansible 如何清空文件夹</title><link>https://www.lfhacks.com/tech/ansible-clear-a-directory/</link><pubDate>Sun, 29 May 2022 21:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-clear-a-directory/</guid><description>&lt;p>Ansible 用于在远程主机上执行命令，如果想清除某个文件夹下的内容，该怎么配置 playbook？&lt;/p></description></item><item><title>Ansible 如何在本机执行命令</title><link>https://www.lfhacks.com/tech/ansible-local-connection/</link><pubDate>Sat, 28 May 2022 20:07:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/ansible-local-connection/</guid><description>&lt;p>Ansible 用于在远程主机上执行命令，那么如果想在控制机上执行命令，该怎么配置？&lt;/p></description></item><item><title>Python 中 Defaultdict 的理解</title><link>https://www.lfhacks.com/tech/python-defaultdict/</link><pubDate>Fri, 14 Jan 2022 19:43:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-defaultdict/</guid><description>&lt;p>&lt;code>collections.defaultdict&lt;/code> 是 &lt;code>dict.setdefault()&lt;/code> 基础上发展而来的。&lt;/p></description></item><item><title>《伊索寓言》电子书</title><link>https://www.lfhacks.com/grow/aesop-fables/</link><pubDate>Fri, 14 Jan 2022 14:47:59 +0800</pubDate><guid>https://www.lfhacks.com/grow/aesop-fables/</guid><description>下载 《伊索寓言》电子书: azw3 格式</description></item><item><title>菲伯尔钢琴伴奏：第二册</title><link>https://www.lfhacks.com/grow/faber2/</link><pubDate>Thu, 06 Jan 2022 22:48:32 +0800</pubDate><guid>https://www.lfhacks.com/grow/faber2/</guid><description>标准音（A=440Hz） 萤火虫 练习速度 表演速度 小河 练习速度 表演速度 航行在太阳下 练习速度 表演速度 摩天轮 练习速度 表演速度 小蚱蜢 练习速度 表演速度 神出鬼没的小</description></item><item><title>Python 的 Keyword-Only Arguments 理解</title><link>https://www.lfhacks.com/tech/python-keyword-only-arguments/</link><pubDate>Wed, 05 Jan 2022 10:50:00 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-keyword-only-arguments/</guid><description>&lt;p>&lt;a href="https://www.python.org/dev/peps/pep-3102/">PEP-3102&lt;/a> 建议了 Keyword-Only Arguments，并且在 Python3 中实现。本文试着在 &lt;a href="https://www.lfhacks.com/tech/python-function-arguments/#posvarargs">Python 函数参数的基本理解&lt;/a> 基础上，更深入的理解 Keyword-Only Arguments.&lt;/p></description></item><item><title>Python 的 函数参数处理机制</title><link>https://www.lfhacks.com/tech/python-function-arguments/</link><pubDate>Wed, 05 Jan 2022 10:50:00 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-function-arguments/</guid><description>&lt;p>本文综述 Python 函数的参数类型和捕获过程。parameter 的作用是捕获 argument，又叫做 参数处理机制（parameter handling mechanism），本文的主题围绕这一个捕获过程。&lt;/p></description></item><item><title>瓦瑞夫在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-warriv-gossip/</link><pubDate>Mon, 03 Jan 2022 20:11:51 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-warriv-gossip/</guid><description>&lt;p>瓦瑞夫的观点比较中立。&lt;/p></description></item><item><title>瓦瑞夫在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-warriv-quest/</link><pubDate>Mon, 03 Jan 2022 20:02:58 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-warriv-quest/</guid><description>&lt;p>瓦瑞夫走南闯北，讲话都体现着谚语和智慧。&lt;/p></description></item><item><title>第一幕的女巫语音</title><link>https://www.lfhacks.com/game/diablo-act-i-sorceress/</link><pubDate>Mon, 03 Jan 2022 00:03:40 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-sorceress/</guid><description>&lt;p>第一幕的女巫语音&lt;/p></description></item><item><title>《Fluent Python》 读书笔记：文本和字节序列</title><link>https://www.lfhacks.com/tech/python-fluent-text-byte/</link><pubDate>Fri, 31 Dec 2021 16:38:20 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-fluent-text-byte/</guid><description>&lt;p>Python2 的噩梦：UnicodeDecodeError: &amp;lsquo;gbk&amp;rsquo; codec can&amp;rsquo;t decode byte 0xxx in position 0: illegal multibyte sequence&lt;/p></description></item><item><title>第一幕的罗格语音</title><link>https://www.lfhacks.com/game/diablo-act-i-rogue/</link><pubDate>Sat, 25 Dec 2021 20:19:21 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-rogue/</guid><description>&lt;p>第一幕的罗格语音&lt;/p></description></item><item><title>第一幕的圣骑士语音</title><link>https://www.lfhacks.com/game/diablo-act-i-paladin/</link><pubDate>Thu, 16 Dec 2021 01:33:35 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-paladin/</guid><description>&lt;p>第一幕的圣骑士语音&lt;/p></description></item><item><title>第一幕的男巫语音</title><link>https://www.lfhacks.com/game/diablo-act-i-necromancer/</link><pubDate>Wed, 15 Dec 2021 02:09:41 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-necromancer/</guid><description>&lt;p>男巫的语音&lt;/p></description></item><item><title>第一幕的旁白</title><link>https://www.lfhacks.com/game/diablo-act-i-narrator/</link><pubDate>Wed, 15 Dec 2021 02:02:14 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-narrator/</guid><description>&lt;p>存在于 stony field 的一本书，名叫 Moldy Tome&lt;/p></description></item><item><title>第一幕的恶魔</title><link>https://www.lfhacks.com/game/diablo-act-i-monsters/</link><pubDate>Wed, 15 Dec 2021 01:45:35 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-monsters/</guid><description>&lt;p>第一幕的恶魔&lt;/p></description></item><item><title>Python 中 Element Tree 的理解</title><link>https://www.lfhacks.com/tech/python-element-tree/</link><pubDate>Mon, 13 Dec 2021 15:31:54 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-element-tree/</guid><description>&lt;p>ElementTree XML 模块用来处理 XML 格式文档。包括读取、解析、修改、生成等等。&lt;/p></description></item><item><title>《Fluent Python》 读书笔记：字典和集合</title><link>https://www.lfhacks.com/tech/python-fluent-dict-set/</link><pubDate>Mon, 13 Dec 2021 15:07:20 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-fluent-dict-set/</guid><description>&lt;p>dict 类型是 Python 语言的基石。&lt;/p></description></item><item><title>从 nginx 迁移到 caddy</title><link>https://www.lfhacks.com/tech/migrating-caddy/</link><pubDate>Sat, 11 Dec 2021 22:23:43 +0800</pubDate><guid>https://www.lfhacks.com/tech/migrating-caddy/</guid><description>&lt;p>想尝试一下 HTTP3/QUIC 协议，但是 nginx 没有原生支持 QUIC，我把小站的代理从 nginx 更换成了 caddy，这里记录一下 caddy 的配置过程。&lt;/p></description></item><item><title>《Fluent Python》 读书笔记：数据模型</title><link>https://www.lfhacks.com/tech/python-fluent-data-model/</link><pubDate>Sun, 05 Dec 2021 23:07:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-fluent-data-model/</guid><description>&lt;p>开篇第一句：python最好的品质是一致性。&lt;/p></description></item><item><title>《Fluent Python》 读书笔记：序列</title><link>https://www.lfhacks.com/tech/python-fluent-sequence/</link><pubDate>Sun, 05 Dec 2021 23:07:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-fluent-sequence/</guid><description>&lt;p>本章主要讨论序列（sequence）&lt;/p></description></item><item><title>Python 中 NamedTuple 的理解</title><link>https://www.lfhacks.com/tech/python-namedtuple/</link><pubDate>Sat, 04 Dec 2021 15:32:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-namedtuple/</guid><description>&lt;p>namedtuple（具名元组）和与 tuple 通过坐标位置辨认属性相比，可读性更好。&lt;/p></description></item><item><title>卡夏在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-kashya-quest/</link><pubDate>Sat, 27 Nov 2021 19:01:15 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-kashya-quest/</guid><description>&lt;p>卡夏在第一幕的任务提示&lt;/p></description></item><item><title>卡夏在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-kashya-gossips/</link><pubDate>Mon, 08 Nov 2021 21:24:19 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-kashya-gossips/</guid><description>&lt;p>卡夏在第一幕的闲聊&lt;/p></description></item><item><title>吉德在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-gheed-quest/</link><pubDate>Sat, 06 Nov 2021 22:44:23 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-gheed-quest/</guid><description>&lt;p>吉德在第一幕的任务提示&lt;/p></description></item><item><title>吉德在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-gheed-gossips/</link><pubDate>Sat, 06 Nov 2021 20:45:46 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-gheed-gossips/</guid><description>&lt;p>吉德在第一幕的闲聊&lt;/p></description></item><item><title>恰西在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-charsi-quest/</link><pubDate>Fri, 05 Nov 2021 23:03:54 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-charsi-quest/</guid><description>&lt;p>恰西在第一幕的任务提示&lt;/p></description></item><item><title>恰西在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-charsi-gossips/</link><pubDate>Fri, 05 Nov 2021 22:40:12 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-charsi-gossips/</guid><description>&lt;p>恰西在第一幕的闲聊&lt;/p></description></item><item><title>迪卡凯恩在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-cain-quest/</link><pubDate>Fri, 05 Nov 2021 21:41:48 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-cain-quest/</guid><description>&lt;p>迪卡凯恩在第一幕的任务提示&lt;/p></description></item><item><title>迪卡凯恩在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-cain-gossips/</link><pubDate>Fri, 05 Nov 2021 21:34:26 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-cain-gossips/</guid><description>&lt;p>迪卡凯恩在第一幕的闲聊&lt;/p></description></item><item><title>阿卡拉在第一幕的任务提示</title><link>https://www.lfhacks.com/game/diablo-act-i-akara-quest/</link><pubDate>Fri, 05 Nov 2021 20:30:13 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-akara-quest/</guid><description>&lt;p>阿卡拉在第一幕的任务提示&lt;/p></description></item><item><title>阿卡拉在第一幕的闲聊</title><link>https://www.lfhacks.com/game/diablo-act-i-akara-gossips/</link><pubDate>Thu, 04 Nov 2021 21:26:49 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-akara-gossips/</guid><description>&lt;p>阿卡拉在第一幕的闲聊&lt;/p></description></item><item><title>星际争霸1-神族黑暗执政官(红球)语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-darchon/</link><pubDate>Thu, 04 Nov 2021 20:13:49 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-darchon/</guid><description>就绪：We are as one! 闲聊：Must consume. 闲聊：Or oblivion will take us. 闲聊：Adun, save me. 闲聊：Darkness overpowering! 选中：Must have energy! 选中：We hear you. 选中：Thoughts in</description></item><item><title>星际争霸1-神族仲裁者语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-arbiter/</link><pubDate>Thu, 04 Nov 2021 19:53:55 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-arbiter/</guid><description>就绪： Warp field stabilized. 闲聊：We sense a soul in search of answers. 闲聊：Do you seek knowledge of time travel? 闲聊：We’ll take that as a yes. 闲聊：And now for your first lesson. Hahaha. 闲聊：Do you seek knowledge of time travel? 选中：We feel your presence. 选中</description></item><item><title>星际争霸1-神族航空母舰语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-carrier/</link><pubDate>Thu, 04 Nov 2021 19:48:04 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-carrier/</guid><description>就绪： Carrier has arrived! 闲聊：Our enemies are legion! 闲聊：And still you procrastinate!? 闲聊：Command, or you will be relieved! 闲聊：This is not an idle threat! 选中：Instructions. 选中：Your</description></item><item><title>星际争霸1-神族光明执政官(白球)语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-archon/</link><pubDate>Thu, 04 Nov 2021 19:34:15 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-archon/</guid><description>就绪： The merging is complete! 施展技能 闲聊：It all looks so different on this side. 闲聊：Break on through! 闲聊：It’s beautiful! 闲聊：They should have sent a poet. 选中：We burn! 选中：We need focus! 选中：Thoras</description></item><item><title>星际争霸1-神族海盗船语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-corsair/</link><pubDate>Sat, 16 Oct 2021 14:11:36 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-corsair/</guid><description>就绪： It is a good day to die! 闲聊：Look at all the pretty lights! 闲聊：I wonder what this button does. 闲聊：（BEEP） I think this was a BIG mistake. 闲聊：（唱歌1） 闲聊：（唱歌2） 闲聊：Zefram Cochrane, is that</description></item><item><title>星际争霸1-神族探测者语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-observer/</link><pubDate>Sat, 16 Oct 2021 14:11:36 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-observer/</guid><description>&lt;p>探测者，俗称小叮当。反隐形用户。&lt;/p></description></item><item><title>星际争霸1-神族黑暗圣堂武士语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-darktemplar/</link><pubDate>Sat, 16 Oct 2021 13:57:14 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-darktemplar/</guid><description>就绪： Adun Toridas! 闲聊：Your taunts are inadvised, Templar. 闲聊：Do not provoke me to violence. 闲聊：You can no more evade my wrath&amp;hellip; 闲聊：..Than you could your own shadow. 选中：Yes? 选中：Zerashk gulida! 选中：I’</description></item><item><title>星际争霸1-虫族基地语音</title><link>https://www.lfhacks.com/game/starcraft-zerg-advisor/</link><pubDate>Fri, 15 Oct 2021 23:47:13 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-zerg-advisor/</guid><description>We require more minerals. We require more vespene gas. Spawn more overlords. Not enough energy. The hive cluster is under attack. Our forces are under attack. Evolution complete. Nuclear launch detected.</description></item><item><title>Python demo 脚本学习 -beer.py</title><link>https://www.lfhacks.com/tech/python-demo-beer/</link><pubDate>Thu, 14 Oct 2021 18:22:41 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-demo-beer/</guid><description>&lt;p>本文是学习 Python 自带脚本第一篇：beer.py，来自一首歌谣。&lt;/p></description></item><item><title>星际争霸1-神族光明圣堂武士语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-templar/</link><pubDate>Thu, 07 Oct 2021 02:39:41 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-templar/</guid><description>就绪： Hasah-hurditum-hari! 施展能量反馈1 施展能量反馈2 移动 闲聊：Your thoughts betray you. 闲聊：I see you have an appetite for destruction. appetite for destruction 是 Gun ’N Roses 乐队 1987 年的专辑，是史上销量最高的摇滚专辑之一。 闲聊：</description></item><item><title>星际争霸1-神族龙骑兵语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-dragoon/</link><pubDate>Tue, 05 Oct 2021 23:03:18 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-dragoon/</guid><description>就绪：I have returned. 闲聊：Unauthorized transmission. 闲聊：Incorrect protocol. 闲聊：Drop your weapon. You have 15 seconds to comply. 闲聊：5,4,3,2,1 （fire） 选中：Rece</description></item><item><title>星际争霸1-神族狂热者语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-zealot/</link><pubDate>Tue, 05 Oct 2021 22:40:26 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-zealot/</guid><description>就绪：My life for Aiur! 进攻 进攻2 使用 psionic blade 打击声 闲聊：En Taro Adun! 闲聊：All for the Empire! 闲聊：Doom to all who threaten the homeworld. 发怒（rage） 选中：What now calls? 选中：Issah’</description></item><item><title>星际争霸1-人族SCV语音</title><link>https://www.lfhacks.com/game/starcraft-terran-scv/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-scv/</guid><description>&lt;p>Space Consturction Vehicle&lt;/p></description></item><item><title>星际争霸1-人族大机器人语音</title><link>https://www.lfhacks.com/game/starcraft-terran-goliath/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-goliath/</guid><description>就绪： Goliath online. 闲聊：MilSpec ED-209 online. 闲聊：Checklist protocol initiated. 闲聊：Primary? level one diagnostic&amp;hellip; 闲聊：USDA Selected. 闲聊：FDIC approved. 闲聊：Checklist Completed. SOB.</description></item><item><title>星际争霸1-人族鬼兵语音</title><link>https://www.lfhacks.com/game/starcraft-terran-ghost/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-ghost/</guid><description>就绪：Somebody called for an exterminator? 激光瞄准 锁定技 闲聊：You called down the thunder. 闲聊：Now reap the whirlwind. 闲聊：Keep it up! I dare ya. 闲聊：I’m about to overload my aggression inhibitors. 选中：Ghost reporting. 选</description></item><item><title>星际争霸1-人族火焰兵语音</title><link>https://www.lfhacks.com/game/starcraft-terran-firebat/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-firebat/</guid><description>就绪: Need a light? 发射火焰 发射火焰2 闲聊：Is something burning? 闲聊：Haha, that’s what I thought. 闲聊：I love the smell of napalm. 闲聊： Nothing like a good smoke! 闲聊：Are you trying to get invited to my next barbecue? 闲聊：G</description></item><item><title>星际争霸1-人族机枪兵语音</title><link>https://www.lfhacks.com/game/starcraft-terran-marine/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-marine/</guid><description>就绪: You want a piece of me, boy? 闲聊：We gotta move. 闲聊：Are you gonna give me orders? 闲聊：Oh my god! He’s whacked! 闲聊： I vote we frag this commander. 闲聊：How do I get out of this chicken-ish(BEEP) outfit? 闲聊：If it weren’</description></item><item><title>星际争霸1-人族基地语音</title><link>https://www.lfhacks.com/game/starcraft-terran-advisor/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-advisor/</guid><description>Not Enough Minerals Insufficient Vespene Gas Additional Supply Depots Required Landing Sequence Interrupted Unacceptable landing zone Not enough energy Base is under attack Your forces are under attack Research complete Add-on complete Nuclear launch detected Abandoning auxilorary structure. Upgrade complete. Nuclear missile ready.</description></item><item><title>星际争霸1-人族科学球语音</title><link>https://www.lfhacks.com/game/starcraft-terran-vessel/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-vessel/</guid><description>就绪： Explorer reporting. 技能：EMP 冲击波 技能：辐射 (Irradiate) 技能：防御网 闲聊：I like the cut of your jib! 闲聊：E=MC&amp;hellip;d’oh let me get my notepad. 闲聊：Ah, fusion, eh? I’ll have to remember</description></item><item><title>星际争霸1-人族坦克语音</title><link>https://www.lfhacks.com/game/starcraft-terran-tank/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-tank/</guid><description>&lt;p>坦克带着美国南方口音&lt;/p></description></item><item><title>星际争霸1-人族秃鹫车语音</title><link>https://www.lfhacks.com/game/starcraft-terran-vulture/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-vulture/</guid><description>就绪： All right, bring it on! 技能：地雷发现目标 技能：埋地雷 闲聊：Something you wanted? 闲聊：I don’t have time to f（文明用语）around! 闲聊：You keep pushing it boy. 闲聊</description></item><item><title>星际争霸1-人族瓦格雷语音</title><link>https://www.lfhacks.com/game/starcraft-terran-valkyrie/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-valkyrie/</guid><description>&lt;p>瓦格雷（女武神），德语口音&lt;/p></description></item><item><title>星际争霸1-人族医疗兵语音</title><link>https://www.lfhacks.com/game/starcraft-terran-medic/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-medic/</guid><description>就绪: Prepped and ready! 闲聊： I’ve already checked you out commander. 闲聊：You want another physical? 闲聊：Turn your head and cough. 闲聊： Ready for your sponge bath? 闲聊：His EKG is flatlining! Get me a defib stat! 闲聊：Clear! 闲聊：He’</description></item><item><title>星际争霸1-人族隐形战机语音</title><link>https://www.lfhacks.com/game/starcraft-terran-wraith/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-wraith/</guid><description>就绪： Wraith awaiting launch orders. 闲聊：Last transmission breakin’ up&amp;hellip;come back&amp;hellip; 闲聊：I’m just curious&amp;hellip;why am I so good? 闲聊：I go get me one of these. 闲聊：You know who the best starfighter in the fleet is? 闲聊：Yours truly. 闲聊：E</description></item><item><title>星际争霸1-人族运输机语音</title><link>https://www.lfhacks.com/game/starcraft-terran-dropship/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-dropship/</guid><description>就绪：Can I take your order? 闲聊：When removing your overhead luggage, please be careful. 闲聊： In case of a water landing, you may be used as a flotation device. 闲聊： To hurl chunks, please use the vomit bag in front of you. 闲聊：Keep your arms and legs inside until this ride comes to a full</description></item><item><title>星际争霸1-人族战斗巡洋舰语音</title><link>https://www.lfhacks.com/game/starcraft-terran-battlecruiser/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-terran-battlecruiser/</guid><description>&lt;p>战斗巡洋舰的口音有一些大舌头。&lt;/p></description></item><item><title>星际争霸1-神族基地语音</title><link>https://www.lfhacks.com/game/starcraft-protoss-advisor/</link><pubDate>Tue, 05 Oct 2021 21:51:45 +0800</pubDate><guid>https://www.lfhacks.com/game/starcraft-protoss-advisor/</guid><description>You’ve not enough minerals You require more vespene gas. You must construct additional pylons. Not enough energy. We are under attack! Your warriors have engaged the enemy. Research complete. Nuclear launch detected. Upgrade complete.</description></item><item><title>Windows 版 vim 设定界面语言为英语</title><link>https://www.lfhacks.com/tech/setting-language-vim-windows/</link><pubDate>Tue, 28 Sep 2021 09:37:20 +0800</pubDate><guid>https://www.lfhacks.com/tech/setting-language-vim-windows/</guid><description>&lt;p>Windows 版 vim 安装后，界面语言都显示为中文，看着非常不习惯，看来是作者用力过度了，替用户考虑了本地语言的界面。本文介绍如何将windows 的 vim 的界面改回英文。&lt;/p></description></item><item><title>如何配置docker通过代理服务器拉取镜像</title><link>https://www.lfhacks.com/tech/pull-docker-images-behind-proxy/</link><pubDate>Wed, 22 Sep 2021 12:17:02 +0800</pubDate><guid>https://www.lfhacks.com/tech/pull-docker-images-behind-proxy/</guid><description>&lt;p>如果 docker 所在的环境是通过代理服务器和互联网连通的，直接拉取镜像会遭遇失败。本文结合已有文档，介绍如何配置代理服务器能使docker正常拉取镜像。&lt;/p></description></item><item><title>Powershell 修改提示符的文字内容和颜色</title><link>https://www.lfhacks.com/tech/powershell-prompt-customization/</link><pubDate>Tue, 24 Aug 2021 19:12:38 +0800</pubDate><guid>https://www.lfhacks.com/tech/powershell-prompt-customization/</guid><description>&lt;p>PowerShell 自带的提示符不够美观，影响工作效率。本文介绍一种自定义 PowerShell 命令提示符的方法。&lt;/p></description></item><item><title>Powershell 在提示符中显示 git 分支信息</title><link>https://www.lfhacks.com/tech/powershell-prompt-git-branch/</link><pubDate>Tue, 24 Aug 2021 19:12:38 +0800</pubDate><guid>https://www.lfhacks.com/tech/powershell-prompt-git-branch/</guid><description>&lt;p>PowerShell 自带的提示符不够美观，影响工作效率。本文介绍一种自定义 PowerShell 命令提示符中填入 git 分支的方法。&lt;/p></description></item><item><title>Python 中的 sequence 类型</title><link>https://www.lfhacks.com/tech/python-sequence/</link><pubDate>Sat, 12 Jun 2021 23:33:18 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-sequence/</guid><description>&lt;p>Python 中的 sequence 类型是几种数据类型的总称。这些类型的共同点是集合中的元素是有序排列的。本文详细介绍 sequence 中各种类型的共同点。&lt;/p></description></item><item><title>博朗耳温枪 6500 不开机维修方法</title><link>https://www.lfhacks.com/blog/thermometer-repair/</link><pubDate>Wed, 02 Jun 2021 10:44:40 +0800</pubDate><guid>https://www.lfhacks.com/blog/thermometer-repair/</guid><description>&lt;p>博朗耳温枪坏了，屏幕不显示。我试着自己打开修了下。&lt;/p></description></item><item><title>驴和骡子的对话</title><link>https://www.lfhacks.com/grow/donkey-mule/</link><pubDate>Tue, 25 May 2021 01:53:51 +0800</pubDate><guid>https://www.lfhacks.com/grow/donkey-mule/</guid><description>题面 驴和骡子驮运货物。驴发牢骚说：&amp;ldquo;太重啦！&amp;ldquo;骡子回答道：&amp;ldquo;你说什么，太重？如果我帮你驮一袋，我的货物都有你的两倍</description></item><item><title>时间之神（Chronus）的回答</title><link>https://www.lfhacks.com/grow/chronus/</link><pubDate>Tue, 25 May 2021 01:53:51 +0800</pubDate><guid>https://www.lfhacks.com/grow/chronus/</guid><description>题面 有人问掌管时间之神 Chronus： &amp;ldquo;预言家 Chronus 先生，今天过去了多少时间呢？&amp;rdquo; 他回答道：&amp;ldquo;白天未过去的时间是已经过</description></item><item><title>寻找最初的数</title><link>https://www.lfhacks.com/grow/orignal-number/</link><pubDate>Tue, 25 May 2021 01:53:51 +0800</pubDate><guid>https://www.lfhacks.com/grow/orignal-number/</guid><description>题面 有一个数，把它与5相乘，然后从中减去所得积的 $\dfrac{1}{3}$，剩下的数再用 10 除，所得之商加上最初数的 $\dfrac{1}{2}$、$\</description></item><item><title>Python 中的变量赋值</title><link>https://www.lfhacks.com/tech/identifier-assignment-in-python/</link><pubDate>Mon, 24 May 2021 11:12:07 +0800</pubDate><guid>https://www.lfhacks.com/tech/identifier-assignment-in-python/</guid><description>本文简单介绍 Python 中的变量赋值底层原理。 基本赋值语句 Python 开发中最基本和最常用的命令就是变量赋值语句： age = 24 给人的感觉就是代数中的概念：名称为 age 的变量，其值被</description></item><item><title>毕达哥拉斯的学生</title><link>https://www.lfhacks.com/grow/pythagoras-students/</link><pubDate>Mon, 24 May 2021 10:53:51 +0800</pubDate><guid>https://www.lfhacks.com/grow/pythagoras-students/</guid><description>题面 有人问著名的毕达哥拉斯：&amp;ldquo;毕达哥拉斯先生，来您这里听课的学生有多少人呢？&amp;rdquo; 毕达哥拉斯答道：&amp;ldquo;在我的学生中，$\</description></item><item><title>施舍硬币</title><link>https://www.lfhacks.com/grow/charity/</link><pubDate>Sun, 23 May 2021 22:47:59 +0800</pubDate><guid>https://www.lfhacks.com/grow/charity/</guid><description>题面 某寺院来了四位施主。第二位施主施舍的硬币数是第一位的 2 倍；第三位施主为第二位的 3 倍；第四位施主为第三位的 4 倍。四位施主一共施舍硬币 132 枚。 那么，第一</description></item><item><title>各类食品中的嘌呤含量表</title><link>https://www.lfhacks.com/blog/purine/</link><pubDate>Thu, 13 May 2021 10:32:13 +0800</pubDate><guid>https://www.lfhacks.com/blog/purine/</guid><description>嘌呤含量等级 含量单位为每100g食物中所含嘌呤的毫克量。嘌呤含量等级可分为： 红色 ：&amp;gt; 150 mg/100g 不宜选用 黄色 ：50 - 150 mg/100g 急性期不宜选用 绿色 ：&amp;lt; 50 mg/100g</description></item><item><title>喷泉取水问题（工程问题和相遇问题）</title><link>https://www.lfhacks.com/grow/spring/</link><pubDate>Thu, 22 Apr 2021 15:45:43 +0800</pubDate><guid>https://www.lfhacks.com/grow/spring/</guid><description>题面 有四个喷泉。 从第一个泉取一杯水，要用一天； 从第二个泉取一杯水，要用两天； 从第三个泉取一杯水，要用三天； 从第四个泉取一杯水，要用四天。 问：如果从四个</description></item><item><title>十以内减法试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-6/</link><pubDate>Wed, 21 Apr 2021 15:46:10 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-6/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 试卷部分</description></item><item><title>大户型 wifi 组网方式对比+一个案例</title><link>https://www.lfhacks.com/blog/wifi-networking/</link><pubDate>Tue, 20 Apr 2021 14:38:09 +0800</pubDate><guid>https://www.lfhacks.com/blog/wifi-networking/</guid><description>大户型里 wifi 组网遇到的困难 这里粗略的把100平以下的划分为小户型，比如最常见的89方户型。在小户型里，wifi 的覆盖有两个优势： 面积小，wifi 信号传播</description></item><item><title>凑十法练习试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-5/</link><pubDate>Tue, 13 Apr 2021 01:49:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-5/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 试卷部分</description></item><item><title>二十以内加法试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-2/</link><pubDate>Tue, 13 Apr 2021 01:49:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-2/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 更多其他试卷见这篇文章： 试卷部分</description></item><item><title>九九乘法表试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-3/</link><pubDate>Tue, 13 Apr 2021 01:49:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-3/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 试卷部分</description></item><item><title>两位数加法试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-4/</link><pubDate>Tue, 13 Apr 2021 01:49:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-4/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 试卷部分</description></item><item><title>十以内加法试卷</title><link>https://www.lfhacks.com/grow/quiz-sheet-1/</link><pubDate>Tue, 13 Apr 2021 01:49:36 +0800</pubDate><guid>https://www.lfhacks.com/grow/quiz-sheet-1/</guid><description>介绍 使用方法：点击右侧&amp;quot;打印试卷&amp;quot;按钮，即可唤出打印机设置页面。 试卷部分</description></item><item><title>勒洛三角形的互动演示</title><link>https://www.lfhacks.com/t/reuleaux-triangle/</link><pubDate>Fri, 19 Mar 2021 13:20:05 +0800</pubDate><guid>https://www.lfhacks.com/t/reuleaux-triangle/</guid><description>在 为什么阴井盖是圆的？ 这篇文章中提到，除了圆形以外，勒洛三角形状的阴井盖也不会掉入下水道。 绘制方法1 首先我们来看如何作出一个 勒洛三角形的互动演示，其实</description></item><item><title>加法的演示计算工具 (数轴版)</title><link>https://www.lfhacks.com/t/plus-demo-2/</link><pubDate>Fri, 12 Mar 2021 09:55:48 +0800</pubDate><guid>https://www.lfhacks.com/t/plus-demo-2/</guid><description>使用方法 点击第一行数字，作为左侧的加数，点击第二行数字，作为右侧的加数，然后观察。 互动演示 （如果看不到演示内容，请使用现代浏览器，比如 Chrome 等） 方块版 此外</description></item><item><title>加法的演示计算工具（方块版）</title><link>https://www.lfhacks.com/t/plus-demo/</link><pubDate>Fri, 12 Mar 2021 09:55:48 +0800</pubDate><guid>https://www.lfhacks.com/t/plus-demo/</guid><description>使用方法 点击第一行数字，作为左侧的加数，点击第二行数字，作为右侧的加数，然后观察。 互动演示 （如果看不到演示内容，请使用现代浏览器，比如 Chrome 等） 数轴版 此外</description></item><item><title>三种计数法的数字演示</title><link>https://www.lfhacks.com/t/digit-symbols/</link><pubDate>Fri, 05 Mar 2021 02:17:48 +0800</pubDate><guid>https://www.lfhacks.com/t/digit-symbols/</guid><description>&lt;p>数字是计数过程中，抽象出的符号。不同文化下，数字符号的形式、表示法各不相同，本文演示阿拉伯数字、中文和罗马数字的表示法。&lt;/p></description></item><item><title>使用 docker 备份 mysql 数据库内容</title><link>https://www.lfhacks.com/tech/docker-dump-mysql/</link><pubDate>Fri, 05 Feb 2021 15:13:29 +0800</pubDate><guid>https://www.lfhacks.com/tech/docker-dump-mysql/</guid><description>&lt;p>假设你有一个数据库，需要在另一台主机上定时启动备份任务，但是这台主机上没有 mysqldump 命令，我们可以启动一个 mysql 镜像来备份。&lt;/p></description></item><item><title>Diablo 海报收藏</title><link>https://www.lfhacks.com/game/diablo-poster/</link><pubDate>Sat, 02 Jan 2021 01:01:47 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-poster/</guid><description>转载自百度贴吧：https://tieba.baidu.com/p/3720138293</description></item><item><title>Diablo 截图收藏</title><link>https://www.lfhacks.com/game/diablo/</link><pubDate>Sat, 02 Jan 2021 00:57:58 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo/</guid><description>&lt;p>Diablo 是我曾经最喜欢、最投入的游戏。虽然时代已经过去，但是留下了深刻的印象。&lt;/p></description></item><item><title>Diablo 第二幕 鲁 · 高因</title><link>https://www.lfhacks.com/game/diablo-act-ii/</link><pubDate>Sat, 02 Jan 2021 00:03:19 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-ii/</guid><description/></item><item><title>Diablo 第一幕 罗格营地</title><link>https://www.lfhacks.com/game/diablo-act-i-rogue-encampment/</link><pubDate>Sat, 02 Jan 2021 00:03:19 +0800</pubDate><guid>https://www.lfhacks.com/game/diablo-act-i-rogue-encampment/</guid><description/></item><item><title>用 Jenkins 制作文件上传入口</title><link>https://www.lfhacks.com/tech/jenkins-upload-portal/</link><pubDate>Mon, 21 Dec 2020 14:24:01 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-upload-portal/</guid><description>&lt;p>当我们希望上传文件到服务器上时，临时写一个上传页面是很麻烦的。好在 Jenkins 提供了文件参数控制器，方便我们上传文件到服务器上，并做进一步处理。本文详细介绍具体步骤。&lt;/p></description></item><item><title>电影《朗读者》（2008）中的细节</title><link>https://www.lfhacks.com/blog/the-reader/</link><pubDate>Fri, 18 Dec 2020 23:16:15 +0800</pubDate><guid>https://www.lfhacks.com/blog/the-reader/</guid><description>家门口的小路 1958年的 Neustadt 1976年的 Neustadt 浪漫回忆的教堂 那年夏天 电影结尾 纳粹的伏笔 二战期间的邮票 玻璃上的窗花说明这间房屋之前是犹太人的居所 原来他们是同一</description></item><item><title>向 Elastic Search 中批量导入 Excel</title><link>https://www.lfhacks.com/tech/elasticsearch-bulk-from-excel/</link><pubDate>Sat, 12 Dec 2020 16:21:15 +0800</pubDate><guid>https://www.lfhacks.com/tech/elasticsearch-bulk-from-excel/</guid><description>&lt;p>ES 批量（bulk）导入文件，需要一行指令一行数据穿插，如何从Excel文件生成 ES 的批量导入文件？用 Python 可以很简单的实现。&lt;/p></description></item><item><title>监控 Jenkins agent 是否存活的脚本</title><link>https://www.lfhacks.com/tech/jenkins-agent-monitoring/</link><pubDate>Mon, 07 Dec 2020 13:28:27 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-agent-monitoring/</guid><description>&lt;p>Jenkins 的 agent 是运行在 slave 节点上的一个 java进程，用于接收 master 的指令，并执行动作。agent 一旦停止运行，Jenkins 上的所有指令都不能正常执行。所以会需要一个定时任务，检查 agent 是否存活。&lt;/p></description></item><item><title>Jenkins Pipeline 实现 http 请求并解析响应</title><link>https://www.lfhacks.com/tech/jenkins-httprequest/</link><pubDate>Mon, 23 Nov 2020 18:44:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-httprequest/</guid><description>&lt;p>Jenkins Pipeline 中为了要从某些接口中获得响应，并做解析，需要一系列语法组合。本文做个简单介绍。&lt;/p></description></item><item><title>Cypress 和 Seleium、Puppeteer、TestCafe 使用对比</title><link>https://www.lfhacks.com/tech/review-cypress-selenium-puppeteer-testcafe/</link><pubDate>Sun, 27 Sep 2020 09:43:32 +0800</pubDate><guid>https://www.lfhacks.com/tech/review-cypress-selenium-puppeteer-testcafe/</guid><description>&lt;p>同为 Web UI 的测试框架，本文将 Selenium 、TestCafe 和 Puppeteer 与 Cypress 作了一番对比。&lt;/p></description></item><item><title>Cypress 每次测试后注销的解决方法</title><link>https://www.lfhacks.com/tech/cypress-logout-between-tests/</link><pubDate>Wed, 23 Sep 2020 16:24:03 +0800</pubDate><guid>https://www.lfhacks.com/tech/cypress-logout-between-tests/</guid><description>&lt;p>Cypress 在默认情况下，每次测试结束后将清除程序的状态。这样做的副作用是，如果测试中一个用户通过登录行为进入了登录态，那么这个登录态会被取消，用户回到未登录状态。如果要进行另一个测试，就需要重新登录。&lt;/p></description></item><item><title>电影《东方快车谋杀案》（2017）中的细节</title><link>https://www.lfhacks.com/blog/orient-express-details/</link><pubDate>Tue, 22 Sep 2020 21:03:38 +0800</pubDate><guid>https://www.lfhacks.com/blog/orient-express-details/</guid><description/></item><item><title>Cypress 的指导思想和最佳实践</title><link>https://www.lfhacks.com/tech/cypress-best-practise/</link><pubDate>Tue, 22 Sep 2020 20:56:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/cypress-best-practise/</guid><description>&lt;p>Cypress 作为全新的 UI 测试框架，不仅提供了便于快速开发的API 和实时观看界面，比 TestCafe 和 Puppeteer 区别的是，它提供了一套与二者不同的方法论，本文试着做一总结。&lt;/p></description></item><item><title>Cypress 下载慢的解决办法</title><link>https://www.lfhacks.com/tech/cypress-download-failure/</link><pubDate>Tue, 15 Sep 2020 11:43:37 +0800</pubDate><guid>https://www.lfhacks.com/tech/cypress-download-failure/</guid><description>安装 Cypress 过程中，经常能遇到下载慢或者下载过程卡死的现象。本文介绍一种解决办法。 常规安装方法 最方便的安装 Cypress 方法是使用 npm，安装命令是： $ npm i cypress ---save-dev 但是这种</description></item><item><title>Jmeter 如何在输出报告隐藏步骤</title><link>https://www.lfhacks.com/tech/jmeter-ignore-steps-from-report/</link><pubDate>Thu, 10 Sep 2020 17:58:00 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-ignore-steps-from-report/</guid><description>&lt;p>在Jmeter 输出的 html 报告中，能看到全部的请求指标，但是其中一些辅助请求（比如登录请求）的指标，不在我们关心范围内，但是它们会占去每张图的篇幅，影响对关键指标趋势的观察，所以需要把这些结果隐藏起来。本文介绍一种隐藏的方法。&lt;/p></description></item><item><title>安装 puppeteer 过程中成功下载 chromium</title><link>https://www.lfhacks.com/tech/chromium-behind-the-wall/</link><pubDate>Thu, 30 Jul 2020 18:33:50 +0800</pubDate><guid>https://www.lfhacks.com/tech/chromium-behind-the-wall/</guid><description>转载自这篇文章 问题描述 执行 npm install puppeteer 时，会连带下载 chromium，具体参考 安装 Puppeteer 时跳过 Chromium 下载 但是在某些环境，直接用 npm 无法下载 chromium，现象是一直</description></item><item><title>高尔顿钉板的动态演示</title><link>https://www.lfhacks.com/t/galton/</link><pubDate>Sun, 24 May 2020 13:51:44 +0800</pubDate><guid>https://www.lfhacks.com/t/galton/</guid><description>&lt;p>高尔顿钉板模型，十分直观的展示了二项分布如何逼近正态分布。&lt;/p></description></item><item><title>利用命令行工具(0)</title><link>https://www.lfhacks.com/tech/log-toolkit/</link><pubDate>Fri, 27 Mar 2020 09:40:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/log-toolkit/</guid><description>&lt;p>对于一些体量较大的结构化数据，人眼吸收信息的速度是极其有限的。为了能保证处理效率和正确性，比如借助命令行工具的威力才能完成任务，进一步能输入令人满意的、漂亮的格式化输出结果。这里记录一些常见的日志处理事务，供参考。&lt;/p></description></item><item><title>利用命令行工具(1) 搜索文件</title><link>https://www.lfhacks.com/tech/log-toolkit-find-file/</link><pubDate>Fri, 27 Mar 2020 09:40:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/log-toolkit-find-file/</guid><description>&lt;p>在 利用命令行工具(0) 处理日志 一文中，一系列介绍命令行处理文件的文章，本文用于查找符合特定条件的文件。&lt;/p></description></item><item><title>利用命令行工具(2) 预览文件一部分</title><link>https://www.lfhacks.com/tech/log-toolkit-part/</link><pubDate>Fri, 27 Mar 2020 09:40:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/log-toolkit-part/</guid><description>在 利用命令行工具(0) 处理日志 一文中，一系列介绍命令行处理文件的文章，本文用于预览文件一部分。 统计文件的行数 统计当前目录下某一类文件的行数： wc -l *.log 212 ./error.log</description></item><item><title>切割文件的命令行工具 -split</title><link>https://www.lfhacks.com/tech/log-toolkit-split/</link><pubDate>Fri, 27 Mar 2020 09:40:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/log-toolkit-split/</guid><description>分割日志文件 将文件按每份 10000 行分割 $ split -l 10000 file 将文件按每份 100MB 分割，比如用来分割二进制文件 $ split -b 100M file -b 选项严格按照字节数分割，完整的一行也会被分割在前后两个</description></item><item><title>如何将多行文字 join 到一行</title><link>https://www.lfhacks.com/tech/join-multiple-lines/</link><pubDate>Fri, 27 Mar 2020 09:40:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/join-multiple-lines/</guid><description>&lt;p>docker 镜像保存为离线文件时，多个镜像保存在同一个 *.tar 中会减少体积，那么如何将多个镜像名称方便的合并在一行内？本文介绍一种方法。&lt;/p></description></item><item><title>批量删除 无用 docker 镜像的方法</title><link>https://www.lfhacks.com/tech/remove-docker-images/</link><pubDate>Tue, 24 Mar 2020 10:16:57 +0800</pubDate><guid>https://www.lfhacks.com/tech/remove-docker-images/</guid><description>删除无用的镜像 试试如下的命令： $ docker images | grep '&amp;lt;none&amp;gt;' | awk '{print $3}' | sort | uniq | xargs docker rmi 删除无用的容器 另外，一些&amp;quot;死掉&amp;quot;的容器，也会占着空间不能主动释放</description></item><item><title>键行者 Keywalker IFD-68 键盘说明书</title><link>https://www.lfhacks.com/blog/keywalker-ifd68/</link><pubDate>Sat, 21 Mar 2020 19:49:12 +0800</pubDate><guid>https://www.lfhacks.com/blog/keywalker-ifd68/</guid><description>&lt;p>绝版的 Keywalker 键行者 IFD-68 蓝牙双模机械键盘使用说明书。因为经常需要查找按键组合，但是说明书又经常找不到，所以记录在这里，方便索引。&lt;/p></description></item><item><title>Diablo 迪卡·凯恩唱的 Rap</title><link>https://www.lfhacks.com/blog/deckard-cain-rap/</link><pubDate>Sun, 08 Mar 2020 11:00:56 +0800</pubDate><guid>https://www.lfhacks.com/blog/deckard-cain-rap/</guid><description>Rap 欣赏 点击播放键，欣赏 Deckard Cain 带来的 Rap： 迪卡·凯恩 这首歌有意思的地方在于，歌词是每两句押韵，即双行押韵格式 couplet 歌词试译 &amp;#9835; My name's Deckard Cain and I come from Tristram. 我叫迪卡·凯恩</description></item><item><title>Crontab 实例</title><link>https://www.lfhacks.com/tech/linux-cron/</link><pubDate>Sun, 08 Dec 2019 21:45:06 +0800</pubDate><guid>https://www.lfhacks.com/tech/linux-cron/</guid><description>&lt;p>crontab 是 Linux 设置周期性定时任务的常用系统工具，本文列举一些实用的例子。&lt;/p></description></item><item><title>Test Cafe 如何使用 headless 浏览器</title><link>https://www.lfhacks.com/tech/testcafe-headless-browsers/</link><pubDate>Tue, 12 Nov 2019 19:56:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/testcafe-headless-browsers/</guid><description>无界面浏览器 headless（无界面）浏览器在其他文章（selenium、Puppeteer）里介绍过，十分便于自动化执行浏览器动作。下面我们看 TestCafe 是如</description></item><item><title>使用 ffmpeg 批量剪辑 mp3</title><link>https://www.lfhacks.com/tech/ffmpeg/</link><pubDate>Wed, 06 Nov 2019 10:08:38 +0800</pubDate><guid>https://www.lfhacks.com/tech/ffmpeg/</guid><description>&lt;p>ffmpeg 是一款使用方便的音视频编辑软件，我们可以用它来裁切、拼接、转码输出到其他类型的音视频文件。本文列举一些常用的操作命令。&lt;/p></description></item><item><title>用 Test Cafe 编写 UI自动化 的例子</title><link>https://www.lfhacks.com/tech/testcafe-example/</link><pubDate>Mon, 04 Nov 2019 17:57:30 +0800</pubDate><guid>https://www.lfhacks.com/tech/testcafe-example/</guid><description>&lt;p>Test Cafe 作为一款测试框架，非常适合开展 UI 自动化测试、浏览器兼容性测试，同时支持 TypeScript. 本文介绍 使用 Test Cafe 进行 UI 自动化的实例。&lt;/p></description></item><item><title>百分比值的动态演示</title><link>https://www.lfhacks.com/t/percentage/</link><pubDate>Sat, 02 Nov 2019 17:17:22 +0800</pubDate><guid>https://www.lfhacks.com/t/percentage/</guid><description/></item><item><title>弧度的动态演示</title><link>https://www.lfhacks.com/t/rad/</link><pubDate>Sat, 02 Nov 2019 17:17:22 +0800</pubDate><guid>https://www.lfhacks.com/t/rad/</guid><description>另外， 单位圆 一文中有角度和弧度的对应关系演示。</description></item><item><title>Jenkins 自动生成二维码到构建历史</title><link>https://www.lfhacks.com/tech/jenkins-qrencode/</link><pubDate>Wed, 30 Oct 2019 15:29:32 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-qrencode/</guid><description>&lt;p>我们希望将构建好的文件自动生成下载链接，然后自动生成下载链接对应的二维码，再将二维码图片显示在 Jenkins 的构建历史（Build History）区块中。有几种不同的方法可以实现，本文介绍其中一种。&lt;/p></description></item><item><title>角的互动演示</title><link>https://www.lfhacks.com/t/angle/</link><pubDate>Sun, 27 Oct 2019 23:47:25 +0800</pubDate><guid>https://www.lfhacks.com/t/angle/</guid><description>下面的图是平面几何中角的互动演示，将鼠标置于图上，能看到角度的数值和角的分类： (如果您看不到图，请使用 FireFox、Chrome 等现代浏览器)</description></item><item><title>二进制的交互演示</title><link>https://www.lfhacks.com/t/binary/</link><pubDate>Sun, 20 Oct 2019 00:25:22 +0800</pubDate><guid>https://www.lfhacks.com/t/binary/</guid><description>&lt;p>人能掌握的符号个数是有限的，而数的数量是无穷的，所以人们被逼着用有限个符号表示无限个数，这就产生了记数系统。本文希望能帮助理解不同记数系统的来源和特点。&lt;/p></description></item><item><title>笛卡尔坐标系动态演示</title><link>https://www.lfhacks.com/t/cartesian/</link><pubDate>Wed, 16 Oct 2019 01:37:34 +0800</pubDate><guid>https://www.lfhacks.com/t/cartesian/</guid><description>&lt;p>又叫平面直角坐标系。&lt;/p></description></item><item><title>前端测试工具 TestCafe 中的 Selector</title><link>https://www.lfhacks.com/tech/testcafe-selector/</link><pubDate>Mon, 14 Oct 2019 19:32:09 +0800</pubDate><guid>https://www.lfhacks.com/tech/testcafe-selector/</guid><description>&lt;p>TestCafe 中的 Selector 是功能丰富的模块，封装了许多查找元素的功能，并且提供了额外的函数式查找、而且具有获取抽象动态元素和静态元素状态的功能。&lt;/p></description></item><item><title>前端测试工具 TestCafe 测试代码结构</title><link>https://www.lfhacks.com/tech/testcafe-code-structure/</link><pubDate>Sun, 13 Oct 2019 21:27:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/testcafe-code-structure/</guid><description>&lt;p>本文从前端测试工具 TestCafe 的测试代码结构入手，介绍用法。&lt;/p></description></item><item><title>前端测试工具 TestCafe 简介</title><link>https://www.lfhacks.com/tech/testcafe/</link><pubDate>Sat, 12 Oct 2019 13:35:27 +0800</pubDate><guid>https://www.lfhacks.com/tech/testcafe/</guid><description>&lt;p>&lt;a href="https://devexpress.github.io/testcafe/">TestCafe&lt;/a> 是一款 Node.js 库，用来实现
web页面的自动化测试，支持多种浏览器，将来还有接口测试的计划。&lt;/p></description></item><item><title>莱特纳的记忆抽认卡（闪卡）</title><link>https://www.lfhacks.com/blog/leitner/</link><pubDate>Thu, 26 Sep 2019 10:17:02 +0800</pubDate><guid>https://www.lfhacks.com/blog/leitner/</guid><description>&lt;p>对于学习这件事，人性里带有两种情绪：一方面为之自豪，用于将自己和其他动物区分开来；另一方面又避之不及，能逃则逃的例子不胜枚举（想想看，不到万不得已，你愿意认真的读电视机说明书么）。所以有人就开始研究学习本身这件事，并得出了一套关于学习的理论。&lt;/p></description></item><item><title>为 Mocha.js 编写自定义的 reporter</title><link>https://www.lfhacks.com/tech/mocha-reporter/</link><pubDate>Tue, 23 Jul 2019 03:34:28 +0800</pubDate><guid>https://www.lfhacks.com/tech/mocha-reporter/</guid><description>&lt;p>Mocha.js 有一些自带的 reporter，但是这些有时候不能完全满足自己的需求，有些信息冗余，有些信息缺失。其实我们可以自己编写reporter。&lt;/p></description></item><item><title>安装 Puppeteer 时跳过 Chromium 下载</title><link>https://www.lfhacks.com/tech/puppeteer-skip-download-chromium/</link><pubDate>Fri, 19 Jul 2019 10:15:13 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-skip-download-chromium/</guid><description>&lt;p>Puppeteer 包含的 Chromium 因为体积过大，我们在升级 Puppeteer 时，希望可以跳过 Chromium 重新安装，本文介绍这种方法。&lt;/p></description></item><item><title>Scripted Pipeline 语法简介</title><link>https://www.lfhacks.com/tech/jenkins-scripted-pipeline/</link><pubDate>Tue, 09 Jul 2019 01:01:29 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-scripted-pipeline/</guid><description>&lt;p>本文介绍 Jenkins Scripted Pipeline 语法，背景知识请参考 《Jenkins Pipeline 语法简介》 另有 《Jenkins Declarative Pipeline 语法简介》&lt;/p></description></item><item><title>Declarative Pipeline 语法简介</title><link>https://www.lfhacks.com/tech/jenkins-declarative-pipeline/</link><pubDate>Mon, 08 Jul 2019 11:26:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-declarative-pipeline/</guid><description>&lt;p>本文介绍 Jenkins Declarative Pipeline 语法，由于 原文档 的信息过于繁杂，将常用的和罕见的混在一起，难以找到有用信息。本文试着将常用的收集在一起，方便查阅。背景知识请参考 《Jenkins Pipeline 语法简介》，另有《Jenkins Scripted Pipeline 语法简介》&lt;/p></description></item><item><title>Jenkins Pipeline 语法简介</title><link>https://www.lfhacks.com/tech/jenkins-pipeline-syntax/</link><pubDate>Tue, 02 Jul 2019 08:34:22 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-pipeline-syntax/</guid><description>&lt;p>Jenkins2 将 Pipeline 提升至一等公民，和 Job 平级。用户可以用脚本的形式描述 Pipeline 的运行逻辑。本文简单总结 Jenkins2 中 两种 Pipeline 脚本： Declarative Pipeline 和 Scripted Pipeline 的语法。&lt;/p></description></item><item><title>卷积的直观解释</title><link>https://www.lfhacks.com/t/convolution/</link><pubDate>Tue, 25 Jun 2019 09:10:25 +0800</pubDate><guid>https://www.lfhacks.com/t/convolution/</guid><description>TL;DR 太长不看版：卷积是两个函数包含的信息糅合生成新函数的过程。 相互作用的例子 两个对等的事物相互作用、相互影响，你中有我，我中有你，最后形成的新事物，同时</description></item><item><title>从掷骰子观察二项分布</title><link>https://www.lfhacks.com/t/dice-binomial/</link><pubDate>Mon, 24 Jun 2019 14:26:37 +0800</pubDate><guid>https://www.lfhacks.com/t/dice-binomial/</guid><description>生活中的场景 生活中许多事情只有两种结果，而且需要反复多次尝试，比如： 小明要连续参加三次模拟考试，通过的标准是三次考试中有任意两次及格。假设小明每次考试</description></item><item><title>从掷骰子得到正态分布</title><link>https://www.lfhacks.com/t/dice-normal/</link><pubDate>Fri, 21 Jun 2019 03:13:02 +0800</pubDate><guid>https://www.lfhacks.com/t/dice-normal/</guid><description>中心极限定理 中心极限定理表明，大量独立的同分布的随机因素，如果各项因素都不能起到主导作用，那么这些因素的共同影响结果，就服从正态分布。 一组独立同分布的</description></item><item><title>埃氏筛法求质数的互动演示</title><link>https://www.lfhacks.com/t/sieve/</link><pubDate>Wed, 19 Jun 2019 11:08:22 +0800</pubDate><guid>https://www.lfhacks.com/t/sieve/</guid><description>互动展示 下图是 埃拉托斯特尼筛法 的互动展示。使用方法：从2开始，逐个点击数字。如果数字变灰或者消失，则不能点击。剩余的数字就是筛选出的质数。 停止筛选条件</description></item><item><title>如何用代码模拟自由落体</title><link>https://www.lfhacks.com/t/simulate-gravity/</link><pubDate>Thu, 30 May 2019 10:35:02 +0800</pubDate><guid>https://www.lfhacks.com/t/simulate-gravity/</guid><description>原理 我们的图形化程序是基于帧来显示动画的。每隔一段时间，屏幕内容更新一次，称为一帧。为了模拟出自由落体的动画，我们的程序需要计算出每帧小球出现的位置。</description></item><item><title>Jenkins Pipeline 里设置重试次数</title><link>https://www.lfhacks.com/tech/jenkins-pipeline-retry/</link><pubDate>Tue, 28 May 2019 15:52:35 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-pipeline-retry/</guid><description>&lt;p>Jenkins Pipeline 里执行某些步骤（stage），会受外部影响而失败，这是无法通过修改自身而保证总是成功的，然而失败也并不说明这些步骤本身的问题。所以，当这种失败发生时，需要增加重试次数，以避免产生虚假的警告。那么 Pipeline 如何定义重试次数？本文列出一个定义方法。&lt;/p></description></item><item><title>用 Puppeteer 获取元素的内部文字</title><link>https://www.lfhacks.com/tech/puppeteer-innertext/</link><pubDate>Mon, 27 May 2019 07:48:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-innertext/</guid><description>&lt;p>Puppeteer 可以查找特定的元素，进一步可以获取元素内部的文字。那么有没有办法获得多个同类型元素的内部文字？答案是有的。本文讨论下具体方法。&lt;/p></description></item><item><title>Jenkins Pipeline 如何输出 StdErr</title><link>https://www.lfhacks.com/tech/jenkins-pipeline-return-stderr/</link><pubDate>Fri, 24 May 2019 15:13:55 +0800</pubDate><guid>https://www.lfhacks.com/tech/jenkins-pipeline-return-stderr/</guid><description>&lt;p>Jenkins Pipeline 中当命令执行错误时，Jenkin 目前还不能直接支持返回标准错误信息。本文讨论一种返回标准错误的方法。&lt;/p></description></item><item><title>Puppeteer 获取 http 请求的响应</title><link>https://www.lfhacks.com/tech/puppeteer-http-response/</link><pubDate>Sun, 19 May 2019 13:44:40 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-http-response/</guid><description>&lt;p>页面收到的 HTTP 响应，用 Chrome 的开发者工具 DevTool 很容易能看到，但是如何以运行程序的方法，从 Chrome 中取得呢？本文讨论一种可行的方法。&lt;/p></description></item><item><title>Puppeteer 获取 WebSocket 响应</title><link>https://www.lfhacks.com/tech/puppeteer-websocket/</link><pubDate>Wed, 15 May 2019 02:27:08 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-websocket/</guid><description>&lt;p>正如 Puppeteer 获取 http 请求的响应 一文里提到的方法，除了获取 HTTP 响应以外，还能获取 WebSocket 响应。因为有些页面通过 WebSocket 实现异步传输，仅仅从HTTP通道上获取响应是不够的，如何使用 Puppeteer 得到 WebSocket 响应内容，本文讨论一种方法。&lt;/p></description></item><item><title>Puppeteer 获取和修改 元素节点的属性</title><link>https://www.lfhacks.com/tech/puppeteer-get-attribute/</link><pubDate>Mon, 13 May 2019 11:22:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-get-attribute/</guid><description>&lt;p>用 Puppteer 获取 HTML DOM 的元素节点后，如何获得节点的其他属性，也就是节点的Attribute？比如链接指向、样式、class 名称、id 名称、等等关键信息。本文探讨两种可行的方法。&lt;/p></description></item><item><title>窗户的定价规则</title><link>https://www.lfhacks.com/t/window-pricing/</link><pubDate>Fri, 10 May 2019 05:23:04 +0800</pubDate><guid>https://www.lfhacks.com/t/window-pricing/</guid><description>背景 窗户一般由两种材料组成：型材和玻璃。型材用于组成窗框，玻璃用于填充窗户。 窗户的报价是按成品窗的面积乘以单价计算。其中玻璃的面积是随着窗户面积成正比</description></item><item><title>Puppeteer 处理文件上传</title><link>https://www.lfhacks.com/tech/puppeteer-file-upload/</link><pubDate>Wed, 01 May 2019 14:51:25 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-file-upload/</guid><description>&lt;p>在 《Puppeteer 处理文件下载》 一文后，我们看看如何处理文件上传问题。好在 Puppeteer 直接提供了上传的方法，我们只要定位到对应的上传元素后，就可以启动上传过程，非常的方便。&lt;/p></description></item><item><title>Puppeteer 的远程调试方法</title><link>https://www.lfhacks.com/tech/puppeteer-remote-debugging/</link><pubDate>Tue, 30 Apr 2019 06:26:36 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-remote-debugging/</guid><description>&lt;p>Puppteer 在 headless 模式下运行时，很多时候难以知道出错原因，这时候需要一个远程观察窗口，这时可以用 Chrome/Chromium 的远程 debug 功能。&lt;/p></description></item><item><title>Puppeteer 处理文件下载</title><link>https://www.lfhacks.com/tech/puppeteer-file-download/</link><pubDate>Mon, 29 Apr 2019 14:07:55 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-file-download/</guid><description>&lt;p>本文要解决的是如何用 Puppeteer 处理下载文件，无论是点击链接产生的文件下载，或者是点击按钮触发的文件下载。以及如何对文件进行后续处理。&lt;/p></description></item><item><title>Puppeteer 等待页面更新</title><link>https://www.lfhacks.com/tech/puppeteer-wait-for-ajax/</link><pubDate>Sun, 28 Apr 2019 14:42:27 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-wait-for-ajax/</guid><description>在浏览器页面发生跳转或者更换时，需要有一些事件让 Puppeteer 等待，不然就会提早返回错误或者无法预期的事情发生。本文列举一些这种场景和如何等待页面的变化。 等待页面</description></item><item><title>Puppeteer 异步编程中实现 sleep</title><link>https://www.lfhacks.com/tech/puppeteer-sleep/</link><pubDate>Sat, 27 Apr 2019 15:23:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-sleep/</guid><description>&lt;p>虽然 Promise，async/await 的异步编程并不需要 sleep 这种阻塞式的等待，但是有时候当事件发生在程序外部时，可能会用到 sleep，本文介绍一种简单的 sleep 实现方法。&lt;/p></description></item><item><title>用 Puppeteer 处理新tab页</title><link>https://www.lfhacks.com/tech/puppeteer-new-tab/</link><pubDate>Thu, 25 Apr 2019 16:00:27 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-new-tab/</guid><description>&lt;p>使用 puppeteer 打开页面后，有些链接或者按钮会主动打开新 tab 页（target=_blank）, 那么如何控制浏览器打开新tab，并且获取新tab页面内容，并且最后返回原始页面？本文列出了一个可行的方法。&lt;/p></description></item><item><title>用 Puppeteer 获取页面元素的样式</title><link>https://www.lfhacks.com/tech/puppeteer-elememt-style/</link><pubDate>Thu, 25 Apr 2019 15:06:22 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-elememt-style/</guid><description>&lt;p>使用 puppeteer 寻找到某个元素后，往往希望检查此元素的某种样式，对应于 chrome 开发者工具里看到的是该元素的 computed style. 使用 puppeteer 可以比较方便的得到元素的样式，本文列出了一个可行的方法。&lt;/p></description></item><item><title>用 Puppeteer 截图</title><link>https://www.lfhacks.com/tech/puppeteer-screenshot/</link><pubDate>Wed, 24 Apr 2019 15:27:38 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-screenshot/</guid><description>按照 《Puppteer 配置浏览器属性》一文配置浏览器后，启动浏览器并打开网页，第一件可以自动完成的事情就是截图。 本文详细讨论截图的一些细节操作。 基本代</description></item><item><title>Puppeteer 配置浏览器属性</title><link>https://www.lfhacks.com/tech/puppeteer-browser-options/</link><pubDate>Thu, 18 Apr 2019 15:12:45 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-browser-options/</guid><description>&lt;p>在 《Puppteer 实现 web 自动测试》 一文里，我们已经初步的列出了 puppeteer 脚本的用法，这里继续深入每一步骤的细节配置，更为方便的编写和调试代码。&lt;/p></description></item><item><title>Promise 概念的理解</title><link>https://www.lfhacks.com/tech/understanding-promise/</link><pubDate>Wed, 17 Apr 2019 16:09:51 +0800</pubDate><guid>https://www.lfhacks.com/tech/understanding-promise/</guid><description>&lt;p>在 《Puppteer 实现 web 自动测试》 一文里，可以看出来如果 Puppteer 脚本用 async/await 和 promise的一些写法，会让脚本非常易懂，而且符合我们人工操作浏览器的习惯。所以为了写好 Puppteer 脚本，需要先对 async/await 的概念有所了解。&lt;/p></description></item><item><title>Puppeteer 实现 web 自动测试</title><link>https://www.lfhacks.com/tech/puppeteer-mocha-chai/</link><pubDate>Wed, 17 Apr 2019 10:33:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/puppeteer-mocha-chai/</guid><description>&lt;p>Puppteer 是 Google 推出的自动化工具，包含 Chromium 用于模拟用户侧操作，本文介绍如何 配合 Mocha 和 Chai 使用 Puppteer 开展自动化测试&lt;/p></description></item><item><title>Sublime text3 运行批处理文件</title><link>https://www.lfhacks.com/tech/sublime-batch/</link><pubDate>Tue, 19 Mar 2019 15:56:12 +0800</pubDate><guid>https://www.lfhacks.com/tech/sublime-batch/</guid><description>&lt;p>sublime text3 编辑好 windows 批处理文件后，如果希望直接在 sublime 内部运行，并且看到运行结果，可以使用 sublime 提供的编译系统（Build System）完成。&lt;/p></description></item><item><title>Jmeter 如何在变量名中使用变量</title><link>https://www.lfhacks.com/tech/jmeter-nested-variable-references/</link><pubDate>Wed, 13 Mar 2019 12:02:51 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-nested-variable-references/</guid><description>在Jmeter的变量名中使用变量（叫做嵌套变量名），这在循环中尤其有用，本文讨论这种操作。 嵌套变量 使用 Jmeter __V函数 可以做到这点。 比如我们有如下几个变量</description></item><item><title>Jmeter 用 groovy 解析 json</title><link>https://www.lfhacks.com/tech/jmeter-parse-json-with-groovy/</link><pubDate>Thu, 13 Dec 2018 01:56:54 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-parse-json-with-groovy/</guid><description>&lt;p>在 Jmeter 里，用 Groovy 解析 json 格式的响应内容是很方便的，既能灵活提取指定字段，又能做进一步的复杂逻辑处理。本文介绍这种方法。&lt;/p></description></item><item><title>Jmeter 上传文件的两种方法</title><link>https://www.lfhacks.com/tech/jmeter-upload-file/</link><pubDate>Wed, 05 Dec 2018 11:39:48 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-upload-file/</guid><description>&lt;p>本文介绍如何用 Jmeter 模拟浏览器表单上传文件。首先介绍上传的原理，随后介绍两种方法。&lt;/p></description></item><item><title>Jmeter 用 Groovy 读写文件</title><link>https://www.lfhacks.com/tech/jmeter-read-and-write-file/</link><pubDate>Mon, 22 Oct 2018 02:35:25 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-read-and-write-file/</guid><description>&lt;p>Jmeter 自带的控件 Flexible Writer 可以记录许多信息到文件，但是只能记录原始信息，当我们需要后处理和稍复杂的逻辑时，就必须借助 Groovy 脚本 。 本文讨论如何用 Groovy 脚本读写文件。&lt;/p></description></item><item><title>Jmeter 记录请求和响应信息</title><link>https://www.lfhacks.com/tech/jmeter-save-sampler/</link><pubDate>Thu, 18 Oct 2018 10:51:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-save-sampler/</guid><description>&lt;p>Jmeter 默认是不记录请求和响应的具体信息的，虽然可以记录下响应数据。然而，仍然没有直接的办法记录请求的数据。本文将探索如何做到记录请求数据到文件。&lt;/p></description></item><item><title>Jmeter 中如何使用数组变量</title><link>https://www.lfhacks.com/tech/jmeter-vars-array/</link><pubDate>Mon, 15 Oct 2018 16:23:43 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-vars-array/</guid><description>&lt;p>Jmeter JSR223 控件中的 vars 变量对象，使用 put 方法只能保存字符串变量，而这时如果希望方便的展开数组或者集合运算，就需要使用更高级的方法。本文讨论这些具体方法。&lt;/p></description></item><item><title>Jmeter 保存响应到文件</title><link>https://www.lfhacks.com/tech/jmeter-save-response-to-file/</link><pubDate>Mon, 15 Oct 2018 03:29:28 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-save-response-to-file/</guid><description>&lt;p>使用 Jmeter Non-GUI 模式下，遇到发生错误响应时，需要查看请求与响应的记录，然而默认是没有保存响应值的设置。同时即使 GUI 模式下，也需要保存响应值以查错或者留存档案。本文列举一些保存响应值到文件的方法。&lt;/p></description></item><item><title>Jmeter 的 vars 和 props 用法</title><link>https://www.lfhacks.com/tech/jmeter-vars-props/</link><pubDate>Wed, 10 Oct 2018 06:56:33 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-vars-props/</guid><description>&lt;p>Jmeter 的 JSR223 控件是 代替 BeanShell 的新一代脚本控件，支持多种脚本语言，尤其是其中的 Groovy，更是重点推荐使用的脚本语言，本文研究其中的 vars 和 props 两种对象的用法。&lt;/p></description></item><item><title>Jmeter 线程组属性的概念解释</title><link>https://www.lfhacks.com/tech/jmeter-thread-properties/</link><pubDate>Mon, 08 Oct 2018 16:01:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-thread-properties/</guid><description>&lt;p>Jmeter 自带的线程组控件（Thread Group）中有三个重要的属性，分别是 Number of Threads, Ramp-Up Period, 和 Loop Count，用于控制线程组的行为。这三个属性的重要性与其文档的丰富程度严重不符。不仅变量名简略抽象，而且官方文档也含糊不清。本文尝试在实验验证的基础上，把这三个变量的含义解释清楚。&lt;/p></description></item><item><title>Jmeter 断言字符串长度</title><link>https://www.lfhacks.com/tech/jmeter-assert-string-length/</link><pubDate>Mon, 08 Oct 2018 10:36:30 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-assert-string-length/</guid><description>&lt;p>Jmeter 的断言（Assertion）用来判定系统响应的某些指标，比如响应长度、响应时间是否满足条件，Jmeter 提供了内置的断言类型，分别是 Size Assertion 和 Duration Assertion. 然而，更复杂的断言逻辑，比如判定某个字符串的长度，Jmeter 目前没有预先提供，这就需要更灵活的 JSR223 Assertion 组件。&lt;/p></description></item><item><title>Chrome 如何恢复到69版本之前的经典主题</title><link>https://www.lfhacks.com/tech/restore-chrome-theme/</link><pubDate>Mon, 17 Sep 2018 15:09:43 +0800</pubDate><guid>https://www.lfhacks.com/tech/restore-chrome-theme/</guid><description>&lt;p>最近，Google 为了庆祝 Chrome 诞生 10 周年，在新推出的 69 版本 Chrome 中，对 UI 做了重大改变。在我们真正能接受新的 UI 之前，先看看如何回到以前的外观主题。&lt;/p></description></item><item><title>Jmeter 在线程组之间共享 Cookie</title><link>https://www.lfhacks.com/tech/jmeter-share-cookie/</link><pubDate>Tue, 11 Sep 2018 06:47:40 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-share-cookie/</guid><description>&lt;p>在 《Jmeter 如何管理 Cookie 》一文中提到，Cookie Manager 的作用范围是当前的线程组。如果有多个线程组，需要将 Cookie 在线程组之间传递，就需要使用全局属性传递。具体做法见本文内容。&lt;/p></description></item><item><title>Jmeter 如何管理 Cookie</title><link>https://www.lfhacks.com/tech/jmeter-cookie-management/</link><pubDate>Mon, 10 Sep 2018 13:56:58 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-cookie-management/</guid><description>&lt;p>如今许多网站都不是简单的接收请求然后响应了，而是需要客户端同时处于“登录状态”，而证明客户端登录状态的“凭证”，就是服务器先前返回的 Cookie. 只有客户端再次发起请求的时候携带上 Cookie，才能证明当前用户处于已登录状态。本文讨论 Jmeter 如何管理 Cookie.&lt;/p></description></item><item><title>Jmeter 的变量类型和作用域</title><link>https://www.lfhacks.com/tech/jmeter-variable-scope/</link><pubDate>Fri, 07 Sep 2018 01:55:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-variable-scope/</guid><description>&lt;p>Jmeter 的有多种变量类型，有其各自的作用域。有时候不小心就会使它们之间相互冲突或者覆盖，本文梳理各种类型变量的生成方法、使用特点、作用范围。&lt;/p></description></item><item><title>Python 换行符和多行模式</title><link>https://www.lfhacks.com/tech/python-newline-multiline/</link><pubDate>Thu, 06 Sep 2018 01:49:24 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-newline-multiline/</guid><description>&lt;p>Python 的正则表达式支持 多行模式，将每行文字分别匹配。然而各种操作系统里，换行符的表示法各不相同，会导致 Python 不能正确使用多行模式。&lt;/p></description></item><item><title>Jmeter 的 WebSocket 插件</title><link>https://www.lfhacks.com/tech/jmeter-websocket/</link><pubDate>Thu, 06 Sep 2018 01:46:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-websocket/</guid><description>&lt;p>使用 Jmeter 测试 WebSocket 协议时，可以使用 WebSocket 插件。寻找和安装插件的最好方法是通过 Jmeter 的 插件管理器（Plugins Manager）下载 。&lt;/p></description></item><item><title>Jmeter 只执行一次的方法</title><link>https://www.lfhacks.com/tech/jmeter-simulate-login-logout/</link><pubDate>Wed, 05 Sep 2018 02:58:15 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-simulate-login-logout/</guid><description>&lt;p>使用 Jmeter 进行负载测试时，如果希望多个线程利用同一个登录 session，发起多个并发请求的场景，要求使登录和注销在整个测试过中只执行一次。应该怎么实现？&lt;/p></description></item><item><title>Jmeter 复制粘贴无效</title><link>https://www.lfhacks.com/tech/jmeter-paste-not-working/</link><pubDate>Tue, 04 Sep 2018 01:28:03 +0800</pubDate><guid>https://www.lfhacks.com/tech/jmeter-paste-not-working/</guid><description>Mac 上 运行 Jmeter 有时候会遇到复制、粘贴、删除等快捷键不起作用的情况，往往是外观方案（Look and Feel）的原因。 TL;DR 太长不看版：&amp;ldquo;Look and Feel&amp;rdquo; 菜单</description></item><item><title>学习 TikZ (1) 笛卡尔坐标系</title><link>https://www.lfhacks.com/tech/tikz-1/</link><pubDate>Mon, 03 Sep 2018 14:46:15 +0800</pubDate><guid>https://www.lfhacks.com/tech/tikz-1/</guid><description>&lt;p>本篇来自 “TikZ 和 PGF 3.0.1 使用手册” 的第二章，是作者提供的简单教程，笛卡尔坐标系是最基本的应用，使读者能对 TikZ 的使用产生初步的印象。源文档讲的故事有点冗长，我把本章的概要记录在这里。&lt;/p></description></item><item><title>学习 TikZ</title><link>https://www.lfhacks.com/tech/tikz-from-scratch/</link><pubDate>Sat, 01 Sep 2018 07:00:02 +0800</pubDate><guid>https://www.lfhacks.com/tech/tikz-from-scratch/</guid><description>&lt;p>TikZ 是 Latex 的一个图形库，构建于 PGF 库之上，能以简单的语法，画出精确的示意图。作者是一名德国人 Till Tantau 在写自己的博士论文时，使用的 Latex 样式库。TikZ 取名的方式和 GNU 类似，“TikZ ist kein Zeichenprogramm”（TikZ 不是 一个画图程序）。&lt;/p></description></item><item><title>用 Python 读写 Excel</title><link>https://www.lfhacks.com/tech/python-excel/</link><pubDate>Wed, 29 Aug 2018 05:56:42 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-excel/</guid><description>&lt;p>用 Python 实现读写 Excel，有几个第三方库，各有各的优缺点，用的时候需要根据自己的需要选取。本文简单介绍。&lt;/p></description></item><item><title>圆的第二定义的公式和图像</title><link>https://www.lfhacks.com/t/circle-def/</link><pubDate>Sat, 25 Aug 2018 08:07:38 +0800</pubDate><guid>https://www.lfhacks.com/t/circle-def/</guid><description>常规定义 在同一个平面内，以定点为中心，动点以一定长度为距离旋转一周所形成的封闭曲线叫做圆。 圆锥曲线定义的共同点 圆锥曲线族的成员，都有关于两个点（线）的</description></item><item><title>圆面积的动图展示</title><link>https://www.lfhacks.com/t/circle-area/</link><pubDate>Sat, 25 Aug 2018 07:35:18 +0800</pubDate><guid>https://www.lfhacks.com/t/circle-area/</guid><description>&lt;p>圆的面积有多种求法，最终得到的结果是一致的。本文介绍一种从三角形转换而来的方法。&lt;/p></description></item><item><title>圆周长的公式和图像</title><link>https://www.lfhacks.com/t/circle-circum/</link><pubDate>Sat, 25 Aug 2018 07:31:49 +0800</pubDate><guid>https://www.lfhacks.com/t/circle-circum/</guid><description>&lt;p>圆的周长 和直径成正比，比值为 圆周率 π&lt;/p></description></item><item><title>圆心角和圆周角</title><link>https://www.lfhacks.com/t/inscribed/</link><pubDate>Fri, 24 Aug 2018 15:51:29 +0800</pubDate><guid>https://www.lfhacks.com/t/inscribed/</guid><description>圆心角和圆周角 同弧或同弦所对的圆周角等于圆心角的一半。 等弧所对的圆周角相等 直径所对的圆周角为直角</description></item><item><title>三角函数族</title><link>https://www.lfhacks.com/t/harmonic/</link><pubDate>Mon, 20 Aug 2018 16:17:05 +0800</pubDate><guid>https://www.lfhacks.com/t/harmonic/</guid><description>定义 谐波三角函数族，harmonically related sinusoidal functions，指一族拥有共同周期的正弦函数和余弦函数。其中拥有最长周期的函数称为基波，频率为基础</description></item><item><title>傅立叶级数的直观解释</title><link>https://www.lfhacks.com/t/fourier/</link><pubDate>Sun, 19 Aug 2018 16:02:09 +0800</pubDate><guid>https://www.lfhacks.com/t/fourier/</guid><description>本文用图形化的方式，演示使用傅里叶级数来展开方波的过程。 假设我们希望展开的方波的周期为 $T$，方波的频率为 $\omega_0 = {2\pi \over T}$ ( &amp;#x261D; 图片来源：http://fab</description></item><item><title>蜗牛线的公式和图像</title><link>https://www.lfhacks.com/t/cochleoid/</link><pubDate>Sat, 28 Jul 2018 15:56:59 +0800</pubDate><guid>https://www.lfhacks.com/t/cochleoid/</guid><description>蜗牛线的方程 蜗牛线 的极坐标方程为$$ \rho ={a\sin \theta \over \theta}$$ 参数方程为$$x={a\sin t \cos t\over t}\\y={a\sin^2 t \over t}$$ 蜗牛线的形状 是一种蜗牛壳形的曲线</description></item><item><title>圆的渐开线</title><link>https://www.lfhacks.com/t/involute/</link><pubDate>Fri, 27 Jul 2018 14:49:59 +0800</pubDate><guid>https://www.lfhacks.com/t/involute/</guid><description>形象解释 一条无伸缩的细绳绕在一个定圆上，拉开绳子的一端，使绳子与圆周始终相切，则直线上任意一点的轨迹，称为此基圆的一条渐开线。 方程 渐开线参数方程为$$</description></item><item><title>费马螺线</title><link>https://www.lfhacks.com/t/fermat-spiral/</link><pubDate>Wed, 25 Jul 2018 16:51:43 +0800</pubDate><guid>https://www.lfhacks.com/t/fermat-spiral/</guid><description>费马螺线的定义 极坐标方程为$$r^2=\theta$$ 图形如下 看这形状，有没有觉得挺眼熟？</description></item><item><title>对数螺线</title><link>https://www.lfhacks.com/t/log-spiral/</link><pubDate>Mon, 23 Jul 2018 16:59:58 +0800</pubDate><guid>https://www.lfhacks.com/t/log-spiral/</guid><description>对数螺线的定义 对数螺线 又叫等角螺线。是自然界最常见的螺线形式。极坐标方程为$$r=ae^{b\theta}$$ 取$a=0.01, b=0.2$，图形如下</description></item><item><title>等速螺线</title><link>https://www.lfhacks.com/t/spiral/</link><pubDate>Sun, 22 Jul 2018 14:03:43 +0800</pubDate><guid>https://www.lfhacks.com/t/spiral/</guid><description>螺线，指任何一种围绕一个中心点或一条轴旋转，同时又逐渐远离的动点的轨迹。 等速螺线 等速螺线又叫阿基米德螺线，是最简单的螺线形式。极坐标方程为$$r=a\</description></item><item><title>心脏线的公式和图像</title><link>https://www.lfhacks.com/t/cardioid/</link><pubDate>Wed, 11 Jul 2018 14:50:07 +0800</pubDate><guid>https://www.lfhacks.com/t/cardioid/</guid><description>&lt;p>心脏线 是 &lt;a href="https://www.lfhacks.com/t/epicycloid/">外摆线&lt;/a> 的一种特殊情况：当 两圆半径相同 时，外摆线就是心脏线。&lt;/p></description></item><item><title>曳物线的形成过程 - 动图</title><link>https://www.lfhacks.com/t/tractrix/</link><pubDate>Mon, 09 Jul 2018 14:15:31 +0800</pubDate><guid>https://www.lfhacks.com/t/tractrix/</guid><description>动图演示 两个物体 A 和 B，既可以看做 拖曳者 A 与 被拖者 B ，也可以看做是猎物 A 和 追击者 B。 A 从原点开始，朝 x 轴方向运动， B 从 y 轴某点开始，始终朝着 A 运动，则</description></item><item><title>悬链线的公式和图像</title><link>https://www.lfhacks.com/t/catenary/</link><pubDate>Wed, 04 Jul 2018 15:43:36 +0800</pubDate><guid>https://www.lfhacks.com/t/catenary/</guid><description>&lt;p>悬链线（catenary）用于描述水平两点间的因均匀引力作用下的均匀、软绳(不能伸长)的形状。悬链线除了如其名的链条形状以外，美国圣路易斯的拱门也采用了悬链线的形状。&lt;/p></description></item><item><title>伯努利双扭线</title><link>https://www.lfhacks.com/t/lemniscate/</link><pubDate>Sun, 01 Jul 2018 07:28:05 +0800</pubDate><guid>https://www.lfhacks.com/t/lemniscate/</guid><description>双扭线的方程 伯努利双扭线（或简称双纽线）的极坐标方程为 $$\rho^2=a^2 \cos 2\theta, 0&amp;lt;\theta&amp;lt;2\pi$$ $a=2$ 时，图形如下： 当极角 $\theta$ 在 $[0,2\pi]$范围内变动时，曲线的轨迹如下图。 对参数的敏</description></item><item><title>笛卡尔叶形线</title><link>https://www.lfhacks.com/t/folium/</link><pubDate>Sun, 01 Jul 2018 06:27:52 +0800</pubDate><guid>https://www.lfhacks.com/t/folium/</guid><description>叶形线方程 叶形线是 笛卡尔 最先提出并研究的一种形似叶片的曲线。极坐标方程为 $$r={{3a\sin \theta \cos \theta} \over {\sin^3 \theta + \cos^3 \theta}}, 0&amp;lt;\theta&amp;lt;\pi$$ 顶点位于$({3 \over 2} a, {3 \over 2} a)$ 当 $a=1$ 时, 曲线如下图： 参数的</description></item><item><title>箕舌线</title><link>https://www.lfhacks.com/t/witch/</link><pubDate>Sat, 30 Jun 2018 15:43:31 +0800</pubDate><guid>https://www.lfhacks.com/t/witch/</guid><description>Witch of Agnesi，阿涅西的女巫，中文译作 箕舌线 箕舌线方程 最简单的箕舌线：$$y={1 \over x^2+1 }$$ 箕舌线一般形式：$$y={8a^3 \over x^2+4a^2}$$ a取 $\{0.5,1,</description></item><item><title>圆的公式和图像</title><link>https://www.lfhacks.com/t/circle/</link><pubDate>Mon, 25 Jun 2018 14:45:30 +0800</pubDate><guid>https://www.lfhacks.com/t/circle/</guid><description>&lt;p>圆是自然界中非常常见的图形&lt;/p></description></item><item><title>外摆线的动态演示</title><link>https://www.lfhacks.com/t/epicycloid/</link><pubDate>Sun, 17 Jun 2018 15:05:43 +0800</pubDate><guid>https://www.lfhacks.com/t/epicycloid/</guid><description>外摆线的定义 一个半径 r 的小圆，在半径 R 的大圆外无滑动的滚动时， 小圆上定点的所形成的轨迹线 和内旋轮线相比，定点的位置从小圆内移到了小圆上。 可以看做 摆线 依</description></item><item><title>纽索纹</title><link>https://www.lfhacks.com/t/guilloche/</link><pubDate>Thu, 14 Jun 2018 16:31:26 +0800</pubDate><guid>https://www.lfhacks.com/t/guilloche/</guid><description>用途 纽索纹（guilloche），也叫纽索饰。是在旋轮线、正弦曲线基础上，增加更多的细节控制，得到美观、细密的图形。 由于纽索纹的参数较多，且曲线的形状</description></item><item><title>共焦圆锥曲线的图像</title><link>https://www.lfhacks.com/t/confocal/</link><pubDate>Wed, 13 Jun 2018 15:32:50 +0800</pubDate><guid>https://www.lfhacks.com/t/confocal/</guid><description>圆锥曲线的特点都是都有一个或多个焦点。以同一个点或者多个点为焦点的一族圆锥曲线，就是共焦圆锥曲线。 共焦点抛物线 焦点位于原点、对称轴位于 x 轴、开口向右的</description></item><item><title>lfhacks 信息提交系统</title><link>https://www.lfhacks.com/tech/lfhacks-submit/</link><pubDate>Wed, 13 Jun 2018 06:17:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/lfhacks-submit/</guid><description>版本历史 v0.4 增加配置项 captcha: 指定是否使用验证码 v0.3 增加配置项 insertToTop：新数据插在表格的最上面/最下面 增加配置项 delimiter：文件的列分隔符</description></item><item><title>双曲线</title><link>https://www.lfhacks.com/t/hyperbola/</link><pubDate>Sun, 10 Jun 2018 14:58:20 +0800</pubDate><guid>https://www.lfhacks.com/t/hyperbola/</guid><description>最简单的双曲线，就是倒数图形： 焦点定义 双曲线是平面上到两个固定点的距离之差为常数的点之轨迹。 $$\{P | |PF_1| - |PF_2|= C\}$$ 解析定义 $${x^2 \over a^2}-{y^2 \over b^2}=1$$ $a$与$b$的比值决定了：</description></item><item><title>内摆线</title><link>https://www.lfhacks.com/t/hypocycloid/</link><pubDate>Tue, 05 Jun 2018 05:39:44 +0800</pubDate><guid>https://www.lfhacks.com/t/hypocycloid/</guid><description>内摆线的定义 一个半径 r 的小圆，在半径 R 的大圆内无滑动的滚动时， 小圆上的定点的所形成的轨迹线。 和 内旋轮线内旋轮线 相比，定点的位置从小圆内移到了小圆上。 可</description></item><item><title>椭圆的画法</title><link>https://www.lfhacks.com/t/draw-ellipse/</link><pubDate>Thu, 31 May 2018 05:49:40 +0800</pubDate><guid>https://www.lfhacks.com/t/draw-ellipse/</guid><description>&lt;p>在现实生活中如何画 椭圆 ？椭圆并不是由圆压扁而来，而是要符合一定的规则才能称为椭圆。现实生活中如果有画椭圆的需求，应该按照固定的方法作图。本文介绍一些绘制椭圆的方法。&lt;/p></description></item><item><title>椭圆</title><link>https://www.lfhacks.com/t/ellipse/</link><pubDate>Wed, 30 May 2018 11:31:54 +0800</pubDate><guid>https://www.lfhacks.com/t/ellipse/</guid><description>椭圆的定义 椭圆是平面上到两个固定点的距离之和为常数的点之轨迹。 $$\{P | |PF_1| + |PF_2|= C\}$$ 下面的动图表示，到两个焦点的距离之和为常数。 椭圆的方程 直角坐标： $${x^2 \over a^2}+{y^2 \over b^2}=1$$ 参</description></item><item><title>圆锥曲线</title><link>https://www.lfhacks.com/t/conic/</link><pubDate>Sun, 27 May 2018 14:27:10 +0800</pubDate><guid>https://www.lfhacks.com/t/conic/</guid><description>圆锥曲线的定义 除了传统的基于准线、焦点的定义（比如 抛物线 ，椭圆）以外，圆锥曲线有更为正式和统一的定义： 动点到一定点（焦点）的距离与其到一定直线（准线）</description></item><item><title>抛物线</title><link>https://www.lfhacks.com/t/parabola/</link><pubDate>Sat, 26 May 2018 16:49:38 +0800</pubDate><guid>https://www.lfhacks.com/t/parabola/</guid><description>抛物线的定义 抛物线是一种圆锥曲线 抛物线上的点，与一个点F（称为焦点）之间的距离等于到固定直线L（称为准线）之间的距离。 二次项系数的影响 对于标准形式的抛</description></item><item><title>内旋轮线</title><link>https://www.lfhacks.com/t/hypotrochoid/</link><pubDate>Sat, 26 May 2018 08:49:00 +0800</pubDate><guid>https://www.lfhacks.com/t/hypotrochoid/</guid><description>内旋轮线的定义 一个小圆，在大圆内无滑动的滚动时， 小圆内定点的所形成的轨迹线。 和 内摆线 相比，定点的位置从小圆周移到了小圆内。 R 和 r 能整除 $$ R=8,r=3,d=1.5 $$ $$ R=8,r=3,d=4.5 $$ $$ R=6,r=1.5,d_1=1.5,</description></item><item><title>摆线</title><link>https://www.lfhacks.com/t/cycloid/</link><pubDate>Thu, 24 May 2018 16:07:17 +0800</pubDate><guid>https://www.lfhacks.com/t/cycloid/</guid><description>摆线的定义为：一个圆沿着直线无滑动的直线滚动时，圆上一固定点所形成的轨迹线 下图是半径为1的圆，生成的摆线， 摆线下方的面积是圆面积的3倍。 摆线的弧长是圆</description></item><item><title>正切函数</title><link>https://www.lfhacks.com/t/tangent/</link><pubDate>Tue, 22 May 2018 16:29:32 +0800</pubDate><guid>https://www.lfhacks.com/t/tangent/</guid><description>正切定义为角与 单位圆 的竖直切线的纵坐标 y</description></item><item><title>余弦函数</title><link>https://www.lfhacks.com/t/cosine/</link><pubDate>Tue, 22 May 2018 16:17:16 +0800</pubDate><guid>https://www.lfhacks.com/t/cosine/</guid><description>&lt;p>角与单位圆的相交点的横坐标&lt;/p></description></item><item><title>单位圆</title><link>https://www.lfhacks.com/t/unitcircle/</link><pubDate>Mon, 21 May 2018 18:21:04 +0800</pubDate><guid>https://www.lfhacks.com/t/unitcircle/</guid><description>单位圆通常是实数平面是圆心在原点，半径为1的圆，表达式为 $$x^2 + y^2 = 1$$ 单位圆和三角函数也有着紧密的联系，比如： 单位圆可以用来定义三角函数 正弦 定义为圆上某点</description></item><item><title>正弦函数</title><link>https://www.lfhacks.com/t/sine/</link><pubDate>Fri, 18 May 2018 18:52:52 +0800</pubDate><guid>https://www.lfhacks.com/t/sine/</guid><description>正弦定义为角与 单位圆 的相交点的纵坐标 y</description></item><item><title>Python 找出序列里的符合要求的元素</title><link>https://www.lfhacks.com/tech/python-find-positive/</link><pubDate>Mon, 14 May 2018 05:14:44 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-find-positive/</guid><description>&lt;p>这篇文章要讨论的是，如何用 Python 提取出一个序列中，符合特定条件的所有元素。例如，找出序列里的所有正数、所有以 Wang 结尾的名字、等等&lt;/p></description></item><item><title>利萨如图形的动态演示</title><link>https://www.lfhacks.com/t/lissajous-curve/</link><pubDate>Tue, 01 May 2018 09:49:33 +0800</pubDate><guid>https://www.lfhacks.com/t/lissajous-curve/</guid><description>&lt;p>利萨如图形，Lissajous curve，也叫李萨如图形、李沙育图形，用来展示两个相互垂直的简谐振动的合成。两种垂直的振动可能是相互垂直的弹簧、或者相位相差 90°的正弦波信号。&lt;/p></description></item><item><title>当selenium遇上docker (二）</title><link>https://www.lfhacks.com/tech/selenium-docker-2/</link><pubDate>Thu, 26 Apr 2018 09:34:36 +0800</pubDate><guid>https://www.lfhacks.com/tech/selenium-docker-2/</guid><description>&lt;p>这一篇是上一篇 当selenium遇上docker 的续集，重点介绍 selenium-docker 的使用和调试、设置桌面和安装中文字体。&lt;/p></description></item><item><title>Python 展开多层嵌套的列表</title><link>https://www.lfhacks.com/tech/python-flatten-sub-sequence/</link><pubDate>Tue, 24 Apr 2018 13:38:18 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-flatten-sub-sequence/</guid><description>&lt;p>本文将讨论：如果有一个多维列表 List，也就是多层嵌套（nested）的关系，如何提取列表的所有元素，将高维度的列表转化为一维列表？&lt;/p></description></item><item><title>Python 按字符串排序</title><link>https://www.lfhacks.com/tech/python-sort-string/</link><pubDate>Fri, 20 Apr 2018 16:27:27 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-sort-string/</guid><description>直接排序 由一些字符串组成的 list ，sort( )方法可以直接用来对字符串排序： &amp;gt;&amp;gt;&amp;gt; a = [&amp;quot;John Smith&amp;quot;, &amp;quot;Alice Young&amp;quot;, &amp;quot;John Scott Brown&amp;quot;] &amp;gt;&amp;gt;&amp;gt; a.sort() &amp;gt;&amp;gt;&amp;gt; a ['Alice Young', 'John Scott Brown', 'John Smith'] 注意，这里 sort 方法是原位排序（in-p</description></item><item><title>用 Samba 快速搭建文件服务器</title><link>https://www.lfhacks.com/tech/samba/</link><pubDate>Sun, 25 Mar 2018 14:26:59 +0800</pubDate><guid>https://www.lfhacks.com/tech/samba/</guid><description>&lt;p>Samba 是年代久远的文件服务器，使 windows 能从 Linux 系统中上传和下载文件。但是因为配置和逻辑难以理解，有时候难以搭出想要的形式。本文试着总结出 Samba 服务器的搭建技巧。&lt;/p></description></item><item><title>用 nginx 搭建文件下载服务器</title><link>https://www.lfhacks.com/tech/nginx-docker/</link><pubDate>Fri, 23 Mar 2018 14:05:25 +0800</pubDate><guid>https://www.lfhacks.com/tech/nginx-docker/</guid><description>有时候临时需要搭建一个文件服务器、提供文件目录浏览和文件下载功能，有一种比较简便的方法是使用 nginx 的 目录列表 功能，由 ngx_http_autoindex_module 提供。 概述 以 docker 形式启动 nginx，让</description></item><item><title>当selenium遇上docker</title><link>https://www.lfhacks.com/tech/selenium-docker/</link><pubDate>Tue, 19 Sep 2017 15:31:17 +0800</pubDate><guid>https://www.lfhacks.com/tech/selenium-docker/</guid><description>Selenium 的后浪们 Puppeteer 是一种新的UI测试工具，和 selenium相比，更容易开发、更容易docker化。请见 Puppeteer文章 前端测试工具 TestCafe 简介是新一代的测</description></item><item><title>星形线的公式和图像</title><link>https://www.lfhacks.com/t/astroid/</link><pubDate>Thu, 07 Sep 2017 15:07:39 +0800</pubDate><guid>https://www.lfhacks.com/t/astroid/</guid><description>&lt;p>星形线是 &lt;a href="https://www.lfhacks.com/t/hypocycloid/">内摆线&lt;/a> 的一种特例，当内外圆半径之比为4时，内摆线就是星形线。&lt;/p></description></item><item><title>ubuntu 下设置 locale 报错</title><link>https://www.lfhacks.com/tech/ubuntu-locale/</link><pubDate>Sat, 02 Sep 2017 15:37:39 +0800</pubDate><guid>https://www.lfhacks.com/tech/ubuntu-locale/</guid><description>报错现象 $ /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory $ /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory 解决方法 修改文件 /etc/default/locale 添加： LC_CTYPE=&amp;quot;en_US.UTF-8&amp;quot; LC_ALL=&amp;quot;en_US.UTF-8&amp;quot; 重启</description></item><item><title>Linux/Mac 下 vim 设置配色方案</title><link>https://www.lfhacks.com/tech/linux-mac-vi/</link><pubDate>Fri, 01 Sep 2017 16:09:32 +0800</pubDate><guid>https://www.lfhacks.com/tech/linux-mac-vi/</guid><description>vim 的默认颜色是黑底白字，这么单调的颜色对新手十分不友好，尤其是在读代码或者配置文件时，特别累，需要配色方案。本文介绍修改 vim配色方案的几个步骤。 默认</description></item><item><title>Python 的集合（set）类型</title><link>https://www.lfhacks.com/tech/python-set-type/</link><pubDate>Mon, 10 Oct 2016 16:01:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-set-type/</guid><description>&lt;p>本文简单介绍了Python语言里set类型自带的方法，set类型表示元素和集合的从属关系（membership），和列表等序列相比，最大的特点是无序。可以跟数学里的集合概念完全对应起来。&lt;/p></description></item><item><title>Python 的集合（set）运算</title><link>https://www.lfhacks.com/tech/python-set-operations/</link><pubDate>Mon, 10 Oct 2016 15:39:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-set-operations/</guid><description>&lt;p>数学里集合运算在 Python 语言的 set 数据类型中也有对应的运算。&lt;/p></description></item><item><title>Python 判断列表的包含关系</title><link>https://www.lfhacks.com/tech/python-inclusion-list/</link><pubDate>Sat, 08 Oct 2016 07:13:52 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-inclusion-list/</guid><description>&lt;p>有两个列表，如何判定它们之间的包含关系？Python 并没有提供原生的方法&lt;/p></description></item><item><title>Python 元组和列表的区别</title><link>https://www.lfhacks.com/tech/list-and-tuple/</link><pubDate>Sat, 11 Jul 2015 09:58:29 +0800</pubDate><guid>https://www.lfhacks.com/tech/list-and-tuple/</guid><description>Python里元组(tuple)和列表(list)的外观很相似，都属于sequence的一种。只是圆括号和方括号的区别，许多操作也相同，比如切片读取（</description></item><item><title>Python的陷阱</title><link>https://www.lfhacks.com/tech/python-traps/</link><pubDate>Fri, 21 Nov 2014 12:19:06 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-traps/</guid><description>&lt;p>写python程序时有些陷阱需要注意，不然就会对bug视而不见，或者得不到想要的结果。&lt;/p></description></item><item><title>Python all和any函数对空列表的返回值</title><link>https://www.lfhacks.com/tech/python-all-any-empty-list/</link><pubDate>Thu, 23 Oct 2014 05:24:39 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-all-any-empty-list/</guid><description>&lt;p>Python 有一对内置的函数: all() 和 any()，他们两个都接收可遍历的对象（也就是列表list、元组tuple之类的），all检查所有元素是否全都为真，any检查至少有一个元素为真。本文简单分析它们的用法。&lt;/p></description></item><item><title>正则表达式匹配文件名路径</title><link>https://www.lfhacks.com/tech/re-matching-path/</link><pubDate>Thu, 11 Sep 2014 08:14:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/re-matching-path/</guid><description>匹配文件路径的正则表达式： (\w:\\)?(\w*\\)*\w+\.\w{1,4} 可以匹配绝对路径或者相对路径</description></item><item><title>Python 正则表达式里的单行s和多行m模式</title><link>https://www.lfhacks.com/tech/python-re-single-multiline/</link><pubDate>Mon, 18 Aug 2014 12:51:23 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-re-single-multiline/</guid><description>&lt;p>Python 的 re 模块内置函数几乎都有一个 flags 参数，规定了正则匹配时的各种策略模式，其中有两个模式：单行（re.DOTALL, 或者re.S）和多行（re.MULTILINE, 或者re.M）模式。本文简单介绍下这两种模式的用法和使用场合。&lt;/p></description></item><item><title>lfhacks日记：简短精致的在线日记</title><link>https://www.lfhacks.com/tech/lfhacks-diary/</link><pubDate>Thu, 10 Jul 2014 01:21:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/lfhacks-diary/</guid><description>&lt;p>轻量易安装，极简风格；自适应移动设备屏幕，支持手机、pad、电脑同时访问；纯文本存储，不使用数据库。&lt;/p></description></item><item><title>Python 用递归生成器计算笛卡尔积</title><link>https://www.lfhacks.com/tech/python-recursive-generator/</link><pubDate>Thu, 26 Jun 2014 23:01:02 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-recursive-generator/</guid><description>&lt;p>本文介绍如何用 Python 实现向量的笛卡尔积（或者叫外积）。一个方法是使用内置函数，另一个方法使用递归生成器实现。&lt;/p></description></item><item><title>Python 检查一个变量是否序列类型</title><link>https://www.lfhacks.com/tech/python-check-if-sequence-type/</link><pubDate>Thu, 05 Jun 2014 02:04:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-check-if-sequence-type/</guid><description>&lt;p>如何判断一个序列是 sequence 类型？&lt;/p></description></item><item><title>Python 删除列表中的元素</title><link>https://www.lfhacks.com/tech/python-remove-all-occurrence/</link><pubDate>Wed, 07 May 2014 03:26:35 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-remove-all-occurrence/</guid><description>&lt;p>要想删除列表中相同值的所有元素，本文介绍一种方法。&lt;/p></description></item><item><title>锡箔船</title><link>https://www.lfhacks.com/nature/tin-boat/</link><pubDate>Sat, 03 May 2014 00:30:46 +0800</pubDate><guid>https://www.lfhacks.com/nature/tin-boat/</guid><description>&lt;p>用锡箔做一个船，看看物体自身的形状如何影响物体所受到的浮力。&lt;/p></description></item><item><title>冲不走的乒乓球（一）</title><link>https://www.lfhacks.com/nature/ping-pong-1/</link><pubDate>Thu, 01 May 2014 16:03:59 +0800</pubDate><guid>https://www.lfhacks.com/nature/ping-pong-1/</guid><description>&lt;p>水的力量大得惊人。但是，水有时候却连一个乒乓球都冲不走。这是怎么回事？&lt;/p></description></item><item><title>伯努利定律</title><link>https://www.lfhacks.com/nature/bernoulli-principle/</link><pubDate>Thu, 01 May 2014 15:55:00 +0800</pubDate><guid>https://www.lfhacks.com/nature/bernoulli-principle/</guid><description>&lt;p>伯努利定律告诉我们，流速快的流体压强小。但这又有什么用？&lt;/p></description></item><item><title>冲不走的乒乓球（二）</title><link>https://www.lfhacks.com/nature/ping-pong-2/</link><pubDate>Thu, 01 May 2014 15:51:56 +0800</pubDate><guid>https://www.lfhacks.com/nature/ping-pong-2/</guid><description>&lt;p>在 &lt;a href="https://www.lfhacks.com/nature/ping-pong-1/">《冲不走的乒乓球（一）》&lt;/a> 实验里，用空气流代替水流，也能得到相同的结果。&lt;/p></description></item><item><title>飘起的纸条</title><link>https://www.lfhacks.com/nature/paper-lift/</link><pubDate>Thu, 01 May 2014 15:38:39 +0800</pubDate><guid>https://www.lfhacks.com/nature/paper-lift/</guid><description>&lt;p>给你一张轻薄的纸，不靠其他工具，如何让它飘浮在空中？&lt;/p></description></item><item><title>自制喷雾器</title><link>https://www.lfhacks.com/nature/diy-sprayer/</link><pubDate>Thu, 01 May 2014 15:35:40 +0800</pubDate><guid>https://www.lfhacks.com/nature/diy-sprayer/</guid><description>&lt;p>喷雾器用在清洁、浇花、绘图、涂漆等场合，能喷出均匀的雾滴，想自己用简单的材料做一个喷雾器吗？同时也要了解其中的道理。&lt;/p></description></item><item><title>康达效应</title><link>https://www.lfhacks.com/nature/coanda-effect/</link><pubDate>Thu, 01 May 2014 15:29:05 +0800</pubDate><guid>https://www.lfhacks.com/nature/coanda-effect/</guid><description>&lt;p>&lt;a href="https://www.lfhacks.com/nature/blow-a-candle/">隔瓶吹蜡烛&lt;/a> 实验的原理总结为康达效应，本文中我们来深入了解康达效应。&lt;/p></description></item><item><title>隔瓶吹蜡烛</title><link>https://www.lfhacks.com/nature/blow-a-candle/</link><pubDate>Thu, 01 May 2014 15:25:43 +0800</pubDate><guid>https://www.lfhacks.com/nature/blow-a-candle/</guid><description>&lt;p>蜡烛可以轻松的吹灭，但是，如果在你和蜡烛中间放一个瓶子，你还能吹灭蜡烛吗？&lt;/p></description></item><item><title>倒杯不洒</title><link>https://www.lfhacks.com/nature/floating-water/</link><pubDate>Thu, 01 May 2014 15:23:30 +0800</pubDate><guid>https://www.lfhacks.com/nature/floating-water/</guid><description>&lt;p>一杯水用一张薄纸就能托起来，而不会靠重力流出杯子，是什么力量在托着水？&lt;/p></description></item><item><title>简易气垫船</title><link>https://www.lfhacks.com/nature/hovercraft/</link><pubDate>Thu, 01 May 2014 15:20:35 +0800</pubDate><guid>https://www.lfhacks.com/nature/hovercraft/</guid><description>&lt;p>用日常生活中常见的材料自己做一个气垫船，可以在桌子上自由的滑动。&lt;/p></description></item><item><title>Python 多重列表解析里for的顺序</title><link>https://www.lfhacks.com/tech/python-for-in-multi-list-comprehension/</link><pubDate>Thu, 01 May 2014 08:22:36 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-for-in-multi-list-comprehension/</guid><description>目标 比如有一个二维数组字典，我们如果想将它拉伸（flatten），为一维字典，就可以用多重列表解析方法： data = {'A':[1, 2, 3], 'B':[4, 5, 6], 'C':[7, 8, 9]} 想要拉伸成一维的线性结构</description></item><item><title>漂浮的冰</title><link>https://www.lfhacks.com/nature/floating-ice/</link><pubDate>Tue, 29 Apr 2014 13:29:49 +0800</pubDate><guid>https://www.lfhacks.com/nature/floating-ice/</guid><description>&lt;p>冰作为水的固态形式，密度反而比液态的水更小，比如冰能漂浮在水面上。这个神奇的现象有什么实际意义？&lt;/p></description></item><item><title>Python 列表元素替换</title><link>https://www.lfhacks.com/tech/python-list-element-replace/</link><pubDate>Tue, 29 Apr 2014 12:43:13 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-list-element-replace/</guid><description>无内置replace Python里 字符串（string）类型 有 replace 方法，但是 列表（list）类型 没有 类似的 replace 方法，见下面的报错信息： &amp;gt;&amp;gt;&amp;gt; lst = ['1','2','3'] &amp;gt;&amp;gt;&amp;gt; lst.replace('1', '4') Traceback (most recent</description></item><item><title>估算水的比热容</title><link>https://www.lfhacks.com/nature/evaluate-water-heat/</link><pubDate>Sat, 26 Apr 2014 08:12:39 +0800</pubDate><guid>https://www.lfhacks.com/nature/evaluate-water-heat/</guid><description>&lt;p>水是比热容最大的物质，我们有没有办法以日常生活中常见的物品，粗略地估算出水的比热呢？&lt;/p></description></item><item><title>不怕火的气球</title><link>https://www.lfhacks.com/nature/fireproof-balloon/</link><pubDate>Sat, 26 Apr 2014 08:10:03 +0800</pubDate><guid>https://www.lfhacks.com/nature/fireproof-balloon/</guid><description>&lt;p>塑料气球一见火就融化了，但是装满水的气球为什么不怕火烧？&lt;/p></description></item><item><title>苏打火山</title><link>https://www.lfhacks.com/nature/soda-volcano/</link><pubDate>Sat, 26 Apr 2014 07:59:24 +0800</pubDate><guid>https://www.lfhacks.com/nature/soda-volcano/</guid><description>用厨房里简单易得的原材料醋和苏打粉就能做出很有观赏性的化学实验，像火山一样。最后验证下产生的是什么气体。 材料 醋（白醋更好） 小苏打粉或者纯碱 碗 蜡烛 实验步</description></item><item><title>沸腾吧，可乐！</title><link>https://www.lfhacks.com/nature/mentos-coke/</link><pubDate>Sat, 26 Apr 2014 07:54:53 +0800</pubDate><guid>https://www.lfhacks.com/nature/mentos-coke/</guid><description>&lt;p>曼妥思+可乐实验效果十分惊人，几颗曼妥思投入可乐瓶后，一根硕大的可乐柱从可乐瓶中喷涌而出。&lt;/p></description></item><item><title>跳动的葡萄干</title><link>https://www.lfhacks.com/nature/dancing-rasin/</link><pubDate>Sat, 26 Apr 2014 07:47:13 +0800</pubDate><guid>https://www.lfhacks.com/nature/dancing-rasin/</guid><description>&lt;p>想看到在水里上下跳动的葡萄干吗？就像在水里跳舞一样。是什么原因让葡萄干能浮上水面，这其中又有哪些物质的作用？这个实验现象非常有趣，不妨在家里一试！&lt;/p></description></item><item><title>蜡烛中的碳</title><link>https://www.lfhacks.com/nature/composition-candle/</link><pubDate>Sat, 26 Apr 2014 07:23:27 +0800</pubDate><guid>https://www.lfhacks.com/nature/composition-candle/</guid><description>&lt;p>制造蜡烛的主要原料是石蜡，有没有简单的办法验证其中的碳元素？&lt;/p></description></item><item><title>为什么阴井盖是圆的？</title><link>https://www.lfhacks.com/blog/round-man-hole/</link><pubDate>Sat, 26 Apr 2014 07:04:35 +0800</pubDate><guid>https://www.lfhacks.com/blog/round-man-hole/</guid><description>阴井盖的形状为什么是圆的？事实上是有许多原因，比如： 安全原因 阴井设在大路上，每天走路的人来人往，设计时就要注意行人的安全，在安装和使用中，阴井盖不能意</description></item><item><title>Python 创建空列表的字典</title><link>https://www.lfhacks.com/tech/python-empty-dictionary/</link><pubDate>Thu, 10 Apr 2014 04:22:18 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-empty-dictionary/</guid><description>&lt;p>如果要在 Python 中创建键值是空列表的字典，有多种方法，但是各种方法之间是否由区别？需要作实验验证，并且分析产生的原因。本文针对两种方法做了实验和分析。&lt;/p></description></item><item><title>Python 列表作为默认参数</title><link>https://www.lfhacks.com/tech/python-list-parameter/</link><pubDate>Tue, 08 Apr 2014 14:24:15 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-list-parameter/</guid><description>如果将一个列表作为默认参数传递给函数，在函数内部对列表操作后会怎样呢？我们看下面的代码： def func(L=[]): L.append(1) return L print func() print func() print func() 函数func()接受一个参数，这个参数的</description></item><item><title>python 里list, tuple, set, dict的异同</title><link>https://www.lfhacks.com/tech/list-tuple-set-dict/</link><pubDate>Tue, 08 Apr 2014 13:56:31 +0800</pubDate><guid>https://www.lfhacks.com/tech/list-tuple-set-dict/</guid><description>&lt;p>在 Python 中，如何替换列表中的元素？其实 Python 并无自带 Replace 方法，只能自己编写循环或者使用列表解析的方法。&lt;/p></description></item><item><title>Python 的zip函数</title><link>https://www.lfhacks.com/tech/python-zip/</link><pubDate>Mon, 07 Apr 2014 07:32:15 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-zip/</guid><description>Python 的zip函数，简言之，实现矩阵的转置。比如，给出4x2矩阵 1 5 2 6 3 7 4 8 通过zip函数，可以得到它的2x4转置矩阵 5 6 7 8 具体做法是：把前面的4x</description></item><item><title>Python 里 immutable和hashable的概念</title><link>https://www.lfhacks.com/tech/immutable-hashable-in-python/</link><pubDate>Sun, 06 Apr 2014 11:28:46 +0800</pubDate><guid>https://www.lfhacks.com/tech/immutable-hashable-in-python/</guid><description>immutable immutable指对象一经创建，即不可修改。对象是不是immutable取决于数据类型，下列类型属于 immutable 整型（integer） 浮点型 （float） 字</description></item><item><title>Python 读取csv的某行</title><link>https://www.lfhacks.com/tech/python-read-specific-row-csv/</link><pubDate>Sat, 05 Apr 2014 06:47:35 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-read-specific-row-csv/</guid><description>&lt;p>利用Python自带的 csv模块 ，有两种方法可以实现提取其中的一行&lt;/p></description></item><item><title>Python 读取csv的某列</title><link>https://www.lfhacks.com/tech/python-read-specific-column-csv/</link><pubDate>Sat, 05 Apr 2014 06:21:00 +0800</pubDate><guid>https://www.lfhacks.com/tech/python-read-specific-column-csv/</guid><description>&lt;p>CSV 本质上是文本文件，能提供与 Excel 的表格类似的二维数据结构。因为是文本文件，读写都比 Excel 方便容易的多，经常拿来作为数据的中转格式。本文讨论如何快速有效的按列读取 CSV 文件。&lt;/p></description></item><item><title>Python 根据坐标列表提取列表内容</title><link>https://www.lfhacks.com/tech/extract-by-index-python/</link><pubDate>Thu, 03 Apr 2014 01:42:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/extract-by-index-python/</guid><description>比如有一个名为 index 的 list，内容为坐标 index = [0, 2] 另有一个原始 list ，名为 data data = [1, 2, 3, 4, 5] 以 index 内容为坐标，从 data 里得到坐标对应的第0个和第2个元素，可以用下面的</description></item><item><title>Python 提取两个列表的共同元素</title><link>https://www.lfhacks.com/tech/duplicate-elements-python/</link><pubDate>Wed, 02 Apr 2014 13:58:29 +0800</pubDate><guid>https://www.lfhacks.com/tech/duplicate-elements-python/</guid><description>&lt;p>Python如何提取两个列表的共同元素？也就是取两个集合的交集。除了常规的循环外，Python提供了一些更简洁更美的表达法，比如可以用列表解析的方法，或者用 Python 内置的集合运算。&lt;/p></description></item><item><title>Python 提取字典的一部分</title><link>https://www.lfhacks.com/tech/subdictionary-python/</link><pubDate>Wed, 02 Apr 2014 13:49:10 +0800</pubDate><guid>https://www.lfhacks.com/tech/subdictionary-python/</guid><description>&lt;p>Python如何提取提取字典的一部分，即子字典(sub-dictionary)？&lt;/p></description></item><item><title>零基础学习WCDMA(7)：时分多址</title><link>https://www.lfhacks.com/tech/wcdma07/</link><pubDate>Sat, 29 Mar 2014 07:37:17 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma07/</guid><description>凭直觉，最简单的混合方法，就是把多个用户的信息依次放在一个通道上，再在接收端依次取出。这就需要把每个用户的信息在按固定的时间端切片，再将多个切片组合。</description></item><item><title>Big Bang里《Bernadette之歌》歌词的梗</title><link>https://www.lfhacks.com/blog/big-bang-howard-lyrics/</link><pubDate>Mon, 04 Nov 2013 04:20:40 +0800</pubDate><guid>https://www.lfhacks.com/blog/big-bang-howard-lyrics/</guid><description>&lt;p>《生活大爆炸》第七季第6集里发生了很多浪漫的事。比如这首 Howard 自己担任主唱并演奏向 Bernadette 表白的歌，充满了科技梗。&lt;/p></description></item><item><title>零基础学习WCDMA(5)：多址接入</title><link>https://www.lfhacks.com/tech/wcdma5/</link><pubDate>Sun, 13 Oct 2013 15:05:56 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma5/</guid><description>篇前问题 为什么要多址接入？有哪些多址接入方法？ 上一篇零基础学习WCDMA(4)：解扩 的最后举了关于火车、地铁运输旅客的例子，本篇继续用这个例子介绍多址</description></item><item><title>英文月份名称的由来</title><link>https://www.lfhacks.com/blog/name-of-the-months/</link><pubDate>Sun, 01 Sep 2013 01:32:15 +0800</pubDate><guid>https://www.lfhacks.com/blog/name-of-the-months/</guid><description>历法 在我们日常生活中有两种历法，一为阳历（公历）；一为阴历（农历） 。 阳历是一般公用的历法──一年十二个月，一年三百六十五天，大月三十一日，小月三十日，</description></item><item><title>今天学到的2个新词</title><link>https://www.lfhacks.com/blog/new-idioms/</link><pubDate>Mon, 24 Jun 2013 13:10:36 +0800</pubDate><guid>https://www.lfhacks.com/blog/new-idioms/</guid><description>YMMV YMMV的意思是&amp;quot;因人而异&amp;quot;。全称是Your mileage may vary. 字面意是&amp;quot;你的哩程可能会不同&amp;quot;。一般会出现在网上回答了别人</description></item><item><title>零基础学习WCDMA(4)：解扩</title><link>https://www.lfhacks.com/tech/wcdma4/</link><pubDate>Sat, 15 Jun 2013 00:11:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma4/</guid><description>篇前问题 相关接收机的处理过程是怎样的？ 如何扩频 上一篇: 零基础学习WCDMA(3)：码片 里讲了发送方如何将原始序列(1，-1)扩频为 (1，-1，1，-1</description></item><item><title>零基础学习WCDMA(3)：码片</title><link>https://www.lfhacks.com/tech/wcdma3/</link><pubDate>Fri, 07 Jun 2013 14:33:07 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma3/</guid><description>每篇开头会提出一个问题，希望能引起你的思考，并且请你试着回答。相信在读完整篇后，你会有明确的答案。 下面关于码片速率，正确的是 A. 随着用户数据的速率变化而</description></item><item><title>零基础学习WCDMA(2)：异或</title><link>https://www.lfhacks.com/tech/wcdma2/</link><pubDate>Fri, 24 May 2013 04:39:19 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma2/</guid><description>每篇开头会提出一个问题，希望能引起你的思考，并且请你试着回答。相信在读完整篇后，你会有明确的答案。 问题：异或运算能用代数方法表示吗？ A. 不能 B. 只能用加法</description></item><item><title>零基础学习WCDMA(1)：开篇</title><link>https://www.lfhacks.com/tech/wcdma1/</link><pubDate>Wed, 22 May 2013 04:49:02 +0800</pubDate><guid>https://www.lfhacks.com/tech/wcdma1/</guid><description>UMTS、UTRAN、UE、NodeB、RNC、Iu、IuB、CN、SGSN、GGSN、MSC、HLR、VLR、IMEI、IMSI、RNTI、LAC、</description></item><item><title>American Pie 歌词解析</title><link>https://www.lfhacks.com/blog/lyrics-of-american-pie/</link><pubDate>Sat, 11 May 2013 17:01:19 +0800</pubDate><guid>https://www.lfhacks.com/blog/lyrics-of-american-pie/</guid><description>&lt;p>Don Mclean，1945年10月2日出生于美国纽约，他的代表作就是1971年发布的专辑《American Pie》里两首歌：长达8分钟的American Pie 和脍炙人口的 Vincent (Starry, Starry Night). 不仅使他一夜成名，不需要再找工作，而且把他和他的这首作品一直流传到了今天。&lt;/p></description></item><item><title>离线维基百科wikisrvd修改各处字体外观的方法</title><link>https://www.lfhacks.com/tech/change-styles-of-wikisrvd/</link><pubDate>Sun, 14 Apr 2013 06:50:44 +0800</pubDate><guid>https://www.lfhacks.com/tech/change-styles-of-wikisrvd/</guid><description>&lt;p>iPhone、iPad上可以用wikisrvd浏览离线维基百科，可谓一款杀手级应用，可是wikisrvd默认的字体非常小，读起来很吃力。其实只要修改内部的配置文件或者源文件就可以调整字体的各种外观。本文介绍修改的方法。&lt;/p></description></item><item><title>Thinkpad X230 开箱照！</title><link>https://www.lfhacks.com/blog/thinkpad-x230/</link><pubDate>Thu, 08 Nov 2012 16:54:02 +0800</pubDate><guid>https://www.lfhacks.com/blog/thinkpad-x230/</guid><description>&lt;p>电脑从 Thinkpad X61 换到了 Thinkpad X230，借此机会拍一组 X230 的开箱照，并比较这两个X 系列型号的异同。&lt;/p></description></item><item><title>世界电压插座标准乱象的前世今生</title><link>https://www.lfhacks.com/blog/electricity-around-the-world/</link><pubDate>Thu, 11 Oct 2012 14:28:23 +0800</pubDate><guid>https://www.lfhacks.com/blog/electricity-around-the-world/</guid><description>&lt;p>直到今天，世界各国的民用电力标准五花八门，无论是电压、频率、插头的尺寸、形状，各国都实行独特的国家标准，而从未有过统一的世界标准。本文讨论这种现象的由来。&lt;/p></description></item><item><title>成功修复鼠标按键</title><link>https://www.lfhacks.com/blog/diy-mouse-repair/</link><pubDate>Sat, 22 Sep 2012 16:41:41 +0800</pubDate><guid>https://www.lfhacks.com/blog/diy-mouse-repair/</guid><description>&lt;p>手里两个罗技无线鼠标同时出现了单击变双击的问题。显然，是微动开关的问题。一直以为没救了，闲置了半年。现在下决心修好，每个鼠标前后花了10分钟就复活了。&lt;/p></description></item><item><title>横向的Word文档怎么加页眉页脚</title><link>https://www.lfhacks.com/tech/header-and-footer-in-landscape/</link><pubDate>Tue, 04 Sep 2012 12:09:35 +0800</pubDate><guid>https://www.lfhacks.com/tech/header-and-footer-in-landscape/</guid><description>&lt;p>Word文档里面，正式文档经常需要加页眉页脚，用来在每页显示相同的文档信息和页码。但是横向排版的页面内，页眉页脚的默认方向不便于打印。本文提供一种方法。&lt;/p></description></item><item><title>商标通用化的故事：商标代替商品名</title><link>https://www.lfhacks.com/blog/genericized-trademarks/</link><pubDate>Thu, 30 Aug 2012 05:37:06 +0800</pubDate><guid>https://www.lfhacks.com/blog/genericized-trademarks/</guid><description>&lt;p>许多我们日常挂在嘴边的商品名称，其实原先是其中某一种商品的商标，可能因为这些商标过于知名，也可能是因为这些商标开拓了新的领域，这些驰名商标逐渐成为同一类商品的代称，也就是商标通用或商标淡化，这是个很有意思的现象。&lt;/p></description></item><item><title>搜索空文件夹的批处理程序</title><link>https://www.lfhacks.com/tech/batch-null-dir-finder/</link><pubDate>Thu, 16 Aug 2012 02:50:49 +0800</pubDate><guid>https://www.lfhacks.com/tech/batch-null-dir-finder/</guid><description>&lt;p>有时候需要搜索查找空文件夹，一个方法是将浏览器旁的目录树打开，挨个查看，如果有成百上千个目录呢，以人力去找就太费时费力了，本文介绍一个批处理程序，可以代替人力完成这个任务。&lt;/p></description></item><item><title>Sn0wbreeze不能运行？</title><link>https://www.lfhacks.com/tech/sn0wbreeze/</link><pubDate>Wed, 01 Aug 2012 04:43:53 +0800</pubDate><guid>https://www.lfhacks.com/tech/sn0wbreeze/</guid><description>Sn0wbreeze 是用来定制苹果设备固件的利器，可以在保持基带的同时，升级系统版本，方便有锁设备的解锁。 但是在Windows XP系统里，直接运行Sn0wbreeze，</description></item><item><title>天线的驻波比</title><link>https://www.lfhacks.com/tech/standing-wave-ratio/</link><pubDate>Thu, 26 May 2011 17:15:46 +0800</pubDate><guid>https://www.lfhacks.com/tech/standing-wave-ratio/</guid><description>&lt;p>驻波比是衡量射频器件之间阻抗匹配程度的重要参数，它的概念和阻抗匹配的概念紧密相关。&lt;/p></description></item><item><title>天线参数：增益Gain</title><link>https://www.lfhacks.com/tech/antenna-gain/</link><pubDate>Tue, 10 May 2011 18:28:21 +0800</pubDate><guid>https://www.lfhacks.com/tech/antenna-gain/</guid><description>天线增益是用来衡量天线将能量集中发射或集中接收的能力，它是选择基站天线最重要的参数之一。增益的定义是指天线最强辐射方向的天线辐射方向图强度与参考天线的</description></item><item><title>天线参数：方向图Radiation pattern</title><link>https://www.lfhacks.com/tech/radiation-pattern-of-anttenas/</link><pubDate>Mon, 09 May 2011 07:24:58 +0800</pubDate><guid>https://www.lfhacks.com/tech/radiation-pattern-of-anttenas/</guid><description>天线的方向性是指距离天线相同的距离上、天线辐射的电场强度与空间方向的关系。以天线的几何中心为原点，与中心等距离点的天线辐射场强大小在空间的分布图形就是</description></item><item><title>本拉登别墅的Google Earth坐标</title><link>https://www.lfhacks.com/blog/osama-bin-ladens-compound-coordinate/</link><pubDate>Wed, 04 May 2011 02:35:57 +0800</pubDate><guid>https://www.lfhacks.com/blog/osama-bin-ladens-compound-coordinate/</guid><description>本拉登别墅的 Google Earth 经纬度： 小数：纬度34.169250°, 经度73.242617° 度分秒：纬度34°10'9.30&amp;quot;, 经度73°14'33.4</description></item><item><title>宜家帕克斯（PAX）衣柜的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-pax-the-wardrobe-of-ikea/</link><pubDate>Mon, 02 May 2011 01:52:36 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-pax-the-wardrobe-of-ikea/</guid><description>&lt;p>帕克斯（PAX）是宜家的经典卧室衣柜系列。本文记录了我自己拼装宜家帕克斯（PAX）衣柜的过程。&lt;/p></description></item><item><title>宜家尼沃尔（NYVOLL）床头柜的拼装</title><link>https://www.lfhacks.com/blog/assembling-nyvoll-the-bedside-table-of-ikea/</link><pubDate>Mon, 02 May 2011 00:43:11 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-nyvoll-the-bedside-table-of-ikea/</guid><description>&lt;p>尼沃尔是宜家的新卧室系列，有床架、床头柜、三斗橱等。我们为了让卧室有统一的风格，选择了尼沃尔的床架和床头柜，其特点是中褐色框架加高光白色面板。尼沃尔没有衣柜系列，但可以用新出的中褐色帕克斯（Pax）衣柜框架配法尔多（Fardal）高亮白色门，一样能组成尼沃尔的风格。&lt;/p></description></item><item><title>宜家桑比（SANDBY）沙发的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-sandby-sofa-of-ikea/</link><pubDate>Sun, 24 Apr 2011 05:55:04 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-sandby-sofa-of-ikea/</guid><description>&lt;p>桑比（Sandby）是2011年新上市的沙发，有单人（没扶手）、双人和三人3种规格，适合前后距离不太大、面积较小的客厅。外形朴素、无修饰，适合简单装修的家庭。沙发套可以拆下来洗，但是只有白、绿、棕三种颜色，我们选了绿色。价格：RMB1199。本文记录了我拼装桑比沙发的过程。&lt;/p></description></item><item><title>Textpattern的主机迁移步骤</title><link>https://www.lfhacks.com/tech/move-textpattern-to-another-host/</link><pubDate>Wed, 20 Apr 2011 06:43:17 +0800</pubDate><guid>https://www.lfhacks.com/tech/move-textpattern-to-another-host/</guid><description>上周成功转移了网站的主机，除了文件备份和数据库转移等操作，还有与textpattern自身相关的配置。由于使用textpattern系统不久，都是摸索</description></item><item><title>为什么救护车上的Ambulance反着写</title><link>https://www.lfhacks.com/blog/mirror-writing-of-ambulance/</link><pubDate>Mon, 18 Apr 2011 06:14:39 +0800</pubDate><guid>https://www.lfhacks.com/blog/mirror-writing-of-ambulance/</guid><description>在电影里看到的有些救护车（Ambulance）或急救车（Emergency）车头上的字反着写，像下面这样： 这种写法叫镜像写法（mirror writin</description></item><item><title>吕姓的几种英文拼法</title><link>https://www.lfhacks.com/blog/english-spelling-of-my-family-name/</link><pubDate>Wed, 30 Mar 2011 06:32:42 +0800</pubDate><guid>https://www.lfhacks.com/blog/english-spelling-of-my-family-name/</guid><description>&lt;p>作为姓吕的人，经常要发愁自己的姓怎么翻成英文。发文章、办护照、上飞机，不应有恨，谁叫咱们都姓吕。仔细观察我的网站的最下方，我采用的是Lyu的拼法。但是到现在吕姓还没有一个统一的拼法…&lt;/p></description></item><item><title>高音C之王——帕瓦罗蒂（试听）</title><link>https://www.lfhacks.com/blog/king-of-the-high-c-luciano-pavarotti/</link><pubDate>Tue, 29 Mar 2011 20:22:36 +0800</pubDate><guid>https://www.lfhacks.com/blog/king-of-the-high-c-luciano-pavarotti/</guid><description>&lt;p>一个由中音C到高音C的跳跃，如此两次，接着又是两个纯八度的跳跃。然后，以一个拖长的高音C结束全曲。所以一共是五出高音C，只不过前四个跳上去的C都是分两口气唱出，只有最后一个一气呵成，所以一共九声响。&lt;/p></description></item><item><title>宜家英格（INGO）餐桌刷漆DIY</title><link>https://www.lfhacks.com/blog/diy-lacquering-ingo-table-of-ikea/</link><pubDate>Mon, 28 Mar 2011 18:20:25 +0800</pubDate><guid>https://www.lfhacks.com/blog/diy-lacquering-ingo-table-of-ikea/</guid><description>这篇文章 宜家英格（INGO）餐桌的拼装过程 里介绍了我自己组装英格INGO的过程，但是这种餐桌材料是表面未处理的松木，容易受潮、吸水、发霉、变形、开裂、</description></item><item><title>塔吊是怎么长高的？</title><link>https://www.lfhacks.com/blog/how-tower-cranes-grow-up/</link><pubDate>Sun, 27 Mar 2011 15:53:19 +0800</pubDate><guid>https://www.lfhacks.com/blog/how-tower-cranes-grow-up/</guid><description>&lt;p>建筑工地上的塔吊，为工地搬运重物，随着楼房的升高而升高。那么重的塔臂是如何升高的呢？&lt;/p></description></item><item><title>Textile 语法</title><link>https://www.lfhacks.com/tech/textile-syntax/</link><pubDate>Sun, 27 Mar 2011 12:50:47 +0800</pubDate><guid>https://www.lfhacks.com/tech/textile-syntax/</guid><description>&lt;p>Textile 是类似 MarkDown 一样的快速小型标记性语言，让用户能够快速的设计格式，将注意力集中在格式上面，而不是XHTML的语法和尖括号的配对上面。本文简单介绍 Textile 语法。&lt;/p></description></item><item><title>宜家马尔姆（MALM）三斗柜的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-chests-of-drawers-malm-of-ikea/</link><pubDate>Sat, 26 Mar 2011 16:36:42 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-chests-of-drawers-malm-of-ikea/</guid><description>&lt;p>马尔姆是宜家的卧室家具系列，全系列从两抽屉床头柜到六斗柜再到双人床。本着够用即可的原则，我们选了里面的三斗柜，RMB 499。本文记录了我自己拼装宜家埃克佩迪（EXPEDIT）搁架单元的过程。&lt;/p></description></item><item><title>宜家毕利（BILLY）书架的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-bookcase-billy-of-ikea/</link><pubDate>Sat, 26 Mar 2011 09:20:04 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-bookcase-billy-of-ikea/</guid><description>&lt;p>毕利书架是宜家比较有名的一个系列，本文记录了我自己拼装宜家著名的毕利(BILLY)书架的过程，整个过程中感受到了宜家的包装风格和简单易装的设计。&lt;/p></description></item><item><title>按关键字检测文件（夹）是否存在的批处理程序</title><link>https://www.lfhacks.com/tech/batch-file-finder/</link><pubDate>Wed, 23 Mar 2011 15:54:22 +0800</pubDate><guid>https://www.lfhacks.com/tech/batch-file-finder/</guid><description>&lt;p>在使用了 &lt;a href="https://www.lfhacks.com/tech/script-for-batch-search-and-copy-or-cut/">批量搜索并复制/剪切文件的批处理程序&lt;/a> 中的批处理程序之后，往往还需要和原有的关键字比对，知道搜索到了多少文件。这就需要一个工具，能够批量检测一批关键字是否存在于一堆文件里。&lt;/p></description></item><item><title>宜家埃克佩迪（EXPEDIT）的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-bookcase-expedit-of-ikea/</link><pubDate>Mon, 21 Mar 2011 15:38:19 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-bookcase-expedit-of-ikea/</guid><description>&lt;p>埃克佩迪搁架单元，RMB 599，比较方正、结实的搁架，可以放书、杂物等。有很多种规格，我买的是 2×4 格的。下面记录了我们自己的埃克佩迪EXPEDIT的组装过程。&lt;/p></description></item><item><title>宜家英格（INGO）餐桌的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-dinner-table-ingo-of-ikea/</link><pubDate>Mon, 21 Mar 2011 14:25:26 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-dinner-table-ingo-of-ikea/</guid><description>&lt;p>英格INGO，120cm×75cm的无漆松木餐桌，宜家还有款类似大小的上漆桦木餐桌&amp;quot;比库德&amp;quot;，我们在犹豫不决中错过机会，看着全国的宜家&amp;quot;比库德&amp;quot;库存一件件减少，直到最后一张卖出才开始后悔没有及时下手。本文记录了拼装宜家英格（INGO）餐桌的过程。&lt;/p></description></item><item><title>宜家贝达（BESTÅ）电视柜的拼装过程</title><link>https://www.lfhacks.com/blog/assembling-tv-bench-besta-of-ikea/</link><pubDate>Sun, 20 Mar 2011 17:47:41 +0800</pubDate><guid>https://www.lfhacks.com/blog/assembling-tv-bench-besta-of-ikea/</guid><description>贝达是宜家的电视柜系列，我选择了最简单的一款贝达电视柜。本文记录了我自己的拼装过程。 购买 我们选的是1.2m×40cm×40cm的搁架单元。 虽然现在贝达</description></item><item><title>宜家用的板材</title><link>https://www.lfhacks.com/blog/board-material-of-ikea/</link><pubDate>Fri, 18 Mar 2011 19:40:23 +0800</pubDate><guid>https://www.lfhacks.com/blog/board-material-of-ikea/</guid><description>&lt;p>就我所知，宜家的板式家具用的大部分是刨花板。这个名字听起来不是很上档次，但其实这是相对经济，也能保证家具质量的板材。本文简单介绍下我所见过的宜家板材类型——刨花板。&lt;/p></description></item><item><title>批量搜索并复制/剪切文件的批处理程序</title><link>https://www.lfhacks.com/tech/script-for-batch-search-and-copy-or-cut/</link><pubDate>Mon, 07 Mar 2011 06:46:32 +0800</pubDate><guid>https://www.lfhacks.com/tech/script-for-batch-search-and-copy-or-cut/</guid><description>&lt;p>搜索包含关键字的文件名是最常用的功能之一，比如按人名搜索mp3、按内容搜索图纸等等，当需要搜索成百上千个关键词时，会消耗大量的人力和时间，这时就需要批量搜索功能。本文介绍一个我自己编写的、用于批量搜索文件的批处理程序&lt;/p></description></item><item><title>iPad2 和 iPad1 的参数对比</title><link>https://www.lfhacks.com/blog/comparison-between-ipad2-and-ipad1/</link><pubDate>Thu, 03 Mar 2011 12:01:12 +0800</pubDate><guid>https://www.lfhacks.com/blog/comparison-between-ipad2-and-ipad1/</guid><description>&lt;p>北京时间3月3日凌晨2点，苹果在旧金山芳草地艺术中心发布iPad 2和iOS
4.3，此前一直传闻缺席的乔布斯仍然穿着千年不变的黑色长袖衫加蓝色牛仔裤现身并主持发布会。iPad
2和上一版本iPad有什么区别和不同呢，本文做了一番比较&lt;/p></description></item><item><title>在局域网里组建搜索服务器</title><link>https://www.lfhacks.com/blog/build-search-server-in-lan/</link><pubDate>Thu, 17 Feb 2011 06:01:14 +0800</pubDate><guid>https://www.lfhacks.com/blog/build-search-server-in-lan/</guid><description>&lt;p>工作中，经常需要搜索文件，这些文件集中保存在一台连在局域网上的公共计算机上，那么希望用这台计算机提供搜索服务，使局域网上的其他计算机都能方便的搜索并且下载文件。经过一星期的研究，我最终用Google Desktop Search(GDS)得到了满意的结果，现在一直在稳定运行。&lt;/p></description></item><item><title>Spell.py 代码</title><link>https://www.lfhacks.com/docs/spell-correct/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.lfhacks.com/docs/spell-correct/</guid><description>原文链接：如何编写拼写检查器 代码来源： https://norvig.com/spell.py &amp;quot;&amp;quot;&amp;quot;Spelling Corrector in Python 3; see http://norvig.com/spell-correct.html Copyright (c) 2007-2016 Peter Norvig MIT license: www.opensource.org/licenses/mit-license.php &amp;quot;&amp;quot;&amp;quot; ################ Spelling Corrector import re from collections import Counter def words(text): return re.findall(r'\w+', text.lower()) WORDS = Counter(words(open('big.txt').read())) def P(word, N=sum(WORDS.values())): &amp;quot;Probability of `word`.&amp;quot; return WORDS[word] / N def correction(word): &amp;quot;Most probable spelling correction for word.&amp;quot; return max(candidates(word), key=P) def</description></item><item><title>捐助记录</title><link>https://www.lfhacks.com/about/donate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.lfhacks.com/about/donate/</guid><description>感谢各位捐助者！一分钱也是爱！ 时间 捐助者 金额 留言 2023.5 *江 5.40 今天五四，保持年轻，保持求新~~ 2022.12 *东 0.05 五分钱也是爱 2022.8 *影 5.00 2022.8 *雄 2.00 2022.6 **兵 5.00 支持一下 2022.6 *曾 1.00</description></item></channel></rss>