RSSAmplifier

Blog

callmephilip

Recent content on callmephilip

callmephilip.comRSS feed ↗11 posts

Latest posts

Notes on CLAUDE.md Structure and Best Practices

I’ve been diving deep into Claude Code and wanted to share some notes on CLAUDE.md structure and best practices. Here’s what I’ve learned from various sources and experiments. File Imports and Structure One of the most powerful features is the ability to import additional files using @path/to/import syntax: See @README for project overview and @package.json for available npm…

Ukrainians Are Not Descended From Fearful Men

In 1676 Ukrainians received a letter from the head of Ottoman Empire Mr Mehmed IV asking them “to submit to me voluntarily and without any resistance, and to desist from troubling me with your attacks”. Ukrainians put their best suits on and proceeded to respond as pictured below Mehmed the IV, know as “holy warrior” and “the hunter” presided over Ottoman empire…

Exploring Codebases With Gemini and Mandark

Taking mandark + gemini 2.0 flash for a spin. Let’s look at https://github.com/mary-ext/skeetdeck to figure out how it’s dealing with rich text facets and embeds. Git cloned skeetdeck with git clone https://github.com/mary-ext/skeetdeck. Ask mandark copy all code from app/api: npx mandark app/api -a -c This goes straight into the clipboard and looks smth like this: Philip Nuzhnyi -…

tinychat on atproto

I am currently exploring an idea for atproto based group chat platform. It’s called tinychat and it tackles a big problem. Tons of collaboration and communication online happens in group chats these days. Most of these are private. Pretty much all of them hold on to people’s data and make it painfully difficult to access it from outside the castle walls. Some chats should stay private…

Be Careful With Your HTML element IDs, especially in HTMX

I once came across a Reddit thread where people were sharing embarrassing facts about themselves. My favorite was a guy who misheard the saying “Knowledge is power” - Francis Bacon as “Knowledge is power, France is bacon”. For years, he thought that this was the way the saying went. Knowledge is power It’s time for my “France is bacon” moment - I…

Adding rich text editor to your HTMX project

How much extra javascript do you need to wire a reasonably ambitious and feature full rich text editor in your HTMX based app? Let’s find out. Some context: The very first build of tinychat shipped with a plain text editor. tinychat uses HTMX to get the SPA feel going. Last week I added integration with CK Editor 5. Here is what it looks like: Let me preface this by saying, I am not married…

Run Pytorch in Docker With Cuda Without Pulling Your Hair Out

This week I’ve been working on containerizing some Pytorch based software. Below are some notes on how to make this process more pleasant and relaxing by avoiding a few pitfalls. I used Paperspace Machines, specifically their ML-in-a-Box which is an Ubuntu 20.04 based image that ships with Docker, CUDA and NVidia Docker already installed. Let me point you to this hopefully evergreen SO…

[Notes] A Hackers Guide to LLMs

Notes for A Hackers’ Guide to Language Models video by Jeremy Howard companion notebook language models predict next tokens based on the input token can either be a whole word or part of a word/puctuation/number example of using OpenAI’s tokenizer from tiktoken import encoding_for_model enc = encoding_for_model('text-davinci-003') toks = enc.encode('They are splashing') toks This…

Computer Lib Dream Machines

Ted Nelson documented his efforts to create a computer network with a simple user interface via Project Xanadu in 1974-1975. book The Pledge The purpose of computers is human freedom. I am going to help make people free through computers. I will not help the computer priesthood confuse and bully the public. I will endeavor to explain patiently what computer systems really do. I will not give…

How Smol AI Developer Works

Smol AI/developer is an open source code generation tool by mighty swyx that got a lot of people excited. You can see some demos of its usage here and here. In this post we’ll take a look under the hood to see how it works. After reading this you should be able to recreate something similar potentially better tailored to your needs and your stack. I assume you have some basic experience with…

Hello World

Hello, world First post to test new setup