All about running jobs on HTCondor

Disclaimer: Based on Google Gemini-Pro prompts! If you are a PhD student or researcher working in gravitational-wave astronomy, machine learning, or high-performance data analysis, you will eventually find yourself submitting jobs to a massive compute cluster like the LIGO Data Grid (LDG) or a local university cluster. At the heart of these environments sits HTCondor—a workload management system designed for High-Throughput Computing (HTC). HTCondor is incredibly powerful; it can manage hundreds of thousands of concurrent tasks, running your parameter estimation campaigns (bilby, dynesty, nessai, pocomc) across thousands of CPU cores and GPUs seamlessly....

 June 15, 2026  •   9 min  •   1731 words  •   Suyog Garg

How to use backslash in JIS keyboard layout

Disclaimer: Made with Google Gemini-Pro prompts If you use a physical Japanese (JIS) hardware keyboard layout on a modern Mac, you have likely run into a frustrating quirk: even if you change your macOS text settings to output a backslash (\) instead of a Yen sign (¥), Google Chrome, VS Code, and Slack will completely ignore your system settings. While the macOS Terminal respects the software substitution, web browsers and electron apps read the raw hardware keycode (0x5C) directly from your Japanese keyboard, forcing the ¥ symbol onto your screen unless you hold down Option + ¥....

 May 30, 2026  •   4 min  •   694 words  •   Suyog Garg

Setting up custom loggers in Python

Disclaimer: Based on Google Gemini outputs! When building complex, multi-module Python projects, especially in data science, deep learning, or physics, managing console output is a nightmare. You are often caught in a binary trap: either you turn debugging off and see nothing, or you turn it on and get drowned in a wall of INFO and DEBUG noise from third-party libraries and internal modules. To make matters worse, many heavy frameworks (like PyTorch, Bilby, or Hugging Face) initialize their own logging configurations right at import time....

 May 30, 2026  •   6 min  •   1085 words  •   Suyog Garg

LaTeX for Astrophysics PhDs

Disclaimer: Based on ChatGPT 5.5-Pro prompts! A comprehensive guide and printable cheatsheet for siunitx, physics2, acronym, and advanced paper write-ups. Recommended Preamble Setup Copy and paste this snippet into your .tex root or .sty file. It configures the modular packages, overrides command conflicts, and defines standard astronomy constants (including the stubborn CGS units the community refuses to drop). % --- Core Math & Layout \usepackage{mathtools} \% Extends amsmath, improves spacing \usepackage{bm} \% True bold formatting for vectors/tensors (\bm{\alpha}) \usepackage{microtype} \% Subtle typographic adjustments to fix text "rivers" % --- The Physics Stack \usepackage{siunitx} \% Numbers, units, and ranges \usepackage{physics2} \% Modern, bug-free physics shorthand \usephysicsmodule{ab, braket, diagmatrix} \% Load specific modules % --- Specialized Tools --- \usepackage[printonlyused]{acronym} % Jargon tracking and glossary linking \usepackage[capitalise]{cleveref} % Automated smart referencing (e....

 May 19, 2026  •   3 min  •   639 words  •   Suyog Garg

Trying to use Overlef Toolkit on MacOS Apple Silicon

Disclaimer: Based on ChatGPT 5.5-Pro prompts! If you have ever tried to host a local instance of Overleaf Community Edition using the official Overleaf Toolkit on an Apple Silicon Mac (M1/M2/M3/M4), you have likely run into a wall of cryptic container crashes. The Overleaf Toolkit is built natively for Linux. When deployed on macOS via Docker Desktop, differences in the sed utility, cloud storage interactions, and x86 hardware virtualization layers create a perfect storm of errors....

 May 14, 2026  •   4 min  •   744 words  •   Suyog Garg