ap

[ASAP] Rh(I)-Catalyzed C6-Selective Decarbonylative Alkylation of 2-Pyridones with Alkyl Carboxylic Acids and Anhydrides

Organic Letters
DOI: 10.1021/acs.orglett.0c01277




ap

Oppo to resume mobile production at 30% capacity

The company has also started sales of mobile phones through Amazon, Flipkart and retail stores in permitted areas.




ap

CBI court extends Kapil Wadhawan, Dheeraj Wadhawan's custody in Yes Bank scam till May 10

The businessmen-brothers are facing charges of financial irregularities in cases filed by both Enforcement Directorate (ED) and CBI.




ap

Franklin Templeton issues apology to SEBI, says top executive's remark 'taken out of context'

Franklin Templeton Mutual Fund on Friday said it is making every effort to ensure an orderly and equitable exit to all investors affected by closure of six debt schemes, a day after it was asked by regulator sebi to focus on returning investors' money at the earliest.




ap

Proust's duchess: how three celebrated women captured the imagination of fin-de-siècle Paris / Caroline Weber

Browsery PQ2631.R63 Z9818 2018




ap

The apparitionists: a tale of phantoms, fraud, photography, and the man who captured Lincoln's ghost / Peter Manseau

Browsery BF1027.M86 M36 2017




ap

Paper: material, medium and magic / edited by Neil Holt, Nicola von Velsen and Stephanie Jacobs ; with photographs by Thorsten Kern

Browsery TS1105.P134 2018




ap

Ten drugs: how plants, powders, and pills have shaped the history of medicine / by Thomas Hager

Browsery RM45.H34 2019




ap

Tigerland: 1968-1969, a city divided, a nation torn apart, and a magical season of healing / Wil Haygood

Browsery GV885.73.C65 H68 2018




ap

Study in black and white: photography, race, humor / Tanya Sheehan

Browsery TR679.5.S54 2018




ap

Dessert: a tale of happy endings / Jeri Quinzio

Browsery TX773.Q55 2018




ap

The scientific revolution / Steven Shapin

Browsery Q125.S5166 2018




ap

Seventeen / Hideo Yokoyama ; translated from the Japanese by Louise Heal Kawai

Browsery PL877.5.O369 K8713 2018




ap

Not that Bad: Dispatches from Rape Culture / edited by Roxane Gay

Browsery HD6060.3.N68 2018b




ap

The body papers: a memoir / Grace Talusan

Browsery RC560.S44 T35 2019




ap

The atlas of disease: mapping deadly epidemics and contagion from the plague to the zika virus / Sandra Hempel

Browsery RA649.H46 2018




ap

Saladish: a crunchier, grainier, herbier, heartier, tastier way with vegetables / Ilene Rosen with Donna Gelb ; photographs by Joseph de Leo ; illustrations by Emma Dibben

Browsery TX807.R7845 2018




ap

From the earth: world's great, rare and almost forgotten vegetables / Peter Gilmore ; photography by Brett Stevens

Browsery TX801.G55 2018




ap

Christopher Kimball's Milk Street: Tuesday nights / Christopher Kimball, J.M. Hirsch, Matthew Card, Michelle Locke, Jennifer Baldino Cox, and the editors and cooks of Milk Street ; photography by Connie Miller

Browsery TX833.5.K55 2018




ap

Becoming a neurosurgeon / John Colapinto

Browsery RD593.C592 2019




ap

Ottolenghi Simple: a cookbook / Yotam Ottolenghi, with Tara Wigley and Esme Howarth ; photographs by Jonathan Lovekin

Browsery TX833.5.O88 2018




ap

Between Harlem and Heaven: Afro-Asian-American cooking for big nights, weeknights, & every day / J.J. Johnson and Alexander Smalls ; with Veronica Chambers ; photography by Beatriz da Costa ; food styling by Roscoe Betsill

Browsery TX715.2.A47 J64 2018




ap

Lifespan: why we age--and why we don't have to / David A. Sinclair, with Matthew D. LaPlante ; illustrations by Catherine L. Delphia

Browsery QH528.5.S56 2019




ap

Julep: Southern cocktails refashioned / Alba Huerta & Marah Stets ; photography by Julie Soefer

Browsery TX951.H75 2018




ap

Basque country: a culinary journey through a food lover's paradise / Marti Buckley ; photographs by Simon Bajada

Browsery TX723.5.B36 B83 2018




ap

Bottom of the pot: Persian recipes and stories / Naz Deravian ; photography by Eric Wolfinger

Browsery TX725.I7 D47 2018




ap

Book draft: overflow chapter

I am going to write a “CSS for JavaScripters” book, and therefore I need to figure out how to explain CSS to JavaScripters. This series of article snippets are a sort of try-out — pre-drafts I’d like to get feedback on in order to figure out if I’m on the right track.

Today I present the first draft of the short overflow article. Feedback would be greatly appreciated.

*** START EXCERPT ***

"Web design is a constant battle against overflow."

- Rachel Andrew

Not knowing how tall something is is fundamental to web design. For instance, you cannot know in advance how long the texts will be that will be shown in your site. What happens if if the final text is much longer than the fake text you used during production? Or what if there's a wide image you hadn't counted on?

In both cases the content of your blocks will become larger than you expected, and if you've given them a fixed width or height that might lead to overflow: content escaping from the block — or at least, attempting to escape.

The easiest way to avoid overflow is not giving your blocks a fixed height in the first place. If you allow them to grow as tall and wide as they need to be you avoid quite a few problems.

This short chapter discusses how to deal with overflow.

CSS Is Awesome

The most famous example of overflow is the "CSS is Awesome" meme that's been around ever since 2009.

Born out of one web developer's frustration with CSS's overflow behavior, this meme took on a life of its own and became an example of what was wrong with CSS. Why would the 'Awesome' flow out of the box? Why should CSS be so complicated? Couldn't the box simply grow to contain the 'Awesome'?

Sure it could! And it would, except that you specifically instructed the box not to by giving it a fixed width. You could have used min-width or flexbox — both are good in dealing with unexpectedly large content — but you didn't. No doubt you had good reasons, but since it was your decision, the onus of solving any resulting issues is on you.

In these cases, the overflow declaration is your friend.

The overflow declaration

The overflow declaration allows you to define what to do with content that overflows its box. It has four values, visible, hidden, scroll, and auto. The default value is visible, and that's the one that causes the 'CSS is Awesome' effect.

overflow: visible means that you allow the content to spill out of its block. Although that keeps the content readable, it also means the content might overlap with the block below or to the right of the affected block, which can be very ugly.

When calculating the position of other blocks, the browsers' layout algorithm uses the width and height of the box you defined, and disregards the fact that content may be spilling out of the block. In fact, at that point in the algorithm the browsers have no way of knowing that the content overflows. [FACT-CHECK THIS]

Thus, when calculating the position of the next block the browsers place the block exactly where it should be given the height of the previous block and the margins of both. They do not pay the overflow any mind, wbich may cause the overflowing content to overlap the content of the next block.

Sometimes this is what you want — or rather, what you’re forced to live with. More often, though, you want to either generate scrollbars or hide the overflowing content entirely.

overflow: hidden hides the overflowing content. This creates a pleasing visual effect, but now there's no way for the user to get to the content. Therefore, hidden is something of a nuclear option: necessary in a few cases, but to be avoided whenever there's a better way of handling the situation.

overflow: scroll and overflow: auto generate scrollbars. The auto value generates scrollbars when they're necessary, while scroll scroll value always does so, even when no scrollbars are needed.

If scroll always generates those ungainly scrollbars, even when they're not needed, and auto only generates them when necessary, why would you ever use scroll? The reason is that a content change that generates or removes a scrollbar can be quite ugly.

Suppose you have a block with overflow: auto that initially does not need scrollbars. Then a script adds a lot of content to the block, causing overflow, and thus the generation of a scrollbar. Not only is this quite ugly in itself, but on some systems [BE MORE SPECIFIC] the scrollbar itself takes up about 16px of width and thus narrows the content area, which may lead to the reflowing of the text and even more overflow. And when the content is removed, all of that happens in reverse.

All this can give a quite jarring effect. For instance, see the position of the word "serves" in the two screenshots below. The creation of a scrollbar forces it to the next line, and that might be something you want to avoid.

The easiest way of preventing that effect is by giving the block overflow: scroll from the outset. Sure, the scrollbars may not be needed, but if they are there's no moving around of the content.

Block Formatting Context

[This is a practical tip that readers need to know about.]

An overflow value of anything but visible will create a new block formatting context. In old-fashioned float-based layouts it is sometimes necessary to create a block formatting context in order to contain a bunch of floats. (Just nod wisely for the moment; we'll get back to this.)

The easiest way of doing this is to add overflow: auto to the block, even though the block has no set height and the content will never actually overflow.

So if you're working in an old codebase and encounter a bunch of unexplained overflow: auto (or hidden) declarations on blocks that have height: auto, remember that they're meant to keep a float-based layout working properly. Only remove those overflows once you switched from floats to a modern layout system like grid or flex. If you do not intend to switch, leave the overflows in place as well.

Related declarations

In addition to the overflow declaration, there are also overflow-x and overflow-y declarations. They do what you'd expect them to do: they set the overflow on only the horizontal x-axis, or only the vertical y-axis. Otherwise they work exactly like overflow.

Also, iOS supports overflow-scrolling: touch, which enables momentum-based scrolling for overflowing elements. Without this declaration (or, more precisely, with the default overflow-scrolling: auto in place), overflowing elements scroll normally, i.e. they stop scrolling as soon as your finger leaves the screen. Android devices always use momentum-based scrolling, so they do not need this declaration. It doesn't hurt them, either, so it's perfectly safe to use. [TEST]

*** END EXCERPT ***

The ending is a bit abrupt, but I'm not entirely sure what to say next. Also, I'm not yet sure which chapter will come next, so I can't write a segue.

Anyway, please let me know what you think. I'm especially looking for feedback from JavaScript developers who are not all that good at CSS.



  • CSS for JavaScripters

ap

Bharat Biotech to spearhead CSIR-backed Covid-19 therapy efforts

 The Hyderabad-based Bharat Biotech International Limited (BBIL) would lead a project to develop human monoclonal antibodies as therapy for Covid-19 i




ap

Photovoltaic systems : design, performance and applications / Wassila Issaadi, and Salim Issaadi, editors




ap

Cryptography arithmetic: algorithms and hardware architectures / Amos R. Omondi

Online Resource




ap

Singularities of mappings: the local behaviour of smooth and complex analytic mappings / David Mond, Juan J. Nuño-Ballesteros

Online Resource




ap

Fourier restriction, decoupling, and applications / Ciprian Demeter

Dewey Library - QA403.5.D46 2020




ap

Stochastic processes with applications to finance.

Online Resource




ap

Applied stochastic analysis / Weinan E, Tiejun Li, Eric Vanden-Eijnden

Hayden Library - QA274.2.E23 2019




ap

Stochastic game strategies and their applications / by Bor-Sen Chen

Online Resource




ap

Complex analysis: theory and applications / Teodor Bulboacă, Santosh B. Joshi, and Pranay Goswami

Dewey Library - QA377.B85 2019




ap

The 3-D global spatial data model: principles and applications / Earl F. Burkholder

Online Resource




ap

Nonsmooth Lyapunov analysis in finite and infinite dimensions Yury Orlov

Online Resource




ap

System dynamics: theory and applications / Brian Dangerfield, editor

Online Resource




ap

Algebraic graph theory: morphisms, monoids, and matrices / Ulrich Knauer and Kolja Knauer

Dewey Library - QA166.K53 2019




ap

Fuzzy hypergraphs and related extensions Muhammad Akram, Anam Luqman

Online Resource




ap

Numerical computations: theory and algorithms: Third International Conference, NUMTA 2019, Crotone, Italy, June 15-21, 2019, Revised selected papers. / edited by Yaroslav D. Sergeyev, Dmitri E. Kvasov

Online Resource




ap

Continuous semigroups of holomorphic self-maps of the unit disc Filippo Bracci, Manuel D. Contreras, Santiago Díaz-Madrigal

Online Resource




ap

Continuous and discontinuous piecewise-smooth one-dimensional maps: invariant sets and bifurcation structures / Viktor Avrutin (University of Stuttgart, Germany), Laura Gardini (University of Urbino, Italy), Irina Sushko (National Academy of Sciences of U

Dewey Library - QA614.8.A97 2019




ap

Numerical computations: third International Conference, NUMTA 2019, Crotone, Italy, June 15-21, 2019, Revised Selected Papers. / Yaroslav D. Sergeyev, Dmitri E. Kvasov (eds.)

Online Resource




ap

Mathematical modelling and scientific computing with applications: ICMMSC 2018, Indore, India, July 19-21 / Santanu Manna, Biswa Nath Datta, Sk. Safique Ahmad, editors

Online Resource




ap

The unravelers: mathematical snapshots / edited by JeanFrançois Dars, Annick Lesne, Anne Papillault ; translated by Vivienne Méla

Online Resource




ap

Game theory: an applied introduction / José Luis Ferreira

Dewey Library - QA269.F47 2020




ap

Approximation and modeling with B-splines / Klaus Höllig, Jörg Hörner

Online Resource




ap

Modulation spaces: with applications to pseudodifferential operators and nonlinear Schrödinger equations / Árpád Bényi, Kasso A. Okoudjou

Online Resource