Lenix

JS implements a method for randomly generating strings (length can be specified)

1. Define a random interception string const _charStr = ‘abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789’; 2. Define the randomly generated index function /** * 随机生成索引* @param min 最小值* @param max 最大值* @param i 当前获取位置*/ function RandomIndex(min, max, i){ let index = Math.floor(Math.random()*(max-min+1)+min), numStart = _charStr.length – 10; //如果字符串第一位是数字,则递归重新获取if(i==0&&index>=numStart){ index = RandomIndex(min, … The post JS implements a method to randomly […]

JS implements a method for randomly generating strings (length can be specified) Read More »

Improve audio/video live streaming experience with stream mixing

流混合是一种将多个音频或视频流组合到云上的一个流技术,广泛应用于直播、在线教育、音频室直播等场景。开发人员可以通过播放混合流来查看屏幕并听到聊天室中所有成员的声音,无需管理聊天室中的每个流。 Stream mixing is a streaming technology that combines multiple audio or video streams onto the cloud, and is widely used in live broadcast, online education, audio studio live broadcast and other scenarios. Developers can view the screen and hear all members of the chat room by playing the mixed stream, without having to manage

Improve audio/video live streaming experience with stream mixing Read More »

How to use github package

1. Write in front Last time, the author introduced to you how to use the gitlab repository as an npm private package. For details, please refer to my blog post address https://ift.tt/jSZIpx5, it can be used, but Not elegant enough, for example, if you want to know the version of that package, it is not

How to use github package Read More »

JavaScript container

Most server programs are Linux programs. They include a filesystem, some executables, and possibly some shared libraries, which may interact with system software like systemd or nsswitch. Docker popularized the use of Linux containers; OS-level virtualization provided an excellent mechanism for distributing server software. Each container image is a dependency-free, ready-to-run package. Because server software

JavaScript container Read More »

PHP is killing Python

PHP is killing python . Under the impact of popular culture, many people may not agree with the views expressed in this article, but I decided to go upstream again. I think that while PHP is all despised, this programming language is more popular than ever! Why? Why isn’t PHP dead yet? Aren’t there so

PHP is killing Python Read More »

WordPress was upgraded from 4.9 to 6.0, and the PHP version used was upgraded from 7.0 to 8.0. The whole process and problem solving.

WordPress was upgraded from 4.9 to 6.0, and the PHP version used was upgraded from 7.0 to 8.0. The whole process and problem solving. step: 1. In the wordpress background, update the program and upgrade from wordpress4.9 to 6.0 online. The update process will upgrade the wordpress program and database. Everything is done automatically. 2.

WordPress was upgraded from 4.9 to 6.0, and the PHP version used was upgraded from 7.0 to 8.0. The whole process and problem solving. Read More »

css two colors flicker js two ways to set color flicker

css two colors flashing js two ways to set color flashing The first: random flickering function changeColor() { var color=”orange|#FFFFFF”; color=color.split(“|”); $(“#setxfld”).css(“background”,color[parseInt(Math.random() * color.length)]); xfld.attr(‘fill’,color[parseInt(Math.random() * color.length)]); } setInterval(‘changeColor()’,1000); The second: orderly flashing var colorFlag = 0; function changeColor() { if (!colorFlag) { $(“#setxfld”).css(“background”,”#FF9B1A”); colorFlag = 1; }else{ … The post css two color flashing

css two colors flicker js two ways to set color flicker Read More »