terminal – How to get default application associations across the system with a tool?

I wish I could use the shell (or a GUI would also be fine) to get default associations of both types of files and functions such as Email and the default web browser in a holistic location.

Currently, I only know that I can get the default mail application definition from Mail.app preferences, the default browser for System Preferences -> General and then the associations of applications little by little going to files and verifying their associations in Finder (Path Finder, or some similar tool). Protocol default values ​​for ftp, ssh, etc. It would also be good.

I have some strange problems in which I would like to obtain all application associations across the system in one place, such as Terminal or a GUI tool. How can I do this?

associations – Row keys in data sets: JoinAcross row keys; Degrade or delete row keys

I want to combine two sets of data that share row keys but have different column keys. Visually, this seems to me a JoinAcross in the row keys, but the column of row keys does not seem to have a name. Can I perform this combination as JoinAcross or does it require a different function?

Also, row keys are sometimes cumbersome: is there any way to degrade them to normal rows?

Example of desired data set combination

I have two sets of data:

dsA = {<|"keyA" -> <|"key1" -> "a", "key2" -> "b"|>,
    "keyB" -> <|"key1" -> "c", "key2" -> "d"|>|>} // Dataset;
dsB= {<|"keyA" -> <|"key3" -> "a", "key4" -> "b"|>,
    "keyB" -> <|"key3" -> "d", "key4" -> "f"|>|>} // Dataset;

I want to join these so that I get a third set of data:

dsNew ={<|"keyA" -> <|"key1" -> "a", "key2" -> "b", "key3" -> "a", 
     "key4" -> "b"|>,
   "keyB" -> <|"key1" -> "c", "key2" -> "d", "key3" -> "d", 
     "key4" -> "f"|>|>} // Dataset

I have tried JoinAcross[ dsA, dsB, Keys[dsA]], but this produces unclear errors.

Desired key degradation example

I have dsA again. I want to "degrade" your row keys, so that you get:

{<|"RowKeys" -> "keyA", "key1" -> "a", "key2" -> "b"|>,
  <|"RowKeys" -> "keyB", "key1" -> "c", "key2" -> "d"|>} // Dataset

javascript: list all possible associations given a relational scheme

Some background

I'm working on a data intensive user interface where the status is stored in a Redux container. Anyone who has played Redux knows that there is a large amount of repetitive repetitive that must be written in the form of reducers, actions, action creators, selectors (analogous to queries), etc.

It is not fun to write this, especially when there are many types of entities and accompanying relationships involved.

Therefore, the idea is to design a relational scheme together with a code generator for which heavy work can be outsourced.

issue

Given a relational (hypothetical) scheme like the following:

scheme of const = {
book: {
attributes: ["id", "name", "subGenreId"],
foreign keys: [
      { fromAttribute: "subGenreId", toEntity: "subGenre", toAttribute: "id" }
    ]
  }

mainGenre: {
attributes: ["id", "name"]
  }

subgenre: {
attributes: ["id", "name", "mainGenreId"],
foreign keys: [
      { fromAttribute: "mainGenreId", toEntity: "mainGenre", toAttribute: "id" }
    ]
  }

Author: {
attributes: ["id", "name"]
  }

book_author: {
attributes: ["bookId", "authorId"],
foreign keys: [
      { fromAttribute: "bookId", toEntity: "book", toAttribute: "id" },
      { fromAttribute: "authorId", toEntity: "author", toAttribute: "id" }
    ]
  }

seller: {
attributes: ["id", "name"]
  }

seller_book: {
attributes: ["sellerId", "bookId"],
foreign keys: [
      { fromAttribute: "sellerId", toEntity: "seller", toAttribute: "id" },
      { fromAttribute: "bookId", toEntity: "book", toAttribute: "id" }
    ]
  }
};

The goal is (computationally, of course) to generate selectors along these lines (I probably forgot some):

"direct" relationships:

  • books by subgenre I.D
  • mainGenre by subgenre I.D
  • subgenre by book I.D
  • sub genres by mainGenre I.D

Many-to-many relationships (the join tables themselves are omitted):

  • authors by book I.D
  • books by Author I.D
  • books by seller I.D
  • sellers by book I.D

"distant" relationships:

  • authors by mainGenre I.D
  • authors by seller I.D
  • authors by subgenre I.D
  • books by mainGenre I.D
  • mainGenre by book I.D
  • mainGenres by Author I.D
  • mainGenres by seller I.D
  • sellers by Author I.D
  • sellers by mainGenre I.D
  • sellers by subgenre I.D
  • sub genres by Author I.D
  • sub genres by seller I.D

There are also more complex relationships (for example, circulars) as co-authors, but I do not mind manually writing the code for these when they are needed.

How would you try to list these associations between entities? Are there pre-existing solutions? I can imagine that the route of the graph is involved, but perhaps it will be solved better with methods that I still do not know.

Trade associations – Is there a European equivalent of the ASMP (in particular in Germany)?

I have a hard time looking for this online without help.

In the United States there is the Association of Media Photographers.

I expected to find a similar association in Western Europe, particularly in Germany (but other countries are also welcome within the European Economic Area).

Minimum and maximum of a list of associations.

I am trying to find the minimum values ​​for all the elements in a list of associations, here is an example

x = {<|"a"-> 4, "b" -> 9, "c" -> 15 |>, <|"a"->21, "b" -> 11, "c" -> 1 |>, <|"a"->12, "b" -> 3, "c" -> 21 |>}

Output required for Min
{<|"a"-> 2, "b" -> 3, "c" -> 1 |>}

Output required for Max
{<|"a"-> 21, "b" -> 11, "c" -> 15 |>}

My attempt
for Max: Maximal by[Values]@X
Result: {<|"a" -> 21, "b" -> 11, "c" -> 1 |>}

For min: MinimalBy[Values]@X
Result: {<|"a" -> 4, "b" -> 9, "c" -> 15 |>}

Is there an elegant way to achieve this result?

Business associations

I'm sorry if this is the wrong place to ask, I did not see a designated place to talk about this (unless I overlooked it).

Anyway, I am currently looking for a commercial association for my already established start; Technicians or non-technicians, I am open to ideas and others.

No I do not need a business partner is more in line with I want a business partner I know I can probably do it myself, but I have other things happening and as it is at this moment, I am the only one that is working to achieve this great goal that, as you know, can be stressful.

That's why I want a business partner. One that can help manage the business and grow the business. and of courseDefinitely, I will also help you with any of your business or startup needs.

Not just a business partner, but a business partner with whom I can grow and establish a relationship (no, I do not like it). Do not hurry to anything here.

Why do trade associations fail so often?

Dear all, I'm new to the forum, so I'm not sure if this is the right thread to post, if not, please excuse me :)

I recently separated from my former employer and decided to start my own business. I was soon contacted by a provider that I often hired while working at my old company. I had a similar idea, just that I had some accounts that wanted to spread the business to areas in which I had no experience and which are my specialty. We talked about the opening of a company that would cover this area of ​​business, I have the technical knowledge and she the buyers. We started working on some points already, but nothing official yet. In addition, I must mention that our business relationship in recent years was always good and we even became friends. During our meetings it became clear that we seem to share the vision and enthusiasm.

However, very often this person is difficult to contact (by phone, mail … etc), seems to have many other responsibilities and / or has problems to prioritize. This has intensified in the last month and I am beginning to question his dedication to the project.

On the other hand, today I had a conversation with an old friend and former colleague who has been convincing me to start a business together for years. Today again, she insisted that we should do something together.

My biggest concern is "What's in it for me?" The person I described for the first time has business and contacts, and is the kind of person / professional who stands out in everything he does, very capable but easily distracted. The other person has no buyers or contacts, but he is very consistent and I think he has good management skills.

Is it better to go with the person who has contacts and businesses ready (knowing that I will have to invest more energy to keep it on track) or the person who is not contributing anything to the agreement but who is a strong and focused person? I must add that I trust both equally.

Or, do you advise me to start on my own?

I would be very grateful for any of your thoughts on this, thank you very much in advance! :)

associations – KeySelect via Except[StringMatchQ[Pattern]]failure

I have a Association asc that has mixed type Keys:

asc = <|"b1" -> 2, "a1" -> 1, c3 -> 3 |>;

I try to select in order to exclude a chain pattern through No @ StringMatchQ but without success:

KeySelect[asc, ! StringMatchQ["b" ~~ __?DigitQ]](* <||> *)

The selection based on StringMatchQ by itself it works, but I receive the warning that a Rope it was expected as Key for the third association:

KeySelect[asc, StringMatchQ["b" ~~ __?DigitQ]](*
StringMatchQ: String or list of expected strings ....
<|"b1" -> 2 |>
*)

I would like to understand:

  1. How do I avoid this error message?
  2. What's wrong with trying to use No @ StringMatchQ?

Business associations

I'm sorry if this is the wrong place to ask, I did not see a designated place to talk about this (unless I overlooked it).

Anyway, I am currently looking for a commercial association for my already established start; Technical or non-technical, I am open to ideas and others.

No I do not need a business partner is more in line with I want a business partner I know I can probably do it myself, but I have other things happening and as it is at this moment, I am the only one that is working to achieve this great goal that, as you know, can be stressful.

That's why I want a business partner. One that can help manage the business and grow the business. and of courseDefinitely, I will also help you with any of your business or startup needs.

Not just a business partner, but a business partner with whom I can grow and establish a relationship (no, I do not like it). Do not hurry to anything here.

Why do trade associations fail so often?

Dear all, I'm new to the forum, so I'm not sure if this is the right thread to post, if not, please excuse me :)

I recently separated from my former employer and decided to start my own business. I was soon contacted by a provider that I often hired while working at my old company. I had a similar idea, just that I had some accounts that wanted to spread the business to areas in which I had no experience and which are my specialty. We talked about the opening of a company that would cover this area of ​​business, I have the technical knowledge and she the buyers. We started working on some points already, but nothing official yet. In addition, I must mention that our business relationship in recent years was always good and we even became friends. During our meetings it became clear that we seem to share the vision and enthusiasm.

However, very often this person is difficult to contact (by phone, mail … etc), seems to have many other responsibilities and / or has problems to prioritize. This has intensified in the last month and I am beginning to question his dedication to the project.

On the other hand, today I had a conversation with an old friend and former colleague who has been convincing me to start a business together for years. Today again, she insisted that we should do something together.

My biggest concern is "What's in it for me?" The person I described for the first time has business and contacts, and is the kind of person / professional who stands out in everything he does, very capable but easily distracted. The other person has no buyers or contacts, but he is very consistent and I think he has good management skills.

Is it better to go with the person who has contacts and businesses ready (knowing that I will have to invest more energy to keep it on track) or the person who is not contributing anything to the agreement but who is a strong and focused person? I must add that I trust both equally.

Or, do you advise me to start on my own?

I would be very grateful for any of your thoughts on this, thank you very much in advance! :)