Monday, October 27, 2014
An argument for using WebGrease instead of the ASP.Net Web OptimizationFramework
ASP.Net Web Optimization was introduced to ease the minification and bundling of JavaScript and CSS files within your project. It's available out of the box with any new project that uses the MVC 4 project templates. In your App_Start folder, there's a file called BundleConfig where you configure what files should be minified and bundled into one file. Minification and bundling are a good thing of course, because they reduce the number of requests the browser has to make in order to retrieve the resources it needs to render a page, and they reduce the size of those resources.
But, what if you have an MVC 3 or WebForms project? What do you do? There are plenty of tutorials out there that will walk you through adding the ASP.Net Web Optimization NuGet package to your project, and the steps that it will take to get your project configured. This post however takes a different approach. What if we don't use the ASP.Net Web Optimization package at all... what if we just use WebGrease instead?
Sunday, August 31, 2014
Installing Ghost on Ubuntu 14
I've been wanting to check out Ghost for a while now, and over the weekend I decided to give it a whirl. I fired up a new VM and installed the latest version of Ubuntu, downloaded the source from the Ghost.org site, and followed the simple installation procedure. And that's about as far as I got.
Unfortunately, something within the latest release of 'buntu is not configured correctly to just install and go. After some Googlin' I found Jinyu Liu's post about setting up Ghost, and he found the magic.
Run the following:
After running that, everything installed just as described on the Ghost.org site, and I had a new blog up and running in minutes.
Unfortunately, something within the latest release of 'buntu is not configured correctly to just install and go. After some Googlin' I found Jinyu Liu's post about setting up Ghost, and he found the magic.
Run the following:
sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10It will fix the Node symbolic link, which is apparently not correct.
After running that, everything installed just as described on the Ghost.org site, and I had a new blog up and running in minutes.
Monday, August 25, 2014
SSRS Deployment Center
I recently worked on an enterprise project that involved deploying SSRS reports and data sources to different environments throughout the organization. SSRS reports have always lacked proper deployment tooling compared to other project types. The RS.EXE deployment tool from Microsoft makes it possible to create scripted deployments, but it's too complex for the average business user. And although it's possible to use it in conjunction with automated builds, it is not as easy as it should be. Because of this I created a set of GUI and command line tools called the SSRS Deployment Center that will hopefully ease future SSRS report deployments.
I've put the project onto CodePlex, so if your in need of a set of tools to make report deployments easier, check it out here:
https://ssrsdeploymentcenter.codeplex.com/
The CodePlex site has all of the information you need to download, configure and run the tools.
I've put the project onto CodePlex, so if your in need of a set of tools to make report deployments easier, check it out here:
https://ssrsdeploymentcenter.codeplex.com/
The CodePlex site has all of the information you need to download, configure and run the tools.
Monday, July 28, 2014
SSRS Nested Subreport Gotcha!
Recently I was working on a reporting solution for a client when I ran across an interesting problem. I was writing a report in SSRS using multiple nested subreports that would roll up into the report. This has been a fairly common approach that I've used in the past. The difference in this case was the number of nested subreports. Specifically I was using three levels of reports, all of which used some form of data binding. I ran into an issue where the "grand-child" report would not render.
It is easiest to explain the situation using images. There are three reports. A top level, "master" report that we will refer to as the Parent. Within the Parent report there is a sub report that we will refer to as the Child. And within the Child report there is a sub report that we will refer to as the GrandChild.
It is easiest to explain the situation using images. There are three reports. A top level, "master" report that we will refer to as the Parent. Within the Parent report there is a sub report that we will refer to as the Child. And within the Child report there is a sub report that we will refer to as the GrandChild.
Monday, July 21, 2014
Reminder: If you develop WebForms, you should be doing this…
There are plenty of posts out there about using the aspnet_compiler.exe tool.
http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html
http://odetocode.com/blogs/scott/archive/2006/10/17/what-can-aspnet_compiler-exe-do-for-me.aspx
I’m not writing this to shed any new light on the subject. I'm writing this to remind developers that you should be using this tool… period.
http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html
http://odetocode.com/blogs/scott/archive/2006/10/17/what-can-aspnet_compiler-exe-do-for-me.aspx
I’m not writing this to shed any new light on the subject. I'm writing this to remind developers that you should be using this tool… period.
Subscribe to:
Posts (Atom)