Tuesday, September 16, 2014
Android icon Resizer.
When you want to develop android applications,you need images in different sizes for different device display densities. By using this script you can create all those at one single execution.Place the images and in a directory where you place the script and then run the script.You need to have image magic installed to work this script.
You can install Image Magic by,
sudo apt-get install imagemagick
Sometimes you may not have the permission to execute the script.In that case use
chmod +X converter.sh
Then simply execute by,
sh converter.sh
The images are placed under relevant directories and you can replace them with the to replace the directories which you will find under, res directory in an Android application.
Get the Shell Script From here.
Monday, September 8, 2014
Eclipse (or any other derive IDE) unable to start.
When I wanted to start my development in Spring Suite Tools, I got this message saying that I have not installed my JDK. But when I run,
$ java -version
in my terminal it gives me the current JDK installed in my computer. Even JDK is there I can't use my Eclipse or any derive IDE from it.
A way of getting around this problem is to give argument to the Eclipse at the start. That is by editing the eclipse.ini (STS.in my case) and the following line,
-vm
/path/to/jdk/bin
Ex :
-vm
/home/randika/Programming/jdk1.8.0_11/bin
before the line,
-vmargs
Thats it. Now Eclipse works and back to coding.... WE CODE HARD !!
Read More
$ java -version
in my terminal it gives me the current JDK installed in my computer. Even JDK is there I can't use my Eclipse or any derive IDE from it.
A way of getting around this problem is to give argument to the Eclipse at the start. That is by editing the eclipse.ini (STS.in my case) and the following line,
-vm
/path/to/jdk/bin
Ex :
-vm
/home/randika/Programming/jdk1.8.0_11/bin
before the line,
-vmargs
Thats it. Now Eclipse works and back to coding.... WE CODE HARD !!
Saturday, August 23, 2014
Install NodeJs,npm,bower,yoeman,grunt without sudo
Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. - http://nodejs.org/
Nodejs comes with a package manger call npm (Node package manger). This command line tool is used to install other tools like bower,yoeman,grunt-cli etc. Nodejs can be easily installed using the Ubuntu package manger apt-get. One of my friend has a short but good post of it (Install bower.).
In my post I will show how to install nodejs and some other tools like bower install in your Ubuntu without 'sudo'.
1. Get the latest nodejs from this site.Make sure you get the Linux version here and select the proper arch type,32bit or 64bit.
2.Extract the content to a directory that you have access.Ex. In my case I use
~/Programming/node-v0.10.31-linux-x64
The node directory name may change according to the version and archtype you are getting.By the time I write this its version 0.10.31.
here the directory name is important as we want it later to install other tools.
3.Now we need to add the node and nmp to the system environment.Edit .bashrc (which is hidden by default in ~/.bashrc). Add the following line to the code.
#NodeJs
export PATH=
In my case this is.
#NodeJs
export PATH=/home/randika/Programming/node-v0.10.31-linux-x64/bin:$PATH
4. Save the file. Launch a terminal and type
npm -v
you should get the version number of the node that you have installed.
5. To install other tools using npm we can use,
nmp install [package name]
For example if I want to install bower using npm,
npm install bower -g --prefix ~/Programming/node-v0.10.31-linux-x64/
6. Check for installed version of bower using
bower -v
7. Likewise you can install Yeoman and Grunt using nmp.
npm install yo -g --prefix ~/Programming/node-v0.10.31-linux-x64/
npm install grunt-cli -g --prefix ~/Programming/node-v0.10.31-linux-x64/
Update:
You can set the prefix path in npm by
npm config set prefix
in my case its
npm config set prefix ~/Programming/node-v0.10.31-linux-x64/
Wednesday, August 20, 2014
Spring Boot
Now that heavy configurations are simplified with Spring Boot Project. You can go to Spring Boot website and get more information about it. But I will work on a full application develop with this project and cover more interesting parts in a series of posts later. Till that you can follow the sample guides that in the website. I highly recommend to download and install Spring Suite Tools witch is very easy to develop Spring applications.
Update:
Check my Youtube chanel for the video guide lines.
Subscribe to:
Posts
(
Atom
)