<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\758211560\46blogName\75Tech+Tips,+Tricks+%26+Trivia\46publishMode\75PUBLISH_MODE_BLOGSPOT\46navbarType\75BLUE\46layoutType\75CLASSIC\46searchRoot\75http://mvark.blogspot.com/search\46blogLocale\75en\46v\0752\46homepageUrl\75http://mvark.blogspot.com/\46vt\75-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
A seasoned developer's little discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks

Infographic: 3G vs 4G

Thursday, December 18, 2014
click to view enlarged image
This infographic from Microsoft provides a quick visual summary of the difference 3G and  4G will make to mobile internet browsing.

Microsoft Lumia 628 is one of the cheapest 4G handsets currently available in India at Rs 8,299

Reliance Jio Infocomm is set to roll out its 4G LTE services in 800 Indian cities between April and June next year.

Bharti Airtel, the only company offering 4G services at present, does so in around 15 cities, including Bengaluru, Pune and Mohali. The company, present in 5,121 census cities and towns and over 462,000 non-census towns and villages across India with services like 2G and 3G, covers about 86 per cent of the country's total population.

Related: Book Review: High Performance Browser Networking by Ilya Grigorik; O'Reilly

Labels: ,

2 ways to copy tooltip text from a web page

Wednesday, December 17, 2014
There are times when I've wanted the tool-tip text that appears on hovering over a link or an icon within a web page. The cumbersome way is to select the object that has the tooltip and then use Inspect element option in Chrome (as shown in the animated GIF below) or open Developer Tools (F12 keyboard shortcut in popular browsers) select the element containing the tooltip and grab the desired text from HTML code.
Inspect Element option in Chrome
I found a simpler option that works with tool-tips on some websites (not all)

Select the word before and after the image containing the tooltip and when the tool tip appears, copy the selected text. Copy it from the clipboard and remove the extra words after you paste
Select tooltip & its surrounding words, copy & paste
I've tested this crude trick in IE 11, Firefox 34 and Chrome 39 (all on Windows)

(The animated GIFs were generated using the ScreenToGif open-source tool)

Labels: ,

Book Review: Eloquent JavaScript

Monday, December 15, 2014

Eloquent JavaScript by Marijn Haverbeke is a great book for both beginner and intermediate developers to learn and improve their existing JavaScript skills. The second and most recent edition covers ECMAScript 5. The ebook can be read online and is free to download in ePub & PDF formats (you can have Amazon convert it into Kindle format). There is a also a paper edition available for purchase.

The explanations are simple and straight-forward with plenty of code snippets and practical samples in VanillaJS that you can re-use in your own projects. It made me think and answered a lot of "whys". The chapter summaries are also well-written. The style of the book & code samples reminded of my favorite C# book C# in a Nutshell. I have heavily highlighted points in both the books for future reference and to me they exemplify how technical books should be written.

The only nit I can pick is not with the content but with the formatting of the code in the PDF version. Due to unwanted spaces within the code, you cannot copy & paste the sample as is if you want to try them out. I had to use the code samples from the online HTML version. The code samples for only a few chapters are available for download at the author's code sandbox but this isn't really an issue.

Labels: ,

This Week I Learned - Week #88

Saturday, December 13, 2014
This Week I Learned -

TodoMVC project has examples of the same application, implemented with a wide range of popular JavaScript MVC frameworks. Among Angular, Backbone & Ember (used for the TodoMVC application), Backbone had the fastest render time in an perf test.

- Stackexchange serves 560 million page views per month

- Are Websites on Azure  charged while in stopped state? Yes. Rates listed apply to Website instances in stopped state. Please delete Website instances not in use or update tier to Free to avoid charges.

Google's cloud serves 6 billion hours of YouTube video per month and provides storage for 425 million Gmail users.

- Plagtracker plagiarism checking service

- All the analytics for a GitHub repository is available at https://github.com/<username>/<reponame>/graphs/traffic

There are three different types of checkmarks on WhatsApp:
~ One grey checkmark: The message has been sent but not delivered to the receiver's phone (maybe because of no connectivity / closed app / phone is off / blocked)
Two grey checkmarks: The message is delivered to the receiver's phone.
Two blue checkmarks: The receiver has read your message. With this checkmark you can know who is deliberately ignoring you.

- Code golf is a term used for the game of trying to express a particular program in as few characters as possible. Similarly, regexp golf is the practice of writing as tiny a regular expression as possible to match a given pattern, and only that pattern.

- Cadence, Infinera, Microchip, Microsemi, Synopsys, Teradata, Texas Instruments, and VM Ware are among the companies to state their second largest R&D teams are located in India or China. 20 of Adobe products were run completely from India. - HBR

Equity Mutual Funds have recorded a Rs. 86,816 crore worth of inflows for the current Financial Year till November end. Before this year, FY 2008 was the best year for Equity Mutual Funds, with a near Rs. 1.2 lakh crores in inflows for the whole year.

- India's largest software exporter, TCS, has over $13-billion annual turnover and employs over 3 lakh people across 46 countries. At the end of last quarter ended September 30, 2014, TCS had a total headcount of 3,13,757 following a gross employee addition of over 20,000 people. The headcount utilisation during the quarter stood at 86.2 per cent, excluding trainees, while the figure after including trainees was 81.3 per cent. Its attrition rate was 12.8 per cent. During the July-September quarter, TCS also crossed a milestone of employing one lakh women professionals with a gender diversity ratio of 32.9 per cent.  - Economic Times

- Amongst philosophers, Socrates is an example of a genius with a great influence on human history who never wrote anything. Almost all facts which are known about his revolutionary ideas are written by his students like Plato and Xenophon.

- In France, coffee with milk is drunk exclusively for breakfast, while black coffee is drunk for the rest of the day.

- Albatrosses can fly around the world in just 46 days. There are among the largest flying birds, weighing up to 11 kilograms, and with a wingspan up to 3.5 meters.

- Humans can live up to 100 days without food while bears can go without food for 5 months. While they hibernate, bears convert urine into proteins to reduce muscle loss. - National Geographic

Labels: ,

Microsoft Azure Services at a glance

Monday, December 08, 2014
The following tables from the Azure PricingAzure Regions pages provide a visual summary of the currently available Microsoft Azure Services.
click images to enlarge

Azure operates out of 17 regions around the world currently.