Stream audio from PC to smartphones?

For Christmas 2016, me and my dad want to do a Lightshow for our neighborhood with lights and . [](https://i.stack.imgur.com/s86mw.jpg) We have the lights set up, but the music is a problem. We don't...

31 Jul at 21:49

Swagger routing not consistent on Servicestack

I've just added Swagger to servicestack app. I access it via /api/swagger-ui, but it then tries to call its dependant js and css files from /api/lib and /api/css/ respectively. The app 404s on all th...

15 Jul at 10:9

Only on azure: Could not create SSL/TLS secure channel

I run an application on the Azure application Standard: 1 Small plan. Framework is 4.6.1 This application is calling a SSL secured API. The SSL is published by StartCom Class 1 DV Server CA, my local...

18 Jul at 13:7

c# convert DbContextTransaction to SqlTransaction

I am trying to use SqlBulkCopy under DbContext. My Sql Connection string has UserId and Password and that is why to pass connection object to SqlBulkCopy I am creating SqlConnection object having a Sq...

15 Jul at 08:48

How to create a instance of UserCredential if I already have the value of Access Token?

So I have this code My question is how do I configure the if I'm already authenticated via OAuth? The current scenario is the code will display another login page redirecting to google. Since I'm a...

What does on_delete do on Django models?

I'm quite familiar with Django, but I recently noticed there exists an `on_delete=models.CASCADE` option with the models. I have searched for the documentation for the same, but I couldn't find anythi...

26 May at 10:15

How to iterate over Pandas Series generated from groupby().size()

How do you iterate over a Pandas Series generated from a `.groupby('...').size()` command and get both the group name and count. As an example if I have: ``` foo -1 7 0 85 1 14 2 5 ``...

6 Apr at 03:42

How to login to Google API with Service Account in C# - Invalid Credentials

I'm beating myself bloody trying to get a simple service acccount login to work in C#, to Google API and Google Analytics. My company is already getting data into Analytics, and I can query informatio...

Predefined type 'System.ValueTuple´2´ is not defined or imported

I've installed Visual Studio 15 Preview 3 and tried to use the new tuple feature ``` static void Main(string[] args) { var x = DoSomething(); Console.WriteLine(x.x); } static (int x, int y) ...

8 Mar at 20:28

Change status bar text color when primaryDark is white

I am trying to reproduce the behaviour of Google Calendar application: [](https://i.stack.imgur.com/NPoDC.png) but I have not found a way to change the status text color. If i set the colorPrimaryDark...

Examples of Repository Pattern with consuming an external REST web service via HttpClient?

I've searched around quite a bit, but haven't found any good examples of consuming an external REST web service using a Repository Pattern in something like an ASP.NET MVC app, with loose coupling and...

How to fix git error: RPC failed; curl 56 GnuTLS

I use Ubuntu 16.04. When I want to git push origin master I get: ``` error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received. fatal: The remote end hung up unexpectedly...

17 Nov at 15:15

Embedded statement cannot be a declaration or labeled statement

I am trying to create a user using claim identity asp.net I get this error while creating claims identity user. ``` ApplicationUser user = new ApplicationUser { EmailConfirm...

How to execute servicestack request validation code only

I'm wondering is there a way to flag to servicestack that you only want to execute the fluent validation filter for a request, and not go on to run the real code? Ideally you could add a property to...

14 Jul at 12:22

Multiple Tables With Same Structure Entity Framework

We have a database with multiple tables with Same structure Table 1 ================== Key ID ........ Table 2 ================== Key ID ....... The number of tables can be dynamic based ...

3 May at 05:14

How to POST form data with Spring RestTemplate?

I want to convert the following (working) curl snippet to a RestTemplate call: ``` curl -i -X POST -d "email=first.last@example.com" https://app.example.com/hr/email ``` How do I pass the email par...

28 Sep at 07:23

How to convert an object to JSON correctly in Angular 2 with TypeScript

I'm creating an Angular 2 simple CRUD application that allows me to CRUD products. I'm trying to implement the post method so I can create a product. My backend is an ASP.NET Web API. I'm having some ...

14 Jul at 10:45

How to Reference .xproj into .csproj?

I have `.csproj` project and I want to reference other project that is `.xproj`, everything looks fine but when I try to build solution then I cannot because the .dll is missing. When i reference the ...

Start android service from Unity3D code

In my Unity3D application for android I need to start a service, which will run in background. I can't figure it out how can I do it. The method has to be invoked on an activity, but I do not know ho...

14 Jul at 08:46

Installing a pip package from within a Jupyter Notebook not working

When I run `!pip install geocoder` in Jupyter Notebook I get the same output as running `pip install geocoder` in the terminal but the geocoder package is not available when I try to import it. I'm u...

Hangfire recurring tasks under minute

Is there a way to set hangfire recurring jobs every few seconds? I do not seek a solution where fire and forget task creates another fire and forget task, and if not, what are suggested alternatives? ...

14 Jul at 06:54

Angular2: use [(ngModel)] with [ngModelOptions]="{standalone: true}" to link to a reference to model's property

Let's say I have a typescript object of type Mailtype like following: ``` export class Mailtype { constructor( public name?: string, public locale?: string, public email?: string, pu...

23 Oct at 11:27

Python & Matplotlib: Make 3D plot interactive in Jupyter Notebook

I use Jupyter Notebook to make analysis of datasets. There are a lot of plots in the notebook, and some of them are 3d plots. [](https://i.stack.imgur.com/cPwoQ.png) I'm wondering if it is possible to...

26 Apr at 16:44

NOW() in ServiceStack.OrmLite

Question is in the title. I have T4 generated objects, but how would I Save() or Update() an object while setting its "LastAccess" property to the sql function "NOW()"? I don't want DateTime.UtcNow, ...

14 Jul at 00:35

How to use promise in forEach loop of array to populate an object

I am running a forEach loop on an array and making two calls which return promises, and I want to populate an object say `this.options`, and then do other stuff with it. Right now I am running into th...