Entries from Monday, July 28. 2025

  • July, 2025
  • One Weird Trick to Fix Linker Errors on Apple Silicon After Restore

    This post might be useful for maybe like 10 people who are running into issues when compiling software on Apple M* machines.

    If you run into error like this:

    ld: warning: ignoring file '/usr/local/lib/libpng.dylib': found architecture 'x86_64', required architecture 'arm64'
    ld: warning: ignoring file '/usr/local/lib/libavformat.dylib': found architecture 'x86_64', required architecture 'arm64'

    And you have installed these packages using brew. I verified that these dylibs are definitely for x86_64 and the linker was not going crazy. (use lipo -archs /usr/local/lib/libavformat.dylib)

    Well, that was caused because  I had installed the new M3 macbook from backup (Timemachine) and the backup was created from an x86_64.  

    The fix is described here

    brew bundle dump --global
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew bundle install --global

    This first creates a ~/.Brewfile and then installs back those packages.

  • Notes on Delhi

    "NewDelhi | 'Delhi is a city of secrets… everything's hidden, you need a good guide’ says US Ambassador"

    Came across this  Indian Express article about the experiences of the American Ambassador to India and I was surprised on how closely it matches my own experiences and thoughts about Delhi.

     

    If you want to experience humanity at its fullest, this is the city for you.

    This is something that stood out.  Delhi shows you the full spectrum on humans in a day: You will see people on the streets - ignored by everyone and you will see politicians surrounded by 10s of escort cars.  You will see the fashion parade of people haggling for the latest trends in Sarojini Nagar, and then a family dressed in the most traditional on way to attend a wedding. You will encounter  pickpockets and  swindlers trying to one-up you and you will see a generous man feeding a street dog half his lunch.

     

    Delhi is a city of secrets… everything’s hidden

    .. in plain sight. It doesn’t explain itself, but if you’ve lived here long enough, you stop needing explanations. You start reading the city like a layered book—noise and grace, chaos and intimacy, pride and vulnerability, all crammed into the same lane.

    For better or worse, Delhi teaches you how to pay attention.

Page 1 of 1, totaling 2 entries