Mar 5, 2012

Learning D3

http://alignedleft.com/tutorials/d3/

After going through their official documentation and random examples from the web, I found this site for easy tutorials and think this is actually a good place to start for learning D3. 

Aug 18, 2011

Reducing GWT application compile time

After setting up gwt in eclipse and creating my first gwt project,  I saw the compiler output console shows :


Compiling 1 permutation
      Compiling permutation 0...
   Compile of permutations succeeded



 I was wondering what are these permutations ! Then I found out that gwt generates different versions of the application for different browsers and locales, as unfortunately browsers can behave differently. So it generates different version of the javascript for IE, firefox, safari etc. And if we are using internationalization, for example, 5 languages, then different versions for each language. So 5 locales and 3 browsers, that creates 15 different cases or in other words, 15 different permutations resulting more time for compilation. For development, this can be annoying, so just to check quick output, we can limit this to single permutation by mentioning just one browser or user - agent .  To do this, we need to mention which user - agent or browser we want it to compile for. We need to set the property in the gwt module file : < module-name >.gwt.xml .


< module rename-to='myproject'   >
< inherits name='com.google.gwt.user.User'  />
< set-property name="user.agent" value="gecko1_8"  />
...


In this case it only generates one version for firefox ( gecko1_8 is firefox :D ) and the compilation time reduces to tolerable limit for a developer.




Feb 9, 2011

Analyze Democrat vs Republic speeches: trying out NLTK

Task:  to identify interesting collocations from text

Corpus:  speeches made by politicians in the U.S. House of Representatives during debates over legislation

Analysis: using google's nltk package, collocations module.

Association measures:
  • chi square
  • mutual information
  • log likelihood
  • raw frequency
Green:  appear in both parties' speech, but in different order.
Red: only in Republican speech
Blue: only in Democrat speech.
Black: almost equal importance given by both parties

This table is the result of using raw frequency count of 2 consecutive words appearing together in the corpus, sorted by frequency.

             Top 16 collocations by                 
        Democrats           

united-states
stem-cell
health-care
american-people
cell-research
social-security
tax-cuts
patriot-act
embryonic-stem
conference-report
estate-tax
last-year
bill-would
endangered-species
national-security
homeland-security
  Top 16 collocations by  
   Republicans        


united-states
stem-cell
embryonic-stem
small-businesses
small-business
would-like
cell-research
patriot-act
may-consume
american-people
health-care
death-tax
homeland-security
federal-government
law-enforcement
conference-report

Nov 17, 2010

Nov 5, 2010

VisWeek 2010, Salt lake city, Utah

Now attending conferences like Visweek  is more fun with twitter ! yeahh.. I could see who is twitting about which session, and the use of hashtag has made it way easier to search ( and find people of similar interest) , and this year the VisualBackChannel was another cool webapp (?) that made the experience more interesting. And during the VAST Closing panel speech on Tuesday, Ben S. showed the network diagram of people who are twitting about VisWeek'10 and how they are linked with one another. The audience got super excited to see their names as nodes in that network !

So I was to give presentation about our entry for VAST mini challenge 2010,  for this challenge our team from HCIL, Uof Maryland received the award: "Innovative Tool Adaptation", as we used a plagiarism detection tool to detect gene replication and a Network Analysis Visualization system ManyNets for discovering gene mutation path. On Sunday morning, I was to give a 3 minute presentation about the entry. I woke up at 7:30 am , therefore being brain-dead I joined the workshop arranged only for the challenge participants.  After several cups of coffee I started to feel alive. Me, Eric and Dustin walked 1 hour along the street of Salt Lake City to find a place to eat , and being drenched we finally found a Chinese  bistro.   I gained back my confidence after lunch and presented live demo about how our team solved the problem . It was nice to hear about the other teams and their approach on solving the problems.  SFU and GATech were shining with their large teams.

The next day we had this VAST Challenge panel at the afternoon,  time for me to hide my nervousness before this "houseful" audience and speak about our teamwork in more detail. Things went well enough this time. Then came the VAST Paper Fast forward, amazingly all the presented gave nice introduction about their work in 40 seconds !

The best thing about InfoVis is all the papers and presentations contain nice screen shots and figures , it is easier to understand the idea this way, and not feeling stupid about yourself thinking that "why don't I understand what the speaker is talking about ! " .  I  could not attend the morning sessions due to my take home midtem exam deadline, so after submitting my exam online, I headed towards the remaining sessions.  I liked most the sessions about graph visualization and social media. I enjoyed the paper talk about genealogy visualization using compact matrix, their overview and detail panel with nice linking technique made it an easily usable tool, though the time axis seemed a bit vague to me, need to read the paper once again. And isn't it depressing that there is no Windows version for LastHistory that shows your music listening history on Last.fm ! While attending the talk about the project LastHistory, I attempted to install it on my pc and damn!

Then it was time to visit the SciViz sessions, applying Voronoi diagram as image thumbnail shape for efficient image browsing  and considering Doppler Effect on local ray tracing were two papers I enjoyed , their demos were captivating.  It sound very geeky when I say "I enjoyed a paper" but seriously, these interactive demos with animations ! how can you ignore those !

The poster session was interesting, and not too mention very informative ; I got some nice idea which I would like to explore more, like the Non-photorealistic rendering (NPR ) method for representing uncertainty and 1.5D Network Visualization ( from IMB China ) showing the change of ego network of a node with time as an axis. 

The student volunteer party was a great chance to throw away our researcher mood and just to act like some twenty-something human being who loves to jump and dance [ and where there is an iPhone, there is music ].  This is the first time I attended VisWeek, met some awesome fellow student researchers and I can't explain how eager I am too attend the ones coming in future. Above all, the best part was the complement  I received from my advisors .