Posted: March 24th, 2011 | Author: Anuradha Uduwage | Filed under: Research Work, Tech and CS, Technology | Tags: jEdit | 2 Comments »
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.
Posted: February 14th, 2011 | Author: Anuradha Uduwage | Filed under: Research Work, Technology | Tags: Google, GWT | No Comments »
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.
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.
Posted: November 22nd, 2010 | Author: Anuradha Uduwage | Filed under: Life & Us, Technology | Tags: Eat Pray Love | No Comments »
Traveling back to boring MSP after visiting my better half is always a tough task. But today i got to the flight as usual the last one to get to the flight, and I heard in flight announcement which informed the passengers about free online wifi because of the holiday season. So, Delta has teamed up and they are providing free online wifi during this holiday season and right now I am using that free online wifi service to chat with my better half while flying 30,000 feet above the ground. I also used Google voice to contact her but since I cant really turn the speakers on and I didn’t have my ear phones I was not able to really have a conversation. So all you travelers who plan to travel this holiday season take you laptop with you because you will at least be able to be with your love ones even you are flying thousand miles up in the air.
Posted: November 2nd, 2010 | Author: Anuradha Uduwage | Filed under: Information Retrieval, Technology | Tags: Google | No Comments »
I just got an email from Google, which was bit strange because as the email says Google normally don’t contact their customers if they do It hasn’t happened to me after the the first welcome email I have gotten from them. Only other time I got an email when I got select to phone interview with Google for a Software Engineering position.
Anyway, Some Gmail users have filed a law suit against Google Buzz concerning its privacy. I thought entire point of Buzz is to be public and if you are so concern about it you should simply ignore the buzz and not participate in it. But I am also not happy how Google has been tapping into private data streams such as open networks while they capture street views. Just because you are the giant in the search industry you don’t get to do what ever you think. Remember great power comes with great responsibility.
Posted: October 20th, 2010 | Author: Anuradha Uduwage | Filed under: Technology | Tags: Google | No Comments »
Google just released another new product called Google Demo Slam. So far it hosted under demoslam.com domain. Google Demo Slam will be a site used to showcase cool demos that people make using Google products and technology. I am still trying to figure out exactly how this is going to work and the real difference between something like youtube and this product.

Google Demo Slam
Posted: November 4th, 2009 | Author: Anuradha Uduwage | Filed under: Java Ruled, My MacBook Pro, Technology | Tags: Java, MacBook Pro | No Comments »
I was doing my regular daily doze of technical reading and stumble upon Jeff Bonwick’s blog. Sounds like deduplication is a great concept. I think this might be very helpful reducing the size of the repositories. But more than any thing I was thrilled about his previous post. ZFS is available on Snow Leopard. Wow!!!, as you may know from my previous posts, I switch to mac just about a month ago. And I must say somehow my mac book pro able fascinate me in daily basis. And this was another example.
Posted: October 19th, 2009 | Author: Anuradha Uduwage | Filed under: Information Retrieval, Technology | Tags: Google | 1 Comment »
Chill out, It’s not bad as it sounds. Yes, I freaked out when I first saw the news. I did the search and sure enough I saw plenty of voice messages freely available as search results. Not only that I was able play them and actually listen to a personal conversation. After few seconds I stopped playing messages simply because its wrong. But just confirmed if they were really voice messages. It only shows three pages worth of search results. If Google were to list all the Google voice mail messages it should well be beyond three pages of results. That tells me this sounds like a link of test.
I checked to see any of my voice messages are showing up on results page fortunately it didn’t, and this made me think twice continuing with the Google Voice account.

Google Voice Messages

Posted: September 24th, 2009 | Author: Anuradha Uduwage | Filed under: Technology | Tags: Google | No Comments »
Lately I have been very dependent on my GMail. In addition to send/receive mails, I use it as an information storing location. Example: While I am researching when I find something that might be useful I note it down and save it as a draft. But today I started to experience issues in GMail, I checked the Google App Status Dashboard, yeap its broken.

Google App Status Dashboard
Posted: July 30th, 2009 | Author: Anuradha Uduwage | Filed under: Microsoft, Tech and CS, Technology | Tags: Microsoft | No Comments »
Day after Microsoft release Bing Search Engine or as they call it decision engine I put it bing to test. Search was ok but I didn’t find it smarter than Google, then I checked the Maps option and it was horrible. But its been few weeks and today I went to bing after I saw its travel option on the television addvertisment. And let me tell you its impressive and I think its one step ahead Google. So this is what I did, I just typed

Bing Search Box
on the search box, and following result shows up as the first result among many others.

Bing Travel Prediction
. I would say up to this stage Google and Bing are neck to neck on this but after you click above option Bing kicks to the next gear like Alberto Contador climb mountains by dancing on his saddle. Yeap, as person who is in the field of HCI and Data Mining, I was very impressed on what I saw in bing. It has predictions on ticket prices such as if they were to stay steady or to go up. Yes it says that
Note that deals are compiled on yesterday’s lowest airfares and can change often.
but its still ahead Google at least on this matter.

Not only that it gives nice graphical representation of the price fluctuation along with the prediction of the price with respect the date.

So, its True that this is no ordinary search engine, but Machine Learning at its best. So if I was Google I would be bit worried about bing. Google as new era technology company had the advantage of learning from all the mistakes made my giants like Microsoft, Yahoo, etc. But I guess for the first time, Microsoft using it potential and capability and thinking out of the box. And the best thing is they are simply try to match everything that Google does where they have been doing it for the past decade. I am not a big Microsoft fan but I have to give props for this to Microsoft, Bravo.
Posted: July 8th, 2009 | Author: Anuradha Uduwage | Filed under: Tech and CS, Technology | Tags: Google | No Comments »
Everyday I login to Gmail, everyday I see the beta sign along with the Google Gmail logo. I always wondered, Are they really going to do release this beyond Beta or is it Google’s way of staying out of reliability issue saying that, “Sorry guys we can’t guarantee your emails are safe with us” (As if Google had any down time in their history – respect to Search engine).

Gmail out of Beta
But Today, I saw something different, when I logged in No Beta sign along with the Google Gmail Logo, I thought something wrong. But it was same for my calendar so looks like Google has finally out of its Beta cave.
Recent Comments