小编Mas*_*ani的帖子

在推送到Git master分支时自动更新数百个Windows部署

我正在尝试使用Git来管理许多Windows服务器上安装的产品.这是当前状态:

  • 每个客户都拉了存储库并且在master分支机构上,
  • 服务器始终打开并连接到Internet,
  • 我有完全访问权限(管理员)到服务器,但其他一些人(我公司外)也可以访问,所以我应该小心使用SSH密钥等凭据,
  • 产品源代码很小(不超过5MB).

当我(作为开发人员)推送提交到masterGit服务器上的分支时,以下是我想要实现的:

  • 所有Windows服务器都会自动提取新提交并将其副本更新到最新版本,
  • 执行一些脚本(重启某些服务,运行测试等),
  • 记录整个更新过程,
  • 服务器将其当前状态(Git提交,标记和分支)报告给远程服务器,以便每次推送后检查所有服务器的状态.

我有什么选择?有没有软件或我必须建立自己的软件?我检查了Git钩子,但是在我手动拉动每个服务器上的代码之后它们似乎触发了.

git deployment continuous-integration github continuous-deployment

13
推荐指数
1
解决办法
161
查看次数

KVO时iOS 11 AVPlayer崩溃

使用AVPlayer播放远程视频时,我遇到了一个奇怪的崩溃.从Fabric上的崩溃日志开始,应用程序在系统线程上崩溃(com.apple.avfoundation.playerlayer.configuration).崩溃日志如下:

Crashed: com.apple.avfoundation.playerlayer.configuration
0  libsystem_kernel.dylib         0x1839ac2e8 __pthread_kill + 8
1  libsystem_pthread.dylib        0x183ac12f8 pthread_kill$VARIANT$mp + 396
2  libsystem_c.dylib              0x18391afbc abort + 140
3  libsystem_malloc.dylib         0x1839e3ce4 szone_size + 634
4  QuartzCore                     0x187ed75e8 -[CALayer dealloc] + 72
5  QuartzCore                     0x187e75d90 CA::Transaction::commit() + 1052
6  AVFoundation                   0x18973b4a8 -[AVPlayerLayer observeValueForKeyPath:ofObject:change:context:] + 684
7  Foundation                     0x1847a2894 NSKeyValueNotifyObserver + 304
8  Foundation                     0x1847bc364 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 204
9  Foundation                     0x1847bc13c -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 124
10 AVFoundation                   0x189760714 -[AVPlayer addObserver:forKeyPath:options:context:] + 204 …
Run Code Online (Sandbox Code Playgroud)

objective-c avfoundation ios avplayer swift

10
推荐指数
1
解决办法
1625
查看次数

当我们开始使用Accord捕获视频时,CPU和内存消耗量很高

我正在使用Accord.Video.FFMPEG来录制屏幕.我面临的问题是CPU和内存利用率都过高.通常,我们的进程使用最大2%的CPU和30 MB的内存,但是当我们开始视频捕获时,CPU上升到17%,内存达到700MB.我试着把

所以GC.Collect();

但没有用.

private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
    try
    {
        if (this._isRecording)
        {
            int screenRecordingLength = screenRecrodingRule != null ? screenRecrodingRule.length : 500;
            //Bitmap frame;
            Bitmap frame = eventArgs.Frame;
            {
                Graphics graphics = Graphics.FromImage(frame);
                try
                {
                    CURSORINFO pci;
                    pci.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(typeof(CURSORINFO));
                    if (GetCursorInfo(out pci))
                    {
                        if (pci.flags == CURSOR_SHOWING)
                        {
                            int x = pci.ptScreenPos.x - screenLeft;
                            int y = pci.ptScreenPos.y - screenTop;

                            Color c = Color.Yellow;
                            float width = 2;
                            int radius = 30;
                            if ((Control.MouseButtons & …
Run Code Online (Sandbox Code Playgroud)

.net c# video-capture aforge accord.net

7
推荐指数
1
解决办法
342
查看次数