ServiceStack Free-quota
I'm a bit confused about ServiceStack's free-quota statement on [https://www.servicestack.net/download#free-quotas](https://www.servicestack.net/download#free-quotas) If I read it correctly you're al...
- Modified
- 6 Sep at 08:59
Intercept/handle browser's back button in React-router?
I'm using Material-ui's Tabs, which are controlled and I'm using them for (React-router) Links like this: ``` <Tab value={0} label="dashboard" containerElement={<Link to="/dashboard/home"/>}/> <T...
- Modified
- 7 Sep at 07:5
asp.net display image from byte array
I have a byte array and trying to display image from that. ``` using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; using System.Web.UI; using System....
DocumentClient CreateDocumentQuery async
Why is there no async version of `CreateDocumentQuery`? This method for example could have been async: ``` using (var client = new DocumentClient(new Uri(endpointUrl), authorizationKey, _connectionPol...
- Modified
- 11 Nov at 03:46
Angular 2 loading local json file 403 forbidden error
Seems so simple from examples I see on the web but when I try to load a local json file from my Angular 2 application inside my service.ts, I get a 403 forbidden error. My application runs inside a S...
- Modified
- 5 Sep at 19:27
Angular2 RC6: '<component> is not a known element'
I am getting the following error in the browser console when trying to run my Angular 2 RC6 app: ``` > Error: Template parse errors: 'header-area' is not a known element: > 1. If 'header-area' is an ...
- Modified
- 21 Mar at 09:29
Https POST/GET not working on Mono
I want to execute a HttpPost on a Raspberry using Mono + Restsharp. The [Httpie](https://github.com/jkbrzt/httpie) call that i try to reproduce in code looks something like this: ``` http POST https...
- Modified
- 8 Sep at 08:14
Googlemaps API Key for Localhost
How do I get Google Maps API key to work on localhost? I've created an API key and under referrers I add the following: ``` Accept requests from these HTTP referrers (websites) (Optional) Use asteris...
- Modified
- 22 Mar at 20:6
Asp.net MVC Catchall Routing in a Sub Application
I have an MVC application with a sub application running another MVC project in IIS. Both use the same version framework and run on separate application pools. My problem is, I cannot get the sub app...
- Modified
- 21 Sep at 12:36
Line break in HTML with '\n'
Is there a way to make HTML properly treat `\n` line breaks? Or do I have to replace them with `<br/>`? ``` <div class="text"> abc def ghi </div> ```
- Modified
- 14 Feb at 01:40
How to save IFormFile to disk?
I'm trying to save a file on disk using [this piece of code](https://weblogs.asp.net/imranbaloch/file-upload-in-aspnet5-mvc6). ``` IHostingEnvironment _hostingEnvironment; public ProfileController(I...
- Modified
- 4 Sep at 22:58
Design with async/await - should everything be async?
Assume I have an interface method implemented as ``` public void DoSomething(User user) { if (user.Gold > 1000) ChatManager.Send(user, "You are rich: " + user.Gold); } ``` After some time I re...
- Modified
- 4 Sep at 21:58
How to inject dependencies of generics in ASP.NET Core
I have following repository classes: ``` public class TestRepository : Repository<Test> { private TestContext _context; public TestRepository(TestContext context) : base(context) { ...
- Modified
- 4 Sep at 18:48
Convert Promise to Observable
I am trying to wrap my head around observables. I love the way observables solve development and readability issues. As I read, benefits are immense. Observables on HTTP and collections seem to be s...
- Modified
- 8 Aug at 19:38
How to implement a method of a base class for every possible combination of its derived types
I have the following Shape interface which is implemented by multiple other classes such as Rectangle, Circle, Triangle ... ``` interface IShape{ bool IsColliding(IShape other); } ``` The metho...
- Modified
- 4 Sep at 14:20
How to use the increment operator in React
Why when I am doing `this.setState({count:this.state.count*2})` it is working, but when I am doing: `this.setState({count:this.state.count++})` it is not working? Why, and how to fix it? Full code:...
- Modified
- 10 Aug at 02:49
T4 alternative in .NET Core?
> a T4 text template is a mixture of text blocks and control logic that can generate a text file. T4 templating is not natively supported in .Net Core. Can anyone suggest to me T4 alternative in .NET ...
How do I correctly filter my DataSet by GUID using OData?
`DataSet` I'm exposing an OData endpoint, and trying to navigate to the URL: > `http://localhost:5001/mystuf/api/v2/AccountSet?$filter=AccountId%20eq%20guid%2703a0a47b-e3a2-e311-9402-00155d104c22%27...
- Modified
- 11 May at 00:26
Visual Studio 2015 diagnostic tools no longer working
I have Visual Studio 2015 Community Edition Update 3 running on Windows 7 SP1 64 bit, which I use to develop C# applications. I love the diagnostic tools during debugging to spot performance problems...
- Modified
- 23 May at 12:26
C# ssl/tls with socket tcp
I am new in C# development. I am trying to use ssl/tls over tcp but in my code, system.net.sockets.socket (bare socket) is used not tcpclient or tcplistner. I have searched over net atleast 200 links ...
How to save new record with hashed password in my custom table instead of aspnet user?
I am using asp.net identity to create new user but getting error: > Cannot insert the value NULL into column 'Id', table 'Mydb.dbo.AspNetUsers'; column does not allow nulls. INSERT fails.\r\nThe ...
- Modified
- 26 Sep at 21:38
Dynamic reference in a .net core app targeting net standard 1.6?
I'm trying to use a `dynamic` variable in a C# .net core app that's targeting .net standard 1.6. (platform? library? framework? meta-framework?) I first encountered this problem in a real application...
- Modified
- 27 Sep at 16:23
How to set iOS status bar background color in React Native?
Is there a single place in the react native iOS native code that I could modify to set iOS statusbar backgroundColor? RCTRootView.m ? The [react native StatusBar component](https://facebook.github.io...
- Modified
- 2 Sep at 21:9
In which case does TaskCompletionSource.SetResult() run the continuation synchronously?
Initially I thought that all continuations are executed on the threadpool (given a default synchronization context). This however doesn't seem to be the case when I use a `TaskCompletionSource`. My c...
- Modified
- 2 Sep at 16:2
How to check if an environment variable exists and get its value?
I am writing a shell script. In this shell script, I am have a variable that either takes a default value, or the value of an environment variable. However, the environment variable doesn't have to be...