Dev Perfects
40 subscribers
9.23K photos
1.26K videos
468 files
13K links
بخوام خیلی خلاصه بگم
این کانال میاد مطالب کانالای خفن تو حوزه تکنولوژی و برنامه نویسی رو جمع میکنه

پست پین رو بخونید
https://t.iss.one/dev_perfects/455


ارتباط:
https://t.iss.one/HidenChat_Bot?start=936082426
Download Telegram
Forwarded from ASafaeirad
Today I Learned: git log -S
a super handy way to search through commit history to find exactly where a specific line or snippet was added or removed.

Read the article

#git #til
Forwarded from ASafaeirad
Forwarded from ASafaeirad
Cultural Intelligence is the ability to relate and work effectively across cultures.

#til #cq
Forwarded from ASafaeirad
Amygdala hijack:
An amygdala hijack occurs when the brain's emotional center (the amygdala), overrides the rational thinking part (the prefrontal cortex) in response to a perceived threat or stressor. This results in an intense emotional reaction that feels automatic and often disproportionate to the situation.

#til
Forwarded from ASafaeirad
Cortical blindness, also known as cerebral blindness or cortical visual impairment, is a neurological condition where vision is lost due to damage in the occipital cortex of the brain, the part responsible for processing visual information, rather than in the eyes themselves.

This means the eyes are typically normal, and the condition can range from partial visual field deficits to complete blindness.

Some individuals with cortical blindness can still process emotional information, particularly from facial expressions and eye contact, as the amygdala, can still be activated in the absence of the visual cortex

#til
Forwarded from ASafaeirad
Today I learned; symbolics.com was the first domain name ever registered in the history of the internet.
It was registered on March 15, 1985.

#til
Forwarded from ASafaeirad
من امروز فهمیدم که بعضی فرآیندها توی لینوکس nice تر از بقیه هستن.
خیلی ساده بخوام بگم داستان اینه که هرچی فرآیند nice تر باشه بیشتر تعارف میکنه و اولویت و منابع رو به بقیه میده :))

بیشتر بخونید
https://www.gnu.org/software/coreutils/manual/html_node/nice-invocation.html#nice-invocation
https://man7.org/linux/man-pages/man1/nice.1.html

#linux #til #nice
Forwarded from ASafaeirad
Forwarded from ASafaeirad
TIL
There's a Node.JS util to strip ANSI escape codes

import { stripVTControlCharacters } from 'node:util';

const text = '\u001B[4mUnderlined\u001B[0m';
console.log(stripVTControlCharacters(text)); // "Underlined"


#nodejs #til
Forwarded from ASafaeirad
TIL: Boolean coercion are different
Note: Unlike other type conversions like string coercion or number coercion,
boolean coercion does not attempt to convert objects to primitives by calling user methods.
—MDN: Boolean: Boolean coercion

Read more

#til #ecmascript
Forwarded from ASafaeirad
TIL:
You can listen for attribute changes on a DOM element using a MutationObserver.
In my case, I needed to inspect a DOM element during a transient state that changed too quickly to catch manually.
Using DOM breakpoints wasn't helpful since the element was updated too frequently.
The solution was to use a MutationObserver to trigger specifically when a certain attribute changed.


const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (
mutation.type === "attributes" &&
mutation.attributeName === "my-attribute") {
debugger;
}
});
});

observer.observe(element, { attributes: true });


#til