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
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
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
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
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
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.
This can be accomplished in Firefox by using Object.prototype.watch(‘prop’, function(){debugger;});
Very useful at times.
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
}
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.
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.
This issue, according to the stackoverflow answers seem to stem from the webpage having.
The same issue will make IE display an error: “SCRIPT28: Out of stack space”
If you can debug and find out the infinite recursion, maybe it’s possible to fix this issue.
Today I faced this error while trying to run a web application.
It turned out that it was occurred in a REST request to the server to retrieve a JSON file. I tried to solve this issue by first opening IIS and check the declared MIME types under the web application, then it complained that there is a duplicate entry in the web.config file.
It turned out that if the web.config file contains a declaration for the MIME type .json and under the application in IIS the MIME type is also declared, IIS will complain. I solved the issue by removing the MIME type declaration from the web.config file.