Jim's Lib
50 subscribers
70 photos
1 video
40 files
968 links
from A-Z, it's look like AlcatraZ.
be in touch: @suspend
Download Telegram
work on badly designed systems will particularly suffer since badly designed systems have unbounded complexity. because most of these systems are built by large group of people over time, and complexity is limited only by human creativity.
Why Delete records with FK might be slow in PostgreSQL?
- PostgreSQL doesn't index FKs by default
- on each FK reference, there is a function call that checks referential integrity violation, for 100 record with 2 FKs it will be called 200 times.

Mitigation:
Index FK with CONCURRENTLY flag on production where Referential Integrity Violation check could be done concurrently.
https://ivdl.co.za/

good personal blog to read in your free times, mostly related to postgresql.
CPU branching and parallelization

“A branch is an instruction in a computer program that can cause a computer to begin executing a different instruction sequence and thus deviate from its default behavior of executing instructions in order.” — Wikipedia

This article will improve array iteration performance in C#, but during that it will explain about CPUs a little bit, branching and SIMD.

https://antao-almada.medium.com/array-iteration-performance-in-c-branching-and-parallelization-d0705adbf425
“never do random reads”
- a wiseman said
https://cedardb.com/

CedarDB is a government funded general-purpose database solution which claims to present more performance with general purpose approach versus postgresql, because re-think in design with these days workload and usecases, hardwares and etc.

All of CedarDB founders are graduated from Technical Univesty of Munich with almost no experience in industry.


read more about them
https://cedardb.com/docs/technology/
رابطه اشیا ویکی پدیا


نظریه رابطه اشیاء به بررسی این می‌پردازد که چگونه تعاملات اولیه با مراقبین اصلی شخصیت فرد را شکل می‌دهد و بر پاسخ‌های عاطفی و دینامیک‌های رابطه طی زندگی تأثیر می‌گذارد. این نظریه بر اهمیت این روابط شکل‌گیرنده در توسعه دنیای عاطفی و مفهوم خود فرد تأکید دارد. "اشیاء" در این نظریه به افراد مهم زندگی اشاره دارد، مانند والدین یا مراقبین اصلی. تجربیات مثبت با این افراد احساس امنیت و ارزشمندی را تقویت می‌کند، در حالی که تجربیات منفی می‌توانند احساس ناامنی و بی‌ارزشی را به وجود آورند.

این نظریه مفهوم "ابژه درونی" را معرفی می‌کند، که نمایندگان درونی از روابط اولیه هستند. این نمایندگان در درون ما باقی می‌مانند و بر درک خود از خود و تعاملاتمان با دیگران تأثیر می‌گذارند، حتی در غیاب افراد واقعی.

این نظریه با مفاهیم دیگری مانند "پایداری شیء" (مربوط به روان شناسی تحولی) نیز مرتبط است — درک اینکه اشیاء حتی زمانی که دیده نمی‌شوند همچنان وجود دارند، که یک رشد شناختی حیاتی در نوزادان است.

نظریه رابطه اشیاء به مفهوم "پایداری شیء" گسترش می‌یابد که شامل تشخیص این است که روابط و افراد با وجود غیاب فیزیکی یا تغییرات موقعیتی، پایدار و ثابت باقی می‌مانند. این ثبات برای امنیت عاطفی ضروری است و بر نحوه مدیریت ما در دینامیک‌های رابطه، جدایی و از دست دادن به عنوان بزرگسالان تأثیر می‌گذارد.

در نهایت، این نظریه بر پیوستگی عشق و ارتباطات عاطفی تأکید می‌کند و به ما نشان می‌دهد حتی زمانی که روابط به پایان می‌رسند، توانایی شکل دادن به ارتباطات جدید و معنادار همچنان باقی می‌ماند، که توسط باور زیربنایی در پایداری عشق و حمایت هدایت می‌شود.
unripe.io, soon.
What distinguishes consistently good decision-makers from poor ones is a series of diverse mental frameworks and tools (as well as relevant specific information).
And the mental models in your head are your cognitive skillset.

#decision_making
people do not multitask effectively. realistically the more people multitask, the worse they are, not just at other mental abilities, but at multitasking itself.
#multitask
who is a good writer?
that a writer is someone for whom writing is more difficult than it is for other people.

why writing?
The best way to improve your thinking ability is to spend time thinking.
"If you’re thinking without writing, you only think you’re thinking."

how it affect us?
Writing forces you to slow down, focus, and think deeply.

#thinking #writing
Mental models help us understand the world.

A mental model is a compression of how something works. Any idea, belief, or concept can be distilled down. Like a map, mental models reveal key information while ignoring irrelevant details. Models concentrate the world into understandable and useable chunks.

For e.g., velocity is a mental model that helps you understand that both speed and direction matter.
Reciprocity is a mental model that helps you understand how going positive and going first gets the world to do most of the work for you.
Margin of Safety is a mental model that helps you understand that things don’t always go as planned.
Relativity is a mental model that shows us we have blind spots and how a different perspective can reveal new information. The list goes on.

In this blog post, Shane Parrish reviewed mental models in 8 categories:
1. Core Thinking Concepts
2. Physics and Chemistry
3. Biology
4. Systems
5. Numeracy
6. Microeconomics
7. Military and War
8. Human Nature and Judgment
https://fs.blog/mental-models/
Put your energy into being right, not feeling right.
If you want to be right, you have to change your mind.
When the evidence indicates the approach isn’t working, change the approach.
Feeling right, on the other hand, often requires you to believe you are an exception.

From: Alignment: The Key to Success Nobody Ever Taught You
Nat Friedman:
"Mistakes are the portals of discovery"
James Joyce