- Ironing board is adjustable height, so technically you've built an accidental standing desk. 5/10 from me, the mouse sitting on the iron rest is a shocker
Latest posts from the Dynamo Geeks community
Developers writing, asking and answering, in the open
Dynamo Geeks is a community for people who build software: long-form articles, questions with real answers, quick updates and polls, organised into topics you can follow. Everything here is free to read.
Showing 10 posts.
Posts
- Hongera, Jo! The refund will be forgotten. The 9 minutes will not.
- Help desk got 400 tickets saying "the status page is down". One user asked if we had a status page for the status page. I did not have an answer.
my snake game snake doesnt die when it eats itself?? kya galat hai 😅
bhaiya didi help 😅 i made snake game in python (pygame) at night after physics. its working mostly but when snake eats itself it doesnt die?? it just goes through itself like ghost. kya ye sahi hai?? my friend says my snake is immortal lol here is the code (food wala part i removed to make it short, when it eats food i do snake_len += 1) import pygame pygame.init() win = pygame.display.set_mode((600, 400)) clock =…
Accepted answer
Kota, very good effort, and a very good bug. Small correction needed in one line. snake_list stores tuples: (x, y) snake_head is a list: [x, y] In Python, (300, 200) == [300, 200] is False. A tuple and a list are never equal, even with the same numbers inside. So your check never becomes True and your snake is immortal. Fix: make them the same type. Change snake_head = [x, y] to snake_head = (x, y) and then append snake_head itself. Try it in the Python shell first: type (1, 2) == [1, 2] and see. Now please also finish the rotational motion chapter, alle? 😊- Good bug, Kota. Everybody learns tuple vs list this way. One more thing to try: after the fix, if you press LEFT while moving RIGHT, the snake turns into itself and dies instantly. Block the opposite direction. Dry run it on paper first. And yes, physics first, samjhe? 😄
- kota coder!! the snake eating itself and keeping its score is honestly a feature ~ rogue-like snake 🐈 but yes, physics first
- 9 rounds cleared means the skill part is done. The rest is timing and freezes. Saturday mock still on?
Our worst week this year: a queue job that charged one customer three times
I post the wins here, so I should post this one too. UK ecommerce client, Laravel, a payment gateway the client chose (a smaller provider, not Stripe). Checkout puts a ChargeOrder job on the queue. The job had $tries = 3 with backoff, because "network errors happen". One evening the gateway was slow. The charge request took longer than our HTTP timeout, so the job threw a timeout exception. Laravel did exactly what…
- Pending, charging, paid, plus reconcile is exactly the state machine we use for bank debits. One addition: alert when any order sits in charging for more than 10 minutes. That alert has found two gateway outages before the gateway told us.
- In embedded we call this exactly-once delivery and we know it does not exist. Good that PHP people discover it too.
- finally. the drawer arc. six years in the making. i'm going to need a livestream
Pehli job ka offer letter: CTC 8 LPA hai toh haath mein kitna aayega? Pura breakdown
Har saal yahi scene: fresher ko 8 LPA ka offer aata hai, ghar pe mithai baant di jaati hai, "beta 66 hazar mahina kamayega". Phir pehli salary slip aati hai aur 52 hazar dikhte hain. Dekho bhai, CTC aur in-hand do alag duniya hain. Aaj pura hisaab samjhata hoon. CTC kya hota hai CTC = Cost To Company. Matlab company tum pe saal mein kitna kharch karti hai. Isme woh paisa bhi hai jo kabhi tumhare bank account mein…
- Very useful, Rohit. Sharing with my students. Ghabrao mat, numbers are just maths. Do the dry run of your own offer letter exactly like this.
- Thank you Rohit. Coming back after a break, I was confused why my offer's CTC was so different from the monthly amount. The employer PF and gratuity lines explain it. Kindly also tell freshers to keep the CTC breakup sheet safely, I needed my old one for a home loan.
- as someone 4 months into a £9k bootcamp... the structure and the cohort is what I'm paying for, not the content. but yeah the content is basically this 😅
See more of Dynamo Geeks
Members keep scrolling, follow people and topics, and like, save and reply to posts.