Posts

Interesting short urls

Have you ever wondered what are the shortest URLs? Found the following 1 letter second level domain names with .co and .com TLDs. Interesting list. a.co => Redirects to amazon.com o.co => Redirects to overstock.com g.co => displays page mentioning about it being used for Google Product Links s.co => __ NO_REDIRECT__ Startup America Site t.co => displays page mentioning about it being used for a twitter service x.co => Redirects to app.x.co  GoDaddy site for URL shortening X.com => __ NO_REDIRECT__ An ebay Product q.com => Redirects to Centurylink.com Now taking a.co example, a.co redirects to amazon.com. but amazon.co redirects to an help page in amazon.com. Also surprising that they have a short URL for a.co but not for a.com Also interesting why companies like apple, microsoft, intuit doesn't have single letter domain urls. i.co or i.com and m.com likes lucrative URLs for them to own for more web hits... doesn'...

Use nanoTime instead of System.currentTimeInMillis()

Refer: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#nanoTime() Especially useful when we are not really looking for a wall clock definition (current time) but are doing endTime-StartTime.

TextWrangler and formating XML & JSON Documents

TextWrangler is a good alternative for Notepad++ on Mac Os X but it quite doesn't have the plugins that notepad++ enjoys. 2 Scripts which I really use: Format Xml Document: http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/ Format JSon Document: http://ukitech.blogspot.in/2012/08/format-json-in-free-textwrangler.html For assigning shortcuts - Goto preferences in TextWrangler (Cmd + ,), Click on Menus & Shortcuts Select Text on the right side box. Expand Text Filters Click on the plugin (on to the right most side) Type a unique key combination Close Preferences.

Android UI Wireframing online tool

Anyone tried this Android UI wireframing online tool: http://www.fluidui.com/ Seems to be good. More details: http://www.androiduipatterns.com/2012/07/fluid-ui-wireframing-for-android.html

Http Post utility

Poster seems to be a very good browser plugin to do HTTP Posts. It supports all http method calls, headers and post body formats. It's available for Firefox and Chrome for both Windows and Mac. Link for chrome:  https://chrome.google.com/webstore/detail/cdjfedloinmbppobahmonnjigpmlajcd http://hurl.it/ is another good one if you want to try it on browser & not install a plugin. If you want to download an app for Mac, then try out ApiKitchen. Url:  http://www.macupdate.com/app/mac/39400/apikitchen . It has an online version too:  http://apikitchen.com/ It's still in beta (as of 30 May 2012) but accomplishes most of the job very well. Rest-Client is another good tool.

SpringSource ToolSuite - changing maven repo

If you are using STS, you would have found that you cannot modify the default maven repo being used in the project preferences or STS preferences. To change it, goto preferences -> maven -> Installations. You will find the location for settings.xml. Goto this file in Finder/Explorer and modify the to point to the correct repo you want. Restart STS and you should be good to go.  Solution found from : http://forum.springsource.org/showthread.php?84284-How-to-modify-M2_REPO Thanks  Christian.

Blogspot.in?

Visiting any blogger sites from India seems to redirect it to .blogspot.in. This seems to be part of creating a  country-code top level domain , or 'ccTLD' so that removal of content becomes easier for country level. If you want to visit the original blogsite, just append /ncr to the blog.  So to access this blog, you would be using http://bschandramohan.blogspot.com/ncr More info:  http://googlesystem.blogspot.in/2012/01/country-specific-blogger-urls.html