Saturday, August 29, 2015

CPython internals - Interpreter and source code overview - Lecture 1


Online Python Tutor

Online Python Programming Tutor

First time I am seeing the very nice online tutor for Python http://www.pythontutor.com/visualize.html#mode=display

After writing the code , when you click on the Forward button , the flow of the statement can be seen in the program listing , at the same time variables values are listing in the right side.. its interesting .. Try this below

Thursday, August 20, 2015

Why linux ?

Why Linux ?

More than an operating system, Linux is a nice learning platform which takes you through some challenges always..


And there is great community loves GNU

why Linux, reasons is explained nicely in this website http://www.whylinuxisbetter.net/

Linux commands - http://www.tutorialspoint.com/listtutorial/Linux-Shell-commands/2596

Linux Concepts - http://www.tutorialspoint.com/listtutorials/linux/basic-concepts/1

Get Ubuntu Linux here - http://www.ubuntu.com/download


Friday, August 14, 2015

Angular.js + Node.js+ Express.js

Experimenting Angular.js with Node

I was actually trying to install angular.js seed on Node.js that I found in the below link
http://briantford.com/blog/angular-express

Angularjs tutorial - http://www.w3schools.com/angular/

codeacademy angularjs - https://www.codeacademy.com/courses/learn-angularjs

succeeded to the run application - node app.js .. after copying the zip file to the folder .

I got some errors while running the app.js  like  most middleware like "errorhandler is not bundled to the express". I just commented out the error handler statements and ran the app.

http://localhost:3000/






Wednesday, August 12, 2015

How to start with Texas lanuchpad

TEXAS LAUNCHPAD
Electrical,electronics and computer science engineering students should program something with launchpad before you pass out :-)

Theye are lot of tutorials available and it's very cheap. It's worth of spending money for it.


 http://www.ti.com/ww/en/launchpad/launchpad.html?DCMP=rtos&HQS=ep-sdo-rtos-pr-lp-launchpad-en

  http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/

Friday, August 7, 2015

How to use Docker ?

First of all , what is docker ?... I came across docker when I was searching for code editor and how to compile C code form web applications.
http://qnimate.com/create-an-frontend-editor-with-code-highlighting-and-execution/

 Docker - https://www.docker.com/

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating-system-level virtualization on Linux. https://en.wikipedia.org/wiki/Docker_(software)

I actually want to run the code in a virtual machine ( for this idea http://naveendavisv.blogspot.com/2015/08/thinking-to-build-microcontroller.html) and show the output in a text area, even though I don't need the full output, but if  the code can be checked for syntax error, I am much happy...





Wednesday, August 5, 2015

Thinking to build Microcontroller Programming practice website

Started looking for the web technology to build a website for microcontroller programming practice.... kind of minimal functionalities available in codeacademy.com

I am not sure whether I can start with node.js for this.

I have seen http://codemirror.net/ and ace-editor as web code editor plugins

http://techslides.com/codemirror-versus-ace-editor


looking for advise from web-programmers


Based on the code left code editor area in C or Python, the LED  connected to port should blink based on program written. The user will have the ability to write 3 or 4 lines code in Micro controller programming in each page in the editor , so that he/she will get a hands-on experience on coding as well real time experience on how LED as connected and architecture of  microcontrollers

Page prototype:


Sunday, August 2, 2015

sample routing programs with Expressjs in Node


There are some difference between express3.X and 4X in usage of app.router and bodyParser

how to avoid below errors in nodejs and expressjs

Most middleware like bodyparser is no longer bundled with Express

means you have not installed bodyparser , you have to install it as below
npm install body-parser

use this site for usage for body-Parser

https://www.npmjs.com/package/body-parser


Difference between express3.X and 4.X

https://scotch.io/bar-talk/expressjs-4-0-new-features-and-upgrading-from-3-0



App.js

ignore the commented lines in the below code

var express = require('express');
var path = require('path');
var http = require('http');
var app = express();
var bodyParser = require('body-parser');
 /*var urlencodedParser = bodyParser.urlencoded({ extended: false });*/
 app.use(bodyParser.urlencoded());
 app.set('port',process.env.PORT || 3000);
 app.set('views',__dirname + '/views');
 app.set('view engine','jade');
 /*app.use(app.router);*/
 /*var people = express.Router();*/
app.use(express.static(path.join(__dirname,'public')));

/*app.get('/about',function(req,res){
  res.send("about naveen");
 });*/
 
app.post('/user',function(req,res){
  res.send("requested user name" + req.body.name);
});
 
/*app.get('/user/:username',function(req,res){
  res.send(" "+ req.params.username + " profile");
 });*/
 /*app.get('/',function(req,res){
  res.send("hello......");
 });*/
 //app.use(express.static(path.join(__dirname, 'public')));
 var server = http.createServer(app).listen(app.get('port'),function(){
      console.log('Express server listening on port' + app.get('port'));
 });

place the file index.html in the Public folder


then start node app.js