2023/06/01
Last modified:: 2023/07/05
Last modified:: 2023/07/05
Link Diary June 2023
-
- That hurts
- Human brain merges in rat
- Visuals of a mushroom trip
- Bilingual superpower
- The Ninja Turtles Story
- Squirrel issues
- Language learning mastermind
- RANCID history
- Top 100 Linux commands
- Mouse Maze Innovations
- deltaTime elaboration
- RANCID japan fan service
- Matt Freeman best unk bass player
- Super rare RANCID bootleg
- Snoop's reaction to his butchered song
- Rowan Atkinson on free speech
- Wise money advice
- Blender Short clip making of
More reverse image search
Search a bigger version or the original of an image?
Check the HTTP/2 capability of your website
What PC GPU can be compared to the Steam Deck?
- GT 1050
- RTX 3050
- RX 6500 XT
https://www.wepc.com/gpu/faq/what-gpu-is-equivalent-to-steam-deck/
React may execute a state update twice
To annoy the developer to make the function pure.
https://react.dev/reference/react/useState#my-initializer-or-updater-function-runs-twice
Will go wrong with the toggle inside the function:
const [grid, setGrid] = useState([
['', '', ''],
['', '', ''],
['', '', '']
]);
const handleClick = (row, col) => {
// this lambda function is not pure
setGrid(prevGrid => {
const newGrid = [...prevGrid];
newGrid[row][col] = '';
if(prevGrid[row][col] !== 'yellow') {
newGrid[row][col] = 'yellow';
}
return newGrid;
});
};
Fixed by calculating the value outside of the function:
// ...
const handleClick = (row, col) => {
let newValue = '';
if(grid[row][col] !== 'yellow') {
newValue = 'yellow';
}
setGrid(prevGrid => {
console.log(row, col);
const newGrid = [...prevGrid];
newGrid[row][col] = newValue;
return newGrid;
});
};
Video Picks
OEmbed Error
- Provider returned HTTP Status 404 for
- All resolution methods failed
Squirrel issues

Discussion