intern

Modern Synthetic Methodologies for Creating Drugs and Functional Materials (MOSM2018): proceedings of the II International Conference: conference date, 15-17 November 2018: location, Yekaterinburg, Russia / editors, Grigory V. Zyryanov, Sougata Santra and

Online Resource




intern

Superplasticizers and other chemical admixtures in concrete: proceedings of the twelfth international conference, Beijing, China, October 28-31, 2018 / editors, Jiaping Liu, Ziming Wang, Terence C. Holland, Jing Huang, Johann Plank

Barker Library - TP884.A3 I68 2018




intern

2018 AIChE Spring Meeting & 14th Global Congress on Process Safety: 33rd Center for Chemical Process Safety International Conference (CCPS) / American Institute of Chemical Engineers

Online Resource




intern

Application of liquid biofuels to internal combustion engines / Soo-Young No

Online Resource




intern

Using canvas to fix SVG scaling in Internet Explorer

Internet Explorer 9–11 suffer from various bugs that prevent proper scaling of inline SVG’s. This is particularly problematic for SVG icons with variable widths. This is the canvas-based hack I’ve been using to work around the issue.

A popular way to use SVG icons is to generate a spritemap of SVG symbol‘s that you then reference from elsewhere in a document. Most articles on the topic assume your icon dimensions are uniformly square. Twitter’s SVG icons (crafted by @sofo) are variable width, to produce consistent horizontal whitespace around the vectors.

Most browsers will preserve the intrinsic aspect ratio of an SVG. Ideally, I want to set a common height for all the icons (e.g., 1em), and let the browser scale the width of each icon proportionally. This also makes it easy to resize icons in particular contexts – just change the height.

Unfortunately, IE 9–11 do not preserve the intrinsic aspect ratio of an inline SVG. The svg element will default to a width of 300px (the default for replaced content elements). This means it’s not easy to work with variable-width SVG icons. No amount of CSS hacking fixed the problem, so I looked elsewhere – and ended up using canvas.

canvas and aspect ratios

A canvas element – with height and width attributes set – will preserve its aspect ratio when one dimension is scaled. The example below sets a 3:1 aspect ratio.

<canvas height="1" width="3"></canvas>

You can then scale the canvas by changing either dimension in CSS.

canvas {
  display: block;
  height: 2rem;
}

Demo: proportional scaling of canvas.

Fixing SVG scaling in IE

This makes canvas useful for creating aspect ratios. Since IE doesn’t preserve the intrinsic aspect ratio of SVG icons, you can use canvas as a shim. A canvas of the correct aspect ratio provides a scalable frame. The svg can then be positioned to fill the space created by this frame.

The HTML is straightforward:

<div class="Icon" role="img" aria-label="Twitter">
  <canvas class="Icon-canvas" height="1" width="3"></canvas>
  <svg class="Icon-svg">
    <use fill="currentcolor" xlink:href="#icon-twitter"></use>
  </svg>
</div>

So is the CSS:

.Icon {
  display: inline-block;
  height: 1em; /* default icon height */
  position: relative;
  user-select: none;
}

.Icon-canvas {
  display: block;
  height: 100%;
  visibility: hidden;
}

.Icon-svg {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

Setting the canvas height to 100% means it will scale based on the height of the component’s root element – just as SVG’s do in non-IE browsers. Changing the height of the Icon element scales the inner SVG icon while preserving its 3:1 aspect ratio.

Demo: proportional scaling of svg in IE.

Creating an Icon component

The hack is best added to (and eventually removed from) an existing icon component’s implementation.

If you’re generating and inlining an SVG spritemap, you will need to extract the height and width (usually from viewBox) of each of your icons during the build step. If you’re already using the gulp-svgstore plugin, it supports extracting metadata.

Those dimensions need to be set on the canvas element to produce the correct aspect ratio for a given icon.

Example React component (built with webpack):

import iconData from './lib/icons-data.json';
import React from 'react';
import './index.css';

class Icon extends React.Component {
  render() {
    const props = this.props;
    const height = iconData[props.name.height];
    const width = iconData[props.name.width];

    // React doesn't support namespaced attributes, so we have to set the
    // 'use' tag with innerHTML
    const useTag = `<use fill="currentcolor"
                      xlink:href="#icon-${props.name}">
                    </use>`;

    return (
      <span className="Icon">
        <canvas className="Icon-canvas"
          height={height}
          width={width}
        />
        <svg className="Icon-svg"
          dangerouslySetInnerHTML={{__html: useTag}}
          key={props.name}
        />
      </span>
    );
  }
}

export default Icon;

When I introduced this hack to a code base at Twitter, it had no impact on the the rest of the team or the rest of the code base – one of the many benefits of a component-based UI.




intern

International experts to be consulted on Styrene gas leak at Visakhapatnam

The NCMC chaired by Cabinet Secretary Rajiv Gauba met on Friday to review the situation arising out of the gas leak




intern

Tivoli integration scenarios [electronic resource] / IBM, International Technical Support Organization




intern

Water culture, politics, and management [electronic resource] / India International Centre; introduction by Kapila Vatsyayan

Festival of Water (2004 : India International Centre)




intern

Internationalization of Business [electronic resource]: Cases on Strategy Formulation and Implementation








intern

JAMA Internal Medicine : Effect of Exercise Intervention on Functional Decline in Very Elderly Patients

Interview with Mikel Izquierdo, Ph.D, and Nicolás Martínez-Velilla, PhD, authors of Effect of Exercise Intervention on Functional Decline in Very Elderly Patients During Acute Hospitalization: A Randomized Clinical Trial, and William J. Hall, MD, author of A Novel Exercise Intervention and Functional Status in Very Elderly Patients During Acute Hospitalization





intern

JAMA Internal Medicine : Analysis of Proposed Medicare Reforms on Prescription Drug Total Spending and Patient Cost-Sharing

Interview with Aaron Kesselheim, author of Analysis of Proposed Medicare Part B to Part D Shift With Associated Changes in Total Spending and Patient Cost-Sharing for Prescription Drugs, and Francis J. Crosson, M.D., author of Managing the Cost of Medicare Part B Drugs: Implications for the Program and Beneficiaries






intern

JAMA Internal Medicine : Allocation of Inpatient Time Among First-Year Internal Medicine Residents

Interview with Krisda Hirschman Chaiyachati, MD, MPH, MSHP, author of Assessment of Inpatient Time Allocation Among First-Year Internal Medicine Residents Using Time-Motion Observations, and Christopher Moriates, MD, author of A Modern Snapshot of the Daily Work of Medical Interns—The Burden of Indirect Patient Care









intern

JAMA Internal Medicine : Effect of Collaborative Dementia Care on Quality of Life, Caregiver Well-being, and Health Care Use

Interview with Katherine L. Possin, PhD, author of Effect of Collaborative Dementia Care via Telephone and Internet on Quality of Life, Caregiver Well-being, and Health Care Use: The Care Ecosystem Randomized Clinical Trial, and Jennifer Tjia, MD, MSCE, FAAHPM, author of A Telephone-Based Dementia Care Management Intervention—Finding the Time to Listen








intern

JAMA Internal Medicine : Evaluation of Association Between Gastric Acid Suppression and Risk of Intestinal Colonization With MDROs

Interview with Christina Vandenbroucke-Grauls, MD, PhD, author of Evaluation of the Association Between Gastric Acid Suppression and Risk of Intestinal Colonization With Multidrug-Resistant Microorganisms: A Systematic Review and Meta-analysis, and Todd Campbell Lee, MD MPH, author of Deprescribing Proton Pump Inhibitors: Overcoming Resistance







intern

Sensational murder trial of Shrien Dewani under international scrutiny



  • DO NOT USE Indians Abroad
  • World

intern

India’s Dr Zakir A Naik wins King Faisal International Prize



  • DO NOT USE Indians Abroad
  • World

intern

Bobby Jindal’s campaign gains ground in Iowa, reveals latest internal survey



  • DO NOT USE Indians Abroad
  • World

intern

The World Bank policy for projects on international waterways: an historical and legal analysis / Salman M.A. Salman

Online Resource




intern

Armed conflict and forcible displacement: individual rights under international law / edited by Elena Katselli Proukaki

Dewey Library - KZ6530.A75 2018




intern

Punishing atrocities through a fair trial: international criminal law from Nuremberg to the age of global terrorism / Jonathan Hafetz

Dewey Library - KZ7050.H34 2018




intern

From slaves to prisoners of war: the Ottoman Empire, Russia, and international law / Will Smiley

Dewey Library - KZ6495.S63 2018




intern

International migration law / Vincent Chetail

Dewey Library - K3275.C44 2019




intern

Narratives of hunger in international law: feeding the world in times of climate change / Anne Saab, Graduate Institute of International and Development Studies

Dewey Library - K3260.S23 2019




intern

Contemporary issues of human rights protection in international and national settings / Stefan Lorenzmaier, Vasilka Sancin (eds.)

Dewey Library - K3240.C669 2018




intern

The 'ecosystem approach' in international environmental law: genealogy and biopolitics / Vito de Lucia

Dewey Library - K3585.D38 2019




intern

Tallinn manual 2.0 on the international law applicable to cyber operations / prepared by the International Groups of Experts at the invitation of the NATO Cooperative Cyber Defence Centre of Excellence ; general editor, Michael N. Schmitt ; managing edit

Dewey Library - KZ6718.T35 2017




intern

Child soldiers and the defence of duress under international criminal law / Windell Nortje, Noëlle Quénivet

Online Resource




intern

International taxation of trust income / Mark Brabazon

Dewey Library - K4536.T78 B73 2019




intern

Emerging powers in the international economic order: cooperation, competition, and transformation / Sonia E. Rolland, David M. Trubek

Dewey Library - K3820.R655 2019




intern

The UN Security Council and international criminal tribunals: procedure matters / Christodoulos Kaoutzanis

Online Resource




intern

Cyber espionage and international law / Russell Buchan

Dewey Library - KZ4079.B83 2019