RequireJS.NET v2.0 Release

It’s been two years since my first attempt to integrate RequireJS with ASP.NET MVC. Being my first open-source project it was fun and challenging. Version 2.0, developed and maintained by VeriTech, comes with new features and major improvements especially to the bundling component.

Change log

  • new JSON config format compatible with require.js configuration object, the XML format from v1.x is deprecated
  • passing values between ASP.NET and JavaScript done via a global filter (RequireOptionFilter), the RequireController is no longer need and has been removed
  • breaking changes in RenderRequireJsSetup HTML helper, it takes a single argument of type RequireRendererConfiguration
  • auto bundling capabilities
  • compressor and config parser refactoring
  • export .resx files to JavaScript in i18n format (MsBuild task)
  • project website with updated tutorials
  • up-to-date documentation wiki
  • various bug fixes

Upgrade from v1.x

If you are currently using RequireJS.NET v1.x be aware that v2 introduced breaking changes, please follow the upgrade guide.

Redefine WordPress publishing with Markdown and code prettify

The code snippet horror

Till now embedding code snippets in a WordPress blog post was a painful process for me. I’ve tried several plugins but in the end all have a major downside when it comes to editing, I just couldn’t edit a single line of code because the original code block was transformed into HTML.

For a while I was using Live Writer, it was way better than fighting with TinyMCE, but code editing had the same downside, every time I wanted to make an edit, I had to paste the original snippet in Visual Studio, made the edit there and then override it in Live Writer. Another inconvenient for me with Live Writer was the preview feature that didn’t quite work with my WordPress theme. After I realize that posting from Live Writer makes it impossible to edit the post in WordPress editor because the code blocks loose padding, I’ve given up the Live Writer.

As a GitHub user I grow found of Markdown, it felt natural to document my projects with it but embedding gists in blog posts felt wrong. Making a gist for every snippet was messy, not to mention that it doesn’t work with RSS readers since the code blocks are not stored in the blog post content.
Read More…

Introducing ASP.NET MVC Throttling Filter

With MvcThrottle you can protect your site from aggressive crawlers, scraping tools or unwanted traffic spikes originated from the same location by limiting the rate of requests that a client from the same IP can make to your site or to specific routes. MvcThrottle is compatible with ASP.NET MVC 5.1 and can be installed via NuGet, the package is available at

You can set multiple limits for different scenarios like allowing an IP to make a maximum number of calls per second, per minute, per hour or per day. You can define these limits to address all requests made to your website or you can scope the limits to each Controller, Action or URL, with or without query string params.

Read More…

WebApiThrottle 1.0.8

New features

  • – added per Week rate limit that can be used with Redis, Azure caching or any other caching service that can hold data more then 24h
  • – added TracingThrottleLogger to publish throttling messages to the native web api ITraceWritter if one is supplied
  • – allow override of throttle key computation ComputeThrottleKey
  • – allow override of HTTP Status code when requests are rate limited

Code refactoring

  • – short-circut large control statements
  • – move whitelist checking to separate method
  • – use member ThrottlePolicy instead of passing it around
  • – RequestIndentity renamed to RequestIdentity

You can install it from NuGet or get the source code from GitHub.

1 2 3 5  Scroll to top