Uncaught SyntaxError: Unexpected token u in JSON at position 0
Only at the checkout and on individual product pages I am getting the following error in the console log: ``` VM35594:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.pars...
- Modified
- 15 Oct at 19:22
Can I teach ReSharper a custom null check?
ReSharper is clever enough to know that a `string.Format` requires a not-null `format` argument so it warns me about it when I simply write ``` _message = string.Format(messageFormat, args); ``` wher...
C# dotnet pass data from middleware/filter to controller method
We are developing a multi-hosting platform where we can register new clients based on the url passed to our application. However currently we wanted to create a middleware/filter to validate our clien...
- Modified
- 6 May at 00:58
C# ValueTuple properties naming
I'm trying ValueTuple Class in C#, and i have a doubt about properties naming, let's see: If instantiate a ValueTuple declaring the object like this: `var tuple1 = (Name: "Name1", Age: 25);` We can na...
- Modified
- 5 May at 15:0
how to remove json object key and value.?
I have a json object as shown below. where i want to delete the "otherIndustry" entry and its value by using below code which doesn't worked. ``` var updatedjsonobj = delete myjsonobj['otherIndustry'...
- Modified
- 6 Oct at 07:8
Invalid Switch syntax builds successfully?
Could someone please help enlighten me? I went to check-in some changes to TFS and my check-in was rejected. It prompted me to take a look at a switch statement I had edited. What I've found is ...
- Modified
- 5 Oct at 19:49
How to use switch statement inside a React component?
I have a React component, and inside the `render` method of the component I have something like this: ``` render() { return ( <div> <div> // removed for brevit...
- Modified
- 5 Oct at 19:1
Pandas error in Python: columns must be same length as key
I am webscraping some data from a few websites, and using pandas to modify it. On the first few chunks of data it worked well, but later I get this error message: ``` Traceback(most recent call last...
- Modified
- 24 Jul at 18:47
RestSharp Timeout not working
I have a restsharp client and request set up like this: ``` var request = new RestRequest(); request.Method = Method.POST; request.AddParameter("application/json", jsonBody, ParameterType.RequestBody...
- Modified
- 5 Oct at 11:47
Serilog is logging type rather than object content
I'm new to Serilog - trying it out to see if it will help. I'm using Serilog v2 and Serilog.Sinks.MsSqlServer v5 I have the following console app code: I would have expected the details of Person to b...
An existing connection was forcibly closed by the remote host in production environment
When calling my servicestack api from one of our production servers, using our web application, I get this exception: IOException: Unable to read data from the transport connection: An existing conne...
- Modified
- 5 Oct at 08:32
Convert Word doc and docx format to PDF in .NET Core without Microsoft.Office.Interop
I need to display Word `.doc` and `.docx` files in a browser. There's no real client-side way to do this and these documents can't be shared with Google docs or Microsoft Office 365 for legal reasons....
Swashbuckle: Make non-nullable properties required
Using Swashbuckle.AspNetCore in an ASP.NET Core webapp, we have response types like: ``` public class DateRange { [JsonConverter(typeof(IsoDateConverter))] public DateTime StartDate {get; set...
- Modified
- 11 Oct at 12:34
Is services.AddSingleton<IConfiguration> really needed in .net core 2 API
I accessed appsettings.json In .NET Core 2 Web API Controller simply by adding below: ``` public class MyController : Controller { private readonly IConfiguration appConfig; publ...
- Modified
- 4 Oct at 21:52
Is there a foreach construct in TypeScript similar to the C# implementation?
I really like using the `foreach` construct for "for loops" in C#. I think it's very clean, efficient and readable. Is there a similar construct in TypeScript? For example, instead of this: ``` ...
- Modified
- 19 Apr at 11:43
Tensorflow import error: No module named 'tensorflow'
I installed TensorFlow on my Windows Python 3.5 Anaconda environment The validation was successful (with a warning) ``` (tensorflow) C:\>python ``` Python 3.5.3 |Intel Corporation| (default, Apr 27...
- Modified
- 19 Oct at 02:28
What is Firebase Firestore 'Reference' data type good for?
I'm just exploring the new Firebase Firestore and it contains a data type called [reference](https://firebase.google.com/docs/firestore/manage-data/data-types). It is not clear to me what this does. ...
- Modified
- 15 Dec at 18:42
Google Firestore: Query on substring of a property value (text search)
I am looking to add a simple search field, would like to use something like `collectionRef.where('name', 'contains', 'searchTerm')` I tried using `where('name', '==', '%searchTerm%')`, but it didn't...
- Modified
- 19 Dec at 20:7
.Net Core 2.0 Windows Service
I'm trying to build a Windows Service in .Net Core 2.0 but I've been banging my head on the wall for a full day and no progress at all. Everything seems to be using Core 1.0/1.1 even the Microsoft doc...
- Modified
- 4 Oct at 09:48
asp.net core 2.0 Unable to Post to database
I have a web application that is being developed on a windows env and runs on ubuntu 16.04. I have no issues Posting info to my sqlite database file `blog.db`(located in the /. directory of the proje...
What is the simplest way to run a timer-triggered Azure Function locally once?
I have a few C# Azure Functions that run on a schedule using [timer triggers](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer). I've set them up like so, where `%Timer...
- Modified
- 4 Oct at 03:59
Do i need to use RedisLocks ( ServiceStack.Redis )
- - `builder.register<IRedisClientsManager>(c => new PooledRedisClientManager(conection));`- `redis.GetCacheClient();`- to set a cache entry I am doing: `cache_client.Set<T>(generate_key<T>(key), val...
- Modified
- 3 Oct at 21:14
PixelSearch in certain area of monitor
So I'm trying to find a certain pattern in the middle of the screen in a given area. I'm using the `AutoItX` library and the `PixelSearch` method. - - - - It's not returning that the pattern has be...
- Modified
- 6 Mar at 17:36
List running Jupyter notebooks and tokens
How do you check the login tokens for all running jupyter notebook instances? Example: you have a notebook running in `tmux` or `screen` permanently, and login in remotely through `ssh`. Sometimes, p...
- Modified
- 16 Jul at 11:38
When the keyboard appears, the Flutter widgets resize. How to prevent this?
I have a Column of Expanded widgets like this: ``` return new Container( child: new Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ new Exp...