publish

Redis Cluster vs ZeroMQ in Pub/Sub, for horizontally scaled distributed systems

只愿长相守 提交于 2019-12-03 10:07:50
If I were to design a huge distributed system whose throughput should scale linearly with the number of subscribers and number of channels in the system, which would be better ? 1) Redis Cluster (only for Redis 3.0 alpha, if its in cluster mode, you can publish in one node and subscribe in another completely different node, and the messages will propagate and reach you). The complexity of Publish is O(N+M) , where N is the number of subscribed clients and M is the number of subscribed patterns in the system, but how does it scale when in a Redis Cluster ? I accept educated guesses on this. 2)

jenkins publish .net core application to linux server in docker

浪子不回头ぞ 提交于 2019-12-03 09:35:13
上一个Demo进行了单独的Jenkins远程部署, 本Demo将使用流行的Jenkins+Git+Docker进行持续部署. 准备Linux服务器 和上一篇Demo一样, 在Azure创建一台CentOS7服务器, 开放22端口供SSH使用, 并且开放了5000和5001端口. 安装DotNet Core 基于微软官方文档, SSH到服务器使用如下命令安装: sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm sudo yum install dotnet-sdk-3.0 安装Docker 这一步是比之前多出来的, 因为这次我们要基于Docker进行持续部署, 根据官方文件: # 卸载旧版本, 因为我是一台新的服务器, 这一步可以不做 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine # 安装需要用到的包 sudo yum install -y yum-utils \ device-mapper

jenkins publish .net core application to linux server

三世轮回 提交于 2019-12-03 09:21:18
最近学习Docker与Jenkins, 网上大部分都是关于Jenkins+Git+Docker进行持续远程部署, 我一直在考虑为什么Jenkins和Docker要绑定一块使用, 因为我想单独使用Jenkins进行本地构建然后远程部署, 那么这就开始行动. 准备Linux服务器 我在Azure创建了一台CentOS7服务器, 开放22端口供SSH使用, 并且开放了5000和5001端口. 安装DotNet Core 基于微软官方文档, SSH到服务器使用如下命令安装: sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm sudo yum install dotnet-sdk-3.0 配置Jenkins Jenkins的安装请参考我的之前的一篇博文, 在此基础上, 我们安装如下插件: Publish over SSH 安装完成之后配置相关参数: Manage Jenkins -> Configure System 去配置SSH服务器的参数. 同时还需要添加环境变量允许本地执行dotnet, 首先输出本地所有环境变量: echo $PATH 然后以输出内容为值, 以Path为键, 添加到Global properties -> Environment

Wix error code 2343

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am packaging a MSI using WIX. The binaries need to be installed on a UNC drive (\share\xxxz\east). The installation works fine, the binaries are installed on the UNC, but I get the following error during uninstallation. "The installer has encountered an unexpected error installing the package. This may indicate a problem with this package. The error code is 2343." What's driving me crazy is why the installation works and the uninstall fails! Below is what my wix script looks like... <?xml version="1.0" encoding="UTF-8"?> <!-- Create the

Automatic publish Beta Android app to the Google Play store

北城余情 提交于 2019-12-03 09:08:48
问题 I am looking for a method that I can use to automatically publish an application to both the alpha and beta testing streams on the Google Play store, from my CI server. My CI setup is as follows: The Android app is written using Android Studio (using Eclipse really isn't an option for us). The build scripts are written in Rake, and run the Gradle tasks, as well as Calabash-Android tests. The build server is Teamcity 8+, that is currently hosted locally (though we could be moving across to

dotnet core publish: include/exclude dir in output

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Given aspnet project with folders: / / sql / WebApp / Client / wwwroot / Views On project.json I used "publishOptions" : { "include" : [ "..\\sql" , "wwwroot" , "Views" , "web.config" ] } And after dotnet publish there was sql , wwwroot and Views folders. After migration to csproj (Microsoft.NET.Sdk.Web), I got <None Update = "..\sql\**\*;wwwroot\**\*;Views\**\*" > <CopyToPublishDirectory> PreserveNewest </CopyToPublishDirectory> </None> After msbuild15 /t:publish (cli not works for me) there is wwwroot , Views AND Client with only

Delphi XML traversing

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to Delphi. I wanted to find all the authors under each subject. Here is my XML <?xml version="1.0"?> <catalog> <subject id="computer"> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML.</description> </book> <book id="bk112"> <author>Galos, Mike</author> <title>Visual Studio 7: A Comprehensive Guide</title> <genre>Computer</genre> <price>49.95<

How to publish a constant string in the Rust FFI?

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to have a Rust library expose a const char * static string to C, to be compatible with an existing interface (specifically librsync ). That is, the C header file has extern char const *my_string; In C, the library would simply have char const *my_string = "hi"; In Rust I've tried something like pub static my_string: *const libc::c_char = unsafe { "hi\0" as *const libc::c_char }; but this complains error: casting `&'static str` as `*const i8` is invalid It seems like I can't use CString etc because they won't be a compile-time constant

Fix VS Mobile Center Error: Publish build artifacts failed with error: Not found PathtoPublish

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When starting a build in Visual Studio App Center I am getting this error in the build logs. How do I fix this? ============================================================================== ##[error]Publish build artifacts failed with error: Not found PathtoPublish: /Users/ci/agent/vstsagent/_work/1/a/symbols ##[section]Finishing: Publish symbols ##[section]Starting: Create distribution ============================================================================== Task : Mobile Center Upload Description : Upload mobile app packages to

Exclude files from web site publish in Visual Studio

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can I exclude a folder or files when I publish a web site in Visual Studio 2005? I have various resources that I want to keep at hand in the Solution Explorer, such as alternate config files for various environments, but I don't really want to publish them to the server. Is there some way to exclude them? When using other project types, such as a .dll assembly, I can set a file's Build Action property to "None" and its Copy to Output Directory property to "Do not copy". I cannot find any similar settings for files in a web site. If the IDE