Why is Docker installed but not Docker Compose?
I have installed docker on CentOS 7 by running following commands, ``` curl -sSL https://get.docker.com/ | sh systemctl enable docker && systemctl start docker docker run hello-world ``` however whe...
- Modified
- 8 Dec at 02:19
How to get the value of an input field using ReactJS?
I have the following React component: ``` export default class MyComponent extends React.Component { onSubmit(e) { e.preventDefault(); var title = this.title; console.log...
- Modified
- 15 Oct at 10:1
Failed to find Build Tools revision 23.0.1
I am trying to build my first app with react-native. I am following these 2 tutorial: - [https://facebook.github.io/react-native/docs/getting-started.html#content](https://facebook.github.io/react-n...
- Modified
- 3 Mar at 20:37
Can using async-await give you any performance benefits?
Whenever I read about `async`-`await`, the use case example is one where there's a UI that you don't want to freeze. Either all programming books/tutorials are the same or UI blocking is the only cas...
- Modified
- 17 Apr at 23:54
Entity Framework : map multiple classes to one table
I think this is possible in nhiberate, but my question is about Entity Framework. In my database model - which I cannot modify - I have redundant columns that I would like to store in different class...
- Modified
- 17 Apr at 18:57
How to add a color overlay to a background image?
I have seen this question a lot both on SO and the Web. But none of them has been what I am looking for. How do I add a color-overlay to a background image using CSS only? Example HTML: ``` <div cl...
- Modified
- 21 Mar at 17:23
Chart.js v2 - hiding grid lines
I am using Chart.js v2 to draw a simple line chart. Everything looks fine, except there are grid lines that I don't want: [](https://i.stack.imgur.com/ir7Ll.jpg) The documentation for Line Chart is ...
- Modified
- 9 Nov at 07:55
Error while waiting for device: Time out after 300seconds waiting for emulator to come online
I have been trying to use android studio 2.0 emulator but I can not run my App on the Emulator. When I Run my App it shows the emulator with following details: Hax is Enabled - Hax ram_size 0x80000000...
- Modified
- 21 Dec at 22:20
Is it possible to simplify an if-statement that checks for a combination?
I'm currently working on adding sound effects to a game, and although my current code is working fine, I'm looking for a way to simplify it. Basically, each object in the game has a string value indic...
- Modified
- 17 Apr at 21:30
OpenXML - Cell.DateType is null
I can't determine when a Cell is a date. [](https://i.stack.imgur.com/dWi6P.png) I noticed the DataType is null so I can't distinguish if it's a Number of a Date. I am using the next code to extrac...
How do I solve the "server DNS address could not be found" error on Windows 10?
After installing Windows 10, I am continuously getting the "" error. I will be able to use the Internet for 4-5 minutes, and after that for 20-25 min I will get the above error. How do I resolve thi...
- Modified
- 22 Aug at 18:20
How to set HttpWebRequest.Timeout for a large HTTP request in C#
I'm not getting how to deal with HttpWebRequest.Timeout. Before, I used to set timeouts for Socket objects where it was straight-forward: Timeout set the maximum amount of time for sending or receivin...
Docker look at the log of an exited container
Is there any way I can see the log of a container that has exited? I can get the container id of the exited container using `docker ps -a` but I want to know what happened when it was running.
- Modified
- 16 Apr at 15:43
How to combine two lists in R
I have two lists: ``` l1 = list(2, 3) l2 = list(4) ``` I want a third list: ``` list(2, 3, 4). ``` How can I do it in simple way. Although I can do it in for loop, but I am expecting a one liner...
docker unauthorized: authentication required - upon push with successful login
While pushing the docker image (after successful login) from my host I am getting "unauthorized: authentication required". Details below. ``` -bash-4.2# docker login --username=asamba --email=anand...
- Modified
- 16 Apr at 11:45
Create and write to a text file inmemory and convert to byte array in one go
How can I create a .csv file implicitly/automatically by using the correct method, add text to that file existing in memory and then convert to in memory data to a byte array? ``` string path = @"C:\...
- Modified
- 16 Apr at 08:9
Enumerate Dictionary.Values vs Dictionary itself
I was exploring the sources of ASP.NET core on GitHub to see what kind of tricks the ASP.NET team used to speed up the framework. I saw something that intrigued me. In the source code of the [ServiceP...
- Modified
- 16 Apr at 00:53
What is the recommended implementation pattern in ServiceStack for providing token-based authentication?
I have a group of ServiceStack-based services that will need to authenticate with one another using OAuth2. Specifically, the services will retrieve reference tokens from an external authentication s...
- Modified
- 23 May at 10:28
How to version and separate Service Fabric applications?
All of the service fabric [examples](https://github.com/Azure-Samples/service-fabric-dotnet-getting-started) depict single-solution service fabric examples. This seems to go to the philosophy of micr...
- Modified
- 15 Apr at 21:53
After installing Homebrew I get `zsh: command not found: brew`
``` ➜ ~ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040677 It appears H...
Loop through an object's properties and get the values for those of type DateTime
I have a list of objects (Cars). For each car in the list I need to loop through it and find any properties of type `DateTime`. If I find a property of `DateTime` I need to get the value and do a time...
- Modified
- 3 Mar at 08:28
Why does the compiler allow Convert.ToString() to be assigned to an integer?
I accidentally stumbled across something similar to the following in my code, it compiles fine but then obviously bombs at runtime: ``` dynamic fiftySixDynamic = 56; int fiftySixInt = System.Convert....
Resetting a form in Angular 2 after submit
I am aware that Angular 2 currently lacks a way to easily reset a form to a pristine state. Poking around I have found a solution like the one below that resets the form fields. It has been suggested...
- Modified
- 17 Apr at 15:11
Why ConfigureAwait(false) does not work while Task.Run() works?
I'm calling an `async` library method with `.ConfigureAwait(false)`. But, I still end up with deadlock. (I'm using it in ASP.NET controller API) But, if I use the same method wrapped into `Task.Run()`...
- Modified
- 18 Nov at 10:24
Angular2 @Input to a property with get/set
I have an Angular2 component in that component it currently has a bunch fields that have @Input() applied before them to allow binding to that property, i.e. ``` @Input() allowDay: boolean; ``` Wha...
- Modified
- 13 Mar at 10:29