« first day (3995 days earlier)      last day (317 days later) » 

01:53
0
Q: How do i change this code to better, using ReactJS with useMemo hook?

Dev MarcellThis is a good code practice? function Home() { const [loading, setLoading] = useState<boolean>(false); const [teams, setTeams] = useState<Team[]>([]); const [selectedTeam, setSelectedTeam] = useState<Team | null>(null); useEffect(() => { fetchTeams(); }, []); const fetchTeams =...

 
3 hours later…
04:27
Monking
05:21
 
7 hours later…
12:27
@CaptainObvious @toolic You might want to flag something that you suspect is chatgpt.
 
1 hour later…
13:43
0
Q: Efficient way to solve word scramble

JohnI wrote this code below to automatically find all possible arrangements of letters of a word whose letters are randomly mixed up. All letters of the word are stored in an array. For example, when the input is ["D","E","R"], the code will log all possible arrangements of the letters D,E,R including "

14:06
0
Q: How can I make this code more DRY

LonelySemicolonSo I have some POCO classes like this: public record Party { public string? Location{ get; set; } public string? Guests{ get; set; } public string? Drinks{ get; set; } } and I have this struct which has many methods that are very very similar. I wanted your idea on how can I write th...

 
2 hours later…
15:38
0
Q: 2D tile map game: Calculate room tiles a furniture item was placed at?

Josh HallowI'm developing for a 2D tile map game. I'm trying to generate a list of tiles a furniture item has been placed at, also supporting multi tile furniture that cover more than one tile. I've written a calculation method to fetch the relevant tiles based on some info like the X, Y, width and length a...

Monking
16:18
Monking
 
2 hours later…
18:19
0
Q: How can I optimize ChatInputBar component in react/next?

AndrianI have a chat input bar component where user can type text messages, emoji as well as select images and then send it. Currently it's a bit messy as I only finished working on it, so I guess what I can change but I would like to get more recommendations about how can i improve its logic and probab...

 
3 hours later…
21:15
Linux (Ubuntu) help required for @Duga
zomis@hope:/snap$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G  3.4M  3.2G   1% /run
/dev/nvme0n1p2  228G  156G   61G  73% /
tmpfs            16G   32K   16G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/nvme0n1p1  511M  6.1M  505M   2% /boot/efi
/dev/loop0       64M   64M     0 100% /snap/core20/2182
/dev/loop2       92M   92M     0 100% /snap/lxd/24061
Any ideas what /dev/loop* is? And /snap/** ?
95
Q: What is /dev/loopx?

mark$ df -kh Filesystem Size Used Avail Use% Mounted on udev 7,8G 0 7,8G 0% /dev tmpfs 1,6G 19M 1,6G 2% /run /dev/sda2 622G 227G 364G 39% / tmpfs 7,8G 1,1G 6,7G 14% /dev/shm tmpfs 5,0M 4,0K 5,0M 1% /run/lock tmpfs 7,...

Something is weird with the computer. I turn it on, it says it's been turned up for 22h. After ~30 minutes I lose connection to it.
a mind of its own -> "artificial intelligence"
@SᴀᴍOnᴇᴌᴀ I have always had my suspicions about @Duga, but she claims that she's not an AI.
7
ah
last Saturday I bought a used bicycle - Brand: Soma, Model: Wolverine
the seller said they dubbed her "Willa Jean the Wolverine"
21:32
@SimonForsberg That's exactly what AI would say!
21:50
28
A: Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core

Robie BasakEach individual snap is a read-only squashfs filesystem image. In order to access files within these images, snapd mounts the images, one for each installed snap version, inside /snap. This list of mounted loop devices thus effectively includes the snaps you have installed, and is part of the no...


« first day (3995 days earlier)      last day (317 days later) »