Wednesday, April 27, 2011

Welcome: A Guide to What's in Store for you here at the 6th annual Emerging Technologies for the Enterprise Conference


By Todd R. Weiss

In the next two days, prepare to be inspired, educated, challenged, informed and entertained by a cast of diverse IT experts who are here to share their insights and experiences on a wide swath of software development topics.
I'm technology journalist Todd R. Weiss, and I'm a regular contributor to Computerworld, PC World and TechTarget, writing about enterprise IT and the challenges it brings daily to businesses and their busy IT staffs.
I'm here on behalf of Chariot Solutions to help cover this conference and bring some of its key highlights to their customers and attendees at this 6th annual Emerging Technologies for the Enterprise Conference (ETE) in Philadelphia.

Among the software development notables here for this information-packed event are:
*Mobile application consultant Jonathan Stark, who is the author of O’Reilly Media’s Building iPhone Apps with HTML, CSS, and JavaScript. Jonathan will talk about his alternative approaches to building apps for iPhone and iPad using only HTML, CSS and JavaScript.
*David Kaneda, the developer of jQTouch, a Javascript framework for iPhone development and creative director at Sencha. David will talk about Sencha Touch, a mobile web app framework that allows developers to create rich mobile apps which look and feel native.
*Josh Clark, a designer who specializes in mobile design strategy and user experience. Josh is the author of “Tapworthy: Designing Great iPhone Apps” and “Best iPhone Apps” from O'Reilly Media.
*Eduardo Jezierski, theCTO of InSTEDD, a non-profit that helps communities around the world use, design and develop information tools for their health, safety and development. Eduardo will lecture about "Architecture and Agility With Lives at Stake."
*Jonas Boner, the creator of the Akka development framework, who will describe Akka in detail and show how it can be used to solve hard scalability problems.
*Mark Chadwick, the chief architect at Google subsidiary Invite Media, who will describe how Invite Media serves up millions of advertisements to targeted consumers every hour in his lecture, Doing the Mundane a Million Times a Minute.

This year the ETE conference is part of the first "Philly Tech Week" being organized in Philadelphia across a wide range of sites in the city. Philly Tech Week is a first-time event that's being promoted to showcase the bustling technology community in the region.
This is the biggest year yet for the ETE conference, which is hosting almost 500 attendees in 2011, said Tracey Welson-Rossman, director of sales and marketing for software development consulting firm Chariot Solutions of Fort Washington, Pa.
"We really feel that this is a tipping point and that we're going to let people outside the area know that there's hidden high-tech gems in the Philadelphia area," Welson-Rossman said. "Were really fortunate to have this level of talent that comes to us here at the conference."
"We know that the Philadelphia community has an incredibly strong tech community," she said. "That’s why were able to have this show. We wouldn't be able to attract the speakers if the area didn’t have this reputation."

Todd R. Weiss is a longtime technology journalist who worked as a staff writer for Computerworld.com from 2000 to 2008. Now a freelance tech journalist, Weiss contributes regularly to Computerworld, PCWorld.com and other publications. He has also written extensively for Linux.com, ForecastingClouds.com and TechTarget on a wide range of enterprise IT topics from Linux and open source to disaster recovery, cloud computing, virtualization, application development, IT education and mobile and wireless technologies. He began writing about computers in 1996 after a newspaper editor he worked for told him that "no one cares about technology." Apparently, the editor was wrong.

Thursday, April 21, 2011

PhoneGap Tutorial Series – #6 Writing Your Own Plugin

 This is the last of the series Hiedi Utley has written on PhoneGap.  I hope you have found the series helpful.  We hope to have more of this type of blog post in the future to help with developing mobile applications.


How to Create Your Own PhoneGap Plugin

Today’s topic is about creating your own PhoneGap plugin for iOS development. PhoneGap provides a whole array of built in features to access all sorts of things on a device but what if you want to do something that is not already supported and has not already been provided by a third-party plugin? Stop fretting, just like adding a third-party plugin, if you can write a little Objective-C then you can add your own plugin to PhoneGap as well. In order to create your own plugin you will have to be somewhat familiar with JavaScript as well as Objective-C. This tutorial assumes that you are familiar with JavaScript, Objective-C, the iOS SDK, and the XCode development environment. This post also assumes that you are familiar with the PhoneGap project structure and the PhoneGap plugin architecture, so you may want to peruse some of my earlier posts before continuing on if you haven’t already.


Read more..

Tuesday, April 19, 2011

PhoneGap Tutorial Series – #5

 

Extending the PhoneGap API – Third-Party Plugins (NativeControls)

Continuing on down the path of using third party plugins, today we will look at a little more complex example and use the NativeControls plugin to display a UIActionSheet to allow the user to select whether they want to take a photo using the camera or pick one from the photo library by utilizing the PhoneGap Camera API.
If you haven’t read my previous post on Third-Party Plugins (ChildBrowser) you may want to peruse that to understand the structure of a plugin and how to go about installing one before continuing on.


Read more...

Friday, April 15, 2011

Extending the PhoneGap API – Third-Party Plugins (ChildBrowser)

As we are preparing for Emerging Technologies for the Enterprise, I did not want to forget the rest of the series on PhoneGap API that Hiedi Utley has been penning.  Here is part 4.


Extending the PhoneGap API – Third-Party Plugins (ChildBrowser)


So the last post was all about editing PhoneGap classes to add a little something extra, today it’s about using a third-party plugin that you may have downloaded from somewhere or gotten from someone.
The plugins that we will be using today are from Jesse MacFayden (aka @purplecabbage on twitter). The original source code for the plugins can be downloaded from github here: https://github.com/purplecabbage/phonegap-plugins.git
You can also get the entire source for my sample project “HelloPhoneGap” from github here: https://github.com/hutley/HelloPhoneGap.git


Read more..

Friday, April 8, 2011

Extending the PhoneGap API

 Here is the third installment of Hiedi Utley's series on PhoneGap.  We hope you are finding this series helpful as you learn more about developing for mobile applications.

Extending the PhoneGap API
If you’ve had a chance to play with PhoneGap a bit, chances are you have wanted it to do something that it doesn’t already do. Alas, don’t worry! You don’t have to put in a ticket and hope that the PhoneGap developers agree with you and implement it in some future release, if you can write a little Objective-C then you can do it yourself and use it in your own iOS project.
The topic at hand is all about extending the PhoneGap API whether it’s by editing existing PhoneGap classes, downloading a third-party plugin from somewhere, or by writing your own plugin from scratch. For this post I will concentrate on editing the PhoneGap classes, in later posts I’ll give step-by-step instructions on using a third-party plugin and how to create your own plugin.
If you haven’t already had a chance to read my earlier posts on PhoneGap internals and using the PhoneGap API – you may want to peruse them before reading on.


Read more...


Thursday, March 31, 2011

Using the PhoneGap API

 

We are a little behind in posting Hiedi Utley's PhoneGap Tutorial Series.  Or she is a very fast writer.
In this post, Hiedi discusses the features of PhoneGap API.



Using the PhoneGap API

Welcome to the second installment of my PhoneGap Tutorial Series! This post is a continuation of PhoneGap Project Structure and Internals so if you haven’t already, you may want to peruse that post before continuing on.
We already know that PhoneGap is an open source framework for writing applications using typical web technologies like HTML, CSS, and JavaScript and that the PhoneGap architecture supplies JavaScript wrappers to access native phone features. What you may NOT know is how extensive those features really are or how to actually use them.
This article is all about getting familiar with the current features of the PhoneGap API and how to use them with the iPhone iOS.


Read more..

Monday, March 21, 2011

What is in my Spring Context?

When we are learning Spring, there are times we are not sure which beans are in the Spring context. Especially when we use convenient features of Spring 3 such as <context:annotation-driven/> or <context:component-scan/>. As developers, we want to inspect the classes that are automatically registered providing the opportunity to look at the source code and javadocs to see what each class does.


JUnit Tests get Application Context

Our JUnit tests have the ability to inject the Application Context. This is one of the many benefits of @RunWith(SpringJUnit4ClassRunner.class)


@ContextConfiguration(value = "/META-INF/spring/test-app-context.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class BeansInContextTest {

@Autowired
ApplicationContext applicationContext;



Simple Code

Let's loop through all the beans that are defined or discovered with the following code.


@Before
public void setup() {
logger.debug("********************");
String[] beans = applicationContext.getBeanDefinitionNames();
for (String o : beans) {
logger.debug("________________________");
logger.debug("BEAN = " + o);
logger.debug("\tType = " + applicationContext.getType(o));
String[] aliases = applicationContext.getAliases(o);
if (aliases != null && aliases.length > 0) {
for (String a : aliases) {
logger.debug("\tAliased as: " + a);
}
}
}

logger.debug("********************");
logger.debug("*** Number of Beans = {} ***",
applicationContext.getBeanDefinitionCount());
logger.debug("********************");
}
}




What is the Alias?

We can define beans with "id" which by XML law requires it to be unique per file. This restricts us in the ability to use special symbols for the name should we want to. I recommend using "id" unless absolutely necessary. However, should we what to refer to the bean with multiple names or use special symbols, we can use the "name" attribute. By comma separating the tokens, we have the opportunity to refer to a bean with any of the tokens provided.
<bean name="mailServer/default, mailServer" class="..."/>
If no, "id" is provided, the first token becomes the primary and the subse quent tokens become aliases. Does this matter in the usage of the beans? No. But to find "all" the names of the beans, we would display the aliases in addition to the bean names.

The Full Test Code

package com.chariot.sample;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(value = "/META-INF/spring/test-app-context.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class BeansInContextTest {
private final Logger logger = LoggerFactory
.getLogger(BeansInContextTest.class);

@Autowired
ApplicationContext applicationContext;

@Before
public void setup() {
logger.debug("********************");
String[] beans = applicationContext.getBeanDefinitionNames();
for (String o : beans) {
logger.debug("________________________");
logger.debug("BEAN = " + o);
logger.debug("\tType = " + applicationContext.getType(o));
String[] aliases = applicationContext.getAliases(o);
if (aliases != null && aliases.length > 0) {
for (String a : aliases) {
logger.debug("\tAliased as: " + a);
}
}
}

logger.debug("********************");
logger.debug("*** Number of Beans = {} ***",
applicationContext.getBeanDefinitionCount());
logger.debug("********************");
}
}


Sample Bean Context


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">

<context:annotation-config/>

<bean id="myBean" class="MyCoolBean"/>

</beans>


Experiment and Have Fun

Add beans to the config file. Import other config files and see what happens.

Wanna Learn More?

Learn more about what goes on Spring Context by attending a Core Spring Training class at Chariot.