What is the difference between URL parameters and query strings?
I don't see much of a difference between the parameters and the query strings, in the URL. So what is the difference and when should one be used over the other?
- Modified
- 22 Nov at 22:3
Error: Unexpected value 'undefined' imported by the module
I'm getting this error after migrating to NgModule, the error doesn't help too much, any advice please? ``` Error: Error: Unexpected value 'undefined' imported by the module 'AppModule' at ne...
- Modified
- 1 Sep at 07:54
ServiceStack xml nil
Starting to play with ServiceStack and I'm looking for a way to exclude null properties on the Response DTO when exporting as xml. This is the sort of thing I want to omit... ``` <SectorCode i:nil="t...
- Modified
- 1 Sep at 07:25
Is it okay to attach async event handler to System.Timers.Timer?
I have already read the SO posts [here](https://stackoverflow.com/questions/36661338/how-to-call-an-async-method-from-within-elapsedeventhandler) and article [here](http://theburningmonk.com/2012/10/c...
- Modified
- 23 Nov at 21:36
C# 6.0 builds fail on TFS Build even with Microsoft.Net.Compilers installed
My company has TFS 2013. I have a project using C# 6.0 features. My team does not have direct access to the build server. VS2015 is not yet installed there but the folks that manage the server are loo...
ServiceStack MessageQueue on Moible devices using Xamarin
I'm new to ServiceStack and want some validation on a pattern we're thinking about using. We want to use ServiceStack with Xamarin and Message Queues. While I understand how REST works under the co...
- Modified
- 31 Aug at 22:24
GDI+ exception when saving image in PNG format
An ASP.NET application on my server starts throwing GDI+ exception after running for several days. After I restart the server, all works fine for a couple of days and then suddenly this exception occu...
- Modified
- 9 Sep at 17:6
Bug in OrmLite - updating record with Primary Key = 0
Given a simple poco ``` public class Model { [PrimaryKey] public int ID { get; set; } public string Description { get; set; } } ``` this works fine ... ``` var connectionString = @"Dat...
- Modified
- 1 Sep at 15:37
Convert Pandas DataFrame to JSON format
I have a Pandas `DataFrame` with two columns – one with the filename and one with the hour in which it was generated: ``` File Hour F1 1 F1 2 F2 1 F3 1 ...
.net Core amd Roslyn CSharpCompilation, The type 'Object' is defined in an assembly that is not referenced
I'm trying to port some .net code to the new Core runtime and I'm having a bad time porting some on-the-fly compilation. To resume, it always asks me for a reference to System.Runtime and mscorlib, b...
How to define an interface for objects with dynamic keys?
I have an Object like this that is created by underscore's `_.groupBy()` method. ``` myObject = { "key" : [{Object},{Object2},{Object3}], "key2" : [{Object4},{Object5},{Object6}], ... } ``` H...
- Modified
- 23 Jul at 11:17
How to use Action Filters with Dependency Injection in ASP.NET CORE?
I use constructor-based dependency injection everywhere in my `ASP.NET CORE` application and I also need to resolve dependencies in my action filters: ``` public class MyAttribute : ActionFilterAttri...
- Modified
- 31 Aug at 18:11
Given an Applications Insight Instrumentation key, get the name of the service in Azure
How can I programmatically determine the name of the Application Insights instance given the instrumentation key? Our company has a large number of application insights instances in Azure. When troub...
- Modified
- 24 Feb at 22:58
Roslyn compiler optimizing away function call multiplication with zero
Yesterday I found this strange behavior in my C# code: ``` Stack<long> s = new Stack<long>(); s.Push(1); // stack contains [1] s.Push(2); // stack contains [1|2] s.Push(3); ...
- Modified
- 31 Aug at 16:28
Mono ServiceStack closes tcp connections prematurely
We have been trying to transfer large files via ServiceStack's customized HttpResult return type. However if the service is running under Ubuntu 14.04 LTS with Mono v4.4.2 the connection gets prematur...
- Modified
- 31 Aug at 14:26
Why does Object.Equals() return false for identical anonymous types when they're instantiated from different assemblies?
I have some code that maps strongly-typed business objects into anonymous types, which are then serialized into JSON and exposed via an API. After restructuring my solution into separate projects, so...
- Modified
- 31 Aug at 12:56
Code stops executing when a user clicks on the console window
I've got a console application that executes my code without user interaction. If the user clicks within the console window, on purpose or on accident, all execution stops. This has something to d...
- Modified
- 31 Aug at 13:24
ConfuserEx: System.TypeInitializationException on Mono
I cannot get my obfuscated application running on mono. Unobfuscated works on mono. When I use the .net framework on win7 it starts without issue in both variants. This is the exception I get: > Unh...
- Modified
- 30 Sep at 09:37
Node cannot find module "fs" when using webpack
I'm using node.js and webpack to create a bundle. From what I've read, node.js should contain `fs` module for managing files. However when I call `require("fs")` I get an `Cannot find module "fs"` err...
How to batch get items using servicestack.aws PocoDynamo?
With Amazon native .net lib, batchget is like this ``` var batch = context.CreateBatch<MyClass>(); batch.AddKey("hashkey1"); batch.AddKey("hashkey2"); batch.AddKey("hashkey3"); batch.Execute(); var r...
- Modified
- 31 Aug at 11:27
how to hide bottom bar of android (back, home) in xamarin forms?
How can I hide the bottom android bar (back button, home button) permanently in xamarin forms? I tried some code but its hiding it temporarily. When I touch the screen, it again shows. But I want to h...
- Modified
- 14 Feb at 06:20
How to enable migration in SQLite using EF
I have stuck in problem. I am writing a code for windows desktop application and I have to use **SQLite** as a database. I have successfully installed `System.Data.Sqlite` and entity framework from nu...
- Modified
- 7 May at 02:13
How to add dynamically attribute in VueJs
I'm using vuejs and I wanna know how to have control on inputs (add disabled attribute when necessary). Is there any way to add dynamically attribute in vuejs ? Below my : ``` <template> <inpu...
- Modified
- 5 Nov at 16:8
Why ServicePointManager.SecurityProtocol default value is different on different machines?
Currently I have an issue and can't find strict answer on it. I have ASP.NET MVC 5 application targeting 4.6.1 framework and its goal is to work with third party API's that are secured by TLS 1.1/TL...
- Modified
- 9 Jun at 21:29
Keep a self hosted servicestack service open as a docker swarm service without using console readline or readkey
I have a console application written in C# using servicestack that has the following form: ``` static void Main(string[] args) { //Some service setup code here Consol...
- Modified
- 31 Aug at 10:24