Quick Tip – Ja.mesBrown.com – JavaScript and Web Development Blog http://ja.mesbrown.com Enterprise JavaScript Developer and Backbone.js expert. I write the Internets. Thu, 18 Jun 2015 15:05:32 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.6 29053517 Caching Tips for Chrome Using the Developer Tools http://ja.mesbrown.com/2015/06/caching-tips-for-chrome-using-the-developer-tools/ Thu, 18 Jun 2015 15:05:32 +0000 http://ja.mesbrown.com/?p=1185 Below are two helpful tips for controlling the cache in Chrome.

Once you open the Developer Tools, you can force the browser to disable the cache when the Developer Tools are open.  This is a great feature and typically worth leaving checked when you are developing applications.


Although not nearly as frequently used, another useful tip is to Hard Reload, or Empty the Cache and Hard Reload.  To do this, open the Developer Tools then click and hold on the reload icon in the toolbar.  From there, you can select which option to select:


Have any other cache tips?  Leave them in the comments.





Book Mentions of JavaScript vs ColdFusion vs GoLang http://ja.mesbrown.com/2014/08/book-mentions-of-javascript-vs-coldfusion-vs-golang/ Wed, 27 Aug 2014 17:49:05 +0000 http://ja.mesbrown.com/?p=1111 I’m not sure this means anything but it’s interesting:

You can run your own ngrams here: https://books.google.com/ngrams

Stop Always Using Hosts Files for Web Projects http://ja.mesbrown.com/2014/07/stop-always-using-hosts-files-for-web-projects/ Wed, 30 Jul 2014 13:01:24 +0000 http://ja.mesbrown.com/?p=1106 Let’s face it, there aren’t many times that we aren’t connected to the Internet while developing web projects. Shoot, I’ve even deployed entire sites from an airplane. Then why is one of the first steps to always setup a URL in your hosts file pointing to

While you can certainly do this, I would recommend starting to put in an A record in your DNS instead. This will enable other developers on your project to quickly get up and running while reducing another step. For example, try pinging the following domain name: localhost.100filmsbluelucy.com. You’ll see that it resolves to

While this might seem like a seemingly trivial tip, anything you can do to reduce the barrier to entry for working on your project is certainly worth doing.


httpbin : HTTP Request and Response Service http://ja.mesbrown.com/2013/10/httpbin-http-request-and-response-service/ Thu, 17 Oct 2013 14:04:29 +0000 http://ja.mesbrown.com/?p=868 Have you ever needed to test a client you were writing but didn’t want to setup or program an HTTP server?  Ever worked with an Arduino Yún and wanted to make HTTP calls to a JSON service?

Luckily, the nice people at Runcope run a service called httpbin.  When you visit the site, you’ll see a list of various API calls that your client can make, and receive JSON-encoded responses.  The APIs are very fast and respond almost immediately (averages 65ms on my computer/connection).

The API calls I found particularly useful were the status calls.  You can make a call to http://httpbin.org/status/401 or http://httpbin.org/status/404 and the API will return 401 UNAUTHORIZED or 404 NOT FOUND, respectively.

You may not need the service for anything right away but this is definitely a site to bookmark.  Let me know how you would use the service in the comments.

Quit Clearing Your Cache in Chrome http://ja.mesbrown.com/2013/10/quit-clearing-your-cache-in-chrome/ Tue, 15 Oct 2013 13:02:40 +0000 http://ja.mesbrown.com/?p=859 I almost wasn’t going to post this tip but I am frequently amazed at the number of developers that frequently open up the the Chrome settings and manually clear their cache. On top of being a slow process each time you want to refresh, you are destroying your cache from every other page you visit on the Internet.

Instead, Chrome has an option to disable the cache while the DevTools are open!

To enable this feature, open the developer tools (option+command+i on Mac and ctrl+shift+i on PC), then click the “Settings” gear in the bottom right:


Then make sure you are on the “General” tab:


Then click “Disable cache (while DevTools is open)”:


Very simple.  Use it today!

Have another Chrome developer tip?  Leave it in the comments below.


Updated Blog Bootstrap http://ja.mesbrown.com/2013/09/updated-blog-bootstrap/ http://ja.mesbrown.com/2013/09/updated-blog-bootstrap/#comments Fri, 06 Sep 2013 15:04:19 +0000 http://ja.mesbrown.com/?p=826 In preparation for new and exciting blog posts, I updated my Blog Bootstrap.  It includes a structure that lets me quickly create a demo, with the latest libraries, without getting hung up on getting setup.


This is a non-require.js version.  I probably will add a require.js version here in the future.

What do you think?  What am I missing?

http://ja.mesbrown.com/2013/09/updated-blog-bootstrap/feed/ 2 826
Detecting Query Strings with Tuckey and Tomcat http://ja.mesbrown.com/2013/08/detecting-query-strings-with-tuckey-and-tomcat/ Wed, 28 Aug 2013 14:37:19 +0000 http://ja.mesbrown.com/?p=786 Ever need to setup a Tuckey urlrewrite rule to detect if a query string exists?  You can use the below snippet to append the query string and issue a permanent redirect. Note the difference in the ‘operator’ property of the ‘condition’ tag.

    <rule enabled="true">
        <condition type="query-string" operator="equal"></condition>
        <to type="permanent-redirect" last="true">/search/?%{query-string}</to>

    <rule enabled="true">
        <condition type="query-string" operator="notequal"></condition>
        <to type="permanent-redirect" last="true">/search/</to>

After implementing this into your ruleset, the following:


and the following:


Have a better idea on how to implement this functionality? Let me know in the comments.

Testing Old Versions of Internet Explorer with Application Compatibility VPC Images http://ja.mesbrown.com/2013/01/testing-old-versions-of-internet-explorer-with-application-compatibility-vpc-images/ Tue, 08 Jan 2013 19:33:25 +0000 http://ja.mesbrown.com/?p=209 Most developers hate doing this but Microsoft has made it slightly easier with Internet Explorer Application Compatibility VPC Images. They have created virtual machines running IE6, IE7, IE8 & IE9 that you can download and run legally.

You can download the images from Microsoft:

Obtain or Check Which jQuery Version http://ja.mesbrown.com/2012/05/obtain-check-jquery-version/ Wed, 16 May 2012 13:30:40 +0000 http://ja.mesbrown.com/?p=151 If you need to check which version of jQuery you are running (think Firebug or possibly), you can check the version using the following:


or use the shortcut


Also, if you are loading multiple versions of jQuery on your page and need to verify, you can also use the property:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

<script language='JavaScript'>
  var $_144 = jQuery.noConflict(true);

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

<script language='JavaScript'>
 var $_171 = jQuery.noConflict(true);
  console.log($_144.fn.jquery);   //   "1.4.4"
  console.log($_171.fn.jquery);   //   "1.7.1"
JavaScript QuickTip : Pass hashMap vs Argument List http://ja.mesbrown.com/2011/12/javascript-quicktip-pass-hashmap-vs-argument-list/ http://ja.mesbrown.com/2011/12/javascript-quicktip-pass-hashmap-vs-argument-list/#comments Fri, 02 Dec 2011 04:42:23 +0000 http://ja.mesbrown.com/?p=20 When passing arguments, a single hashMap is MUCH easier to deal with than a list of arguments.

http://ja.mesbrown.com/2011/12/javascript-quicktip-pass-hashmap-vs-argument-list/feed/ 1 20