Perfect day, perfect place
Posted: April 9th, 2011 | Author: Anuradha Uduwage | Filed under: Life & Us | 1 Comment »Adare, Potomac River, some presidents circle, under sakura tree…
Adare, Potomac River, some presidents circle, under sakura tree…
So we submitted the paper to wikisym, I had so much fun while working on the Gender Research paper. As a data junky slicing and dicing the data and sending them over many analytical processes was astonishingly thrilling. We came up with some great research questions and hypothesis it was fantastic to see how our hypothesizes tally with the results we got from our data. But to find out you need to read our paper and will put a link here sometime soon.
Now, I am going over my idea basket to find out which thought I should present to my advisor to get his thoughts on my next research angel.
I just switched myself to JEdit, after carefully analyzing I decided to go with JEdit simply because its free. I really like TextMate but its student version is $50 bucks so I decided to go with JEdit. And boy it did fascinate me, simply because I can load remote files and simple work on them. without having to SCP them to my account.
Gender gap is an interesting topic and it gets more interesting when you narrow it down to different domains. Since women have a extra-chromosome they should be the dominating gender in the world but in most areas that’s not the case. I am currently working on research publication and things that we found blew my mind off. Some of our research questions turned out to be way different that we predicted. I ll promise to put more information once the paper get publish. Till then stay tuned.
So today is my Thirtieth birthday and for some reason I do feel that I am at my prime. So for all you are at the verge of 30, my advise is thirty doesn’t look that bad as it look from far.
While I was poking around GWT and eclipse I realized that GWT compiler carries out multiple permutations of compilation process. My initial thought was, may be they are doing it to support cross platform compilation. This doesn’t happend often but this time my guess was spot on. So, I did little research and found that GWT doing its multiple permutations of compilation to support all browsers and this can be changed and you have the full control of it.
I found some developers have complained that enterprise level development take longer compilation and that has become an issue among many developers where length of debugging has increased. Just to show what exactly I am talking about, I have copy pasted the simple compilation of GWT MyWebApp Application.
1 2 3 4 5 6 7 8 9 10 11 | Compiling module com.colombounplug.mywebapp.MyWebApp Compiling 5 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compile of permutations succeeded Linking into /Users/anu/DevWorkspace/GWT/MyWebApp/war/mywebapp Link succeeded Compilation succeeded -- 36.654s |
But there are ways of working around. You can reduce the compilation just to compile for one browser. In my opinion is this can be done by using package/modularization (java package structure) with the help of ant to do the build process. But this article is not to talk about use of ant of java package structure.
By default GWT get compiled to support following browsers.
ie6
ie8
gecko
gecko1_8
safari
opera
Do we really need all these browser during the development time. I think thats a personal call but when I develop something I hate to wait the compiler to run for super long time. If thats the case for all of you here is the solution. I would also like to bring up another aspect on reducing compile time during development. Imagine our small application (MyWebApp) is not as small as we think and we support multiple locals. In this case to support all the browsers we have to compile the application in the default mode. Just to make this argument lets say we support 10 locals.
Here is the calculation for compile time: 36.654s * 10 = 366.54s this is fine when a build master is doing production build. But as a developer I would like to do a quick build and see my changes.
this is the file that you need to change to get different permutations.
1 | *.gwt.xml |
this file come in handy if you want to separate the project into multiple modules or rename the module to make the module name shorter. To reduce the number of permutations or to build the application just for one browser, we need to tell the compiler to do so by using this file.
Module xml file(s) are located on the java class path and they are always referred by their logical names. So let say you are going to develop an application call MyWebApp, and you own the “boo” domain then you can find this xml file in com.boo.mywebapp under the name of MyWebApp.gwt.xml
by default you have set it up to compile for all the browser and it should look like this or something similar to this.
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0" encoding="UTF-8"?> <module rename-to='mywebapp'> <!-- Inherit the core Web Toolkit stuff. --> <inherits name='com.google.gwt.user.User'/> <!-- Inherit the default GWT style sheet. You can change --> <!-- the theme of your GWT application by uncommenting --> <!-- You should have more lines --> : : </module> |
To reduce the compiler to do only one permutation you just have to pick a browser that you would like to do the development and add that as a property value, in this case we use the user.agent property and set the value to gecko1_8 which is firefox
1 | <set-property name="user.agent" value="gecko1_8" /> |
here is the *.gwt.xml file looks like after adding the property value.
1 2 3 4 5 6 7 | <?xml version="1.0" encoding="UTF-8"?> <module rename-to='mywebapp'> <!-- Inherit the core Web Toolkit stuff. --> <inherits name='com.google.gwt.user.User'/> <set-property name="user.agent" value="gecko1_8" /> : : |
Lets see if this really reduced the compilation time.
1 2 3 4 5 6 7 | Compiling module com.colombounplug.mywebapp.MyWebApp Compiling 1 permutation Compiling permutation 0... Compile of permutations succeeded Linking into /Users/anu/DevWorkspace/GWT/MyWebApp/war/mywebapp Link succeeded Compilation succeeded -- 25.671s |
Sure it did, and you can also see that it only did one permutation. Similar approach can be taken to locale where you define the local you want to compile with.
As a grad student I read many publications, and as requirement for one of my grad class, I read a paper published by University of Chicago urbana-champaign. The title of the paper was Predicting Tie Strength With Social Media . It was very interesting and I was fascinated by how social media can use (to some extend) to predict the strength of the relationship. But I do have my opinion on this paper and here it is,
Finding a dimension to analyze strength of a relationship is not an easy task. Human behavior and human thought process is very complicated. Emotions and feelings are two things that changes in a rapid pace. It would have been nice to identify the status of the users mood while they were answering because that can have an effect on emotions and feeling which may change the strength of the relationship.
Until the results sections I was questioning this paper with respect to how would they determine a relationship between a couple, most interestingly a relationship between husband and wife. They could very well open Facebook account and never communicate via Facebook. But results sections really answered my questions because they identify outliers seems to have higher strength in the relationship. I think this is a reasonable argument where I find its very true. It did fascinate me how these outliers very much could represent the married, engaged or people who are in a relationship. So can we identify relationship status based on strength of the relationship between each other.
I don’t agree how they used education as a social distance variable. I don’t think that can be used as measurement of the relationship. In real world people don’t become friends with each other by asking level of person’s education. Prime example for this is Asymmetric Friendship that they have identified. Most grad students end up having great friendship with their advisor and continue through life time. Now they may end up with a PhD later in their life upon graduation but not necessarily.
But overal this paper was really interesting. It also reminded me the The Social Network movie. According to the movie, Facebook was started based by ranking pictures of friends. This research is not that far from it.
Sometimes grad school, work and everything else in your life can really make you feel like this, and bruno read my mind inside out on this…
Since I got back from my Sri Lankan vacation life has been bit busy and bit crazy. So in between classes, research, work, and setting up class materials that I am TA for, I had little time to check the current standings of Lakers and I couldn’t believe my eyes when I saw in my Google Calender that Lakers have lost to Clippers.
I haven’t seen the highlights I think for the betterment of my health I better not watch that highlights. Sounds like its more of a LOWLIGHT.
There are few days that I will always remember one would be May 12th, and I guess January 18th is the latest addition for that list. I am not going to ruin it buy over elaborating but the feeling that I got when I was walking across the Mississippi from West Bank to East Bank and names that ran in my head is something special.
Recent Comments