Questions

Lombok problems with Eclipse Oxygen

I upgraded recently to the new Eclipse version (Oxygen). I downloaded the lombok.jar from the website and installed it. This is how the `eclipse.ini` looks like after installation: ``` -startup plugi...

6 Aug at 18:50

How to set the maximum width of a column in CSS Grid Layout?

Using [CSS Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout), to have a page with a right column which size is derived from its content, but only up to 20% of the windo...

Could not load file or assembly 'System.Net.Http'

``` Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Stack...

2 Aug at 10:50

Make text show up on hover over button

What I want to do is have something like this: ``` <button class="addMore">+</button> ``` Do an effect like this: [https://i.gyazo.com/d353b657df39c0e6ff159bfdb713f6a4.mp4](https://i.gyazo.com/d35...

2 Aug at 09:15

Mongo C# - Where is FindOne?

I'm having trouble understanding how to do a `findOne` operation in the Mongo C# 2.4 driver. I have a collection with just over 9.1 million, flat documents. When I perform a `findOne` in Robomongo, ...

2 Aug at 07:53

Access values from LINQ GroupBy

I have a linq query looking like this: ``` var myGrouping = ( from p in context.Products join pt in context.ProductTypes on p.productId equals pt.productId ...

2 Aug at 06:59

How to make a formControl readonly

How to make a formControl in angular readonly I know i can do it in html like ``` <input type="text" formControlName="xyz" readonly /> ``` how to do it from JS Code and not html i.e in a model dr...

2 Aug at 05:44

Conditional Access expression cannot be assigned - C# null-propagation += events

One of my favorite C# features added is the "[null-propagation](https://msdn.microsoft.com/en-us/magazine/dn802602.aspx)" in CS6. This has cleaned up so much code for many of us. I came across a sit...

How does this seemingly unconnected block (after an if statement) work?

I've inherited some code that makes occasional use of the following if notation: ``` if (a) foo(); { if (b) boo(); moo(); } ``` I'm not sure how to read that naturally but the c...

2 Aug at 16:13

NETCORE MVC - How to work with nested, multi-parameterized routes

Looking for best practices when working with nested routes in .NET Core MVC. Let's say `CampusController.cs` works with a base model: ``` [Route("api/campus/")] public class CampusController : Contr...

Why exactly is void async bad?

So I understand why returning void from async would normally make no sense, but I've ran into a situation where I think it would be perfectly valid. Consider the following contrived example: ``` prot...

1 Aug at 21:28

Change the Table's Alias name runtime in ServiceStack.OrmLite

I have a application contains IdentityDbContext and I want to select data using ServiceStack.OrmLite and I want to know how can I change the alias name ``` public class ApplicationDbContext : Identit...

Chrome javascript error: Refused to get unsafe header X-Response-Time with servicestack

I am getting this error in the chrome console. I added the X-Response-Time header to allowedHeaders to the CorsFeatures ``` Plugins.Add(new CorsFeature( "*", allowCredentials: true, allowedHeaders: ...

1 Aug at 18:11

Get the value of authorization bearer in Service stack

I have following scenario , Mobile client --->Service stack api(A) --->A Wcf service(B) I am sending an access token from mobile client as Http Authorization header to service stack api (B)I don't n...

1 Aug at 16:52

How can I create a dropdown menu from a List in Tkinter?

I am creating a GUI that builds information about a person. I want the user to select their birth month using a drop down bar, with the months configured earlier as a list format. ``` from tkinter i...

6 Mar at 16:1

How to create a method to return 1 or 0 without using conditions?

I was asked a question in an interview to return 1 if provided 0 and return 0 if provided 1 without using conditions i.e if, ternary etc Just to give you and idea below code without if's: ``` public...

7 Aug at 08:21

How to check if a StringBuilder is empty?

I want to test if the `StringBuilder` is empty but there is no `IsEmpty` method or property. How does one determine this?

Hyperlink to a secondary query in the results of an AutoQuery UI using ServiceStack

Firstly, I am amazed at how simple and performant ServiceStack is. Can't believe I've gone without sing this for so long. I'm especially loving the AutoQuery and Admin feature, but for the life of me...

Automatic CreatedAt and UpdatedAt fields OnModelCreating() in ef6

I have `CreatedAt` and `UpdatedAt` columns in my `User` model. `User.cs` **Requirement** * When we `SaveChanges()` user records, `CreatedAt` and `UpdatedAt` should automatically saved e.g: `DateTime.U...

5 May at 14:14

How list Amazon S3 bucket contents by modified date?

Most of the time it happens that we load files in a common S3 bucket due to which it becomes hard to figure out data in it. How can I view objects uploaded on a particular date?

Click on pseudo element using Selenium

I am trying to use Selenium to click on a ::after pseudo element. I realize that this cannot be done through the WebDriver directly, but cannot seem to figure out a way to do so with Javascript. Here...

Invalid Host Header when ngrok tries to connect to React dev server

I'm trying to test my React application on a mobile device. I'm using ngrok to make my local server available to other devices and have gotten this working with a variety of other applications. Howeve...

1 Aug at 20:29

InkWell not showing ripple effect

Tapping the container triggers the `onTap()` handler but does not show any ink splash effect. ``` class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) {...

aws lambda using .net core 2.0

I am trying to leverage the .net core 2.0 for AWS lambda and could not find any documentation for its support for same. Has anyone tried lambda targetting .net core 2.0 or is it supported?

Anaconda vs. miniconda

In the [Anaconda repository](https://repo.continuum.io/), there are two types of installers: "" and "". What are their differences? Besides, for an installer file, `Anaconda2-4.4.0.1-Linux-ppc64l...

17 Feb at 02:30