Check if there is a circular reference by doing a production build, Sencha cmd will tell if there is a circular reference.
Category: Problems
The connection to the remote endpoint was terminated
Go to IIS manager, open the AppPool, Advanced settings -> enable 32 bit application
Might have to rebuild the app in visual studio, then try to reattach to the process
Node is not found in Ubuntu
When running nodejs application on ubuntu
this is because the package manager named the application nodejs instead of node
make a symlink from nodejs to node and it should work
sudo ln -s /usr/bin/nodejs /usr/bin/node
Flush the user cache, reset settings for TFS and VS
https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/
Delete the contents from the following folders
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\Team Foundation
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\VisualStudio
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\VSCommon
Go to the Visual Studio IDE folder in command prompt and Run the following command “devenv /resetuserdata” from the Visual Studio IDE folder.
Typical location for 64 bit: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Typical location for 32 bit: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
Visual Studio build error: vcvarsall.bat is missing
This issue was caused because the build scripts depend on this file, which is part of the VS C++ dev tools
Simply install VS C++ dev tools and it will work
How to fix Ext Js grid size changes when browser window is resized
If an Ext Js grid has changes to the column sizes and child components that causes some white space below or on the side when resizing browser window. Call doLayout or updateLayout to fix.
Debug JS by breaking when a variable changes
This can be accomplished in Firefox by using Object.prototype.watch(‘prop’, function(){debugger;});
Very useful at times.
Joining on multiple fields in LINQ
It’s possible to join on multiple fields in LINQ using anonymous type
from item1 in data
join item2 in data
on new {item1.field1, item1.field2} equals new {item2.field1, item2.field2}
select new {
Field1 = item1.field1,
Field2 = item2.field2
}
Some response from server despite IIS already stopped
When IIS is stopped on a server, it’s expected that every requests to the server afterwards will return status 0.
If the status code is anything aside from 0, that means that another service is running on the same port in the same server. For testing, make sure those are stopped.
One such service I encountered recently was the SQL Server Reporting Services. If it runs while IIS is turned off 404 will be returned instead of 0.
Strategy to debug Javascript
Make sure you read the relevant API docs.
Use Chrome’s developer tools, Firebug, or IE’s, and Visual Studio debugger, they are awesome.
Use console.log and alert in code when necessary when tracing code is difficult.
Run JS scripts from JS console.
Don’t be afraid to trace through third party’s frameworks and libraries when necessary.