Skip to main content

Posts

Showing posts from 2017

Beginners' NativeScript + Angular to develop Android apps - Getting started guide

NativeScript ( https://github.com/NativeScript ) is a java script framework that enables you to create native Android or IOS mobile applications. It is considered to be faster than Cordova or PhoneGap (which is webview based frameworks as opposed to native code generated from java script). Best features of NativeScript - NativeScript supports Angular (4/5) , TypeScript , regular java script and it also has a plugin for Vue.JS - NativeScript can generate native applications for Android and IOS with one code base. - NativeScript playground  https://play.nativescript.org  - this is a platform like jsfiddle, plunkr to write and execute and see the result of small NativeScript applications. NativeScript Performance Comparison: The following link shows a simple ios app comparison benchmarks with these other frameworks. Native   - Xcode 6.3.2 NativeScript   - NativeScript for iOS 1.6.0 Xamarin   - Xamarin Studio 5.10.2 Appcelerator   - Appcelerat...

npm install gyp error with c++ build tools error .

If you get into this below error, C:\Program Files (x86)\ MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\asdds\Documents\W\node_modules\memwatch\build\memwatch.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1 gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23) gyp ERR! stack     at emitTwo (events.js:106:13) gyp ERR! stack     at ChildProcess.emit (events.js:191:7) gyp ERR! stack     at Process.ChildProcess._handle.on...

SETTING UP YOUR NODEJS VERSION IN AZURE PORTAL > APPSERVICE > APPSETTINGS > WEBSITE_NODE_DEFAULT_VERSION

Go to yoursite.scm.azurewebsites.net You will find the below, REST API (works best when using a JSON viewer extension) App Settings Deployments Source control info Files Processes and mini-dumps Runtime versions Site Extensions:  installed  |  feed Web hooks WebJobs:  all  |  triggered  |  continuous Functions:  list  |  host config --Click on Runtime Version {"nodejs":[{"version":"0.10.21","npm":"1.3.11"},{"version":"0.10.28","npm":"1.4.9"},{"version":"0.10.29","npm":"1.4.10"},{"version":"0.10.32","npm":"1.4.28"},{"version":"0.10.40","npm":"1.4.28"},{"version":"0.10.5","npm":"1.2.18"},{"version":"0.12.6","npm":"2.11.2"},{"version":"0.6.20","npm":"1....

NodeJs Debugging options

Chrome browser supports great ways to debug, break points, watch and more the same way you do inspecting the browser javascript. 1. Fast Debugging:  User node --inspect  filename  (Devtool GUI) > node --inspect myserver.js This will give you a  link to a devtool session some thing looks like below  chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/cd33 a427-37a4-4d96-b3f6-13ed4cbc870f Server is listening on port: 2403  you just copy this and paste in a new tab in chrome browser , It opens up the devtool. ( this is only debugging window. It doesn't start your application) Now you open a browser window or what ever ways you want to access your application , make the first call. You can use F8 (Run) , F10 (skip) , F11 (step into) keys on Windows to step through the code. Note: Some times the devtool session hangs in the memory s...

YEOMAN in a nutshell - quick easy guide

Here are the KEY points you should know to quickly learn Yeoman Generator. 1. You need to know - Javascript and module export feature. 2. 'generator' - is unfortunately a KEYWO RD - which you should be using very unconventionally to your surprise. Here are the places you must use 'generator' keyword. Let us say your project name going to be - "myappcodegenerator", now, The app "Foder / Directory Name should HAVE the prefix : "generator-" . As per your example project the Folder name should be - "generator-myappcodegenerator" And inside this folder create a package.json (You can do it by 'npm init') You have to Edit package.json to change the value fo ' name: ' to " generator - myappcodegenerator' Then to keep it simple  create a folder -  'generators' . Inside ' generator-myappcodegenerator/generators' folder, you will put your code, the default executable file would be 'i...