Visual Studio Code Search and Replace with Regular Expressions
I want to use "Search And Replace" in Visual Studio Code to change every instance of `<h1>content</h1>` to `#### content` within a document using a Regular Expression. How can I accomplish that?
- Modified
- 8 Aug at 11:17
Why doesn't returning by ref work for elements of collections?
The following example of returning by reference is from [What’s New in C# 7.0](https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/): ``` public ref int Find(int number, int[] ...
Visual Studio Code pylint: Unable to import 'protorpc'
I'm using [pylint](https://github.com/DonJayamanne/pythonVSCode/wiki/Linting#pylint) in [Visual Studio Code](https://code.visualstudio.com/) to develop a Google App Engine (GAE) [Cloud Endpoint API in...
- Modified
- 2 Mar at 07:49
Authorization in ASP.NET Core. Always 401 Unauthorized for [Authorize] attribute
For the first time I'm creating Authorization in ASP.NET Core. I used tutorial from here [TUTORIAL](https://dev.to/samueleresca/developing-token-authentication-using-aspnet-core) The problem is when ...
- Modified
- 27 Apr at 11:3
How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes can...
Put request with simple string as request body
When I execute the following code from my browser the server gives me 400 and complains that the request body is missing. Anybody got a clue about how I can pass a simple string and have it send as th...
- Modified
- 2 Mar at 11:21
Sort an array of objects in React and render them
I have an array of objects containing some information. I am not able to render them in the order I want and I need some help with that. I render them like this: ``` this.state.data.map( (i...
- Modified
- 28 Feb at 08:24
Error (-215) size.width>0 && size.height>0 occurred when attempting to display an image using OpenCV
I am trying to run a simple program that reads an image from OpenCV. However, I am getting this error: ``` error: ......\modules\highgui\src\window.cpp:281: error: (-215) size.width>0 && size.height>...
Unable to start Docker service with error "Failed to start docker.service: Unit not found."
I have installed Docker with `yum install docker`: ``` $ uname -a Linux caspgval4 3.10.0-229.20.1.el7.x86_64 #1 SMP Wed Nov 4 10:08:36 CST 2015 x86_64 x86_64 x86_64 GNU/Linux $ docker --version Dock...
- Modified
- 1 Aug at 18:55
Why Entity Framework performs faster than Dapper in direct select statement
I'm new to using ORM in dealing with database, Currently I'm making a new project and I have to decide if i'll use Entity Framework or Dapper. I read many articles which says that Dapper is faster tha...
- Modified
- 24 Dec at 14:3
How can I enable VIM for mac in Visual Studio?
I just got Visual Studio for my Mac. Although in Beta, it seems nice. Unfortunately, I can't seem to figure out where VIM could be. I've searched the marketplace, but cannot load any file or extension...
- Modified
- 23 Apr at 09:13
Name ValueTuple properties when creating with new
I know I can name parameters when I create a tuple implicitly like: ``` var me = (age: 21, favoriteFood: "Custard"); ``` Is it possible to name parameters when a tuple is created explicitly? i.e. ...
OrmLite db.Select not return response
I use Servietack and OrmLite in our project. When the request (Db.Select) is sent, after much time, no response return. ``` public object Get(GetCategoryNews request) { var PageCo...
- Modified
- 25 Apr at 19:16
Display error message on the view from controller asp.net mvc 5
I am new to web development and trying to learn ASP.Net MVC 5. I am looking for one record in database if the record is not found then I want to display an error message to the user. Below is my attem...
- Modified
- 22 Apr at 15:46
How to add .Net framework prerequisite to setup install
I have a C# WinForms project in MS Visual Studio . I have added a Visual Studio Installer Setup Wizard Project to create an installer for my application. This is my first time using an installer proje...
- Modified
- 8 Jun at 08:37
How to call ajax in Wordpress
My ajax call output is always showing 0 as output don't know why In `functions.php` I have this code ``` function get_data() { $abc = '1'; $result = $wpdb->get_results("SELECT * FROM ".$wpd...
- Modified
- 24 Mar at 11:33
Angular 4: How to include Bootstrap?
I'm a backend developer and I'm just playing around with Angular4. So I did this installation tutorial: [https://www.youtube.com/watch?v=cdlbFEsAGXo](https://www.youtube.com/watch?v=cdlbFEsAGXo). Giv...
- Modified
- 22 Aug at 18:33
Reading settings from a Azure Function
I'm new to [Azure's function](https://learn.microsoft.com/en-us/azure/azure-functions/)... I've created a new timer function (will be fired every 30 minutes) and it has to perform a query on a URL, th...
- Modified
- 30 Nov at 16:13
Failed form propType: You provided a `value` prop to a form field without an `onChange` handler
When I load my react app I get this error in the console. > Warning: Failed form propType: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only ...
- Modified
- 22 Apr at 06:50
How do you run unit tests for a specific target framework in Visual Studio 2017/2019?
I am really loving the new `.csproj` format. It is so much better than that dreaded (limited) `project.json`. However, there is one thing that I am trying to work out. I have merged my (multiple) tes...
- Modified
- 18 Jun at 17:34
How can I manually set an Angular form field as invalid?
I am working on a login form and if the user enters invalid credentials we want to mark both the email and password fields as invalid and display a message that says the login failed. How do I go abou...
- Modified
- 11 Dec at 20:49
How can I diff two branches in GitHub?
I am just wondering if there is a way to simply diff two branches in GitHub? I know GitHub has capacity to do it because when we do code-reviews it does list out all the diffs nicely. I was just wonde...
- Modified
- 21 Apr at 21:26
How to make SQLite foreign keys with SQLite.Net-PCL
In UWP, I enjoy the benefits of using SQLite.Net-PCL, creating classes to be used in apps as ObservableCollections to bind to the GridView. After including SQLiteNetExtensions to build a database wit...
- Modified
- 29 Apr at 00:9
ALTER TABLE DROP COLUMN failed because one or more objects access this column
I am trying to do this: ``` ALTER TABLE CompanyTransactions DROP COLUMN Created ``` But I get this: > Msg 5074, Level 16, State 1, Line 2 The object 'DF__CompanyTr__Creat__0CDAE408' is dependent...
- Modified
- 21 Apr at 18:11
TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable
I am trying to `map` from a service call but getting an error. Looked at [subscribe is not defined in angular 2?](https://stackoverflow.com/questions/41995647/subscribe-is-not-defined-in-angular-2) an...
- Modified
- 19 Mar at 20:18