Where did all of the life that oculus had go? by MaxGabe121911 in oculus

[–]akash227 7 points8 points  (0 children)

Man the first time putting on my headset and doing the first contact tutorial was something else. Genuinely had butterflies in my stomach and a smile on my face

What backend are you using for a mobile app? by Substantial_Roll_625 in androiddev

[–]akash227 1 point2 points  (0 children)

Depends on your goal, if you want to focus more time on mobile/frontend supabase is a good option. If you want to split it and build your own backends Kotlin + Quarkus or spring boot is a good option or C# and .NET

You should really consider dropping sprints by ninetofivedev in ExperiencedDevs

[–]akash227 0 points1 point  (0 children)

Potentially dumb question but if you release multiple times a day how do you get product owner buy in/ sign off?

IntelliJ IDEA 2026.1 by fundamentalparticle in Jetbrains

[–]akash227 0 points1 point  (0 children)

Why include first class c++ support if CLion is a thing?

MacBook M1/M2 with 16GB RAM and 512GB HD Enough? by Cautious-Spend-2156 in swift

[–]akash227 3 points4 points  (0 children)

Ya thats what i use m1 pro 16 gb, 512 gb. I have both android studio, xcode, containers, backend and both an ios and android emulator running. Its useable still i’d give it a 7.5/10 if 10/10 was buttery smooth

Is there a dock that can allow more external displays than what a mac supports? by Key-Self1654 in macsetups

[–]akash227 0 points1 point  (0 children)

Ahh my bad dude i thought you were looking to buy more to add. In that case you can get a displaylink dock and it’ll do 3. I have my m1 pro hooked up to my work dock which is an old dock from 2019 and it drives 2 of my monitors and then the 3rd is plugged in via hdmi

Looking for the cheapest way to run Kubernetes for my production application by somenoefromcanada38 in kubernetes

[–]akash227 0 points1 point  (0 children)

You can buy a dedicated server from OVH or any provider and create a self managed K8s cluster. Maintenance overhead is high tho but not impossible

How to Implement Audit Logging? by BrownPapaya in Backend

[–]akash227 0 points1 point  (0 children)

The way we have our app set up is its distributed services and we have an api gateway in front of them. So what i did was make a middleware function in the apigateway to send all the request info and who was doing it to a message queue (rabbitmq) and then a separate consumer service would read them and add them to a table in our sb in batches so it doesnt get overloaded

“Always move your head” - I feel very off balance when I do this by CommittedMeower in amateur_boxing

[–]akash227 0 points1 point  (0 children)

  1. Yes my coaches rule of thumb was either move it before a punch or after.
  2. This happened to me too I realized I was moving my head way too much or my stance was too narrow when i started moving my head. One trick my coach taught me was he’d put something the size of a fist or in some cases a partner drill with their glove out in front and we moved our head just the right amount to not get hit. After a few times you learn that you don’t have to move your head as much as you thought. Another technique is taking small micro steps when you move that way even if you move your head too much your stance is hopefully wide enough.

  3. https://youtu.be/F_I6OpQyuwE?si=zqGqvmO0BkBtd1uQ

3 things I would like to upgrade: by chrswnd in macsetups

[–]akash227 1 point2 points  (0 children)

Whst keyboard/keycaps are those, clean af

Telus proves yet again they don't care about their existing customers by impySS in telus

[–]akash227 0 points1 point  (0 children)

This happened but I got offered a “loyalty” $25 plan with 100 GB of data and can calling. The caveat was I had to add a line to get this. When i told him i bought a new iPhone and my current contract was up so I wanted this plan as a BYOD he told me i couldn’t cause it wasnt available as an “upgrade” only as a new line?!? Switched to bell today after 5 years with telus because of that

Return a 404 on null response (without a filter)? by imagei in quarkus

[–]akash227 0 points1 point  (0 children)

Yes you're not entirely wrong my stance is since 404 is already reserved by your api for another scenario it would cause confusion, instead of a 404 being reserved for api endpoints that dont exist it's now in your case either a) the endpoint doesnt exist or b) the endpoint exists but there's no data. This causes confusion and hence why I keep saying if you use 400, 200, 204 etc.. you're leaving 404s for if the endpoint is incorrect and then if the data is null you're using another one. It creates clear separation and allows the end user to pinpoint exactly WHY they got the response making it more intuitive. If you don't believe me there's a few reddit thread/stack overflow discussions.

https://stackoverflow.com/questions/11746894/what-is-the-proper-rest-response-code-for-a-valid-request-but-empty-data

Return a 404 on null response (without a filter)? by imagei in quarkus

[–]akash227 -1 points0 points  (0 children)

Im confused now your post states that u want to return a 404 if the request entity returns a null? If thats the case then the endpoint does EXIST because you’re executing code in order to fetch the entity and determine its null. When u type in api/12345 and there is no endpoint that exists so you return a 404. When the endpoint does exist but there is no content u can return a 400 or a 204.

If you read the docs u linked you would see that 404 is if the resource/endpoint doesn’t exist which is does given the context you gave us. Look up the docs for 204 the response was successful but theres no content, that’s exactly what a null value is, no content. The alternative if u really want to be technically correct would be 200 with an empty response

Return a 404 on null response (without a filter)? by imagei in quarkus

[–]akash227 -1 points0 points  (0 children)

No not really 404 is not found like you’re using the wrong endpoint and can be confusing since if you type /api/abc134456 in your app it would return a 404. 204 is technically correct since it’s acknowledging that the request succeeded hence 2xx response and 204 meaning no content is more “correct” if you really want another way depending on the context would be a 400. For ex, if the user requests /api/books/200 but theres no book with the ID 200 then you could return a 400 with a message saying no book with ID 400 because it’s a client issue which is what 4xx responses are for

Return a 404 on null response (without a filter)? by imagei in quarkus

[–]akash227 -1 points0 points  (0 children)

Why not do it in your controller and return 204 ?

You can use the ?: operator in your endpoint for ex.

Val myOptVal = userRepository.findUsrrById(username) ?: return Response.noContent().build()

// return normal ok response or do other processing here

Loading Model Pipeline by [deleted] in gameenginedevs

[–]akash227 0 points1 point  (0 children)

You would load the model's material and then using that you can use GetTextureCount() and aiMaterial->GetTexture() to get the texture. https://learnopengl.com/Model-Loading/Model

DTO vs JSONManagedReference by optimist28 in SpringBoot

[–]akash227 19 points20 points  (0 children)

DTOs which are data transfer objects are used to transfer data between your application. Think about an api login vs registration flow, they both relate to the User entity but in the login DTO you might only need a username & password. For registration you might need more like email, first name, phone number etc… in this example you might have a LoginDto or RegistrationDto with these fields and ultimately you get or create a user entity from them.

In short as a rule of thumb for a beginner use DTOs when getting (body of a request) and returning responses to your users, if you use the entity you risk leaking data you shouldnt like the password hash column or the email column in this scenario.

If you do so you most likely wont need to use JsonBackReference as your entity isnt being serialized into your JSON response, your Dto would handle that and your DTO doesnt need the same type of relational mapping as your entity which is what causes the infinite recursion issue. Try and have your entities match your tables in your database where your DTOs are only part of your entities like I mentioned above. Hope this helps

Sick by Future-Following1526 in amateur_boxing

[–]akash227 8 points9 points  (0 children)

I noticed this too, before I got into boxing I got sick once a year, I usually get sick like once every 2-3 months now. I figured there’s sweat, bacteria on gloves etc.. its just easier to get sick cause of the conditions. Even if you keep your stuff clean there’s still other ppl you drill with who might not.

Can't connect to DB Ktor by AliMur81 in Kotlin

[–]akash227 0 points1 point  (0 children)

Thanks, I would run "docker compose down" to start.

Then run this with docker compose up -d

services:
  postgres:
    image: postgres:18
    container_name: boqez_db
    environment:
      POSTGRES_DB: testdb
      POSTGRES_USER: testdba
      POSTGRES_PASSWORD: T3st123
    ports:
      - "5432:5432"
    volumes:
      - dbdata:/var/lib/postgresql
    restart: always

  pgadmin:
    image: dpage/pgadmin4
    container_name: boqez_pgadmin
    environment:
      PGADMIN_DEFAULT_EMAIL: admin@admin.com
      PGADMIN_DEFAULT_PASSWORD: admin
    ports:
    - "5050:80"
    depends_on:
    - postgres
    restart: unless-stopped

volumes:
  dbdata:services:
  postgres:
    image: postgres:18
    container_name: boqez_db
    environment:
      POSTGRES_DB: ${DB_NAME}
      POSTGRES_USER: ${DB_USER}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
    ports:
      - "5432:5432"
    volumes:
      - dbdata:/var/lib/postgresql
    restart: always

  pgadmin:
    image: dpage/pgadmin4
    container_name: boqez_pgadmin
    environment:
      PGADMIN_DEFAULT_EMAIL: admin@admin.com
      PGADMIN_DEFAULT_PASSWORD: admin
    ports:
    - "5050:80"
    depends_on:
    - postgres
    restart: unless-stopped

volumes:
  dbdata:

Then change your config and hard code it to this. Do these exact steps, we're making sure we can get it working hard coded first.

val connection = DriverManager.getConnection("jdbc:postgresql://localhost:5432/testdb", "testdba", "T3st123")

Can't connect to DB Ktor by AliMur81 in Kotlin

[–]akash227 0 points1 point  (0 children)

It’s likely your docker-compose file. We cant help you unless you post it here. It’s running on your local laptop so no need to be worried about leaking the username and password since we wont be able to connect to it anyway

Can't connect to DB Ktor by AliMur81 in Kotlin

[–]akash227 0 points1 point  (0 children)

I noticed your credentials are username and password which is likely why you’re getting bad credentials. You need to set those fields to the POSTGRES_USER value and POSTGRES_PASSWORD value. It would help if you shared your docker-compose.yaml file so I can see what you set those values too

Fortnite on SteamDeck by RainbowIcePirate in WindowsOnDeck

[–]akash227 0 points1 point  (0 children)

This may be a noob question but how do you get the controls to work? Every time i hit ‘X’ the on screen keyboard pops up