c# – How to design a class holding information about a relationship between two interchangable objects

I’d like to design a class that holds comparison results about to objects.

Given I have a class Thing and that Thing has a bunch of properties. Now I have an engine that compares Thing instances (held in a collection) to one another. Comparisons are actually Types deriving from a Comparison base class and can be fairly complex (e.g. ColorComparison). The actual result is not of importance, only that the comparison results in a match. So if comparing two Thing instances succeeds the comparison will be stored in a Match class, along with information about the applied comparison. So a Match class might have the properties

I later need to store the Match class instances in a HashSet for fast lookup. What identifies a Match is the combination of ThingA and ThingB. In a perfect world the Match class could provide the same Hash for ThingA = x and ThingB = y vs. ThingA = y and ThingB = x. It might be later needed that not only one Comparison is stored within a Match but several different.

Some additional implementation notes:

  • Once a Match class has been instanciated, both ThingA and ThingB are immutable
  • The Things inside a Match cannot be manipulated (e.g. I cannot store the relationship information inside them)

My question is, how to I design the Match class in a way that when the HashSet is searched for the x and y combination of Things it also finds the y and x combination.

Router open UPnP port – Information Security Stack Exchange

Yesterday i performed some nmap scans on my router Huawei HG8245H. And I found two unknown TCP open ports. So I performed another scan with -sV and turned out the ports were upnp ports.

So I checked my router settings and upnp was disabled but the ports are still open !!.

So should I bother closing them ? How would I do that if upnp is already disabled ??

information architecture – UX Approaches to Competitive Analysis for a University Branding/Communications Toolkit Website?

I’m being asked to do a “competitive analysis” for a university website that has communications and brand guidelines/resources. This is meant at as a solo project done in a few days, I don’t have many resources at hand at the moment so user testing is out of the question.

The request was very broad and I was thinking of comparing our toolkit against other university’s brand toolkits. Taking an initial look, the information architecture & site map could use some work…

What are some UX approaches/considerations I should take into account when reviewing our website and comparing it against other universities?

what information can an attacker gain from watching the users behavior in block chain?

Given the block chain is a public ledger, if user chooses not not change their public key
every time they make a transaction, what information can an attacker gain from watching
the users behavior?

Replication of information across multiple pages

I’m trying to redo my companies SharePoint online. I’m not sure how to word it so I’ll give an example:

I have a page with a name and phone number on it: ie Bob Smith 555-5555.

I want to embed or show that name and number on multiple different pages. Also if I were to change the initial page, like Bob got a new number, I change it on the initial page and it changes on all other pages. If you know Confluence, I would like something along the lines of the include page macro.

Any help would be great. Thanks.

privacy – Does CT use any kind of Private Information Retrieval (PIR)?

I’ve read several papers that propose different styles of PIR to be used with CT, but I am unable to find any confirmation that any PIR is in fact being used in in CT.

Is my google-fu weak or does CT still compromise privacy by exposing your surfing habits whenever you negotiate a TLS cert?

confluence – Best webapp for having a customer information site with authentication?

At a startup we have a short list of resellers and early users, so we need to create a customer/user resource website, usually I would suggest Confluence but I’m thinking there may be a better alternative where we can host documents and information and still have users authenticate for access.

encryption – Is Microsoft Forms adequately secure to collect personal health information?

I want to make a survey on a website using Microsoft Forms. This is a service that allows users to create surveys that can be disseminated to others to fill out. My patients could input personal health information into this form, so I want it to be secure. I want to be able to access the details they submit through this service.

The Microsoft website indicates “Microsoft Forms is compliant in the following ways:HIPAA and BAA compliant, GDPR compliance….” and “Microsoft Forms meets FERPA and BAA protection standards.”

Some info can be found here: https://support.office.com/en-us/article/security-and-privacy-in-microsoft-forms-7e57f9ba-4aeb-4b1b-9e21-b75318532cd9

Does this mean information submitted into Microsoft forms is sufficiently secure for my patients to use it to send me personal health information? Can information submitted over Microsoft Forms be read by someone other than me, the website owner?

The following information may help to resolve the situation in kali linux

$ sudo apt-get dist-upgrade
(sudo) password for somasekhar: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-9-dev (< 9.3.0-5~) but 9.2.1-22 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

How do I solve the error?

8 – Autopopulate a content type with user information

I have a custom content type. I have created users using Add users.

I need to create a page with a search box for the username. After selecting the username, I need to be directed to the content type with user data auto-populated. The user data is already added with Add user.

How do I do both of this? I have been suggested to write a query, but I haven’t been able to grasp the concept.