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?

Magento 2 Check if a Variable contains JSON encoded code or not?

I have a variable $ image, Sometimes it containes JSON Encoded value and sometimes it is not. What I need? If $ image doesn’t have JSON encoded data, I want to do my custom code.

I am trying this:

public function isJSON($  string){     return is_string($  string) && is_array($  this->jsonHelper->jsonDecode($  string, true)) && (json_last_error() == JSON_ERROR_NONE) ? true : false; }  if(!isJSON($  image)){    $  decode_image = $  image; } 

But it is not working, Please help me.

How to set alt attribute for an tag when it contains an image URL?

Here is my code:

<a itemprop='image' target='_blank' href='http://lamtakam.com/img/post/imageGenerator.php?tc=17&id=321780&t=%D8%B3%D9%84%D8%A7%D9%85'>show</a> 

See? It is a <a> tag which contains the URL of an image. That’s why I’ve set itemprop='image' to it and fortunately, Google detects it as well.

enter image description here

All I want to know, how can I also set a text to that image? Something like alt attribute?

How can I check if the managed property contains value?

I have created a managed property in Central Admin which is mapped to Start Date crawled property. These are the settings which I have set on my managed property:

  1. Type: Date and Time
  2. Queryable: true
  3. Retrievable: true
  4. Refinable: true
  5. Sortable: true
  6. Mapped crawled Property: ows_q_DATE_StartDate

There is data in the lists, but the managed property does not return any values back. It is always empty.

Which package contains /usr/bin/less for Ubuntu 19.04?

As in the title. Neither dpkg -S /usr/bin/less nor apt-file search /usr/bin/less produces anything useful.

Does it mean that there’s a bug or that less really doesn’t come from any package?

(In case you’re wondering why I need to know the answer, I find that the less is an old version 487 instead of 530 that has a feature I want.)

$   which less /usr/bin/less $   dpkg -S /usr/bin/less dpkg-query: no path found matching pattern /usr/bin/less $   apt-file search /usr/bin/less colorized-logs: /usr/bin/lesstty libcss-lessp-perl: /usr/bin/lessp node-less: /usr/bin/lessc 

Prepare query fails to return results when LIKE condition contains more than one non-wildcard character

I’m attempting to search a table of users using prepared statements. When the search string contains more than one character or seemingly random characters no results are returned (ie o and nn fail but n succeeds). The data in the database should return at least one result on the test queries I’ve used yet it returns none. I’m not certain that it’s related to the character length but every search query I’ve tried that had more than a single character would fail to return results when it should have at least one result.

I’ve attempted many forms of the query with no luck. I’ve adjusted collation on the table and the fields to add case insensitivity. I’ve searched for similar posts but could not find one. I’ve gone over MySQL prepare and like documentation as well. I initially started with using a PHP PDO connection with a much more complicated query but have narrowed it down to a simple SELECT and isolated it to the MySQL prepare.


*All of these queries were executed in MySQL Workbench

PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'o'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Trevor, Bloom, Trev Bloom
Recieved: nothing
*I randomly stumbled upon this case. I’m not sure why a single n will work yet a single o won’t.


PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'nn'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Anna, Hogan, Anna Hogan
Recieved: nothing


PREPARE stm FROM "SELECT firstName, lastName, displayName FROM `users` WHERE ? LIKE CONCAT('%',?,'%') ORDER BY ? asc"; SET @searchCol = 'firstName'; set @searchQuery = 'n'; set @orderBy = 'lastName'; EXECUTE stm USING @searchCol, @searchQuery, @orderBy; deallocate prepare stm; 

Expected: Multiple results which match %n%
Recieved: expected results


I have also attempted removing CONCAT('%',?,'%'), replacing it with ?, and changing @searchQuery to be set to %<query>% but the results are the same as above.

No error messages or abnormal logs are generated from what I can tell.

Charset/Collation are set to utf8 and utf_general_ci for the users table as well as applicable columns.

Below are the results of SHOW VARIABLES LIKE "%version%"

‘innodb_version’, ‘5.7.26’
‘protocol_version’, ’10’
‘slave_type_conversions’, ”
‘tls_version’, ‘TLSv1,TLSv1.1’
‘version’, ‘5.7.26-0ubuntu0.16.04.1-log’
‘version_comment’, ‘(Ubuntu)’
‘version_compile_machine’, ‘x86_64’
‘version_compile_os’, ‘Linux’

BIOS contains WGDS but no WRDS, ubuntu 19.04

I had been getting this weird error when I put my laptop to sleep and then waking it up after a while. This error forces me to force reboot my computer in order to restart my computer. However wifi and ethernet works fine so I am not sure why this error appears. It usually appears when I put my laptop to sleep and then leave the network then reopening it in my home using my home network. When I last check this error is from iwlwifi. Below is a the return from command dmesg | grep iwlwifi

My wifi card is Intel Ac 9560

00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)

enter image description here

Adding a LinkedList to a LinkedList that contains LinkedLists and changing the added LinkedList

I want to add a LinkedList (lets call it list A) to a LinkedList> (gonna call it list B). After doing so I need to change the Values of list A and add it to list B again, but without changing the values already stored in List B. I need this to store a unknown ammount of paths in a LinkedList containing LinkedList´s.

public static void main(String[] args) {       LinkedList<LinkedList<Integer>> B = new LinkedList<LinkedList<Integer>>();     LinkedList<Integer> A = new LinkedList<Integer>();      //just adding some numbers to List A     A.add(1);     A.add(2);     A.add(3);       //adding list A to list B     B.add(A);      //adding another number to list A     A.add(4);       //this will print out [[1,2,3,4]] now     //I want it to print out [[1,2,3]], even though I changed List A     System.out.println(B);   } 

Current result: [[1, 2, 3, 4]]; Expected result: [[1,2,3]]

Creation of aggregate root that contains references to other aggregate roots

I would like to model the following entities: “Person”, “Company” and the aggregate that ties the two together “Membership”. I have identified that Person and Company are aggregate roots. Thus, “Membership” would hold a reference (id) of both those aggregate roots, plus other value objects/entities that a membership holds (for example the title that the person has for that company).

In my architecture I have the following layers: Api controllers, services, domains, repository. When creating a Membership object, the controller receives two identifiers (for person and for company). Currently the service is responsible for making a call to the CompanyService – to ensure that a company with that id exists and to the PersonService – to ensure a person with that id exists. However, in the Domain model I currently have a constructor that takes in two ids, which makes it feel really anemic. Also, in a further iteration, there will be the addition of a list of references to a third aggregate root, Vehicle. Thus a vehicle can exist by itself, or it can also belong to a membership.

Is this a bad way of modelling these entities? Is there a better way? I have read about the notion of domain services and application services, but my application does not currently have that distinction and I don’t know if that concept would help in this case.

Even the behaviour of the aggregate roots feels a bit dry when it comes to functionality related to the other aggregate roots it holds references for: ie. the Membership domain model would have the ability to “Link a car”, setting a car for itself, but again, receiving just an identifier that it would add to a list of identifiers.

Google Sheets formula for “if contains” from range

I try to figure out how to get a value based on “if some word is in a range”. So formulas from (Google Sheets formula for "if contains") works:

=IF(ISTEXT(REGEXEXTRACT( A1, "sites")), 1,0)  =IF(regexmatch( A1, "sites"), 1, 0) 

but instead of a specific word like here i.e. is “site”, I would like to get True, False based on condition if any word from range is in a string. Also, it would be nice if it automatically expands the range in the formula, if I’ll add some new word.