Exception: Call to Node module failed with error: Error: Uncaught (in promise): Error: DI Error Error: DI Error


I received the above error.  Turns out I didn’t add the service to the providers.  Not a very helpful error message though so I figured I would blog it.

Before Fix

@Component({     selector: 'home',     templateUrl: './home.component.html'

After Fix

@Component({     selector: 'home',     templateUrl: './home.component.html',

providers: [ MyService ] })

At some point during this I had gotten ‘no provider for’ which lead me to here: http://stackoverflow.com/questions/30580083/angular2-no-provider-for-nameservice


Be Careful Copying From Windows Calculator–Hidden Characters are Pre-Pended and Appended

I was using the Windows Calculator app to convert bytes to mebibytes and when I copied the value from the app to my nlog.config file, nlog blew up on me.  I didn’t make the connection right way so it took me ~30mins of debugging to see what was going on.


The first value I copied and pasted.  The 2nd value I manually typed in.


Using the built-in ASCII –> HEX we can see they are different!




Diff Merge


NLog Exception

2017-03-17 12:18:07.7561 Error Parsing configuration from C:\Users\mdepouw\Source\Repos\Some App\Some App\DealBank.Web\nlog.config failed. Exception: NLog.NLogConfigurationException: Exception when parsing C:\Users\mdepouw\Source\Repos\Some App\Some App\DealBank.Web\nlog.config.  —> NLog.NLogConfigurationException: Error when setting property ‘ArchiveAboveSize’ on File Target[allfile] —> System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

Client Apps beat Web Apps

The idea of web apps are overrated to me.  They limit the developers abilities to create good apps quickly.  They have there uses but client apps are where it is at.

HTTP was designed to be stateless but for an app to be useful it must have state.  Sure developers have created tools to work with this but why not use something designed around statefulness.

The idea of boxing software into the browser to keep users safe adds significant overhead and effects what the developer can program.

The web turns the computer back into a dumb terminal.  Sure it’s the next version of a dumb terminal but the principle is the same.

With the success of the Apple Apps Market it is easier to validate my point.

I’m baffled by all of the whoops web developers jump through for trivial tasks.


BTW, I love Gmail.  Gmail is a great web app.  It’s probably insanely complicated though.  And not something us mear mortals can do today.  I also like Outlook 2010.  It works great and is usually fair fast.  Especially navigating from screen to screen.


Exteremely example: Take a restraurant order entry system with modern touch screens.  These apps have to be fast.  If it holds true for that extremem example at what point or what influences change the choice between a client app and a web app?  A website like Amazon.com it would seem would always need a web app to reach the broadest audience.  Client apps would probably still be a good idea too though.  The Amazon iPad app is far prefered to me over browsing their site in Safari on my iPad.  The app does lack modern filtering/sorting options though.  As for filtering/sorting modernities see the Zappos iPad app, brilliant! .

What is a Computer?

In my lifetime, 80s – today, the word computer often refers to Desktop or Laptop.  I believe this to be too narrow of a definition.

Is a DVD player not a computer?  Or an Alarm clock?  Or a microwave?  Or a TV?  They all perform computations today.  They are or have computers in them.

My goal with this post is to help educate people that computers are all around us.