Docker-compose container using host DNS server
I'm running several containers on my "Ubuntu 16.10 Server" in a "custom" bridge network with compose 2.9 (in a yml version 2.1). Most of my containers are internally using the same ports, so there is ...
- Modified
- 21 May at 13:50
Handle variable number of out parameters with less code duplication in C#
I'm trying to write a function that populates strings with the contents of an array, or sets them to null. The number of strings is can vary and I don't want to add requirements like them all being pa...
- Modified
- 23 May at 11:53
Git how to clone with SSH key, username
I have the following and i need to clone the repository in either windows terminal command prompt or linux. - - - I tried as : ``` git clone git@xxxxx.com:xxx/xxx/git ``` I get ``` Permission denied...
Programmatically change custom mouse cursor in windows?
I am trying to change the windows cursors (the default is Windows Custom Scheme) to my custom cursors (It named Cut the rope): [](https://i.stack.imgur.com/HAsnz.png) Is there any idea to change al...
Include pdb files into my nuget (nupkg) files
I am using MSBuild to generate my nuget packages. Is there any command I need to set, to allow it to include my `.pdb` files, for stepping into the source while debugging? I do not want the source f...
- Modified
- 18 Jan at 07:35
What are advantages of capturing the Infomessages of SQL connections?
I'm currently reviewing/redoing code of a collegue of mine and stumbled upon a construct I've never seen done before: ``` con = new SqlConnection("Data Source=....."); con.FireInfoMessageEventOnUserE...
Entity Framework Core cascade delete one to many relationship
``` public class Station : IEntitie { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public virtual ICollection<RegulatorySchedule> Regulatory...
- Modified
- 18 Jan at 09:30
Keras, How to get the output of each layer?
I have trained a binary classification model with CNN, and here is my code ``` model = Sequential() model.add(Convolution2D(nb_filters, kernel_size[0], kernel_size[1], border_...
- Modified
- 18 Jan at 04:7
Create directory async (without using FileSystemWatcher)?
How can I make make the following code run asynchronously without having to create an extra thread on the thread pool (in other words without `Task.Run(...)`)? ``` Directory.CreateDirectory("\\host\...
- Modified
- 18 Jul at 12:30
Assembly Binding Error: Unrecoverable error occurred during pre-download check (hr = 0x80070780)
I have a .NET 4.5 application that works and runs with no issues in most environments; however, one area of the application throws a runtime assembly reference error on some client machines: ``` Coul...
- Modified
- 17 Jan at 22:55
Build .Net Core as an EXE not a DLL
I want to build a .NET Core project as a EXE and not a DLL so it can be executed. The answer here did not work: [How to run a .Net Core dll?](https://stackoverflow.com/questions/36516848/how-to-run-...
Entity Framework Core creating model from existing database
With Entity Framework Core, how do you generate the EF model and the entities? According to [ASP.NET Core - Existing Database](https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/existin...
- Modified
- 29 May at 16:45
ASP.NET MVC Controller SubFolder
I am using ASP.NET MVC and trying to create a controller subfolder. I have looked at other post on this site and tried what I was able to find online, but it still running into this issue: ``` HTTP 4...
- Modified
- 17 Jan at 17:43
How to read/write files in .Net Core?
What are the options to read/write files in .Net Core? I am working on my first .Net Core app and looking for `File.Read*`/`File.Write*` functions (`System.IO` from `.Net`) alternatives.
Using media breakpoints in Bootstrap 4-alpha
In Bootstrap 3 I use this: ``` .something { padding: 5px; @media screen and (min-width: $screen-sm-min) { padding: 20px; } @media screen and (min-width: $screen-md-min) { ...
- Modified
- 3 Aug at 01:56
Event sourcing incremental int id
I looked at a lot of event sourcing tutorials and all are using simple demos to focus on the tutorials topic (Event sourcing) That's fine until you hit in a real work application something that is no...
- Modified
- 17 Jan at 14:17
"C:\Microsoft.Cpp.Default.props" was not found
I have a project created in Visual Studio, 2013. The project file has the following properties: ToolsVersion="12.0", PlatformToolset = v120. I have Visual Studio 2013 and Microsoft Build Tools 2...
- Modified
- 17 Jan at 11:57
Custom seekbar (thumb size, color and background)
I would like to have this seekbar in my Android project : [](https://i.stack.imgur.com/M1ylD.png) This is my seekbar : ``` <SeekBar android:id="@+id/seekBar_luminosite" android:layou...
- Modified
- 25 Oct at 18:49
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
I am trying to use the betbrain.py from Github ([https://github.com/gto76/betbrain-scraper](https://github.com/gto76/betbrain-scraper)) that has the following code: ``` #!/usr/bin/python3 # # Usage: b...
- Modified
- 1 May at 17:13
How to change git account in Git bash?
I have weird problem with Git bash. I have two Github accounts, let's say and . I set my name and email, like in account A: ``` git config --global user.name git config --global user.email ``` I...
Ignoring files from checkin with certain pattern of change
Since having started using [JetBrains Annotations](https://www.nuget.org/packages/JetBrains.Annotations), for my own benefit I've decorated all methods with `[CanBeNull]` or `[NotNull]` For example, ...
- Modified
- 17 Jan at 01:40
Failed to Authenticate HTTPS connection when attempting GET from WebAPI
I am using ASP.NET Core. I have two projects: 1. ASP.NET Core MVC application 2. ASP.NET Core Web API application If I attempt to access one of the Web API endpoints using Postman, I do not have ...
- Modified
- 5 May at 20:41
Looking for a very simple Cache example
I'm looking for a real simple example of how to add an object to cache, get it back out again, and remove it. The second answer [here](https://stackoverflow.com/questions/2458205/simple-c-sharp-asp-n...
- Modified
- 23 May at 12:26
Easy way to make a confirmation dialog in Angular?
Is there any not-so-complicated way to make a confirm dialog in angular 2, the idea is to click on an item and then show a popup or modal to confirm its deletion, I tried angular 2 modals from here [a...
- Modified
- 8 Feb at 08:50
DocumentDB .Net client using connection string
I checked the MSDN on DocumentDB for .Net ([here](http://ttps://msdn.microsoft.com/en-us/library/microsoft.azure.documents.client.documentclient.documentclient.aspx#M:Microsoft.Azure.Documents.Client....
- Modified
- 17 Jan at 12:54