Selenium using Java - The path to the driver executable must be set by the webdriver.gecko.driver system property

I am trying to launch Mozilla but still I am getting this error: > Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.dri...

27 Jun at 13:25

chmod: changing permissions of ‘my_script.sh’: Operation not permitted

when I'm trying to make shell script that error is shown ,what i must do ?? ``` [rehamadel@localhost bin]$ sudo vi my_script.sh ``` `[sudo] password for rehamadel:` `[rehamadel@localhost bin]$ ls -...

30 Jul at 17:18

The Include path expression must refer to a navigation property defined on the type.in eager loading

I try to include anonymous type like this : I want all `incomelist` attributes in addition to `CompanyTitle` ,`PeriodTypeName` ) ``` var incomeList = ctx.IncomeLists.Include(i => new ...

Access HTTP response as string in Go

I'd like to parse the response of a web request, but I'm getting trouble accessing it as string. ``` func main() { resp, err := http.Get("http://google.hu/") if err != nil { // handl...

30 Jul at 11:58

Azure ASP .net WebApp The request timed out

I have deployed an ASP .net MVC web app to Azure App service. I do a GET request from my site to some controller method which gets data from DB(DbContext). Sometimes the process of getting data from...

30 Jul at 11:16

Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

I have a WinJS project that is previously built on Windows 8.1 using VS 2013. Recently I upgraded this project to Universal Windows 10 by creating a blank Javascript Universal windows 10 project and...

Is ApiController deprecated in .NET Core

Is it true that "`ApiController` will get deprecated in .NET Core"? Asking since I'm planning to use it in new projects.

Is System.Collections a "namespace of the System namespace"?

Okay, so I've been reading a book on C# and .NET, and while learning about the DateTime structure and the following code: ``` DateTime dt = new DateTime(2015, 10, 17); ``` I asked myself "why didn'...

1 Aug at 13:3

Require SSL Client Certificate only for specific routes or controllers

I have an ASP.NET MVC Core project using Kestrel as the server. It is both serving up user content (asp.net mvc) and hosts web API controllers that agents (software) communicate with. I have enabled H...

Why is EPPlus telling me that I "Can't set color when patterntype is not set" when I have set PatternType?

I've got this code to try to style a header row: ``` worksheet.Cells["A32:D32"].Style.Font.Name = "Georgia"; worksheet.Cells["A32:D32"].Style.Font.Bold = true; worksheet.Cells["A32:D32"]....

29 Jul at 18:52

How to create custom authentication mechanism based on HTTP header?

I'm leaving old version of question on a bottom. I'd like to implement custom authentication for SignalR clients. In my case this is java clients (Android). Not web browsers. There is no Forms authen...

15 Oct at 07:23

Windows Store app In-App purchase subscription model

[Quite some time ago](http://mspoweruser.com/signs-subscriptions-begin-show-windows-store/) Microsoft announced that a developer will be able to sell IAPs (In-App Purchases) as a auto renewable subscr...

12 Dec at 07:57

Find element with selenium by display text

I am trying to hover over an element in a menu bar with selenium, but having difficulty locating the element. The element is displayed below : ``` <DIV onmouseover="function(blah blah);" class=mainIt...

31 Jul at 08:15

Token based authentication in Web API without any user interface

I am developing a REST API in ASP.Net Web API. My API will be only accessible via non-browser based clients. I need to implement security for my API so I decided to go with Token based authentication....

Unauthorized exception, ServiceStack

I want to make servicestack services reachable only for authorized users. this is my register method `var authResponse = client.Post(new Authenticate { provider = CredentialsAuthProvider.Name, //= cre...

C# - transform an async task from one type to another

I'm used to working with the Scala programming language - using Scala I could map over futures, such as: ``` val response: Future[HttpResponse] = asyncHttpClient.GetRequest("www.google.com") val sta...

29 Jul at 13:58

.NET core replacement for TcpClient

So in the old .NET you were able to initialize a new instance of the TcpClient class and connect to the specified port on the specified host using TcpClient(string, int). That no longer works for TcpC...

1 Aug at 13:31

ServiceStack ServerEventsClient auto-reconnect

I am using the ServerEventsClient for server side events to clients. Currently if I shutdown the server the client doesn't automatically reconnect later when it is available again. How do I make it a...

29 Jul at 11:40

Angular2 set value for formGroup

So I have a complex form for creating an entity and I want to use it for editing as well I am using new angular forms API. I structured the form exactly as the data I retrieve from the database so I w...

29 Jul at 14:3

How to search for an element in a golang slice

I have a slice of structs. ``` type Config struct { Key string Value string } // I form a slice of the above struct var myconfig []Config // unmarshal a response body into the above slice ...

7 Dec at 09:48

'g++' is not recognized as an internal or external command, operable program or batch file

``` #include<iostream> using namespace std; int main() { cout<<"hi"<<endl; return 0; } ``` I am using Sublime text 3, and I am getting this error: > error- 'g++' is not recognized as a...

29 Jul at 07:27

TextFieldParser replacement in .net Core 1

In the past, for c# .net MVC projects, I used TextFieldParser from the Visual Basic Reference. Now with .Net Core 1 that no longer seems to be an option. At least I can't figure out how to add the v...

21 Aug at 04:57

case_when in mutate pipe

It seems `dplyr::case_when` doesn't behave as other commands in a `dplyr::mutate` call. For instance: ``` library(dplyr) case_when(mtcars$carb <= 2 ~ "low", mtcars$carb > 2 ~ "high") %>% ...

29 Jul at 02:40

How can I eager load objects that are referencing the primary key of my POCO class in a 1:Many relationship?

Considering the documentation here, you can define foreign key relationships in your pocos like the given example: ``` public class Customer { [References(typeof(CustomerAddress))] public int...

29 Jul at 01:6

In Visual Studio Code How do I merge between two local branches?

In Visual Studio Code it seems that I am only allowed to push, pull and sync. There is documented support for merge conflicts but I can't figure out how to actually merge between two branches. The Git...

29 Jul at 00:32