Tags: my software

ASP.NET/C# image resizer for responsive layouts

I will probably elaborate on this a bit further when I find some more time, but for now, this post is going to be mostly code. What I have here is a relatively simple way to generate images that are resized server-side based on the screen dimensions (note: not window dimensions) of the web browser requesting them. This way, you’re not sending huge images to phones. Pair this with some CSS to scale your images to fit their containers, and you’re cooking with gas! Read More →

A quick shell script for wine prefixes

Wine, the Windows emulator-that’s-not-an-emulator for Linux distributions, has a way of maintaining separate Windows systems using the WINEPREFIX and WINEARCH environment variables. While it’s a powerful mechanism, it’s not so handy to type it all in on the command line over and over. To that end, I have whipped up a simple shell script that handles most of that nasty business for you. Read More →

jQuery visibility pseudo-selectors

To help me with a project at work, I’ve written two jQuery pseudo-selectors which will help determine if an element is currently in the viewport or if it has been reached during scroll. This can be incredibly powerful if you’re looking to only display certain items (like a “back to top” link) after you’ve reached a certain point on the page, or only while some other element is within the viewport. Read More →