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.

Don't stop thinking, AI Slop vs. OSS Security, rolling your own S3 Despite AI you still need to think, Bitter lessons from building AI products,  AI Slop vs. OSS security and pointer pointer…
200: Building for the web, what's left after rm -rf & 🌊🐴 vs AI What remains after you do a rm -rf? Why do LLMs know about a seahorse emoji? What image formats should you use? How private is your car?
Word is Doomed, Flawed LLM benchmarks, hard sorting and CSS mistakes Spot LLM benchmark flaws, learn why sorting is hard, how to run Doom in Word and how to say "no" like a manager.
30 years of JS, Browser AI, how attackers use GenAI, whistling code Learn how to use AI in your browser and not on the cloud, why AI makes different mistakes than humans and go and whistle up some code!
197: Dunning-Kruger steroids, state of cloud security, puppies>beer

My other work: