rd Tobacco Board authorises 100 million kg crop size for Karnataka during 2024-25 By www.thehindu.com Published On :: Mon, 18 Mar 2024 11:07:46 +0530 Registration process for upcoming crop season will commence on March 27 Full Article Agriculture
rd Budget 2024: Agriculture, Employment, Infrastructure feature in nine priorities of third NDA government By www.thehindu.com Published On :: Tue, 23 Jul 2024 11:34:00 +0530 Union Budget 2024 unveils nine priorities for this financial year as Finance Minister Nirmala Sitharaman delivers her seventh budget speech in Lok Sabha Full Article Budget
rd Floriculture blossoms in one of backward regions of Odisha By www.thehindu.com Published On :: Tue, 08 Oct 2024 11:53:18 +0530 Lucknow-based National Botanical Research Institute pitches in with scientific inputs to make the floriculture sustainable in Jujumara region of Sambalpur. Full Article Odisha
rd Annoyed over tardy paddy lifting, farmers block roads in Punjab By www.thehindu.com Published On :: Fri, 25 Oct 2024 16:51:12 +0530 The AAP and the BJP sparred over who was to be assigned blame for the delays in procurement Full Article Punjab
rd The certainty trap [electronic resource] : why we need to question ourselves more--and how we can judge others less / Ilana Redstone ; foreword by Joe Walsh. By darius.uleth.ca Published On :: Durham, North Carolina : Pitchstone Publishing, [2024] Full Article
rd Babar named 'Most Valuable Cricketer' in PCB Awards By www.rediff.com Published On :: Fri, 01 Jan 2021 21:05:46 +0530 In the four Tests played during the year, Babar scored 338 runs at an average of 67.6. Full Article Babar Azam PCB Mount Maunganui Kamran Ghulam Naseem Shah Khyber Pakhtunkhwa Aliya Riaz Mohammad Rizwan Fawad Alam Fatima Sana Twitter New Zealand South Africa Bangladesh Pakistan
rd A Match of Many Records By www.rediff.com Published On :: Tue, 20 Jul 2021 11:55:59 +0530 The first One-Day International between India and Sri Lanka witnessed important milestones being set and new records being made. Full Article
rd IPL 2022: Hardik Most Valuable Player By www.rediff.com Published On :: Mon, 18 Apr 2022 11:07:35 +0530 When was the last time we saw an IPL top 50 table without the names of Virat Kohli, Rohit Sharma, M S Dhoni, and with Rishabh Pant getting almost the last empty seat? ask Srinivas Bhogle and Purnendu Maji as they list the 50 Most Valuable Players after the first 29 IPL 2022 games. Full Article IND SRH LSG KKR PBKS CSK RCB DC IPL ENG Gujarat Titans Skipper Hardik Pandya PVI AFG AUS Quinton de Kock Hardik Most Valuable
rd Kohli surpasses Dravid's run record! By www.rediff.com Published On :: Mon, 26 Sep 2022 14:55:04 +0530 Virat Kohli surpassed Rahul Dravid to become the second highest run-scorer for India in international cricket. Full Article
rd Jet turns around with record Rs 1,212-cr. net profit By www.thehindu.com Published On :: Fri, 27 May 2016 00:00:00 +0530 Full Article Mumbai Capital
rd Debt private placements hit record high of Rs. 4,92,000 crore in FY16 By www.thehindu.com Published On :: Tue, 31 May 2016 00:00:00 +0530 Total mobilisation six per cent higher than previous financial year Full Article Mumbai Capital
rd Plastic is fantastic: Credit cards register highest growth in five years By www.thehindu.com Published On :: Thu, 02 Jun 2016 07:52:10 +0530 Axis Bank leads charge, SBI narrows gap with ICICI, HDFC Bank on top; numbers inch up to 25m Full Article Mumbai Capital
rd Rajan calls for global coordination to tackle spill-over economic effects By www.thehindu.com Published On :: Fri, 10 Jun 2016 00:00:00 +0530 Developed countries’ policies to keep interest rates low impact emerging market economies, says Guv Full Article Mumbai Capital
rd Jaguar makes cars affordable in India to woo new buyers By www.thehindu.com Published On :: Fri, 10 Jun 2016 00:00:00 +0530 Full Article Mumbai Capital
rd Hyundai Motor India's record ₹27,870 crore IPO fully subscribed By www.thehindu.com Published On :: Thu, 17 Oct 2024 14:17:57 +0530 The ₹27,870 crore initial share sale got bids for 14,07,68,187 shares against 9,97,69,810 shares on offer, translating into 1.41 times the subscription, as per NSE data till 13:21 hours Full Article Markets
rd Sensex, Nifty fall for 3rd day amid foreign fund exodus By www.thehindu.com Published On :: Thu, 17 Oct 2024 16:35:49 +0530 Intense selling in realty, auto, consumer discretionary and consumer durable stocks also dragged the markets lower Full Article Markets
rd Why is there an upward rally in gold prices? | Explained By www.thehindu.com Published On :: Thu, 31 Oct 2024 08:30:00 +0530 Why is gold considered a safety cushion by central banks? When does demand for the yellow metal peak in India? Why does the World Gold Council expect an increased demand for gold from rural areas? What factors determine gold prices? Full Article Markets
rd Panchayat, aided schools in Tiruchi district bag awards for excellence in teaching, better enrolment By www.thehindu.com Published On :: Sun, 10 Nov 2024 20:36:27 +0530 The schools are assessed based on including basic infrastructure, quality of education and teaching practices, technology-enabled teaching, development of the school, and activities done by students Full Article Tiruchirapalli
rd Collector forwards complaint against teacher to Education Department By www.thehindu.com Published On :: Mon, 11 Nov 2024 18:26:31 +0530 Full Article Tiruchirapalli
rd Absence of bund around deepened pond worries residents of Morais Garden Extension in Tiruchi By www.thehindu.com Published On :: Mon, 11 Nov 2024 19:23:24 +0530 The pond at Runway Nagar, Kottapattu, which was deepened a few months ago, is now filled with water after recent rain. Residents are worried that it may overflow and the stagnant water might become a haven for snakes and insects. Full Article Tiruchirapalli
rd Border checkposts in Nilgiris to soon have automatic number plate recognition cameras By www.thehindu.com Published On :: Tue, 12 Nov 2024 14:50:23 +0530 This comes in the wake of the Madras High Court recently expressing dissatisfaction over the implementation of the e-pass system in the Nilgiris and Kodaikanal Full Article Coimbatore
rd Telephone cord blister formation in solvent swollen elastomer films By pubs.rsc.org Published On :: Soft Matter, 2024, Advance ArticleDOI: 10.1039/D4SM01035C, Paper Open Access   This article is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported Licence.James S. Sharp, Nathaniel M. Roberts, Sam WalkerTelephone cord blister formation is studied in PDMS films swollen in four different solvents. Buckling and fracture mechanics theories are developed to interpret blister morphology and growth rates. A simple surface patterning method is introduced.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
rd The cellular Potts model on disordered lattices By pubs.rsc.org Published On :: Soft Matter, 2024, 20,8337-8352DOI: 10.1039/D4SM00445K, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Hossein Nemati, J. de GraafExtending the cellular Potts model to disordered Voronoi lattices reduces artifacts observed on regular lattices. An order–disorder transition is observed as a function of surface tension on the disordered lattice and the regular lattices.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
rd Rolling and ordering of micro rods in shear flow induced by rod wall interactions By pubs.rsc.org Published On :: Soft Matter, 2024, Advance ArticleDOI: 10.1039/D4SM00999A, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Martin Wittmann, Igor M. Kulić, Antonio Stocco, Juliane SimmchenWe use experiments and theoretical models to investigate the rolling and translational motion of rod-shaped micro particles close to a solid wall in the presence or absence of shear flow.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
rd Towards a universal model for the foaming behavior of surfactants: a case study on per- and polyfluoroalkyl substances (PFAS) By pubs.rsc.org Published On :: Soft Matter, 2024, Advance ArticleDOI: 10.1039/D4SM00931B, PaperMuchu Zhou, Reza FoudaziFoam fractionation offers a promising solution for the separation of surface-active contaminants from water.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
rd Solvent-Free Confinement of Ordered Microparticle Monolayers: Effect of Host Substrate and Pattern Symmetry By pubs.rsc.org Published On :: Soft Matter, 2024, Accepted ManuscriptDOI: 10.1039/D4SM01196A, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Ignaas Jimidar, Mitch de Waard, Gijs Roozendaal, Kai SotthewesThe self-organisation of individual suspended colloids into ordered structures that can be mediated by confinement has garnered interest recently. Despite the push for solvent reduction for sustainability reasons, the comprehension...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
rd Shape memory and recovery mechanism in hard magnetic soft materials By pubs.rsc.org Published On :: Soft Matter, 2024, Advance ArticleDOI: 10.1039/D4SM01165A, PaperRong Jia, Kai Tan, Qian DengTwo parts are integrated to close a circle: shape memory and recovery of hard-magnetic soft materials (HMSMs).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
rd Magnetic colloidal single particles and dumbbells on a tilted washboard moir'e pattern in a precessing external field By pubs.rsc.org Published On :: Soft Matter, 2024, Accepted ManuscriptDOI: 10.1039/D4SM01183J, Paper Open Access   This article is licensed under a Creative Commons Attribution 3.0 Unported Licence.Farzaneh Farrokhzad, Nico C. X. Stuhlmüller, Piotr Kuswik, Maciej Urbaniak, Feliks Stobiecki, Sapida Akhundzada, Arno Ehresmann, Daniel de las Heras, Thomas M. FischerWe measure the dynamical behavior of colloidal singlets and dumbbells on an inclined magnetic moir'e pattern, subject to a precessing external homogeneous magnetic field. At low external field strength single...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
rd Art Direction and the New WordPress Editor By 24ways.org Published On :: Fri, 13 Dec 2019 12:00:00 +0000 Mel Choyce explores how the new WordPress editor (also know as Gutenberg) can be used to create more carefully art directed posts. Like gifts carefully arranged beneath the Christmas tree, it’s the contents that matters but the presentation that sells. The New York Times release of Snowfall in 2012 took the web industry by storm. Media-rich and captivating, its design evoked wonder, fear, and desperation in the face of an avalanche. Snowfall was one of the first great art directed digital experiences in this era of the modern web (Space Jam, obviously, being one of the great experiences of the era prior). “Art direction combines art and design to evoke a cultural and emotional reaction. …Art direction is about evoking the right emotion, it’s about creating that connection to what you’re seeing and experiencing.” Art Direction and Design by Dan Mall Art direction isn’t a new concept. Pick up any magazine or print publication — designers have long been creating evocative media experiences. Then the web came and messed that up. Fonts and even colors were limited at first, especially if you wanted to create something using semantic HTML rather than Flash. Early HTML and CSS didn’t offer great ways to create dynamic layouts like you’d see in a magazine. Floats, am I right? A lot’s changed in the past decade. We have reliable ways to serve fonts, opening up vast typographic possibilities. CSS features like Flexbox and Grid allow for complex layouts. Plus, our hardware is getting better and better. We live in exciting times. Behind the curve But not everyone’s kept up. For most of its history, the WordPress editor was a text-first writing experience, shining with simple blogs but falling flat in the face of a complex website. Want some columns on your page? Well, there’s a plugin for that, it lets you write some pseudo-code WordPress called shortcodes, and yeah you just need to wrap your columns in this code in your editor… Or, uh, maybe you could hand-code a template for your theme that offers three columns of widget areas and put everything in there? Or maybe… You get the point. The new WordPress editor (codenamed “Gutenberg”) introduces the concept of blocks, like building blocks or bricks or LEGO. Rather than needing to hand-code anything, you have an interface for editing all sorts of content, even the aforementioned former nightmare of columns. Blocks can come with placeholders, so you can fill-in-the-blanks rather than having to build from scratch. The new WordPress block editor allows me to focus on the best way of presenting my content instead of focusing on how I’m going to technically enter the content. The block editor allows my designer brain to think more creatively. I can go about creating an appropriate emotional reaction for a site’s content, rather than focusing on implementation. Block it to me The building blocks of the new editor (text, media) are the same, but the new ways to combine and build upon those blocks makes for a better art direction experience. Your browser doesn’t support HTML5 video. Here is a link to the video instead. New to the WordPress editor is the Media and Text block, which combines — you guessed it — media and text into a new way to approach layouts. Your browser doesn’t support HTML5 video. Here is a link to the video instead. This is the foundation of the new WordPress editor. Take atomic pieces, and combine them to make whole sections and layouts. Best yet, no fumbling with floats if you want to put some text next to an image! Do you want to build a website? Let’s imagine I’m building a website for a non-profit that rescues black cats. They offer adoption services, run a fostering program, and take in abandoned, feral, or other cats in need. The primary goal of the site is to connect people to the rescue organization. Raising awareness and soliciting donations are secondary, but still important factors. Because so much of a person’s experience with WordPress is contingent on their particular setup — themes, plugins, and admin customizations — I’ve decided to keep this site pretty light. The Twenty Twenty Theme WordPress releases a new default theme pretty much every year. This year’s theme, Twenty Twenty, was built with Gutenberg in mind. It supports optional features like color schemes and wider block alignments. The design is clean and modern, and offers some additional customization options. I think it’s a good choice for this website. Columns While there’s no internal grid system in WordPress (yet!), the Columns block comes close to allowing complex layouts within a post or page. With it, you can start to break out of one column and think more like a print designer. The most straightforward layout we could do is a familiar pattern on the web — three feature columns consisting of a heading, some text, and a button. To accomplish this, I loaded up the editor and started planning. First, I added a group block to contain my columns, and provide a background color. (The columns block does not currently support background colors, but it might in the future.) I want my columns to stand out from the white background of the page, so I opt for a light grey. Within the group, I placed my Column block, which features a convenient placeholder to help me pick which layout I want: I opt for the three column option. From here, it’s easy to build out my section — headings, paragraphs, and buttons are all existing blocks I can plop right into my columns: It looks really good on the front-end of my site, too: This is all fairly straightforward, but by changing up a couple columns widths and some sizing, I can get something that looks more dynamic and draws attention to the adoption process, which is the most important feature: I could even add an image, change up my background color to match, and nest “Foster” and “Save” into another set of columns beneath “Adopt”: All of this from the same set of blocks, yet each variation strikes a different impact. …And, you know, feels a little less like this: which one of the two possible websites are you currently designing? pic.twitter.com/ZD0uRGTqqm— Jon Gold (@jongold) February 2, 2016 But if I wanted to start looking like that, uh, second example — I can! Media and Text The aforementioned Media and Text block is a great building block for some eye-catching, informational parts of my homepage. Galleries To break up all that text content and get my site looking less like it’s for a startup, how about adding even more cute cats in between? You can never have too many cat photos on the internet. CoBlocks is a fantastic plugin that adds new blocks to WordPress, among them the icon block I used above, as well as a couple of different gallery layouts. I think carousels are terrible when they’re used for showcasing features or content, but I think they’re a good gallery format, and having something horizontal means my cats aren’t taking up too much space (unlike my own black cat, who likes to hog all my leg room in bed). My favorite thing about this block is that, even though it’s fully-featured, it’s still 100x less of a chaotic mess than any other slider plugin I’ve experienced in WordPress. CoBlocks comes with Carousel, Collage, Masonry, Offest, and Stacked gallery blocks. The default Gallery block in WordPress is also pretty good — much better than it used to be. Buttons Alright, where am I? I have my intro columns featuring the primary information about site, some informational text, lots of cute cat photos, more informational text… I think my homepage is shaping up. I just need one final element: a donation section. Can’t take care of those kitties without some cash. The only way to integrate payments into WordPress is to either link to a third party platform, or use a plugin. I’ve used ActBlue quite a bit when making candidate websites, so I’m going to pretend that this site uses a third party service that, like ActBlue, lets me link to specific donation increments off-site. WordPress has a Buttons block underway that lets you add a row of buttons, without needing to rely on another block like Columns, but in the meantime, CoBlocks has an equivalent block I can use for now. Great. It’s got a bold color, and I can link to a couple different donation increments. But it could really use… something, you know, that draws the eye even more? Shape Divider CoBlocks has another great block, Shape Divider, which lets you add a decorative border that sits nicely above or below any container element, like the group block I’m using here. It comes with a variety of shape styles, like hills, rounded, and pointed. I settle on waves, which includes some overlapping transparencies along the top. It’s different from the rest of my page, but in a good way — it’s a subtle way for that section to stand out. With that final block, my homepage is almost done. I just want to touch on two more blocks that can be used to improve the design: the Separator block, and the Spacer block. Separator Separator inserts an <hr /> into the page, with some minimal styles to make it look nice. Themes can then add new styles, or restyle the default to get some fancy alternatives, like this: The Separator block is a great way to break up sections in a page. Spacer The Spacer block is an abomination, but I love it. It’s just an empty space. Think spacer gif, but spacer div. It’s terrible, but oh, oh so useful. I can increase space between elements without having to write any custom CSS. It empowers folks that are visual, but not technical. Combine it with Columns and you can almost pretend that you’re using a grid! (It is, at the very least, hidden from screen readers.) Okay but what does it look like? With those in place, let’s check out my homepage. Almost perfect. It’s bold, streamlined, and features plenty of cute cats. The only issue that caught my eye is the gap of white between the page content and the footer, which I can fix with some CSS added into WordPress’s Customizer tool: .home .footer-nav-widgets-wrapper { margin-top: 0; } Not too bad, considering this is the first bit of CSS I’ve had to write for my homepage layout. Much better. How about the old editor? Out of curiosity, I tried to recreate my homepage using the Classic Editor plugin, which restores the old WordPress editing interface. Since I used some of my favorite plugins on my block editor site, I decided it was only fair to leverage plugins on my classic site. I installed Shortcodes Ultimate, a plugin offering over 60 shortcodes to improve the WordPress editor. It has a good shortcode picking interface, great documentation, and in my opinion, is one of the best shortcode plugins the WordPress community has to offer. Your browser doesn’t support HTML5 video. Here is a link to the video instead. This wasn’t fun. No shortcode interface will make the experience worth it to me, when I could use Gutenberg. One misplaced bracket, and I’ve borked my site. It takes a whole lot of time. And, I almost always need to write a bunch of custom styles to get it to work with my theme. Yes, this is a LiveJournal icon I’ve had saved for like, 16 years. With our homepage complete, let’s move on to some interior pages. There are a couple other blocks, and combinations of blocks, that can help me build out the rest of my site. Cover Block One of the earliest complex blocks offered in the new WordPress editor was the “Cover” block, which can be used for banners and hero images: Originally, it only allowed you to add an image or video, headings, and paragraphs, but the requirements have recently been loosened so you can add whatever blocks you like. This can lead to some unique layout possibilities. Take, for example, a “Teams” section on our About page. We could use columns to make a simple layout, like this: But if we have better images, we could explore using Cover to create more visual impact: Let’s say we didn’t have any staff images, or they’re all poor quality and weirdly cropped, which is… not an usual occurrence! We can forego images altogether and instead, use the new gradient picker in Cover and use that to create visual impact: Explore third-party blocks Like CoBlocks’s gallery blocks, many third-party WordPress plugins can enhance your site and allow you to create a better experience for your visitors. Accordions Let’s say this rescue organization has some FAQs. Rather than creating a wall-of-text, we could use an accordion block to organize the content for easier browsing: Accordion Block from CoBlocks Grids If columns aren’t adequate for achieving the layout you’re looking to build, you could try the Grids plugin by Evolve, which comes with a “build your own grid” feature: I can use this block to make a more visually interesting landing page for the “Get Involved” section, which only exists to link out to its child pages: Typography You can also use plugins like CoBlocks and Kioken Blocks to customize your site’s typography, opening up the possibilities for a truly from-scratch site design. And I have to admit, as someone who makes web software, the idea of giving full typographic control to users terrifies me… but as a designer, I absolutely love this feature! ???? With these tools, it won’t take long to finish my website. Tons of new possibilities Mix and match to create beautiful, art-directed experiences using blocks. You can look for plugins that support and build on the new editor, or specifically download individual blocks in the new WordPress block directory (just beta launched!). Unsure of how to combine blocks to make an impact? A couple of plugins like Atomic Blocks, Kioken Blocks, and Ultimate Addons for Gutenberg include pre-curated layouts you can quickly add to your own sites. These layouts are already art directed, so you can choose the one that creates the biggest impact on your own audience. Explore, and share your results! About the author Mel Choyce is a wicked awesome product designer based in Boston, Massachusetts. Not only is Mel a WordPress Core Committer and former Release Lead, she is a regular core contributor and speaks frequently at WordCamps on design, typography, and user experience. When Mel isn’t designing products at Automattic, she enjoys cold brew coffee, craft beer, and rocking out in her band. Say hi to her on Twitter at @melchoyce, and visit her site at choycedesign.com. More articles by Mel Full Article Design design
rd Building a Dictaphone Using Media Recorder and getUserMedia By 24ways.org Published On :: Tue, 17 Dec 2019 12:00:00 +0000 Chris Mills brushes up his shorthand and shows how the MediaStream Recording API in modern browsers can be used to capture audio directly from the user’s device. Inching ever closer to the capabilities of native software, it truly is an exciting time to be a web developer. The MediaStream Recording API makes it easy to record audio and/or video streams. When used with MediaDevices.getUserMedia(), it provides an easy way to record media from the user’s input devices and instantly use the result in web apps. This article shows how to use these technologies to create a fun dictaphone app. A sample application: Web Dictaphone To demonstrate basic usage of the MediaRecorder API, we have built a web-based dictaphone. It allows you to record snippets of audio and then play them back. It even gives you a visualisation of your device’s sound input, using the Web Audio API. We’ll just concentrate on the recording and playback functionality in this article, for brevity’s sake. You can see this demo running live, or grab the source code on GitHub. This has pretty good support on modern desktop browsers, but pretty patchy support on mobile browsers currently. Basic app setup To grab the media stream we want to capture, we use getUserMedia(). We then use the MediaRecorder API to record the stream, and output each recorded snippet into the source of a generated <audio> element so it can be played back. We’ll first declare some variables for the record and stop buttons, and the <article> that will contain the generated audio players: const record = document.querySelector('.record'); const stop = document.querySelector('.stop'); const soundClips = document.querySelector('.sound-clips'); Next, we set up the basic getUserMedia structure: if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) { console.log('getUserMedia supported.'); navigator.mediaDevices.getUserMedia ( // constraints - only audio needed for this app { audio: true }) // Success callback .then(function(stream) { }) // Error callback .catch(function(err) { console.log('The following `getUserMedia` error occured: ' + err); } ); } else { console.log('getUserMedia not supported on your browser!'); } The whole thing is wrapped in a test that checks whether getUserMedia is supported before running anything else. Next, we call getUserMedia() and inside it define: The constraints: Only audio is to be captured for our dictaphone. The success callback: This code is run once the getUserMedia call has been completed successfully. The error/failure callback: The code is run if the getUserMedia call fails for whatever reason. Note: All of the code below is found inside the getUserMedia success callback in the finished version. Capturing the media stream Once getUserMedia has created a media stream successfully, you create a new Media Recorder instance with the MediaRecorder() constructor and pass it the stream directly. This is your entry point into using the MediaRecorder API — the stream is now ready to be captured into a <Blob>, in the default encoding format of your browser. const mediaRecorder = new MediaRecorder(stream); There are a series of methods available in the MediaRecorder interface that allow you to control recording of the media stream; in Web Dictaphone we just make use of two, and listen to some events. First of all, MediaRecorder.start() is used to start recording the stream once the record button is pressed: record.onclick = function() { mediaRecorder.start(); console.log(mediaRecorder.state); console.log("recorder started"); record.style.background = "red"; record.style.color = "black"; } When the MediaRecorder is recording, the MediaRecorder.state property will return a value of “recording”. As recording progresses, we need to collect the audio data. We register an event handler to do this using mediaRecorder.ondataavailable: let chunks = []; mediaRecorder.ondataavailable = function(e) { chunks.push(e.data); } Last, we use the MediaRecorder.stop() method to stop the recording when the stop button is pressed, and finalize the Blob ready for use somewhere else in our application. stop.onclick = function() { mediaRecorder.stop(); console.log(mediaRecorder.state); console.log("recorder stopped"); record.style.background = ""; record.style.color = ""; } Note that the recording may also stop naturally if the media stream ends (e.g. if you were grabbing a song track and the track ended, or the user stopped sharing their microphone). Grabbing and using the blob When recording has stopped, the state property returns a value of “inactive”, and a stop event is fired. We register an event handler for this using mediaRecorder.onstop, and construct our blob there from all the chunks we have received: mediaRecorder.onstop = function(e) { console.log("recorder stopped"); const clipName = prompt('Enter a name for your sound clip'); const clipContainer = document.createElement('article'); const clipLabel = document.createElement('p'); const audio = document.createElement('audio'); const deleteButton = document.createElement('button'); clipContainer.classList.add('clip'); audio.setAttribute('controls', ''); deleteButton.innerHTML = "Delete"; clipLabel.innerHTML = clipName; clipContainer.appendChild(audio); clipContainer.appendChild(clipLabel); clipContainer.appendChild(deleteButton); soundClips.appendChild(clipContainer); const blob = new Blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; const audioURL = window.URL.createObjectURL(blob); audio.src = audioURL; deleteButton.onclick = function(e) { let evtTgt = e.target; evtTgt.parentNode.parentNode.removeChild(evtTgt.parentNode); } } Let’s go through the above code and look at what’s happening. First, we display a prompt asking the user to name their clip. Next, we create an HTML structure like the following, inserting it into our clip container, which is an <article> element. <article class="clip"> <audio controls></audio> <p>_your clip name_</p> <button>Delete</button> </article> After that, we create a combined Blob out of the recorded audio chunks, and create an object URL pointing to it, using window.URL.createObjectURL(blob). We then set the value of the <audio> element’s src attribute to the object URL, so that when the play button is pressed on the audio player, it will play the Blob. Finally, we set an onclick handler on the delete button to be a function that deletes the whole clip HTML structure. So that’s basically it — we have a rough and ready dictaphone. Have fun recording those Christmas jingles! As a reminder, you can find the source code, and see it running live, on the MDN GitHub. This article is based on Using the MediaStream Recording API by Mozilla Contributors, and is licensed under CC-BY-SA 2.5. About the author Chris Mills manages the MDN web docs writers’ team at Mozilla, which involves spreadsheets, meetings, writing docs and demos about open web technologies, and occasional tech talks at conferences and universities. He used to work for Opera and W3C, and enjoys playing heavy metal drums and drinking good beer. More articles by Chris Full Article Code apis
rd Best foot forward By www.thehindu.com Published On :: Fri, 04 Nov 2016 15:21:20 +0530 Full Article Metroplus
rd The game of beards By www.thehindu.com Published On :: Wed, 09 Nov 2016 16:27:11 +0530 This No-Shave November, grow those beards, spread awareness and take inspiration the iconic beards that have shaped the world’s pop culture Full Article Metroplus
rd Jawed Habib: Clinical salons, with a doctor on board, are the future By www.thehindu.com Published On :: Fri, 15 Sep 2023 15:38:01 +0530 Hair stylist Jawed Habib talks about his new book ‘Beautiful Hair, Beautiful You’ and says, despite the information overload pertaining to hair care, he observes a general lack of awareness Full Article Fashion
rd Spin the pedals and be ever onward By www.thehindu.com Published On :: Wed, 30 Mar 2016 17:02:26 +0530 A group of youngsters has set up the "Madurai Pedallers Club" to 'cyclologically' care for their own and environmental health Full Article Fitness
rd Sprinting over every hurdle By www.thehindu.com Published On :: Sat, 30 Apr 2016 16:36:43 +0530 Being a woman doesn’t mean you need to be bogged down with household and office chores. With some planning, you too can start off by being a runner. Full Article Fitness
rd Aiming for Salman standard By www.thehindu.com Published On :: Wed, 18 May 2016 22:39:24 +0530 Ruslaan Mumtaz tells us what all he does to have lean and fit body Full Article Metroplus
rd Just what your trainer ordered By www.thehindu.com Published On :: Tue, 08 Nov 2016 16:01:01 +0530 Healthy meal delivery services now have trainers and nutritionists on board to give clients the best of pre and post-workout food, writes SUSANNA MYRTLE LAZARUS Full Article Metroplus
rd Editorial. Small-scale commercial nuclear reactors, the way forward By www.thehindubusinessline.com Published On :: Sun, 25 Aug 2024 21:19:20 +0530 It is increasingly being realised that achieving net-zero is not possible without nuclear energy Full Article Editorial
rd Editorial. Liberal norms in GIFT City, the right way forward By www.thehindubusinessline.com Published On :: Tue, 03 Sep 2024 21:37:17 +0530 Will not only boost the primary market activity in the GIFT IFSC but will also enable GIFT City to effectively compete with other international financial jurisdictions Full Article Editorial
rd Editorial. More action needed against substandard, spurious drugs By www.thehindubusinessline.com Published On :: Mon, 30 Sep 2024 21:22:34 +0530 Industry bodies should take the lead to protect the image of a sector that has at least 10,000 units and a market size of about $50 billion, growing in double digits Full Article Editorial
rd RBI slams high-cost lending, calls for affordable credit from Microfinance Institutions By www.thehindubusinessline.com Published On :: Thu, 24 Oct 2024 20:18:50 +0530 MFIs should not justify steep rates with access issues, says Jayant Kr Dash, Executive Director; Senior RBI official suggests Blended Finance could hold some answer for this issue Full Article Money & Banking
rd RBI approves third term for Axis Bank MD, CEO Amitabh Chaudhry By www.thehindubusinessline.com Published On :: Fri, 25 Oct 2024 08:38:47 +0530 Before joining Axis Bank, Chaudhry was leading HDFC Life Full Article Money & Banking
rd Record profits: PNB Q2 consolidated net zooms 137% at ₹4,714 crore By www.thehindubusinessline.com Published On :: Mon, 28 Oct 2024 14:57:51 +0530 On a standalone basis, PNB’s net profit for the quarter under review increased 145 per cent to ₹4,303 crore (₹1,756 crore) Full Article Money & Banking
rd SBI Card Q2 Net Down 33% to ₹ 404 crore By www.thehindubusinessline.com Published On :: Tue, 29 Oct 2024 20:35:20 +0530 Total revenue from operations up 8 per cent in Q2 to ₹ 4,421 crore Full Article Money & Banking
rd UPI sets new record, transactions rise to 16.58 billion in October By www.thehindubusinessline.com Published On :: Fri, 01 Nov 2024 18:07:37 +0530 Festival season spending aided the 45 per cent y-o-y rise in October UPI transactions Full Article Money & Banking
rd Bitcoin hits record high, soars above $75000 amid US election results By www.thehindubusinessline.com Published On :: Wed, 06 Nov 2024 15:12:06 +0530 Industry experts attribute surge to substantial inflows into exchange-traded funds (ETFs), increased speculation surrounding the election outcomes Full Article Crypto Currency
rd Standard Chartered sets sights on economic hubs to drive affluent client growth By www.thehindubusinessline.com Published On :: Mon, 11 Nov 2024 21:01:03 +0530 The strategy is designed to tap into India’s burgeoning wealth market, with the high-net-worth (HNW) client base expected to soar from 0.7 million two years ago to 1.7 million by 2028 Full Article Money & Banking
rd Ashes of Doom / directed by: Grant Munro, Don Arioli ; produced by: Robert Verrall, Wolf Koenig ; production agency: National Film Board of Canada (Montreal) By darius.uleth.ca Published On :: Montreal : National Film Board of Canada, 2008 Full Article
rd The Circle / directed by: Mort Ransen ; produced by: John Kemeny ; production agency: National Film Board of Canada (Montreal) By darius.uleth.ca Published On :: Montreal : National Film Board of Canada, 2020 Full Article
rd Monkey on the Back / directed by: Julian Biggs ; produced by: Grant McLean ; production agency: National Film Board of Canada (Montreal) By darius.uleth.ca Published On :: Montreal : National Film Board of Canada, 2016 Full Article