ted

PIX: Deserted roads across India during Janata curfew

Be it Mumbai, known as the city that never sleeps, Patna or Ahmedabad, life came to a standstill in the country as roads, railway stations and airports wore a deserted look and markets and establishments except those dealing in essential goods and services remained shut during the 14-hour self-imposed curfew that started at 7 am.




ted

275 Indians, evacuated from Iran, reach Jodhpur

Of the 275 passengers, there were 133 women and 142 men, including two infants and four children.



  • Rohit Kumar Singh
  • Army Wellness Facility
  • Iran
  • Jodhpur

ted

918 COVID-19 cases, 31 deaths reported in 24 hrs

While the number of active COVID-19 cases stood at 7,409, as many as 764 people have been cured and discharged, and one had migrated, it said. Of the total 273 deaths, Maharashtra tops the tally with 127 fatalities, followed by Madhya Pradesh at 36, Gujarat at 22 and Delhi at 19.




ted

AAP MLA Prakash Jarwal arrested in connection with doctor's suicide

AAP MLA Prakash Jarwal arrested in connection with doctor's suicide




ted

Govt allows opening 3000 CBSE affiliated schools for evaluating class 10, 1...

Govt allows opening 3000 CBSE affiliated schools for evaluating class 10, 1...




ted

Nagaland tests more suspected samples

Nagaland tests more suspected samples




ted

3 arrested over teacher’s killing

3 arrested over teacher’s killing




ted

Thoughts on Safari Reader’s generated HTML

Every time you click that shiny little Reader button, Safari generates an HTML document and displays it as an overlay to the original document. Let’s have a look at the HTML and CSS used in this process, and find out how we can mess with it.




ted

Everything you always wanted to know about touch icons

“Touch icons” are the favicons of mobile devices and tablets. Adding them to your web page is relatively easy, but it gets more complicated as you target different devices and firmware versions. Let’s dive in!




ted

Unquoted attribute values in HTML and CSS/JS selectors

This is one of those posts I wrote just to be able to link back to it later. I see a lot of questions on the subject, and even though I don’t mind explaining the same thing over and over again, it’s probably easier to just write it down once.




ted

Unquoted property names / object keys in JavaScript

Fun fact: var foo = { H̹̙̦̮͉̩̗̗ͧ̇̏̊̾Eͨ͆͒̆ͮ̃͏̷̮̣̫̤̣Cͯ̂͐͏̨̛͔̦̟͈̻O̜͎͍͙͚̬̝̣̽ͮ͐͗̀ͤ̍̀͢M̴̡̲̭͍͇̼̟̯̦̉̒͠Ḛ̛̙̞̪̗ͥͤͩ̾͑̔͐ͅṮ̴̷̷̗̼͍̿̿̓̽͐H̙̙̔̄͜: 42 }; is valid JavaScript. It may not be immediately obvious, but the real surprise here is that the Cthulhu-esque property name is not surrounded by quotes. Intrigued by this, and having written about the similar topic of JavaScript identifiers before, I decided to look into valid property names in JavaScript. When do they need to be quoted? When can the quotes be omitted? And in which cases can dot notation be used instead of bracket notation to get or set a property based on its name?




ted

Unquoted font family names in CSS

Are the quotes in font-family: 'Comic Sans MS' required, or not? If you thought the answer was yes, you may want to read on.




ted

Loading JSON-formatted data with Ajax and `xhr.responseType='json'`

This post explains a hidden gem in the XMLHttpRequest standard that simplifies fetching and parsing JSON data through Ajax.




ted

Hiding JSON-formatted data in the DOM with CSP enabled

If Content Security Policy is enabled for protection against cross-site scripting attacks (i.e. the unsafe-inline option is not set), the use of inline