<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\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d601588505461698440', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

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

TWIL - Week #18

This Week I Learned:
  • jQuery's .data method ignores case in attribute data names - The value of a HTML5 data attribute like  data-sampleAttributeName="example" or data-sampleattributename="example" can be accessed using the jQuery .data('sampleattributename'). Note that the same statement works for both the variations; camel-casing of the key is ignored and attribute is accessed by the lower-case name. If the attribute key value pair is data-sample-attribute-name="something", the value can be accessed with jQuery using this: .data('sampleAttributeName')
  • Typing document.body.contentEditable = true; into DevTools makes *all* of the text on a page editable. Useful for prototyping 
  • BBC uses has an open-source front end regression testing tool called Wraith to visually compare CSS regressions 
  • To use Google as a countdown timer, enter “timer 10 minutes" 
  • xkcd webcomic titled “Time” which was first published on March 25, has 3,099 installments that continued to change every half-hour for the next week – and every hour for months after that. A Youtube video compilation of these panels runs more than 40 minutes from start to finish.
  • As per this MIT Technology Review infographic, Silicon Valley has 64% foreign workers 
  • Microsoft sees itself as a devices and services company
  • FBI taps hacker tactics to spy on suspects
  • In the last 20 years, the BSE S&P Sensex has gained 11.4% on average annually. The gains are much higher if dividend income and bonus shares are taken into account. Over the same period, the value of gold has risen about 10% a year. (Source: WSJ). One reader commented: BSE gained 10%…well inflation is 10%…so…do the math #india
  • As of 2013, Milkha Singh is the only Indian male athlete to win an individual athletics gold medal at a Commonwealth Games. Though he won gold medals in the Asian Games, I was surprised to learn that he never won an Olympic Gold. He was a also-ran in 3 Olympic Games, finishing fourth-place (like P.T.Usha in the LA Olympics) in the 400 metres final at the 1960 Olympic Games in Rome. 
  • A brief biography of Sugar - Excerpts: The Arabs perfected sugar refinement and turned it into an industry.  In the mid-17th century sugar began to change from a luxury spice, classed with nutmeg and cardamom, to a staple, first for the middle class, then for the poor. By the 18th century the marriage of sugar and slavery (slave trade was banned in Britain in 1807) was complete. In 1700 the average Englishman consumed 4 pounds a year. In 1800 the common man ate 18 pounds of sugar. In 1870 that same sweet-toothed bloke was eating 47 pounds annually. By 1900 he was up to 100 pounds a year. Sugar may be the reason for obesity, high BP and diabetes (one-third of adults [worldwide] have high blood pressure, when in 1900 only 5 percent had high blood pressure. 153 million people have diabetes in 1980, and now we’re up to 347 million) Sugar provides calories with no nutritional benefit & it’s toxic. Why do we crave it? The short answer is that an injection of sugar into the bloodstream stimulates the same pleasure centers of the brain that respond to heroin and cocaine...In this sense it is literally an addictive drug.


Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »


Post a Comment