Teaching My Static Analyzer to Catch the Bug It Missed
I found a stack use-after-return bug in Architect today. Then I taught zwanzig, my Zig static analyzer, to catch it.
I found a stack use-after-return bug in Architect today. Then I taught zwanzig, my Zig static analyzer, to catch it.
I run multiple AI coding agents simultaneously because I often need to work on several tasks at once. One agent implements a feature, another does a code review, another improves my dev setup, yet another helps me keep my Obsidian notes up to date.
I don’t know about you, but for me, killing processes from the command line always involved a ritual: run ps aux, scroll through output, find the target, copy the PID, then kill it. Or maybe grep for a pattern, parse column 2, and hope I picked the right one.
Tried out the new Gemini 2.5 Flash Image Preview, was surprised how fast it is. Used it to generate a new icon for the ClaudeNein app which turned out to be exactly what I wanted. Couldn’t help it, just had to use the “Guardians of the Galaxy” color palette.
Today, Ollama launched its desktop app for macOS and Windows. As someone who regularly uses Enchanted LLM, I gave the new Ollama app a spin. Here’s where it stands out:
Claude Code usage isn’t free, and keeping costs under control matters—for several reasons:
You might think it’s silly to be polite with a machine. “It’s not human,” you say. Fair point — but hear me out: it’s not about the AI, it’s about me.
We’re slapping AI assistants on broken systems and calling it innovation. Booking tickets, ordering food, hailing rides — all the places where AI is supposed to “help” are just UX graveyards we’ve created. You don’t hand over booking a flight to an AI because it’s beneath you — you do it because it’s a multi-hour nightmare.
I just vibe-coded this blog with Windsurf, really. The initial prompt was “Build a personal developer blog for github pages. Use 80th era style.” However, it came up with such eye-popping design that we had several iterations until converging to this.
Had a lot of fun, got some interesting ideas. Trying to go to sleep now, while the party music is still booming somewhere below. Next week a break, then another week of KubeCon, where I’ll man the booth.
If you use Safari’s awesome Reading List feature, you may sometimes want to extract all URLs from this list for one of the following reasons:
{{- and -}}.x509: malformed serial number error in my Go application when I tried to read a public key of a specific format. This error was very misleading, and it took me quite a while to figure it out. Most of the time was spent because of bad error handling practices in certain Go libraries. But I’ll get to that later, let’s start from the problem.I’ve interviewed hundreds of candidates for various software engineering positions, and one of the most annoying situations is when you ask a concrete technical question, and the candidate starts to ramble on unrelated topics instead of just admitting “I don’t know”.
kubectl apply or Helm. How do you now follow what’s going on with the installation? Did the application start successfully, or did some Pod fail?yum no longer works with an error No URLs in mirrorlist, similar to the following:node_modules folder, crazy webpack build times, or thousands of trivial leftpad-like imported modules. I‘d like to look at the modern web from a different perspective.System.currentTimeMillis() calls before and after the line and finding the difference. But what if this line of code is part of a library or a framework? You could use a profiler, but a quicker and easier way might be to use breakpoints in IDEA.enableExtendedEnhancement intended for fine-tuning of the bytecode enhancement. This option is not described well in the documentation. This article explains what it is, how to use it, and what benefits it may bring to you.BasicErrorController. This class has an important extension point — ErrorViewResolver that allows us to customize the logic of selecting pages for different errors.val keyword which is similar to Java 11’s local variable type inference, which is otherwise inaccessible in Java 8. Instead of saying:This is the translation of my article that first appeared on Habrahabr.
I’ve run into some troubles installing the «Real World Ocaml» prerequisites under Mac OS X Yosemite. The installation process is described on the books’ wiki here. I’ve found little help by googling the error messages, which possibly means they could be very specific to my installation. So I’ve decided to share my experience in case someone runs into similar issues.
At one point, the instruction advises you to install some libraries that are used throughout the book, by issuing the following command:
I recently wanted to play around with OCaml and create a web application. It appears that the Ocsigen framework is the only (or the most popular) choice for building web applications with OCaml, so here’s how to install it on Mac OS X and CentOS 6 and create a simple web application.
In this article I will show you how to create the simplest possible HTTP server with basic authentication in node.js. I have to warn you though, I needed a quick and dirty solution for testing purposes, so this is definitely not for production use. You should at least keep hashes of user passwords, not plaintext passwords themselves, and use digest authentication as a more secure method.
First, install the htpasswd module globally:
I am in no way a T-SQL pro, but today I had a need of escaping a varchar field value to create a valid JSON string, while being limited only to Microsoft T-SQL features.
The JSON RFC states that:
Here’s how to format a date inside a velocity template. Add an additional velocity-tools library in your dependencies:
Sometimes you need to pass a large chunk of unstructured (possibly even binary) data via SOAP protocol — for instance, you wish to attach a file to a message. The default way to do this is to pass the data in an XML element with base64Binary type. What it effectively means is, your data will be Base64-encoded and passed inside the message body. Not only your data gets enlarged by about 30%, but also any client or server that sends or receives such message will have to parse it entirely which may be time and memory consuming on large volumes of data.
You can use AbstractResource subclasses as return values from the controller methods, combining them with the @ResponseBody method annotation.
I have a JSON-service client that’s implemented in Spring and Jackson and deployed on WebSphere Application Server. The client worked properly, but on a single machine I encountered a strange classloading issue during Spring initialization:
Not all of the JPA annotations are actually about mapping the entities to the database, or even about persistence at all. Some of them are intended to instrument the Java language for better modeling of the domain. Here’s a simple example of two domain classes that are somehow associated with each other (accessor methods are omitted for clarity):
If you need to display the Maven pom project version of your web application on its web pages, the easiest way to do this is to use the standard Maven resource filtering functionality. Say we have the following main index.html page, and we’d like to place the pom version in the title of the page:
When sending messages with Spring WS client, observing of actual sent and received messages is often required. To set the logging level, add the following lines in log4j.properties:
Here’s a CSS hack for ExtJS 4 to wrap the text in grid columns for all grids in the application:
The Spring Framework 2.5 came with a new TestContext framework which made integration testing of database code a lot easier. It provided annotations to declaratively specify the application context to execute your test in, annotations to mark the transactions for test methods, and also some base test classes for JUnit and TestNG. In the following article I will describe an approach for integrating the TestContext framework with the DBUnit framework, which in turn allows you to initialize the test database before test and verify its condition with the expected dataset after the test is complete.