king Goldman to combine investment banking and trading businesses - WSJ By www.thehindu.com Published On :: Mon, 17 Oct 2022 09:16:00 +0530 The report said that Goldman will combine its investment banking and trading businesses into one unit, while merging asset and wealth management into another Full Article Business
king Atmanirbharta in toy-making is no child’s play By www.thehindubusinessline.com Published On :: Mon, 05 Oct 2020 20:43:00 +0530 The PM’s call to become a world beater in toys has created a buzz around Gujarat’s clock town Morbi. But there’s the Chinese competition to deal with. Full Article India File
king India working to develop own pure-hydrogen based DRI tech for green-steel making By www.thehindubusinessline.com Published On :: Tue, 05 Mar 2024 18:41:06 +0530 The process will be unique to the country and the detailed project report so prepared “is under – scrutiny” across ministries, a senior government official aware of the discussions, told businessline. Full Article Science
king Debunking myths: How blue light really affects your sleep By www.thehindubusinessline.com Published On :: Wed, 21 Aug 2024 13:00:13 +0530 A comprehensive analysis of 73 studies involving over 113,000 participants found that using bright screens before bed delays sleep onset by less than three minutes on average. Full Article Science
king When the taxman comes knocking By www.thehindubusinessline.com Published On :: Sat, 09 Nov 2024 18:02:28 +0530 Here’s a lowdown on notices/ intimations from the I-T department and what they mean for taxpayers Full Article Portfolio
king Breaking the web forward By www.quirksmode.org Published On :: Thu, 12 Aug 2021 16:19:05 +0100 Safari is holding back the web. It is the new IE, after all. In contrast, Chrome is pushing the web forward so hard that it’s starting to break. Meanwhile web developers do nothing except moan and complain. The only thing left to do is to pick our poison. Safari is the new IE Recently there was yet another round of “Safari is the new IE” stories. Once Jeremy’s summary and a short discussion cleared my mind I finally figured out that Safari is not IE, and that Safari’s IE-or-not-IE is not the worst problem the web is facing. Perry Sun argues that for developers, Safari is crap and outdated, emulating the old IE of fifteen years ago in this respect. He also repeats the theory that Apple is deliberately starving Safari of features in order to protect the app store, and thus its bottom line. We’ll get back to that. The allegation that Safari is holding back web development by its lack of support for key features is not new, but it’s not true, either. Back fifteen years ago IE held back the web because web developers had to cater to its outdated technology stack. “Best viewed with IE” and all that. But do you ever see a “Best viewed with Safari” notice? No, you don’t. Another browser takes that special place in web developers’ hearts and minds. Chrome is the new IE, but in reverse Jorge Arango fears we’re going back to the bad old days with “Best viewed in Chrome.” Chris Krycho reinforces this by pointing out that, even though Chrome is not the standard, it’s treated as such by many web developers. “Best viewed in Chrome” squares very badly with “Safari is the new IE.” Safari’s sad state does not force web developers to restrict themselves to Safari-supported features, so it does not hold the same position as IE. So I propose to lay this tired old meme to rest. Safari is not the new IE. If anything it’s the new Netscape 4. Meanwhile it is Chrome that is the new IE, but in reverse. Break the web forward Back in the day, IE was accused of an embrace, extend, and extinguish strategy. After IE6 Microsoft did nothing for ages, assuming it had won the web. Thanks to web developers taking action in their own name for the first (and only) time, IE was updated once more and the web moved forward again. Google learned from Microsoft’s mistakes and follows a novel embrace, extend, and extinguish strategy by breaking the web and stomping on the bits. Who cares if it breaks as long as we go forward. And to hell with backward compatibility. Back in 2015 I proposed to stop pushing the web forward, and as expected the Chrome devrels were especially outraged at this idea. It never went anywhere. (Truth to tell: I hadn’t expected it to.) I still think we should stop pushing the web forward for a while until we figure out where we want to push the web forward to — but as long as Google is in charge that won’t happen. It will only get worse. On alert A blog storm broke out over the decision to remove alert(), confirm() and prompt(), first only the cross-origin variants, but eventually all of them. Jeremy and Chris Coyier already summarised the situation, while Rich Harris discusses the uses of the three ancient modals, especially when it comes to learning JavaScript. With all these articles already written I will only note that, if the three ancient modals are truly as horrendous a security issue as Google says they are it took everyone a bloody long time to figure that out. I mean, they turn 25 this year. Although it appears Firefox and Safari are on board with at least the cross-origin part of the proposal, there is no doubt that it’s Google that leads the charge. From Google’s perspective the ancient modals have one crucial flaw quite apart from their security model: they weren’t invented there. That’s why they have to be replaced by — I don’t know what, but it will likely be a very complicated API. Complex systems and arrogant priests rule the web Thus the new embrace, extend, and extinguish is breaking backward compatibility in order to make the web more complicated. Nolan Lawson puts it like this: we end up with convoluted specs like Service Worker that you need a PhD to understand, and yet we still don't have a working <dialog> element. In addition, Google can be pretty arrogant and condescending, as Chris Ferdinandi points out. The condescending “did you actually read it, it’s so clear” refrain is patronizing AF. It’s the equivalent of “just” or “simply” in developer documentation. I read it. I didn’t understand it. That’s why I asked someone whose literal job is communicating with developers about changes Chrome makes to the platform. This is not isolated to one developer at Chrome. The entire message thread where this change was surfaced is filled with folks begging Chrome not to move forward with this proposal because it will break all-the-things. If you write documentation or a technical article and nobody understands it, you’ve done a crappy job. I should know; I’ve been writing this stuff for twenty years. Extend, embrace, extinguish. And use lots of difficult words. Patience is a virtue As a reaction to web dev outcry Google temporarily halted the breaking of the web. That sounds great but really isn’t. It’s just a clever tactical move. I saw this tactic in action before. Back in early 2016 Google tried to break the de-facto standard for the mobile visual viewport that I worked very hard to establish. I wrote a piece that resonated with web developers, whose complaints made Google abandon the plan — temporarily. They tried again in late 2017, and I again wrote an article, but this time around nobody cared and the changes took effect and backward compatibility was broken. So the three ancient modals still have about 12 to 18 months to live. Somewhere in late 2022 to early 2023 Google will try again, web developers will be silent, and the modals will be gone. The pursuit of appiness But why is Google breaking the web forward at such a pace? And why is Apple holding it back? Safari is kept dumb to protect the app store and thus revenue. In contrast, the Chrome team is pushing very hard to port every single app functionality to the browser. Ages ago I argued we should give up on this, but of course no one listened. When performing Valley Kremlinology, it is useful to see Google policies as stemming from a conflict between internal pro-web and anti-web factions. We web developers mainly deal with the pro-web faction, the Chrome devrel and browser teams. On the other hand, the Android team is squarely in the anti-web camp. When seen in this light the pro-web camp’s insistence on copying everything appy makes excellent sense: if they didn’t Chrome would lag behind apps and the Android anti-web camp would gain too much power. While I prefer the pro-web over the anti-web camp, I would even more prefer the web not to be a pawn in an internal Google power struggle. But it has come to that, no doubt about it. Solutions? Is there any good solution? Not really. Jim Nielsen feels that part of the issue is the lack of representation of web developers in the standardization process. That sounds great but is proven not to work. Three years ago Fronteers and I attempted to get web developers represented and were met with absolute disinterest. Nobody else cared even one shit, and the initiative sank like a stone. So a hypothetical web dev representative in W3C is not going to work. Also, the organisational work would involve a lot of unpaid labour, and I, for one, am not willing to do it again. Neither is anyone else. So this is not the solution. And what about Firefox? Well, what about it? Ten years ago it made a disastrous mistake by ignoring the mobile web for way too long, then it attempted an arrogant and uninformed come-back with Firefox OS that failed, and its history from that point on is one long slide into obscurity. That’s what you get with shitty management. Pick your poison So Safari is trying to slow the web down. With Google’s move-fast-break-absofuckinglutely-everything axiom in mind, is Safari’s approach so bad? Regardless of where you feel the web should be on this spectrum between Google and Apple, there is a fundamental difference between the two. We have the tools and procedures to manage Safari’s disinterest. They’re essentially the same as the ones we deployed against Microsoft back in the day — though a fundamental difference is that Microsoft was willing to talk while Apple remains its old haughty self, and its “devrels” aren’t actually allowed to do devrelly things such as managing relations with web developers. (Don’t blame them, by the way. If something would ever change they’re going to be our most valuable internal allies — just as the IE team was back in the day.) On the other hand, we have no process for countering Google’s reverse embrace, extend, and extinguish strategy, since a section of web devs will be enthusiastic about whatever the newest API is. Also, Google devrels talk. And talk. And talk. And provide gigs of data that are hard to make sense of. And refer to their proprietary algorithms that “clearly” show X is in the best interest of the web — and don’t ask questions! And make everything so fucking complicated that we eventually give up and give in. So pick your poison. Shall we push the web forward until it’s broken, or shall we break it by inaction? What will it be? Privately, my money is on Google. So we should say goodbye to the old web while we still can. Full Article Web thinking
king Holiday bookings up this summer vacation, with some impact from upcoming Lok Sabha elections By www.thehindu.com Published On :: Thu, 28 Mar 2024 11:44:16 +0530 There is an increase of 30-40% in domestic travel, and 15% in international travel bookings Full Article Bengaluru
king A suitcase full of clouds | Stocking up on chubitchi brew and smoked pork in Iewduh, Shillong By www.thehindu.com Published On :: Fri, 12 Apr 2024 11:15:00 +0530 When a restaurant owner from Chennai made space in her suitcase for Khasi delicacies, smoked meats, and some local liquor Full Article Travel
king Here’s why private flights are taking off in India like never before By www.thehindu.com Published On :: Fri, 23 Aug 2024 17:24:22 +0530 Once the domain of politicians and Bollywood celebrities, private flights are catching the fancy of India’s ultra rich who prize their exclusivity and speed. How much will it cost you to hop aboard? Full Article Life & Style
king BJP leader dismisses reports linking him to cash seizure By www.thehindu.com Published On :: Mon, 28 Oct 2024 20:29:38 +0530 Full Article Puducherry
king Puducherry has submitted project report to Centre seeking nod for availing ₹4,750 crore loan from Asian Development Bank: CM By www.thehindu.com Published On :: Sat, 02 Nov 2024 00:04:29 +0530 Full Article Puducherry
king Traders protest seeking action against anti-social element for threatening Independent MLA in Puducherry By www.thehindu.com Published On :: Mon, 11 Nov 2024 20:31:56 +0530 Traders submit a memorandum to the Lieutenant Governor, Chief Minister and Director General of Police seeking stern action against Ramu, a resident of Thilaspet Full Article Puducherry
king How Upside-Down Models Revolutionized Architecture, Making Possible St. Paul’s Cathedral, Sagrada Família & More By www.openculture.com Published On :: Tue, 12 Nov 2024 09:00:49 +0000 For 142 years now, Sagrada Família has been growing toward the sky. Or at least that’s what it seems to be doing, as its ongoing construction realizes ever more fully a host of forms that look and feel not quite of this earth. It makes a kind of sense to learn that, in designing the […] Full Article Architecture History Physics
king Stanley Kubrick’s Annotated Copy of Stephen King’s The Shining By www.openculture.com Published On :: Tue, 12 Nov 2024 10:00:17 +0000 The web site Overlook Hotel has posted pictures of Stanley Kubrick’s personal copy of Stephen King’s novel The Shining. The book is filled with highlighted passages and largely illegible notes in the margin—tantalizing clues to Kubrick’s intentions for the movie. The site features a picture of the book’s careworn cover along with two spreads from the […] Full Article Books Film
king A metal–organic framework enhanced single network organohydrogel with superior low-temperature adaptability and UV-blocking capability towards human-motion sensing By pubs.rsc.org Published On :: J. Mater. Chem. C, 2024, Advance ArticleDOI: 10.1039/D4TC03148B, PaperYing Li, Zhongquan Yu, Jialuo Zhang, Enke Feng, Xiaoqin Li, Linan Cao, Zhiming Yang, Zhiqiang WuA UiO-66-NH2 nanoparticle reinforced organohydrogel with anti-freezing and UV-blocking properties was synthesized for sensing complex human movements and transmitting different messages even at subzero temperature.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
king Spain is seeking a paradigm shift By www.thehindubusinessline.com Published On :: Mon, 16 Nov 2015 12:58:17 +0530 The country that disappointed investors in renewable energy is the focus of business initiatives that advocate green growth Full Article Solutions & Co
king Electricity powerhouse in the making By www.thehindubusinessline.com Published On :: Mon, 16 Nov 2015 13:27:51 +0530 Germany gives reassurances: The transition to green energy is achievable albeit expensive and demanding. Full Article Solutions & Co
king Renault is banking on zero discharge in Tangiers By www.thehindubusinessline.com Published On :: Mon, 16 Nov 2015 14:24:13 +0530 Full Article Solutions & Co
king I write to rage, and rescue ourselves from collective amnesia, says Harsh Mander, speaking on India’s Covid experience By www.thehindu.com Published On :: Fri, 28 Jul 2023 17:00:00 +0530 Harsh Mander’s new book demands accountability from the state for its handling of the pandemic’s impact Full Article Books
king Looking beyond the Sen-Bhagwati ‘debate’ By www.thehindubusinessline.com Published On :: Fri, 26 Jul 2013 17:15:04 +0530 Full Article B Baskar
king Ownership of parking space By www.thehindu.com Published On :: Fri, 08 Jul 2016 14:05:00 +0530 Your property-related legal queries answered by S.C. RAGHURAM, Partner, RANK Associates, a Chennai-based law firm Full Article Property Plus
king Making a settlement deed By www.thehindu.com Published On :: Fri, 15 Jul 2016 14:49:54 +0530 Your property-related legal queries answered by S.C. RAGHURAM, Partner, RANK Associates, a Chennai-based law firm Full Article Property Plus
king Making storage look good By www.thehindu.com Published On :: Fri, 15 Jul 2016 14:52:37 +0530 Use space wisely with these décor elements Full Article Property Plus
king Banking on the GST By www.thehindu.com Published On :: Fri, 12 Aug 2016 16:58:52 +0530 An overview of the recently passed Goods and Services Tax (GST) Bill Full Article Property Plus
king Refund of booking amount By www.thehindu.com Published On :: Fri, 26 Aug 2016 14:36:09 +0530 Full Article Property Plus
king Refund of booking amount By www.thehindu.com Published On :: Fri, 21 Oct 2016 13:13:04 +0530 Your property-related legal queries answered by <span class="ng_byline_name">S.C. RAGHURAM,</span> Partner, RANK Associates, a Chennai-based law firm Full Article Property Plus
king Breaking Out of the Box By Published On :: 2021-12-09T15:00:00+00:00 CSS is about styling boxes. In fact, the whole web is made of boxes, from the browser viewport to elements on a page. But every once in a while a new feature comes along that makes us rethink our design approach. Round displays, for example, make it fun to play with circular clip areas. Mobile screen notches and virtual keyboards offer challenges to best organize content that stays clear of them. And dual screen or foldable devices make us rethink how to best use available space in a number of different device postures. Sketches of a round display, a common rectangular mobile display, and a device with a foldable display. These recent evolutions of the web platform made it both more challenging and more interesting to design products. They’re great opportunities for us to break out of our rectangular boxes. I’d like to talk about a new feature similar to the above: the Window Controls Overlay for Progressive Web Apps (PWAs). Progressive Web Apps are blurring the lines between apps and websites. They combine the best of both worlds. On one hand, they’re stable, linkable, searchable, and responsive just like websites. On the other hand, they provide additional powerful capabilities, work offline, and read files just like native apps. As a design surface, PWAs are really interesting because they challenge us to think about what mixing web and device-native user interfaces can be. On desktop devices in particular, we have more than 40 years of history telling us what applications should look like, and it can be hard to break out of this mental model. At the end of the day though, PWAs on desktop are constrained to the window they appear in: a rectangle with a title bar at the top. Here’s what a typical desktop PWA app looks like: Sketches of two rectangular user interfaces representing the desktop Progressive Web App status quo on the macOS and Windows operating systems, respectively. Sure, as the author of a PWA, you get to choose the color of the title bar (using the Web Application Manifest theme_color property), but that’s about it. What if we could think outside this box, and reclaim the real estate of the app’s entire window? Doing so would give us a chance to make our apps more beautiful and feel more integrated in the operating system. This is exactly what the Window Controls Overlay offers. This new PWA functionality makes it possible to take advantage of the full surface area of the app, including where the title bar normally appears. About the title bar and window controls Let’s start with an explanation of what the title bar and window controls are. The title bar is the area displayed at the top of an app window, which usually contains the app’s name. Window controls are the affordances, or buttons, that make it possible to minimize, maximize, or close the app’s window, and are also displayed at the top. A sketch of a rectangular application user interface highlighting the title bar area and window control buttons. Window Controls Overlay removes the physical constraint of the title bar and window controls areas. It frees up the full height of the app window, enabling the title bar and window control buttons to be overlaid on top of the application’s web content. A sketch of a rectangular application user interface using Window Controls Overlay. The title bar and window controls are no longer in an area separated from the app’s content. If you are reading this article on a desktop computer, take a quick look at other apps. Chances are they’re already doing something similar to this. In fact, the very web browser you are using to read this uses the top area to display tabs. A screenshot of the top area of a browser’s user interface showing a group of tabs that share the same horizontal space as the app window controls. Spotify displays album artwork all the way to the top edge of the application window. A screenshot of an album in Spotify’s desktop application. Album artwork spans the entire width of the main content area, all the way to the top and right edges of the window, and the right edge of the main navigation area on the left side. The application and album navigation controls are overlaid directly on top of the album artwork. Microsoft Word uses the available title bar space to display the auto-save and search functionalities, and more. A screenshot of Microsoft Word’s toolbar interface. Document file information, search, and other functionality appear at the top of the window, sharing the same horizontal space as the app’s window controls. The whole point of this feature is to allow you to make use of this space with your own content while providing a way to account for the window control buttons. And it enables you to offer this modified experience on a range of platforms while not adversely affecting the experience on browsers or devices that don’t support Window Controls Overlay. After all, PWAs are all about progressive enhancement, so this feature is a chance to enhance your app to use this extra space when it’s available. Let’s use the feature For the rest of this article, we’ll be working on a demo app to learn more about using the feature. The demo app is called 1DIV. It’s a simple CSS playground where users can create designs using CSS and a single HTML element. The app has two pages. The first lists the existing CSS designs you’ve created: A screenshot of the 1DIV app displaying a thumbnail grid of CSS designs a user created. The second page enables you to create and edit CSS designs: A screenshot of the 1DIV app editor page. The top half of the window displays a rendered CSS design, and a text editor on the bottom half of the window displays the CSS used to create it. Since I’ve added a simple web manifest and service worker, we can install the app as a PWA on desktop. Here is what it looks like on macOS: Screenshots of the 1DIV app thumbnail view and CSS editor view on macOS. This version of the app’s window has a separate control bar at the top for the app name and window control buttons. And on Windows: Screenshots of the 1DIV app thumbnail view and CSS editor view on the Windows operating system. This version of the app’s window also has a separate control bar at the top for the app name and window control buttons. Our app is looking good, but the white title bar in the first page is wasted space. In the second page, it would be really nice if the design area went all the way to the top of the app window. Let’s use the Window Controls Overlay feature to improve this. Enabling Window Controls Overlay The feature is still experimental at the moment. To try it, you need to enable it in one of the supported browsers. As of now, it has been implemented in Chromium, as a collaboration between Microsoft and Google. We can therefore use it in Chrome or Edge by going to the internal about://flags page, and enabling the Desktop PWA Window Controls Overlay flag. Using Window Controls Overlay To use the feature, we need to add the following display_override member to our web app’s manifest file: { "name": "1DIV", "description": "1DIV is a mini CSS playground", "lang": "en-US", "start_url": "/", "theme_color": "#ffffff", "background_color": "#ffffff", "display_override": [ "window-controls-overlay" ], "icons": [ ... ] } On the surface, the feature is really simple to use. This manifest change is the only thing we need to make the title bar disappear and turn the window controls into an overlay. However, to provide a great experience for all users regardless of what device or browser they use, and to make the most of the title bar area in our design, we’ll need a bit of CSS and JavaScript code. Here is what the app looks like now: Screenshot of the 1DIV app thumbnail view using Window Controls Overlay on macOS. The separate top bar area is gone, but the window controls are now blocking some of the app’s interface The title bar is gone, which is what we wanted, but our logo, search field, and NEW button are partially covered by the window controls because now our layout starts at the top of the window. It’s similar on Windows, with the difference that the close, maximize, and minimize buttons appear on the right side, grouped together with the PWA control buttons: Screenshot of the 1DIV app thumbnail display using Window Controls Overlay on the Windows operating system. The separate top bar area is gone, but the window controls are now blocking some of the app’s content. Using CSS to keep clear of the window controls Along with the feature, new CSS environment variables have been introduced: titlebar-area-xtitlebar-area-ytitlebar-area-widthtitlebar-area-height You use these variables with the CSS env() function to position your content where the title bar would have been while ensuring it won’t overlap with the window controls. In our case, we’ll use two of the variables to position our header, which contains the logo, search bar, and NEW button. header { position: absolute; left: env(titlebar-area-x, 0); width: env(titlebar-area-width, 100%); height: var(--toolbar-height); } The titlebar-area-x variable gives us the distance from the left of the viewport to where the title bar would appear, and titlebar-area-width is its width. (Remember, this is not equivalent to the width of the entire viewport, just the title bar portion, which as noted earlier, doesn’t include the window controls.) By doing this, we make sure our content remains fully visible. We’re also defining fallback values (the second parameter in the env() function) for when the variables are not defined (such as on non-supporting browsers, or when the Windows Control Overlay feature is disabled). Screenshot of the 1DIV app thumbnail view on macOS with Window Controls Overlay and our CSS updated. The app content that the window controls had been blocking has been repositioned. Screenshot of the 1DIV app thumbnail view on the Windows operating system with Window Controls Overlay and our updated CSS. The app content that the window controls had been blocking has been repositioned. Now our header adapts to its surroundings, and it doesn’t feel like the window control buttons have been added as an afterthought. The app looks a lot more like a native app. Changing the window controls background color so it blends in Now let’s take a closer look at our second page: the CSS playground editor. Screenshots of the 1DIV app CSS editor view with Window Controls Overlay in macOS and Windows, respectively. The window controls overlay areas have a solid white background color, which contrasts with the hot pink color of the example CSS design displayed in the editor. Not great. Our CSS demo area does go all the way to the top, which is what we wanted, but the way the window controls appear as white rectangles on top of it is quite jarring. We can fix this by changing the app’s theme color. There are a couple of ways to define it: PWAs can define a theme color in the web app manifest file using the theme_color manifest member. This color is then used by the OS in different ways. On desktop platforms, it is used to provide a background color to the title bar and window controls.Websites can use the theme-color meta tag as well. It’s used by browsers to customize the color of the UI around the web page. For PWAs, this color can override the manifest theme_color. In our case, we can set the manifest theme_color to white to provide the right default color for our app. The OS will read this color value when the app is installed and use it to make the window controls background color white. This color works great for our main page with the list of demos. The theme-color meta tag can be changed at runtime, using JavaScript. So we can do that to override the white with the right demo background color when one is opened. Here is the function we’ll use: function themeWindow(bgColor) { document.querySelector("meta[name=theme-color]").setAttribute('content', bgColor); } With this in place, we can imagine how using color and CSS transitions can produce a smooth change from the list page to the demo page, and enable the window control buttons to blend in with the rest of the app’s interface. Screenshot of the 1DIV app CSS editor view on the Windows operating system with Window Controls Overlay and updated CSS demonstrating how the window control buttons blend in with the rest of the app’s interface. Dragging the window Now, getting rid of the title bar entirely does have an important accessibility consequence: it’s much more difficult to move the application window around. The title bar provides a sizable area for users to click and drag, but by using the Window Controls Overlay feature, this area becomes limited to where the control buttons are, and users have to very precisely aim between these buttons to move the window. Fortunately, this can be fixed using CSS with the app-region property. This property is, for now, only supported in Chromium-based browsers and needs the -webkit- vendor prefix. To make any element of the app become a dragging target for the window, we can use the following: -webkit-app-region: drag; It is also possible to explicitly make an element non-draggable: -webkit-app-region: no-drag; These options can be useful for us. We can make the entire header a dragging target, but make the search field and NEW button within it non-draggable so they can still be used as normal. However, because the editor page doesn’t display the header, users wouldn’t be able to drag the window while editing code. So let's use a different approach. We’ll create another element before our header, also absolutely positioned, and dedicated to dragging the window. <div class="drag"></div> <header>...</header> .drag { position: absolute; top: 0; width: 100%; height: env(titlebar-area-height, 0); -webkit-app-region: drag; } With the above code, we’re making the draggable area span the entire viewport width, and using the titlebar-area-height variable to make it as tall as what the title bar would have been. This way, our draggable area is aligned with the window control buttons as shown below. And, now, to make sure our search field and button remain usable: header .search, header .new { -webkit-app-region: no-drag; } With the above code, users can click and drag where the title bar used to be. It is an area that users expect to be able to use to move windows on desktop, and we’re not breaking this expectation, which is good. An animated view of the 1DIV app being dragged across a Windows desktop with the mouse. Adapting to window resize It may be useful for an app to know both whether the window controls overlay is visible and when its size changes. In our case, if the user made the window very narrow, there wouldn’t be enough space for the search field, logo, and button to fit, so we’d want to push them down a bit. The Window Controls Overlay feature comes with a JavaScript API we can use to do this: navigator.windowControlsOverlay. The API provides three interesting things: navigator.windowControlsOverlay.visible lets us know whether the overlay is visible.navigator.windowControlsOverlay.getBoundingClientRect() lets us know the position and size of the title bar area.navigator.windowControlsOverlay.ongeometrychange lets us know when the size or visibility changes. Let’s use this to be aware of the size of the title bar area and move the header down if it’s too narrow. if (navigator.windowControlsOverlay) { navigator.windowControlsOverlay.addEventListener('geometrychange', () => { const { width } = navigator.windowControlsOverlay.getBoundingClientRect(); document.body.classList.toggle('narrow', width < 250); }); } In the example above, we set the narrow class on the body of the app if the title bar area is narrower than 250px. We could do something similar with a media query, but using the windowControlsOverlay API has two advantages for our use case: It’s only fired when the feature is supported and used; we don’t want to adapt the design otherwise.We get the size of the title bar area across operating systems, which is great because the size of the window controls is different on Mac and Windows. Using a media query wouldn’t make it possible for us to know exactly how much space remains. .narrow header { top: env(titlebar-area-height, 0); left: 0; width: 100%; } Using the above CSS code, we can move our header down to stay clear of the window control buttons when the window is too narrow, and move the thumbnails down accordingly. A screenshot of the 1DIV app on Windows showing the app’s content adjusted for a much narrower viewport. Thirty pixels of exciting design opportunities Using the Window Controls Overlay feature, we were able to take our simple demo app and turn it into something that feels so much more integrated on desktop devices. Something that reaches out of the usual window constraints and provides a custom experience for its users. In reality, this feature only gives us about 30 pixels of extra room and comes with challenges on how to deal with the window controls. And yet, this extra room and those challenges can be turned into exciting design opportunities. More devices of all shapes and forms get invented all the time, and the web keeps on evolving to adapt to them. New features get added to the web platform to allow us, web authors, to integrate more and more deeply with those devices. From watches or foldable devices to desktop computers, we need to evolve our design approach for the web. Building for the web now lets us think outside the rectangular box. So let’s embrace this. Let’s use the standard technologies already at our disposal, and experiment with new ideas to provide tailored experiences for all devices, all from a single codebase! If you get a chance to try the Window Controls Overlay feature and have feedback about it, you can open issues on the spec’s repository. It’s still early in the development of this feature, and you can help make it even better. Or, you can take a look at the feature’s existing documentation, or this demo app and its source code. Full Article
king Self-financing colleges in Coimbatore reach out to Union Education Ministry seeking exclusive categorisation in NIRF ranking By www.thehindu.com Published On :: Sat, 09 Nov 2024 21:40:06 +0530 Full Article Coimbatore
king Tiruppur city police arrest two youths for abducting job-seeking woman invited for interview By www.thehindu.com Published On :: Tue, 12 Nov 2024 18:50:50 +0530 Full Article Coimbatore
king A touch of Zen (1971) / written and directed by King Hu [DVD]. By encore.st-andrews.ac.uk Published On :: [U.K.] : Eureka!, [2016] Full Article
king The King's man (2021) / written and directed by Matthew Vaughn [DVD]. By encore.st-andrews.ac.uk Published On :: [U.K.] : 20th Century Studios, [2022] Full Article
king The Greasy Strangler (2016) / written and directed by Jim Hosking [DVD]. By encore.st-andrews.ac.uk Published On :: [U.K.] : Picture House, [2016] Full Article
king El Bulli : cooking in progress (2011) / written and directed by Gereon Wetzel [DVD]. By encore.st-andrews.ac.uk Published On :: [London] : Artificial Eye, [2012] Full Article
king Djokovic tops Nadal before Sinner beats Alcaraz for the title at the Six Kings Slam exhibition By www.thehindu.com Published On :: Sun, 20 Oct 2024 10:20:03 +0530 The last dance was an epic one...Tennis will miss you, wrote Novak Djokovic as he topped Rafael Nadal Full Article Tennis
king ‘Seeing’ chemistry: investigating the contribution of mental imagery strength on students’ thinking in relation to visuospatial problem solving in chemistry. By pubs.rsc.org Published On :: Chem. Educ. Res. Pract., 2025, Accepted ManuscriptDOI: 10.1039/D4RP00234B, PaperLauren Baade, Efpraxia Kartsonaki, Hassan Khosravi, Gwendolyn Angela LawrieEffective learning in chemistry education requires students to understand visual representations across multiple conceptual levels. Essential to this process are visuospatial skills which enable students to interpret and manipulate these...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
king Microcage flame retardants with complete recyclability and durability via reversible interfacial locking engineering By pubs.rsc.org Published On :: Mater. Horiz., 2024, 11,1867-1876DOI: 10.1039/D4MH00116H, CommunicationFurong Zeng, Lei He, Jianwen Ma, Danxuan Fang, Zhiwei Zeng, Tongyu Bai, Rong Ding, Bowen Liu, Haibo Zhao, Yuzhong WangA new facile and scalable interfacial locking engineering strategy is exploited to endow reversible microcages with infinite chemical recyclability to starting monomers, exceptional durability, high flame-retardant efficiency, and extensive applicability across diverse polymers.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
king Photo book ‘We Cry in Silence’ investigates cross-border trafficking By www.thehindu.com Published On :: Thu, 10 Nov 2022 15:32:18 +0530 Photojournalist Smita Sharma’s book ‘We Cry in Silence’ lays bare the patriarchy that makes girls an easy target for traffickers Full Article Books
king Kerala School Kalolsavam: student police cadets win praise for painstaking service By www.thehindu.com Published On :: Wed, 04 Jan 2023 19:12:28 +0530 They have been deployed to cover all the 24 venues of the arts fest Full Article Kerala
king The problem with India’s blocking of the Chinese By www.thehindu.com Published On :: Tue, 30 Jul 2024 01:17:00 +0530 India’s economic growth increasingly depends on foreign expertise, particularly from China Full Article Lead
king India’s place in Russia-Ukraine peace-making By www.thehindu.com Published On :: Fri, 20 Sep 2024 00:16:00 +0530 There are indications that New Delhi is engaging with all parties and developing its role as an interlocutor but there are the ‘ifs, ands, or buts’ Full Article Lead
king An obsession with ranking is harming India’s universities By www.thehindu.com Published On :: Fri, 04 Oct 2024 01:17:43 +0530 The metrics-focused system has created a situation which implies that education is a market rather than a citizen’s right and the state’s duty Full Article Lead
king 14 killed, 50 injured in explosions at Pak shipbreaking yard By www.thehindu.com Published On :: Tue, 01 Nov 2016 19:24:40 +0530 Gadani is world’s third—largest shipbreaking centres — after Alang and Mumbai — where more than 15,000 workers are directly employed while another two million indirectly earn their livelihoods from it. Full Article World
king Coastal residents protest against KMB’s beachfront parking project in Kozhikode By www.thehindu.com Published On :: Mon, 11 Nov 2024 23:47:54 +0530 Residents raise concerns over disruption to fishermen’s work and the natural environment as KMB pushes forward with the project Full Article Kerala
king Working Moms, Childlessness, and Female Identity [electronic journal]. By encore.st-andrews.ac.uk Published On :: Full Article
king Working for a Living? Women and Children's Labour Inputs in England, 1260-1850 [electronic journal]. By encore.st-andrews.ac.uk Published On :: Full Article
king The Wife's Protector: A Quantitative Theory Linking Contraceptive Technology with the Decline in Marriage [electronic journal]. By encore.st-andrews.ac.uk Published On :: Full Article
king Why so Negative? Belief Formation and Risk Taking in Boom and Bust Markets [electronic journal]. By encore.st-andrews.ac.uk Published On :: Full Article
king When Olson Meets Dahl: From Inefficient Groups Formation to Inefficient Policy-Making [electronic journal]. By encore.st-andrews.ac.uk Published On :: Full Article
king What are the Consequences of Global Banking for the International Transmission of Shocks? A Quantitative Analysis [electronic journal]. By encore.st-andrews.ac.uk Published On :: National Bureau of Economic Research Full Article
king The Value of Working Conditions in the United States and Implications for the Structure of Wages [electronic journal]. By encore.st-andrews.ac.uk Published On :: National Bureau of Economic Research Full Article