Debugging SendGrid’s Parsing Incoming Messages

image.png

SendGrid has a nice feature available to it’s Silver Level Subscribers and above (currently $79/month) that let’s you have incoming message to a domain parsed and forwarded through a web service.  This is great if it works but if it does not debugging is tricky because the web service is running on your production server. Here are some steps to debug the service. Go to the URL:  http://requestb.in/ and then use the URL given to you as the email forwarding URL inside of the SendGrid Control panel. Then, send an email to your domain you want to parse (siliconvalley-codecamp.net in my case). Head back to the requestdb.in page and look at the request. Copy the headers into the fiddler compose request page, then the body … Continue Reading

Google Chrome Extension Clear Cache, My Pick!

image.png

I’ve been listening to the podcast recently Adventures in Angular and in particular the “Podcaster Picks” at the end of each podcast.  At first I thought this was pretty silly but have been surprised that many of the picks I did not know about and have been quite useful.  So, in the Holiday spirit of giving, here is my pick for the day. Clear Cache from Benjamoin Bojko Motivation For Needing this I’ve been doing a lot of JavaScript programming for the past couple years and Chrome Dev Tools is my debugger of choice.  It’s amazing easy to clear cache which is something I do quite often.  To be clear, all I have to do is:  1) Tools Pull down then 2) select “clear cache” and finally 3) select the URL in the browser … Continue Reading

WebAPI REST Routing For AngularJS and ExtJS

As most of my readers know, I’ve done a lot of work with the JavaScript libraries made by Sencha (ExtJS and SenchaTouch).  The typical JSON sent down to the requesting web application looks like the following with both Sencha products. [crayon-54940196714f0939882284/] Notice that it is a single JavaScript object that has a property named data which is the array we are interested in. AngularJS’s Resource api expects just the data array by default without the nice wrapping with total and status.  That is, Angular just wants this: [crayon-5494019671501989506824/] The default routing in Microsoft’s ASP.NET WebAPI 2 is such that a rest controller always formats data the same and it is non trivial to write a special filter to convert the … Continue Reading

Why Refactoring Support in a JavaScript IDE Is so Important

image.png

As I’m building out a new version of the Silicon Valley Code Camp web site in AngularJS, I’m running into the very common case where I have not created my program files hierarchy optimally.  What I have now (as seen from JetBrains WebStorm) is the following: I realize now that I’m adding the login screen that I really should have an app folder account and registration should be a subfolder of that.  To make that change without a good tool (like WebStorm), I would need to go into my file manager and copy the files I want, then go into my index.html file and manually change all those directory references.  Likely (because I’m not that good at that kind of work) I’d make at least one mistake and have to come back and revisit … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: