Trouble with joining based on various combinations of columns

Hi
I have a load of transaction data which I need to join to a rate table to find the correct rate to price on. The join should be one-to-one and the selection of the correct rate is based on various columns in both tables which should either match or, where
the rate table contains 'NA', allow any value from the transaction table. Where there is a specific match, this should be selected rather than a join where 'NA' is used to allow any other value in the transaction.
Here is the CREATE script for the transaction table:
CREATE TABLE [dbo].[job_variables](
[job_no] [int] NOT NULL,
[product_code1] [nvarchar](2) NULL,
[product_code2] [nvarchar](2) NULL,
[customer_code] [nvarchar](8) NULL,
[area1] [nvarchar](8) NULL,
[area2] [nvarchar](8) NULL,
[group_code] [nvarchar](8) NULL)
And for the rate table:
CREATE TABLE [dbo].[ratecriteria](
[product_code1] [nvarchar](255) NULL,
[product_code2] [nvarchar](255) NULL,
[customer_code] [nvarchar](255) NULL,
[area1] [nvarchar](255) NULL,
[area2] [nvarchar](255) NULL,
  [group_code] [nvarchar](255) NULL,)
The combinations used to join the tables should be attempted in this order, where X = a match and NA = ratecriteria value is 'NA' so allow all from job_variables. As the data tables need to join one-to-one, once a transaction meets the join criteria, it
cannot be joined to another ratecriteria record.
Firstly, where ratecriteria.group_code = 'NA' and customer_key matches:
product_code1
product_code2
area1
area2
customer_code
group_code
X
X
X
X
X
NA
X
X
X <------>
X
X
NA
(area1 and area2 reciprocated)
X
X
X
NA
X
NA
X
X
NA
X
X
NA
X
X
NA
NA
X
NA
NA
X
X
X
X
NA
NA
X
X
NA
X
NA
NA
X
NA
X
X
NA
NA
X
NA
NA
X
NA
Then, where ratecriteria.customer_code = 'NA' and group_code matches:
product_code1
area1
area2
customer_code
group_code
X
X
X
NA
X
X
X <------>
X
NA
X
(area1 and area2 reciprocated)
X
X
NA
NA
X
X
NA
X
NA
X
X
NA
NA
NA
X
NA
X
X
NA
X
NA
X
NA
NA
X
NA
NA
X
NA
X
NA
NA
NA
NA
X
And finally, where both ratecriteria.customer_code and ratecriteria.group_code = 'NA':
product_code1
area1
area2
customer_code
group_code
X
X
X
NA
NA
X
X <------>
X
NA
NA
(area1 and area2 reciprocated)
X
X
NA
NA
NA
X
NA
X
NA
NA
X
NA
NA
NA
NA
NA
X
X
NA
NA
NA
X
NA
NA
NA
NA
NA
X
NA
NA
NA
NA
NA
NA
NA
I am working with SQL Server 2012 in SSMS. Any help greatly appreciated, let me know if I need to provide more info.
Thanks

I think that you have got that correct, although I am not entirely sure what "REFERENCES" does, I will research that one. I do know that the database design is poor but, for context, I have imported all the data I am going to use, it
is all in excellent shape and I will not do any further imports, creates, deletes, updates etc. so a poor schema should (and this may be me showing my lack of knowledge again) not matter at this stage. I am really looking for a solution to the above problem.
In terms of a query which outputs a correctly selected rate code (see above post 5th March 15:01), my solution which is perhaps a sledgehammer to crack a nut is as such.
I have created a table I have called ratecrit_junction which I use to generate all the different combinations of actual values from job_variables and 'NA' entries.
CREATE TABLE [dbo].[ratecrit_junction](
[selection_rank] INT IDENTITY(1,1),
[product_code1] [char](2),
[product_code2] [char](2),
[area1] [varchar](6),
[area2] [varchar](6),
[customer_code] [varchar](8),
[group_code] [varchar](10)
INSERT INTO ratecrit_junction
VALUES ('X', 'X', 'X', 'X', 'X', 'NA'),
('X', 'X', 'X', 'NA', 'X', 'NA'),
('X', 'X', 'NA', 'X', 'X', 'NA'),
('X', 'X', 'NA', 'NA', 'X', 'NA'),
('NA', 'X', 'X', 'X', 'X', 'NA'),
('NA', 'X', 'X', 'NA', 'X', 'NA'),
('NA', 'X', 'NA', 'X', 'X', 'NA'),
('NA', 'X', 'NA', 'NA', 'X', 'NA'),
('X', 'X', 'X', 'X', 'NA', 'X'),('X', 'X', 'X', 'NA', 'NA', 'X'),
('X', 'X', 'NA', 'X', 'NA', 'X'),
('X', 'X', 'NA', 'NA', 'NA', 'X'),
('NA', 'X', 'X', 'X', 'NA', 'X'),
('NA', 'X', 'X', 'NA', 'NA', 'X'),
('NA', 'X', 'NA', 'X', 'NA', 'X'),
('NA', 'X', 'NA', 'NA', 'NA', 'X'),
('X', 'NA', 'X', 'X', 'X', 'NA'),
('X', 'NA', 'X', 'NA', 'X', 'NA'),
('X', 'NA', 'NA', 'X', 'X', 'NA'),
('X', 'NA', 'NA', 'NA', 'X', 'NA'),
('NA', 'NA', 'X', 'X', 'X', 'NA'),
('NA', 'NA', 'X', 'NA', 'X', 'NA'),
('NA', 'NA', 'NA', 'X', 'X', 'NA'),
('NA', 'NA', 'NA', 'NA', 'X', 'NA'),
('X', 'NA', 'X', 'X', 'NA', 'X'),
('X', 'NA', 'X', 'NA', 'NA', 'X'),
('X', 'NA', 'NA', 'X', 'NA', 'X'),
('X', 'NA', 'NA', 'NA', 'NA', 'X'),
('NA', 'NA', 'X', 'X', 'NA', 'X'),
('NA', 'NA', 'X', 'NA', 'NA', 'X'),
('NA', 'NA', 'NA', 'X', 'NA', 'X'),
('NA', 'NA', 'NA', 'NA', 'NA', 'X')
I can then join data from job_variables to ratecrit_junction using a COALESCE(NULLIF(...), ...) to get the different combinations and join to ratecriteria with a ranking to indicate which one of them should override the others and identify the correct rate
code to use.
I forgot to include rate code in my original post, correction below.
CREATE TABLE [dbo].[ratecriteria](
ID INT IDENTITY(1,1) PRIMARY KEY,
[product_code1] [nvarchar](2) REFERENCES Product_Code,
[product_code2] [nvarchar](2) REFERENCES Product_Code,
[customer_code] [nvarchar](8) REFERENCES Customer_Code,
[area1] [nvarchar](8) REFERENCES Area,
[area2] [nvarchar](8) REFERENCES Area,
[group_code] [nvarchar](8) REFERENCES Group_Code,
[rate_code] [nvarchar](5),
UNIQUE (product_code1, product_code2, customer_code, group_code)
And here is the query that I am using
SELECT v.job_no,
j.selection_rank,
rc.rate_code
FROM job_variables v
CROSS JOIN ratecrit_junction j
INNER JOIN ratecriteria rc
ON COALESCE(NULLIF(j.product_code1, 'X'), v.product_code1) = rc.product_code1
AND COALESCE(NULLIF(j.product_code2, 'X'), v.product_code2) = rc.product_code1
AND COALESCE(NULLIF(j.area1, 'X'), v.area1) = rc.area1
AND COALESCE(NULLIF(j.area2, 'X'), v.area2) = rc.area2
AND COALESCE(NULLIF(j.customer_code, 'X'), v.customer_code) = rc.customer_code
AND COALESCE(NULLIF(j.group_code, 'X'), c.group_code) = rc.group_code
And here is some sample data for the job_variables and ratecriteria tables, based on my earlier post with the coloured examples.
INSERT INTO ratecriteria
VALUES ('P1', 'PP1', 'C1', 'AA', 'BB', 'NA', 'R1'),
('P1', 'PP1', 'C1', 'AA', 'NA', 'NA', 'R2'),
('P1', 'PP1', 'NA', 'AA', 'BB', 'G1', 'R3'),
('NA', 'NA', 'NA', 'NA', 'NA', 'G1', 'R4')
INSERT INTO job_variables
VALUES (1, 'P1', 'PP1', 'C1', 'AA', 'BB', 'G3'),
(2, 'P1', 'PP1', 'C1', 'BB', 'AA', 'G4'),
(3, 'P1', 'PP1', 'C1', 'AA', 'FF', 'G1'),
(4, 'P1', 'PP1', 'C2', 'AA', 'BB', 'G1'),
(5, 'P1', 'PP2', 'C1', 'AA', 'BB', 'G1'),
(6, 'P2', 'PP2', 'C4', 'AB', 'AA', 'G1')

Similar Messages

  • Trouble with anchor and reference attributes combined with a Correlation ID

    Greetings, I'm a little green on FIM and looking for some advice.
    We have an HR system where we store the information on Contractors, Interns, and Employees.
    The business process for converting Contractors and Interns to Employees is to terminate the Contractor and re-hire as an Employee. This gives us a different employee number for the "live" entry in the HR system.
    Also, there is a "Supervisor No" attribute that is a Reference attribute for their manager. This is their employee number.
    What do I do in FIM? If the Employee number is the anchor, won't the system consider the employee a new object? Is there a way to connect the new employee record to the metaverse object that was a contractor or intern, and update the anchor attribute (the
    new employee number)?
    I was thinking of using a different custom field in the HR system as the FIM_Sync. But just realized that if this became the anchor, then no managers would connect since the Supervisor No is an Employee number.
    Thanks in advance for helping.
    -Doug
    *** Update ***
    I read some of the articles on Correlation ID that are in the 2003 version of MIIS the TechNet library. So a follow up question would be what happens between the CS and MV when the HR object changes.. Assuming I have this FIM_Sync attribute to be my
    Correlation ID.
    Contractor is created. Employee ID is anchor and FIM_Sync field is populated.
    New object in CS
    Projected into MV
    Provisioned out to AD and other systems, but they don't have the FIM_Sync attribute in their schema.
    Business Event.. Contactor converted to Employee:
    Contractor in HR system terminated (employment_state) and FIM_Sync entry removed.
    Employee record created in HR system and FIM_Sync value populated with what it was in the contractor record
    New Employee object in CS
    Does Contractor get disconnected?
    Does the Employee CS object get joined to existing MV object?

    At one of my previous projects we solved the same scenario as following:
    1. That was not a fully automatic process.
    2. Once we receive event that Contractor is terminated in HR, we put that user in "Terminated Contractors" set, disabling his active accounts, where the object resides for 30 days (business policy) before his accounts are removed from target systems.
    3. There's a custom workflow which triggers a notification to administrators if the following criteria are met:
    Name/Surname of fresh Employee are equal to one of the members of "Terminated Contractors" set
    Employee record from HR came within a week after Contractor's termination date (also, a business policy, agreed at customer's level. HRs are lazy and not necessarily process that transfer same day).
    4. IAM Administrator contacts HR to ensure that persons in question are actually the same one. Upon confirmation, manual join is made. Once object is joined, Correlation ID is written back to HR (actually, a buffer database acting as HR source) to ensure
    that the join can be made automatically.
    We faced several problems, though, which are beyond the scope of FIM itself:
    1. HRs were creating Employee record before terminating Contractor's one. A major pain, since new accounts are created, et cetera.
    2. HRs were creating Employee records too late (that's why we set a "timeout" for a week, initially it was two days)
    3. We had a case once when Contractor was terminated and new Employee came with the same name, but those were different people and HR application doesnt allow to differentiate "contractor fired" and "contractor moves to employee" events. That's why we had
    to stick to a manual and documented procedure.

  • Trouble with JOINS after upgrading to MaxDB 7.6

    I have recently upgraded from MaxDB 7.5 to 7.6 and now many of my SQL queries are producing weird results. I have figured out that it must have something to do with the JOINS I am using.
    For example, I have the following kind of query:
    select fp.id , p.name , t.drug
    from v_find_patient fp
    join t_patient p on fp.patient_id=p.patient_id
    join t_therapy t on fp.patient_id=t.patient_id
    where fp.center=10500 and t.drug='Cortison'
    From my knowledge, the JOINS should now be interpreted as INNER JOINS.
    However, when I run this query on MaxDB 7.6, the result is that of a LEFT JOIN.
    I.e. as if I wrote:
    left join t_therapy t on fp.patient_id=t.patient_id
    So the result includes rows such as:
    34;Jones;null
    What's even stranger: If I use a FULL JOIN, i.e.
    full join t_therapy t on fp.patient_id=t.patient_id
    I suddenly get the correct result (that of an inner join)
    Can anyone help?
    Thanks!

    Hi Abu,
    please provide more information and an example that can be used for reproduction.
    We need:
    - ddl for the tables/indexes
    - some data to work on
    - the query
    - your results
    - the exact database versions used
    regards,
    Lars

  • Having trouble with join query

    Hi,
    I have two tables in my database, class and document. They look like this:
    Class
    Class
    classdescription
    Document
    documentid
    class
    document.class is a foreign key pointing to class.class. I want to find out how many document there are for each class, so I have the SQL statement:
    SELECT class.class, count(class.class) as numDocs, classDescription from class, document where class.class = document.class group by class.class, classDescription order by numDocs DESC
    However, if there is a class with no document, I also want it listed with the value 0 for numdocs, however this query doesnt seem to return class which have no documents.
    Can anyone provide me with help for this?
    Thanks!

    Could this be what you wanted?
    SELECT   CLASS.CLASS, COUNT (document.documentid) AS numdocs, CLASS.classdescription
        FROM CLASS, document
       WHERE CLASS.CLASS = document.CLASS(+)
    GROUP BY CLASS.CLASS, CLASS.classdescription
    ORDER BY numdocs DESC;C.

  • Having trouble with backslash and forward slash combinations in the address line.

    The link on the website points to downloadable files. The link contains a backslash - forwardslash combination which IE8 handles comfortably.
    Firefox doesn't ... it says the file is not found.
    Is this a bug?

    Links should not contain a backslash. Firefox will escape such a backslash as %5C. Those links aren't visible either. All I see is a Flash movie that has working links.
    See this for an example about image links that have backslashes:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load#Images_do_not_load

  • Trouble with joining tracks

    I want to merge my tracks together (by highlighting songs, clicking advanced and then join tracks); problem is, I can't do it. The option to join is shaded out and I can't figure out what the problem is. Any help out there?

    Join tracks option is only available when ripping from CD. To join tracks later you will need to another another program.

  • Selecting duplicate rows based on a combination of columns as key

    Hi ,
    I have a table with 5 columns.
    Code ID S_DATE E_DATE Name
    1 23 01012001 null ABC
    1 09 01012001 null XYZ
    2 81 04022007 null TVU
    1 43 03092008 null XXX
    Now, I need write a select query to fetch the duplicate rows from the above table having the combination of (Code, S_DATE,E_DATE) as the key.
    So from the above example, I need to get Row1 and Row2 as output (but not Row3 as it has a different S_DATE)
    Thanks in advance for your suggestions.
    Thanks
    Edited by: thotaramesh on Mar 9, 2009 4:54 PM

    On XE;
    WITH sample_data AS (
       SELECT 1  code,23 ID, '01012001' s_date, null e_date, 'ABC' NAME FROM dual UNION ALL
       SELECT 1, 09, '01012001', null, 'XYZ' FROM dual UNION ALL
       SELECT 2, 81, '04022007', null, 'TVU' FROM dual UNION ALL
       SELECT 1, 43, '03092008', null, 'XXX' FROM dual)
    SELECT code, ID, s_date, e_date, NAME
    FROM (
       SELECT
          sample_data.*,
          COUNT(*) over (PARTITION BY code, s_date, e_date) dups
       FROM sample_data)
    WHERE dups > 1;
          CODE         ID S_DATE   E_DATE NAME
             1         23 01012001        ABC
             1          9 01012001        XYZ

  • Query - restricting rows based on specific combinations of columns

    I have two columns in two different tables T1 and T2 like below
    T1.Column1 T2.Column2
    1 a
    2 b
    3 c
    4 d
    5 e
    I need all the combinations of values in the columns, which I can choose like
    select T1.Column1, T2.Column2 from T1, T2 ------ (Without specifying any join ie. cartesian product)
    But, in those, combinations, I need to restrict the following combinations, from not being selected - (1,b), (1,c),(3,b), in the same sql, or using a subquery. I am not able to achieve this after several attempts. Can any one help?

    Just pad it and check
    SQL> select no,name from a,b where to_char(no)||name not in ('1b','1c','3b')
      2  /
            NO N
             1 a
             1 d
             1 e
             2 a
             2 b
             2 c
             2 d
             2 e
             3 a
             3 c
             3 d
            NO N
             3 e
             4 a
             4 b
             4 c
             4 d
             4 e
             5 a
             5 b
             5 c
             5 d
             5 eThanks,
    Karthick.

  • Im having trouble with my email. usually i drag emails i want saved to various folders. recently, some of the folders have changed their appearance - looking like a camera body, and less like a folder. these icons seemed to be locked as well, so i can no

    im having trouble with my email. usually i drag emails i want saved to various folders. recently, some of the folders have changed their appearance - looking like a camera body, and less like a folder. these icons seemed to be locked as well, so i can no longer open those folders. help please?

    Ah, now i see that the folder has an icon on it - like a "settings" icon - sort of a wheel

  • Question - View with a join based on two unequal strings.

    Hello -
    First my apologies for the likely novice question.
    I'm creating a view based on two tables as such:
    SELECT *
    FROM table1 LEFT OUTER JOIN table2 ON table1.string = table2.string AND table1.number = table2.number
    Problem: table1.string looks like "A00A01%%%" and table2.string looks like "A1" (which would correspond to "A00A01%%%".
    Question: Can I create the join based on the 4th and 6th character of the string = the other string, or should I create a view with a formula creating a new field and then create a second view? (Note: creating or changing the field in the original table is not an option).
    Thank you.

    Hi,
    Yes, you can do that. Join conditions don't have to be as simple as "ON a.col1 = b.col2"; they can involve functions, like CONCAT and SUBSTR.
    For example:
    FROM            table1
    LEFT OUTER JOIN table2
    ON              SUBSTR (table1.string, 4, 1)
                    ||
                    SUBSTR (table1.string, 6, 1) = table2.string
    ...The query might be faster if you create a function-based index on the join condition from table1. This does not require changing table1 itself. (For a LEFT OUTER JOIN, like this, it probably won't matter.)

  • I recently joined Pinterest and am having trouble with it on Firefox.

    I recently joined Pinterest and am having trouble with it on Firefox. I am able to load the website but unable to repin and pin my own items. The site works slowly but fine on IE. Any ideas?

    You mean an external SSD? What kind of connection, that will be the bottleneck. Replacing the internal might be ok for a while till you start to fill it up, then the whole system will slow down.

  • I've updated my Macbook Pro and my iMac with Maverick, updating the various apps. On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory, and it's based our Mail, the only app not updated. Ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

    Maverick and Your System message
    I've updated my Macbook Pro and my iMac with Maverick, updating the various apps (Pages, Aperture, iPhoto, Numbers & iMovie, too) in the process.
    On my Macbook, everything functions perfectly. On my iMac, I get the Your System has Run out of Application Memory message. But it's not Calendar, it's Mail that not only won't open, but when it does now, it takes the entire system out with it.
    I open Safari, and it works. I open Firefox, and it works and Safari still works. I open Calendar and it works, Safari and Firefox continue to work. I open Reminders, and everything still works.
    I open Aperture, and it opens Finder instead, showing the 3.5 update that was installed two days ago (and Aperture has functioned), but doesn't seem to update the app; after about 20 seconds the update disappears and I can now open Aperture and it shows I'm now opening the updated Aperture, which it didn't show before.
    I click on Mail, and the cursor spins for ten minutes. The mail window finally opens, but the cursor spins and does not connect to upload new mail, and I finally Force Quit Mail. Since the Maverick update, even though Mail was not updated (and maybe because Mail was not updated), I have been able to receive emails twice, and then the program crashed.
    Besides the Aperture app, Pages didn't fully update on the iMac, and I had to remove the old Pages icon from the dock after the new program loaded up from Applications.
    Any ideas?

  • Little troubles with DVB-S2 via MPlayer

    Hi,
    I use the MPlayer already for quite a while to stream DVB-S and DVB-S2 with it. But for approximately two weeks something changed while watching HD-channels: the video track lags every few seconds; the audio track is quiet normal. However, the non-HD channels hide the problem.
    E.g. while watching a German HD-channel, I find following terminal outputs:
    [h264 @ 0xf2b820]mmco: unref short failure
    [h264 @ 0xf2b820]reference picture missing during reorder
    [h264 @ 0xf2b820]Missing reference picture
    [h264 @ 0xf2b820]Increasing reorder buffer to 2
    h264 @ 0xf2b820]Increasing reorder buffer to 3
    [h264 @ 0xf2b820]Increasing reorder buffer to 4
    [mpegts @ 0xeb3080]PES packet size mismatch
    **** Your system is too SLOW to play this! ****
    Specially this message I can't understand, because I'm using a CPU AMD Phenom II X4 955 3,2 GHz, 8 GB Corsair XMS3 DDR3 RAM and the graphic card ASUS GTX 460 Top GDDR5 PCIe 1024 MB. But, let's continue with the outputs:
    [h264 @ 0xf2b820]concealing 880 DC, 880 AC, 880 MV errors
    [h264 @ 0xf2b820]mmco: unref short failure
    [h264 @ 0xf2b820]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
    [h264 @ 0xf2b820]illegal short term buffer state detected
    Furthermore I'm using two HHD WD20EARS, which are connected to RAID1 via 3ware 9650SE-2LP, and the DVB hardware decoder card Hauppauge WinTV-NOVA-HD-S2. My desktop environment is KDE SC 4.8.
    For starting the DVB-S2 streaming I use szap-s2 -r -p -S 1 -c ~/.mplayer/hdchannels.conf "NAME-OF-THE-HD-CHANNEL" in one terminal and mplayer /dev/dvb/adapter0/dvr0 -demuxer lavf -cache 8192 in a second terminal.
    I just mention all this stuff because I've absolutly no idea, what could be the reason. Before this troubles started, two weeks ago, everything worked flawlessly. Checking the /etc/log/pacman.log I can find out, that the Linux kernel was upgraded from 3.2.6-2 to 3.2.7-1 on 24th February. I'm not sure, but maybe since that time these failures appears. Presently I'm using Linux 3.2.8-1.
    Has anyone an idea what might just be the cause? (Perhaps it could be a option to try the LTS-kernel?)
    Last edited by maik-hro (2012-04-13 10:39:59)

    So, today I just made some small tests. First of all I tried to start a HD-channel with WinTV7 on Windows 7: The channel was streamed correctly for almost one minute and than it was lost - and I had no possibilty to get it back.
    After that I tried again to start the same HD-channel on Linux. I apologize in advance to the large amount of text but following is the terminal output of the first minute (finally canceled by STRG + C):
    MPlayer SVN-r34799-4.6.3 (C) 2000-2012 MPlayer Team
    183 audio & 398 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing /dev/dvb/adapter0/dvr0.
    Cache fill: 17.97% (1507328 bytes)
    libavformat version 54.2.100 (internal)
    libavformat file format detected.
    [NULL @ 0xf50700]non-existing SPS 10 referenced in buffering period
    [NULL @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 10 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 11 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 11 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 12 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 12 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 13 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 13 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 14 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 14 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 3 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 4 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 5 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS referenced
    [h264 @ 0xf50700]non-existing SPS 6 referenced in buffering period
    [h264 @ 0xf50700]non-existing PPS 0 referenced
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]no frame!
    [h264 @ 0xf50700]mmco: unref short failure
    [h264 @ 0xf50700]mmco: unref short failure
    [h264 @ 0xf50700]Increasing reorder buffer to 1
    [h264 @ 0xf50700]Increasing reorder buffer to 2
    [h264 @ 0xf50700]Increasing reorder buffer to 3
    [h264 @ 0xf50700]Increasing reorder buffer to 4
    [h264 @ 0xf50700]mmco: unref short failure
    [mpegts @ 0xed4800]Estimating duration from bitrate, this may be inaccurate
    [lavf] stream 0: video (h264), -vid 0
    [lavf] stream 1: audio (mp2), -aid 0
    LAVF: Program 11100
    LAVF: Program 11110
    LAVF: Program 11120
    VIDEO: [H264] 1280x720 0bpp 50.000 fps 0.0 kbps ( 0.0 kbyte/s)
    Load subtitles in /dev/dvb/adapter0/
    Cache not responding! [performance issue]
    Cache not responding! [performance issue]
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 54.8.100 (internal)
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
    AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
    Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
    ==========================================================================
    [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    Unsupported PixelFormat 61
    Unsupported PixelFormat 53
    Unsupported PixelFormat 81
    [h264 @ 0xf50700]Missing reference picture
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
    [h264 @ 0xf50700]Missing reference picture
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
    [h264 @ 0xf50700]Missing reference picture
    [h264 @ 0xf50700]decode_slice_header error
    [h264 @ 0xf50700]concealing 3600 DC, 3600 AC, 3600 MV errors
    [h264 @ 0xf50700]Increasing reorder buffer to 1
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [vdpau] 1280x720 => 1280x720 Planar YV12
    A:61580.2 V:61580.9 A-V: -0.639 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 50%
    [h264 @ 0xf50700]reference picture missing during reorder
    [h264 @ 0xf50700]Missing reference picture
    [h264 @ 0xf50700]mmco: unref short failure
    A:61580.3 V:61581.1 A-V: -0.742 ct: -0.004 0/ 0 ??% ??% ??,?% 2 0 50%
    [h264 @ 0xf50700]Increasing reorder buffer to 2
    [h264 @ 0xf50700]Increasing reorder buffer to 3
    [h264 @ 0xf50700]Increasing reorder buffer to 4
    [h264 @ 0xf50700]mmco: unref short failure
    A:61585.5 V:61586.0 A-V: -0.430 ct: -0.490 0/ 0 86% 7% 0.7% 125 0 50%
    [mpegts @ 0xed4800]PES packet size mismatch
    A:61585.9 V:61586.3 A-V: -0.400 ct: -0.520 0/ 0 85% 7% 0.7% 125 0 50%
    **** Your system is too SLOW to play this! ****
    Possible reasons, problems, workarounds:
    - Most common: broken/buggy _audio_ driver
    - Try -ao sdl or use the OSS emulation of ALSA.
    - Experiment with different values for -autosync, 30 is a good start.
    - Slow video output
    - Try a different -vo driver (-vo help for a list) or try -framedrop!
    - Slow CPU
    - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
    - Broken file
    - Try various combinations of -nobps -ni -forceidx -mc 0.
    - Slow media (NFS/SMB mounts, DVD, VCD etc)
    - Try -cache 8192.
    - Are you using -cache to play a non-interleaved AVI file?
    - Try -nocache.
    Read DOCS/HTML/en/video.html for tuning/speedup tips.
    If none of this helps you, read DOCS/HTML/en/bugreports.html.
    A:61589.5 V:61587.1 A-V: 2.333 ct: -0.432 0/ 0 83% 7% 0.8% 125 0 50%
    [h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
    A:61589.5 V:61587.2 A-V: 2.334 ct: -0.430 0/ 0 83% 7% 0.8% 125 0 50%
    [h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
    A:61589.5 V:61587.2 A-V: 2.332 ct: -0.428 0/ 0 83% 7% 0.8% 125 0 50%
    [h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
    A:61592.2 V:61589.9 A-V: 2.242 ct: -0.422 0/ 0 58% 5% 0.9% 125 0 50%
    [h264 @ 0xf50700]mmco: unref short failure
    A:61592.6 V:61590.2 A-V: 2.438 ct: -0.396 0/ 0 61% 5% 0.9% 131 0 50%
    [h264 @ 0xf50700]number of reference frames (0+6) exceeds max (5; probably corrupt input), discarding one
    A:61646.7 V:61646.7 A-V: 0.000 ct: 1.818 0/ 0 62% 6% 0.8% 724 0 50%
    MPlayer interrupted by signal 2 in module: decode video
    MPlayer interrupted by signal 2 in module: enable_cache
    A:61646.7 V:61646.7 A-V: 0.000 ct: 1.818 0/ 0 62% 6% 0.8% 724 0 50%
    Exiting... (Quit)
    Starting the same channel in SD I get these feedback:
    MPlayer SVN-r34799-4.6.3 (C) 2000-2012 MPlayer Team
    183 audio & 398 video codecs
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Playing dvb://ARD.
    dvb_tune Freq: 11836000
    Cache fill: 17.58% (368640 bytes)
    TS file format detected.
    VIDEO MPEG2(pid=101) AUDIO MPA(pid=102) NO SUBS (yet)! PROGRAM N. 0
    VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    libavcodec version 54.8.100 (internal)
    Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
    AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
    Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
    ==========================================================================
    [AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    [VD_FFMPEG] Trying pixfmt=0.
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=1.
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    [VD_FFMPEG] Trying pixfmt=2.
    Could not find matching colorspace - retrying with -vf scale...
    Opening video filter: [scale]
    The selected video_out device is incompatible with this codec.
    Try appending the scale filter to your filter list,
    e.g. -vf spp,scale instead of -vf spp.
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [vdpau] 720x576 => 1024x576 Planar YV12
    A:36766.2 V:36766.2 A-V: -0.001 ct: -0.332 19241/19241 14% 2% 0.7% 9 0 49%
    I will not get rid of the feeling that it might actually be due to faulty input signals. May something's wrong with the satellite system (LNB, multi switch, something else)?

  • Anyone having trouble with computer running extremely slow with the color wheel continuously spinning.?

    Updated with Yosemite and think that's when my problems started with my IMac being very slow.  The color wheel keeps popping up and spinning not allowing me to move forward on typing or moving between websites etc.  Extremely slow and never had this problem before Yosemite.  Any real answers to this out there?  I was on the phone with apple support for two and a half hours the other day and it's not made any difference in what the tech had me do to resolve this issue.

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    The test works on OS X 10.7 ("Lion") and later. I don't recommend running it on older versions of OS X. It will do no harm, but it won't do much good either.
    Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.
    You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.
    In this case, however, there are a couple of ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the necessary skill can verify what it does.
    You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message. See, for example, this discussion.
    Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.
    4. Here's a summary of what you need to do, if you choose to proceed:
    ☞ Copy a line of text in this window to the Clipboard.
    ☞ Paste into the window of another application.
    ☞ Wait for the test to run. It usually takes a few minutes.
    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    5. Try to test under conditions that reproduce the problem, as far as possible. For example, if the computer is sometimes, but not always, slow, run the test during a slowdown.
    You may have started up in "safe" mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    6. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    7. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(1266 ' 0.5 0.25 10 1000 15 5120 1000 25000 1 1 0 100 ' 51 25600 4 10 25 5120 102400 1000 25 1 250 40 500 300 85 25 20480 262144 20 2000 524288 604800 5 1024 );k=({Soft,Hard}ware Memory Diagnostics Power FireWire Thunderbolt USB Bluetooth SerialATA Extensions Applications Frameworks PrefPane Fonts Displays PCI UniversalAccess InstallHistory ConfigurationProfile AirPort 'com\.apple\.' -\\t N\\/A 'AES|atr|udit|msa|dnse|ax|ensh|fami|FileS|fing|ft[pw]|gedC|kdu|etS|is\.|alk|ODSA|otp|htt|pace|pcas|ps-lp|rexe|rlo|rsh|smb|snm|teln|upd-[aw]|uuc|vix|webf' OSBundle{Require,AllowUserLoa}d 'Mb/s:Mb/s:ms/s:KiB/s:%:total:MB:total:per sec' 'Net in:Net out:I/O wait time:I/O requests:CPU usage:Open files:Memory:Mach ports:File opens:Forks:Failed forks:System errors' 'tsA|[ST]M[HL]' PlistBuddy{,' 2>&1'}' -c Print' 'Info\.plist' CFBundleIdentifier );f=('\n%s'{': ','\n\n'}'%s\n' '\nRAM details\n%s\n' %s{' ','\n'{"${k[22]}",}}'%s\n' '%.1f GiB: %s\n' '\n    ...and %s more line(s)\n' '\nContents of %s\n    '"${k[22]}"'mod date: %s\n    '"${k[22]}"'checksum: %s\n%s\n' );c=(879294308 4071182229 461455494 3627668074 1083382502 1274181950 1855907737 2758863019 1848501757 464843899 2636415542 3694147963 1233118628 2456546649 2806998573 2778718105 842973933 1383871077 2051385900 3301885676 891055588 998894468 695903914 1443423563 4136085286 3374894509 1051159591 892310726 1707497389 523110921 2883943871 3873345487 );s=(' s/[0-9A-Za-z._]+@[0-9A-Za-z.]+\.[0-9A-Za-z]{2,4}/EMAIL/g;/faceb/s/(at\.)[^.]+/\1NAME/g;/\/Shared/!s/(\/Users\/)[^ /]+/\1USER/g;s/[-0-9A-Fa-f]{22,}/UUID/g;' ' s/^ +//;/de: S|[nst]:/p;' ' {sub(/^ +/,"")};/er:/;/y:/&&$2<'${p[4]} ' s/:$//;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: (E[^m]|[^EO])|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[9]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Genesy|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' BEGIN { FS="\f";if(system("A1 42 83 114")) d="^'"${k[21]}"'launch(d\.peruser\.[0-9]+|ctl\.(Aqua|Background|System))$";} { if($2~/[1-9]/) { $2="status: "$2;printf("'"${f[4]}"'",$1,$2);} else if(!d||$1!~d) print $1;} ' ' $1>1{$NF=$NF" x"$1} /\*/{if(!f)f="\n\t* Code injection"} {$1=""} 1;END{print f} ' ' NR==2&&$4<='${p[7]}'{print $4} ' ' BEGIN{FS=":"} ($1~"wir"&&$2>'${p[22]}') {printf("wired %.1f\n",$2/2^18)} ($1~/P.+ts/&&$2>'${p[19]}') {printf("paged %.1f\n",$2/2^18)} ' '/YLD/s/=/ /p' ' { q=$1;$1="";u=$NF;$NF="";gsub(/ +$/,"");print q"\f"$0"\f"u;} ' ' /^ {6}[^ ]/d;s/:$//;/([^ey]|[^n]e):/d;/e: Y/d;s/: Y.+//g;H;${ g;s/ \n (\n)/\1/g;s/\n +(M[^ ]+)[ -~]+/ (\1)/;s/\n$//;/( {8}[^ ].*){2,}/p;} ' 's:^:/:p;' ' !/, .+:/{print};END{if(NR<'{${p[12]},${p[13]}}')printf("^'"${k[21]}"'.+")} ' '|uniq' ' 1;END { print "/L.+/Scr.+/Templ.+\.app$";print "/L.+/Pri.+\.plugin$";if(NR<'{${p[14]},${p[21]}}') print "^/[Sp].+|'${k[21]}'";} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:.+//p;' '&&echo On' '/\.(bundle|component|framework|kext|mdimporter|plugin|qlgenerator|saver|wdgt)$/p' '/\.dylib$/p' ' /Temp|emac/{next};/(etc|Preferences|Launch[AD].+)\// { sub(".","");print $0"$";} END { split("'"${c[*]}"'",c);for(i in c) print "\t"c[i]"$";} ' ' /^\/(Ap|Dev|Inc|Prev)/d;/((iTu|ok).+dle|\.(component|mailbundle|mdimporter|plugin|qlgenerator|saver|wdgt))$/p;' ' BEGIN{ FS="= "} $2 { gsub(/[()"]/,"",$2);print $2;} ' ' /^\//!d;s/^.{5}//;s/ [^/]+\//: \//p;' '>&-||echo No' '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[2]}'{$2=$2-1;print}' ' BEGIN { M1='${p[16]}';M2='${p[18]}';M3='${p[8]}';M4='${p[3]}';} !/^A/{next};/%/ { getline;if($5<M1) o["CPU"]="CPU: user "$2"%, system "$4"%";next;} $2~/^disk/&&$4>M2 { o[$2]=$2": "$3" ops/s, "$4" blocks/s";next;} $2~/^(en[0-9]|bridg)/ { if(o[$2]) { e=$3+$4+$5+$6;if(e) o[$2]=o[$2]"; errors "e"/s";next;};if($4>M3||$6>M4) o[$2]=$2": in "int($4/1024)", out "int($6/1024)" (KiB/s)";} END { for(i in o) print o[i];} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|BKAg|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/)||(/v6:/&&$2!~/A/) ' ' BEGIN{FS=": "} /^ {10}O/ {exit} /^ {0,12}[^ ]/ {next} $1~"Ne"&&$2!~/^In/{print} $1~"Si" { split($2,a," ");if(a[1]-a[4]<'${p[5]}') print;};$1~"T"&&$2<'${p[20]}'{print};$1~"Se"&&$2!~"2"{print};' ' BEGIN { FS="\f";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]$1;} ' ' BEGIN { split("'"${p[1]}"'",m);FS="\f";} $2<=m[$1]{next} $1<9 { o[$1]=o[$1]"\n    "$3" (UID "$4"): "$2;} $1==9&&$5!~"^/dev" { o[$1]=o[$1]"\n    "$3" (UID "$4") => "$5" (status "$6"): "$2;} $1==10&&$5 { p="ps -c -ocomm -p"$5"|sed 1d";p|getline n;close(p);if(n) $5=n;o[$1]=o[$1]"\n    "$5" => "$3" (UID "$4"): "$2;} $1~/1[12]/ { o[$1]=o[$1]"\n    "$3" (UID "$4", error "$5"): "$2;} END { n=split("'"${k[27]}"'",u,":");for(i=n+1;i<n+4;i++)u[i]=u[n];split("'"${k[28]}"'",l,":");for(i=1;i<13;i++) if(o[i])print "\n"l[i]" ("u[i]")\n"o[i];} ' ' /^ {8}[^ ]/{print} ' ' BEGIN { L='${p[17]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n    "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n    [N/A]";"cksum "F|getline C;split(C, A);C=A[1];"stat -f%Sm "F|getline D;"file -b "F|getline T;if(T~/^Apple b/) { f="";l=0;while("'"${k[30]}"' "F|getline g) { l++;if(l<=L) f=f"\n    "g;};};if(T!~/^(AS.+ (En.+ )?text(, with v.+)?$|(Bo|PO).+ sh.+ text ex|XM)/) F=F"\n    '"${k[22]}"'"T;printf("'"${f[8]}"'",F,D,C,f);if(l>L) printf("'"${f[7]}"'",l-L);} ' ' s/^ ?n...://p;s/^ ?p...:/-'$'\t''/p;' 's/0/Off/p' 's/^.{52}(.+) <.+/\1/p' ' /id: N|te: Y/{i++} END{print i} ' ' /kext:/ { split($0,a,":");p=a[1];k[S]='${k[25]}';k[U]='${k[26]}';v[S]="Safe";v[U]="true";for(i in k) { s=system("'"${k[30]}"'\\ :"k[i]" \""p"\"/*/I*|grep -qw "v[i]);if(!s) a[1]=a[1]" "i;};if(!a[2]) a[2]="'"${k[23]}"'";printf("'"${f[4]}"'",a[1],a[2]);next;} !/^ *$/ { p="'"${k[31]}"'\\ :'"${k[33]}"' \""$0"\"/*/'${k[32]}'";p|getline b;close(p);if(b~/, .+:/||b=="") b="'"${k[23]}"'";printf("'"${f[4]}"'",$0,b);} ' '/ en/!s/\.//p' ' NR>=13 { gsub(/[^0-9]/,"",$1);print;} ' ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9|"sort|uniq";} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?'${k[32]}'$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' ' /l: /{ /DVD/d;s/.+: //;b0'$'\n'' };/s: /{ / [VY]/d;s/^ */- /;H;};$b0'$'\n'' d;:0'$'\n'' x;/APPLE [^:]+$/d;p;' '/^find: /!p;' ' /^p/{ s/.//g;x;s/\nu/'$'\f''/;s/(\n)c/\1'$'\f''/;s/\n\n//;p;};H;' ' BEGIN{FS="= "} /Path/{print $2} ' ' /^ *$/d;s/^ */    /;p;' ' s/^.+ |\(.+\)$//g;p;' '1;END{if(NR<'${p[15]}')printf("^/(S|usr/(X|li))")}' ' /2/{print "WARN"};/4/{print "CRITICAL"};' ' /EVHF|MACR|^s/d;s/^.+: //p;' ' $3~/^[1-9][0-9]{0,2}(\.[1-9][0-9]{0,2}){2}$/ { i++;n=n"\n"$1"\t"$3;} END{ if(i>1)print n} ' s/{'\.|jnl: ','P.+:'}'//;s/ +([0-9]+)(.+)/\2 \1/p' ' /es: ./{ s/^.+://;b0'$'\n'' };/^ +C.+ted: +[NY]/H;/:$/b0'$'\n'' d;:0'$'\n'' x;/: +N/d;s/\n.+//p;' ' 1d;/:$/b0'$'\n'' $b0'$'\n'' /(D|^ *Loc.+): /{ s/^.+: //;H;};/(B2|[my]): /H;d;:0'$'\n'' x;/[my]: [AM]|m: I.+p$|^\/Vo/d;s/(^|\n) [ -~]+//g;s/(.+)\n(.+)/\2:\1/;s/\n//g;/[ -~]/p;' 's/$/'$'\f''(0|-(4[34])?)$/p' '|sort'{'|uniq'{,\ -c},\ -nr} ' s/^/'{5,6,7,8}$'\f''/;s/ *'$'\f'' */'$'\f''/g;p;' '/e:/{print $2}' ' /^[(]/{ s/....//;s/$/:/;N;/: [)]$/d;s/\n.+ ([^ ]+).$/\1/;H;};${ g;p;} ' 's/:.+$//p' '|wc -l' /{\\.{kext,xpc,'(appex|pluginkit)'}'\/(Contents\/)?'Info,'Launch[AD].+'}'\.plist$/p' 's/([-+.?])/\\\1/g;p' 's/, /\'$'\n/g;p' ' BEGIN{FS="\f"} { printf("'"${f[6]}"'",$1/2^30,$2);} ' ' /= D/&&$1!~/'{${k[24]},${k[29]}}'/ { getline d;if(d~"t") print $1;} ' ' BEGIN{FS="\t"} NR>1&&$NF!~/0x|\.([0-9]{3,}|[-0-9A-F]{36})$/ { print $NF"\f"a[split($(NF-1),a," ")];} ' '|tail -n'{${p[6]},${p[10]}} ' s/.+bus /Bus: /;s/,.+[(]/ /;s/,.+//p;' ' { $NF=$NF" Errors: "$1;$1="";} 1 ' ' 1s/^/\'$'\n''/;/^ +(([MNPRSV]|De|Li).+|Bus): .|d: Y/d;s/:$//;$d;p;' ' BEGIN { RS=",";FS=":";} $1~"name" { gsub("\"","",$2);print $2;} ' '|grep -q e:/' '/[^ .]/p' '{ print $1}' ' /^ +N.+: [1-9]/ { i++;} END { if(i) print "system: "i;} ' ' NF { print "'{admin,user}' "$NF;exit;} ' ' /se.+ =/,/[\}]/!d;/[=\}]/!p ' ' 3,4d;/^ +D|Of|Fu| [0B]/d;s/^  |:$//g;$!H;${ x;/:/p;} ' ' BEGIN { FS=": ";} NR==1 { sub(":","");h="\n"$1"\n";} /:$/ { l=$1;next;} $1~"S"&&$2!~3 { getline;next;} /^ {6}I/ { i++;L[i]=l" "$2;if(i=='${p[24]}') nextfile;} END { if(i) print h;for(j=0;j<i;j++) print L[i-j];} ' ' /./H;${ x;s/\n//;s/\n/, /g;/,/p;} ' ' {if(int($6)>'${p[25]}')printf("swap used %.1f\n",$6/1024)} ' ' BEGIN{FS="\""} $3~/ t/&&$2!~/'{${k[24]},${k[29]}}'/{print $2} ' ' int($1)>13 ' p ' BEGIN{FS="DB="} { sub(/\.db.*/,".db",$2);print $2;} ' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps crontab kextfind top pkgutil "${k[30]}\\" echo cksum kextstat launchctl smcDiagnose sysctl\ -n defaults\ read stat lsbom 'mdfind -onlyin' env pluginkit scutil 'dtrace -q -x aggsortrev -n' security sed\ -En awk 'dscl . -read' networksetup mdutil lsof test osascript\ -e netstat mdls route cat uname );c2=(${k[21]}loginwindow\ LoginHook ' /L*/P*/loginw*' "'tell app \"System Events\" to get properties of login items'" 'L*/Ca*/'${k[21]}'Saf*/E* -d 2 -name '${k[32]} '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' -i '-nl -print' '-F \$Sender -k Level Nle 3 -k Facility Req "'${k[21]}'('{'bird|.*i?clou','lsu|sha'}')"' "-f'%N: %l' Desktop {/,}L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message CRne '0xdc008012|(allow|call)ing|Goog|(mplet|nabl)ed|ry HD|safe b|xpm' -k Message CReq 'bad |Can.t l|corru|dead|fail|GPU |hfs: Ru|inval|Limiti|v_c|NVDA[(]|pagin|Purg(ed|in)|error|Refus|TCON|tim(ed? ?|ing )o|trig|WARN' " '-du -n DEV -n EDEV 1 10' 'acrx -o%cpu,comm,ruid' "' syscall::recvfrom:return {@a[execname,uid]=sum(arg0)} syscall::sendto:return {@b[execname,uid]=sum(arg0)} syscall::open*:entry {@c[execname,uid,copyinstr(arg0),errno]=count()} syscall::execve:return, syscall::posix_spawn:return {@d[execname,uid,ppid]=count()} syscall::fork:return, syscall::vfork:return, syscall::posix_spawn:return /arg0<0/ {@e[execname,uid,arg0]=count()} syscall:::return /errno!=0/ {@f[execname,uid,errno]=count()} io:::wait-start {self->t=timestamp} io:::wait-done /self->t/ { this->T=timestamp - self->t;@g[execname,uid]=sum(this->T);self->t=0;} io:::start {@h[execname,uid]=sum(args[0]->b_bcount)} tick-10sec { normalize(@a,2560000);normalize(@b,2560000);normalize(@c,10);normalize(@d,10);normalize(@e,10);normalize(@f,10);normalize(@g,10000000);normalize(@h,10240);printa(\"1\f%@d\f%s\f%d\n\",@a);printa(\"2\f%@d\f%s\f%d\n\",@b);printa(\"9\f%@d\f%s\f%d\f%s\f%d\n\",@c);printa(\"10\f%@d\f%s\f%d\f%d\n\",@d);printa(\"11\f%@d\f%s\f%d\f%d\n\",@e);printa(\"12\f%@d\f%s\f%d\f%d\n\",@f);printa(\"3\f%@d\f%s\f%d\n\",@g);printa(\"4\f%@d\f%s\f%d\n\",@h);exit(0);} '" '-f -pfc /var/db/r*/'${k[21]}'*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cght] ! -name .?\* ! -name \*ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f'$'\f''%Sc'$'\f''%N -t%F {} \;' '/S*/*/Ca*/*xpc*' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' /\ kMDItemContentTypeTree=${k[21]}{bundle,mach-o-dylib} :Label "/p*/e*/{auto*,{cron,fs}tab,hosts,{[lp],sy}*.conf,mach_i*/*,pam.d/*,ssh{,d}_config,*.local} {/p*,/usr/local}/e*/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t {/S*/,/,}L*/Lau*/*t .launchd.conf" list '-F "" -k Sender hidd -k Level Nle 3' /Library/Preferences/${k[21]}alf\ globalstate --proxy '-n get default' vm.swapusage --dns -get{dnsservers,info} dump-trust-settings\ {-s,-d,} -n1 '-R -ce -l1 -n5 -o'{'prt -stats prt','mem -stats mem'}',command,uid' -kl -l -s\ / '--regexp --files '${k[21]}'pkg.*' '+c0 -i4TCP:0-1023' ${k[21]}dashboard\ layer-gadgets '-d /L*/Mana*/$USER' '-app Safari WebKitDNSPrefetchingEnabled' '-Fcu +c0 -l' -m 'L*/{Con*/*/Data/L*/,}Pref* -type f -size 0c -name *.plist.???????' kern.memorystatus_vm_pressure_level '3>&1 >&- 2>&3' '-F \$Message -k Sender kernel -k Message CReq "'{'n Cause: -','(a und|I/O |jnl_io.+)err','USBF:.+bus'}'"' -name\ kMDItem${k[33]} -T\ hfs '-n get default' -listnetworkserviceorder :${k[33]} :CFBundleDisplayName $EUID {'$TMPDIR../C ','/{S*/,}'}'L*/{,Co*/*/*/L*/}{Cache,Log}s -type f -size +'${p[11]}'G -exec stat -f%z'$'\f''%N {} \;' \ /v*/d*/*/*l*d{,.*.$UID}/* '-app Safari UserStyleSheetEnabled' 'L*/A*/Fi*/P*/*/a*.json' users/$USER\ HomeDirectory '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' ' -F "\$Time \$(Sender): \$Message" -k Sender Rne "launchd|nsurls" -k Level Nle 3 -k Facility R'{'ne "user|','eq "'}'console" -k Message CRne "[{}<>]|asser|commit - no t|deprec|done |fmfd|Goog|ksho|ndum|obso|realp|rned f|sandbox ex|/root" ' getenv '/ "kMDItemDateAdded>=\$time.now(-'${p[23]}')&&kMDItem'${k[33]}'=*"' -m\ / '' ' -F "\$Time \$(RefProc): \$Message" -k Sender Req launchd -k Level Nle 3 -k Message Rne "asse|bug|File ex|hij|Ig|Jet|key is|lid t|Plea|ship" ' print{,-disabled}\ {system,user/$UID} -r ' -F "\$Message" -k Sender nsurlstoraged -k Time ge -1h -k Level Nle 4 -k Message Req "^(ER|IN)" ' );N1=${#c2[@]};for j in {0..20};do c2[N1+j]=SP${k[j]}DataType;done;l=({Restricted\ ,Lock,Pro}files POST Battery {Safari,App,{Bad,Loaded}\ kernel,Firefox}\ extensions System\ load boot\ args FileVault\ {2,1} {Kernel,System,Console,launchd}\ log SMC Login\ hook 'I/O per process' 'High file counts' UID {Daemons,Agents}\ {load,disabl}ed {Admin,Root}\ access Stylesheet Library\ paths{,' ('{shell,launchd}\)} Font\ issues Firewall Proxies DNS TCP/IP Wi-Fi 'Elapsed time (sec)' {Root,User}\ crontab {Global,User}' login items' Spotlight Memory\ pressure Listeners Widgets Parental\ Controls Prefetching Nets Volumes {Continuity,I/O,iCloud,HID,HCI}\ errors {User,System}\ caches/logs XPC\ cache Startup\ items Shutdown\ codes Heat Diagnostic\ reports Bad\ {plist,cache}s 'VM (GiB)' Bundles{,' (new)'} Trust\ settings Activity Free\ space );N3=${#l[@]};for i in {0..8};do l[N3+i]=${k[5+i]};done;F() { local x="${s[$1]}";[[ "$x" =~ ^([\&\|\<\>]|$) ]]&&{ printf "$x";return;};:|${c1[30]} "$x" 2>&-;printf "%s \'%s\'" "|${c1[30+$?]}" "$x";};A0() { Q=6;v[2]=1;id -G|grep -qw 80;v[1]=$?;((v[1]))||{ Q=7;sudo -v;v[2]=$?;((v[2]))||Q=8;};v[3]=`date +%s`;date '+Start time: %T %D%n';printf '\n[Process started]\n\n'>&4;printf 'Revision: %s\n\n' ${p[0]};};A1() { local c="${c1[$1]} ${c2[$2]}";shift 2;c="$c ` while [[ "$1" ]];do F $1;shift;done`";((P2))&&{ c="sudo $c";P2=;};v=`eval "$c"`;[[ "$v" ]];};A2() { local c="${c1[$1]}";[[ "$c" =~ ^(awk|sed ) ]]&&c="$c '${s[$2]}'"||c="$c ${c2[$2]}";shift 2;local d=` while [[ "$1" ]];do F $1;shift;done`;((P2))&&{ c="sudo $c";P2=;};local a;v=` while read a;do eval "$c '$a' $d";done<<<"$v";`;[[ "$v" ]];};A3(){ v=$((`date +%s`-v[3]));};export -f A1 A2;B1() { v=No;! ((v[1]))&&{ v=;P1=1;};};eval "`type -a B1|sed '1d;s/1/2/'`";B3(){ v[$1]="$v";};B4() { local i=$1;local j=$2;shift 2;local c="cat` while [[ "$1" ]];do F $1;shift;done`";v[j]=`eval "{ $c;}"<<<"${v[i]}"`;};B5(){ v="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d$'\e' <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F$'\e' ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`egrep -v "${v[$1]}"<<<"$v"|sort`;};eval "`type -a B7|sed '1d;s/7/8/;s/-v //'`";C0() { [[ "$v" ]]&&sed -E "$s"<<<"$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v"|sed -E "$s";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { B4 0 0 63&&C1 1 $1;};C4() { echo $'\t'"Part $((++P)) of $Q done at $((`date +%s`-v[3])) sec">&4;};C5() { sudo -k;pbcopy<<<"$o";printf '\n\tThe test results are on the Clipboard.\n\n\tPlease close this window.\n';exit 2>&-;};for i in 1 2;do eval D$((i-1))'() { A'$i' $@;C0;};';for j in 2 3;do eval D$((i+2*j-3))'() { local x=$1;shift;A'$i' $@;C'$j' $x;};';done;done;trap C5 2;o=$({ A0;D0 0 N1+1 2;D0 0 $N1 1;B1;C2 27;B1&&! B2&&C2 28;D2 22 15 63;D0 0 N1+2 3;D0 0 N1+15 17;D4 3 0 N1+3 4;D4 4 0 N1+4 5;D4 N3+4 0 N1+9 59;D0 0 N1+16 99;for i in 0 1 2;do D4 N3+i 0 N1+5+i 6;done;D4 N3+3 0 N1+8 71;D4 62 1 10 7;D4 10 1 11 8;B2&&D4 18 19 53 67;D2 11 2 12 9;D2 12 3 13 10;D2 13 32 70 101 25;D2 71 6 76 13;D2 45 20 52 66;A1 7 77 14;B3 28;A1 20 31 111;B6 0 28 5;B4 0 0 110;C2 66;D4 70 8 15 38;D0 9 16 16 77 45;C4;B2&&D0 35 49 61 75 76 78 45;B2&&{ D0 28 17 45;C4;};D0 12 40 54 16 79 45;D0 12 39 54 16 80 45;D4 31 25 77 15&&{ B4 0 8 103;B4 8 0;A2 18 74;B6 8 0 3;C3 32;};B2&&D4 19 21 0;B2&&D4 40 10 42;D2 2 0 N1+19 46 84;D2 44 34 43 53;D2 59 22 20 32;D2 33 0 N1+14 51;for i in {0..2};do A1 29 35+i 104+i;B3 25+i;done;B6 25 27 5;B6 0 26 5;B4 0 0 110;C2 69;D2 34 21 28 35;D4 35 27 29 36;A1 40 59 81;B3 18;A1 33 60 82;B8 18;B4 0 19 83;A1 27 32 39&&{ B3 20;B4 19 0;A2 33 33 40;B3 21;B6 20 21 3;};C2 36;D4 50 38 5 68;B4 19 0;D5 37 33 34 42;B2&&D4 46 35 45 55;D4 38 0 N1+20 43;B2&&D4 58 4 65 76 91;D4 63 4 19 44 75 95 12;B1&&{ D4 53 5 55 75 69&&D4 51 6 58 31;D4 56 5 56 97 75 98&&D0 0 N1+7 99;D2 55 5 27 84;D4 61 5 54 75 70;D4 14 5 14 96;D4 15 5 72 96;D4 17 5 78 96;C4;};D4 16 5 73 96;A1 13 44 74 18;C4;B3 4;B4 4 0 85;A2 14 61 89;B4 0 5 19 102;A1 17 41 50;B7 5;C3 8;B4 4 0 88;A2 14 24 89;C4;B4 0 6 19 102;B4 4 0 86;A2 14 61 89;B4 0 7 19 102;B5 6 7;B4 0 11 73 102;A1 42 83 114;j=$?;for i in 0 1;do ((! j))||((i))||B2&&A1 18 $((79+i-(i+53)*j)) 107+8*j 94 74;B7 11;B4 0 0 11;C3 23+2*i;D4 24+2*i 14 66+i 92+i;done;D4 60 4 21 24;D4 42 14 1 62;D4 43 37 2 90 48;D4 41 10 42;D2 48 36 47 25;A1 4 3 60&&{ B3 9;A2 14 61;B4 0 10 21;B4 9 0;A2 14 62;B4 0 0 21;B6 0 10 4;C3 5;};D4 9 41 69 100;D2 29 21 68 35;D2 49 21 48 49;B4 4 22 57 102;A1 21 46 56 74;B7 22;B4 0 0 58;C3 47;D4 54 5 7 75 76 69;D4 52 5 8 75 76 69;D4 57 4 64 76 91;D2 0 4 4 84;D2 1 4 51 84;D4 21 22 9 37;D0 0 N1+17 108;A1 23 18 28 89;B4 0 16 22 102;A1 16 25 33;B7 16;B4 0 0 34;D1 31 47;D4 64 4 71 41;D4 65 5 84 116 74;C4;B4 4 12 26 89 23 102;for i in {0..3};do A1 0 N1+10+i 72 74;B7 12;B4 0 0 52;C3 N3+5+i;((i))||C4;done;A1 24 22 29;B7 12;B3 14;A2 39 57 30;B3 15;B6 14 15 4;C3 67;A1 24 75 74;B3 23;A2 39 57 30;B3 24;B6 23 24 4;C3 68;B4 4 13 27 89 65;A1 24 23;B7 13;C3 30;B4 4 0 87;A2 14 61 89 20;B4 0 17;A1 26 50 64;B7 17;C3 6;D0 0 N1+18 109;D4 7 11 6;A3;C2 39;C4;} 4>&2 2>/dev/null;);C5
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    8. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter
    exec bash
    and press return. Then paste the script again.
    10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, a series of lines will appear in the Terminal window like this:
    [Process started]
            Part 1 of 8 done at … sec
            Part 8 of 8 done at … sec
            The test results are on the Clipboard.
            Please close this window.
    [Process completed]
    The intervals between parts won't be exactly equal, but they give a rough indication of progress. The total number of parts may be different from what's shown here.
    Wait for the final message "Process completed" to appear. If you don't see it within about ten minutes, the test probably won't complete in a reasonable time. In that case, press the key combination control-C or command-period to stop it and go to the next step. You'll have incomplete results, but still something.
    12. When the test is complete, or if you stopped it because it was taking too long, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "You are not authorized to post." That's a bug in the forum software. Please post the test results on Pastebin, then post a link here to the page you created.
    14. This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I may not agree with them.
    Copyright © 2014, 2015 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Trouble with iChart/Bar

    I have having issues creating a non-time based iChart.
    Data Source
    Mach1 500
    Mach2 250
    Mach3 400
    I want to create an iChart with Mach* along the X-Axis, and Qty as the value for each Bar. I have tried the various combinations of Data Mapping, but fail to get a chart that looks like what I expect.
              500
    500       **                         400
              **            250          **
    250       **            **           **
    0         **            **           **
            Mach1         Mach2        Mach3

    Display Template:
      <?xml version="1.0" encoding="UTF-8" ?>
      <iChart ChartType="Bar" LabelColumns="OPERATION_BO" SaveDate="12/13/2007 10:22:55" ValueColumns="WORK" Version="11.5.2" />
    Query Result:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Rowsets DateCreated="2007-12-13T10:12:18" EndDate="2007-12-13T10:11:30" StartDate="2007-12-13T09:11:30" Version="11.5.2">
    <Rowset>
    <Columns>
      <Column Description="ROUTER_BO" MaxRange="1" MinRange="0" Name="ROUTER_BO" SQLDataType="12" SourceColumn="ROUTER_BO" />
      <Column Description="OPERATION_BO" MaxRange="1" MinRange="0" Name="OPERATION_BO" SQLDataType="12" SourceColumn="OPERATION_BO" />
      <Column Description="STEP_ID" MaxRange="1" MinRange="0" Name="STEP_ID" SQLDataType="12" SourceColumn="STEP_ID" />
      <Column Description="WORK" MaxRange="1" MinRange="0" Name="WORK" SQLDataType="2" SourceColumn="WORK" />
      <Column Description="QUEUE" MaxRange="1" MinRange="0" Name="QUEUE" SQLDataType="2" SourceColumn="QUEUE" />
      </Columns>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,CASTING_LOAD,#</OPERATION_BO>
      <STEP_ID>010</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,PCB_PLACE,#</OPERATION_BO>
      <STEP_ID>020</STEP_ID>
      <WORK>1</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,COVER_PLACE,#</OPERATION_BO>
      <STEP_ID>030</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,SCREW1,#</OPERATION_BO>
      <STEP_ID>040</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,LABEL_PRINT,#</OPERATION_BO>
      <STEP_ID>050</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,RUNIN1,#</OPERATION_BO>
      <STEP_ID>060</STEP_ID>
      <WORK>15</WORK>
      <QUEUE>1</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,FCT1,#</OPERATION_BO>
      <STEP_ID>070</STEP_ID>
      <WORK>176</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,FINAL_INSP,#</OPERATION_BO>
      <STEP_ID>090</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
    <Row>
      <ROUTER_BO>RouterBO:MSCA,FLEX1_FA_TEST,U,A</ROUTER_BO>
      <OPERATION_BO>OperationBO:MSCA,FCT_REPAIR,#</OPERATION_BO>
      <STEP_ID>580</STEP_ID>
      <WORK>0</WORK>
      <QUEUE>0</QUEUE>
      </Row>
      </Rowset>
      </Rowsets>

Maybe you are looking for

  • OBIEE 10g to 11g Migration on LINUX Machine

    Hi All, I want to Migrate OBIEE 10g (Windows Environment with SQL Server DB) to OBIEE 11g on LINUX Environment with Oracle DB. If anybody know this can you please help me how to do ?Thnaks in Advance. As per my Knowledge i know upto this .... "first

  • Problem viewing videos with 5th Gen 30 GB Video

    My iPod video is older, got it back in 2005. It used to play videos just fine, but now when I try to play something, it jams up. Just a black screen with a play indicator and a battery indicator, but no movie. You can't menu back and have to soft res

  • Wy does firefox open a new window when i click on "open link on a new tab"?????

    the only time i shutdown a window is when i shutdown firefox. having mutiple windows invites to mistakes. please fix.

  • I need help generating a formula in excel 2013

    Hello All, i have a excel workbook with multiple worksheets, what i am trying to create now is "summary worksheet" which holds the calculated count of totals from different worksheets in same workbook. what i am after is: >> I have a user worksheet w

  • IMail not d/l emails from BT server

    For the last few days my iMac hasn't been able to d/l any emails into iMail from the BT server despite being viewable on BT webmail. Emails are.showing up on my iPhone however. I'm getting a triangle next to iMails inbox by clicking on it & selecting