brandonmartinez

Enable GZIP Compression for Azure Web Apps

A recent addition to Azure Web Apps is the ability to customize the GZIP compression process. To enable compression for both static and dynamic content, add the following your your system.webServer section in your web.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <urlCompression doStaticCompression="true" doDynamicCompression="true" />
    <httpCompression>
      <dynamicTypes>
        <clear />
        <add enabled="true" mimeType="text/*"/>
        <add enabled="true" mimeType="message/*"/>
        <add enabled="true" mimeType="application/x-javascript"/>
        <add enabled="true" mimeType="application/javascript"/>
        <add enabled="true" mimeType="application/json"/>
        <add enabled="false" mimeType="*/*"/>
        <add enabled="true" mimeType="application/atom+xml"/>
        <add enabled="true" mimeType="application/atom+xml;charset=utf-8"/>
      </dynamicTypes>
      <staticTypes>
        <clear />
        <add enabled="true" mimeType="text/*"/>
        <add enabled="true" mimeType="message/*"/>
        <add enabled="true" mimeType="application/javascript"/>
        <add enabled="true" mimeType="application/atom+xml"/>
        <add enabled="true" mimeType="application/xaml+xml"/>
        <add enabled="true" mimeType="application/json"/>
        <add enabled="false" mimeType="*/*"/>
      </staticTypes>
    </httpCompression>
  </system.webServer>
</configuration>

This does work for ASP.NET 5 and MVC 6, as well, since this is configuring IIS, not the application stack.

References:

Ready for Camp? That Conference 2015 Is Almost Here!

We’re down to the final weeks before That Conference 2015! I have my presentation ready to go, and I’m already packing in preparation for a geek’s summer camp.

I’m even doing some training out in the woods:

Into the Woods for a Geek's Summer Camp

Are you going this year? Have you ordered your tickets yet? Less than a week before sales end! You can order here: http://bit.ly/1gds7bH.

Resolve a “Requested Value VS2015 Was Not Found” Get-AzureWebsite Error in PowerShell

A very annoying error that my team has been troubleshooting since yesterday: we’re making use of the new Visual Studio Online Build.Preview features, including the ability to build and deploy an ASP.NET 5 app to an Azure Web App. Everything was working fine until yesterday, when we started seeing this exception in the build logs:

2015-07-14T17:50:49.0525634Z Published requested of the following website(s): [REDACTED]
 
2015-07-14T17:50:49.0533103Z Starting publish of [REDACTED]
 
2015-07-14T17:52:05.1786996Z ##[error]Requested value VS2015 was not found.
 
2015-07-14T17:52:05.3696874Z ##[error]Cannot index into a null array

Continue reading…

How to Copy Large Amounts of Data in OS X

One of my primary external hard drives is starting to fail. It’s the drive I use for almost all of my media, including my iTunes library and probably most importantly, my Lightroom photo library. I decided to upgrade my 3TB drive to a MyBook Duo 8TB to get a high-capacity, mirrored-drive setup.

In doing so, I had a small problem: I needed to copy over 2TB of data to this new drive. If I used the Finder, any hiccup along the way would require me to restart the process. For smaller amounts of data, I would just copy individual subfolders, so if one failed there’d be less to copy. That. Is. Tedious. Continue reading…

Hahaha

A different post from what I normally put here, but this rings true to me:

hahahaha

I’ve never been a fan of “LOL”, so I just fall back to “hahaha” when IM’ing. A coworker had sent this to me a few months ago and I’ve been waiting for an opportunity to use it. Sadly, that hasn’t arisen yet, so instead you get a blog post.

Looking for an Awesome Conference to Speak At? Checkout That Conference!

If you haven’t seen on twitter or Facebook, the That Conference call for speakers is now open until April 13th!

That Conference 2015 - Call for Speakers Now Open!

If you’re looking for conferences to submit abstracts on anything web, cloud, mobile, or even soft skill related, this is an amazing Midwest-regional multi-day conference. It’s held at an excellent location (the Kalahari in Wisconsin Dells), and the entire family is invited!

Hope to see you (speaking) there! For more information, visit the That Conference website.

Full disclaimer: I am part of the That Conference team, so I may be a little biased in my promoting.

Serve WordPress Cache Files From Azure’s CDN Service

If you’re running your WordPress site on Microsoft Azure, you may want to consider utilizing the CDN service that is available. By using the CDN service, you can host your static content such as images, scripts, and other theme components from the 31 different point of presence locations provided.

Azure CDN POP locations

When you’re trying to scale and provide content around the globe, the CDN provides a cost effective way to send static content to more users.

Continue reading…

Page 1 of 3012345...102030...»
Copyright © 2006 – 2015, Brandon Martinez. All rights reserved. A Martinez Media site.