What I Touched

A collection of 157 articles

What I Touched This Week 2017-05-28

Bitcoin Paper Timestamps transactions by hashing them into ongoing chain of hash-based proof-of-work. The longest chain is the truth. Lost Garden: Game design patterns for building friendships Four key factors to build friendships Proximity: Regularly encounter each other, and it is easy to recognize one another. Similarity: Shared values, Connected. Reciprocity: Bi-directional exchanges with benefits to both parties. Disclosure: Trust by disclosing vulnerability. Friendship: person with mutually beneficial long term relationship based off trust and shared values. ashchan: 比特币、以太坊加密技术 关于比特币、以太坊区块链加密技术的分享。 How Basic Performance Analysis Saved Us Millions - Heap Blog Found out reason why postgresql index took all the CPU using flame graph. Inversion: The Crucial Thinking Skill Nobody Ever Taught You Inversion forces you to consider aspects of a situation that are often hidden at first glance.

Updated  •  2 min read

What I Touched This Week 2017-05-20

我所養成的 10 個最有生產力習慣,以及我如何養成這些習慣 要有效的利用时间。通过记录清空大脑并减少下次相似事情时的成本。 Why you should totally switch to Kotlin – Magnus Vinther – Medium For me, Kotlin is powerful, and is under control not like Scala. …, and it is offically supported in Android Development. The Horror in the Standard Library libstdc++ is broken. Set GLIBCPP_FORCE_NEW, link jemalloc “Why We Didn’t Use A Framework” (Case Study) – Smashing Magazine … needed 100% control over the UX of the video call … so they choose to use vanilla JavaScript. 和 Android 相比,人工智能才是 Google 更想介绍的 :Google I/O 2017 回顾 - 少数派 主题:人工通知 产品:Google Assitant for iOS, Google Lens, Google Home, Android O, VR Headset. Firebase Costs Increased by 7,000%! – Startups & Venture Capital Due to a change in how they report data usage, our monthly costs for Firebase, a SaaS provided by Google, has increased from $25 a month to what is now moving towards the $2,000 mark — with no changes to our actual data use. This change was made without warning. Do not lock your product to 3rd party service. Make it cheap to switch services. golang IO包的妙用 - 简书 Read 和 Write 接口简单,容易组合 Gotchas when using ktor, a Kotlin web framework ktor-netty is buggy when used with ktor-websockets, use ktor-jetty instead. jetty-server should also be added as a dependencies when using ktor-jetty…

Updated  •  2 min read

What I Touched This Week 2017-05-13

Cocos2D-X TTF 字体排版,如何使用 FreeType 库进行字符排版。 CPU Utilization is Wrong. Check instructions per cycle (IPC) to see whether CPU is stalled Beware of Transparent Pixels - Adrian Courrèges. Leaned bilinear filtering and color blending, and usage of premultiplied alpha. “go build” became very slow after installing a new version of Go. It saved me when I found out I have to wait for minutes when running go run after several homebrew upgrades. I event spent time to profiling my app. Programming Fixing Unicode for Ruby Developers – DaftCode Blog. How to do unicode right in Ruby. Normalize unicode before performing serious text processing. Can I execute a function after setState is finished updating?. Function setState can accepts a callback which will be invoked after stage is really changed and DOMs are updated.

Updated  •  1 min read

What I Touched This Week 2017-05-09

macOS 如何在全屏 App 或拥挤的桌面间便捷拖动文件 - 少数派。不使用第三方软件的文件拖动技巧。 A serious bug in GCC | Andrzej’s C++ blog. Destructor not invoked when exception thrown in constructor/initializer Prepack · Partial evaluator for JavaScript. Expand computations at compile-time. Put your Electron app on a diet with Electrino – DailyJS – Medium. It provides a framework similar with Electron but with less size by reusing system web browser engine. Why does Google prepend while(1); to their JSON responses? : programming。 It prevents JSON hijacking . 云风的 BLOG: 用 gdb 分析 coredump 的一些技巧. Gdb 以及 skynet 和 lua C 层调试技巧和一些底层介绍。 email - Mail Rules using JavaScript for Automation instead of AppleScript - Stack Overflow function performMailActionWithMessages(messages) { messages.forEach( function(message) { // if you want to iterate }) };…

Updated  •  1 min read

What I Touched This Week 2017-05-01

Reading 碎片阅读如何形成知识体系?做笔记,分类阅读材料和个人时间并分配时间到不同分类的阅读材料。 使用 pip wheel 实现 Python 依赖包的离线安装。相当于 Ruby 的 bundle package How to Use Excel’s Flash Fill and Auto Fill to Automate Data Entry. Flash Fill can fill by guessing extract pattern. Here’s The Thing With Free Apps And Services - BuzzFeed News. There is no free lunch. “if you’re not paying for it, you’re not the customer, you’re the product.” Create lean Node.js image with Docker multi-stage build. Multiple FROM and corresponding build section. The output image is built using the last FROM. 类似于 Daocloud 提供的 CI, safe build 功能。 Troy Hunt: Reckon you’ve seen some stupid security things? Here, hold my beer…How stupid! References Painting with Code : Airbnb Design. Generate Sketchapp document using code with React. Timescale. Time seiies database based on PostgreSQL. Ctrl+Paint - Digital Painting Simplified. Awesome site providing video courses to learn digital painting. Simple calculation to render cheap water effects. An example to study shader. Ant Design of React. A React component library.

Updated  •  1 min read

What I Touched This Week 2017-04-24

Programming Functional programming design patterns by Scott Wlaschin - YouTube. Introduction to basic concepts in FP. Working Of Yarn and npm – Rajan Tiwari – Medium. Why yarn is better than npm. Hard-won lessons: Five years with Node.js | Scott Nonnenberg. Tips and gotchas. NASA’s 10 Coding Rules for Writing Safety Critical Program - RankRed. Good references. Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. Performance Tuning Performance test frameworks: Gatling Load and Performance testing using Java, and Locust using Python. Android performance tool: Tegra Graphics Debugger from NVIDIA and Snapdragon Profiler from Qualcomm. Twitter Lite and High Performance React Progressive Web Apps at Scale and how to improve Infinite List and React. The performance metric Flame Graphs used in the post, and chrome addons for React performance test Game Development Quaternion Rotation - YouTube. Explanation of Quaternion. Godot Engine - Free and open source 2D and 3D game engine. Yet another game engine.

Updated  •  2 min read

What I Touched This Week 2017-04-16

各种加密代理协议的简单对比 – Yachen Liu 比较了常用的 HTTPS,SOCKS5-TLS 和 shadowsocks 等加密协议。 ChrisRx/dungeonfs: A FUSE filesystem and dungeon crawling adventure game engine. Brilliant to map MUD game to filesystem. TypeScript at Slack. How Slack migrate to TypeScript and the migration guidance. Fast Drawing for Everyone. It can suggest nice clipart according to drawing. Shields.io: Quality metadata badges for open source projects. All in one place to find badges for the project. Robert Haas: New Features Coming in PostgreSQL 10. Many features for distributed PostgreSQL. Use JetBrains Rider as Unity3D C# IDE. Wedding at Scale: How I Used Twilio, Python and Google to Automate My Wedding 树莓派入门指南 很详尽,很全面。 他热衷拍摄人与建筑的微妙关系,为了不同视角冒险爬上城市高空。 热衷于「爬楼」拍摄的独立摄影师的访谈。 Read a specific length data from socket in Python Use a memoryview to wrap your bytearray: buf = bytearray(toread) view = memoryview(buf) while toread: nbytes = sock.recv_into(view, toread) view = view[nbytes:] # slicing views is cheap toread -= nbytes

Updated  •  1 min read