Build a single-node Hadoop from sketch

  Dependent environment First need java support Download the 1.8 version of jdk After downloading, decompress, and declare JAVA_HOME in the environment variable After saving, use the source command to make the environment variable take effect Download the hadoop file In this post, we will be using version 2.10. Unzip to the directory you want to place in… Read More »

Implementing High-availability Architecture Using Docker and Rancher | Step-by-step Instructions

The current development situation in the technological world is to free developers from tedious application configuration and management, use container images to handle complex program operation-dependent library requirements, and ensure the consistency of the code operating environment. Since the benefits of this are so clear, why doesn’t the infrastructure environment in the enterprise switch to container clusters? The… Read More »

Introducing 8 Component Communication Mechanisms in Vue.Js | Vue.Js Interview Questions

  This post will summarize 8 component communication mechanisms in Vue.Js. The daily development of component communication is close, and familiarity with component communication can better develop business. Vue.js Passing values between components 1. The parent component passes the value to the child component Generally, this involves the following procedures: Introduce child components in parent components Register subcomponents… Read More »

Getting Started with ActiveMQ 5

This article mainly records the configuration and writing process of ActiveMQ from installation to application to the project. You quickly configure the application following this post. You can download ActiveMQ from its official website. Modify the configuration First, find the activemq.xml file in the config directory. Then, find the <policyEntries> tag, add the following configuration under the tag… Read More »

Best practices of developing SpringCloud-based microservices

Nowadays, SpringCloud-based microservice development is becoming more and more popular, and various open-source projects on the Internet are emerging endlessly. We can refer to open source projects to implement many out-of-the-box functions in actual work, but we must abide by certain conventions and specifications. This post combines some of the problems encountered in our actual development to sort… Read More »

音频文件格式与转换 Introduction on Audo File Format and Audio Converter

音频格式简介 音频文件格式专指存放音频数据的文件的格式。存在多种不同的格式。 一般获取音频数据的方法是:采用固定的时间间隔,对音频电压采样(量化),并将结果以某种分辨率(例如:CDDA每个采样为16比特或2字节)存储。采样的时间间隔可以有不同的标准,如CDDA采用每秒44100次;DVD采用每秒48000或96000次。因此,采样率,分辨率和声道数目(例如立体声为2声道)是音频文件格式的关键参数。 需要分清楚的是音频文件和编解码器不同。尽管一种音频文件格式可以支持多种编码,例如AVI文件格式,但多数的音频文件仅支持一种音频编码。 有两类主要的音频文件格式: 无损格式,例如WAV,FLAC,APE,ALAC,WavPack(WV) 有损格式,例如MP3,AAC,Ogg Vorbis,Opus 有损文件格式是基于声学心理学的模型,除去人类很难或根本听不到的声音,例如:一个音量很高的声音后面紧跟着一个音量很低的声音。MP3就属于这一类文件。 无损的音频格式(例如FLAC)压缩比大约是2:1,解压时不会产生数据/质量上的损失,解压产生的数据与未压缩的数据完全相同。如需要保证音乐的原始质量,应当选择无损音频编解码器。例如,用免费的FLAC无损音频编解码器你可以在一张DVD-R碟上存储相当于20张CD的音乐。 有损压缩应用很多,但在专业领域使用不多。有损压缩具有很大的压缩比,提供相对不错的声音质量。 值得注意的是,根据各流行音乐出版商及内容提供商的数据,FLAC是目前应用最广泛的无损音乐格式。FLAC(全称为 Free Lossless Audio Codec),中文直译为自由无损音频压缩编码(注:这里的“Free”指的是自由软件,而并不仅是免费)。FLAC是一款的自由音频压缩编码,其特点是可以对音频文件无损压缩。不同于其他有损压缩编码(如MP3 、AAC等),压缩后不会有任何音质损失,现在已被很多软件及硬件音频产品所支持。 音频格式转换教程 音频格式转换通常需要使用音频格式转换工具。一个合格的音频格式转换工具需要满足以下几点特性: 能够将多种常用的音频文件格式转换为指定的音频文件格式。源音频文件包括:MP3、WMA、FLAC等;目标音频文件包括:MP3、WMA、VOX、WAV、FLAC等。 能对转换为指定的音频文件格式的参数进行任意设置,参数包括 频率(Frequency)kHz 采样位(Sample)Bits 声道(Channel):单声道(Mono),立体声(Stereo); 支持批量转换,操作简单; 开源免费 本文推荐以下几个开源免费的音频格式转换软件(可直接在Release中下载):   Introduction to Audio Format Audio file format refers to the format of the file storing audio data. There are many different formats. The general method to… Read More »