Deploying JAR/JAD content via WAP

Wednesday, November 28, 2007

An easy way to deploy JAR/JAD content on all phones with GPRS is to create a WML site and provide a link to the JAR file that you have. [As an aside, the whole J2ME scene is so fragmented that it sucks completely. Let’s hope Android sorts it out.]

Here’s how you go about setting up that in Lighttpd:

Add these mimetypes (to lighttpd.conf or mime-types.conf):

mimetype.assign += (
  ".wml"     =>      "text/vnd.wap.wml",
  ".wmlc"   =>      "application/vnd.wap.wmlc",
  ".wmls"   =>      "text/vnd.wap.vmlscript",
  ".vmlsc"  =>      "application/vnd.wap.wmlscriptc",
  ".wbmp"   =>     "image/vnd.wap.wbmp",
  ".jar"      =>      "application/java-archive",
  ".jad"     =>      "text/vnd.sun.j2me.app-descriptor" )

Add the index.wml file as a valid DirectoryIndex:

server.indexfiles    += ("index.wml")

Make this .wml file and upload it somewhere (replace JARCLIENT with your .jar file, and JADCLIENT with your .jad file):

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
<card title="Download">

<p>Download the Jar file:</p>
<p>
<a href="JARCLIENT.jar">Download</a>
</p>
<p>
<a href="JADCLIENT.jad">Download (JAD)</a>
</p>

</card> </wml>

Restart your server, and that should be it! If you’re using Apache, the steps are similar.

Tags:

Comment! | Permalink

Barcamp Kerala LiveBlog

Saturday, November 24, 2007

(Edit: was a liveblog, now over!)

Hey so I’m at BarcampKerala and this is a liveblog. Random impressions:

  1. The hall is really cool. It’s a big open, really lighted space and the infra is also pretty nice: power, wifi, et. al.
  2. Sreekanth did a really great job with the goodies: every camper gets a name tag, a file with a notepad, and a coke. Good stuff!
  3. I gave a presentation on Gosu-N3wton. The slides are at the end.
  4. Hari gave a pretty interesting presentation about Bluetooth automation which generated a lot of discussion.
  5. We have an Airport Base Station here (courtesy Pratap) as a WiFi router. How cool is that? :-)
  6. In general, I found all the talks well done. For a first time event, it was really awesome. The percentage of really techy people (the best kind) was also the same. There were fewer people, but that’s easily corrected the next time around.
  7. So we had more than seventy people turn up. Exact number not known because by the time we counted them, lots had left (afternoon syndrome). Including some students from the nearby UCK college who made an interesting audience. I was impressed with Dhanesh and Dev who did something with QT. Kudos!
  8. All my photos are on flickr!
  9. Amit linked to me.

Tags:

Comments (3) | Permalink

GOSU-N3WTON

Saturday, November 24, 2007

For BarcampKerala, I made a small 2D game in Ruby and Gosu, which is a clone of a popular flash-based game by the same name.

I call it Gosu-N3wton, and I had great fun developing this game. Go check it out! (The code is opensource)

Gosu-N3wton screenshot

Tags:

Comments (1) | Permalink

OpenSocial and Facebook

Wednesday, November 14, 2007

A lot has been said about OpenSocial and Facebook, this is an attempt to say a bit more. As usual, a free-flowing list of observations:

  • Google uses Javascript as its base client-side language and extends gadgets with OpenSocial features. This I consider “good enough” but perhaps more importantly has a much lower barrier to adoption. The way a FB app is delivered (request-mapping, restricted FBML, fine-grained privilege control) feels much more professional, but at the same time a bit intimidating for newbies to the field. Libraries for almost all languages (esp. rfacebook) lower the barrier, but it’s never as simple as a .xml file which is mostly html and javascript (this is what a gadget is).
  • It’s currently not clear how OpenSocial apps communicate between each other across networks and how one app maps a user profile in one network to another. Without this, it’s mostly a single API which works across multiple containers in isolation. A single API that collates multiple containers is much more interesting.
  • Is there any set of UI guidelines? Is a gadget supposed to emulate the look and feel of its container or is it supposed to look the same across networks? Facebook provides extensive CSS classes and Javascript goodies (AJAX friend selector) to keep the experience uniform. I hope OpenSocial addresses this and soon.

Tags:

Comment! | Permalink

Ache

Tuesday, November 13, 2007

Stay, says Viragor,
I want you near me.
Nay, breathes Matilda,
Tho I can’t bear to leave thee.

His hair she clasps with twists and turns,
Hers he touches softly, kissing in burns.
‘Twill be months, years yet we meet,
But fleet should be our hearts be, sweet.

And then she’s gone, an orphan left,
Between people near but dead.
Stolen moments, sweet but misery,
Slowly turned dear, restless and finicky.
Oft-shaded heart and steady work’s a blanket,
A poor salve that, uproars many a racket.
Bent, slippery, tested and hurt,
But so doth love be stronger for worth.
A true refrain then, to ease parted hearts,
His heart and hers may beat to stars:

Come, says Viragor,
Been aching to hold thee.
Love, smiles Matilda,
When have we been free?

Tags:

Comment! | Permalink

BarCamp Kerala

Monday, November 12, 2007

Barcamp Kerala

Kenney had this great idea about having a BarCampKerala over here and it’s got me really excited. I’ve been to BarCamps in Delhi and one in Hyderabad, and it’s always been an amazing place to talk to good people. I’m pretty sure I’ll find loads of techies in Thiruvananthapuram to contribute and because of the event I’ve already reconnected with some great people I know. Raj from Linuxense is chipping in, and so are many others I’ve yet to meet.

It’s going to happen Nov 24, and we haven’t decided on the venue yet it’s at the UST Zenith hall (next to Coffee Beanz) at Technopark. It should be easy enough to find. Most probably it’s going to be somewhere in or near Technopark.

In case you don’t know what a BarCamp is, it’s an unconference (yes cool word) which anybody can organize and anyone can come and speak on a first-come-first-speak basis. What I love about BarCamps are the discussions on the fringes of talks and the great people that come to them.

Gimme a call (+91.9846087017) if you’re somewhere in the vicinity and want to contribute!

Other assorted stuff:

Tags:

Comments (2) | Permalink

Nalu Pennungal

Monday, November 12, 2007

nallu pennungal

I saw Nalu Pennungal today. Before I forget a lot of the film, here’s some random impressions:

  • In the first short the way Kunzhupennu is sexy without makeup and wearing that nadan dress has to be seen to be believed. The swagger in the way she walks is uber cool. Her husband’s helpless refrain “We are husband and wife” when faced with the judge’s questions is probably one the most poignant scenes in the movie.
  • The first and last segments made the most impression on me. Nandita Das is superb and the way that story ends does tickle your brain.
  • Chinnu Amma and Kanyaka I found amusing, esp. the scenes where the husband swallows whole bucketfuls of rice. There’s also a scene in Kanyaka where she tries to make an overture and he dismisses her by saying it’s too hot. Her riposte then is beautiful. Chinnu Amma’s plight is again darkly humorous especially the very last scene (which I almost missed) where she as an old woman recites her story to younger ladies.

I took the shorts as they came to me and didn’t think about any connecting thread then. Looking back, one thing which is perhaps common is that all the stories are about women who did the ‘right thing’ and somehow is punished because of it. Kunzhupennu who found a husband but is still branded a prostitute, Kanyaka who married but didn’t find happiness, Chinnu Amma who sacrificed progeny for being faithful, and the eternal virgin who sacrificed for her sister and so couldn’t marry. And still that punishment isn’t so severe that they aren’t able to lead a semi-normal life or as in the case of Chinnu Amma, look back upon the incident with a bit of humor.

It’s a good movie. Not a must watch, but it does make you think.

Tags:

Comments (3) | Permalink

View Vishnu Gopal's profile on LinkedIn

Twitter: Performing surgery to get Kannel to install on OSX. Every other program seems to choke on a nonstandard MySQL location ala Macports. 5 days ago

Thursday, November 29, 2007

VectorMagic is simply awesome!

(0) #

Wednesday, November 28, 2007

There’s an Apple Leopard Demo Day soon. There’s one in Kochi. Be there if you can.

(1) #

Wednesday, November 21, 2007

We have a mailing list for BarCampKerala now. Join!

(0) #

I went and registered for the 12th International Film Festival of Kerala. At 200/- bucks (< $5) a head, it’s the most economical way to a great film experience around here. The film list looks very impressive.

(1) #

Sunday, November 18, 2007

(2) #

Thursday, November 15, 2007

So we’ve fixed the Barcamp Kerala Venue. It’s at UST Zenith Hall (next to Coffee Beanz) and it’s a fairly large place (seats 150 people) so all of you guys can turn up and make it fun.

(0) #

Wednesday, November 14, 2007

A hint for developers on the Orkut Sandbox, download its two CSS files: here and here and use those classes to style your content. It feels much more a part of orkut that way. To figure out what styles to use, firebug the orkut page.

(0) #

Friday, November 9, 2007

I wish OpenSocial was more open!. Just an Orkut Sandbox to play with and that’s invite only. I wonder why Google announced this right now. Just a set of API docs and a video to introduce things feels so Microsofty. At least Silverlight has a working runtime. How am I supposed to test OpenSocial apps today?

(2) #

Thursday, November 8, 2007

My Gmail switched today to the new v2 UI (ui=2 in the address bar). It’s great, although I don’t notice any obvious UI changes, it feels faster. Most emails open instantly. There is a bit of a delay for the new yellow loading indicator to appear at the top which gives the impression the interface has stalled for a bit. It’s a slow roll out I guess because a couple of my other Google Apps accounts don’t have the change reflected yet.

(0) #

Wednesday, November 7, 2007

(0) #

Friday, November 2, 2007

(0) #