atfzl
Stop Using Lovable for Prototyping – Use Storybook and Claude Instead
JavaScript Event Loop: Much more than you wanted to know
> Four high-school teachers consume alcohol on a daily basis to see how it affects their social and professional lives.
Resident Evil Village is launching on Mac with Apple Silicon support
This tool needs better UX:
- A loading bar, or some feedback that it is "analyzing data"
- clicking on "Reddit" or "Hacker News" doesn't select the radio buttons
> My previous work: https://www.nytimes.com/2022/09/15/technology/uber-hacking-b...
https://leetcode.com/problems/binary-search/
JavaScript code:
function binarySearch(arr, target) {
let left = 0;
let right = arr.length - 1;
// empty arr, so we won't find anything
if (!arr.length) {
return -1;
}
// the target is less than the smallest number in arr
if (target < arr[left]) {
return -1;
}
// the target is greater then the smallest number in arr
if (arr[right] < target) {
return -1;
}
// These two `if` are needed for the case when there are only 2 elements
// in the array.
if (arr[left] === target) {
return left;
}
if (arr[right] === target) {
return right;
}
while (left + 1 !== right) {
const middle = left + Math.floor((right - left) / 2);
if (arr[middle] < target) {
left = middle;
} else {
right = middle;
}
}
if (arr[right] === target) {
return right;
}
return -1;
}This is written in rust and has docs about rope data structure and editor architecture.
The real memory size of Safari is ~160MB but virtual memory size is 392GB which doesn't look right. I checked other processes and all the processes have similar virtual memory size which is around ~390GB.
I wonder if this is a bug in Activity Monitor or the virtual memory allocations really are this big for each process.
Optimizing Netlify
The container is an empty div which is not visible, and even after adding children which are not directly visible `inside` this div keeps this container div invisible.
You can check out some examples in https://github.com/mui-org/material-ui/issues/27879
Don't attach tooltips to document.body
Don't attach tooltips to document.body
https://techcrunch.com/2021/04/06/note-taking-app-mem-raises...
> The broader hope of the founders and investors behind Mem is that the team can leverage the platform’s intelligence over time to better understand the data dump from your brain — and likely other information sources across your digital footprint — to know you better than any ad network or social media graph does.