Skip to main content

Posts

Showing posts from August, 2017

Installing Cordova on Ubuntu 16.04 without Android Studio

Apache Cordova is a platform to build mobile applications using JavaScript, HTML5 and CSS. When I was trying to install cordova for creating an android application on my Ubuntu 16.04 I was facing lot of versioning and dependency problems. So in this post I will be discussing about all those issues and the solution that worked for me. All the steps are via command line and so no android studio . I don't want to install GB's of files to just use sdk. Steps: Install latest version of node and npm Install Cordova Install android SDK (Command line) Setting environment variables Creating android plaform Creating and running first app Installing latest version of nodejs By default ubuntu 16.04 has a stable version of nodejs added in its own repository. So to install latest version from Ubuntu itself you can simply use apt commad as follows. $ sudo apt update $ sudo apt install nodejs But when I was using this version (4.2.6 is the latest stable version available wh

Duplicate file finder/Remover using perl and SHA1

When you are using a computing devices (either a laptop or PC or a Tab) for your personal use after some time (let take some years) you will realise that your disk is full and most of the space are occupied by duplicate files (Same copy of file located in different locations). For ex: You might have a favourite music file in "My Favourite" folder as well as in the "Album" folder. But finding this duplicate manually is a biggest process. That too if the file names are different OMG!. There are lot of free utilities available to do this in automated way, but if you are a programmer, you will always prefer to do it on your own. Here are the steps we are going to do. This is purely on a linux - Ubuntu system.  (for windows you might need to change the path as per conventions ) Getting SHA1 for all the files recursively in a given directory Compare SHA1 with other files Remove the duplicate file Getting SHA1 of a file Using cpan module   Digest::SHA1 we c

Best Investment of Time

Most of us have a common question of "What should I do in my free time?" which will help you to improve your life skills or even help your life financially.  Frankly speaking there is not straight one word answer and also the answer depends on person to person. First lets decide what is your interest or what is best skill. You might be interested in Body building Do it your Own (DIY) projects Knowing things Programming Testing Applications Destroying things :-) Talking about movies Roaming etc.., What ever it is, first thing is don't be lazy, you have to do your interest day to day else that interest will became obsolete. And second thing, lets share that to other people in the world. Internet is a common thing for us now a days. Use that resource wisely. Increase your contact and make people know about you. Upload videos Create Blogs Answer people questions online Publish articles Create Apps and publish it on Play store  etc.., Basic

Git and Github useful commands

Working on a personal forked repository Most of the time when you are working in an organisation who uses git, you will be requested to fork the project and create pull for your feature or bug fixes (Most of the open source contribution in git will be happening like this). In this note I will let you know some useful git commands which will be very helpful for you in your day to day life with git. I am not going to explain any git technical terms. I am assuming you already know about it or all those terms are linked to a proper source for more information. Lets start. You can fork any github project by clicking the fork icon on  the top right of a repository.  git clone git@github.com:<your-github-id>/Project.git  - to clone your forked Project (personal repo) cd Project/  - get into your repository git fetch origin  - will fetch all the details/indexes (branches and commits) from  remote origin but will not apply. git branch  - is used to check a

My First Post

After lot of thinking and research me too started a blog finally to share my knowledge :-). Not everybody know everything but also everybody else don't know what we know. So lets share and gain knowledge with Win Win approach.