Minify and inline CSS for ASP.NET MVC

By . Updated on

Minify and inline CSS for ASP.NET MVC

ASP.NET has a CssMinify class (and a JavaScript variant as well) designed for use in the bundling pipeline. But what if you want to have your CSS minified and inline? Here is an action that is working for me (rendered into a style tag on my _Layout.cshtml using @Html.Action("InlineCss", "Home")).

Note that I'm using this to inline CSS for this blog. The pages are cached so I'm not worried about how well this action performs. My blog is also basically all landing pages so I'm also not worried about caching a non-inline version for later use, I just drop all the CSS on every page.

Personal Finger Daemon for Windows

By . Updated on

finger

Did you know that Windows still has a vestigial finger command with just about nothing left to talk to? One of my New Year's resolutions is to bring finger back and unlike the stalled webfinger project I need to make some progress. Here's some C# to run your own personal finger daemon... you just need to create a .plan file in your home directory (haven't done that for a while):

GetvCard was shut down at the end of 2013

By . Updated on

GetvCard was shut down at the end of 2013

GetvCard.com was a contact exchange service I put together with a friend back before the Internet was popular. You could edit a business card online and then share it via a small link that would download a vCard file that would import your details magically. We even figured out how to hack the format to kind-of-sort-of work with Outlook of that era. I haven't had time to work on the site for ages and while it still has a few dedicated fans there aren't enough regular users to justify the maintenance. As of today it's no longer possible to create a new account. The plug will be pulled entirely at the end of the year.

When the site goes all existing contact information will be deleted, so if you need to save any details or redirect contact links please do so by the end of the year. If you need help leave a comment below.