Hello World on Phonegap (Bundle not of found type) 0

Today I was introduced to Phonegap by my friend Ethan Miller. It seems to be a great intermediate way to develop cross platform mobile applications. In going through the Hello World Tutorial for Android I ran into an issue in Eclipse. Basically there are two additional import statements that are needed for the app to run. Here is the java code from my corrected Hello World example:

package com.phonegap.helloworld;

// these next two lines were what had to be added for the example to compile
import android.app.Activity;
import android.os.Bundle;
import org.apache.cordova.*;

public class App extends DroidGap {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.loadUrl("file:///android_asset/www/index.html");
    }
}

I couldn’t find an answer online so I thought I would post this here in case anyone else runs into the same issue. I resolved it by looking at the included cordova example “cordovaExample.java”.

Headlands Proposal 0

SlideShowPro({ attributes: { id: "album-46", width: 900, height: 600 }, mobile: { auto: false }, params: { bgcolor: "#000000", allowfullscreen: true }, flashvars: { xmlFilePath: "http://www.manofstone.com/ssp_director/images.php?album=46", paramXMLPath: "http://www.manofstone.com/ssp_director/m/params/smooth.xml", displayMode: "Manual", videoAutoStart: "Off", contentScale: "Proportional" } });

GSOC Processing GUI Toolkit Proposal 0

Abstract

The GUI Toolkit will allow the rapid development of a UI visually and write framework code for interaction. By capitalizing on the amazing work of Andreas Schlegel in the ControlP5 library (http://www.sojamo.de/libraries/controlP5) the goal is to create a set of tools that allows the rapid and graphical creation, alignment and customization of UI elements. Additionally a new color picker will be written for ControlP5.

Project Description

The processing development environment is a valuable asset to both those new to programming, non-programmers and programmers alike. In my experience as a programmer, artist, student and university instructor there is one area that I believe is lacking in processing and that is of rapid development of user interface elements. In the mid 1990′s, just after high school I used the Borland Delphi (Turbo Pascal) RAD (Rapid Application Development) environment. Although it did not work well by todays standards but I believe that a mashup of a Delphi style UI designer combined with the flexibility and ease of programming provided by the ControlP5 library could provide the processing community with a novel tool to approach programming projects that require a UI. This would ease the learning curve and lower the cost of entry for many projects.

The project will comprise of the following elements:

1) The UI Designer: a full screen application written in processing that uses controlP5 elements itself to quickly generate a user interface visually and by modifying parameters. This will save in the standard controlP5 xml format allowing it to be used with the following tools or directly from controlP5 for advanced programmers. Writing this component in Processing is necessary to avoid a complete rewrite of ControlP5 to work natively in JFC/Swing. Additionally it will be an advanced example of ControlP5 / UI work contributed to the community.

screen capture of proof of concept:

 

processing code for above example (required the ControlP5 library):

GSOC_GUIToolkit_UI_Designer_Draft.zip

2) The Framework Generator: This will have a simple GUI using swing that will allow users to select an xml file, choose several options, and then have the framework code generated on the fly. This will allow the easy sharing and reuse of user interface elements within the processing and controlP5 community.

draft processing tool ui:

3) Color Picker: a proper color picker for ControlP5. In my opinion this is a necessary addition to the ControlP5 library either within the project itself or within a fork of the project. This will be a color picker that allows RGB, HSV selection and advanced features.

 

Timeline

  • april 24 – 27: get to know mentors, read JFC/Swing/ControlP5 documentation, get up to speed
  • april 30 – may 4: write ColorPicker element for ControlP5, examine XML export methods in ControlP5
  • may 7 – may 11: write basic UI Designer (processing) (bangs, buttons) with parameters and xml export and parse
  • may 14 – may 18: write basic UI Framework Tool (Java/JFC/Swing) converts basic xml to working code from previous week
  • may 21 – may 25: create functionality for the rest of controlp5 including new color picker in ui designer
  • may 28 – june 1: continue adding complete control p5 functionality, id any conflicts or missing features in xml
  • june 4 – june 8: update UI Framework Tool to create basic code framework for all control P5 elements
  • june 11 – june 15: continue updating framework tool
  • june 18 – june 22: add additional features, verbose commenting, choice of framework styles, etc. to UI Framework Tool
  • june 25 – june 29: documentation, testing and bug fixes for UI Designer
  • july 2 – july 6: documentation, testing, and bug fixes for UI Framework Tool
  • july 9 – july 13 : submit mid-term evaluation and prepare code base for new features below
  • july 16 – july 20: add additional features such as snap to grid, relative alignment, etc. to UI Designer
  • july 23 – july 27: add additional features such as above or agreed between mentor and myself
  • july 30 – aug 3: additional small features, robust bug testing
  • aug 6 – aug 10: robust bug testing, final packaging of code for distribution, javadocs, website, etc.
  • aug 13 – pencils down – scrub code, write documentation, write tests,
  • aug 20 – firm pencils down date, submit final evaluation
  • aug 24 – final eval deadline
  • aug 27 – gsoc final results announced
  • aug 31 – submit required code samples to google

Resume/CV

Resume:

Stone_GSOC_Resume.pdf

Academic CV:

Stone_Academic_CV.pdf

Other Code Examples

  • boids_spatialed_sound - Spatialized Sound using Boids Algorithm (drives a max/msp patch written by Ian Brill)
  • osra_sliders_ik - using controlP5 to control a open source robotic arm with an arduino, serial servo driver, etc.
  • multiZoogComplex - based on Daniel Shiffman’s book, showing more complex behaviors to demonstrate OOP concepts to my students
  • lidar_polar_graph - simple visualization of pseudo-lidar data from a rotating ir distance sensor captured with an arduino
  • LedMatrixWhite - a simple system to drive LedMatrix’s in an installation using minim spectrum analysis.
  • firmata_ports - ports of some simple arduino programs to run in processing using firmata and the arduino library. for teaching basic mechatronic concepts.
  • chutesLadders - a demo for my students of how to approach the chutes and ladders game using OOP.

 

 

 

 

 

 

Uncreative Writing, Chapter 1 0

In a graduate seminar this semester I am reading a book by Kenneth Goldsmith called Uncreative Writing. He teaches poetry at UPenn a class of the same name where he tells his students that they will not be doing any creative writing of any kind, that everything will be stolen and plagiarized, two big no-no’s in academia. In fact his final assignment is to purchase a term paper from a “paper mill” and then defend it.

Read more »

New Blog 0

Last night I participated in an amazing webinar led by Andy Drish. I was super impressed by some of the tactics and concepts he suggest that people follow in regards to a job search and building ones network.

I an attempt to follow up on some of his suggestions I have made jamesjamesjames.com my personal career blog of sorts where I will post everything interesting I am doing and want to share.

I will also be refining my other website www.manofstone.com to be a more formal portfolio website. Because I have a lot of content on that site, I will be slowly migrating it here, and adding a update link.

Hope you enjoy what is to come.

-James

Good WP Code Snippet Plugin 0

I have been searching around for a good code snippet plugin for word press. I really like the style of codecolorer, however, I wanted something with a clean style and also would allow for the copy to clipboard functionality. A lot of the time I refer to my website in class and have students use processing or arduino code and having the copy button really simplifies things.

Today I came across Easy Google Syntax Highlighter by Neil Burlock. It is incredibly easy to use, but not automatic, as codecolorer was.

Read more »

CNC PC Board Test 0

Today with the assistance of Jamie Heilman I was able to mill out some test circuits of thomas’ amplifier design using a 3/32″ tapered bit out of 2 sided copper clad board from radio shack. I will have to play with the size of the pads and the traces, they still seem a bit small to me and tomorrow I want to place some text on the board as well.

Rhizome Thesis Development 0

Photos from installation in PSU Sculpture area 7/29/2011

Wordookie Processing Library Compiled for Java 1.5 0

I am playing around with the Wordookie (Worldle like) Processing library and had to recompile it with the Java 1.5 JDK which was a bit of a pain. It seems to be working for me now on Macosx and might save some people some time in working with the library. I am linking to the complete distribution with a recompiled Wordookie.jar file.

update:

this can also be resolved by turning off java 1.5 on the mac. You go to Applications/Utilities/Java Preferences, then turn off the java 1.5 option if you have 1.6. This seems to resolve a lot of these issues with other libraries.

Read more »

Mr. Bricolage Touchstone Kickstarter Funded 0

Its official. The Touchstone Audio Glove Kickstarter fundraising campaign was funded. A big thanks to all of our backers. Thomas and I are very excited about this project and appreciate your support.

Watch the final countdown here:

http://www.kickstarter.com/projects/mr-bricolage/touchstone-audio-glove/posts/99366

Check out the project here:

Next Page »