ps Following Karachi strikes, Pakistan must take decisive steps to destroy terror infrastructure By timesofindia.indiatimes.com Published On :: Thu, 12 Jun 2014 00:12:02 IST Going by a letter written by Nawaz Sharif to Narendra Modi, that he was 'much satisfied' with their meeting in New Delhi, the two prime ministers have succeeded in striking up a working relationship. Full Article
ps [ASAP] Non-Periodic Epsilon-Near-Zero Metamaterials at Visible Wavelengths for Efficient Non-Resonant Optical Sensing By feedproxy.google.com Published On :: Fri, 01 May 2020 04:00:00 GMT Nano LettersDOI: 10.1021/acs.nanolett.0c01095 Full Article
ps Oceans : science and solutions for Australia / editor: Bruce Mapstone By prospero.murdoch.edu.au Published On :: Full Article
ps The dysfunctional library: challenges and solutions to workplace relationships / Jo Henry, Joe Eshleman, Richard Moniz By library.mit.edu Published On :: Sun, 26 Apr 2020 07:06:33 EDT Barker Library - Z682.H495 2018 Full Article
ps Magnetic microscopy of nanostructures / H. Hopster, H.P. Oepen (eds.) By prospero.murdoch.edu.au Published On :: Full Article
ps Telangana cops call for patience from workers By timesofindia.indiatimes.com Published On :: Fri, 08 May 2020 04:30:00 IST Cyberabad and Rachakonda police have appealed to migrant workers to remain patient and wait for their turn to go home. They even asked them to consider taking up available work in the city. Cyberabad commissioner V C Sajjanar conveyed that the government has made arrangements for safe travel of the migrant workers to different states. “But, as train services are very limited and the receiving state governments have to consent the movement, it will take time,” Sajjanar said. Full Article
ps HC raps Telangana govt over low Covid-19 tests By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 04:51:00 IST Taking a serious view of the government’s decision to conduct fewer Covid-19 tests, the Telangana high court on Friday wondered how it would get a true picture of the spread of the virus in the state. The court was also upset with the government for directing doctors not to collect blood samples from dead persons and not conduct Covid-19 tests on them. Full Article
ps T'gana: Dole slips out of tribal families’ fingers By timesofindia.indiatimes.com Published On :: Sat, 09 May 2020 04:33:00 IST The Aadhaar-based biometric system to authenticate the Aadhaar number at banks is proving to be an obstacle for the tribal families of Lingala and Amrabad mandals in Nagarkurnool district, as their fingerprints have faded due to years of toiling in the fields. Full Article
ps Cisco Press Offering Facebook Sweepstakes and Product Discounts for Cisco Live 2011 By www.ciscopress.com Published On :: Mon, 11 Jul 2011 00:00:00 GMT Event Plans Include Enter-To-Win Registration/Travel to Cisco Live 2012 and “Meet the Author Sessions" Full Article
ps Product :: Microsoft Office 2003 Killer Tips By www.peachpit.com Published On :: Fri, 30 Sep 2011 00:00:00 GMT Full Article
ps Product :: Microsoft Windows XP and Office Killer Tips Collection By www.peachpit.com Published On :: Wed, 07 Mar 2012 00:00:00 GMT Full Article
ps Biochar: a guide to analytical methods / Balwant Singh, Marta Camps-Arbestain and Johannes Lehmann, editors By library.mit.edu Published On :: Sun, 31 Mar 2019 06:20:03 EDT Hayden Library - TP331.B55 2017 Full Article
ps Metal soaps in art: conservation and research / Francesca Casadio, Katrien Keune, Petria Noble, Annelies Van Loon, Ella Hendriks, Silvia A. Centeno, Gillian Osmond, editors By library.mit.edu Published On :: Sun, 14 Apr 2019 06:20:30 EDT Online Resource Full Article
ps 2018 AIChE Spring Meeting & 14th Global Congress on Process Safety: 52nd Annual Loss Prevention Symposium (LPS) / American Institute of Chemical Engineers By library.mit.edu Published On :: Sun, 27 Oct 2019 06:20:31 EDT Online Resource Full Article
ps 2018 AIChE Spring Meeting & 14th Global Congress on Process Safety: 20th Process Plant Safety Symposium (PPSS) / American Institute of Chemical Engineers By library.mit.edu Published On :: Sun, 27 Oct 2019 06:20:31 EDT Online Resource Full Article
ps 2018 AIChE Spring Meeting & 14th Global Congress on Process Safety proceedings: 7th Process Safety Management Mentoring (PSMM) Forum / American Institute of Chemical Engineers By library.mit.edu Published On :: Sun, 27 Oct 2019 06:20:31 EDT Online Resource Full Article
ps 2018 AIChE Spring Meeting & 14th Global Congress on Process Safety: 33rd Center for Chemical Process Safety International Conference (CCPS) / American Institute of Chemical Engineers By library.mit.edu Published On :: Sun, 27 Oct 2019 06:20:31 EDT Online Resource Full Article
ps Raymond E. Brown and the Catholic biblical renewal / Donald Senior, CP ; foreword by Ronald D. Witherup, PSS By prospero.murdoch.edu.au Published On :: Senior, Donald, author Full Article
ps Visions of the Apocalypse : receptions of John's revelation in western imagination / Bruce Chilton By prospero.murdoch.edu.au Published On :: Chilton, Bruce Full Article
ps Jesus and the politics of mammon / Hollis Phelps By prospero.murdoch.edu.au Published On :: Phelps, Hollis, author Full Article
ps Open and Toroidal Electrophoresis: Ultra-High Separation Efficiencies in Capillaries, Microchips and Slabs By www.wiley.com Published On :: 2020-04-06T04:00:00Z Presents the theory and applications of Toroidal Capillary, Microchip, and Slab Electrophoresis to analytical chemists across a range of disciplinesWritten by one of the developers of Toroidal Capillary Electrophoresis (TCE), this book is the first to present this novel analytical technique, in detail, to the field of analytical chemistry.The exact expressions of separation efficiency, resolution, peak capacity, and many other performance indicators Read More... Full Article
ps Correction: Insects (Thrips hawaiiensis (Morgan)) change the stereochemical configuration of 1-phenylethanol emitted from tea (Camellia sinensis) flowers By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17058-17060DOI: 10.1039/D0RA90047H, Correction Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Ying Zhou, Lanting Zeng, Yinyin Liao, Fang Dong, Qiyuan Peng, Jianlong Li, Jinchi Tang, Naoharu Watanabe, Ziyin YangThe content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ps One-pot oxime ligation from peptides bearing thiazolidine and aminooxyacetyl groups By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17681-17685DOI: 10.1039/D0RA03235B, Paper Open Access   This article is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported Licence.Stéphane Duflocq, Jingjing Zhou, Florent Huguenot, Michel Vidal, Wang-Qing LiuPd(II), acidic hydrolysis and iodine lead to one-pot oxime ligation from peptides bearing thiazolidine and aminooxyacetyl groups.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ps Work function modification of PEDOT:PSS by mixing with barium acetylacetonate By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17673-17680DOI: 10.1039/D0RA02575E, Paper Open Access   This article is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported Licence.K. L. Woon, W. S. Wong, N. Chanlek, H. Nakajima, S. Tunmee, V. S. Lee, A. Ariffin, P. SongsiriritthigulModification of poly(3,4-ethylenedioxythiophene)polystyrene sulfonate as electron injection layer.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ps A poly(allylamine hydrochloride)/poly(styrene sulfonate) microcapsule-coated cotton fabric for stimulus-responsive textiles By feeds.rsc.org Published On :: RSC Adv., 2020, 10,17731-17738DOI: 10.1039/D0RA02474K, Paper Open Access   This article is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported Licence.Zhiqi Zhao, Qiujin Li, Jixian Gong, Zheng Li, Jianfei ZhangThis study reports a stimulus-responsive fabric incorporating a combination of microcapsules, containing polyelectrolytes poly(allylamine hydrochloride) (PAH) and poly(styrene sulfonate) sodium salt (PSS), formed via a layer-by-layer (LBL) approach.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
ps CSS pseudo-element Solar System By nicolasgallagher.com Published On :: Mon, 07 Jun 2010 17:00:00 -0700 This is a remix of another author’s idea of using CSS to make a classic model of our solar system. Here, I’ve relied on CSS pseudo-elements and generated content to render scale models of the solar system from simple markup of the raw information. There are three demos for this experiment, which is based on Alex Giron’s original Our Solar System in CSS3. Basic demo: Reworking of original experiment Advanced demo: Scale model of the Solar System Advanced demo (keyboard support): Scale model of the Solar System The basic demo uses only CSS and simple, semantic HTML to relatively faithfully reproduce Alex’s original result. The advanced demo is a rough scale model of the Solar System. It uses the same HTML as the “basic demo” but makes extensive use of CSS pseudo-elements, generated content, and various bits of CSS3. The advanced demo (keyboard support) is an attempt to provide keyboard support by introducing slight modifications to the HTML. I’ve commented out the animations in this version of the demo. Why rework the original experiment? I was curious to see if the same result could be achieved with simpler HTML, by relying on some newer CSS features. I experimented a bit further with generated content, shadows, and the way the layout of the solar system is implemented. Doing this exposed me to some of the different ways modern browsers are implementing CSS3. I’ve described some of those differences and bugs below. A scale model of the solar system The main demo is a scale model of the solar system. It uses 3 different scales: one for the object diameters; one for the distance of the planets from the sun; and one for the orbital period of each planet. Semantic HTML and Microdata The HTML is a list where each list item contains a title and description. I’ve included some HTML Microdata to provide hooks for generated content. <li id="earth" itemscope> <h2 itemprop="object">Earth <dl> <dt>Description</dt> <dd itemprop="description">Earth is an ocean planet. Our home world's abundance of water - and life - makes it unique in our solar system. Other planets, plus a few moons, have ice, atmospheres, seasons and even weather, but only on Earth does the whole complicated mix come together in a way that encourages life - and lots of it.</dd> <dt>Diameter</dt> <dd itemprop="diameter">12,755 <abbr title="kilometers">km</abbr></dd> <dt>Distance from sun</dt> <dd itemprop="distance">150×10<sup>6</sup> <abbr title="kilometers">km</abbr></dd> <dt>Orbital period</dt> <dd itemprop="orbit">365<abbr title="days">d</abbr></dd> </dl> </li> CSS pseudo-elements and generated content Pseudo-elements are used to produce the planets, Saturn’s ring, the planet names, and to add the scale information. Given that the scales only make sense when CSS is loaded it isn’t appropriate to have the scales described in the HTML. Both demos use the same HTML but only one of them is a rough scale model. Therefore, in the scale model demo I’ve used generated content to present the ratios and append extra information to the headings. header h1:after {content:": A scale model";} header h2:after {content:"Planet diameters 1px : 1,220 km / Distance from sun 1px : 7,125,000 km / Orbital period 1s : 4d";} #earth dd[itemprop=diameter]:after {content:" (5px) / ";} #earth dd[itemprop=distance]:after {content:" (22px) / ";} #earth dd[itemprop=orbit]:after {content:" (91s)";} Even more complex 3D presentations are likely to be possible using webkit-perspective and other 3D transforms. Keyboard support With a little modification it is possible to provide some form of keyboard support so that the additional information and highlighting can be viewed without using a mouse. Doing so requires adding block-level anchors (allowed in HTML5) and modifying some of the CSS selectors. Modern browser CSS3 inconsistencies This experiment only works adequately in modern browsers such as Safari 4+, Chrome 4+, Firefox 3.6+ and Opera 10.5+. Even among the current crop of modern browsers, there are bugs and varying levels of support for different CSS properties and values. In particular, webkit’s box-shadow implementation has issues. There are a few other unusual :hover bugs in Opera 10.5 (most obvious in the basic demo). It should also be noted that the :hover area remains square in all modern browsers even when you apply a border-radius to the element. Border radius There are also a few other peculiarities around percentage units for border radius. Of the modern browsers, a square object with a border-radius of 50% will only produce a circle in Safari 5, Chrome 5, and Firefox 3.6. Safari 4 doesn’t appear to support percentage units for border radius at all (which is why the CSS in the demos explicitly sets a -webkit-border-radius value for each object). Safari 5 and Chrome 5 do support percentage units for this property. However, Chrome 5 has difficulty rendering a 1px wide border on a large circle. Most of the border simply isn’t rendered. In Opera 10.5, if you set border-radius to 50% you don’t always get a circle, so I have had to redeclare the border-radius for each object in pixel units. Opera 10.5’s incorrect rendering of border-radius:50% It appears that this is one aspect of Opera’s non-prefixed border-radius implementation that is incorrect and in need of fixing. Box shadow Safari 4’s inferior box-shadow implementation means that inset shadows are not rendered on the planet bodies. In addition, the second box-shadow applied to Saturn (used to separate the planet from its ring) is completely missing in Safari 4 as it does not support a spread radius value. Safari 5 and Chrome 5 are better but still problematic. The second box-shadow is not perfectly round as the box-shadow seems to use the pseudo-element’s computed border-radius. Furthermore, Chrome 5 on Windows does not properly support inset box-shadow meaning that the shadow ignores the border-radius declaration and appears as a protruding square. Safari 5 and Chrome 5 make different mistakes in their rendering of this box-shadow The use of box-shadow to separate Saturn from the ring isn’t strictly necessary. You can create the separated ring using a border but box-shadow cannot be applied in a way that casts it over a border. Another alternative would be to add a black border around the planet to give the illusion of space between itself and the ring, but all browsers display a few pixels of unwanted background colour all along the outer edge of the rounded border. I wanted the ring to share the appearance of a shadow being cast on it. Opera 10.5 and Firefox 3.6 get it right. Both webkit browsers get it wrong. Full Article
ps An introduction to CSS pseudo-element hacks By nicolasgallagher.com Published On :: Thu, 13 Oct 2011 17:00:00 -0700 CSS is a versatile style language that is most frequently used to control the look and formatting of an HTML document based on information in the document tree. But there are some common publishing effects – such as formatting the first line of a paragraph – that would not be possible if you were only able to style elements based on this information. Fortunately, CSS has pseudo-elements and pseudo-classes. As their names imply, they are not part of the DOM in the way that ‘real’ HTML elements and classes are. Instead, they are CSS abstractions that provide additional, and otherwise inaccessible, information about the document. This article will discuss the CSS pseudo-elements that are part of CSS 2.1 – :first-letter, :first-line, :before, and :after – and how the :before and :after pseudo-elements can be exploited to create some interesting effects, without compromising the simplicity of your HTML. But first, let’s look at each type of pseudo-element and how to use them in their basic form. The :first-line and :first-letter pseudo-elements The :first-line pseudo-element lets you apply styles to the first formatted line of a block container element (i.e., elements with their display property set to block, inline-block, list-item, table-caption, or table-cell). For example: p:first-line { font-weight: bold; } …will change the first line of every paragraph to bold. The :first-line pseudo-element can be treated as if it were an extra HTML inline element wrapping only the first line of text in the paragraph. The :first-letter pseudo-element lets you apply styles to the first letter (and any preceding punctuation) of the first formatted line of a block container element. No other inline content (e.g. an image) can appear before the text. For example: p:first-letter { float: left; font-size: 200%; } …will produce a basic ‘drop cap’ effect. The first letter of every paragraph will be floated left, and twice as large as the other letters in the paragraph. The :first-letter pseudo-element can be treated as if it were an extra HTML inline element wrapping only the first letter of text in the paragraph. The :first-line and :first-letter pseudo-elements can only be attached to block container elements, but the first formatted line can be contained within any block-level descendant (e.g., elements with their display property set to block or list-item) in the same flow (i.e., not floated or positioned). For example, the following HTML fragment and CSS: <div><p>An example of the first line of text being within a descendant element</p></div> div:first-line { font-weight: bold; } …would still result in a bold first line of text, because the paragraph’s text is the first formatted line of the div. The :before and :after pseudo-elements The :before and :after pseudo-elements are used to insert generated content before or after an element’s content. They can be treated as if they were extra HTML inline elements inserted just before and after the content of their associated element. Generated content is specified using the content property which, in CSS 2.1, can only be used in conjunction with the :before and :after pseudo-elements. Furthermore, you must declare the content property in order to generate the :before and :after pseudo-elements. The content property can take string, url(), attr(), counter() and counters() values. The url() value is used to insert an image. The attr() function returns as a string the value of the specified attribute for the associated element. The counter() and counters() functions can be used to display the value of any CSS counters. For example, the following HTML fragment and CSS: <a href="http://wikipedia.org">Wikipedia</a> a:after { content: " (" attr(href) ")"; } …would display the value of the href attribute after a link’s content, resulting in the following anchor text for the example above: Wikipedia (http://wikipedia.org). This can be a helpful way to display the destination of specific links in printed web documents. Keep in mind that CSS is meant for adding presentation and not content. Therefore, the content property should be used with caution. It’s also worth noting that the :first-letter and :first-line pseudo-elements apply to the first letter and first line of an element including any generated content inserted using the :before and :after pseudo-elements. Browser support for pseudo-elements The :first-letter and :first-line pseudo-elements were introduced in CSS1 and there is wide basic support for them. However, IE 6 and IE 7 have particularly buggy implementations; even modern browsers are not entirely consistent in the way that they handle the :first-line and :first-letter pseudo-elements (example bugs). The :before and :after pseudo-elements were introduced in the CSS 2.1 specification and are fully implemented in Firefox 3.5+, IE 8+, Safari 3+, Google Chrome, and Opera. Modern versions of Firefox even support CSS transitions and animations applied to pseudo-elements. However, legacy browsers like IE 6 and IE 7 do not support the :before and :after pseudo-elements at all. For more detailed information on pseudo-element browser support, browser bugs, and workarounds, have a look at Sitepoint’s reference and this article on IE 6/7 issues. In most cases, the :before and :after pseudo-elements can be used as part of a ‘progressive enhancement’ approach to design and development, because IE 6 and IE 7 will simply ignore them altogether. Alternatively, Modernizr now includes a robust feature test for generated content, providing one way to specify fallbacks or enhancements depending on browser support. The important thing is to remember to check what happens in browsers where support is missing. Alternative ways to use pseudo-elements Let’s take a look at how the :before and :after pseudo-elements can be used as the basis for some interesting effects. Most of the time, this involves generating empty :before and :after pseudo-elements by declaring an empty string as the value of the content property. They can then be manipulated as if they were empty inline HTML elements, keeping your HTML clean and giving you full control of certain effects from within CSS style sheets. Simple visual enhancements, like speech bubbles and folded corners, can even be created without the need for images. This relies on the fact that you can create simple shapes using CSS. Several types of ‘CSS polygons’ can be created as a result of browsers rendering borders at an angle when they meet. This can be exploited to create triangles. For example, the following HTML fragment and CSS: <div class="triangle"></div> .triangle { width: 0; height: 0; border-width: 20px; border-style: solid; border-color: red transparent transparent; } …will create a downward pointing, red triangle. By varying the width, height, border-width, border-style, and border-color values you can produce different shapes and control their orientation and colour. For more information, be sure to read Jon Rogan’s summary of the technique. The more advanced pseudo-element hacks use the extra background canvas afforded by each :before and :after pseudo-element. This can help you crop background images, control the opacity of background images, and ‘fake’ multiple backgrounds and borders in browsers without support for CSS3 multiple backgrounds (e.g., IE 8). Taken to ludicrous extremes, you can even build a whole CSS icon set. To start with, let’s look at some simple effects that can be created without images or presentational HTML. Creating CSS speech bubbles In this example, a quote is styled to look like a speech bubble, using CSS. This is done by creating a triangle using a pseudo-element, and then absolutely positioning it in the desired place. By adding position:relative to the CSS styles for the HTML element, you can absolutely position the :after pseudo-element relative to its associated element. <div class="quote">[Quoted text]</div> .quote { position: relative; width: 300px; padding: 15px 25px 20px; margin: 20px auto; font: italic 26px/1.4 Georgia, serif; color: #fff; background: #245991; } .quote:after { content: ""; position: absolute; top: 100%; right: 25px; border-width: 30px 30px 0 0; border-style: solid; border-color: #245991 transparent; } There’s nothing stopping you from adding some CSS3 to further enhance the effect for capable browsers. This could be adding rounded corners to the box or applying a skew transform to the triangle itself. Fiddle with the code in this example. Creating CSS ‘ribbons’ Using the same principle, you can create a CSS ribbon effect without images or extra HTML. This time the effect uses 2 pseudo-element triangles. The HTML fragment is still very simple. <div class="container"> <h1>Simple CSS ribbon</h1> <p>[other content]</p> </div> You then need to use negative margins to pull the h1 outwards so that it extends over the padding and beyond the boundaries of the container div. The HTML fragment above can be styled using the following CSS: .container { width: 400px; padding: 20px; margin: 20px auto; background: #fff; } .container h1 { position: relative; padding: 10px 30px; margin: 0 -30px 20px; font-size: 20px; line-height: 24px; font-weight: bold; color: #fff; background: #87A800; } From here, you only need to add the pseudo-element triangles to create the ‘wrapping’ appearance associated with ribbons. The :before and :after pseudo-elements share many styles, so you can simplify the code by only overriding the styles that differ between the two. In this case, the triangle created with the :after pseudo-element must appear on the opposite side of the heading, and will be a mirror image of the other triangle. So you need to override the shared styles that control its position and orientation. .container h1:before, .container h1:after { content: ""; position: absolute; top: 100%; left: 0; border-width: 0 10px 10px 0; border-style: solid; border-color: transparent #647D01; } /* override shared styles */ .container h1:after { left: auto; right: 0; border-width: 0 0 10px 10px; } Fiddle with the code in this example. Creating CSS folded corners The final example of this form of pseudo-element hack creates a simple CSS folded-corner effect. A pseudo-element’s border properties are set to produce two differently-coloured touching triangles. One triangle is a slightly darker or lighter shade of the box’s background colour. The other triangle matches the background colour of the box’s parent (e.g. white). The pseudo-element is then positioned in the top right corner of its associated element to complete the effect. .note { position: relative; padding: 20px; margin: 2em 0; color: #fff; background: #97C02F; } .note:before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 16px 16px 0; border-style: solid; border-color: #658E15 #fff; } Varying the size of the borders will vary the size and angle of the folded-corner. Fiddle with the code in this example. Pseudo background-crop Although creating polygons with pseudo-elements can produce some popular effects without images, the possibilities are inherently limited. But this is only one type of :before and :after pseudo-element hack. Treated as extra background canvases, they can be used to fill some gaps in existing browser support for CSS features. One of those features is the cropping of background images. In the future, it’s likely that you’ll be able to crop background images using fragment identifiers, as is proposed in the CSS Image Values Module Level 3 draft. But at the moment no browsers support the use of fragment identifiers with bitmap images. Until they do, you can make use of this CSS 2.1 hack to emulate background image cropping in modern browsers. The principle behind a ‘pseudo background-crop‘ is to apply a background-image to a pseudo-element rather than directly to an element in the HTML document. One of the applications of this technique is to crop icons that are part of a sprite. For example, a web app might allow users to ‘save’, ‘edit’, or ‘delete’ an item. The HTML involved might look something like this: <ul class="actions"> <li class="save"><a href="#">Save</a></li> <li class="edit"><a href="#">Edit</a></li> <li class="delete"><a href="#">Delete</a></li> </ul> To enhance the appearance of these ‘action’ links, it is common to see icons sitting alongside the anchor text. For argument’s sake, let’s say that the relevant icons are part of a sprite that is organised using a 16px × 16px grid. The :before pseudo-element – with dimensions that match the sprite’s grid unit – can be used to crop and display each icon. The sprite is referenced as a background image and the background-position property is used to control the precise positioning of each icon to be shown. .actions a:before { content: ""; float: left; width: 16px; height: 16px; margin: 0 5px 0 0; background: url(sprite.png); } .save a:before { background-position: 0 0; } .edit a:before { background-position: -16px 0; } .delete a:before { background-position: -32px 0; } Using pseudo-elements like this helps to avoid the need to either add liberal amounts of white space to sprites or use empty HTML elements to do the cropping. Fiddle with the code in this example. Pseudo background-position The CSS 2.1 specification limits the values of background-position to horizontal and vertical offsets from the top-left corner of an element. The CSS Backgrounds and Borders Module Level 3 working draft includes an improvement to the background-position property to allow offsets to be set from any side. However, Opera 11+ is currently the only browser to have implemented it. But by using pseudo-elements, it’s possible to emulate positioning a background image from any side in any browser with adequate CSS 2.1 support –’pseudo background-position‘. Once a pseudo-element is created, it must be absolutely positioned in front of the associated element’s background but behind its content, so as not to prevent users from being able to select text or click on links. This is done by setting a positive z-index on the element and a negative z-index on the pseudo-element. #content { position: relative; z-index: 1; } #content:before { content: ""; position: absolute; z-index: -1; } Now the pseudo-element can be sized and positioned to sit over any area within (or beyond) the element itself, without affecting its content. This is achieved by using any combination of values for the top, right, bottom, and left positional offsets, as well as the width, and height properties. It is the key to their flexibility. In this example, a 200px × 300px background image is applied to the pseudo-element, which is also given dimensions that match those of the image. Since the pseudo-element is absolutely positioned, it can be offset from the bottom and right of the associated HTML element. #content { position: relative; z-index: 1; } #content:before { content: ""; position: absolute; z-index: -1; bottom: 10px; right: 10px; width: 200px; height: 300px; background: url(image.jpg); } Many other hacks and effects are possible using the :before and :after pseudo-elements, especially when combined with CSS3. Hopefully this introduction to pseudo-elements, and how they can be exploited, will have inspired you to experiment with them in your work. The future of pseudo-elements The way that pseudo-elements are used will continue to change as CSS does. Some new applications will emerge, and existing ones will fade away as browser implementation of ‘CSS3 modules’ continues to improve. Generated content and pseudo-elements themselves are likely to undergo changes too. The CSS3 Generated and Replaced Content Module introduced a two-colon format for pseudo-elements (i.e., ::before) to help distinguish between pseudo-classes and pseudo-elements. But for compatibility with previous levels of CSS, pseudo-elements do not require two colons. Most modern browsers support both formats, but it is not supported by IE 8 and the single-colon format ensures greater backwards compatibility. The proposed extensions to pseudo-elements included the addition of nested pseudo-elements (::before::before), multiple pseudo-elements (::after(2)), wrapping pseudo-elements (::outside), and the ability to insert pseudo-elements into later parts of the document (::alternate). However, the CSS3 Generated and Replaced Content Module is undergoing significant changes. This article was originally published in .net magazine in April 2011 Related resources Interactive examples of the code throughout this article CSS generated content techniques Automatic numbering with CSS counters CSS image replacement using pseudo-elements Multiple backgrounds and borders with CSS 2.1 CSS background image hacks A whole bunch of amazing stuff pseudo-elements can do Full Article
ps Making SVG icon libraries for React apps By nicolasgallagher.com Published On :: Thu, 01 Feb 2018 16:00:00 -0800 Using SVG is currently the best way to create icon libraries for apps. Icons built with SVG are scalable and adjustable, but also discrete, which allows them to be incrementally loaded and updated. In contrast, icons built as fonts cannot be incrementally loaded or updated. This alone makes SVG icons the better choice for high-performance apps that rely on code-splitting and incremental deploys. This post describes how to make a package of React components from a library of SVG icons. Although I’m focusing on React, making any other type of package is also possible. At Twitter I used the approach described here to publish the company’s SVG icon library in several different formats: optimized SVGs, plain JavaScript modules, React DOM components, and React Native components. Using the icons The end result is a JavaScript package that can be installed and used like any other JavaScript package. yarnpkg add @acme/react-icons Each icon is available as an individually exported React component. import IconCamera from '@acme/react-icons/camera'; This allows your module bundler to package only the icons that are needed, and icons can be efficiently split across chunks when using code-splitting. This is a significant advantage over icon libraries that require fonts and bundle all icons into a single component. // entire icon library is bundled with your app import Icon from '@acme/react-icons'; const IconCamera = <Icon name='camera' />; Each icon is straightforward to customize (e.g., color and dimensions) on a per-use basis. import IconCamera from '@twitter/react-icons/camera'; const Icon = ( <IconCamera style={{ color: 'white', height: '2em' }} /> ); Although the icons render to SVG, this is an implementation detail that isn’t exposed to users of the components. Creating components Each React component renders an inline SVG, using path and dimensions data extracted from the SVG source files. A helper function called createIconComponent means that only a few lines of boilerplate are needed to create a component from SVG data. import createIconComponent from './utils/createIconComponent'; import React from 'react'; const IconCamera = createIconComponent({ content: <g><path d='...'></g>, height: 24, width: 24 }); IconCamera.displayName = 'IconCamera'; export default IconCamera; This is an example of what the createIconComponent function looks like when building components for a web app like Twitter Lite, which is built with React Native for Web. // createIconComponent.js import { createElement, StyleSheet } from 'react-native-web'; import React from 'react'; const createIconComponent = ({ content, height, width }) => (initialProps) => { const props = { ...initialProps, style: StyleSheet.compose(styles.root, initialProps.style), viewBox: `0 0 ${width} ${height}` }; return createElement('svg', props, content); }; const styles = StyleSheet.create({ root: { display: 'inline-block', fill: 'currentcolor', height: '1.25em', maxWidth: '100%', position: 'relative', userSelect: 'none', textAlignVertical: 'text-bottom' } }); Setting the fill style to currentcolor allows you to control the color of the SVG using the color style property instead. All that’s left is to use scripts to process the SVGs and generate each React component. Creating icon packages A complete example of one way to do this can be found in the icon-builder-example repository on GitHub. The project structure of the example tool looks like this. . ├── README.md ├── package.json ├── scripts/ ├── build.js ├── createReactPackage.js └── svgOptimize.js └── src/ ├── alerts.svg ├── camera.svg ├── circle.svg └── ... The build script uses SVGO to optimize the SVGs, extract SVG path data, and extract metadata. The example packager for React then uses templates to create a package.json and the React icon components shown earlier. import createIconComponent from './utils/createIconComponent'; import React from 'react'; const ${componentName} = createIconComponent({ height: ${height}, width: ${width}, content: <g>${paths}</g> }); ${componentName}.displayName = '${componentName}'; export default ${componentName}; Additional packagers can be included to build other package types from the same SVG source. When the underlying icon library changes, it only takes a couple of commands to rebuild hundreds of icons and publish new versions of each package. Full Article
ps IndiGo helps 227 Kenyans go home By www.thehindu.com Published On :: Sat, 09 May 2020 01:52:35 +0530 Airline brings them to Mumbai airport Full Article Other States
ps Thriving under stress [electronic resource] : harnessing demands in the workplace / Thomas W. Britt, Ph.D., Professor of Psychology, Clemson University, Steve M. Jex, Ph.D., Professor of Psychology, Bowling Green State University By prospero.murdoch.edu.au Published On :: Britt, Thomas W., 1966- Full Article
ps Tibco spotfire [electronic resource] : a comprehensive primer : create innovative enterprise-class informatics solutions using TIBCO Spotfire / Michael Phillips By prospero.murdoch.edu.au Published On :: Phillips, Michael, author Full Article
ps Troubleshooting system center configuration manager [electronic resource] : troubleshoot all the aspects of your Configuration Manager installation, from basic easy checks to the advanced log files and serious issues / Peter Egerton, Gerry Hampson By prospero.murdoch.edu.au Published On :: Egerton, Peter, author Full Article
ps Zeitmanagement mit Microsoft Office Outlook [electronic resource] : die Zeit im Griff mit der meistgenutzten Bürosoftware - Strategien, Tipps und Techniken (Versionen 2003 - 2010) / Lothar Seiwert By prospero.murdoch.edu.au Published On :: Seiwert, Lothar Full Article
ps Zeitmanagement mit Microsoft Outlook [electronic resource] : die Zeit im Griff mit der meist genutzten Bürosoftware : Strategien, Tipps und Techniken (Versionen 2003-2013) / Lothar Seiwert, Holger Wöltje, Christian Obermayr By prospero.murdoch.edu.au Published On :: Seiwert, Lothar Full Article
ps Zeitmanagement mit Outlook [electronic resource] : die zeit im griff mit Microsoft Outlook 2003-2013 : strategien, tipps und techniken / Lothar Seiwert, Holger Wöltje, Christian Obermayr By prospero.murdoch.edu.au Published On :: Seiwert, Lothar, author Full Article
ps Zip! tips [electronic resource] : ZIPs for Outlook, iPad, iPhone, Gmail, Google, and much, much more! / Mike Song ; edited by Rachel Metzger By prospero.murdoch.edu.au Published On :: Song, Mike, 1964- Full Article
ps JAMA Psychiatry : Association of Safety Planning Intervention With Subsequent Suicidal Behavior Among ER-Treated Suicidal Patients By traffic.libsyn.com Published On :: Wed, 11 Jul 2018 15:00:00 +0000 Interview with Barbara H. Stanley, author of Comparison of the Safety Planning Intervention With Follow-up vs Usual Care of Suicidal Patients Treated in the Emergency Department Full Article
ps JAMA Cardiology : Aortic Vascular Inflammation and Coronary Artery Disease in Psoriasis By traffic.libsyn.com Published On :: Wed, 12 Sep 2018 15:00:00 +0000 Interview with Nehal N. Mehta, MD, MSCE, author of Association Between Aortic Vascular Inflammation and Coronary Artery Plaque Characteristics in Psoriasis, and Jagat Narula, MD, PhD, author of Inflammation, Superadded Inflammation, and Out-of-Proportion Inflammation in Atherosclerosis Full Article
ps JAMA Psychiatry : Association of Cannabinoid Administration With Experimental Pain in Healthy Adults By traffic.libsyn.com Published On :: Wed, 19 Sep 2018 15:00:00 +0000 Interview with Emily B. Ansell, PhD, and Martin J. De Vita, MS, authors of Association of Cannabinoid Administration With Experimental Pain in Healthy Adults: A Systematic Review and Meta-analysis Full Article
ps JAMA Dermatology : Risk of Melanoma in Moderately Dysplastic Nevi Excisionally Biopsied but With Positive Margins By traffic.libsyn.com Published On :: Wed, 10 Oct 2018 15:00:00 +0000 Interview with Caroline C. Kim, MD, author of Risk of Subsequent Cutaneous Melanoma in Moderately Dysplastic Nevi Excisionally Biopsied but With Positive Histologic Margins Full Article
ps JAMA Psychiatry : Association of Autism Spectrum Disorder with Prenatal Exposure to Medication Affecting Neurotransmitter Systems By traffic.libsyn.com Published On :: Wed, 31 Oct 2018 15:00:00 +0000 Interview with Magdalena Janecka, Ph.D., author of Association of Autism Spectrum Disorder With Prenatal Exposure to Medication Affecting Neurotransmitter Systems Full Article
ps JAMA Psychiatry : Testosterone Treatment and Alleviation of Depression in Men By traffic.libsyn.com Published On :: Wed, 14 Nov 2018 16:00:00 +0000 Interview with Andreas Walther, PhD, author of Association of Testosterone Treatment With Alleviation of Depressive Symptoms in Men: A Systematic Review and Meta-analysis Full Article
ps JAMA Psychiatry : Real-time Monitoring of Motor Activity, Energy, Mood, and Sleep Associations in Bipolar Disorder By traffic.libsyn.com Published On :: Wed, 12 Dec 2018 16:00:00 +0000 Interview with Kathleen Merikangas, PhD, author of Real-time Mobile Monitoring of the Dynamic Associations Among Motor Activity, Energy, Mood, and Sleep in Adults With Bipolar Disorder Full Article
ps JAMA Psychiatry : Exploring Comorbidity Within Mental Disorders Among a Danish National Population By traffic.libsyn.com Published On :: Wed, 16 Jan 2019 16:00:00 +0000 Interview with John J. McGrath, PhD, MD, author of Exploring Comorbidity Within Mental Disorders Among a Danish National Population Full Article
ps JAMA Psychiatry : Effect of Augmenting Standard Care for Military Personnel With Brief Caring Text Messages for Suicide Prevention By traffic.libsyn.com Published On :: Wed, 13 Feb 2019 16:00:00 +0000 Interview with Amanda H. Kerbrat, MSW, author of Effect of Augmenting Standard Care for Military Personnel With Brief Caring Text Messages for Suicide Prevention: A Randomized Clinical Trial Full Article
ps JAMA Neurology : Morbidity and Outcomes of Subdural Grids vs Stereoelectroencephalography in Intractable Epilepsy By traffic.libsyn.com Published On :: Mon, 04 Mar 2019 16:00:00 +0000 Interview with Nitin Tandon, author of Analysis of Morbidity and Outcomes Associated With Use of Subdural Grids vs Stereoelectroencephalography in Patients With Intractable Epilepsy Full Article
ps JAMA Psychiatry : Association of Air Pollution Exposure With Psychotic Experiences During Adolescence By traffic.libsyn.com Published On :: Wed, 27 Mar 2019 15:00:00 +0000 Interview with Helen Fisher, Ph.D., author of Association of Air Pollution Exposure With Psychotic Experiences During Adolescence Full Article
ps JAMA Psychiatry : Effectiveness and Acceptability of CBT Formats in Adults With Depression By traffic.libsyn.com Published On :: Wed, 17 Apr 2019 15:00:00 +0000 Interview with Pim Cuijpers, PhD, author of Effectiveness and Acceptability of Cognitive Behavior Therapy Delivery Formats in Adults With Depression: A Network Meta-analysis Full Article
ps JAMA Psychiatry : Association of Increased Youth Suicide With 13 Reasons Why By traffic.libsyn.com Published On :: Wed, 29 May 2019 15:00:00 +0000 Interview with Thomas Niederkrotenthaler, MD, PhD, MMSc, author of Association of Increased Youth Suicides in the United States With the Release of 13 Reasons Why Full Article