There was a question recently on my CodeProject article "Dynamically generate a MS Word document using HTML & CSS" . The article describes how to generate a Word document programmatically without using any components, by exploiting the formatting features exposed through Office XML and CSS. The questioner wanted to know how to add a custom header and footer and show something like Page X of Y (total pages). Based on what I have tried so far, showing a header and footer using Office XML in MS Word is not as easy as it is in Excel . If you want to keep the code simple & don't need any great fireworks i.e. you will just settle for page numbers in the header or footer then it's a matter of adding a few lines to the original source code. The code can be viewed at this Github Gist Update (1-Sep-2010): To add a custom header & footer, check this new post To add a footer that shows Page number at the bottom right, here are the steps - 1) Add these classes...
Every country has a constitution. India has one of the longest and most detailed in the world. It lays down rights, duties, and the framework for government. We know constitutions guide nations. Some AI models have constitutions too. Not for countries, but for machines. Anthropic started this idea. They gave their model Claude a Constitution. And it wasn’t written by engineers alone. It was written by philosophers — Amanda Askell led, Joe Carlsmith contributed, with Chris Olah and Jared Kaplan adding their voices. They didn’t just code rules. They wrote values. Honesty. Compassion. Safety. Wisdom. The Constitution talks to Claude as if it were a person. It says things like “Claude should cultivate virtue.” It says “Claude should avoid gossip.” It even mentions Claude’s “wellbeing and psychological stability.” That sounds absurd, doesn’t it? An AI told not to gossip. An AI told to care about its wellbeing. Yet that strangeness is deliberate. By framing Claude in human terms, Anthro...
GitHub has grown far beyond a place to host code — today it's an entire ecosystem covering CI/CD, AI-assisted development, security, package management, and team collaboration. Whether you're new to the platform or just want a single reference point, here's an alphabetical list of GitHub's major products and features, each linked to its official page - GitHub Actions GitHub Advanced Security GitHub Apps GitHub CLI GitHub Code Review GitHub Code Security GitHub Codespaces GitHub Container Registry GitHub Copilot GitHub Copilot Business GitHub Copilot CLI GitHub Copilot Enterprise GitHub Copilot Extensions GitHub Dependabot GitHub Desktop GitHub Discussions GitHub Education GitHub Enterprise Cloud GitHub Enterprise Server GitHub Gist GitHub Importer GitHub Innovation Graph GitHub Issues GitHub Marketplace GitHub Mobile GitHub Models (retiring July 30, 2026) GitHub Packages GitHub Pages ...
Comments
Post a Comment