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



Tuesday, July 14, 2015

Starting with Sphinx for html pages

Sphinx is a nice tool to build documentation online ...

Sphinx is a tool that makes it easy to create intelligent and beautiful documentation, these are the output formats it support -

Output formats: HTML (including Windows HTML Help), LaTeX (for printable PDF versions), ePub, Texinfo, manual pages, plain text

You can see the installation steps here - http://6109.hidepiy.com/110/the-first-step-of-sphinx-in-windows-xp-orz


tutorial - http://matplotlib.org/sampledoc/


below is the sample page I created with sphinx quick start




Monday, July 13, 2015

Are you really looking to learn Programming your own

I can say, if you are really looking to learn programming this is place you can try with

https://www.codecademy.com/courses/getting-started-v2/1/3?curriculum_id=506324b3a7dffd00020bf661

Codecademy is an online interactive platform that offers free coding classes in 8 different programming languages including Python, PHP, jQuery, JavaScript, AngularJS, and Ruby, as well as markup languages HTML and CSS

https://en.wikipedia.org/wiki/Codecademy

Saturday, July 11, 2015

Baking Pi University of Cambridge course video tutorials

Baking Pi video tutorials

If you are really going to bake raspberry pi board, these are the tutorials we can follow ..
Baking Pi is course/guide to deverlop operating system on the Raspberry Pi board

https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=82871

http://www.cl.cam.ac.uk/projects/raspberrypi/

Sunday, May 31, 2015

Shell scripting - awk

Started learning shell scripting with awk. Awk is kind of interpreter (http://en.wikipedia.org/wiki/Interpreter_(computing)) utility means which wont compile the program rather it just interpret the code.

http://en.wikipedia.org/wiki/AWK

awk tutorial are available in the following link http://www.grymoire.com/Unix/Awk.html


Wednesday, November 5, 2014

Why I haven't tried this when I studied 555 timer

It always a good idea to connect output to a speaker to get the feeling that what actually the device do in reality.
Usually we connect the output to  CRO in our college labs, But I feel its always a good idea to take the output to a speaker in your own experiments labs.
The Sine waves you see in the CRO gives you experimental results,but if you need to feel electronics it always good to connect the outputs to some display or speaker kind of devices.



Electronics project: super hearing aid


Hadoop Tutorial 1 - What is Hadoop?

One of the advantage of Social networking website is  they helps to promote new technologies even though its their need.
 
 Apache Hadoop is an open-source software framework for distributed storage and distributed processing of Big Data on clusters of commodity hardware. Its Hadoop Distributed File System (HDFS) splits files into large blocks (default 64MB or 128MB) and distributes the blocks amongst the nodes in the cluster. For processing the data, the Hadoop Map/Reduce ships code (specifically Jar files) to the nodes that have the required data, and the nodes then process the data in parallel.
 
 
 



Raspberry Pi - How to check Free space in Raspberry Pi

I was actually looking  how to check free space in Raspberry. The linux df command helps to check the disk file system.
 
You can try df -BM to get the disk space .
 
Raspberry Pi Using ‘-h‘ parameter with (df -h) will shows the file system disk space statistics in “human readable” format, means it gives the details in bytes, mega bytes and gigabyte. For more details on Df command visit http://www.tecmint.com/how-to-check-disk-space-in-linux/