Archive for category AJAX

Java Programming for the Nintendo Wii

There is a great article over at Ajaxian on programming for the Nintendo Wii. I bought a Wii myself a few weeks back and have been having great fun with Tiger Woods golf. (It is actually my first game console) Up until down the idea of playing a game console alone did not appeal to me but the Nintendo Wii experience is amazing.

The Wii console connects to the controller or Wiimote via bluethooth and uses an accelerometer built into the wiimote to detect the location of the wiimote as well as it’s acceleration. This leads to a really interactive experience for the user.

I have been amazed by responsiveness of the Wiimote and now Dion Almaer and Ben Galbraith over at Ajaxian have developed an Ajax app that uses Wiiusej to interact with the Wiimote. The Wiiusej API is a java wrapper for the C based Wiiuse library.

We then wrote a Java class that acts as a state machine for what the remote is doing. It understands the movements, which buttons are pushed, how fast you are moving the device. With this data we could build a simple darts game. With the state machine Java code, and an Applet wrapper that exposed the information, we were ready to get to the Ajax side of the house.

Checkout the video below of the guys in action:

Wii Darts in Ajax from Dion Almaer on Vimeo.

You can find the article here.


AJAX process definition on Client Side

I came across an interesting article by Masayuki Otoshi via Java World that discusses how to execute process definitions on the client side rather than the server side.  This can come into play when making AJAX calls.  As AJAX is Asynchronous, it is not possible to predict the order that your callback methods will be called in.  Masayuki uses J-SOFA (Java/JavaScript Services Orchestration for Actions) to overcome this.

I haven't come across J-SOFA before but it looks like it might be worth looking at for situations where the order of callback methods is important.

No Comments

BarCamp Ireland was a run away success

After an unexpected bad traffic jam at Abbeyleix, I finally made it down to Cork late Friday.  (It was only unexpected because I forgot the National Ploughing Champianships were nearby).  

The first person I met when I entered Webworks on Saturday morning was Conor O'Neill.  I don't think I have ever met anyone with so much energy.  Conor, Damien and Walter really out did themselves with all the organization for the day and hense the day ran like a dream.  The venue was amazing and allowed people to flow between the talk with ease.

Anyone that wanted to talk were invited to add there name to the time slots marked out on the flip chart.  The first talk I listened to was Simon McGarr.  I must apologise for tapping away at my keyboard all the way through Simon's talk as I was trying to put my slides back together.  I left the slides at home in Dublin.  I wasn't sure what the connectivity would be like on the day so luckily I had recorded all my demos to avi.   I still had them on the laptop so was able to add them to the slides.

Simon talked about Digital Rights Ireland and their action against Minister for Justice, Minister for Communications, Garda Commissioner, AG and Ireland.  (Hope I didn't leave anyone out there)  After this, I moved upstairs to hear Conor O'Neill talk about Microformats.  I was not aware that I was already using micorformats and it definitely seems like an interesting area.  The next session I attended was Eoghan McCabe's discussion on Search Engine Optimisation.  This was a great interactive discussion with a lot of various and conflicting views in the room.

I then moved downstairs to see Brian Caulfield's talk on Understanding and accessing venture capital funding.  I really enjoyed Brian's talk and got a good insight into what influences a VC's decision to fund or not to fund.

We broke for lunch and I had a good chat with Jan Blanchard, Craig Powell and Eoghan McCabe.  Eoghan showed me his business card and I have to say, I was well impressed.  The sponsors really outdid themselves with sambo's, soft drinks and of course the wine from bubble brothers.  I decided to stay off the wine myself but by all accounts it was pretty good.

After lunch I went to see Walter Higgins of Sxoop talk about Javascript Bombshells which was I found pretty interesting.  He has been doing a bit of work with templating using Trimpath Template.  He has also been using JKL.parseXML by Yusuke Kawasaki. This seems to put a wrapper around the XML DOM to allow for cleaner DOM tree manipulation.   I have been doing a bit of work manipulation DOM trees in Javascript lately so will have to look into this one further.  

I slipped out of Walters talk earlier as I was due to talk next in another room and wasn't sure if the other speakers were finished yet.  It turned out that we were running a little behind so I caught the end of John Breslin's talk about the Semantic Web.  It is amazing how disjointed a lot of the information is on the "World Wide Web".  The semantic web tries to structure and link information together. 

After John's talk I went up stairs give my talk on what AJAX is and an overview of the various technologies involved.  I have to admit I was pretty nervous after loosing the slides and trying to remember everything I had planned to talk about it.  I think it went well but on reflection, maybe I should have ran all of my demos live rather than prerecording them.  This would have giving the audience a better understanding of AJAX's ability. Well we live and we learn.

After my Ajax talk, James Corbett talked about OPML's ability to group RSS feeds together and move then from one application to another.  This was then followed by Tom Morris who showed some mashups that he developed using OPML.

Finally I went to the Pecha Kucha session.  Walter and Conor are both keeping pretty quiet about what is involved so I going to follow their example.  Let's just saw, it is great craic and the perfect way to finish up the day.

One unique thing about the day is that everyone got a different experience.  As there were always three talks on at any one time, it was impossible to see all the talkers.  Hence, the one complaint I have of Barcamp is that I could not be in three places at one time.  Who knows that maybe possible at some future Barcamp. 🙂

So all in all, Barcamp Ireland was a total success where techies and technologist alike came together to talk about what ever they wanted.  Thank you to everyone involved for a fantastic day.

1 Comment

Talking at BarCampIreland

I have decided to talk at BarCampIreland this Saturday in Cork.  I am going to talk about AJAX Asynchronous JavaScript and XML. The title of the presentation is

AJAX, How a 'toilet cleaner' is improving website interaction

I have decided to pitch my presentation at a non-technical audience as I suspect that a lot of the people attending would not need to know about the differecnce between synchronous and asynchronous coummunication but would like to know what you can achieve with it.

Lets hope it goes well and the audience enjoys it. 


Google Release AJAXSLT

Google have just released AJAXSLT.

…an implementation of XSL-T in JavaScript, intended for use in fat web pages, which are nowadays referred to as AJAX applications.

I'm looking forward to playing around with this.  I have being doing a lot of work with XSLT lately so it will be interesting to see how Google have married this with AJAX. 


No Comments