How is this wrong in VS 2017, ASP .NET Core 2.1.x, Razor Page?

I’m trying to setup a a simple page to show a list of items yet I am getting all types of weird errors. I suspect that their is something simple that I am missing in my setup. Any ideas on this are appreciated. I’m not

The first error listed is:
Severity Code Description Project File Line Suppression State
Error CS0115 ‘_Page_Pages_Admin_Setup_Lots_Index_cshtml.Execute()’: no suitable method found to override Management C:UserstheevDropboxProjectsRealEstateManagementManagementPagesAdminSetupLotsIndex.cshtml 1 Active

cs file:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Management.Libraries;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace Management.Pages.Admin.Setup.Lots
    public class IndexModel : PageModel
        public IndexModel()
            Subdivisions = new List();
        List Subdivisions { get; set; }

        public async Task OnGetAsync()
            var da = new DataAccess();
            var subs = await da.SubdivisionsAsync();
            Subdivisions = subs;

cshtml page:

@model Management.Pages.Admin.Setup.Lots.IndexModel
    ViewData["Title"] = "Index";
    Layout = "~/Layouts/_DesktopTemplate.cshtml";


@{ foreach(var s in Model.Subdivisions) { } }
Name Location Edit Delete

I’m just not sure if there is something obvious that I am missing.

All topic

What Would Cause APFS Volumes to Show Up Under the Wrong Disk?

I’ve got a pretty interesting APFS problem. There are two volumes on one, internal drive, and two that were cloned from it, on an external. All four volumes show up under the internal drive, even though they show up under the right device going by device number. So – you have disk1s1, disk1s5, disk8s1, and disk8s5 all showing up under disk1.

They are also showing up as belonging to disk6, which houses disk8. Disk8 though – it’s listed as “Uninitialized,” and won’t do a thing.

It started like this:

  1. My system drive had an fsroot error when checked. It seemed to cause problems with booting and some hangs; I wanted to clone the drive to have a back up to my backups – to be super safe.
  2. I couldn’t clone either the disk or the system drive volume. I’d end up with a single file on the target drive that said “tobeinverted.”
  3. I used dd to clone the drive. The clone has the same “invalid fstroot tree” problem, of course.
  4. After a reboot, the volumes that belong under the external drive are shown in the container disk for the system drive (internal). And after another reboot… unmounting and mounting again…

Meanwhile, I’m unable to get High Sierra reinstalled on the original system drive – it hangs with a completed status bar and the Apple logo. It does this even after I’ve erased it – First Aid / fsck checks out now that it’s wiped, too. So that’s confusing.

I’m going to get myself out of this mess, but since I can’t find anything on this weird issue, I think it could be helpful to someone else in the future.

I don’t know much about these aspects of disk and drive structure and so on, but if fsroot doesn’t stand for filesystem root, I quit everything.

So – the volume has corrupt information about which disk it belongs to? Is that how I ended up here?

They know which device they belong to… it shows up under the Device section, and using diskutil list, or df -h; whatever you like.

The Disk Utility First Aid errors:

error: invalid dstream.default_crypto_id (0x4), given apfs_fs_flags (0x1)
error: xf : INO_EXT_TYPE_DSTREAM: invalid dstream
error: inode_val: object (oid 0x1a24c0): invalid xfields
fsroot tree is invalid.
The volume /dev/disk/ could not be verified completely.

That’s it – if someone has encountered this problem I’d love to hear about your experience.

All topic

Why would they get the numbers of the Eagles wrong in Space:1999?

In episode 2 of season 1, the Eagle you can see in the first five minutes is referred to as Eagle 1. Yet, in the scenes within the cockpit, you can clearly see a nice big 6. There’s another episode (can’t remember which) where an Eagle is referred to as 8, where you can also see a 6 within the cockpit.

So, what’s the reason? Were they lazy in decorating the Eagle’s interior before filming? Or am I missing something else?

I did check both audio tracks of my german DVDs, and what I’m referring to is the english soundtrack. The german one is partly different (Eagle 6 for episode 2, Eagle 8 for the other one).

All topic

DC and low signal Analysis of Common Source Amplifier: wrong drain current and amplification?

For a Coursera test I need to analyze a common source amplifier:
CS Mosfet Amplifier

I need to calculate the

  • DC gate voltage – easy: -2.3077
  • drain current Id – should be easy but the results are wrong. I use this formula from the course or from here:
    I_d=(frac{sqrt{1+4*K*V_1*R_{SS}}-1}{2*sqrt{K}*R_{SS}})^2 \
  • the drain voltage Vd=Vdd-Id*Rd which gives me -3.7719 V with the “wrong” current ??
  • the amplification which gives me -24.8174 (which is wrong!)
    frac {V_{out}}{V_{in}}=-frac {R_D ||R_L}{r_s+R_S||R_3}\


Here are my calculations from Matlab:

Vdd=15; Vss=-15;K=1.1*1e-3;Vto=2;R1=150000;R2=110000;Rd=10000;Rs=5000;
R3=200; Rl=10000;

Vg = -2.3077


Vd = -3.7719

gac=-R_parallel(Rd, Rl)/(rs+R_parallel(Rs, R3))
gac = -24.8174

No I wonder am I too dumb to be true or is there a flaw in the automatic grader?

In case I am too dumb, please, tell, where my error is. Thanks.

All topic

What is wrong with my set up?

Good day all,

Can someone please point me to the right direction. I am currently running a clayminer mining in ethermine and my average hashrate is 12mHs. I have a 6 GPU rig and my rog consists of:

6 Palit GTX 1070 jetstream 8Gb
MSI Z270 M7 for motherboard
i3 7100 kaby lake
Windows 10 64 bit

I have updated all the GPU drivers. I downloaded the MSI afterburner and tried to set my mem clock to +800 and still no good. Each gpu only has around 2 MHs what ever i do.

Please help me.

All topic

Zonal statistics as table in ArcGIS outputs wrong result for coincident polygons [on hold]

I am trying to use Zonal statistics as table. I have 3 layers:

  • vector point layer with 165 points. Some of these points happen to coincide, that is they have identical coordinates.
  • vector polygon layer coming from a buffer for the vector point layer. The polygons are all exact circles. Naturally some of them coincide, just the same as in the vector point layer.
  • raster layer containing cells with integer value ratings from 1 to 5. There are no intermediate values. Only 1,2,3,4,5 or Nodata.

I am running Zonal Statistics as Table with the buffer layer as my zone layer, the raster layer as my value layer, and a mean type statistic, considering “DATA” for output. This means I would like Nodata values to be ignored. As soon as there is at least one pixel with some data in it, that data should be used for averaging.

When I run the tool, I get what appears to be reasonable output. A great majority of the buffers produce a double type average of the underlying raster cells. However, for those which coincide, the average gets computed only once (for one of the buffer polygons). The others obtain a value of zero, despite the fact that underneath them are the exact same raster cells.

I would like for the tool to still compute the average, despite the fact that some of these points/polygons are coincident.

Is it the case that the Zonal Statistics as Table tool does not double count raster cells?

If so how can I force it to recalculate the statistic even for coincident zones?

I have also noticed that the stat table generated contains more rows than there are actually buffers. This is a major concern, it was my impression that the tool must calculate a statistic for every polygon. Perhaps my problem is related to the following link, however in my case I am setting arcpy.env.overwriteOutput to True in my script, and I still face the same problem.

All topic

I chose the wrong job and the wrong place to work at [on hold]

I feel like I might have chosen the wrong job. I love research, coming up with solutions, and creating things, and my field is in technology. However, after getting my phd I was burned out and a bit lost. and even though I have so many ideas that can be implemented and would sell in a minute, I just didn’t know where to start (on my own) and if this is the right time to do it. Since I felt that I’m not ready to start on implementing my own ideas, I applied for an assistant prof job and I got it.

It turns out that the university I’m in is not that great. The management is terrible, and research isn’t a priority. I wasn’t given an introduction and there was no onboarding process. I was given multiple tasks (a lot of them outside of my job description) to do the moment I stepped in and was assigned courses to teach without giving me a choice (and it’s outside of my expertise but I can teach it since it is BSc level). On top of that, I was asked to attend compulsory courses that adds up to 13 hours a week for 3 months. (I guess that’s my introduction).

I’m still in my first month in this job, but I’m not happy with it. I’m usually a very energetic and positive person, but now I feel physically and emotionally exhausted and tired. The lack of energy is not just because of the tasks I have to do, but also because of the toxic environment. I can’t even do research, because I’m too busy trying to finish other tasks.

I’m not sure what is the right thing to do now? Do I stay at least a year before I decide to leave? Do I start applying for new jobs and leave as soon as I get one? I’m kind of afraid of going to another university, because I may face the same issues? I’m worried that if I leave academia then I lost the chance to do research independently. Starting my own business now is still risky (even though this is my dream)

I don’t know what to do, I need advice…

All topic

Why is my assembly code in MIPS wrong?

I’ve started studying assembly, and I’ve been tryign to solve this problem:

For the following C statement, what is the corresponding MIPS assembly
code? Assume that the variables f, g, h, i, and j are assigned to
registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the
base address of the arrays A and B are in registers $s6 and $s7,

B[8] = A[i−j];

Source: Computer Organization and Design 5th Edition.

So, I did this:

sub $t0, $s3, $s4 // temp = i - j
sll $t0, $t0, 2   // temp = temp*2^2= 4*temp
add $t0, $t0, $s6 // temp = &A[i-j]
lw  $t1, 0($t0) //   t1 = temp
sw $t1, 32 ($s7) // B[8] = t1 = temp = A[i-j]

But looking at the book’s solution manual to verify that my answer is correct, I got this:

sub $t0, $s3, $s4
add $t0, $s6, $t0
lw $t1, 16($t0)
sw $t1, 32($s7)

I am confused. How did they come up with the third statement lw $t1, 16($t0) ?

All topic

WireMock using wrong __files directory for multi-directory mappings configuration

I’m using Spring Boot with spring-cloud-contract-wiremock and com.github.tomakehurst.wiremock dependencies.
My wiremock definitions are stored in json files. Like that:


  "request" : {
    "urlPath" : "/detail/123",
    "method" : "GET"
  "response" : {
    "status" : 200,
    "bodyFileName" : "detail.json",
    "headers" : {
      "Content-Type" : "application/json;charset=UTF-8"


  "id": "123",
  "name": "name-123"


  "request" : {
    "urlPath" : "/service/usa/search",
    "queryParameters" : {
      "query": {
        "equalTo": "123"
    "method" : "GET"
  "response" : {
    "status" : 200,
    "bodyFileName" : "search-123.json",
    "headers" : {
      "Content-Type" : "application/json;charset=UTF-8"


  "count": 1,
  "units": [
      "name": "A123"

I have standard JUnit test class which is annotated with:

@AutoConfigureWireMock(stubs = {"classpath:/directoryA/mappings", "classpath:/directoryB/mappings"},
        files = {"classpath:/directoryA", "classpath:/directoryB"},
        port = 18081)

This files looks like are recognized correctly by wiremock and all definitions are parsed correctly, but the problem is with assigning correct body file to request:
When application try to execute request:

GET http://localhost:18081/service/usa/search?query=123 HTTP/1.1

Then I’m getting error:

java.lang.RuntimeException: /home/my-project-dir/target/test-classes/directoryA/__files/search-123.json (Not found such file or directory) 

So… The problem is that wiremock search for file defined in bodyFileName part of mapping definition (directoryB/mappings/search-mapping-123.json) in directory directoryA instead of directoryB, from where mapping file was used. If there will be used


then everything should work fine…

Does somebody had similar problem? I’m not sure if this is a bug in my configuration or in wiremock library.

All topic

Bitcoin transfeered to wrong address

I’m new to copay. I just transferred money to a bitcoin address but for some reason, Copay transferred it to my own account. I had to pay a miners fee for this which cost a lot of money. How can I contest this? I put in the correct address but it did not go there.

All topic