publish

Swingworker with FileVisitor class and walkFileTree(), which iterates internally over a “set” of files in a directory tree; where to publish()?

£可爱£侵袭症+ 提交于 2019-12-04 05:33:46
问题 It seems like the long-running tree walker task should be defined in a class like so: public class TreeWalker extends SwingWorker<Void,String> implements FileVisitor<Path> And begun somewhere like so: TreeWalker walker = (new TreeWalker()); walker.execute(); The long-running task is not only initiated by but completely carried out by a single call to walkFileTree() , a method in the Files class. So surely the call to it has to be in doInBackGround() . protected Void doInBackground() throws

VS2012 Publish Web Site dlls instead of cs-files

烂漫一生 提交于 2019-12-04 05:26:13
I have a simple ASP.NET project that I want to publish. I right-click on the project and press "Publish Web Site", however this generates all my .cs files to the selected folder, previously I've been getting dll files in my bin folder instead of the .cs files. What am I doing wrong? The problem will be probably in the Publish setting. Please check if the option Precompile during publishing is selected. You can find the option here - Right click on the Project - Publish Web Site - section Settings - subsection File Publish Options - option Precompile during publishing . To publish your website

publish dotnet core angular spa app to docker

 ̄綄美尐妖づ 提交于 2019-12-04 03:52:32
公司一个使用Angular开发的应用准备下个版本使用.Net Core开发后台, 刚好可以用到.Net Core Angular Spa模板, 而且最近也在学习Docker, 于是就想把它融汇贯通, 之前往Docker上部署过.Net Core MVC的应用, 那个比较简单, 使用微软官方文档的示例即可. 于是在使用.Net Core Angular Spa的时候, 我依葫芦画瓢发现这是走不通的, 因为Angular应用在构建的时候除了依赖.Net Core SDK还依赖于Node, 直接使用原来的Dockerfile作为模板行不通. 在原来的木板上需要加上安装Node的命令: RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - RUN apt-get install -y nodejs 整个完整示例如下: FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - RUN apt-get install -y nodejs WORKDIR /app COPY src/. ./src/ WORKDIR /app/src/WebApp RUN dotnet

深入理解.NET Core的基元(二)

此生再无相见时 提交于 2019-12-04 01:25:49
原文:Deep-dive into .NET Core primitives, part 2: the shared framework 作者: Nate McMaster 译文:深入理解.NET Core的基元(二) - 共享框架 作者: Lamond Lu 本篇是之前翻译过的《 深入理解.NET Core的基元: deps.json, runtimeconfig.json, dll文件 》的后续,这个系列作者暂时只写了3篇,虽然有一些内容和.NET Core 3.0已经不兼容了,但是大部分的原理还都是相通的,所以后面的第三篇我也会翻译。 深入理解.NET Core的基元(一):deps.json, runtimeconfig.json, dll文件 深入理解.NET Core的基元(二):共享框架 深入理解.NET Core的基元(三):深入理解runtimeconfig.json 前言 # 自.NET Core 1.0起,共享框架(Shared Framework)就已经成为了.NET Core的重要组成部分。自.NET Core 2.1起,ASP.NET Core就已经作为共享框架的第一次出现。你可能从来注意过这一点,但是在设计它的时候,我们经历了许多反复和持续的讨论。在本篇文章中,我们将深入共享框架并讨论一些开发人员经常遇到的一些陷阱。 基础部分 # .NET

laravel实现多模块

感情迁移 提交于 2019-12-03 23:36:31
一、这里使用Caffienate Modules 网址:modules maintained by caffeinated 二、根据自己的版本选择包的版本 三、在项目composer.json文件中加入"caffeinated/modules": "3.0.*",并运行 composer update 四、更新完成之后在config/app.php中加入以下代码   'providers' => [   Caffeinated\Modules\ModulesServiceProvider::class,   ],   'aliases' => [   'Module' => Caffeinated\Modules\Facades\Module::class,   ], 五、在命令行中输入php artisan make:module Manage 六、生成以下文件则成功 七、最后输入php artisan vendor:publish 来源: https://www.cnblogs.com/starluke/p/11811494.html

07 Django模型层(2)

谁说我不能喝 提交于 2019-12-03 20:58:33
多表操作 创建模型 实例:我们来假定下面这些概念,字段和关系 作者模型:一个作者有姓名和年龄。 作者详细模型:把作者的详情放到详情表,包含生日,手机号,家庭住址等信息。作者详情模型和作者模型之间是一对一的关系(one-to-one) 出版商模型:出版商有名称,所在城市以及email。 书籍模型: 书籍有书名和出版日期,一本书可能会有多个作者,一个作者也可以写多本书,所以作者和书籍的关系就是多对多的关联关系(many-to-many);一本书只应该由一个出版商出版,所以出版商和书籍是一对多关联关系(one-to-many)。 模型建立如下: from django.db import models # Create your models here. class Author(models.Model): nid = models.AutoField(primary_key=True) name=models.CharField( max_length=32) age=models.IntegerField() # 与AuthorDetail建立一对一的关系 authorDetail=models.OneToOneField(to="AuthorDetail",on_delete=models.CASCADE) class AuthorDetail(models.Model):

Silverlight application cannot access WCF services on other machines

最后都变了- 提交于 2019-12-03 18:07:41
问题 I have a silverlight application which works perfectly and can access the WCF services which are hosted in silverlight application itself. The port it is using is 1794. When I deploy to other servers (dev or test or staging), the application is not able to access WCF services. This is a snippet from my ServiceReference.ClientConfig looks like <endpoint address="http://localhost:1794/MyWebService.svc" binding="customBinding" bindingConfiguration="CustomBinding_MyWebService" contract=

Google Drive Page Not Found - Sorry, unable to open the file at this time

徘徊边缘 提交于 2019-12-03 15:41:25
问题 I'm using google scripts to deploy a web app. I've done about 5-10 in the same account. When I try and run the web app/script, I'm now getting: a " Google Drive: Page not found " in the title and the message Sorry, unable to open the file at this time. Please check the address and try again. I published it to run as the owner , but accessible to " Anyone, even anonymous ". I then tried creating a new small project with a doGet() method that returns a small static web page, with the same

191028DjangoORM之多表操作

三世轮回 提交于 2019-12-03 15:23:50
一、多表操作之一对多 models.py from django.db import models class Book(models.Model): name = models.CharField(max_length=30) price = models.FloatField() pub_date = models.DateField() publish = models.ForeignKey('Publish',on_delete='CASCADE') #外键关联 def __str__(self): return self.name # 作者和书的关系是多对多的关系 class Author(models.Model): name = models.CharField(max_length=20) # 书和出版社的表是一对多的关系 class Publish(models.Model): name = models.CharField(max_length=32) city = models.CharField(max_length=32) 1、插入数据 方式一 Book.objects.create(name="Liunx运维手册",price=99,pub_date="2018-08-08",publish_id=2) #直接对外键_id赋值 方式二 publish

fanout(Publish/Subscribe)发布/订阅

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 14:54:30
1.模型 2.创建生产者 package com.dwz.rabbitmq.exchange.fanout; import java.io.IOException; import java.util.concurrent.TimeoutException; import com.dwz.rabbitmq.util.ConnectionUtils; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; public class Producer { public static void main(String[] args) throws IOException, TimeoutException { Connection connection = ConnectionUtils.getConnection(); Channel channel = connection.createChannel(); String exchangeName = "test_fanout_exchange"; String msg = "hello rabbitmq fanout message successs!--"; for(int i = 0; i < 50; i++) { channel