Neeldhara Misra's Avatar

Neeldhara Misra

@neeldhara.bsky.social

→ http://www.neeldhara.com

565 Followers  |  491 Following  |  163 Posts  |  Joined: 21.08.2023
Posts Following

Posts by Neeldhara Misra (@neeldhara.bsky.social)

Returning to typefully after a while. Posting this from Raycast -- in general nice to see many new integrations, including Claude and a MCP server.

19.02.2026 20:52 — 👍 1    🔁 0    💬 0    📌 0
We want to evaluate
$$
\sum_{\color{red}k=0}^\infty (\color{red}k+1) \color{blue}p^{\color{red}k}\,.
$$
Introduce the function $f$, for $|\color{blue}x|<1$:
$$
f(\color{blue}x) = \sum_{\color{red}k=0}^\infty \color{blue}x^{\color{red}k}\,.
$$
That's a nice geometric series, and we easily get $f(\color{blue}x) = \frac{1}{1-\color{blue}x}$. So we can differentiate that:
$$
f'(\color{blue}x) = \frac{1}{(1-\color{blue}x)^2} 
$$
But $f$ was defined as a power series, and we can also differentiate *that* termwise:
$$
f'(\color{blue}x) = \sum_{\color{red}k=1}^\infty \color{red}k \color{blue}x^{\color{red}{k-1}} = \sum_{\color{red}k=0}^\infty {(\color{red}k+1)} \color{blue}x^{\color{red}{k}}\,.
$$
Well, $f'(\color{blue}x)= f'(\color{blue}x)$ (!), so we can use both expressions, and evaluate them at $\color{blue}p$:
$$
\boxed{\sum_{\color{red}k=0}^\infty {(\color{red}k+1)} \color{blue}p^{\color{red}{k}}
= \frac{1}{(1-\color{blue}p)^2}}
$$

We want to evaluate $$ \sum_{\color{red}k=0}^\infty (\color{red}k+1) \color{blue}p^{\color{red}k}\,. $$ Introduce the function $f$, for $|\color{blue}x|<1$: $$ f(\color{blue}x) = \sum_{\color{red}k=0}^\infty \color{blue}x^{\color{red}k}\,. $$ That's a nice geometric series, and we easily get $f(\color{blue}x) = \frac{1}{1-\color{blue}x}$. So we can differentiate that: $$ f'(\color{blue}x) = \frac{1}{(1-\color{blue}x)^2} $$ But $f$ was defined as a power series, and we can also differentiate *that* termwise: $$ f'(\color{blue}x) = \sum_{\color{red}k=1}^\infty \color{red}k \color{blue}x^{\color{red}{k-1}} = \sum_{\color{red}k=0}^\infty {(\color{red}k+1)} \color{blue}x^{\color{red}{k}}\,. $$ Well, $f'(\color{blue}x)= f'(\color{blue}x)$ (!), so we can use both expressions, and evaluate them at $\color{blue}p$: $$ \boxed{\sum_{\color{red}k=0}^\infty {(\color{red}k+1)} \color{blue}p^{\color{red}{k}} = \frac{1}{(1-\color{blue}p)^2}} $$

Let's say you want, e.g., to compute the expectation of a Geometric r.v. That'll involve, at some point, evaluating a series of the form "Σ (k+1) p^k" which looks like what Lovecraft may have done to a geometric series. How to do it?

One trick I enjoy: differentiate the same function, in two ways!

18.02.2026 12:27 — 👍 38    🔁 6    💬 1    📌 0
One Loop to Traverse Them All Dedicated to Prof Shriram Krishnamurthi, who incited the exploration into this area, and to Prof Neeldhara Misra, who invited me to give a version of this talk to her class at IIT Gandhinagar.

I've finally put together the blog post accompanying a lecture that @neeldhara.bsky.social invited me to give over a year ago - which happened about a year after @shriram.bsky.social got us to start thinking about it :)

Eventual consistency, I guess. :)

johnazariah.github.io/2026/02/08/o...

08.02.2026 09:06 — 👍 4    🔁 2    💬 0    📌 0

Has anyone tried using Claude or its ilk with Overleaf? I'm tempted to try claude for chrome with OL.

I use claude code in Cursor's terminal which seems to work well for my own stuff. But OL sync with GH or DB is a bit finicky so was wondering...

14.01.2026 17:06 — 👍 4    🔁 1    💬 0    📌 0
Post image

In the light of the recent news from IISc about tracking time-at-labs, timely to check out this compilation of opinions from the international scientific community on the matter, in the context of a similar situation that arose in Italy:

www.openaccessrepository.it/records/1433...

17.11.2025 01:42 — 👍 4    🔁 0    💬 0    📌 0

I figure there may not be any off-the-shelf scripts that I can use. I tried vibe coding, but the part about getting the image recognition to work seemed non-trivial. Have you tried something like this before?

06.10.2025 05:59 — 👍 1    🔁 0    💬 0    📌 0

I want a gradescope-like UI for identifying the answer regions and for the app to compute scores of individual students + stats. The reason I can't use GS for my situation is that GS doesn't support confidence-based grading, which is what I am using for this exam.

+

06.10.2025 05:59 — 👍 1    🔁 0    💬 1    📌 0

How hard is it to create a bespoke gradescope-ish app for a particular pen and paper exam? My use-case is the following: I have a question paper that is all multi-select or short answer (fill in the blanks), and a bunch of scans from an exam that happened.

+

06.10.2025 05:59 — 👍 3    🔁 2    💬 1    📌 0

Clocked ten years at IITGN today :) Thinking of writing a retrospective of sorts, if you have any ideas for what you might find useful in such a reflection, let me know!

23.09.2025 16:55 — 👍 8    🔁 0    💬 1    📌 0
Preview
GIAN – Global Initiative of Academic Networks Official portal of GIAN, a Government of India initiative hosted by IIT Hyderabad to enable international academic collaboration.

Having done this a couple of times (imperfectly), happy to help any way I can! Happily, the documentation covers a lot of ground already:

gian.iith.ac.in/guidelines

(2/2)

22.09.2025 06:16 — 👍 0    🔁 0    💬 0    📌 0

ICYMI: a new phase of GIAN funding has been announced. If you are an eligible faculty member in India, great opportunity to play host, and if you identify as a "foreign expert" who'd like to visit, ping your friends here!

Deadline: Sep 30. (1/2)

22.09.2025 06:16 — 👍 2    🔁 0    💬 1    📌 0

TIL that Pocket shut down :( Was my first read-it-later app. I haven't used it in ages, but still feel like I'll be missing it! I remember setting up IFTTT workflows to spam people when I tagged them on a pocket entry 😀

05.09.2025 19:38 — 👍 3    🔁 0    💬 0    📌 0

I am likely to be very off in my estimates of how long the chapters will take, but we'll figure it out as we go along :) Logistics: the readings will be coordinated via Circle (as an experiment) instead of WA groups. Please make sure to sign up at the links on the GAB site.

29.08.2025 07:08 — 👍 0    🔁 0    💬 0    📌 0
Preview
The Theory of Probability | Santosh S. Venkatesh, Professor From its classical foundations to the advanced modern theory, this elegant guide to probability weaves together mathematical proofs, historical panoramas, and lush, richly detailed applications.

In the mornings IST, we are reading Theory of Probability.
Book website: www.santoshvenkatesh.com/book
GAB site: grokabook.com/texts/2025/p...

In the mornings IST, we are reading DCIC
Book website: dcic-world.org/2025-02-09/i...
GAB site: grokabook.com/texts/2025/d...

29.08.2025 07:08 — 👍 1    🔁 1    💬 1    📌 0
Preview
The Theory of Probability | Santosh S. Venkatesh, Professor From its classical foundations to the advanced modern theory, this elegant guide to probability weaves together mathematical proofs, historical panoramas, and lush, richly detailed applications.

Happy to announce new editions of grok-a-book this term! We start effectively on the 8th of September (with a meet-and-greet type meetup on the 5th). Details in thread.

29.08.2025 07:08 — 👍 4    🔁 1    💬 1    📌 0
Manim Slides

Recently vibecoded some slides in Manim via manim-slides:
slides.neeldhara.com/evc/

The whole experience was... interesting. It's not replacing my current default for now, but might find ways of integrating it in modular ways.

27.08.2025 18:20 — 👍 4    🔁 0    💬 0    📌 0

Slightly niche question: does anyone have Obsidian web clipper working on the Orion browser?

26.08.2025 14:24 — 👍 0    🔁 0    💬 0    📌 0
A page from Edward Lasker's chess book.

A page from Edward Lasker's chess book.

Now I can give you a more complete reply, @neeldhara.bsky.social. The chess book I was thinking of is Chess: The Complete Self-Tutor by Edward Lasker. Here is a sample of the interactive style.

20.08.2025 21:59 — 👍 5    🔁 2    💬 1    📌 0
Chapter categories

Chapter categories

Table of contents

Table of contents

The closest thing for me as a young person learning about computer science was ‘The Turing Omnibus’ with its bite-sized chapters and categories. My memory is chapters would tell you what was next so you could follow the automata or cryptography ‘paths’.
I only have the ‘new’ version.

16.08.2025 17:32 — 👍 4    🔁 1    💬 0    📌 0

Do you know of any examples of textbooks written in the style of interactive fiction?

16.08.2025 04:17 — 👍 8    🔁 1    💬 4    📌 0

TIL that Screenflow can’t import a MOV file generated by OBS studio :(

28.07.2025 04:10 — 👍 0    🔁 0    💬 0    📌 0

Anyone using the OBSBot Tiny 2 camera? Is it common for it to heat up and become laggy after about an 60-90 minutes of use? I don’t have AI tracking on and am using this on a Mac.

26.07.2025 12:15 — 👍 0    🔁 0    💬 0    📌 0
Mixed Integer Programming Workshop 2024

Slides for #EuroMIP25 are online!

21.07.2025 14:38 — 👍 9    🔁 3    💬 0    📌 0

Aye no fair this was a one-one mapping from @sriku.org’s list…

On the follow up list I agree, but given that I don’t know what *I* am up to most of the time, this behaviour is on brand :D

21.07.2025 14:26 — 👍 2    🔁 0    💬 0    📌 0

Thanks for sharing this! Turned it into a playable interactive here: interactives.neeldhara.com/knights-puzzle

21.07.2025 09:31 — 👍 4    🔁 1    💬 0    📌 0

Damn, me envious!

21.07.2025 05:38 — 👍 1    🔁 0    💬 0    📌 0

To be clear, I'm the first to admit I have a problem! Will clean up someday 🙈

21.07.2025 05:36 — 👍 1    🔁 0    💬 1    📌 0

Also open always: Granola, Anybox, Mathpix/Screenfloat/Cleanshot, Raycast/Hazel/Alfred/KM/Shortcuts, MacWhisper, Yoink, Dropzone, Popclip

Open-when-needed: Obsidian/Craft/Collections, Screenflow/OBSbot/OBS, VSCode/Cursor/Windsurf (based on wherever I have credits left 👀), Typora, Overleaf, etc.

+

21.07.2025 05:36 — 👍 2    🔁 0    💬 1    📌 0

So cool! 😎 Are you using the default Apple tools for mail and browsing? My list corresponding to yours would be:

Shortwave/Superhuman, Orion*, Warp*, Obsidian Canvas, RevealJS (via Slides), Zoom, Skim, Bookends, NA, NA, WA/Telegram, Strongbox, Keychain, Fantastical, Godspeed.

*experimental.

+

21.07.2025 05:36 — 👍 1    🔁 0    💬 3    📌 0

I do get that when you use emacs you don't need anything else, but I think all those modes (?) should count as separate apps for a fair contest.

20.07.2025 16:25 — 👍 2    🔁 0    💬 1    📌 0