Posts

Showing posts with the label System Administration

Using .htaccess to Redirect to Minified and Pre-Compressed Assets

Minification and compression of assets (JS and CSS) is a common practice across the Web today. It improves performance by reducing the amount of data that has to be transferred over the network, without changing the behavior of those assets. Because those assets are text, the size reductions can be dramatic, especially when we use both techniques together. Using these techniques, though, is not necessarily transparent. Generally, minified assets are referred to with a .min.* extension to indicate they are different (thus, minified jquery.js becomes jquery.min.js ). Because this convention is in the file name, it must also pass down into our references: <script src="jquery.min.js"></script> . To switch between the minified and un-minified versions, we have to actually change the code in the HTML. Source maps are a different, potentially more robust solution, but require support both in the browser and in build to generate those files. Compressed assets are e...

Trying Out FreeBSD

I've used Linux as my main driver for several years now. I've been quite happy with it, as it does so much to make my life easier. But like so many things in life, sometimes it's best to see if the grass is greener on another side of a fence. Hearing so much about it from Allan Jude on TechSNAP and BSD Now , I decided to give FreeBSD a whirl. I tried it first in a VM, then later installed it to an old laptop to really test out how well it worked. My goal was to get a full-fledged desktop system up an running, preferably comparable to my Linux system. I knew this was possible given what I had seen and heard. FreeBSD is a UNIX-derived system that looks a lot like Linux. Many of the same programs will run on both, and so it won't "feel" too different. I tried both FreeBSD proper and the desktop spin, PC-BSD , in a VM to get a feel for each. In the past, I had tried to play around with NetBSD , with little success, but I didn't let that experience cloud m...