- 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.
Sunday, 4 August 2013
TWIL - Week #18
Posted on 09:01 by Unknown
This Week I Learned:
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment