profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Wednesday, July 16, 2025

Setting up flutter for android on windows is BS

 So all these mega tech corpos cant make an installer or their employees only do what they are told/asked and they dont give a damn about these things.

I was trying to setup android development on windows with my VSC, hey don't judge me, I dont want to use the inbuilt IDE of android, I wanna stick to what I know, whom I know and that is VSC; so here are the pointers

  1. Do not use WSL on VSC, it won't work or don't know anyone who has made it work
  2. Open a new workspace on windows local machine (not WSL)
  3. Install dart and flutter extensions
  4. Download and install android studio
  5. Add the ANDROID_HOME environment variable (system & user) to C:\Users\username\AppData\Local\Android\Sdk verify the same by running `echo %ANDROID_HOME%` in command shell (not powershell)
  6. Add the following paths to windows PATH
    C:\Users\username\AppData\Local\Android\Sdk\platform-tools C:\Users\username\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
  7. Use cmd shell, not powershell terminal in the VSC. If step 5 is done well, this is not needed but still works as a backup step. point sdk to the flutter by doing flutter config --android-sdk C:\Users\username\AppData\Local\Android\Sdk
  8. Download the commandline tools separately and ensure they are placed like this
    C:\Users\username\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat
  9. Install visual studio community edition with Desktop development with C++
  10. Now run 'flutter doctor' in VSC cmdline terminal and you should be good to go. Powershell might still work but not always, at least in my case.

Thursday, June 12, 2025

Django statics won't work for admin & drf

If you have django debug toolbar installed, loaded and being used then the statics for admin & drf won't work. It is a conflict between them. Disable debug toolbar if you need the statics to work for admin & drf pages.

versions: django 5.1.x

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "static"),
    os.path.join(BASE_DIR, "media"),
]

# Static files
STATIC_URL = f"{STATIC_URL_BUCKET}/static/"  # Or use your public MinIO endpoint

# Media files (user uploads)
MEDIA_URL = "/media/"  # Not used for direct serving, but required by Django

Friday, April 4, 2025

Arkham notes

 Arkham City

  1. Disable all nvidia, directX features; otherwise the riddler's trophies wont show up correctly in the inventory even after you collect them
  2. Complete the ridder's side mission to rescue hostages first after the main game completion, before any other side mission, otherwise riddler's condundrum challange fails to mark the hostage location on the map. Preferabley doo it in the normal game mode, not the NG+ mode. 
  3. If and when you are using cheat engine, the riddler's enigma machine won't show the text properly on the wheels. Be mindful of that.
  4. for the storyteller trophy, change the year to 2012
    1. go to the courthouse and the cell where the calendar man is incarcerated. 
    2. Make a note of the dates on the calendare which are marked/rounded off.
    3. Get out the courthouse
    4. Change the date
    5. go meet the calender man and start a conversation with him, make him complete his speech and go back to his bed
    6. get out of the courthouse
    7. change to the next date & go meet the calender man and make sure the entire month for the previous date is completely marked off, if not, do it again.
    8. Repeat 3-7 untill all the months are marked off
  5. Extra mouse buttons are shown in reverse and incorrecty, If modern games show the extra mouse button 1 & 2, it shows them as 2 & 1.

Saturday, March 29, 2025

Why do I despice 2nd party devices like samsung phones

 iPhones are a 1st party device because the hardware is from them, operating system aka software is from them. There is only one version of the hardware and software unlike android where google is the 1st party device maker with its google pixels and samsung are the 2nd party devices where they too make android phones but the hardware on these phones and software (Adroid) is way too different and most of the times do not work as intented. Unfortunately these 2nd party companies like nothing, samsung and others add their own customization, spin, apps, bloatware etc., which doesnt give a consistant experience on all these devices. The worst part is, if you are a developer, if you develop an app for iphone or apple eco system, it will certainly work on all apple devices with seemless integration, migration across all apple devices.
Android developers including google itself cannot develop an app of their own which works as intented across all of their android phones let alone work on all android devices. Ex: google youtube. Google's youtube is one of the most streamed app on the internet with most video content served. The app on all apple devices works always as intented and also on their own google pixel phone but it doesnt work well on their own 2nd party android devices like samsung. If you check the internet, samsung's forums have users complaining about this app. Youtube premium is a paid feature which gives so many beneficial features and one of them is background play. I can listen to some videos in the background while using another app or with the mobile screen off, samsung users can no longer use this feature. If you turn off the screen, the youtube stops, you can only run it in the foreground as minimised but not in the background like a music app. Strangely other music apps like youtube music, spotify, prime music and others work in the background. It seems if you want stability, reliability, consistency you move to apple. If you want shiny new things, too many options then you go not for others.

Wednesday, March 19, 2025

Capitalism ruined social media, especially reddit

 I recently started posting on reddit because I like the idea of connecting to like minded groups who like the same topic, game that I do, discuss or join some communities too. Unfortunately almost all the so called "community groups" of all topics are owned/run by few dictatorial groups in bed with the actual product owners. If you join a community of a game then most likely that is being run indirectly by the company which made the game in the guise of "community run" which gives them a nice cover of liabilities. All the things that benefit them, they can push it, all the things that dont benefit them, they can ban/block/disapprove it. 
My recent experience.

https://www.cloudishes.com/2025/03/01-gamer.html  is the post I did on a subreddit https://www.reddit.com/r/BatmanArkham/ and it didnt get approved but if you see all the posts but if you look at the quality & content that get approved there, many of them are childish, idiotic, memes and cringe worthy. Then I realised that I have explained why the port on PC from consoles is bad and it gives deteriorated experience. I even have proof that the port is bad. Since it exposes their employer, rocksteady studio, they didnt approve it, no other explanation makes sense. Why would you not approve a post of someone who has achieved the most unachievable thing of your community, being the 1% of gamers and that too on PC, which makes you 0.1% in the world ? Unless it is pure money, product owners of all kinds not just game studios have (2k games of borderlands is another one) been doing this. Also if your account is banned, hacked or blocked; then all your content, your voice, opinions are deleted and gone. It is better to have it on your own blog, on your own terms, let the search engine do its job and AI scrub the blogs and we can still access all the information that we need without being controlled and dictated by social media and its behind the screen crony capitalists.