RSS

Archivo del Autor: hop2croft

Online learning : where to learn web development


Online learning

Lasty I’ve been thinking about writing a post about resources to learn online. Online learning has become a must if you want to keep you updated. I think that the way we learn, specially in an IT environment, has dramatically changed in the last years. A lot of web courses have bloomed since 2010 or so. There are lots of website where someone can learn from them. Some of the courses are for free and some others are not. Even some universities have agreements with some online website to publish their own courses.

In this post I’m going to enumerate some of the online learning websites I normally use to learn new stuff. If you know any others, please feel free to give some feedback. It’s really welcomed.

If you want to read this entry with nicer styles check this link within Java4developers

Read the rest of this entry »

 
Dejar un comentario

Publicado por en 13 febrero, 2013 en learning, web, web development

 

Etiquetas: , , , , , , , ,

Entornos de desarrollo móvil


Frameworks desarrollo móvil

En las últimas fechas me he planteado la opción de realizar o migrar alguna aplicación web para que también sea accesible desde un dispositivo móvil, ya sea un teléfono móvil o bien una tablet. Cómo punto de  partida comentar que previamente he realizado alguna aplicación con Android (puedes verla en siguiendo este enlace). Con el fin de evaluar que tecnología escoger finalmente he estudiado las distintas opciones que hay para programar para móvil. De ello, ha  salido una pequeña presentación que espero que pueda resultar útil a quien la lea.

Puedes ver esta entrada también en mi otro blog, entornos de desarrollo móvil

Read the rest of this entry »

 
Dejar un comentario

Publicado por en 19 enero, 2013 en Mobile

 

Etiquetas: , , , , , , , , ,

Presentaciones Javascript para aplicación Android e Introducción a jQuery


Siguiendo con el anterior Cómo mejorar tus presentaciones: Impress.js , Prezi … sobre frameworks Javascript para realizar presentaciones os dejo dos mías.

La primera basada en impress.js presenta una ampliación de mi proyecto fin de carrera de Ingeniera Informática. Se trata de una aplicación Android que se utiliza para buscar y localizar libros dentro del catalogo web de la Universidad Rey Juan Carlos. Además de utilizar el SDK de Android para tareas básicas como interfaz de usuario, se incluyen otra serie de tecnologías como códigos QR ó reconocimiento óptico de caracteres (OCR) que facilitan la localización de libros dentro de las bibliotecas.

Puedes encontrar la presentación en la siguiente url: presentación aplicación Android búsqueda libros en el catálogo de la Universidad Rey Juan Carlos. Recomiendo utilizar Chrome para verla.

La segunda es una pequeña introducción a jQuery realizada con reveal.js. La puedes ver en la siguiente url: Introducción a jQuery. También recomiendo verla con Chrome.

 
Dejar un comentario

Publicado por en 7 enero, 2013 en Javascript

 

Etiquetas: , , , , , , ,

Cómo mejorar tus presentaciones: Impress.js , Prezi …


En esta entrada vamos a hablar de diversas aplicaciones, librerías y herramientas como Impress.js o Prezi que pueden ayudar a realizar presentaciones de una manera distinta a las realizadas con PowerPoint.

Read the rest of this entry »

 
2 comentarios

Publicado por en 17 noviembre, 2012 en General

 

Etiquetas: , , , , , , , , , ,

Spring Mobile


En el próximo post vamos a hablar sobre el proyecto Spring Mobile deSpringsource. Este proyecto pretende facilitar la realización de aplicaciones web sobre dispositivos móviles utilizando los controladores de Spring MVC.

Seguir leyendo

 
Dejar un comentario

Publicado por en 17 noviembre, 2012 en Mobile

 

Etiquetas: , , , , ,

REST Web Services with Apache CXF and Spring


In the next two post we are gonna to talk about how develop REST web services with java.  To that end we’re gonna use two different technologies, Apache CXF and Spring REST web services.

Continue reading it on Java4Developers

 
2 comentarios

Publicado por en 7 agosto, 2012 en J2EE

 

Etiquetas: , , ,

Review de APIs A strategy guide


En el siguiente post vamos a hablar de un libro acerca de lo que es una API. Continuando con las reviews que deje un poco de lado y que podeis ver en los siguiente enlaces:

hoy voy a hacer una pequeña review sobre el libro API’s a Strategy Guide de la editorial O’Reilly.

APIs a Strategy Guide

Read the rest of this entry »

 
Dejar un comentario

Publicado por en 29 julio, 2012 en Libros

 

Etiquetas: , , , ,

Groovy integration inside a Spring project


In this post we are going to talk a little bit about how to integrate Groovy (or another Scripting language like JRuby or BeanShell) within a Spring project. Achiving that is not really complicated, the only thing you need to do is add your Groovy scripts with a special schema within your application context. The example I am going to show you is uploaded to my Github account. You can find it right here.

And what are we going to do?. We are create a simple sample, based in the official Spring documentation you may find here or here too. We are going to write our Spring MVC controller, but thanks to Groovy we are going to be able to redefine our controller redirection with no need to compile our code again.

The example is pretty simple, imaging you have a controller related to a specified url (say home.htm). What we want is changing the page the controller eventually render. So we need to write our code using Groovy.

The application structure looks like as follows:
springGroovy structure

We have two controller classes:

  • HomeController: It’s a java class that implements the Controller class imported from Spring MVC. The class itself do nothing, another Controller that we code in Groovy is injected within the class. This Groovy controller will be responsible to redirect the request. So we have to call its handleRequest method inside the handleRequest method of our HomeController.
    package com.hopcroft.examples.controller;
    
    import java.io.IOException;
    
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.Controller;
    
    public class HelloController implements Controller {
    	private Controller helloGroovyController;
    
    	public Controller getHelloGroovyController() {
    		return helloGroovyController;
    	}
    
    	public void setHelloGroovyController(Controller helloGroovyController) {
    		this.helloGroovyController = helloGroovyController;
    	}
    
    	public ModelAndView handleRequest(HttpServletRequest arg0,
    			HttpServletResponse arg1) throws Exception {
    		return helloGroovyController.handleRequest(arg0, arg1);
    	}
    
    }
  • HomeGroovyController: this Groovy class is code in Groovy and as we previously mentioned, do the redirect job. It seems like another Java class but we save it as a Groovy script/file.
    package com.hopcroft.examples.controller;
    
    import java.io.IOException;
    
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.Controller;
    
    public class HelloGroovyController implements Controller {
    
        protected final Log logger = LogFactory.getLog(getClass());
    
        public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
                throws ServletException, IOException {
    
            logger.info("Returning index view");
    
            return new ModelAndView("index.jsp");
        }
    
    }

Wiring the controller in the Spring context.

To define the controller within our context we need to use the tag. Take a look at the context definition below.

<pre class="brush: xml; gutter: true; first-line: 1">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:soap="http://cxf.apache.org/bindings/soap"
	xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:jee="http://www.springframework.org/schema/jee" xmlns:lang="http://www.springframework.org/schema/lang"
	xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
    http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
    http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
    http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd"
	default-autowire="byName"&gt;

	&lt;lang:groovy id="helloGroovyController" script-source="classpath:groovy/HelloGroovyController.groovy"&gt;&lt;/lang:groovy&gt;

	&lt;bean name="/helloGroovy.htm" id="controller" class="com.hopcroft.examples.controller.HelloController"&gt;
		&lt;property name="helloGroovyController" ref="helloGroovyController" /&gt;
	&lt;/bean&gt;

&lt;/beans&gt;</pre>

As you may notice, it’s not really difficult to understand. We have two bean definition, one is a Groovy file where you add the script-source property to define the location of the Groovy Controller. The other one is a common bean to which we’ll inject the previous Groovy bean as a property.

And that’s all, now you can deploy your web application to you favourite web container and see how it’s working. You can change your Groovy controller in runtime and notice the changes with no reploying.
Another important thing to bold is the pom file. In order to compile our Groovy file (to be sure that isn’t going to fail once the server is up) we have add the build-helper-maven plugin to our project.

Don’t forget you can read the post in my new blog here

 
2 comentarios

Publicado por en 3 julio, 2012 en groovy, Spring

 

Etiquetas: , ,

An introduction to OAuth


 
Dejar un comentario

Publicado por en 25 mayo, 2012 en Slides

 

Etiquetas: , ,

Javascript Design Patterns


 
Dejar un comentario

Publicado por en 6 mayo, 2012 en Javascript

 

Etiquetas: , , ,

 
Seguir

Recibe cada nueva publicación en tu buzón de correo electrónico.

Únete a otros 66 seguidores

%d bloggers like this: