How to name a page that contains 3 features that have no relationship to each other?

I’m working on an intranet that requires users to input 3 different sets of information.

One set is about their relationship to their organization (Partner, On leave, Applicant, etc). The second set is about their location (Normally living in the UK). The third set is the team they work in (International office).

I need to have the results (summary) of this information on the same page, because all of the sets have a start and end date and have to align. (Such as having the same start or end date on a location and a team).

How do I name this page when all 3 features have no correlation of information or user tasks. I realize I could summary, but a summary of what? What is the collection of these 3 features called?

Multiple NICband need gateway to each NIC ubuntu 16.04

i have some issue regarding setup NTP on my ubuntu 16.04. I have 2 NIC

eth0 192.168.1.1/24 gateway 192.168.1.254 <– use for access internet eth1 172.16.0.1/24 gateway 172.16.0.254 <– use for local client vlan access

Now i can not access to this ubuntu from PC client, and i think this is cause by multiple gateway in one linux.

Please kindly help, thank you.

¿Cómo obtener el valor de los elementos con la función each()?

Quiero obtener el valor de las etiquetas label con la funcion each() de Jquery, pero me arroja un error que el parametro element NO es una función. Cómo puedo arreglar eso?

$  (".lbl-asistencia").each(function(index, element){ 	console.log(element.text()); });
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>   <table class="table">     <tbody><tr>         <th>             id_alumno         </th>         <th>             dni_alumno         </th>         <th>             nombre_alumno         </th>         <th>             ape_pat_alumno         </th>         <th>             ape_mat_alumno         </th>         <th>             asistencia_alumno         </th>         <th></th>     </tr>      <tr>         <td>             1         </td>         <td>             76475156         </td>         <td>             GIAN FRANCO ALEXIS         </td>         <td>             POMA         </td>         <td>             VIDAL         </td>         <td>             <label class="lbl-asistencia">FALTO</label>             <input type="checkbox" class="chk-asistencia">             <input type="text" class="txt-asistencia">         </td>         <td>             <a href="/Charlas/Edit">Edit</a> |             <a href="/Charlas/Details">Details</a> |             <a href="/Charlas/Delete">Delete</a>         </td>     </tr>     <tr>         <td>             2         </td>         <td>             76475155         </td>         <td>             GONZALO ALONSO         </td>         <td>             GODOS         </td>         <td>             VERA         </td>         <td>             <label class="lbl-asistencia">FALTO</label>             <input type="checkbox" class="chk-asistencia">             <input type="text" class="txt-asistencia">         </td>         <td>             <a href="/Charlas/Edit">Edit</a> |             <a href="/Charlas/Details">Details</a> |             <a href="/Charlas/Delete">Delete</a>         </td>     </tr>     <tr>         <td>             3         </td>         <td>             76475154         </td>         <td>             DRUCILA         </td>         <td>             VIDAL         </td>         <td>             CALDERÓN         </td>         <td>             <label class="lbl-asistencia">ASISTIO</label>             <input type="checkbox" class="chk-asistencia">             <input type="text" class="txt-asistencia">         </td>         <td>             <a href="/Charlas/Edit">Edit</a> |             <a href="/Charlas/Details">Details</a> |             <a href="/Charlas/Delete">Delete</a>         </td>     </tr>  </tbody></table>

Preparing each research paper section appropriately for $15

A research paper is made up of various components. Some of them are mandatory for all academic research papers where as some others are optional and are to be included only if demanded. Each section of a research paper has a specific objective and all the mandatory sections have pre-determined positions in the research paper. A clear idea of the structure and purpose of each of the custom writing services is necessary to prepare a good research paper. The mandatory components of a research paperAcademic research paper projects are meant to give students enough experience in pursuing knowledge independently. And, while you are still a student, it is still the best time to learn the skill of research paper writing as scholarly research does not leave much space for mistakes. One of the most fundamental factors to be learned about a research paper is its structure and sections. A research paper becomes complete only when the various research paper sections are appropriately placed in the structural frame of the paper. The mandatory components of academic research papers include: • The title page • The introduction • The body paragraphs ( a minimum of three) • The conclusion • The bibliography

by: sheridangunn
Created: —
Category: Content & Writing
Viewed: 106


Design Contest – FB Ad and Poster Board – $50 for each – 24 hr Contest

Hi Contestants! We would like to submit a design contest for a Facebook ad, as well as a Poster Board/Sandwich board design. Hopefully it can be all in one, but we know that's a far reach. The winner will get $ 50 for each of the separate contests or $ 75 if we think its good enough for both. We may even pick a couple designs if we like a few of them.

Sandwich Board Sign dimensions are 36" x 24"

We would like to include the following information/pic/logos on the design.

New Hours…

Design Contest – FB Ad and Poster Board – $ 50 for each – 24 hr Contest

Naming each specific html component, from “ etc

Note:
This is just a basic question upon terminology. Its probably best to resist the temptation of going into broader parsing strategy, especially because my use case is mostly data scraping and code injection, not rendering.

I am writing a parser for HTML, and as I jump through the HTML string, I am naming the components with an enumerator.

I’d like to get the names straight. Wading into this, I have this thus far:

enum Html_Parsing     {     Outside_Tag     , // a     Open_Tag        , // a<     Declaration     , // a<!     Comment         , // a<!--     Declaration_Xml , // a<?     Name            , // a<b     Delimiter       , // a<b [ASCII Whitespace]     Attribute       , // a<b c     Assignment      , // a<b c=     Single_Quote    , // a<b c='     Double_Quote    , // a<b c="     Value           , // a<b c="d     Solidus         , // a<b c="d"/     Close_Tag       , // a<b c="d"/>     Contents        , // a<b c="d">e } 

Reading the spec, Ive had trouble tracking down exactly the conceptual names for everything here. It is also unclear to me whether the names are synonymous between html and xml.

Apart from being a general question, the specific questions I would like to ask are:

  • Do we refer to the Whitespace as a delimiter?
  • Should the = be considered a setter or assignment_operator or something else?
  • Solidus is the name of the character /, but does it have a more formal designation?
  • Should I refer to it as, content or contents?

[note: More context will be added after this initial parsing, such as what is found here:
https://html.spec.whatwg.org/multipage/syntax.html#elements-2
thus I am not too concerned whether I am dealing initially with normal or void elements.]

Thanks.

Is it better to have a single query that returns all related entities, or separate queries for each case?


Summary

When writing methods to query for related entities, is it better to have a single method for all related entities or separate methods for each combination?

Full Problem

I’m writing repository classes for a .NET MVC project where each repository is responsible for querying for a specific entity type. I’m using Dapper, so all of the queries are written by hand. The repositories all implement an IRepository<TEntity> interface, which has method TEntity FindById(id).

Fetching just the entity is obviously very straightforward, but I’m faced with a dilemma when it comes to fetching the entity’s children and grandchildren and so forth. Often times, for an entity to be usable, it needs some or all of its descendants. I initially wrote FindById to return the entity with all descendants, which satisfies all use cases, but is also wasteful in many where I only need several descendants.

I wrote out individual methods for fetching various combinations. FindByIdWithChildA or FindByIdWithChildBAndGrandChildC and such. The problem here is that the method names keep getting longer and longer, which makes them a pain to read, and also wastes a lot of space in code.

My next idea was to accept various enum flag values designating which descendants to return. This worked fine for the immediate children, but by the time I got to grandchildren and beyond I had so many possible combinations to implement, and many of them didn’t make sense or wouldn’t be used.

By the time I have all this boilerplate written out, it almost feels like I’m writing a bad ORM instead of repositories. This has certainly slowed down development dramatically, and it has taken focus away from actually implementing new features.

The obvious wrong solution is to not use SQL joins and have the repositories splice together entities and collections of entities using LINQ. Using LINQ with EntityFramework could be an option, but I don’t think that the solution is to switch to another library.

Should I just simplify and have the single method/query return everything? If not, what is the best way to concisely implement separate methods?

This answer indicated that a FindByIdWithChild type method is normal, but I can’t imagine that being good practice for complex queries.

Clarification

So my entities are Sport, Division, SkillLevel, and TeamType. Each Sport has a list of Divisions, SkillLevels, and TeamTypes. Each Division has a single TeamType and a list of SkillLevels.

Suppose I want a Division with its parent Sport, its TeamType, and all of its SkillLevels. Should I do:

  1. DivisionRepository.FindById(id) which returns all of these properties, ignoring any case where I want just a Division or a Division and Sport, Division and TeamType, etc.

  2. DivisionRepository.FindById(id, BitFlagQueryScope) which has a big mess of an implementation to resolve all the possible flags, some of which might not be needed.

  3. DivisionRepository.FindByIdWithSportAndTeamTypeAndSkillLevels(id) and have one of these methods for every combination I need.

In all three cases, I am making one trip to the database. It’s just a matter of how I structure my code.

Additional example, suppose I want a Sport with just its TeamTypes. Elsewhere I will need a Sport with its SkillLevels, etc. Same questions as above. I’m only making one database trip, but should I use different code for these different queries, or just grab everything and discard/not use the excess?

Additional Clarification

In case there’s something wrong with my design overall, here’s how I’m using the entities:

Action(string id) {     var sport = SportRepository.FindById(id); // This needs to either return everything associated with the entity or be changed to allow specification     var model = new SportDisplayModel(sport);     return View(model); } 

I have two models, $ Entity$ DisplayModel, and $ Entity$ EditModel, and I use them for every view.

How to prevent querying each user each time when having per microservice authorization? [on hold]

I am trying to find a good approach for authentication and authorization of a user in a microservice-application.

Currently I have the following idea:

authentication and authorization using JWT

In regards to the sequence diagram I have the following questions:

  1. [step 12] and [step 16] check for a permission, which is necessary on the server-side. Where are those permissions supposed to be stored?
  2. What about the note (after [step 20])? Possibilities:
    1. Issue an additional signed Token, that contains permissions / roles for the message service. This token can be acquired during [step 13].
    2. Re-issue existing JWT, include permissions / roles for the message service. This token can be acquired during [step 13].
    3. Issue a server-side request, that returns information about whether a certain GUI-area should be displayed.

If in 2.1 or 2.2 the client-token is modified, the user is able to access GUI-areas, which should not be available to him. However: any subsequent service calls will not succeed, because the modified (nor the original) token permits access to corresponding server-calls to the user.

In 2.3 the microservice is queried each time the GUI has to decide whether to display a GUI-area or not.

Having tasks that can be ran individually or “in trees”, and each task can be blocking or non-blocking

I’m creating a framework that needs to execute certain tasks, I’ll use building a car as an example for this. So, an individual task could be something like weld metal or screw bolt. But there are also collections of tasks, I call them jobs. Each job can have X amount of tasks, so combining these two tasks could get us a job build an engine:

build an engine +-- weld metal +-- screw bolts 

Additionally, jobs can have sub-jobs:

build a car +-- build an engine |   +-- weld metal |   +-- screw bolts +-- build a frame |   +-- weld metal |   +-- screw bolts |   +-- paint +-- combine engine and frame 

So basically each node of my tree is a job, and each leaf is a task. This is easy enough, here’s what my classes would look like:

class Task:     def do(self):         raise NotImplementedError('abstract method')  class Job(Task):     def __init__(self):         self.tasks = []      def do(self):         for task in self.tasks:             task.do() 

And now I’d just subclass WeldMetal and ScrewBolts from Task.

The problem arrives when we want to parallellise this. I need to somehow tell each task (and job) whether it should block the execution, or run in a separate thread and not block it. Sometimes my jobs also need results from other jobs, while those jobs may run in parallel to each other. For example in the above car building:

  • weld metal must block, since you can’t screw before the metal is welded.
  • build an engine and build a frame can be ran in their own threads (and within those threads the weld metal and screw bolts must block the particular thread).
  • combine engine and frame must wait for build an engine and build a frame to finish.

Honestly I’m not too sure where to start, initially I thought of using ThreadPoolExecutor in Job.do(), but I’m not sure how to block only some jobs and not others, and another issue is that sometimes a task must be ran “alone” without even being inside of any job, i.e. WeldMetal(block=False).do() must be valid.

I ended up using this at first:

class Task:     def do(self):         raise NotImplementedError('abstract method')      def run(self):         if self.block:             self.do()         else:             threading.Thread(target=self.do).start() 

And this works for most cases, but the issue comes when combine engine and frame needs to wait for both build an engine and build a frame to finish.