- 6 Posts
- 67 Comments
- It might be a card grabber.
- Don’t put real card details of course.
akash_rawal@lemmy.worldOPto
Programmer Humor@programming.dev•Don't use any clicking scripts.
1·1 year agoIt wants you to put dummy details as fast as you can.
akash_rawal@lemmy.worldOPto
Programmer Humor@programming.dev•Don't use any clicking scripts.
1·1 year agoIt is a game, but it might also be a card grabber.
akash_rawal@lemmy.worldOPto
Programmer Humor@programming.dev•Don't use any clicking scripts.
1·1 year agoI did not make this, and you’re supposed to put dummy details there. Don’t put actual credit card information.
For me the value of podman is how easily it works without root. Just install and run, no need for sudo or adding myself to docker group.
I use it for testing and dev work, not for running any services.
akash_rawal@lemmy.worldOPto
Linux@lemmy.ml•I got average monthly ratings for games on Wine AppDB, and seems like something happened in 2016.
3·1 year agoIt’s the same picture.
akash_rawal@lemmy.worldOPto
Linux@lemmy.ml•I got average monthly ratings for games on Wine AppDB, and seems like something happened in 2016.
1·1 year agoYes it is the ratings on winehq, https://appdb.winehq.org/
And yes, an average user probably going to fire a game, figure out it is not working, and promptly go back to windows, which makes that data less accurate, but what can we do about it?
akash_rawal@lemmy.worldOPto
Linux@lemmy.ml•I got average monthly ratings for games on Wine AppDB, and seems like something happened in 2016.
3·1 year agoThe left axis is total number of ratings of each type (Garbage, Bronze, Silver, Gold, Platinum) in a given month (not per app). For example for month
2016-07there were"Garbage" => 22 "Bronze" => 14 "Silver" => 13 "Gold" => 55 "Platinum" => 61On right side is the average rating. So if I assign values to each rating:
"Garbage" => 1 "Bronze" => 2 "Silver" => 3 "Gold" => 4 "Platinum" => 5I can get an average rating, which will be between 1 to 5.
((22*1) + (14*2) + (13*3) + (55*4) + (61*5)) / (22 + 14 + 13 + 55 + 61) ~= 3.721
akash_rawal@lemmy.worldOPto
Programmer Humor@programming.dev•Give your JS codebase what it deserves!
3·1 year agoNo… too hard.
akash_rawal@lemmy.worldto
Programmer Humor@programming.dev•I meant to type "npm run dev"... What will happen now?
1·1 year agonpm ruin devrunning shittier could be a nice prank… depending on how often it gets typed.
I didn’t know the answer either, but usually you can compose solution from solutions of smaller problems.
solution(0): There are no disks. Nothing to do. solution(n): Let’s see if I can use solution(n-1) here. I’ll use solution(n-1) to move all but last disk A->B, just need to rename the pins. Then move the largest disk A->C. Then use solution(n-1) to move disks B->C by renaming the pins. There we go, we have a stack based solution running in exponential time.
It’s one of the easiest problem in algorithm design, but running the solution by hand would give you a PTSD.
Replacing “Programmers:” with “Program:” is more accurate.
spoiler
Tower of Hanoi is actually easy to write program for. Executing it on the other hand…
akash_rawal@lemmy.worldto
Linux@lemmy.ml•What're some of the dumbest things you've done to yourself in Linux?
4·2 years agoTechnically, containers always run in Linux. (Even on windows/OS X; on those platforms docker runs a lightweight Linux VM that then runs your containers.)
And I wasn’t even using Docker.
akash_rawal@lemmy.worldto
Linux@lemmy.ml•What're some of the dumbest things you've done to yourself in Linux?
19·2 years agoHow I lost a Postgres database:
- Installed Postgres container without configuring a volume
- Made a mental note that I need to configure a volume
- After a few days of usage, restarted the container to configure the volume
- …
- Acceptance
akash_rawal@lemmy.worldOPto
Linux@lemmy.ml•How exactly does linux use prefix length assigned to network interface?
4·2 years agoJust did some basic testing on broadcast addresses using socat, broadcast is not working at all with /32 addresses. With /24 addresses, broadcast only reaches nodes that share a subnet. Nodes that don’t share the subnet aren’t reachable by broadcast even when they’re reachable via unicast.
Edit1: Did more testing, it seems like broadcast traffic ignores routing tables.
On 192.168.0.2, I am running
socat -u udp-recv:8000,reuseaddr -to print UDP messages.Case 1: add
192.168.0.1/24# ip addr add 192.168.0.1/24 dev eth0 # # Testing unicast # socat - udp-sendto:192.168.0.2:8000 <<< "Message" # # Worked # socat - udp-sendto:192.168.0.255:8000,broadcast <<< "Message" # # WorkedCase 2: Same as above but delete 192.168.0.0/24 route
# ip addr add 192.168.0.1/24 dev eth0 # ip route del 192.168.0.0/24 dev eth0 # # Testing unicast # socat - udp-sendto:192.168.0.2:8000 <<< "Message" 2024/02/13 22:00:23 socat[90844] E sendto(5, 0x5d3cdaa2b000, 8, 0, AF=2 192.168.0.2:8000, 16): Network is unreachable # # Testing broadcast # socat - udp-sendto:192.168.0.255:8000,broadcast <<< "Message" # # Worked
akash_rawal@lemmy.worldto
Linux@lemmy.ml•I'd like to get away from "arch bad for new users"
31·2 years agoHere is a trick that has been tried and tested over the years: Install another distro, and use that to install Arch. This way, you can rely on an already working linux distro till your Arch install works the way you want.






You have to practice switching between neovim and other editors.
You have forgotten how to use a normal editor. I am not making it up, it is a real phenomenon. Similar to when SmarterEveryDay learned to ride a backwards bicycle he forgot how to ride a normal bicycle and essentially had to re-learn it. You have to re-learn how to use a normal editor.