Skip to main content

Posts

Cloud-Based Driver Monitoring and Vehicular Diagnostic With OBD2 Telematics

Draw line graphs with AchartEngine in Android

AchartEngine provides an easy way of drawing both line and bar graphs in android platform. In here I describe drawing line graphs.  First need to add AchartEngine jar file to your android project. You can download it from here . If it is maven based project you can add the dependency and all details are in here . After you download the jar, add it into the libs folder and right click on the jar and Select Build the path as Figure 1 follows. Figure 1 - Configure Build Path If it is a maven based project, simply you have to build the project, will be downloaded the jar file to your project. Figure 2 - Graph class In above java class, you can refer easily to understand AchartEngine line graphs implementation. In here, used two pre-defined arrays as X and Y.  Then add those values to TimeSeries which is names as “Line1”   Then you need to add this TimeSeries to XYMultipleSeriesDatase t, then that dataset should add to the XYSeriesRender ....

Install Mongodb using binaries in linux

Mongodb is open source, no sql database which widely use in modern applications. You can go through official mongodb site for more details. First we need to download the suitable(32-bit or 64-bit) tgz file through this link Then put that tgz file where you need (Note :- I put that file in 'installs' directory in Home directory) Extract the tar file Then we can see there is only one directory which called 'bin' inside the extracted mongodb directory. Now we need to create additional four directories which called conf , data , pid and logs . Then we need to add a mongodb configuration file to conf directory which called mongo_default.conf Here is my file. You have to set paths in the file according to your configurations.  If the configuration file is configured correctly, now you can start mongo server explicitly and access mongo database. First we need to go the the mongodb bin directory. Start mongo server with...

Spatial Data Processing Library for Stratosphere

Stratophere is big data analysis platform which implements through parallel programming concepts. Stratosphere's programming model provides six parallelizable operator functions Map Reduce Join  Cross CoGroup Union JTS library is a standard java library to perform geographical analysis with special data types like points, paths, polygons. In this spatial data processing library, we are going to implement various geographical analysis such as intersections, joins with big map data in standard formats like OSM(Open Street Map) There is some effort in here to create new data types in stratosphere which is compatible with JTS library. Here is an example to Stratosphere Java API with WordCount example. You can simply download the stratosphere-examples and check it your own. When you need to familiar with stratosphere, there is exercises in bigdataclass website. You can find out those implemented exercises in java. Word Count examp...

Setting environment variables in ubuntu

Ubuntu has a nice way to configure most of the important softwares (java,sbt,scala,....etc) without installing through ubuntu software centre- sudo apt-get install ….... You only have to do is, download that files folder and put it that folder wherever you like and set environment variables. That's all.  Java Configuration  Go to this url  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html   Download  jdk-7u45-linux-x64.tar.gz  Move that file where you want to store.  In here I've created a directory named 'hms' in my home folder and in hms there is a directory called 'installs' (path = /home/shashika/hms/installs )  Then go to your directory and extract the jdk-7u45-linux-x64.tar.gz file Then you can see the extracted file Now the important part. That is set the jdk/bin path in bashrc file which is in your home folder.  If you can see it in your home folder press ctrl-h then you ...

How to install cakePHP in Windows

CakePHP is a free, open-source, rapid development framework for PHP. It’s a foundational structure for programmers to create web and database applications. http://en.wikipedia.org/wiki/CakePHP Make sure ‘Wamp Server’ has been correctly installed to your machine and start ‘Wamp Server’. Download CakePHP zip folder from http://cakephp.org/downloads Extract the zip folder Create a new folder at C:\wamp\www and name it as you want. (In here it was named as ‘cakephp’) Figure 1 Then copy all contents of the downloaded folder to newly created ‘cakephp’ folder. Figure 2 Then open your browser and go localhost/cakephp(localhost/your_folder_name) . You may see a window like this. Figure 3 If you are get a window like this now you have to do some extra work on Wamp Server. Click on wamp icon on the taskbar go to Apache->Apache Modules . Then find out rewrite_module and click on it to make it enable. Figure 4 Note :- If rewrite_module is already enabled in y...