# 修改 supervisor 配置文件,添加 gunicorn 进程管理 The configuration for adding myweb.py at the bottom of the supervisor.conf /home/wang/supervisor/super is my project directory "[program:myweb]command=/home/wang/supervisor/super/bin/gunicorn -w 4 -b 0.0.0.0:8000 myweb:app directory=/home/wang/supervisor startsecs=0 stopwaitsecs=0 autostart=false autorestart=false user=wang stdout_logfile=/home/wang/supervisor/log/gunicorn.log stderr_lo
Controls. currentposition: Double;
Current Progress
Controls. currentpositionstring: string;
Current progress, in string format. For example"
Controls. fastforward;
Fast forward
Controls. fastreverse;
Quick Return
Controls. Next;
Next song
Controls. Previous;
Last Song
[Settings]
WMP. settings // basic player settings
Settings. Volume: integer;
Volume, 0-100
Analysis of HTML language-12 ▲ Top
12. Multimedia mark
■
Src = "your. mid"Set the midi file and path, which can be relative or absolute.
Autostart = trueWhether to automatically play the music after the music file is uploaded. True: Yes; false: No (internal value ).
Loop = infiniteWhether to automatically replay the video. LOOP = 2 indicates repeated twice, and Infinite indicates repeated multiple tim
select the. wma or. wmv file to play. When you select a file (and click OK), the Code sets the URL attribute of Player as the selected file. Because the Player autoStart attribute is set to True by default, the Player immediately opens and plays the Selected digital media file.
Next, add the code for the play/pause button. In the code window, Click in the stop or pause menu, and then Click in the method name list. Add the following code to the Click
Detailed usage of AxWindowsMediaPlayer
Favorites
Find me and familiarize myself with what I have done.
Attribute/method name: Description:[Basic attributes]URL: String; specifies the media location, local or network addressUiMode: String; player interface mode, which can be Full, Mini, None, InvisiblePlayState: integer; playback status, 1 = stopped, 2 = paused, 3 = played, 6 = buffering, 9 = connected, 10 = readyEnableContextMenu: Boolean; enable/disable context menuFullScreen: boolean; Whethe
Embedded audio and video in a webpage can fully display the multimedia features of the webpage, especially with the popularization of broadband networks, making network broadcast and online video a reality, the importance of webpage audio and video is also becoming increasingly prominent. Specifically, there are three ways to embed webpage audio and video:
1. bgsound(1) Basic Syntax:Bgsound src = URLNote: bgsound is used to insert background music, but it is only applicable to IE and IE browsers
a lot of effort to put some wonderful short films and some classic MTV into the WMV format. Although I cannot download them now, as long as there are not too many connected people, playing is still very smooth ^_^
WMP is added with the ActiveX decoder control, which not only supports playing music, but also flash and other video files.To use WMP for continuous playback, please refer to the ASX element file usage instructions: Use ASX PlayList
The above player is old-fashioned, version 6.4! The
, Windows ME, and Windows 2000 9.00.00.2991 WMP 9 series, for Windows Server 2003 10.00.00.3646 WMP 10
Bytes ---------------------------------------------------------------------------------------------------------------
The official insertion method is really simple, and I want to get rid of them,
Classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6">The following figure shows the availability of specific parameters in different browsers. This stuff is so useful. Many parameters are ve
the # jfocus_pic style;}}Catch (E){For (I = 0; I {I = value? Imglist [I]. style. Display = "Block": imglist [I]. style. Display = "NONE"; // display the current image and hide other images;}}}Function mouse (n ){For (VAR I = 0; I (Function (n ){Num [I]. onmouseover = imglist [I]. onmouseover = function () {clearinterval (autostart); MEA (n) ;}// stop the automatic switch after the mouse passes, and pass the current parameter n to the function MEA ()N
modify the URL attribute to select a stream.
// Basic player attributesSettings. Volume: integer; volume: 0-100Settings. autostart: Boolean; Whether to play automaticallySettings. Mute: Boolean; muteSettings. playcount: integer; number of playbacks
// Attributes of the current playback MediaCurrentmedia. Duration: Double; total media LengthCurrentmedia. durationstring: string; total media length, in string format. For example"Currentmedia. getiteminf
compressed data, from UNIX
Next, copy ramdisk.imgto another directory, change its name to ramdisk.img.gz, and run the command
Gunzip ramdisk.img.gz
Create a folder named ramdisk.
Cpio-I-f ../ramdisk. img
Now you can see and operate the content in ramdisk. Of course, you can also perform operations directly outside, but we recommend that you concentrate all the content extracted from cpio in a folder, because we will compress it into a new ramdisk. IMG later.
OK. Now let's start the modification
; nextCtlcontrols. Previous; previous line[Settings] WMP. settings // basic player settingsSettings. Volume: integer; volume: 0-100Settings. autostart: Boolean; Whether to play automaticallySettings. Mute: Boolean; muteSettings. playcount: integer; number of playbacks[Currentmedia] WMP. currentmedia // current media attributeCurrentmedia. Duration: Double; total media LengthCurrentmedia. durationstring: string; total media length, in string format. Fo
.------- Autostart = "true" indicates automatic playback when the current page is loaded. If you do not want to play the video, change it to autostart = "false ";------ Loop = "true" indicates Infinite loop Playing of music until the current page is closed. If you do not want loop Playing to be replaced by loop = "false", it will be OK;
Step 2:
Here we have already added the code, and what we need is the li
. In this case, we only need to write the executable file path of the process to be managed into the supervisor configuration file. This saves us the trouble of writing control scripts by ourselves when we are like a linux management process. Second, the managed process acts as the sub-process of the supervisor. When the sub-process fails, the parent process can accurately obtain the information of the sub-process, so of course, You can automatically restart the crashed sub-process. Of course, r
possible wireless network environment, therefore, check whether the ip address can be obtained through wlan0. If yes, exit the loop to avoid an endless loop. 1 if [-z $ theip] 2 then3 theip = 'ifconfig wlan0 | grep inet | grep-v inet6 | grep-v 127.0.0.1 | awk '{print $2}' '4 fi the final script is as follows: 01 #! /Bin/bash02 www.2cto.com theip = ''; 03 while [-z $ theip] 04do05 sudo yah3c06 sleep 207 nmcli con up id "Wired connection 1" 08 sleep 209 theip = 'ifconfig eth0 | grep inet | grep-v
Linux kvm Virtual Machine NAT/BRIDGE configuration, kvmnat
Host Nic Configuration:
When you install KVM in NAT mode, it is configured by default. If not:
Retrieve NAT:# Virsh net-define/usr/share/libvirt/networks/default. xml // target:/etc/libvirt/storage/default. xml# Virsh net-autostart defalut // target:/etc/libvirt/storage/autostart/default. xml# Virsh net-start default[Root @ ywzx-01 ~] # Virsh net-li
1.
Parameter description:
Parameters
Description
Src
Set the midi path, which can be relative or absolute.
Autostart
Whether to play the video automatically after the music is downloaded. True Yes, false no (default)
Loop
Whether to enable automatic replay. Loop = 2 indicates repeated twice, loop =-1 indicates infinite Loops
2.
Parameter description:
Parameters
Description
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.