publish

【官方文档】Nginx模块Nginx-Rtmp-Module学习笔记(一) RTMP 命令详解

别来无恙 提交于 2020-01-26 14:54:45
源码地址:https://github.com/Tinywan/PHP_Experience 说明:   rtmp的延迟主要取决于播放器设置,但流式传输软件,流的比特率和网络速度(以及响应时间“ping”)可能会对延迟产生影响,具有播放器的本地rtmp服务器 使用“否”缓冲区(如0.1-0.2秒缓冲区等)可能会在0.8-1.2秒之间总是延迟,当事情正好工作时 nginx配置文件 rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off;         exec ffmpeg -i rtmp://localhost/live/$name -threads 1 -c:v libx264 -profile:v baseline -b:v 350K -s 640x360 -f flv -c:a aac -ac 1 -strict -2 -b:a 56k rtmp://localhost/live360p/$name; } application live360p { live on; record off; allow publish 127.0.0.1; allow publish 0.0.0.0; deny publish all; } } } 以上为vlc播放测试结果

Selenium .NET core 2.2 published project exe not running even on Windows x64

不羁岁月 提交于 2020-01-24 12:12:38
问题 When I build and publish project, the exe generated in the Published folder doesn't Open then closes within a sec. Can anyone help me to resolve the error ? When I ran the exe from CMD line I am getting this error. cd ..Path_to_Project\WebShopTestAutomation dotnet restore dotnet build dotnet test An assembly specified in the application dependencies manifest (WebShopTestAutomation.deps.json) has already been found but with a different file extension. The full project is here. Please read the

Selenium .NET core 2.2 published project exe not running even on Windows x64

浪子不回头ぞ 提交于 2020-01-24 12:12:25
问题 When I build and publish project, the exe generated in the Published folder doesn't Open then closes within a sec. Can anyone help me to resolve the error ? When I ran the exe from CMD line I am getting this error. cd ..Path_to_Project\WebShopTestAutomation dotnet restore dotnet build dotnet test An assembly specified in the application dependencies manifest (WebShopTestAutomation.deps.json) has already been found but with a different file extension. The full project is here. Please read the

搭建企业级npm服务

六眼飞鱼酱① 提交于 2020-01-24 03:33:42
为什么要搭建npm企业私服   1、确保npm服务快速、稳定:对于企业来说,开发的时候,需要花半小时甚至更久等待npm模块依赖安装完毕,是不可接受的。部署镜像后,可以确保高速、稳定的npm服务。   2、发布私有模块:官方的npm上的模块全部是开源的。一些与企业业务逻辑相关的模块可能不适合开源。这部分私有的模块放在私有NPM仓库中,使用起来各种方便。   3、控制npm模块质量和安全:npm上的模块质量参差不齐,搭建私有仓库,可以更严格地控制模块的质量和安全   4、有些npm上面的包你希望更改源码二次开发而无从下手的时候,你只需要修改源码后需改为更高版本发布到私服上就可以使用维护了 mac上测试 sinopia 安装 cnpm i sinopia -g 启动 sinopia warn --- config file - /Users/**/.config/sinopia/config.yaml warn --- http address - http://localhost:4873/ 注意:上面输出的两条信息相当重要 服务器中 sinopia 的配置文件存放的位置,后期的配置都需要修改这个文件 sinopia 提供服务的地址,默认4873 sinopia 就搭建完成了,还能更简单么?No。 配置 sinopia sinopia 搭建完成后就可以发布 npm 包了, npm

rest-framework框架的基本组件

試著忘記壹切 提交于 2020-01-24 02:51:31
rest-framework框架的基本组件 快速实例 Quickstart 序列化 创建一个序列化类 简单使用 开发我们的Web API的第一件事是为我们的Web API提供一种将代码片段实例序列化和反序列化为诸如 json 之类的表示形式的方式。我们可以通过声明与Django forms非常相似的序列化器(serializers)来实现。 models部分: from django.db import models # Create your models here. class Book(models.Model): title=models.CharField(max_length=32) price=models.IntegerField() pub_date=models.DateField() publish=models.ForeignKey("Publish") authors=models.ManyToManyField("Author") def __str__(self): return self.title class Publish(models.Model): name=models.CharField(max_length=32) email=models.EmailField() def __str__(self): return self.name

[Python自学] restframework

孤街醉人 提交于 2020-01-22 15:40:09
一、数据序列化的几种方式 在Django的视图函数中,我们从数据库中获取数据,由以下几种方式将其序列化成JSON数据: 1.方式一 class PublishView(View): def get(self, request): publish_list = list(Publish.objects.all().values()) return HttpResponse(json.dumps(publish_list)) 通过list强转的方式。 前台接收到的数据: [{"id": 1, "name": "\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e", "email": "qh@gmail.com"}, {"id": 2, "name": "\u5de5\u4e1a\u51fa\u7248\u793e", "email": "gy@gmail.com"}, {"id": 3, "name": "\u90ae\u7535\u51fa\u7248\u793e", "email": "yd@gmail.com"}, {"id": 4, "name": "\u56db\u5ddd\u6587\u5b66\u51fa\u7248\u793e", "email": "scwx@gmail.com"}] 2.方式二 class PublishView

Angular PWA in IIS subfolder not work offline

谁说胖子不能爱 提交于 2020-01-22 03:29:13
问题 When I publish angular pwa application to subfolder in IIS, pwa application not work in offline. ng build --prod --baseHref=/subfolder/ does not help. I use https on web site. How exactly reconfigure angular pwa application to work offline if application is not published to root of IIS but to subfolder of IIS? Does anybody have functional demo of angular pwa application working offline after publishing to IIS subfolder? 回答1: I know I am very late on this, I have also struggled on this and

Error Creating Webjob schedule

眉间皱痕 提交于 2020-01-21 04:43:06
问题 I have the source code hosted in a TFS 2012 on premise installation. When I try to publish my Azure WebJob to Azure from Visual Studio 2015, I get the following error. Error : An error occurred while creating the WebJob schedule: Response status code does not indicate success: 409 (Conflict). The WebJob does get created under the web application, but it is set to On Demand rather than scheduled. When I open Fiddler to try to troubleshoot this issue, I get the following error. Error ERROR

The Github Flow

a 夏天 提交于 2020-01-20 22:11:02
推荐 https://zhuanlan.zhihu.com/p/39148914 https://github.com/rozbo/blog/issues/6 GUI就不推荐了。 what each symbol means? git flow,终于繁琐的命令无法成为git学习的挡路石 初始化: git flow init 开始新Feature: git flow feature start MYFEATURE Publish一个Feature(也就是push到远程): git flow feature publish MYFEATURE 获取Publish的Feature: git flow feature pull origin MYFEATURE 完成一个Feature: git flow feature finish MYFEATURE 开始一个Release: git flow release start RELEASE [BASE] Publish一个Release: git flow release publish RELEASE 发布Release: git flow release finish RELEASE 别忘了git push --tags 开始一个Hotfix: git flow hotfix start VERSION [BASENAME]

视图组件

对着背影说爱祢 提交于 2020-01-19 21:58:57
写一个出版社的增删查改resful接口 models.py class Book(models.Model): name = models.CharField(max_length=32) price = models.DecimalField(max_digits=5, decimal_places=2) publish_date = models.DateField() category = models.IntegerField(choices=((0, '文学类'), (1, '情感类')), default=1, null=True) publish = models.ForeignKey(to='Publish', on_delete=models.CASCADE, null=True) authors = models.ManyToManyField(to='Author') def __str__(self): return self.name class Author(models.Model): name = models.CharField(max_length=32) age = models.IntegerField() class Publish(models.Model): name = models.CharField(max_length=32)