mac – Can I get Apple Mail app to automatically split emails into focused and other?

I’ve come from using Outlook which automatically splits my emails into “focused” and “other” (Gmail does something similar I believe) and am wondering if the Mac Mail app has similar functionality? If it’s useful to know, it’s a hotmail account that I’m viewing in the Mail app.

Sorry if this is an obvious question – I couldn’t find anything about this online.

Thanks in advance.

set theory – Given integer n and k, split the set {x| – 2^n + 1 ≤ x ≤ 2^n} into two subsets A and B, so that |A| = |B| and $sum_{ain A}a^k=sum_{bin B}b^k$

Example:
for $n = 2$, $k = 2$, the set ${ x | -2^2+1leq xleq 2^2}$ can be splited into {-1, 1, 2, 4} and {-3, -2, 0, 3}, as $(-1)^2+1^2+2^2+4^2=(-3)^2+(-2)^2+0^2+3^2$

I wonder if this problem has its own name and some relative researchs. I would appreciate it if anyone could give some useful information. Thanks a lot.

t sql – In SQL Server, what’s the best way to split multiple delimited strings into rows without a function?

I know there are numerous examples of how to split strings in SQL Server. However, they are often for a single delimited string. What’s the best way to split multiple delimited strings without using a function (SQL Server 2016)?

Here’s what I’m starting with:

GroupId     Val1      Val2
----------- --------- ------
G1           1,2,3     a,b,c
G2           4,5,6     d,e,f
G3           1,2,3,4   w,x,y,z

Here’s what I would like to end up with:

GroupId Val1    Val2
------- ------- -------
G1      1       a
G1      2       b
G1      3       c
G2      4       d
G2      5       e
G2      6       f
G3      1       w
G3      2       x
G3      3       y      
G3      4       z      

Based on everything I’ve read, I think I may need to use the XML method because it allows me to specify an order, but I haven’t been able to find an example of this method where multiple columns are split.

Here’s the T-SQL to create the source table:

DROP TABLE IF EXISTS #TestData;

CREATE TABLE #TestData(GroupId VARCHAR(10),
                       Val1 VARCHAR(100),
                       Val2 VARCHAR(100)
                       );
INSERT INTO #TestData
VALUES ('G1', '1,2,3', 'a,b,c'),
       ('G2', '4,5,6', 'd,e,f'),
       ('G3', '1,2,3,4', 'w,x,y,z');

SELECT *
FROM #TestData;

Thank you in advance!

microsoft excel – Split column based on another column value to prepare data for one-way Anova

I’d like to split the values in one column based on the ones in another column, as in this example:

Group Value
Group 1 7
Group 1 4
Group 1 9
Group 2 1
Group 2 8
Group 2 1
Group 2 5
Group 2 3
Group 3 6
Group 3 10
Group 3 5
Group 3 4

Desired result:

Group 1 Group 2 Group 3
7 1 6
4 8 10
9 1 5
5 4
3

I have a table with a lot of data and I would like to perform One-way Anova on it, but AFAIK Anova requires to have data on grouped adjacent columns.
Is there any way to achieve this in some automatic way? If possible, having the opportunity to choose the group and value columns when I have more than two.

Thanks!

How to disable Split Screen view

Hello I have a Galaxy S6 and I was wondering if there was any way to disable the split screen/multi-window option which appears above an app when you press the recents button. Are there any ways I can achieve this? Thanks in advance.

Split a list of points into a list of lines in C#

I have a list of points (System.Drawing.Point) obtained from an edge finder function that scanned a bitmap for objects. Each point is guaranteed to be a part of an edge line. I need to split the list into a collection of lines so additional math can be performed on them.

This is how I originally split the list:

public static List<List<Point>> Split(this List<Point> EdgesCoordinateList)
{
    if (EdgesCoordinateList is null) { throw new ArgumentNullException(nameof(EdgesCoordinateList), NullParameterErrorMessage); }
    if (EdgesCoordinateList.Count <= 1) { return null; }

    //  Link the line coordinates together into lines.
    //  Start by creating a new line with the first coordinate to act as a seed.
    List<List<Point>> Results = new List<List<Point>>
    {
        new List<Point> { EdgesCoordinateList(0) }
    };
    EdgesCoordinateList.RemoveAt(0);

    //  Iterate through the coordinates and assign each one to a line.
    foreach (Point TestPoint in EdgesCoordinateList)
    {
        //  Look through each previously found lines and see if the coordinate under test belongs to one of them.
        //  If coordinate under test is adjacent to one of the coordinates in the line under test, it belongs to that line.
        bool FoundLine = false;
        foreach (List<Point> LineList in Results.Where(LineList
            => LineList.FindLastIndex(i => Math.Abs(TestPoint.X - i.X) <= 1 && Math.Abs(TestPoint.Y - i.Y) <= 1) > -1))
        {
            //  Add the coordinate to the line it belongs to, then break the line search.
            Results(Results.IndexOf(LineList)).Add(TestPoint);
            FoundLine = true;
            break;
        }

        //  If line is not a part of preexisting lines then its the start of a new one.
        if (!FoundLine)
        { Results.Add(new List<Point> { TestPoint }); }
    }

    return Results;
}

It was great because it was fairly quick and worked well, except it messed up on lines that were relatively horizontal.

This is my second attempt to try to fix the issue:

public static List<List<Point>> Split(this List<Point> EdgesCoordinateList)
{
    if (EdgesCoordinateList is null) { throw new ArgumentNullException(nameof(EdgesCoordinateList), NullParameterErrorMessage); }
    if (EdgesCoordinateList.Count <= 1) { return null; }

    //  Link the line coordinates together into lines.
    //  Start by creating a new line with the first coordinate to act as a seed.
    List<List<Point>> Results = new List<List<Point>>
    {
        new List<Point> { EdgesCoordinateList(0) }
    };
    EdgesCoordinateList.RemoveAt(0);

    do
    {
        //  Copy the currently found lines into a list for iterating.
        //  Outer list is a list of lines.  Inner list is a list of the points in each line.
        List<List<Point>> FoundLines = Results.ConvertAll(item => new List<Point>(item));
        bool NoMoreMatches = true;

        //  Iterate through the list of lines.
        for (int i = 0; i < FoundLines.Count; i++)
        {
            //  Iterate through each point in the current line.
            foreach (Point TestPoint in FoundLines(i))
            {
                //  Find all of the points in the master list that are adjacent to the current test point.
                List<Point> FoundCoords = EdgesCoordinateList.FindAll(i => Math.Abs(TestPoint.X - i.X) <= 1 && (Math.Abs(TestPoint.Y - i.Y) <= 1));

                if (FoundCoords.Count > 0)
                {
                    //  Add all of the adjacent points to the current line.
                    Results(i).AddRange(FoundCoords);

                    //  Then remove them from the master list.
                    foreach (Point Coord in FoundCoords)
                    { _ = EdgesCoordinateList.Remove(Coord); }

                    NoMoreMatches = false;
                }
            }
        }

        //  When there are no more adjacent points to any of the points in the current line, make another line.
        if (NoMoreMatches)
        {
            Results.Add(new List<Point> { EdgesCoordinateList(0) });
            EdgesCoordinateList.RemoveAt(0);
        }

        //  Continue until there are no more points left in the master list.
    } while (EdgesCoordinateList.Count > 0);

    return Results;
}

The new solution solved the horizontal issue, but runs way too slow. (It went from less than a second to several minutes.)

How can I refactor this to speed it up? I would prefer it to work at least at a similar speed as the first method if possible.

How to split a list based on pattern

I am trying to split a list based on pattern of some elements of the list.

list = {a^(-1-x1),b^(-x2), (a+b)^(-x3), (1-a)^(-1+x4),(1-b)^(-1), (1+a b)}

I want to split the list into two based on a pattern given as a list. I am using SequenceCases to achieve that. However it does not work for more than two patterns given as a list.

 pattern = {Power(a,x_),Power(b,y_),Power(1-a,z_)};
 list1=SequenceCases(list,pattern)
 

whose output (expected) should be

 list1={a^(-1-x1),b^(-x2), (1-a)^(-1+x4)}
 list2={(a+b)^(-x3),(1-b)^(-1), (1+a b)}

Note that I do not want to split the list based on position of elements, rather based on certain pattern/members of the list.

Additionally I wanted to ask if there is any easier way to find all the elements which have negative exponent (assuming all non-numeric variables in the exponent are 0.).

 {a^(-1-x1), (1-a)^(-1+x4), (1-b)^(-1)}

I can perform a Do loop through the elements of the list, however it would be nice to know if there is any better alternative.

clingo – How to split a predicate with arity 6 into multiple predicates with arity 2?

I am very new to clingo and ASP. Any pointers will be appreciated!

I am trying to write a program for a scheduling problem. The input I will be getting is :
person(id, employee_type, max_workload, previous_workload, payment).

I want to split this into multiple predicates like:
employee_type(person_id, type)
max_workload(person_id, workload), etc. in clingo.

I can easily define employee_type as:
{emp_type(EID, (f;c)}:-emp(EID). where f – full time ; c- contractor.

But in case of workload, payment, the only condition is that this will be a positive integer.
How do I define these predicate?

I have multiple hard and soft constraints based on the values of workload, payment and employee type.

Thank you!

how to hide a design code and split menu bar in android studio?

I was wondering how to hide this design split and code bar. Which is taking entire line and wasting space. I always work in split mode. So, I want to hide that bar and I can’t find that option in view menu. The bar is boxed with red color.enter image description here

Split rows into separate coiumns in Google Sheets

I have data in one column as follows:

website.com/US/x=abc
website.com/US/x=pqr
website.com/BO/x=avgdf
website.com/BO/x=jeid
website.com/RO/x=klhg
website.com/RO/x=dfg
website.com/CA/x=rfd
website.com/CA/x=jde
website.com/AU/x=ggr
website.com/AU/x=gff

I need this separated into different columns separating as follows:

website.com/US/x=abc   website.com/BO/x=avgdf   website.com/RO/x=klhg   website.com/CA/x=rfd
website.com/US/x=pqr   website.com/BO/x=jeid   website.com/RO/x=dfg   website.com/CA/x=jde

Please help!