About educcess

Posts by educcess:

Amazon Cloud EC2 : Create and configure free tier account

Amazon Cloud EC2 : Create and configure free tier account

Are you searching for Free tier amazon AWS EC2 guide or tutorial ? Those who are working on Setup, configure and maintaining AWS amazon Server EC2 and S3 bucket. Here is the perfect guide for you. Sys Admins will love the guide.

Steps to create Amazon EC2 cloud account, 

1. GO to EC2 console and click on Instances at the left panel and Click on Launch Instance 

Create Amazon EC2 account

Create Amazon EC2 account

2. Select the AmazonMachine Image (AMI) which you want. (I have selected the 1st one ie amazon linux AMI)

Chose Amazon Machine (AMI)

Chose Amazon Machine (AMI)

 

3. By default General purpose is selected ie free-tier (t2.micro type). (You can select the any instance type you want based on your requirement) (I have selected the free tier t2.micra which comes with 1 GB ram by default)

Amazon EC2 Instance type

Amazon EC2 Instance type

 

4. Click Next tab at the below to configure the corresponding details. And in configure Security Group step select the Select an existing security group radio button and then Click on Review and Launch

5. Click on Review and Launch.

6. Once you click on Launch it will ask you to create key pair. Select Create New Key Pair from the drop down and give some name and click on Download key pair (It will helpful in future to connect Amazon server using putty). It will download one .pem file with the given name

7. Click on Launch Instances, this completed the creation of Amazon instances. In the next screen click on the view instances

Amazon EC2 launch instance

Amazon EC2 launch instance

 Amazon EC 2 DB instance creation 

1. Click on Services at the top bar select RDS at the left panel, Select DataBase under all services and then select RDS

Amazon EC2 DB creation

Amazon EC2 DB creation

2. Click on instances at the left panel and click on Launch DB Instance.

Amazon EC2 DB instance create

Amazon EC2 DB instance create

 

3. Select the required DB engine. (I am selecting MySql)

4. Production Select the No radio button for the free tier version and click on next step.

Amazon EC2 DB instance free tier

Amazon EC2 DB instance free tier

 

5. Fill the DB details in with the below details.

License Model : General-public-license

DB Engine Version : 5.6.2.3

DBInstance Class : db.t2.micra -1vCPU, 1 GB RAM

Multi-AZ Deployment : No

Storage Type : General Purpose (SSD)

Allocated Storage : 5

Provide the DB instance identifier, Master username and Passwor (these details will be usefull later for DB connection from the application or to connect from the sql clients)

Click on Next Step : Configure the advance details as shown below image for free tier.

Amazon EC2 DB Instance Advanced Settings

Amazon EC2 DB instance Advanced Settngs

Amazon EC2 DB instance Advanced Settings

 

Amazon EC2 DB instance Advanced Settings 1

Amazon EC2 DB instance Advanced Settings 1

 

5. Click on the Launch DB Instances and click on view DB instance to see the DB details. (It may take some time to create the DB)

Amazon EC2 Launch DB Instance

Amazon EC2 Launch DB Instance

 

Also Read : How to Configure Amazon EC2 Security group 

Also Read : An Interesting Article on how Facebook using aircrafts, laser beam to provide internet to remote areas on earth

Also Read : Interesting Article on How Facebook Using Artificial Intelligence, Facebook identifies you based on your hair style, your dressing, your standing posture

Also Read Windows 10 upgrade is available : See what you have to do if you can’t wait 🙂

Also Read : 8 Ways IOT will change your life .

Also Read : Is Google+ struggling ?

Solar powered Smartphones : Solar thin plate at back of the smartphone

Solar powered Smartphones : Solar thin plate at back of the smartphone

What will be the impact on environment due to usage of smart phones ? how much energy they consume ? this might look silly because after all a smartphone how much it can consume ?

fine let us analyse the data …

How much electricity your Gadgets use ?

An iPhone 6 plus battery spec is 2915 mAh battery (11.1 Wh), for your information 1Wh is a unit of energy equivalent to one watt (1 W) of power expended for one hour (1 h) of time.1 Wh represents 3600 joules of energy. Your iPhone uses 11.1Wh, now assuming you will charge your phone every day, so it means every year your phone consumes 4000Wh of energy per year.

now think about number of iPhone users , yeah here is the stats. Apple sold a whopping 74.4 million iPhones over the 90 day period. Which means 74400000 iPhones ( assuming all are iPhone 6 plus ). So the total amount of energy will be 1,97,60,00,00,000Wh.

A CFL bulb uses 767KWh per year, now converting 1,97,60,00,00,000Wh. to KWh gives us 29,76,00,000Wh

so using this much power we can use 389CFL bulbs for a year. Wait I am just considering iPhone 6 here.

We have Micromax,Samasung Galaxy series, HTC, Motorola etc. 

Now let us take a look into total number of mobile phones used in the world 🙂

 

Total number of mobiles in the world

Total number of mobiles in the world

 

Its a huge number – so energy being used ???

Why it is necessary to think about Solar Powered Smart phones ?

Considering the above stats it is really a good idea to think about keeping a solar plate attached to the back of your smart phone and completely avoid using electricity for charging. If you start using 3G you have charge your phone atleast two times in a day,  playing videos and games at least three-four times you have to charge in a day.

Let us look into few more stats – The below data is almost 3-4 years old 

61% of smart phone subscriptions, 4221 Mega joules of energy which is equivalent to 32gallons of Gas and emits 112Kgs of CO2.

Transferring 1GBit of data over 3G network will use 933 Mega joules of energy, If every one left their cell phone charger plugged It would waste electricity enough to power 28000 homes.

Reference : http://www.techi.com/2011/01/the-environmental-impact-of-cell-phones/

Finally at Mobile World Congress in Barcelona, a prototype has been shown that uses a display as solar panel to charge the battery.

Solar powered smartphone screen

Solar powered smartphone screen

 

 

Server Sent Events (SSE) using Jersey, spring and Javascript

Server Side Event not firing in Jersey 2.8 using SSE

Notifications were playing a major role in every applications either it is a mobile application or web application or even a desktop application. These days every latest Operating system updates were including Facebook as a service within OS itself and mail notifications were just on your desktop.

It is important to learn how to support realtime notifications in your web applications. Following technologies were considered in the given example

Springs

Jersey2.8

Javascript

Server Sent Events Javascript Code

Register to Server Sent Events in Javascript

 

var notificationBaseURL =  "http://myapplication.com/"; //The URL Where your services are hosted
function listenAllEvents() {
	if (typeof (EventSource) !== "undefined") {

		var source = new EventSource(
				notificationBaseURL+"applicationnotifier/sse/events/register/"+loggedInUserName);
		source.onmessage = notifyEvent;
	} else {
		console.log("Sorry no event data sent - ");
	}
}

function notifyEvent(event) {
	var responseJson = JSON.parse(event.data);
	alert("... Notification Received ...");
}

In the above code the URL is specific to user who have logged in. Every user has to register for notification.

Java Spring Code For Server Sent Events(SSE):

 

//    NotificationHandler.java

package com.applicationnotifier.Notification.WebServices.Impl;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.inject.Singleton;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jettison.json.JSONObject;
import org.glassfish.jersey.media.sse.EventOutput;
import org.glassfish.jersey.media.sse.OutboundEvent;
import org.glassfish.jersey.media.sse.SseBroadcaster;
import org.glassfish.jersey.media.sse.SseFeature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.ResponseBody;

import com.applicationnotifier.Notification.framework.impl.NotificationFrameworkFactory;
import com.applicationnotifier.Notification.framework.intf.NotificationFrameworkInterface;
import com.applicationnotifier.dao.notification.NotificationDao;
import com.applicationnotifier.pojo.Form;
import com.applicationnotifier.pojo.notification.Notification;
import com.applicationnotifier.responsepojo.NotificationResponse;

/*
    A CLASS THAT REGISTERS NOTIFICATIONS
    Registering does following functions
    1. Create a broadcaster object for each notification type
    2. Map Event Output object for each broadcaster to broadcast a message
    3. Broadcast the event
 */

@Singleton
@Path("/events")
public class NotificationHandler {
	
	final static Logger logger = LoggerFactory.getLogger(NotificationHandler.class);
	@Autowired
	@Qualifier("notificationDaoImpl")
	NotificationDao notificationDao;

    /*
        A map thats keeps track of each notification and its output event object. broadcaster object.
        SseBroadcaster will perform broadcasting the notification
     */
	Map<String, SseBroadcaster> notificationBroadcasterMap = new HashMap<String, SseBroadcaster>();

    
    /*
     registerForAnEventSummary: will be called when the client registers for notifications
     in javascript we call listenAllEvents() method.
     */
	@Path("/register/{userName}")
	@Produces(SseFeature.SERVER_SENT_EVENTS)
	@GET
	public @ResponseBody EventOutput registerForAnEventSummary(
			@PathParam("userName") String userName) {
		try {
			NotificationFrameworkFactory factory = new NotificationFrameworkFactory();
			
			EventOutput eventOutput = new EventOutput();
			

            /* Returns all types of notifications, for each type of notification there should be an implementation as newMessageNotificationImplementation or newMessageNotificationFramework
             
                Exmple  newMessageNotification, in this example this notification has a class
                newMessageNotificationFramework.java
             
             */
			List notificationTypes = getAllNotificationTypes();

			for (String notificationType : notificationTypes) {
				NotificationFrameworkInterface notificationInterface = factory
						.getNotifieir(notificationType);
				String keyVal = getKeyVal(notificationType, userName);
				if (!notificationBroadcasterMap.containsKey(keyVal)) {
                    //Add broadcaster to map
					notificationBroadcasterMap.put(keyVal,
							notificationInterface.getBroadcaster());
				}
				
                //Get broadcaster and add event output
				notificationBroadcasterMap.get(keyVal).add(eventOutput);
			}

			return eventOutput;
		} catch (NullPointerException exception) {
			logger.error("Exception Occurred: ", exception);
		}
		return null;
	}

    /*
     getKeyVal : every user must register for each notification
                Notification Key : newMessageNotification_Ram indicates Ram is listening to newMessage notification
     */
	private String getKeyVal(String typeOfEvent, String userName) {

		switch (typeOfEvent) {
		case "newMessageNotification":
        case "likeNotification":
        case "commentNotification":
			return typeOfEvent + "_" + userName;
        		
		default:
			return null;
		}
	}

    //Return different types of notifications supported in your application
	private List getAllNotificationTypes() {
		List notificationTypes = new ArrayList();
		notificationTypes.add("newMessageNotification");
		notificationTypes.add("likeNotification");
		notificationTypes.add("commentNotification");
		return notificationTypes;
	}

    /*
        Just returns a Map object for a given json string
     */
	@SuppressWarnings("unchecked")
	protected HashMap<String, String> getMapFromJson(String message) {
		ObjectMapper mapper = new ObjectMapper();
		HashMap<String, String> value = null;
		try {
			value = mapper.readValue(message, HashMap.class);
		} catch (IOException e) {
			logger.error("Exception Occurred: ", e);
		}
		return value;
	}

    /*
        Broad cast notification to all clients which are registered for notification
     */
	@Path("/broadcast")
	@POST
	@Produces(MediaType.TEXT_PLAIN)
	@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
	public String broadcastNotifications(@FormParam("message") String message) {

		try {
			HashMap<String, String> value = getMapFromJson(message);
			JSONObject responseJson = new JSONObject(value);
			/*
			 * System.out .println("received data: " + message);
			 */
			OutboundEvent.Builder eventBuilder = new OutboundEvent.Builder();
			OutboundEvent event = eventBuilder.name("message")
					.mediaType(MediaType.TEXT_PLAIN_TYPE)
					.data(String.class, responseJson.toString()).build();

            //Things you wish to send to client
			String keyVal = getKeyVal(value.get("ntftyp"),
                                      , value.get("un"));
			System.out.println("broadcasting: " + message + " to: " + keyVal);
			if (notificationBroadcasterMap.get(keyVal) != null) {
				// System.out.println("message is ready for broadcasting");
				notificationBroadcasterMap.get(keyVal).broadcast(event);
			} else
				System.out.println("no broadcaster for: " + keyVal);
		} catch (NullPointerException exception) {
			logger.error("Exception Occurred: ", exception);
		}

		return "Message '" + message + "' has been broadcast.";
	}
}



// NewMessageNotificationBusniessIntf.java

package com.applicationnotifier.Notification.business.intf;

import java.util.HashMap;
import java.util.Map;

import com.applicationnotifier.Notification.framework.impl.NotificationAbstractFramework;

public abstract class NewMessageNotificationBusniessIntf extends NotificationAbstractFramework {
    public boolean notifyNewMessage(HashMap<String, Object> message);
}


// NewMessageNotificationBusniessImpl.java
package com.applicationnotifier.Notification.business.impl;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.methods.PostMethod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.applicationnotifier.Notification.business.intf.NewMessageNotificationBusniessIntf;

/*
    Call these methods when some updates happened in your Database
    Example - Some one sent a message, the messageInsert service will be called (Spring Controller,Service,Repository ) 
    in Service layer create object of NewMessageNotificationBusniessImpl and call these methods to notify
 
    In these methods just call Post/Get methods , these methods are services for your notifications
        URL - sse/events/broadcast/
 
    Any call to sse/events/broadcast/ will call a method defined in NotificationHandler class i.e broadcastNotifications
 */
@Service
public class NewMessageNotificationBusniessImpl extends
		NewMessageNotificationBusniessIntf {
	
    @Override
	public boolean notifyNewMessage(HashMap<String, Object> message) {
		try {
			message.put("msg", message.get("un") + " You have new message ");
			HttpClient httpClient = new HttpClient();

			PostMethod postMethod = null;
            postMethod = new PostMethod(
                    resourceBundle.getString("localhost:8080")
                            + resourceBundle.getString("applicationnotifier")
                            + resourceBundle
                                    .getString("sse/events/broadcast/"));
			
			// postMethod.addParameter(data[0]);
			NameValuePair[] parametersBody = {
					new NameValuePair("message", convertToJson(message)),
					};
			postMethod.setRequestBody(parametersBody);
			httpClient.executeMethod(postMethod);

			BufferedReader responseReader = new BufferedReader(
					new InputStreamReader(postMethod.getResponseBodyAsStream()));
			String line;
			while ((line = responseReader.readLine()) != null) {
				System.out.println(line);
			}
						
			return true;
		} catch (Exception e) {
			logger.error("Exception Occurred: ", e);
		}
		return false;
	}
}


//NotificationAbstractFramework.java
package com.applicationnotifier.Notification.framework.impl;

import java.io.IOException;
import java.util.Map;

import org.codehaus.jackson.map.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class NotificationAbstractFramework {
	
	final static Logger logger = LoggerFactory.getLogger(NotificationAbstractFramework.class);

	protected String convertToJson(Map<String, Object> message) {
		try {
			ObjectMapper mapper = new ObjectMapper();
			return mapper.writeValueAsString(message);
		} catch (IOException e) {
			logger.error("Exception Occurred: ", e);
		}
		return "";
	}
}



Severe Exception : Struts tags without the associated filter

Severe Exception : Struts tags without the associated filter

SEVERE: Servlet.service() for servlet jsp threw exception
The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
	at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:60)
	at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:44)
	at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:48)
	at org.apache.jsp.jsp.failure_jsp._jspx_meth_s_005fif_005f0(failure_jsp.java:122)
	at org.apache.jsp.jsp.failure_jsp._jspService(failure_jsp.java:85)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:476)
	at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:420)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:208)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:722)


			




Jun 12, 2015 10:44:16 AM org.apache.catalina.core.StandardHostValve custom
SEVERE: Exception Processing ErrorPage[exceptionType=java.lang.Throwable, location=/jsp/failure.jsp]
org.apache.jasper.JasperException: The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
	at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:476)
	at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:420)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:208)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:722)

Solution
if we want to use struts tags then request must pass through servlet filter. It can be done by mapping all the request to servlet filter by using. For these kind of issues check with all ur requests (actions) mapped in struts.xml.

In my case the issues was different and strange, In JSP null array list was being iterated using struts tags some things like below 

<c:forEach var=”itemImage” items=”${items.getImages()}”> where items.getImages() was null.

 

SEVERE: Exception sending context initialized event to listener instance of class

SEVERE: Exception sending context initialized event to listener instance of class

This issue typically appear during upgrading java from java 1.7 to java 1.8, and for Java 8 spring 3 does’t work, spring 4 upgrade is compulsory.

 

Exception :


			




SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/Spring-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:548)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
    at java.lang.Class.getDeclaredMethods(Unknown Source)
    at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:570)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:489)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:502)
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:473)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1059)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1032)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1471)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1216)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)
    ... 20 more
Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    ... 41 more

Solution
Hibernate 3
———————————
<bean id=”transactionManager”
        class=”org.springframework.orm.hibernate3.HibernateTransactionManager”>
        <property name=”sessionFactory” ref=”sessionFactory” />
</bean>
    
<bean id=”sessionFactory”
    class=”org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean”>
</bean>

Hibernate 4
———————————
<bean id=”transactionManager”
        class=”org.springframework.orm.hibernate4.HibernateTransactionManager”>
        <property name=”sessionFactory” ref=”sessionFactory” />
</bean>

<bean id=”sessionFactory”
    class=”org.springframework.orm.hibernate4.LocalSessionFactoryBean”>
</bean>

pom.xml changes

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-entitymanager</artifactId>
    <version>4.0.0.Final</version>
</dependency>

Future Of Technology : Imagine the future

Future Of Technology : Imagine the future

Where we are heading ? What will be the future ? The whole world is evolving just due to few big elephants, yeah Google,Apple,Facebook and Microsoft. Thousands of companies every day emerging out and directly or indirectly these big elephants are source for all these evolution in technology, they are changing the world.

Read : 8-ways-the-internet-of-things-iot-will-change-the-way-you-live

We have seen great inventions happened in last decade, Everything which was there upon the table now came to your finger tips, you can speak to your mobile and yeah it responds you back nicely. Apple Siri changed the way of communication with its touch interface in iPhone and voice interface in Siri, google now and microsoft’s Cortana.

Microsoft took one step ahead with its Hologram that is one of the awesome idea, but how much that would be complete we have to see only when we get it in use. Google’s self driving car and now Apple in the same line.

What else ??

An Era of Adopting to Technology

This is very old story now, 5 years before people use to say we should adopt technology, use technology and grow your business, use technology and optimise your tasks, use technology schedule your duty oh what not? It became big problem for old generation who never understood how to use computers and how to learn to use applications etc.

Observing closely the recent evolution in technology proves that, that era has gone now, it is taking a new shape and evolving even more sophisticatedly and smartly. then What we could expect out it ?

An Era of Technology being adopted to humans

Does’t it looks funny ? or does it make any sense ? yes of course it makes sense. Softwares are becoming smart with the intelligent algorithms, devices are becoming smarter with ultimate sensors, It is not just your touch, it is not just your voice now your movements and pattern are being analysed by algorithms and your device decides what to do next ! Google Search becoming clever every day it can understand the context you are working and you can query as if you are speaking to some one. Apple announced latest OS, the main focus is to make their device intelligent, It understands where you are, it understands what you are looking for it suggests you.

Operating systems are becoming smarter day by day, the data you are going to access are local more native centric, machines knew what you want, they understand you better than any one else 🙂

Future Is In Artificial intelligence ?

Looks like These big elephants are creating market for it, Apple’s HomeKit and google’s Brillo making every object you are using at home connected, your every device may start understanding what you are and they serve you what exactly you want and when exactly you want.

You home lock is connected to you phone, your kitchen is fully under your control, your lights will get on as you enter and off as you are leaving the room, algorithms understand your behaviour by analysing the data collected and will suggest you which food you can have now, they alerts you when you are eating high calorie food because your weight is under control since you started Yoga 🙂

artificialIntelligence

artificialIntelligence

Future Of Robotics !

So far robots were made for space missions, for military and for research areas but its the time to have a robot for your personal assistance everything what a human can do, now machines can do much better than him, Robotics in home appliances will be popular soon. Google is investing in robotics not only this much there are Top 10 Robotics companies which are expected to change the future of robotics.

iRobot

iRobot

Automation Industry

Thanks to ipv6, you can generate as many ip addresses using ipv6 where you can automate each and every device of every home in the world, Thanks to the concept of Internet Of Things where every device is connected to cloud directly, google’s Brillo is an example for IoT. You automate everything, control everything just using your smart phone, yeah really smart phone 🙂

Future Of Technology ?

One can imagine now what would be the future of Technology, Everything is connected, Everything under your control, Everything is automated, Everything is smart and intelligent, Everything just in front of your door. Rather than asking what you want, now your devices, your softwares will say what you need 🙂

 

Imagine the Future !

Companies investing heavily to make your life simpler, but we are really neglecting the mother nature, we are really forgetting environmental issues, our soil is polluted due to waste gadgets, chemicals etc our air is polluted, oceans are polluted. globalisation bringing more and more problems to us. We should really encourage and appreciate the use of renewable energy sources and make our future even better.

Use of solar panel for you mobile to charge, use of solar power to make ur robot work at home, use of intelligent architecture to cool your home/office, what else can be done ? just invent anything keeping environment in mind.

Enjoy the future because you have no work to do, you will be the laziest animal on this planet 🙂

 

Apple Worldwide Developers Conference (WWDC) 2015 – iOS9 Updates

Apple Worldwide Developers Conference (WWDC) 2015 – iOS9 Updates

 

Apple concentrated on elevation of foundation of iOS, Extending your battery life, improving performance and enhancing security to protect customer data. The more is added in iOS 9, that is adding an intelligence.

This articles can be an io9 wiki for you, as io9 announcement has been done from apple people were going crazy about it. It looks like A iOS9 Star war kind of things will begin now, yet to see how would be google’s next update. We have seen sci fi movies, but with the intelligence added in iOS now onwards it will come out as iOS 9 sci fi.

iOS9 announcement and updates

1. Intelligence in Siri –

Siri playing a major role in users life, over 1 billion requests per week are recorded.

40% accurate that last year. Siri has really new cool UI.

Intelligence in iOS9 –

Just say “Photos i have taken last august” ,

Siri is great with reminders – Remind me to grab my coffee off the roof when I get into the car.

While browsing just say, “remind me about this when go home “

Intelligence with Apple Siri

Intelligence with Apple Siri

Proactivity in iOS 9 – Just plug in your headphone while running in the morning, the audio plays automatically right on your lock screen. A context sensitive to the time, place your iOS 9 is more proactive than before.

iOS 9 Call updates – unknown number ? guessing who this might be ? your iOS 9 scan across all the mail and finds out the number and shows who this is !

 

Apple iOS9 call update

Apple iOS9 call update

 

Apple iOS9 call update

Apple iOS9 call update

 

iOS 9 Search updates – swipe to the left size of your home screen, Siri offers you great suggestions, based on your recent activities, you might have meetings, you might have called some one, you might have had chat with some one on important event etc.

Siri Suggestions in iOS9 search

Siri Suggestions in iOS9 search

 

Search in iOS 9 – you can search video which results your iTunes, youtube. you can search scores for your favourite games.

You can call, message get info right in the search page.

iOS 9 search pane

iOS 9 search pane

most important update is Apple providing Search APIs – you can now develop an application for you search to gave more customised search results.

Search APIs and their capabilities – You can have indexed your application content stored within it and provide a deep link into the application screen.

Guess you are preparing breakfast and you wanna see the recipe for a dish, just search Potato

search result shows up your favourite dish prepared using potato which is marked in an application

iOS 9 search and Deep link to app

iOS 9 search and Deep link to app

Tap on it and it takes you directly to that screen of the application

iOS 9 search and Deep link to app

iOS 9 search and Deep link to app

 

Scrubble bar in Photos – scrubble bar at the bottom helps for quick navigation to all photos, just scroll over it.

scrubble bar in photos ios 9

scrubble bar in photos ios 9

 

Apple introduces intelligence throughout the iOS but no compromise with the security,

  • Nothing is associated with your Apple ID
  • Not linked to other Apple Services
  • Not shared with third party
  • You are in control

Everything done on device and under your control

Apple Pay –

2500 brands supporting Apple Pay

Apple working with millions of small businesses to accept Apple pay – Small businesses are most important

More cards added –

Kohl’s Charge or JCPenney Credit Card. R

eward cards, like Dunkin’ Donuts DD Perks, Walgreens Balance Rewards, and MyPanera,

Use yourWallet app and receive and redeem rewards using Apple Pay.

And now you can just double-click the Home button when your iPhone is locked to access Wallet and quickly pay with Apple Pay.

London transportation system working with Apple to support Apple Pay.

Notes App – provides handy tool bard to add headings, text formatting, number bliss, checklists, add a picture using camera

IOS 9 notes app

IOS 9 notes app

Drawing tool in Notes App – Apple providing drawing tool, you can draw and keep it within the application.

Drawign in iOS9 notes app

Drawign in iOS9 notes app

Note app provides cool new grid view that shows notes based on the photos added, web links stored etc

Note app grid view ios9

Note app grid view ios9

Apple Maps : Public transit, it covers all transit lines like buses, subways, trains in a cool way

iOS9 Maps Transit

iOS9 Maps Transit

 

NEWS application – Apple providing a news application in home screen, which collects news from popular sources.

iOS 9 new app

iOS 9 new app

 

New look to Keyboard – Suggestion bar and many more

iOS 9 keyboard

iOS 9 keyboard

Keyboard Shortcuts in iOS 9 and Trackpad  :

iOS 9 trackpad

iOS 9 trackpad

Two fingers down over a keyboard the keyboard becomes trackpad instantly. You can use keyboard as trackpad to make selection of text, shortcuts like cut, paste and move the cursor.

If your device is connect to physical keyboard then the shortcuts works great

iOS 9 physical keyboard shortcuts

iOS 9 physical keyboard shortcuts

 

iOS 9 Multitasking:

Double tap on home button and see all running apps 

Multitasking iOS 9

Multitasking iOS 9

 

Single finger swipe from the side shows messages in side bar

iOS 9 message in sidebar

iOS 9 message in sidebar

Pull down from the top and bring other applications

iOS9 multitasking

iOS9 multitasking

SplitView in iOS 9 

just tap on the divider and both the apps works interactively 

SplitView iOS 9

SplitView iOS 9

For the first time Multi app and multi touch, you can move your fingers on both the apps at the same time and both the apps will responds to your touch gesture.

Multitasking in the context of Video watching 

Video window remains over the screen when you switch to other application as well.

iOS 9 multitasking video context

iOS 9 multitasking video context

 

Performance improvements in iOS 9

iOS 9 takes advantage of Metal graphics library more efficient use of the CPU and GPU to deliver faster scrolling, smoother animation, and better overall performance .

Reference – Read more about metal 

iOS 9 game APIS – Enhanced SpriteKit, SceneKit and Metal and few new kits being added

GamePlayKit, ModelIO and ReplayKit 

Android to iOS migration support Move to iOS app 

Move to iOS app –  Move to iOS app works wirelessly switch from your Android device to your new iOS device.

 It securely transfers your contacts, message history, camera photos and videos, web bookmarks, mail accounts, calendars, wallpaper, and DRM-free songs and books. And it will help you rebuild your app library, too. Any free apps you used — like Facebook and Twitter — are suggested for download from the App Store. And your paid apps are added to your iTunes Wish List.

Move To iOS app

Move To iOS app

 

Updating iOS will bring life to your iPhone.

Read more about OS X El Capitan

http://knowledge-cess.com/apple-worldwide-developers-conference-wwdc-2015-el-capitan/

Read Smart Cities, Smart Houses : 8-ways-the-internet-of-things-iot-will-change-the-way-you-live

Apple Worldwide Developers Conference (WWDC) 2015 – OS X El Capitan Updates

Apple Worldwide Developers Conference (WWDC) 2015 – OS X El Capitan Updates

 

Every one of you might be waiting for new updates from Apple, Yeah Apple is awesome, we all love Apple. Just let us go through latest updates from Apple.

Apple Releasing latest OS X updates and it is now called as OS X El Capitan, Why Apple calling its latest OS X update as El Capitan ? The previous OS X version 10.10 is called Yosemite which is the name of a national park, Yosemite National Park, El Capitan is the vertical rock formation in Yosemite.

Let us go through its latest updates.

Mac OS X El Capitan – Features

Shake the cursor it will become bigger which helps you to find the cursor quickly

1. Intelligent Spot light – More expressive, more powerful and more knowledgable.

Search your favourite game you will get game score right there,

If you are going to watch the game on sunday, then just search weather sunday, the weather report for sunday will be just available.

You can resize the spot light search window 🙂 you can move it around the spotlight panel.

 

Apple Spot light updates

Apple Spot light updates

 

Spotlight search works even more better in others applications too. In Apple Mail you can search “Mail I Ignored from John” or you can search “. It also works great in finder, just search “documents I was working on last june”

Apple mail spotlight search

Apple mail spotlight search

 

Apple mail finder search

Apple mail finder search

 

2. Apple Mail Updates – More gestures added to simplify the tasks. An important mail and want to keep it as unread , just swipe the fingers to left in the side bar. Swipe left to delete the mail.

Apple Mail Gesture - Unread mail

Apple Mail Gesture – Unread mail

 

Apple Mail Gesture - delete mail

Apple Mail Gesture – delete mail

 

Multi tabbed Compose Mail window – hide your compose window just by clicking somewhere else, then if you want to attach a file then no matter if your compose mail window is hidden, just drag the file at bottom of the mail.

hide compose mail window

hide compose mail window

 

Compose window is multi tabbed now.

3. Apple Safari Browser updates – Most important and a very cool update is Pin the site which you visited recently or which you visit daily. Just drag the tap at left most corner and leave it.

Apple Safari updates

Apple Safari updates

 

Safari Pin Sites updates has lot of special properties – if you close the browser window, Pin sites will remain there itself,they load instantly.

Assume you are opening couple of links from your pin sites, they open up in new tab and more interesting update here is if an audio is playing in a site which you don’t know, you can just pause it from browser search bar. or else you also go to that site just by one tap.

Safari audio mute

Safari audio mute

 

 

4. Window management – just three fingers swipe will bring all your windows in organised way to have an overview on all opened windows. More important update here is you can work on two windows side by side. To do this just press and hold maximise icon in the window and then move your window at one side of the screen.

Windows management El Capitan

Windows management El Capitan

 

If Notes application and safari are opened, you can drag and drop the link into notes application, it shows the link with a graphical view

you can just drag and drop an image as shown above .

Another major update is Split view , just drag and drop the window at the top to keep you favourite photo application. to keep messages application along with photo application just drag and drop it into photo application.

Windows dragged and drop it into another application.

El Capitan Split screen

El Capitan Split screen

Split screen…

El Capitan Split screen 1

El Capitan Split screen 1

 

Apple OS X El Capitan Performance Updates –

Upto 1.4X Acceleration in Application Launch

Upto 2X improvement in switching the applicaitons

2X faster first mail messages

4X faster in opening pdf and preview

Apple has made Deep Architectural improvements to the core of OS X El Capitan 

Apple OS X El Capitan – Metal 

Metal is an interface given for high performance graphical tasks, it takes an overhead from the OpenGL and provides high performance APIs and it gives direct access to the underlying hardware.

Apple Replaces OpenGL

Apple Replaces OpenGL

Apple Replaces Metal Graphics API

Apple Replaces Metal Graphics API

Now all applications, Games using core animation, core graphics will have direct access to native API – Metal

Apple Graphics API Metal

Apple Graphics API Metal

 

50% rendering performance improvement

40% reduction in CPU overhead that is necessary for graphics, this improves the batter life.

8X performance improvements

Read more about iOS 9 – 

Latest iOS 9 updates
Intelligence in iOS9 , More Proactive iOS 9 , Wonderful updates for iOS 9 Search functionality , APIs for search and many more

http://knowledge-cess.com/apple-worldwide-developers-conference-wwdc-2015-ios9-updates/

Acche Din – Modi Government Achievements

Acche Din – Modi Government Achievements

Why Indian media is so much behind TRP ? TRP can also be achieve by spreading good news. Since Modi government started we can see India is spreading its message to every corner of the world. US visit of Modi and German Visits were key highlights. Every nation getting a clear picture how India is heading ahead and any one can see the bright future ahead. This post is the highlight more about Foreign visits of Narendra Modi, Why Narendra modi travelling to every nation and what was the key aspects behind each visit?

Narendra Modi’s foreign visits…. Narendra Modi is no greenhorn in politics and statecraft. . . He has already achieved more for Gujarat in his tenure as CM there than any Indian state ever had. . . Few hidden (because the main stream media will purposely ignore them) achievements are given below:

Narendra Modi Foreign Visits and Achievements –

1. Modi Visit to Saudi Arabia
BJP Govt. convinced Saudi Arabia not to charge “On-Time Delivery Premium charges” on Crude Oil – Young Petroleum Minister Dharmendra Pradhan & External Affairs Minister Sushma Swaraj sealed the deal. Saved the country thousands of crores…

 

2. Modi Visit to Bhutan –
India will build 4 Hydroelectric power stations + Dams in Bhutan (India will get lion’s share in Green energy that will be produced in future from these projects) . .

 

3. Modi Visit to Nepal –
India will build Biggest ever dam of Nepal (China was trying hard to get that) – India will get 83% Green energy produce from that hydro power station for free – in future. . . . .

 

4. Modi visit to Japan –
Increased relationship with Japan and they agreed to invest $ 30 Billion in DMIC (Delhi – Mumbai Investment Corridor). That’s Rs 200,000 crores by today’s exchange rates….. . .

 

5. Modi visit to Vietnam –
Increased strategic relationship with Vietnam and Vietnam has now agreed to give contract of Oil exploration to ONGC-Videsh (UPA was not ready to take this at all because they were worried about China – and getting into a conflict of interests on south China sea). The UPA had always been on the backfoot about every aspect of foreign policy. . .

 

7. Modi Visit to Australia –
India – Australia (NaMo is first PM to visit Australia after 28 yrs), despite Australia being a major supplier of Coal & Uranium. . . NaMo was able to convince Tony Abbott and now Australia will supply Uranium for our energy production. . . .

 

8. Modi visit to Sri Lanka –
China leaning President Rajapakse lost elections in Sri Lanka – Remember UPA lost “Hambantota” port development – read latest report of CIA, where they mention RAW has played a major role in power shift of Sri Lanka. And Sri Lanka has backed out of Chinese contract and shifted to Indian project managers. . .

 

9.Modi Visit to China
With China, as Trade Deficit was increasing, NaMo forced their hand. Anti-Dumping will come soon so China will invest heavily into India. – China has already committed $ 20 billion Investment in India. That’s nearly ₹140,000 crores. . . .

 

Modi government and achievements highlights

1. On Security – I think adding Ajit Doval to his team is the best decision by NaMo. See the recent tie-up with Pentagon, Israel & Japan. . . Remember I. K. Gujaral as PM stopped RAW’s offensive operations in foreign countries. . Now see how we stopped the Terror Boat and listen to his words … “Any Mumbai like attack from Pakistan and Pakistan will lose Baluchistan!” That’s the language of deterrence that I want to hear as an Indian. We won’t hit first, but if you do, we surely won’t turn the other cheek…. . . .

 

2. India approved the border road in the NorthEast and around India- China border – Remember just because of China’s opposition, the ADB (Asian Development Bank) didn’t give us funds during UPA regime and UPA held that file under “Environment Ministry control – Remember the infamous “JAYANTHI TAX “? No one bothered about the disastrous effect on our armed forces. . . .

 

3. India managed to bring back 4,500+ Indians from War zone in Yemen and also brought foreign nationals of 41 different countries, which put India’s name onto the highest platform globally in conducting that rescue mission – PM Narendra Modi specially talked to the new Saudi Arabian king Salman and told him to allow Indian Airforce planes to fly – as Saudi Arabia was attacking on Yemen and Yemen skies was declared NO-FLY Zone: thanks to this we got an assured clear window of a few hours and guys guess who coordinated this? Ajit Doval, Sushama Swaraj and Gen V K Singh. All in person…. When was the last time you ever heard of ministers involved personally in such efforts that didn’t fetch thousands of crores?? Guess the religion of those rescued?? But it isn’t secular to mention that most of those rescued from Yemen or earlier from Iraq weren’t Hindus at all.. . .

 

4. India’s Air defense was getting weaker by the day, UPA was very happy to let it happen despite repeated specific inputs from the armed forces, NaMo renegotiated Rafale fighter Jets deal with France personally and bought 36 Jets on ASAP basis. At better than rack rates. No middlemen, no commissions… . . .

 

 5. For the first time after 42 yrs Indian Prime Minister visited Canada not to attend some meeting but as a specific state visit, in a Bilateral deal, India was able convince to Canada to supply Uranium for India’s Nuclear reactors for next 5 years. It will be of great help to resolve India’s Power problems. . . .

 

6. Canada approves visa on arrival for all Indian tourists. . . .

 

7. Till recently we were exclusively buying Nuclear Reactors from Russia or USA and it was much like beggar kind of situation because they were worried about usage of Nuclear reactor for some other use. So only what they opted to give us, we could get. . Now Narendra Modi was able to convince France and now France will make Nuclear reactors with the latest technology in India. On MAKE IN INDIA efforts.. with collaboration with an Indian company as a partner. . .

 

8. During 26th Jan. visit of Barak Obama, NaMo convinced USA to drop rule of Nuclear fuel tracking and sorted out Liabilities rules which now open the gates for next 16 Nuclear power plant projects. . . . Isn’t this good enough to improve the lot of India??

 

Many more …

Smart Agriculture – Smart Floating Farming

Smart Agriculture – Smart Floating Farming ( Future Of Farming )

 

Smart Floating Farm

Smart Floating Farm

Now all goes smart and yeah even agriculture also. What is the need of smart farming ?

According to the United Nations‘ World Population Prospects report, the world population is currently growing by approximately 74 million people per year. Current United Nations predictions estimate that (based on current growth trends) the world population will reach 9 billion in 2040.   11.0 billion around 2050.

Reference World population predictions – Wikipedia 

Now should I explain why we need smart farming ? 

FORWARD THINKING ARCHITECTURE

Smart floating farm

Smart floating farm

 

It really looks smart 🙂

smart floating farm 2

smart floating farm 2

 

Architecture of Smart Floating Farms

Architecture of Smart Floating Farms

Architecture of Smart Floating Farms

 

Javier F. Ponce is an architect and founder of Forward Thinking Architecture from Barcelona, Spain, a company dedicated to environmentally beneficial and societally progressive architecture and urban design. They started working on Smart Floating Farming.

Floating farm runs on solar power and produces 8,152 tonnes of vegetables and 1,703 tonnes of fish a year, they also be used to catch 1.7 million fish a year.

The farms roof will be integrated with high performing photovoltaic panels and produces aprox : 2.72 MW. They will be 24m height and designed with a tree like structure

“Based on a Floating Multi-layered strategy which combines Aquaculture (fish), Hydroponics (crops) and Photovoltaics (solar power), we aim that these floating farms can be located close to areas where food is more needed and potentially become automated Farm Clusters run by the use of IT technologies/software.” Says Ponce on Forward Thinking Architecture’s.

Javier F. Ponce graduated from Tecnologico de Monterrey, attended UPC University in Barcelona and holds a Masters degree in Construction Technologies. Javier was an intern at Shigeru Ban Architects in Tokyo and afterwards he worked for 2 years at Norman Foster and Partners in London between 2007 and 2009, where he was exposed to different scales and types of projects worldwide.Javier has also collaborated as a freelance architect with Foreign Office Architects FOA and Alejandro Zaera’s architecture office.

Reference – Forward Thinking Architecture’s.

Now question is ” Are floating farms the answer to solving world hunger? “