Winter Solstice 2014

By Robert Ellison. Updated on Thursday, November 12, 2015.

Winter Solstice 2014

Winter starts now in the northern hemisphere, Summer south of the equator. Rendered in Catfood Earth (Windows, Android).​ Now read why mornings will continue to get darker for the next couple of weeks.

(Previously)

Add your comment...

Related Posts

(All Code Posts)

Crushing PNGs in .NET

By Robert Ellison. Updated on Thursday, May 13, 2021.

Crushing PNGs in .NET

I'm working on page speed and Google PageSpeed Insights is telling me that my PNGs are just way too large. Sadly .NET does not provide any way to optimize PNG images so there is no easy fix - just unmanaged libraries and command line tools.

I have an allergy to manual processes so I've lashed up some code to automatically find and optimize PNGs in my App_Data folder using PNGCRUSH. I can call CrushAllImages() to fix up everything or CrushImage() when I need to fix up a specific PNG. Code below:

Add your comment...

Related Posts

(All Code Posts)

(Published to the Fediverse as: Crushing PNGs in .NET #code #png #compression #crush #asp.net #mvc How to automatically reduce the size of PNG images for a .NET website using PNGCRUSH. )

Autumnal Equinox 2014

By Robert Ellison. Updated on Wednesday, February 22, 2017.

Autumnal Equinox 2014

Autumn starts now in the northern hemisphere, Spring in the southern. Rendered in Catfood Earth (Windows, Android).

(Previously)

Add your comment...

Related Posts

(All Code Posts)

Minify and inline CSS for ASP.NET MVC

By Robert Ellison. Updated on Wednesday, April 28, 2021.

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.

Add your comment...

Related Posts

(All Code Posts)

(Published to the Fediverse as: Minify and inline CSS for ASP.NET MVC #code #asp.net #mvc #css #inline #minify How to use ASP.NET MVC bundles to inline CSS and JavaScript for high performing landing pages. )

Summer Solstice 2014

By Robert Ellison. Updated on Thursday, November 12, 2015.

Summer Solstice 2014

It's the start of Summer in the Northern Hemisphere, Winter if you live south of the equator or in San Francisco. Rendered in Catfood Earth.

Add your comment...

Related Posts

(All Code Posts)

Vernal Equinox 2014

By Robert Ellison. Updated on Thursday, November 12, 2015.

Vernal Equinox 2014

It's spring time in the northern hemisphere, autumn if your water flows the wrong way down the plughole. Rendered in Catfood Earth.

Add your comment...

Related Posts

(All Code Posts)

Personal Finger Daemon for Windows

By Robert Ellison. Updated on Wednesday, June 2, 2021.

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):

Add your comment...

Related Posts

(All Code Posts)

(Published to the Fediverse as: Personal Finger Daemon for Windows #code #random #finger #fingerd An impractical attempt to bring finger back (the awesome UNIX utility for pinging a person, so much better than Facebook!) )

Winter Solstice 2013

By Robert Ellison. Updated on Thursday, November 12, 2015.

Winter Solstice 2013

It's the start of Winter in the northern hemisphere, Summer south of the equator. Rendered in Catfood Earth.

Add your comment...

Related Posts

(All Code Posts)

Catfood Software downloads are now on I Thought He Came With You

By Robert Ellison. Updated on Saturday, September 24, 2022.

Catfood Software downloads are now on I Thought He Came With You

Catfood Software products are now available from the I Thought He Came With you downloads page.

Add your comment...

Related Posts

(All Code Posts)

GetvCard shutting down at the end of 2013

By Robert Ellison. Updated on Sunday, May 16, 2021.

GetvCard shutting down at the end of 2013

GetvCard.com is 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.

If you're looking for a similar service you could try about.me, although they seem to be turning into a social network rather than just a way to share your contact information. You could also try Carddrop. I'm sure there are other options as well.

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.

Add your comment...

Related Posts

(All Code Posts)

(Published to the Fediverse as: GetvCard shutting down at the end of 2013 #code #getvcard #vcard GetvCard, the contact information sharing service based on vCard, shut down at the end of 2013 and is no longer available. )