Node.js on Android.

You heard it right. Follow this link 

https://medium.freecodecamp.org/building-a-node-js-application-on-android-part-1-termux-vim-and-node-js-dfa90c28958f

MEAN stack

Developing on MEAN has always been a fun. Especially middleware in express.js. the amount of knolwedge required is limited and pretty easy to go if you are experienced in web server techs. 

I am finishing my complex website and a eCommerce platform. The objective is to build customer centric website driven by backend through configurability and dynamic data.

Technology stack 

  • Node.js
  • Express
  • MongoDB
  • APIs
  • Html5/css3

AngularJs Header manipulation

XMLHttpRequest cannot load {/api/call}. Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.

TypeError: Cannot convert object to primitive value

if you are using Angular.js 1.4.0 or later, use header : to manipulate rather than transformRequest:

var req = {
method: ‘GET’,
url: ‘api/call’.format(password, username),
headers: {
‘Authorization’: undefined
}
};

$http(req)
.
.success(function(response) {
console.log(response);
callback(response);
})
.error(function(err) {
console.log(err);
callback(response);
});

Missing type map configuration or unsupported mapping. Mapping types: IDataReader -> List`1 System.Data.IDataReader ->

You will often find this error when converting IDataReader to POCO. There are 2 resolutions here –

if you are using Automapper 4.0 or above, check MSBuild probably have deleted Automapper.Net4.dll in bin folder, if it is, restore it.

Second, IDataReader is unsupported from Autoamapper. you can use below 4.0 (or 3.1.1), which supports IDataReade, unless you are not using specific version features.

Invoke or Run IIS Express x64 with VS2012.

For some reasons, you may have to run IIS Express x64 from VS2012. For later versions, it is automatically instantiated, however in case of VS2012, it isn’t. And there is no way Microsoft provides any patch or upgrade.

Although there is untestable hack or trick which did work for me.

You have to modify registry to invoke or run IIS Express x64.

Create batch file (*.bat) and put below code.

reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1

VB6 after long time…

Yeah… Even its a surprise, VB6 still rules the world and rules my life.. I cannot say No to VB6 jobs – I don’t know why and thats why I got engaged with one of the VB6 project which requires some fixes and I love to take this opportunity.

All though – world has changed from XP to Win 7 to Win 8 and now Win 10, VB6 application and development with support still rules in some part of the world. It has been days that I’ve been trying to port VB6 environment on Win7 64 bit, but some or the other case it failed. Surprisingly, it loaded on Win10 without much issues and after some tweaks. However, it was too difficult to load it on Win7 x64 bit … Not sure why. Nevertheless, managed to load it on machine.

If you have some issue, just share it across I may help.

After long time…

I know I have been out of writing blog lately, there has been lot of stuff I went through since my last post.

I will promise I will keep this blog updated as lot many things are going into my life at the moment.

%d bloggers like this: