Leading digits of primes
How are the first digits of primes distributed? Do some digits appear as first digits of primes more often that others? How should we even frame the problem? There are an infinite number of primes that begin with each digit, so the cardinalities of the sets of primes beginning with
Read moreWorking With CSV Files Using Python, with Examples
Learn how to use Python to read data from and write data to CSV files, and how to convert CSV files to JSON format and vice versa. Continue reading Working With CSV Files Using Python, with Examples on SitePoint.
Read moreWhat’s the Point of Blameless Postmortems?
Do you remember Bob Ross?Continue reading on Better Programming »
Read morePower of DocsGPT: A Tutorial on Querying PDF and Word Documents
Learn to use DocsGPT, a tool leveraging OpenAI’s GPT for querying PDF, PowerPoint, and Word documents using Google CollaboratoryScreenshot by authorA couple of months ago, my colleague Farhad and I came in an idea that made PDF queries using GPT-3 more accessible. We wrote a simple, functional code, created a repo,
Read moreMatching delimiters and chiastic patterns
When I first started programming I’d occasionally get an error because a delimiter wasn’t matched. Maybe I had a { without a matching }, for example. Or if I were writing Pascal, which I did back in the day, I might have had a BEGIN statement without a corresponding END
Read moreAnalyzing Financial Reports With LlamaIndex and OpenAI
How LlamaIndex’s SubQuestionQueryEngine simplifies complex queriesContinue reading on Better Programming »
Read moreLearn How to Create Outstanding AGSL Shaders for Android
Android’s new custom pixel shader AGSL in ComposePhoto by Andhara Cheryl on UnsplashIn this next part of the series, we will dive into the process of writing pixel shaders. We will explore the syntax, functions, and techniques required to create custom shaders that can produce stunning and dynamic visual effects. Whether you’re
Read moreDebuggers and Empathy
Photo by Tyler Nix on UnsplashIn my social bubble, using debuggers regularly is popular. During development, we use it to see how the code behaves, what the call stack is, how arguments mutate, and how objects look mid-program. And I think it is a bad practice for several reasons.My stance has a
Read morePart man. Part machine. All farmer.
In order to expand, farms have historically depended on getting more land. More acreage meant bigger crop yields. Farmers embraced technologies like irrigation, fertilizer, and pest control to improve their ability to grow more food of better quality more reliably. Recently, as the amount of available arable land has grown,
Read moreMeet StoreKit SubscriptionStoreView in iOS 17
Explore how the new StoreKit views help you build in-app subscriptions with just a few lines of codeAll images by authorThe emergence of SubscriptionStoreView frees developers from tedious and complicated code. WWDC23 brought a declarative in-app purchase UI, which allows developers to use Apple’s predesigned app purchase interface. Only a few lines
Read more