Friday, May 28, 2010

HTML 5 WebSocket API presentation

Good presentation slides by David Lindkvist via slideshare.com

Saturday, May 22, 2010

jWebSocket Step-By-Step

Just now i wrote a first part of the series of jWebSocket tutorials or articles that will try to write to cover everything about jWebSocket from the source.
http://blog.jwebsocket.org/2010/05/22/jwebsocket-step-by-step-part-1/

Saturday, May 1, 2010

invokedynamic on JDK7

Looks like JDK7 as per Oracle could be the next release of Java Platform. One of the most interesting addition seems to be the addition of new bytecode operation for method invocation, which is 'invokedynamic'.

invokedynamic bytecode operation which works more like 'inovkeinterface' but without the need to specify the return type and the target type of the method being invoked. This will release the lot of pressure from the developers dynamic languages that runs on JVM. Now They don't have to generate the bytecodes as per statically typed JVM because bytecode has been designed exclusively for statically typed languages, especially in its treatment of method invocation.

invokedynamic bytecode will use a linkage mechanism provided by class MethodHandle in the pacakage java.dyn, that contains the classes associated with dynamic language support in the Java platform.

Monday, April 5, 2010

Youtube- 500 internal server error


For some reason Youtube is throwing 500 error just like our dev environment.


Sunday, January 31, 2010

Android Text-To-Speech(TTS)

Here is a simple example to try out the Text-to-Speech feature in android. It's very simple to just invoke the text to speech engine. Here's the main snippet.

001// success, create the TTS instance
002mTts = new TextToSpeech(this, this);
003
004
005String language = (String) languageSelector.getSelectedItem();
006if (languageSelector.getSelectedItemId() == 0) {
007 mTts.setLanguage(Locale.ENGLISH);
008} else {
009 mTts.setLanguage(localeMap.get(language));
010}
011String text = textToConvert.getText().toString();
013if (text == null) {
014 text = "please select the language and enter any text";
015}
016mTts.speak(text, TextToSpeech.QUEUE_FLUSH, null);
017



Here's how it looks!!