Christian Heilmann

On vacation now

August 25th, 2006

I am now on vacation till next Friday to go to Paris. No comments will make it through, but I promise to answer what accumulates.

Shortening strings to a fixed length in JavaScript

August 25th, 2006

I have this function I’ve used for quite a long time to shorten a string to a fixed amount of characters without breaking in between words: function constrain(str,n){ var words = str.split(’ ‘); var resultstr = ‘’; for(var i = 0; i < words.length; i++ ){ if((resultstr + words[i] + ’ ‘).length>=n){ resultstr += ‘…’; […]

More newsagent fame and a devastating review

August 22nd, 2006

I guess you have to take the good with the bad… This morning I found out that there is a new issue of NET Magazine with an adequately loud mouthed orange man on the cover that features my opinion piece where I am Captain Obvious to the rescue and talk about the biggest trick in […]

Drew made me do it: Cover all your CSS class tasks with one small JavaScript

August 21st, 2006

Drew McLellan asked for a tool script for an upcoming project that would allow him to do all kind of tasks related to CSS classes. He wanted to dynamically add, remove and check for classes and get all elements that have a certain class applied to them. It is nothing fancy or new, but come […]

Unobtrusive Goodness for Ruby on Rails

August 21st, 2006

Dan Webb and Luke Redpath have released an Unobtrusive JavaScript for Rails Plugin. Well done! Now let’s do the same for Visual Studio and .NET!

Newsletter

Check out the Dev Digest Newsletter I write every week for WeAreDevelopers.

160: Graphs and RAGs explained and VS Code extension hacks Graphs and RAG explained, how AI is reshaping UI and work, how to efficiently use Cursor, VS Code extensions security issues.
159: AI pipelines, 10x faster TypeScript, How to interview How to use LLMs to help you write code and how much electricity does that use? Is your API secure? 10x faster TypeScript thanks to Go!
158: 🕹️ Super Mario AI 🔑 API keys in LLMs 🤙🏾 Vibe Coding Why is AI playing Super Mario? How is hallucinating the least of our worries and what are rules for developing Safety Critical Code?
157: CUDA in Python, Gemini Code Assist and back-dooring LLMs We met with a CUDA expert from NVIDIA about the future of hardware, we look at how AI fails and how to play pong on 140 browser tabs.
156: Enterprise dead, all about Bluesky and React moves on! Learn about Bluesky as a platform, how to build a React App and how to speed up SQL. And play an impossible game in the browser.

My other work: