LeetCode101
tags: Algorithm,Data Structures 又要开始找工作了,刷题、刷题、刷题!步骤: 按顺序找到题目 解题/学习 总结考察的点(树、双指针、回溯、DP、模拟现实、递归) 刷相同解法框架的题 一些模糊的感觉: 尝试不同的遍历顺序可能是解题关键,正序遍历不行试一下反序遍历,反之亦然! 以上到达一定量之后在 LeetCode 创建一个新的 session 重新刷起。
tags: Algorithm,Data Structures 又要开始找工作了,刷题、刷题、刷题!步骤: 按顺序找到题目 解题/学习 总结考察的点(树、双指针、回溯、DP、模拟现实、递归) 刷相同解法框架的题 一些模糊的感觉: 尝试不同的遍历顺序可能是解题关键,正序遍历不行试一下反序遍历,反之亦然! 以上到达一定量之后在 LeetCode 创建一个新的 session 重新刷起。
tags: Computer Systems,Linux source: 262588213843476. “Fork() Is Evil; Vfork() Is Goodness; Afork() Would Be Better; Clone() Is Stupid.” Gist. Accessed March 2, 2022. https://gist.github.com/nicowilliams/a8a07b0fc75df05f684c23c18d7db234.
tags: English Listening Practice source: https://www.youtube.com/channel/UCSHZKyawb77ixDdsGog4iWA
tags: Learning English
物前白 动前土 行动后面双人来
tags: Financial Management,Wealth,English Listening Practice source: Naval. “How to Get Rich,” December 28, 2019. https://nav.al/rich. YouTube: https://www.youtube.com/watch?v=1-TZqOsVCNM
tags: Design
tags: Online Tools,Material Design,Design source: https://material.io/design/color/the-color-system.html#tools-for-picking-colors full: https://material.io/resources/color/#!/?view.left=0&view.right=0&primary.color=b3e4ff
tags: Design,Material Design: Tools for picking colorsMaterial Design source: Material Design. “Material Design.” Accessed February 12, 2022. https://material.io/design/color/the-color-system.html#color-usage-and-palettes. Principles Hierarchical Color indicates which elements are interactive, how they relate to other elements, and their level of prominence. Important elements should stand out the most. Legible Text and import elements, like icons, should meet legibility standards when appearing on colored backgrounds. Expressive Show brand colors at memorable moments that reinforce your brand’s style. ...
tags: GUI,GTK source: “Text Widget Overview.” Accessed February 9, 2022. https://docs.huihoo.com/gtk/3.0.3/TextWidget.html. GtkTextBuffer for the text to edit. GtkTextIter to manipulate text, can’t be used to preserve positions across buffer modifications GtkTextMark can be used to preserve a position. GtkTextView to show GtkTextBuffer. GtkTextTagTable to control the appearence of text, like bold/color/etc.
tags: Rust GUI,Elm,GTK
source: https://elm-lang.org/ A delightful language for reliable web applications.
tags: Rust GUI,Elm The most popular GUI library for Rust.
tags: Rust GUI source: “Are We GUI Yet?” Accessed February 8, 2022. https://www.areweguiyet.com/. The answer is no, it seems the most popular GUI libraries are beta and not production ready. GitHub: antoyo/relm – Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust GitHub: iced-rs/iced – A cross-platform GUI library for Rust, inspired by Elm GitHub: linebender/druid – A data-first Rust-native UI design toolkit. GitHub: redox-os/orbtk – The Rust UI-Toolkit.
tags: Rust,Rust GUI Overview Platform Documentation Community Activity Most Activity Period Native UI Cross platform Leak 5.7k stars Yes 2019-2021 No Conclusion Use the the platform-native widgets or mimic them. (Relm, SixtyFPS) Embed easily into custom render pipelines. (Conrod) Adhere to a specific architectural style such as Elm. (Iced, Relm) Support rendering to HTML when targeting the web. (Iced, Moxie)
tags: Rust,Rust GUI Overview Platform Documentation Community Activity Most Activity Period Native UI Cross platform Leak 3.5k stars Kind of 2020 No Conclusion Highlights – Cross platform Downsides – Documentation leak and not in activity development.
tags: Rust,GUI
tags: Smart contracts source: Business Tech Guides. “The Dark Side Of Smart Contracts.” Accessed February 7, 2022. https://businesstechguides.co/smart-contracts. WHAT are Smart Contracts? Blockchain-based programmes that execute agreements once certain criteria are fulfilled by all parties involved. A self-executing piece of code. When it’s deployed on blockchain, meaning nobody controls it. Analog a contract in the real world, for example, the contract you are signed with your landloard to lease an apartment. More like a vending machine: insert coins and receive a drink. ...
tags: slip-box,PKM source: David Kadavy. 250. My Zettelkasten: An Author’s Digital Slip-Box Method Example (Using Plain-Text Software), 2021. https://www.youtube.com/watch?v=Ji96vbaCT-s. Using a GTD pattern to collect notes: An Inbox to collect Fleeting Notes. Review the Inbox periodically. a. If it’s still interesting, then move it to the Permanent Notes. b. Otherwise move it to “Some day”
tags: slip-box,How to Take Smart Notes,PKM 参考:YouTube: 250. My Zettelkasten: An Author’s Digital Slip-Box Method Example (Using Plain-Text Software) 我身边有很多人包括我自己都很喜欢收藏文章、课程和教学视频等学习类资源,当然还包括给 GitHub 上的项目添加星星。一些更努力的人会在收藏后进行阅读并记录笔记,我们的学习焦虑被得到了满足。 然后呢?你会去看收藏的学习资源吗?会定期查看自己的笔记吗?我觉得这更像是一种自我欺骗或者麻痹,一种「我学会了」的假象被制造出来。 定期回顾总结可以避免这种假象,这是我最近实践 Luhmann 的 Zettelkasten 所学习到的。 先通过 Overaching workflow 记下所有我们需要关注的主题到 Inbox 中,然后通过回顾的方式来总结转化成自己的知识,记录到 PKM 中去。 也就是依然可以去“收藏”,但是要定期的去查看自己的收藏,最好不要太久以免忘记自己为什么收藏。 如果收藏了很多大部分已经没有兴趣了,可以参考 GTD 将内容整理到 Some day 中去,避免 Inbox 过大让我们产生畏惧感从而导致我们放弃。
tags: slip-box,How to Take Smart Notes source: 豆瓣. “记笔记就像编相声.” Accessed January 22, 2022. https://book.douban.com/review/12678970/. 通过「收集 -> 整理 -> 回顾 -> 输出」将听到的段子转化成自己的故事。所以说书中所说的 “Writing” 不能只局限于写作,应该扩展为输出更好。 比如我作为一个程序员,很多研究都是为了落地成为具体的产品或者技术方案,这个时候我就是在输出(Writing),而且有更加明显的反馈。 通过所学的知识能不能搭建具体的技术方案,实现具体的产品需求。 「输出」或者按照 “How to Take Smart Notes” 中说的 “Writing”。输出给了你一个明确的目标,让你在看到、听到、读到的时候有一个明确的目标, 驱动你用自己的语言将知识进行转化,并在其之上进行思考。
tags: How to Take Smart Notes,slip-box,PKM source: Part 2: “THE FOUR UNDERLYING PRINCIPLES” from Ahrens, Sönke. How to Take Smart Notes: One Simple Technique to Boost Writing, Learning and Thinking: For Students, Academics and Nonfiction Book Writers. North Charleston, SC: CreateSpace, 2017. Writing Is the Only Thing That Matters Don’t be afraid to writing ideas down and push them public, as there is no private knowledge in the academia area, and there is no such thing as a history of unwritten ideas. Writing to answer question, in a specific angle on a problem. ...
tags: Zettelkasten,Note-Taking,How to Take Smart Notes source: 朱騏. “Zettelkasten卡片盒筆記法,建立知識連結網路來活用筆記.” PM的生產力工具箱 (blog), October 16, 2021. https://medium.com/pm%E7%9A%84%E7%94%9F%E7%94%A2%E5%8A%9B%E5%B7%A5%E5%85%B7%E7%AE%B1/zettelkasten%E5%8D%A1%E7%89%87%E7%9B%92%E7%AD%86%E8%A8%98%E6%B3%95-%E5%BB%BA%E7%AB%8B%E7%9F%A5%E8%AD%98%E9%80%A3%E7%B5%90%E7%B6%B2%E8%B7%AF%E4%BE%86%E6%B4%BB%E7%94%A8%E7%AD%86%E8%A8%98-f85a91729521. 文章中附上了一则视频更好的展现 Luhmann 如何管理文件笔记,同时建立了我对 Slip-box 的中文理解。完善了我脑中的一部分图像。 See also: https://youtu.be/mCFP5i_0ibE
tags: How to Take Smart Notes,slip-box,GTD source: Part 1: “INTRODUCTION” from Ahrens, Sönke. How to Take Smart Notes: One Simple Technique to Boost Writing, Learning and Thinking: For Students, Academics and Nonfiction Book Writers. North Charleston, SC: CreateSpace, 2017. To Keep a Good Structure First, it’s about the flow, and a good structure enables the flow. The flow is: It is the state in which you get so completely immersed in you work that you lose track of time and can just on going as the work becomes effortless. ...
tags: Note-Taking,Personal Knowledge Management
tags: Rust “Why Rust Strings Seem Hard | Brandon’s Website.” Accessed January 17, 2022. https://www.brandons.me/blog/why-rust-strings-seem-hard.
tags: Computer Systems
tags: Rust,Thread Safety source: Hexi. “如何理解 Sync 和 Send?” 李晨曦的博客 | Hexi Blog, May 5, 2019. https://hexilee.me/2019/05/05/how-to-understand-sync-and-send-in-rust/. 语义: 实现了 Send 的类型,可以安全地在线程间传递所有权。也就是说, 可以跨线程移动。 实现了 Sync 的类型, 可以安全地在线程间传递不可变借用。也就是说,可以跨线程共享。
tags: Rust,Rust Macro,Online Tutorial source: https://danielkeep.github.io/tlborm/book/index.html
tags: Rust,Online Tutorial source: fasterthanli.me. “A Half-Hour to Learn Rust.” Accessed January 17, 2022. https://fasterthanli.me/articles/a-half-hour-to-learn-rust.
tags: Rust
tags: Rust,Rust Macro,Learning
tags: Rust,Distributed Systems,Online Tutorial,Learning source: https://github.com/pingcap/talent-plan
tags: Rust,Online Tutorial,Learning source: https://github.com/rust-lang/rustlings
tags: Blockchain,Web3 source: White, Molly. “It’s Not Still the Early Days.” Molly White, January 14, 2022. https://blog.mollywhite.net/its-not-still-the-early-days/. For blockchains, some thoughts are false, like: “It’s the early days.” “Give it a chance.” The reason is long time have passed, but no bright changes happened, the long time means Bitcoin began to be used in 2009, and Ethereum lanched in 2015. To compare: Smartphones from 2009 to 2015: Nokia -> iPhone/Android. Blogs: Google Reader -> Twitter. Fully-electric cars: Tesla. CPU: i3/i5 -> i9/M1 GPU Operating System. a lot has changed in the technology world in the past six to twelve years. ...
tags: Network,Message Queue
tags: Network,Bufferbloat source: “Bufferbloat - Dark Buffers in the Internet,” 2011, 36.
tags: Network
tags: Learning Ask 6 questions to familiar a new thing: Why What Where When Who How
tags: TCP,Network,5W1H TCP Fast Open(TFO): WHY TFO is proposed? TCP Three-Way Handshake for every new TCP connection is too expensive. WHAT is the TFO? TCP Fast Open (TFO) is a mechanism that aims to reduce the latency penalty imposed on new TCP connections. HOW the TFO reduce the latency on new TCP connections? TFO allows data transfer within the SYN packet. WHEN the TFO is avaiable. TFO support is now avaiable in Linux 3.7+ kernels, and should be enabled by a viable option in both client and server side. ...
tags: CoDel,Network source: “Controlling Queue Delay - ACM Queue.” Accessed January 11, 2022. https://queue.acm.org/detail.cfm?id=2209336. Bufferbloat What is the bufferbloat? In the internet, large buffer is used everywhere: PC Router/Swtich/ISP Server The large may cause delay. Why the bufferbloat still with us and made increaingly critical by two trends? Cheap memory. Complicate network paths. How to sloves the problem? AQM(active queue management) is the known solution, but it’s difficult to implement, so even it has been known two decades but still not been widely deployed. ...
tags: Network,Bufferbloat,AQM
tags: Fun Story