Use SqlGeography at ServiceStack.OrmLite in .Net Core
I try to add SqlGeography to my model and when I call create table I got weird error. First I add this package: `Microsoft.SqlServer.Types` Then I create my model like example at below: ``` public ...
- Modified
- 25 Mar at 19:47
Plugin system security in .NET Framework 4.x (without CAS)
What I'd like to achieve is a plugin system with the following features: - - - - During my search, I've mostly found SO solutions involving Code Access Security which, as far as I know, is outdated...
- Modified
- 27 Mar at 19:33
Windows doesn't recognize Docker command
I already installed Docker for windows. when I type `docker --version` command in Command prompt, it doesn't recognize it at all. The message will be this: ``` 'docker' is not recognized as an inte...
- Modified
- 25 Mar at 16:53
Azure Durable function - InvalidOperationException when CallActivityAsync
I'm playing around with the [Azure Durable functions](https://learn.microsoft.com/en-us/azure/azure-functions/durable-functions-overview). Currently I'm getting `InvalidOperationException` within Orch...
- Modified
- 24 Aug at 00:36
ServiceStack casting response to CompressedResult throws OutOfMemoryException
I have json data that is being compressed using ServiceStacks's inbuilt ToOptimizedResult method. This has been working fine for a while now, recently though, when the data to be returned is high (50k...
- Modified
- 25 Mar at 12:23
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified
I have created a basic spring boot application from with the Web, MongoDB and JPA dependencies. When I try to run the spring boot application I am getting the following exception: ``` Error starti...
- Modified
- 11 Apr at 13:3
How to downgrade Flutter SDK (Dart 1.x)
I upgraded my Flutter SDK and now my project is broken. I need to basically revert back to a Flutter SDK which uses Dart 1.x. I tried the following in the pubspec.yaml, ``` environment: sdk: ">=1...
- Modified
- 24 Mar at 18:26
Flutter: Run method on Widget build complete
I would like to be able to run functions once a Widget has finished building/loading but I am unsure how. My current use case is to check if a user is authenticated and if not, redirect to a login vie...
How to do client-side UI events in Blazor
I just started playing around with Blazor and I can already see the great potential of this new framework. I'm wondering, though, how it will handle doing simple things like setting focus on an input...
- Modified
- 13 Mar at 00:56
Difference between Marshal.SizeOf and sizeof
Until now I have just taken for granted that Marshal.SizeOf is the right way to compute the memory size of a blittable struct on the unmanaged heap (which seems to be the consensus here on SO and almo...
When same-named namespaces exist (in current scope), how to refer any of them?
I have: ``` namespace Book { ... } ... ... namespace Company { public class Book { } ... ... ... ... ... ... public class MyBook : Book.smth ...
- Modified
- 27 Mar at 07:48
Flutter get context in initState method
I'm not sure if the `initState` is the right function for this. What I'm trying to achieve is to check when the page is rendered to perform some checks and based on them opening a `AlertDialog` to mak...
ASP.NET Core WebAPI Cookie + JWT Authentication
we have a SPA (Angular) with API backend (ASP.NET Core WebAPI): SPA is listens on `app.mydomain.com`, API on `app.mydomain.com/API` We use JWT for Authentication with built-in `Microsoft.AspNetCore....
- Modified
- 23 Mar at 18:8
Call F# function from C# passing function as a parameter
I have the following F# function ``` let Fetch logger id = logger "string1" "string2" // search a database with the id and return a result ``` In my C# class I want to call the F# functio...
Dynamic HeightRequest not working for StackLayout
In my XAML I have this StackLayout: ``` <StackLayout x:Name="FooterWrapper" Spacing="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" ...
- Modified
- 14 Nov at 19:26
How to specify "namespace" and "conformsto" attribute to APIs for services developed using ServiceStack?
We are currently in process of converting our legacy web services (asmx) into REST APIs layer developed using ServiceStack platform. There exists a few Web services having the namespace and Binding C...
- Modified
- 23 Mar at 05:23
Round button with text and icon in flutter
how to have a button with text and icon for the `flutter`? I wanted to have a `button` which looks like icon with a text that is able to put at the bottom of the screen For example, the icon is like...
Could not load file or assembly System.Data.SqlClient, Version=4.2.0.2 when I use System.Data.SqlClient Version 4.4.3
I use System.Data.SqlClient Version 4.4.3 for all .NET Standard 2.0 class libraries in my ASP.NET Core 2.0 project. Why do I get > > Could not load file or assembly 'System.Data.SqlClient, Version=4...
- Modified
- 22 Mar at 22:3
how to test if a variable is pd.NaT?
I'm trying to test if one of my variables is pd.NaT. I know it is NaT, and still it won't pass the test. As an example, the following code prints nothing : ``` a=pd.NaT if a == pd.NaT: print("a ...
- Modified
- 25 Nov at 20:31
How do I initialize weights in PyTorch?
How do I initialize weights and biases of a network (via e.g. He or Xavier initialization)?
- Modified
- 29 Jul at 07:13
Converting a POSTMAN request to Curl
I am calling my java webservice (POST request) via POSTMAN in the following manner which works perfectly fine (i.e. I can see my records getting inserted into the database): [](https://i.stack.imgur.c...
Project file is incomplete. Expected imports are missing
After format my computer I reinstalled Vs 2017 V 15.6.3 and install ASP.Net Core SDK from Microsoft 2.1.4 But when I create new asp core application VS failed with error > "Project file is incomplet...
- Modified
- 9 Apr at 13:40
await is only valid in async function
I wrote this code in `lib/helper.js`: ``` var myfunction = async function(x,y) { .... return [variableA, variableB] } exports.myfunction = myfunction; ``` Then I tried to use it in another file...
- Modified
- 9 Jul at 11:37
How to represent Guid in typescript?
let's say I have this C# class ``` public class Product { public Guid Id { get; set; } public string ProductName { get; set; } public Decimal Price { get; set; } public int Level { get; s...
- Modified
- 22 Mar at 15:18
TS2531: Object is possibly 'null'
I have the following function:- ``` uploadPhoto() { var nativeElement: HTMLInputElement = this.fileInput.nativeElement; this.photoService.upload(this.vehicleId, nativeElement.files[0]) ...
- Modified
- 22 Mar at 14:58