Wednesday, December 30, 2015
Monday, December 28, 2015
Tuesday, December 22, 2015
Saturday, December 19, 2015
Thursday, December 17, 2015
Thursday, December 10, 2015
Tuesday, December 8, 2015
Saturday, December 5, 2015
Tuesday, December 1, 2015
Monday, November 30, 2015
Monday, November 23, 2015
Sunday, November 22, 2015
Saturday, November 21, 2015
Thursday, November 19, 2015
Wednesday, November 18, 2015
Tuesday, November 17, 2015
Monday, November 16, 2015
Saturday, November 14, 2015
Saturday, October 3, 2015
30 days with Ubuntu linux
If you really thinking out of windows Os, please go through this tutorial after installing ubuntu https://help.ubuntu.com/community/Installation/FromUSBStick
30 days with Ubuntu Linux - http://www.pcworld.com/article/229187/30_days_with_ubuntu_linux.html?page=2
Ubuntu internet wifi speed increase tip
Probably you can try the below steps in the Ubuntu machine to see whether your Internet speed is increasing or not
Step1:Put the below code in the bottom of the file using the bellow command
sudo vi /etc/sysctl.conf
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
Step2: run the below command
sudo sysctl -p
You can also disable your IPv6
Step1: go Wifi symbol and click it , you will get a edit connection option
Step2: select the wifi you are using and edit the configuration , in IPv6 configuration , select method as 'ingnore'
Step1:Put the below code in the bottom of the file using the bellow command
sudo vi /etc/sysctl.conf
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1
Step2: run the below command
sudo sysctl -p
You can also disable your IPv6
Step1: go Wifi symbol and click it , you will get a edit connection option
Step2: select the wifi you are using and edit the configuration , in IPv6 configuration , select method as 'ingnore'
Sunday, September 27, 2015
how to write multiple files c programs and make/compile it together
Honestly this is the first time I am trying to write multiple file C program and trying to compile it together.
Details are explained in the below video
Details are explained in the below video
Building python
I have installed Ubuntu again in Dell laptop to experiment Cpython internals http://naveendavisv.blogspot.in/2015/08/cpython-internals-interpreter-and.html.
I have managed to download the Python source gz file from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz and edit the cevel.c internal program in python and I have added printf("naveen") in infinite for loop in the program.
and I did below steps steps-
1. ./configure
2. make
the make printing 'naveennaveen...' as expected,
but what i am not understading , is the make command do both compiling the C program and running the executables ? I am not clear how cevel.c is running while we do MAKE ?
make commnad - http://www.computerhope.com/unix/umake.htm http://linoxide.com/how-tos/linux-make-command-examples/
I have managed to download the Python source gz file from https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz and edit the cevel.c internal program in python and I have added printf("naveen") in infinite for loop in the program.
and I did below steps steps-
1. ./configure
2. make
the make printing 'naveennaveen...' as expected,
but what i am not understading , is the make command do both compiling the C program and running the executables ? I am not clear how cevel.c is running while we do MAKE ?
make commnad - http://www.computerhope.com/unix/umake.htm http://linoxide.com/how-tos/linux-make-command-examples/
Saturday, August 29, 2015
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
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
Sunday, August 23, 2015
Friday, August 21, 2015
Why you need to compile your C program in GCC
GCC Compiler:
10 reason why we need to move to GCC -
http://stackoverflow.com/questions/1313702/gcc-compiler-advantage
If you need to compile C program, always go for GCC. You can find GCC online documentation in the below link http://naveendavisv.blogspot.com/2008/09/gcc-online-documentation.html
GCC and cross compilation
What is cross compilation - https://en.wikipedia.org/wiki/Cross_compiler
how to use GCC as cross compiler - http://wiki.osdev.org/GCC_Cross-Compiler
How to use GCC to compile ARM code :
https://launchpad.net/gcc-arm-embedded
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
http://askubuntu.com/questions/487082/compiling-c-code-for-arm-processor-on-ubuntu-12-04
How to use GCC for PIC :
http://hackaday.com/2010/11/03/how-to-program-pics-using-linux/
10 reason why we need to move to GCC -
http://stackoverflow.com/questions/1313702/gcc-compiler-advantage
If you need to compile C program, always go for GCC. You can find GCC online documentation in the below link http://naveendavisv.blogspot.com/2008/09/gcc-online-documentation.html
GCC and cross compilation
What is cross compilation - https://en.wikipedia.org/wiki/Cross_compiler
how to use GCC as cross compiler - http://wiki.osdev.org/GCC_Cross-Compiler
How to use GCC to compile ARM code :
https://launchpad.net/gcc-arm-embedded
http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
http://askubuntu.com/questions/487082/compiling-c-code-for-arm-processor-on-ubuntu-12-04
How to use GCC for PIC :
http://hackaday.com/2010/11/03/how-to-program-pics-using-linux/
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
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/
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/
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/
Sunday, August 9, 2015
How to start web application with docker for free
Below is good article that we can flow to create and run a Web application using docker.
https://blog.codeship.com/running-mean-web-application-docker-containers-aws/
https://blog.codeship.com/running-mean-web-application-docker-containers-aws/
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...
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...
Thursday, August 6, 2015
10 websites that a computer science student should read daily
You can find the list of websites for computer science students here blow link
http://www.quora.com/What-are-the-top-10-websites-computer-science-students-must-visit
http://www.quora.com/What-are-the-top-10-websites-computer-science-students-must-visit
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:
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 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.use(bodyParser.urlencoded());
app.set('port',process.env.PORT || 3000);
app.set('views',__dirname + '/views');
app.set('view engine','jade');
app.set('views',__dirname + '/views');
app.set('view engine','jade');
/*app.use(app.router);*/
/*var people = express.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);
});
res.send("requested user name" + req.body.name);
});
/*app.get('/user/:username',function(req,res){
res.send(" "+ req.params.username + " profile");
});*/
res.send(" "+ req.params.username + " profile");
});*/
/*app.get('/',function(req,res){
res.send("hello......");
});*/
//app.use(express.static(path.join(__dirname, 'public')));
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'));
});
console.log('Express server listening on port' + app.get('port'));
});
place the file index.html in the Public folder
then start node app.js
Friday, July 24, 2015
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
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
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/
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, June 28, 2015
Baking Pi
This is interesting..
http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/
Should try with raspberry pi
http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/
Should try with raspberry pi
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
http://en.wikipedia.org/wiki/AWK
awk tutorial are available in the following link http://www.grymoire.com/Unix/Awk.html