惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Threat Research - Cisco Blogs
P
Privacy & Cybersecurity Law Blog
The Hacker News
The Hacker News
H
Heimdal Security Blog
W
WeLiveSecurity
L
LINUX DO - 热门话题
Hacker News: Ask HN
Hacker News: Ask HN
WordPress大学
WordPress大学
The Last Watchdog
The Last Watchdog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
D
DataBreaches.Net
I
Intezer
Webroot Blog
Webroot Blog
C
Cisco Blogs
AWS News Blog
AWS News Blog
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
罗磊的独立博客
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Schneier on Security
Schneier on Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗
PCI Perspectives
PCI Perspectives
D
Docker
Scott Helme
Scott Helme
NISL@THU
NISL@THU
J
Java Code Geeks
B
Blog RSS Feed
Google Online Security Blog
Google Online Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Exploit Database - CXSecurity.com
AI
AI
美团技术团队
Cloudbric
Cloudbric
月光博客
月光博客
P
Proofpoint News Feed
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Cloudflare Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

blag

SQLite prefixes its temp files with `etilqs_` - blag Setsum - order agnostic, additive, subtractive checksum - blag Oldest recorded transaction - blag Replacing a cache service with a database - blag SQLite commits are not durable under default settings - blag PSA: SQLite WAL checksums fail silently and may lose data - blag Rickrolling Turso DB (SQLite rewrite in Rust) - blag Collection of insane and fun facts about SQLite - blag How bloom filters made SQLite 10x faster - blag In search of a faster SQLite - blag Galloping Search - blag Building a distributed log using S3 (under 150 lines of Go) - blag Zero Disk Architecture - blag PSA: Most databases do not do checksums by default - blag PSA: SQLite does not do checksums - blag Disaggregated Storage - a brief introduction - blag Why does SQLite (in production) have such a bad rep? - blag SQLite Slaps - blag Now - blag Learning C - blag Snapshot Testing - blag Win: contribution to libSQL (SQLite) codebase - blag Errata in Hekaton MVCC paper - blag Internet is wholesome: MVCC edition - blag It is becoming difficult for me to be productive in Python - blag MongoDB secondary only index - blag Introducing CaskDB – a project to teach you writing a key-value store - blag Recurse Center: Winter Break - blag Recurse Center Day 24: Hacking Go compiler to add a new keyword - blag Recurse Center Day 20: Django v4 upgrade (from v1) - blag Recurse Center Day 19 - blag Recurse Center Day 18 - blag Recurse Center Day 17 - blag Recurse Center Day 16: Open Source - blag Recurse Center Day 15: B Tree Algorithms - blag Recurse Center Day 14: NoSQL Transactions - blag Recurse Center Day 13: Why 'Raft'? - blag Recurse Center Day 12: Isolation Anomalies - blag Recurse Center Day 11: B Tree Insertions - blag Recurse Center Day 10: Learning Distributed Systems - blag Recurse Center Day 9: Papers We Love - blag Recurse Center Day 8: B Tree Fill Factor (Part 2) - blag Recurse Center Day 7: Basics of ncurses - blag Recurse Center Day 6: B Tree Root - blag Recurse Center First Week - blag Recurse Center Day 5: Garbage Collection Algorithms - blag Recurse Center Day 4: B Tree fill factor - blag Recurse Center Day 2: BTree Node - blag Recurse Center Day 1: init - blag What I want to do at Recurse Center - blag Accepted to the Recurse Center! - blag Towards Inserting One Billion Rows in SQLite Under A Minute - blag Marshaling Struct with Special Fields to JSON in Golang - blag I ended up adding duplicate records on a unique index in MongoDB - blag Setting up Github Actions for Hugo - blag Moving to Hugo - blag Catching SIGTERM in Python - blag Git/Github fork-pull request-update cycle - blag Using uWSGI with Python 3 - blag When is my Cake Day? - blag Staying Ahead of Amazon, in Amazon Treasure Hunt Contest - blag How I Am Maintaining Multiple Emails For Git On A Same Machine - blag An exploit on Gaana.com gave me access to their entire User Database - blag Flashing Asus-WRT Merlin by XVortex on NetGear NightHawk R7000 - blag Install Windows 8 UEFI on Legacy BIOS with Clover (and Dual boot with Yosemite) - blag Scraping Javascript page using Python - blag Installing Transmission (remote and CLI) client on Raspberry Pi - blag About - blag Projects - blag
Recurse Center Day 3: Hammock Driven Development - blag
2021-11-04 · via blag

This is a draft post that I have prematurely published. Currently, I am attending RC and I want to write as much as possible, log my daily learnings and activities. But, I also don't want to spend time on grammar and prose, so I am publishing all the posts which usually I'd have kept in my draft folder.

Pairing Workshop

I attended the pairing workshop today, it was fun! First, there was a talk that introduced us to the concept of pair programming. The talk was very thorough, from general guidelines to do’s and don’ts. Next, we were randomly paired with each other, put in a break out room. I paired with Debo to solve the Game of Life.

I will write another detailed article on pair programming, but if you want to get started (you should!), Martin Fowler’s guide on pairing is pretty good.

B Tree Node

I paired with Taylor who suggested a simpler solution, just use a single pointer:

[(7, *1), (16, *9)]

This makes everything so simple! I feel this way would work too, I will work through the edge cases. There would be an extra pointer left that points to the array which contains elements greater than the largest element in the current node. This pointer can be saved separately in the node.

While discussing, I suddenly realised that I had read this format from the Database Internals book (page 63):

I decided to study the internals again, jot down the actual algorithm with the data structure I have in my mind and then start coding.

Challenges with Disk Data structures

(I will update this section with more details soon)

These are challenges one would face when writing a disk based data structure compared to memory:

  1. Cache locality
  2. Physical movements within HDD, which adds yuge latency
  3. Byte vs block (or page) address-ability
  4. Pointers
  5. Garbage collection and fragmentation
  6. Encoding/decoding or serialisation/deserialisation

Elvis introduced me to this cool talk by Rich Hickey (the creator of Clojure) called Hammock Driven Development.

It starts with a question: How long have you spent thinking hard about a problem, a day? a week? a month? a year? When was the last time you felt so confident trying something you had never before and what would it take to become confident?

It helps at getting better and confident at problem solving. Here’s how:

  1. State the problem. Talk it out loud, explain to a co-worker, find a stranger and tell them what you are trying to solve
  2. Understand the problem. What do you know and what do you don’t know? Write everything down
  3. Think trade offs, other solutions. Most likely someone must have solved the same thing

Now that you have the problem, have understood it properly… go on a hammock and sleep! yes, seriously.

Our brain works when asleep, finding hidden relations between memories and solving problems which we were working on when awake. We have two minds, a waking mind and a background mind. The waking mind is good at analysis and tactics. Background mind is good at synthesis and strategy. Background mind will help us solve difficult problems. But we need to feed the input, activate it and charge it to its full potential.

How? Focus, be away from distractions, think hard about the problem. Think as much as possible.

Think hard.

That’s it! As he says, “the cake is in the oven now”. Wait overnight, maybe a few days or even months. Switch around when you are stuck.

You shall have the cake at the end 🍰