tus

Will strive hard to get OBC status for Kalinga Komati community: Andhra Pradesh CM Chandrababu Naidu

Kalinga Komati’s State president Boina Govindarajulu met CM Chandrababu Naidu and submitted a detailed petition for his perusal




tus

Design, synthesis, inhibitory activity, and molecular simulations study for D-glucose-conjugated thioureas containing pyrimidine ring as multitarget inhibitors against α-amylase, α-glucosidase, DDP-4, and PTP1B in Type 2 diabetes mellitus

RSC Med. Chem., 2024, 15,3395-3417
DOI: 10.1039/D4MD00334A, Research Article
Vu Ngoc Toan, Do Son Hai, Hoang Thi Kim Van, Nguyen Minh Tri, Duong Ngoc Toan, Nguyen Thi Thanh Mai, Nguyen Dinh Thanh
D-Glucose-conjugated thioureas from 2-aminopyrimidines had inhibitory activity against α-amylase, α-glucosidase, DPP-4, PTP1B. The cytotoxicity, inhibitory kinetics, and molecular simulations of the most potent inhibitors 8k, 8j, 8f, and 8h were studied.
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

Development, biological evaluation, and molecular modelling of some benzene-sulfonamide derivatives as protein tyrosine phosphatase-1B inhibitors for managing diabetes mellitus and associated metabolic disorders

RSC Med. Chem., 2024, Advance Article
DOI: 10.1039/D4MD00594E, Research Article
Nagat Ghareb, Khaled M. Darwish, Mohamed S. Nafie, Ranwa Elrayess, Noha M. Abourobe, Shaimaa A. Fattah, Reem M. Hazem, Eman T. Mehanna, Ranza Elrayess
One benzene-sulfonamide derivative exhibited potent protein tyrosine phosphatase-1B inhibition for managing diabetes mellitus and associated metabolic disorders.
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




tus

How ‘priority sector’ status can rev up Jan Dhan banking

How regulation can nudge private banks to promote financial inclusion




tus

Sensex scales 27,000-mark after seven-month hiatus




tus

Building a Dictaphone Using Media Recorder and getUserMedia

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




tus

Not exactly a status quo policy

The RBI has explained its food inflation concerns for those who discount them in the context of monetary policy — while flagging financial stability issues




tus

Aptus Value Housing posts 16% rise in Q2 standalone net at ₹137 cr

The Company achieved a 22 per cent % year-on-year increase in net profit in Q2 FY25, driven by business growth, stable asset quality, and a continuous focus on enhancing productivity



  • Money &amp; Banking

tus

SC verdict on AMU minority status: University’s teachers’ body welcomes judgment

Describing the decision as historic, AMUTA looks forward to the speedy resolution of the minority character case as directed by the norms of the Constitutional Bench




tus

Centre will firmly put forth its stand before Supreme Court on question of AMU's minority status: BJP

BJP to strongly defend Aligarh Muslim University’s minority status in Supreme Court, overruling 1967 judgement




tus

Minority status: Aligarh Muslim University teachers and students celebrate ‘historic’ Supreme Court verdict

Vice-Chancellor Naima Khatoon said the judgment paved way for the granting of minority status to the varsity. Students celebrated the day by distributing sweets at the varsity gate.




tus

Granules unit in Andhra Pradesh gets U.S. FDA inspection report with NAI status




tus

Owaisi hails Supreme Court ruling on AMU’s minority status

The Modi government should take this judgement in its stride, says Asad




tus

Lovely lotuses blossomed by the sun

Ramanuja’s interpretations of the Sanskrit verses proved that he had the potential of being a good commentator.



  • History &amp; Culture

tus

Comparing diverse extraction methodologies to infer the performance of 1,8-cineole extraction from Eucalyptus cinerea: process optimization, kinetics, and interaction mechanisms

RSC Adv., 2024, 14,35529-35552
DOI: 10.1039/D4RA06050D, Paper
Open Access
Divya Baskaran, Madhumitha Sathiamoorthy, Ramasamy Govindarasu, Hun-Soo Byun
Different extraction techniques were used to extract 1,8-cineole from Eucalyptus cinerea leaves, and their performance efficiency was evaluated through optimization and kinetic studies.
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

Ambitious AFI looking to shake up the status quo of Indian athletics

Post the Paris Olympics, the association has planned to completely restructure its training and competition modules, possibly allowing more freedom and opportunities to athletes in both; this includes doing away with centralised national camps, grading the training centres and academies and increasing regional events for easy access to competitions




tus

A tussle with white shoes

Soon after the school reopens, the pair turns brown in the slush and mud




tus

Centre decides to maintain status quo of return on small savings scheme

The interest rates on small savings schemes such as Public Provident Fund (PPF) and National Savings Certificate (NSC) are reset each quarter




tus

Supreme Court clarifies AMU’s minority status, rejects ‘safe haven’ argument for minorities

As part of a seven-judge Constitution bench, Justice Sharma, along with a majority, overruled a 1967 verdict that denied Aligarh Muslim University’s minority institution status.




tus

‘The cow’s status doesn’t protect her,’ says Yamini Narayanan

Yamini Narayanan argues that the cow and the Ganga have both been harmed, in the name of being sacred




tus

Polymer electrolytes with high cation transport number for rechargeable Li–metal batteries: current status and future direction

Energy Environ. Sci., 2024, 17,8457-8481
DOI: 10.1039/D4EE03097D, Review Article
Xinyuan Shan, Zhaowei Song, Hang Ding, Lengwan Li, Yuhang Tian, Alexei P. Sokolov, Ming Tian, Kang Xu, Peng-Fei Cao
The high-cation transport number polymer electrolytes (HTPEs) with simultaneously high cation transport number and high ionic conductivity could provide a solution to enable high-performance solid-state batteries.
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

High-fat diet promotes type 2 diabetes mellitus by disrupting gut microbial rhythms and short-chain fatty acid synthesis

Food Funct., 2024, 15,10838-10852
DOI: 10.1039/D4FO02957G, Paper
Yangrui Wang, Fenfen Yan, Qingxue Chen, Fei Liu, Baofeng Xu, Yuanyuan Liu, Guicheng Huo, Jinsheng Xu, Bailiang Li, Song Wang
A schematic diagram of a high-fat diet promotes type 2 diabetes mellitus by disrupting gut microbial rhythms and short-chain fatty acid synthesis.
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

Investigation of the hypoglycemic bioactive components of Phyllanthi Fructus through biological assessment combined with ultrafiltration affinity mass spectrometry

Food Funct., 2024, Accepted Manuscript
DOI: 10.1039/D4FO04198D, Paper
Yifan Zhang, Qiang Yu, Peng Tan, Shimin Tian, Jun-zhi Lin, Mengqi Li, Li Han, Haozhou Huang, Ding-kun Zhang
Phyllanthi Fructus (PF) is a tropical fruit with the potential to effectively reduce postprandial blood glucose, making it highly promising for the development of functional foods. However, the lack of...
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

Exosome-like nanoparticles from Arbutus unedo L. mitigate LPS-induced inflammation via JAK-STAT inactivation

Food Funct., 2024, 15,11280-11290
DOI: 10.1039/D4FO03646H, Paper
Cristian Martínez Fajardo, Lucía Morote, Elena Moreno-Giménez, Susana López-López, Ángela Rubio-Moraga, María José M. Díaz-Guerra, Gianfranco Diretto, Alberto J. López Jiménez, Oussama Ahrazem, Lourdes Gómez-Gómez
Exosomes have garnered attention as a potential cell-free therapy for inflammatory diseases due to their immunomodulatory and anti-inflammatory properties.
The content of this RSS Feed (c) The Royal Society of Chemistry




tus

Enhanced antifungal activity of siRNA-loaded anionic liposomes against the human pathogenic fungus Aspergillus fumigatus

Nanoscale, 2024, Advance Article
DOI: 10.1039/D4NR03225J, Communication
Open Access
Yidong Yu, Theresa Vogel, Sina Hirsch, Jürgen Groll, Krystyna Albrecht, Andreas Beilhack
Application of anionic liposomes co-loaded with amphotericin B and siRNA demonstrates a temporary antifungal effect lasting 3–4 days, highlighting their therapeutic potential.
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




tus

Der Diabetes mellitus auf grundlage zahlreicher beobachtungen / dargestellt von Dr. J. Seegen ...

Leipzig : T. O. Weigel, 1870.




tus

Ace embroiderer Annie Titus Mammen crafts an independent line of embellished pashmina stoles

Chennai-based Annie Titus Mammen, who does embroidery for Chanel, Balenciaga and Louis Vuitton, has launched Tambour’s first Independent product line of embellished pashmina stoles in Delhi




tus

HC directs authorities to file status report on decision taken to demolish dilapidated library building and construct new one

A PIL petition complains about the dilapidated condition of the building and seeks a direction to authorities to construct a new one in its place.




tus

HC seeks status report on works done to repair faulty dialysis machines at GHs




tus

NSE awaiting NoC from SEBI before filing draft prospectus for IPO

Aims to strengthen commodities segment, predicts market cap to double in 10 years




tus

Broker’s call: Aptus Value Housing Fin (Buy)

Centrum Broking




tus

In Maharashtra’s Kagal constituency, a tussle over reformer Shahu Maharaj’s progressive legacy




tus

Trump's Tariff Tussle With India

'While criticising India's high tariffs, Mr Trump stated he would impose reciprocal taxes on Indian products if re-elected.'




tus

Keep lotus in mind, but press clock on EVM: Pankaja

The BJP MLC said that while seeking votes for him, she felt like she was receiving a "send-off party" and was being freed of a responsibility.







tus

Channel24.co.za | Prince Harry shares heartfelt video message to commemorate Invictus Games

The Duke of Sussex sent a special video message to mark what would have been the opening ceremony of the 2020 Invictus Games.




tus

Black and Immigrant: Exploring the Effects of Ethnicity and Foreign-Born Status on Infant Health

This report analyzes prenatal behaviors and birth outcomes of Black immigrant mothers, and finds that Black immigrant mothers are less likely to give birth to preterm or low-birth-weight infants than U.S.-born Black women, but more likely to experience these birth outcomes than other immigrant and U.S.-born women.




tus

Addressing the Immigration Status of Illegal Immigrants Brought to the United States as Children

Testimony of Margie McHugh, Co-Director of MPI's National Center on Immigrant Integration Policy, before the House Judiciary Subcommittee on Immigration and Border Security, U.S. House of Representatives.




tus

Status2k Add Administrator

Status2k remote add administrator exploit.




tus

SUSE/Portus 2.2 Cross Site Scripting

SUSE/Portus version 2.2 suffers from a persistent cross site scripting vulnerability.




tus

Global Renewable Energy Is Status Positive

The headline figure from the authoritative REN21 Renewables Global Status Report 2015 (GSR) states renewables accounted for more than 59 percent of all new electricity generating capacity installed worldwide during 2014.




tus

Three nabbed in Laikipia while trying to sell elephant tusks

Detectives posing as potential buyers nab suspects.




tus

Mizoram’s corona-free status due to ‘discipline’ of people: CM Pu Zoramthanga




tus

Prince Harry says life has &apos;changed dramatically&apos; as he pays tribute to healthcare workers in Invictus Games video message

The Duke of Sussex has reflected on how "dramatically" life has changed, as he marked what would have been the opening ceremony of the Invictus Games.





tus

Mike Gascoyne hails big step forward for Lotus

Lotus technical chief Mike Gascoyne said his team's performance in Canada was a 'massive step forward'




tus

Lotus boss 'over the moon'

Lotus' Tony Fernandes could not contain his delight after witnessing his team's Formula One re-birth 16 years after Lotus last competed in the sport




tus

Lotus taking positives

Heikki Kovalainen says the Malaysian Grand Prix was a positive race for the team as both cars made it to the finish line, albeit in 17th and 18th positions