How to solve SyntaxError on autogenerated manage.py?

I'm following the Django tutorial [https://docs.djangoproject.com/es/1.10/intro/tutorial01/](https://docs.djangoproject.com/es/1.10/intro/tutorial01/) I've created a "mysite" dummy project (my very fi...

5 Aug at 13:39

Border for some cells of a grid in WPF

I have a data grid. I want to create several borders - not for the entire grid, but for some of the cells. For example: 1. column 2 row 2 and 3 2. column 4 row 3 and 4. Attaching my XAML code. ...

10 Feb at 23:25

What are the practical scenarios to use IServiceCollection.AddTransient, IServiceCollection.AddSingleton and IServiceCollectionAddScoped Methods?

After reading [this](https://stackoverflow.com/questions/38138100/what-is-the-difference-between-services-addtransient-service-addscope-and-servi) post I can understand the differences between `AddTra...

13 Aug at 08:38

Custom NLog target with async writing

NLog allows me to write a [custom target](http://github.com/NLog/NLog/wiki/How%20to%20write%20a%20custom%20target). I want to log to my database using Entity Framework Core. In `NLog.Targets.Target` t...

23 May at 12:28

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here you can see the missing functionality: !...

12 Aug at 23:25

How to write custom actionResult in asp.net core

In webApi2 i could write a custom ActionResult by inheriting IHttpActionResult. Sample : ``` public class MenivaActionResult : IHttpActionResult { private readonly HttpRequestMessage _r...

4 Mar at 09:28

Crazy Deep Path Length in .Net Core 1.1

Has anyone seen a problem in .NET Core 1.1 where beneath the netcoreapp1.1\publish folder they end up with a bin folder that seems to loop on itself and eventually causes a path too long message to ap...

10 Mar at 14:4

How to renew only one domain with certbot?

I have multiple domains with multiple certificates: ``` $ ll /etc/letsencrypt/live/ > domain1.com > domain2.com > domain3.com > ... ``` I need to renew only `domain1.com`, but the command `certbot ...

2 May at 10:3

HttpClient reading entire file before upload. UWP

I'm making an UWP app that uploads files to facebook, I'm using a custom HttpContent to upload the files in 4k blocks to minimize the memory usage for big files (>100mb) and to report progress. My cu...

Error when Building Project: Error building Player because scripts have compile errors in the editor

I have the Tiled2Unity plugin. When I begin to build a version of my game in Unity, be it standalone version or anything else,i get the following error, "Error building Player because scripts have co...

4 Mar at 02:22

Get image from wwwroot/images in ASP.Net Core

I have an image in wwwroot/img folder and want to use it in my server side code. How can I get the path to this image in code? The code is like this: ``` Graphics graphics = Graphics.FromImage(pat...

How can I change the Bootstrap 4 navbar button icon color?

I have a Bootstrap website where the hamburger toggler is added when the screen size is less than 992px. The code is like so: ``` <button class="navbar-toggler navbar-toggler-right" type="but...

21 Jun at 13:55

Copy Files from Windows to Windows Subsystem for Linux (WSL)

I have enabled developer mode and installed `Bash on Ubuntu on Windows`. My home directory can be found under `%localappdata%\Lxss\home\<ubuntu.username>\`, i have created a sub-directory called Pict...

Cannot find module '@angular/compiler'

I run the command npm install -g @angular/cli and after i tried to run my app it says, Cannot find module '@angular/compiler' in the terminal. How can i install the compiler in my package.json in orde...

27 Nov at 14:41

Should I use a C# Dictionary if I only need fast lookup of keys, and values are irrelevant?

I am in need of a data type that is able to insert entries and then be able to quickly determine if an entry has already been inserted. A `Dictionary` seems to suit this need (see example). However, I...

3 Mar at 17:14

XmlWriter encoding UTF-8 using StringWriter in C#

I'm using C# to output an xml file and Im trying to set the xml encoding value to UTF-8 but its currently outputting: ``` <?xml version="1.0"?> ``` This is my code: ``` public sealed class StringW...

4 Mar at 12:22

ASP.NET Core middleware vs filters

After reading about ASP.NET Core middleware, I am confused about when I should use filters and when I should use middleware as they seem to achieve the same goal. When should middleware be used instea...

5 Jul at 23:8

UWP SendToAsync from Socket results in AddressFamilyNotSupported

I am using the class from UWP to send data via UDP to a specific device. The problem is that after a few send forth and back, my for Sending gets stuck and in SocketError i got AddressFamilyNotSup...

23 Apr at 07:16

Get object data and target element from onClick event in react js

This is my code. I want to get both data in object & target element using onClick event. Can anyone help me. ``` handleClick = (data) => { console.log(data); } <input type="checkbox" value={...

3 Mar at 10:18

Update TensorFlow

I'm working with `Ubuntu 14.04` , I had a `TensorFlow V0.10` but I want to update this version. if i do: ``` $ pip install --upgrade $TF_BINARY_URL ``` but it prints: ``` Exception: Traceback (m...

Purpose of package "Microsoft.EntityFrameworkCore.Design"

All tutorials agree that `project.json` should include: ``` "Microsoft.EntityFrameworkCore.Design": { "type":"build", "version":"1.0.0-preview2-final" } ``` I have never included it, an...

ServiceStack OrmLite mapping with references not working

I'm trying out OrmLite to see if I can replace Entity Framework in my projects. The speed is quite significant on simple queries. But I tried to map/reference a [1 to many- relation and read the docum...

why to have private setter in entity

Still getting used to Entity framework but I have seen code like below where they have private setter for id in Entity. Why should some have private setter. This Id field is anyway auto-generated in d...

WinError 2 The system cannot find the file specified (Python)

I have a Fortran program and want to execute it in python for multiple files. I have 2000 input files but in my Fortran code I am able to run only one file at a time. How should I call the Fortran pro...

appSettings.json for .NET Core app in Docker?

I am running a .net core app in a docker container. Here is my docker file (just to build a dev environment): ``` FROM microsoft/dotnet:1.0.1-sdk-projectjson ENV ASPNET_ENV Development COPY bin/Debu...