Convert timestamp to date in Oracle SQL

How can we convert timestamp to date? The table has a field, `start_ts` which is of the `timestamp` format: ``` '05/13/2016 4:58:11.123456 PM' ``` I need to query the table and find the maximum an...

How to change date format in hive?

My table in hive has a filed of date in the format of '2016/06/01'. but i find that it is not in harmory with the format of '2016-06-01'. They can not compare for instance. Both of them are string ....

1 Jun at 03:0

ModelState.IsValid always true when testing Controller in Asp.Net MVC Web Api

I have tried to make this work and made many google/stackoverflow searches with no luck at all. I have a simple Model: ``` public class MovieModel { public string Id { get; set; } [Required...

m2e error in MavenArchiver.getManifest()

I am seeing an error in my STS and am not sure how to debug it. Searching around I only see vague references to the error and no solutions. The error is: > `org.apache.maven.archiver.MavenArchiver.g...

F# list to C# IEnumerable: most efficient method?

I'm currently working on an F# library with GUI written in C# and I would like to ask what is the best or correct way to pass an F# (generic) list to a C# code (generic IEnumerable). I've found three...

1 Jun at 05:42

error CS2012: Cannot open <executable path> access to <executable path denied>

I was working on a WPF application in Visual Studio 2015 and all went well until unexpectedly the build dropped me the CS2012 error inform me that it cannot access/update the executable in the /Debug ...

7 May at 02:15

Application Insights not logging custom events

I have setup Application Insights in my ASP.NET Core application in the C# Controller and it is logging basic data like Page Views, Response Time, etc. But I want to create some custom events and log ...

How to make a phone call in Xamarin.Forms by clicking on a label?

Hello I have an app i'm working on in Xamarin.Forms that gets contact info from a web service and then displays that info in labels however I want to make the label that lists the phone number to make...

Executing Command line .exe with parameters in C#

I'm trying to execute a command line program with parameters from C#. I would have imagined that standing this up and making this happen would be trivial in C# but its proving challenging even with al...

6 May at 07:25

tsc throws `TS2307: Cannot find module` for a local file

I've got a simple example project using TypeScript: [https://github.com/unindented/ts-webpack-example](https://github.com/unindented/ts-webpack-example) Running `tsc -p .` (with `tsc` version 1.8.10)...

31 May at 14:40

Simple Injector initialize for both MVC and Web API controllers

I have a Web API controller that has some resources DI'd. Out of later necessity I have added an MVC controller, now I need same resources DI'd there as well. Here is my original configuration: ``` ...

Xamarin deploying not working with Android

I've set up a Xamarin.Forms Project. I want to build and deploy it to an emulator or an Android device, but it is not working. In the Outputwindow of Visual Studio, the following error is displayed: ...

Get role/s of current logged in user in ASP.NET Core MVC

How can I get the logged in user's role/s in ASP.NET Core MVC? I want to get role details as soon as user logs in into the application, but by using following code I am not able to retrieve the role d...

Running background tasks periodically in an ASP.NET Core RC2 application

I'm working on an ASP.NET Core RC2 application. There is a requirement for this application to periodically invoke certain tasks, such as sending emails or invoking specific business logic. I'm awa...

Angular2 *ngIf check object array length in template

Refered to [https://angular.io/docs/ts/latest/guide/displaying-data.html](https://angular.io/docs/ts/latest/guide/displaying-data.html) and stack [How to check empty object in angular 2 template using...

21 Jun at 04:30

How to manually deploy artifacts in Nexus Repository Manager OSS 3

After installing Nexus Repository Manager OSS 3 I do not see option `Artifact Upload` to upload artifacts through web page. In Nexus Repository Manager OSS 2.13 there is option to do that operation. ...

24 Mar at 17:36

Autofac - Make sure that the controller has a parameterless public constructor

I know it's been asked and answered before - the reason I'm asking is because (I think) I tried all suggested solutions to this problem but still can't resolve it. I have an ASP.NET Web API 2.0 proje...

How to create informative toast notification in UWP App

In my app, I want to inform user when particular action had performed, like record updated successfully or new record added, but there's not inbuilt control to that can display such information. Is th...

How to show an informative real time progress data during long server process

I have a so long process may take 1 hour . This process consists of many steps run from year to year .My main problem is : How to provide an informative real time progress to the end user during the...

31 May at 09:9

How can I convert Mat to Bitmap using OpenCVSharp?

First, I tried this, ``` public static Bitmap MatToBitmap(Mat mat) { return OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat); } ``` [](https://i.stack.imgur.com/xbY1M.png) So, ...

5 Sep at 11:45

How is yield an enumerable?

I was toying around with `yield` and `IEnumerable` and I'm now curious why or how the following snippet works: ``` public class FakeList : IEnumerable<int> { private int one; private int two;...

13 Jun at 08:47

OrmLite-named in memory database throwing exception

I am trying to use in memory database for unit test. following is set up for resolving apphost dependency of database ``` OrmLiteConfig.DialectProvider = SqliteDialect.Provider; var ...

Is there a programmatic way to identify .Net reserved words?

I am looking for reading .Net, C# reserved key words programmatically in VS 2015. I got the answer to read C# reserved words in the [link][1]. ``` CSharpCodeProvider cs = new CSharpCodeProvider(); v...

13 Oct at 17:52

Where are logs located?

I'm debugging a JSON endpoint and need to view internal server errors. However, my `app/storage/logs` dir is empty and it seems there are no other directories dedicated to logs in the project. I've tr...

31 May at 00:56

Passing command line arguments to argv in jupyter/ipython notebook

I'm wondering if it's possible to populate `sys.argv` (or some other structure) with command line arguments in a jupyter/ipython notebook, similar to how it's done through a python script. For insta...