Can this script run faster?

Hello,
The User dictionary does not always seem to work properly. The workaround is a script that creates discretionary hyphens for certain words.
The following script first deletes all discretionary hyphens in a document being converted from PageMaker to InDesign. It then searches the document for 1900+ words and inserts discretionary hyphens in those words. The script has two arrays with that many elements, one for the words to be searched for, the other with the discretionary hyphens for those words. The script works fine but it takes about a minute to cycle through a 100 page document and 1900+ words.
Is there a way to re-write this script so that it goes faster? Just curious.
Thanks,
Tom
#target InDesign
app.scriptPreferences.version = 5.0;
var myDoc = app.activeDocument;
var discrecHyphen = theGrepChanger(myDoc,"~-","");    
if(discrecHyphen.length > 0){
     alert("I just deleted "+discrecHyphen.length+" discretionary hyphens.");
     }//end if
else{
     alert("There were no discretionary hyphens in this document.");
     }//end else
var countWords = 0;
var numWords = "";
var wordsChanged = [];
var arrRawWords = ["humongous","array","of","thousand-plus","elements"];
var arrHyphenWords = ["hu~-mon~-gous","ar~-ray","of","thousand-~-plus","el~-e~-ments"];
for(var i =0; arrRawWords.length > i;i++){
     var numWords = theGrepChanger(myDoc,arrRawWords[i],arrHyphenWords[i]);
          if(numWords.length!=0){
               wordsChanged.push(arrRawWords[i]);
               }//end if
          countWords +=numWords.length;    
     }//end for i
alert ("I just added discretionary hyphens for " +countWords+" words.\r\rSweet, huh?!");
//*****functions*******
function theGrepChanger(docRef,grepFindIt,grepChangeIt){
     app.findGrepPreferences = NothingEnum.NOTHING;
     app.changeGrepPreferences = NothingEnum.NOTHING;
     app.findGrepPreferences.findWhat = grepFindIt;
     app.changeGrepPreferences.changeTo = grepChangeIt;
     var arrGrepFindIt = myDoc.changeGrep();
     return arrGrepFindIt;
}//end theGrepChanger

OK, it's not the arrays. If you turn on the ESTK's profiler, you get this data:
Line
Time
Hits
1
1
1
4
6
1
5
1939
1
6
183
1
7
5
1
16
1
1
17
1
1
18
14
1
37
389785
1901
38
1981085
1901
39
2692741
1901
40
1197758
1901
41
1132369
1901
42
38969087
1901
43
2165
1901
44
1741
1901
45
9
2
I wrapped your script in a function() {} to see if it would report times in the array lookups, so it doesn't. Perhaps it's being optimized out. Anyhow, it spends all the time in line 42, which is the mydoc.changeGrep(). Oh, the document -- I placed Alice in Wonderland in 12pt Minion Pro Regular on 5.5"x8.5" pages, and then used as my raw words the first 1900 words in /usr/share/dict/words and as their hyphenation pairs inserted a ~ after every letter 'c'. Takes about 46 seconds to run.
You might also think it'd run faster if you opened the document with app.open(File("alice.indd",false) so it shows no window. This seems sort of true, but then ID crashes on the 872nd word ("accept", hyphed as "ac~c~ept"), probably one of the few words in my hyphenation list that actually shows up in Alice. Oh well... It also doesn't seem much faster -- takes about 20 seconds to get to 872, which seems about the same time as with the window open.

Similar Messages

  • Can a script run faster?

    I've written a script that uses Adobe Soundbooth to compile and manipulate audio clips. Generating an 8 minute track via the script, however, takes about 5+ minutes. (Soundbooth must import and manipulate the files 1 by 1). Furthermore, during this time I must not touch the computer as to not interfere with the script's progress.
    Adobe Soundbooth does not have Applescript support so there are many “tells” for “system events” etc. I’m wondering if I got Apple’s Soundtrack Pro, which does have an Applescript dictionary, the script could run faster? Or perhaps it could at least run in the background to free up the computer for other uses while it’s running?
    I’m an Applescript newbie so I'm pretty clueless. I’m thrilled just to have written this first script!
    Thank you so much for your help.

    Normally yes, although you can use use a " ignoring application responses" block to tell your script to not wait for a reply from an application.
    e.g.
    tell application "Finder"
    ignoring application responses
    duplicate theFile to folder Desktop
    end ignoring
    end tell
    Normally the script would pause while it waits for the Finder to complete the duplication of the file, but in this script the script would just continue on without waiting.
    Of course this can be risky. In the case of the above script, if I added a line to try to do something with the file on the desktop, that line will fail if the script executes it before the Finder has finished copying. Ignoring can be a nice way of having multiple applications working in parallel, but it's then up to the script to check that the tasks have completed. You should also bear in mind that errors may not be picked-up as they normally would if the script waited for confirmation.

  • Can this class run fast than Hotspot ?

    My case in Sun hotspot is almost 2 times fast than jRockit. It's very strange.
    package com.telegram;
    public class byteutils {
         public final static byte[] bytea = { 48, 49, 50, 51, 52, 53, 54, 56, 57,
                   58, 65, 66, 67, 68, 69, 70 };
         public byteutils() {
              super();
         * convert length = 2L letters Hexadecimal String to length = L bytes
         * Examples: [01][23][45][67][89][AB][CD][EF]
         public static byte[] convertBytes(String hexStr) {
              byte[] a = null;
              try {
                   a = hexStr.getBytes("ASCII");
              } catch (java.io.UnsupportedEncodingException e) {
                   e.printStackTrace();
              final int len = a.length / 2;
              byte[] b = new byte[len];
              int idx = 0;
              int h = 0;
              int l = 0;
              for (int i = 0; i < len; i++) {
                   h = a[idx++];
                   l = a[idx++];
                   h = (h < 65) ? (h - 48) : (h - 55);
                   l = (l < 65) ? (l - 48) : (l - 55);
                   // if ((h < 0) || (l < 0)) return null;
                   b[i] = (byte) ((h << 4) | l);
              a = null;
              return b;
         public static String convertHex(byte[] arr_b) {
              if (arr_b == null)
                   return null;
              final int len = arr_b.length;
              byte[] byteArray = new byte[len * 2];
              int idx = 0;
              int h = 0;
              int l = 0;
              int v = 0;
              for (int i = 0; i < len; i++) {
                   v = arr_b[i] & 0xff;
                   l = v & 0xf;
                   h = v >> 4;
                   byteArray[idx++] = bytea[h];
                   byteArray[idx++] = bytea[l];
              String r = null;
              try {
                   r = new String(byteArray, "ASCII");
              } catch (java.io.UnsupportedEncodingException e) {
                   e.printStackTrace();
              } finally {
                   byteArray = null;
              return r;
         public static void main(String[] argv) {
              byte[] a = new byte[0x10000];
              for (int c = 0; c < 0x10000; c++) {
                   a[c] = (byte) (c % 256);
              String s = "";
              int LOOP = 10000;
              long l = System.currentTimeMillis();
              for (int i = 0; i < LOOP; i++) {
                   s = convertHex(a);
                   a = convertBytes(s);
              l = System.currentTimeMillis() - l;
              double d = l / (double) LOOP;
              System.out.println("" + d + "ms.");
    }

    Thanks! Your code is essentially a microbenchmark testing the performance of sun.nio.cs.US_ASCII.Decoder.decodeLoop() and encodeLoop(), with ~35% and ~30% spent in those two methods respectively. I have verified the behavior (i.e. Sun is faster than JRockit). Due to the microbenchmark nature, it may not affect a larger running program, but it may merit a closer look regardless. I have forwarded to the JRockit perf team for analysis.
    -- Henrik

  • What can I do to make this query run faster

    Hi All,
    The below query is taking a long time. Is there any thing that I can do to shorten its time.
    SELECT C.FOLIO_NO, C.CO_TRANS_NO TRANS_NO, to_char(C.CREATED_DATE, 'dd/mm/yyyy') DOC_DATE, DECODE(PP.NAME, NULL, D.EMP_NAME, PP.NAME) LODGED_BY, decode(sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID), Null, '-', sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID)) DATE_CHANGE, P.RECEIPT_NO, decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id) TRANS_ID,(case when decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR20' then 1 when decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR03' then 2 end) TRANS_TYPE FROM CO_TRANS_MASTER C, PAYMENT_DETAIL P, PEOPLE_PROFILE PP, SC_AGENT_EMP D, M_CAA_TRANS E     where '1' <> TRIM(UPPER('S0750070Z')) and (C.CO_TRANS_ID in TRIM(UPPER('AR20')) OR C.CO_TRANS_ID in TRIM(UPPER('AR03'))OR c.co_trans_id IN TRIM (UPPER ('A020')))and C.CO_TRANS_NO = P.TRANS_NO and (C.VOID_IND = 'N' or C.VOID_IND is Null) and C.CREATED_BY = PP.PP_ID(+) and C.PROF_NO = D.PROF_NO(+) and C.CREATED_BY = D.EMP_ID (+) and TRIM(UPPER(C.CO_NO)) = TRIM(UPPER('200101586W')) and c.co_trans_id = e.trans_id (+) order by FOLIO_NO;
    SQL>
    SQL> show parameter user_dump_dest
    NAME                                 TYPE        VALUE
    user_dump_dest                       string      /u01/app/oracle/diag/rdbms/ebi
    zfile/EBIZFILE1/trace
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      11.2.0.2
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     128
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL>
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL>
    SQL> select
      2  sname, pname, pval1, pval2
      3  from
      4  sys.aux_stats$;
    SNAME                PNAME                     PVAL1 PVAL2
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          09-11-2010 14:25
    SYSSTATS_INFO        DSTOP                           09-11-2010 14:25
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW           739.734748
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    Elapsed: 00:00:00.06
    SQL>
    SQL> explain plan for
      2  SELECT C.FOLIO_NO, C.CO_TRANS_NO TRANS_NO, to_char(C.CREATED_DATE, 'dd/mm/yyyy') DOC_DATE, DECODE(PP.NAME, NULL, D.EMP_NAME, PP.NAME) LODGED_BY, decode(sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID), Null, '-', sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID)) DATE_CHANGE, P.RECEIPT_NO, decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id) TRANS_ID,(case when  decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR20' then 1 when  decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR03' then 2 end) TRANS_TYPE FROM CO_TRANS_MASTER C, PAYMENT_DETAIL P, PEOPLE_PROFILE PP, SC_AGENT_EMP D, M_CAA_TRANS E     where '1' <> TRIM(UPPER('S0750070Z')) and (C.CO_TRANS_ID in TRIM(UPPER('AR20')) OR C.CO_TRANS_ID in TRIM(UPPER('AR03'))OR c.co_trans_id IN TRIM (UPPER ('A020')))and C.CO_TRANS_NO = P.TRANS_NO and (C.VOID_IND = 'N' or C.VOID_IND is Null) and C.CREATED_BY = PP.PP_ID(+) and C.PROF_NO = D.PROF_NO(+) and C.CREATED_BY = D.EMP_ID (+) and TRIM(UPPER(C.CO_NO)) =  TRIM(UPPER('200101586W')) and c.co_trans_id = e.trans_id (+) order by FOLIO_NO;
    Explained.
    Elapsed: 00:00:00.09
    SQL>
    SQL> set pagesize 1000;
    SQL> set linesize 170;
    SQL> @/u01/app/oracle/product/11.2.0/rdbms/admin/utlxpls.sql
    SQL> Rem
    SQL> Rem $Header: utlxpls.sql 26-feb-2002.19:49:37 bdagevil Exp $
    SQL> Rem
    SQL> Rem utlxpls.sql
    SQL> Rem
    SQL> Rem Copyright (c) 1998, 2002, Oracle Corporation.     All rights reserved.
    SQL> Rem
    SQL> Rem    NAME
    SQL> Rem      utlxpls.sql - UTiLity eXPLain Serial plans
    SQL> Rem
    SQL> Rem    DESCRIPTION
    SQL> Rem      script utility to display the explain plan of the last explain plan
    SQL> Rem      command. Do not display information related to Parallel Query
    SQL> Rem
    SQL> Rem    NOTES
    SQL> Rem      Assume that the PLAN_TABLE table has been created. The script
    SQL> Rem      utlxplan.sql should be used to create that table
    SQL> Rem
    SQL> Rem      With SQL*plus, it is recomended to set linesize and pagesize before
    SQL> Rem      running this script. For example:
    SQL> Rem      set linesize 100
    SQL> Rem      set pagesize 0
    SQL> Rem
    SQL> Rem    MODIFIED   (MM/DD/YY)
    SQL> Rem    bdagevil     02/26/02 - cast arguments
    SQL> Rem    bdagevil     01/23/02 - rewrite with new dbms_xplan package
    SQL> Rem    bdagevil     04/05/01 - include CPU cost
    SQL> Rem    bdagevil     02/27/01 - increase Name column
    SQL> Rem    jihuang     06/14/00 - change order by to order siblings by.
    SQL> Rem    jihuang     05/10/00 - include plan info for recursive SQL in LE row source
    SQL> Rem    bdagevil     01/05/00 - add order-by to make it deterministic
    SQL> Rem    kquinn     06/28/99 - 901272: Add missing semicolon
    SQL> Rem    bdagevil     05/07/98 - Explain plan script for serial plans
    SQL> Rem    bdagevil     05/07/98 - Created
    SQL> Rem
    SQL>
    SQL> set markup html preformat on
    SQL>
    SQL> Rem
    SQL> Rem Use the display table function from the dbms_xplan package to display the last
    SQL> Rem explain plan. Force serial option for backward compatibility
    SQL> Rem
    SQL> select plan_table_output from table(dbms_xplan.display('plan_table',null,'serial'));
    PLAN_TABLE_OUTPUT
    Plan hash value: 2520189693
    | Id  | Operation                         | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                         |   592 | 85248 | 16573   (1)| 00:03:19 |
    |   1 |  TABLE ACCESS BY INDEX ROWID      | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN               | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   3 |  TABLE ACCESS BY INDEX ROWID      | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  4 |   INDEX UNIQUE SCAN               | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID     | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  6 |    INDEX UNIQUE SCAN              | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   7 |  SORT ORDER BY                    |                         |   592 | 85248 | 16573   (1)| 00:03:19 |
    |   8 |   NESTED LOOPS                    |                         |       |       |            |          |
    |   9 |    NESTED LOOPS                   |                         |   592 | 85248 | 16572   (1)| 00:03:19 |
    |  10 |     NESTED LOOPS OUTER            |                         |   477 | 54855 | 15329   (1)| 00:03:04 |
    |  11 |      NESTED LOOPS OUTER           |                         |   477 | 41499 | 14374   (1)| 00:02:53 |
    |  12 |       INLIST ITERATOR             |                         |       |       |            |          |
    |* 13 |        TABLE ACCESS BY INDEX ROWID| CO_TRANS_MASTER         |   477 | 22896 | 14367   (1)| 00:02:53 |
    |* 14 |         INDEX RANGE SCAN          | IDX_CO_TRANS_ID         | 67751 |       |   150   (1)| 00:00:02 |
    |  15 |       TABLE ACCESS BY INDEX ROWID | SC_AGENT_EMP            |     1 |    39 |     1   (0)| 00:00:01 |
    |* 16 |        INDEX UNIQUE SCAN          | PK_SC_AGENT_EMP         |     1 |       |     0   (0)| 00:00:01 |
    |  17 |      TABLE ACCESS BY INDEX ROWID  | PEOPLE_PROFILE          |     1 |    28 |     2   (0)| 00:00:01 |
    |* 18 |       INDEX UNIQUE SCAN           | SYS_C0063100            |     1 |       |     1   (0)| 00:00:01 |
    |* 19 |     INDEX RANGE SCAN              | IDX_PAY_DETAIL_TRANS_NO |     1 |       |     2   (0)| 00:00:01 |
    |  20 |    TABLE ACCESS BY INDEX ROWID    | PAYMENT_DETAIL          |     1 |    29 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("F"."CO_TRANS_NO"=:B1)
       4 - access("F"."CO_TRANS_NO"=:B1)
       6 - access("F"."CO_TRANS_NO"=:B1)
      13 - filter(TRIM(UPPER("SYS_ALIAS_3"."CO_NO"))='200101586W' AND ("SYS_ALIAS_3"."VOID_IND" IS NULL
                  OR "SYS_ALIAS_3"."VOID_IND"='N'))
      14 - access("SYS_ALIAS_3"."CO_TRANS_ID"='A020' OR "SYS_ALIAS_3"."CO_TRANS_ID"='AR03' OR
                  "SYS_ALIAS_3"."CO_TRANS_ID"='AR20')
      16 - access("SYS_ALIAS_3"."PROF_NO"="D"."PROF_NO"(+) AND
                  "SYS_ALIAS_3"."CREATED_BY"="D"."EMP_ID"(+))
      18 - access("SYS_ALIAS_3"."CREATED_BY"="PP"."PP_ID"(+))
      19 - access("SYS_ALIAS_3"."CO_TRANS_NO"="P"."TRANS_NO")
    42 rows selected.
    Elapsed: 00:00:00.53
    SQL>
    SQL>
    SQL>
    SQL> rollback;
    Rollback complete.
    Elapsed: 00:00:00.01
    SQL>
    SQL> rem Set the ARRAYSIZE according to your application
    SQL> set autotrace traceonly arraysize 100
    SQL>
    SQL> alter session set tracefile_identifier = 'mytrace1';
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    SQL> rem if you're using bind variables
    SQL> rem define them here
    SQL>
    SQL> rem variable b_var1 number
    SQL> rem variable b_var2 varchar2(20)
    SQL>
    SQL> rem and initialize them
    SQL>
    SQL> rem exec :b_var1 := 1
    SQL> rem exec :b_var2 := 'DIAG'
    SQL> set pagesize 1000;
    SQL> set linesize 170;
    SQL> alter session set events '10046 trace name context forever, level 8';
    Session altered.
    Elapsed: 00:00:00.01
    SQL> SELECT C.FOLIO_NO, C.CO_TRANS_NO TRANS_NO, to_char(C.CREATED_DATE, 'dd/mm/yyyy') DOC_DATE, DECODE(PP.NAME, NULL, D.EMP_NAME, PP.NAME) LODGED_BY, decode(sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID), Null, '-', sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID)) DATE_CHANGE, P.RECEIPT_NO, decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id) TRANS_ID,(case when  decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR20' then 1 when  decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR03' then 2 end) TRANS_TYPE FROM CO_TRANS_MASTER C, PAYMENT_DETAIL P, PEOPLE_PROFILE PP, SC_AGENT_EMP D, M_CAA_TRANS E     where '1' <> TRIM(UPPER('S0750070Z')) and (C.CO_TRANS_ID in TRIM(UPPER('AR20')) OR C.CO_TRANS_ID in TRIM(UPPER('AR03'))OR c.co_trans_id IN TRIM (UPPER ('A020')))and C.CO_TRANS_NO = P.TRANS_NO and (C.VOID_IND = 'N' or C.VOID_IND is Null) and C.CREATED_BY = PP.PP_ID(+) and C.PROF_NO = D.PROF_NO(+) and C.CREATED_BY = D.EMP_ID (+) and TRIM(UPPER(C.CO_NO)) =  TRIM(UPPER('200101586W')) and c.co_trans_id = e.trans_id (+) order by FOLIO_NO;
    10 rows selected.
    Elapsed: 00:03:42.27
    Execution Plan
    Plan hash value: 2520189693
    | Id  | Operation                         | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                  |                         |   592 | 85248 | 16573   (1)| 00:03:19 |
    |   1 |  TABLE ACCESS BY INDEX ROWID      | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN               | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   3 |  TABLE ACCESS BY INDEX ROWID      | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  4 |   INDEX UNIQUE SCAN               | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   5 |   TABLE ACCESS BY INDEX ROWID     | CO_FORM5A_TRANS         |     1 |    20 |     2   (0)| 00:00:01 |
    |*  6 |    INDEX UNIQUE SCAN              | SYS_C0059692            |     1 |       |     1   (0)| 00:00:01 |
    |   7 |  SORT ORDER BY                    |                         |   592 | 85248 | 16573   (1)| 00:03:19 |
    |   8 |   NESTED LOOPS                    |                         |       |       |            |          |
    |   9 |    NESTED LOOPS                   |                         |   592 | 85248 | 16572   (1)| 00:03:19 |
    |  10 |     NESTED LOOPS OUTER            |                         |   477 | 54855 | 15329   (1)| 00:03:04 |
    |  11 |      NESTED LOOPS OUTER           |                         |   477 | 41499 | 14374   (1)| 00:02:53 |
    |  12 |       INLIST ITERATOR             |                         |       |       |            |          |
    |* 13 |        TABLE ACCESS BY INDEX ROWID| CO_TRANS_MASTER         |   477 | 22896 | 14367   (1)| 00:02:53 |
    |* 14 |         INDEX RANGE SCAN          | IDX_CO_TRANS_ID         | 67751 |       |   150   (1)| 00:00:02 |
    |  15 |       TABLE ACCESS BY INDEX ROWID | SC_AGENT_EMP            |     1 |    39 |     1   (0)| 00:00:01 |
    |* 16 |        INDEX UNIQUE SCAN          | PK_SC_AGENT_EMP         |     1 |       |     0   (0)| 00:00:01 |
    |  17 |      TABLE ACCESS BY INDEX ROWID  | PEOPLE_PROFILE          |     1 |    28 |     2   (0)| 00:00:01 |
    |* 18 |       INDEX UNIQUE SCAN           | SYS_C0063100            |     1 |       |     1   (0)| 00:00:01 |
    |* 19 |     INDEX RANGE SCAN              | IDX_PAY_DETAIL_TRANS_NO |     1 |       |     2   (0)| 00:00:01 |
    |  20 |    TABLE ACCESS BY INDEX ROWID    | PAYMENT_DETAIL          |     1 |    29 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("F"."CO_TRANS_NO"=:B1)
       4 - access("F"."CO_TRANS_NO"=:B1)
       6 - access("F"."CO_TRANS_NO"=:B1)
      13 - filter(TRIM(UPPER("SYS_ALIAS_3"."CO_NO"))='200101586W' AND ("SYS_ALIAS_3"."VOID_IND" IS NULL
                  OR "SYS_ALIAS_3"."VOID_IND"='N'))
      14 - access("SYS_ALIAS_3"."CO_TRANS_ID"='A020' OR "SYS_ALIAS_3"."CO_TRANS_ID"='AR03' OR
                  "SYS_ALIAS_3"."CO_TRANS_ID"='AR20')
      16 - access("SYS_ALIAS_3"."PROF_NO"="D"."PROF_NO"(+) AND
                  "SYS_ALIAS_3"."CREATED_BY"="D"."EMP_ID"(+))
      18 - access("SYS_ALIAS_3"."CREATED_BY"="PP"."PP_ID"(+))
      19 - access("SYS_ALIAS_3"."CO_TRANS_NO"="P"."TRANS_NO")
    Statistics
             51  recursive calls
              0  db block gets
         651812  consistent gets
          92202  physical reads
              0  redo size
           1594  bytes sent via SQL*Net to client
            524  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
             10  rows processed
    SQL>
    SQL> disconnect
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> Thanks in advance!

    Hi Raj,
    I have given the output below as you requested....
    QL>  select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
    PLAN_TABLE_OUTPUT
    SQL_ID  0taz7ckjm41yv, child number 1
    SELECT C.FOLIO_NO, C.CO_TRANS_NO TRANS_NO, to_char(C.CREATED_DATE,
    'dd/mm/yyyy') DOC_DATE, DECODE(PP.NAME, NULL, D.EMP_NAME, PP.NAME)
    LODGED_BY, decode(sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID),
    Null, '-', sf_fetch_datechange(c.co_trans_no, C.CO_TRANS_ID))
    DATE_CHANGE, P.RECEIPT_NO, decode(c.co_trans_id,'A020',(select
    nvl(base_trans_id,co_trans_id) from co_form5a_trans f where
    f.co_trans_no=c.co_trans_no),c.co_trans_id) TRANS_ID,(case when
    decode(c.co_trans_id,'A020',(select nvl(base_trans_id,co_trans_id) from
    co_form5a_trans f where f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR2
    0' then 1 when  decode(c.co_trans_id,'A020',(select
    nvl(base_trans_id,co_trans_id) from co_form5a_trans f where
    f.co_trans_no=c.co_trans_no),c.co_trans_id)='AR03' then 2 end)
    TRANS_TYPE FROM CO_TRANS_MASTER C, PAYMENT_DETAIL P, PEOPLE_PROFILE PP,
    SC_AGENT_EMP D, M_CAA_TRANS E where '1' <> TRIM(UPPER('S0750070Z')) and
    (C.CO_TRANS_ID in TRIM(UPPER('AR20')) OR C.CO_TRANS_ID in
    TRIM(UPPER('AR03'))OR c.co
    Plan hash value: 4175354585
    | Id  | Operation                        | Name                    | E-Rows |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT                 |                         |        |       |       |          |
    |   1 |  TABLE ACCESS BY INDEX ROWID     | CO_FORM5A_TRANS         |      1 |       |       |          |
    |*  2 |   INDEX UNIQUE SCAN              | SYS_C0059692            |      1 |       |       |          |
    |   3 |  TABLE ACCESS BY INDEX ROWID     | CO_FORM5A_TRANS         |      1 |       |       |          |
    |*  4 |   INDEX UNIQUE SCAN              | SYS_C0059692            |      1 |       |       |          |
    |   5 |   TABLE ACCESS BY INDEX ROWID    | CO_FORM5A_TRANS         |      1 |       |       |          |
    |*  6 |    INDEX UNIQUE SCAN             | SYS_C0059692            |      1 |       |       |          |
    |   7 |  SORT ORDER BY                   |                         |     12 |  2048 |  2048 | 2048  (0)|
    |   8 |   NESTED LOOPS                   |                         |        |       |       |          |
    |   9 |    NESTED LOOPS                  |                         |     12 |       |       |          |
    |  10 |     NESTED LOOPS OUTER           |                         |     10 |       |       |          |
    |  11 |      NESTED LOOPS OUTER          |                         |     10 |       |       |          |
    |* 12 |       TABLE ACCESS FULL          | CO_TRANS_MASTER         |     10 |       |       |          |
    |  13 |       TABLE ACCESS BY INDEX ROWID| SC_AGENT_EMP            |      1 |       |       |          |
    |* 14 |        INDEX UNIQUE SCAN         | PK_SC_AGENT_EMP         |      1 |       |       |          |
    |  15 |      TABLE ACCESS BY INDEX ROWID | PEOPLE_PROFILE          |      1 |       |       |          |
    |* 16 |       INDEX UNIQUE SCAN          | SYS_C0063100            |      1 |       |       |          |
    |* 17 |     INDEX RANGE SCAN             | IDX_PAY_DETAIL_TRANS_NO |      1 |       |       |          |
    |  18 |    TABLE ACCESS BY INDEX ROWID   | PAYMENT_DETAIL          |      1 |       |       |          |
    Predicate Information (identified by operation id):
       2 - access("F"."CO_TRANS_NO"=:B1)
       4 - access("F"."CO_TRANS_NO"=:B1)
       6 - access("F"."CO_TRANS_NO"=:B1)
      12 - filter((INTERNAL_FUNCTION("SYS_ALIAS_3"."CO_TRANS_ID") AND
                  TRIM(UPPER("SYS_ALIAS_3"."CO_NO"))='200101586W' AND ("SYS_ALIAS_3"."VOID_IND" IS NULL OR
                  "SYS_ALIAS_3"."VOID_IND"='N')))
      14 - access("SYS_ALIAS_3"."PROF_NO"="D"."PROF_NO" AND "SYS_ALIAS_3"."CREATED_BY"="D"."EMP_ID")
      16 - access("SYS_ALIAS_3"."CREATED_BY"="PP"."PP_ID")
      17 - access("SYS_ALIAS_3"."CO_TRANS_NO"="P"."TRANS_NO")
    Note
       - cardinality feedback used for this statement
       - Warning: basic plan statistics not available. These are only collected when:
           * hint 'gather_plan_statistics' is used for the statement or
           * parameter 'statistics_level' is set to 'ALL', at session or system level
    65 rows selected.

  • Firefox does not load the first time I click on it -- a script appears which ischrome://webvideodownloader/content/utils.js:131 -- when I stop this script running I can then load firefox -- how can I keep this script from running

    I can still load it with the script running or attempting to run in the background but it makes firefox tremendously slow. After I click on stop running the script then everything seems to be ok.
    how do I get the script not to run in the first place.

    In Firefox the use of the term chrome refers to the user interface and other elements that are not part of the web pages.
    See https://developer.mozilla.org/en/Chrome
    Your problems seems to be caused by the GreaseMonkey extension.<br />
    See [[Troubleshooting extensions and themes]]

  • Why won't this script run in task scheduler properly?

    Hello,
    I've created a script find all opened windows applications on the local computer.  The script creates an html outfile to report the opened windows and who is logged in. 
    When I run this script from the Powershell ISE or from Powershell command line it works fine.  When I schedule this script to run in windows Task Scheduler (either in Windows 7 or on Windows Server 2008) and I use 'Run only when user is logged in' the
    script again runs fine and reports in the html file the opened windows.
    But when I am logged into the server and I schedule this script to run in windows Task Scheduler (either in Windows 7 or on Windows Server 2008) and I use 'Run whether user is logged in or not' the script will run without error, it creates the html report,
    but it does not list the opened windows applications  That part of the report is missing.
    Why would this happen?  Do I need to change something in my script to make this script work whether or not someone is logged in?
    Here is the script:
    $a = "<style>"
    $a = $a + "BODY{background-color:peachpuff;}"
    $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
    $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
    $a = $a + "</style>"
    get-wmiobject Win32_ComputerSystem | ConvertTo-HTML -head $a -body "<H2>Logged in UserID</H2>" -property username | Out-File C:\Powershell_Scripts\Test.htm ; Get-Process |where {$_.mainWindowTItle} |Select-Object name,mainwindowtitle | ConvertTo-HTML -head $a -body "<H2>Open Applications</H2>" | Out-File C:\Powershell_Scripts\Test.htm -Append
    Thank you.

    Its hard to get a full grasp of the errors from task scheduler.  Try rewriting the Action portion of the Scheduled Task in a cmd prompt (with or without the elevated credentials). When the cmd line runs, the cmd host will convert to a black
    powershell host and you will be able to read the errors.
    C:\> powershell.exe -command { update-help }
    or
    C:\> powershell.exe -noprofile -file c:\scripts\dosomething.ps1
    I solved a similar problem this week.  When I ran my script from within powershell, all the required modules are normally present and the script ran fine.  It was pretty clear which module I forgot to load at the beginning of the script once I could
    watch it from start to finish
    or, your script could dump the Error logs to a text file.
    $Error | select * | out-file c:\errors.txt
    Not the point.  Look at the task scheduler history first.  If the history is not enabled enable it. If it shows no error code then the script ran successfully but had an internal error.
    There is only one place that an error can occur. This will trap it and set the exit code which will be visible in the event history:
    $a=@'
    <style>
    BODY{
    background-color:peachpuff;
    TABLE{
    border-width: 1px;
    border-style: solid;
    border-color: black;
    border-collapse: collapse;
    TH{
    border-width: 1px;
    padding: 0px;
    border-style: solid;
    border-color: black;
    background-color:thistle;
    TD{
    border-width: 1px;
    padding: 0px;
    border-style: solid;
    border-color: black;
    background-color:PaleGoldenrod
    </style>
    Try{
    $username=get-wmiobject Win32_ComputerSystem |%{$_.username}
    $precontent="<H2>Logged in User: $username</H2><br/><H2>Open Applications</H2><br/>"
    $html=Get-Process |where {$_.mainWindowTItle} -ErorAction Stop|
    Select-Object name,mainwindowtitle |
    ConvertTo-HTML -cssuri c:\scripts\style.css -preContent $precontent -body "<body bgcolor='peachpuff'/>"
    $html | Out-File C:\Scripts\Test.htm -ErrorAction Stop
    Catch{
    exit 99
    This is really an exercise in how to manage background tasks.
    Using an error log is good assuming it is not the file system that you are having an issue with
    ¯\_(ツ)_/¯

  • Can this script be converted to a UNIX command for ARD?

    First I'd like to thank "Neil" again for providing the script below:
    set the_versions to (do shell script "mdls -name kMDItemVersion /Applications/Microsoft\\ Office\\ 2011/Microsoft\\ Excel.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Reader.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Safari.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Google\\ Chrome.app")
    set the_versions to the_versions & return & (do shell script "mdls -name kMDItemVersion /Applications/Adobe\\ Acrobat\\ X\\ Pro/Adobe\\ Acrobat\\ Pro.app")
    set the_versions to the_versions & return & (do shell script "SW_vers")
    Output for this script yields exactly what I requested in the thread.  Ex:
    "kMDItemVersion = \"14.4.1\"
    kMDItemVersion = \"11.0.07\"
    kMDItemVersion = \"7.0.4\"
    kMDItemVersion = \"35.0.1916.114\"
    kMDItemVersion = \"10.1.10\"
    ProductName:          Mac OS X
    ProductVersion:          10.9.3
    BuildVersion:          13D65"
    I'd like to be able to run this command (or a variation) in Apple Remote Desktop (ARD) remotely, and as a UNIX command in order to generate a similar ARD report if possible.  Even better, I'd like the report to include the Application name and I'd like it to not to halt if an Application isn't present. My guess is that functionality like this for ARD would help a LOT of ARD Administrators because it would seem that the only way to do anything similar is to derive the metadata piecemeal (machine by machine) or end up having to wade through a ton of unwanted content using a full System Report...  Thanks.

    Forum software NOW prevents posting complete shell scripts. You'll have to piece together the code.
    First build an array of the applications that you are looking for in this form. Note; I truncated the applications.
    apps=( "/Applications/Microsoft Office 2011/Microsoft Excel.app" "/Applications/Adobe Reader.app" "/Applications/Safari.app" )
    Next loop thru the array
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done
    If you want to create a report then change the above loop to the following
    for i in "${apps[@]}"; do
         printf "%s: %s\n" "$i" "$(mdls -name kMDItemVersion "$i")"
    done > app_report.txt
    sw_vers >> app_report.txt
    Message was edited by: Mark Jalbert

  • What actions should I take after seeing this script running @ startup today?  "ARDAgent\" to do shell script \"say quack\"'"

    STEPS TAKEN:
    Logged into Mac for first time today.
    Noticed a new individual file in Directory Library ".a.text". (Settings disply hidden system file/folders)
    File contained only the text "--purge".
    Meta data on file directed source to bash process run @ startup.
    Attached History command output.
    Disabled ARD for now.
    SETTINGS:
    All Sharing was Off. 
    Firewall was set to Block All Incoming Connections.
    Home network with no other active users at time.
    Upgraded to Mavs 10.9.2 last night.
    Do not use any file sharing or remote access into Mac.
    The SSH host attempts were my old Amazon EC2 instances.
    Appears to start bitcoin app and few databases.
    Worth noting I've been having tons of various issues last few months.
    Thanks.
    <POB> My CommandLine prompts. XXXX on locals.
    XXXXXX:~ Administrator$ export HISTTIMEFORMAT='%F %T '
    XXXXXX:~ Administrator$ history
    <POB> OUTPUT
        1  2014-02-27 17:23:35 rm -rf ~/.Trash/*
        2  2014-02-27 17:23:35 cd
        3  2014-02-27 17:23:35 .
        4  2014-02-27 17:23:35 ./
        5  2014-02-27 17:23:35 cd
        6  2014-02-27 17:23:35 lib
        7  2014-02-27 17:23:35 cd/
        8  2014-02-27 17:23:35  
        9  2014-02-27 17:23:35 ls
       10  2014-02-27 17:23:35 cd downloads
       11  2014-02-27 17:23:35 ls downloads
       12  2014-02-27 17:23:35 ls Downloads
       13  2014-02-27 17:23:35 find / -nouser -ls
       14  2014-02-27 17:23:35 find /~nouser -ls
       15  2014-02-27 17:23:35 ls
       16  2014-02-27 17:23:35 ls /library
       17  2014-02-27 17:23:35 /LaunchAgents
       18  2014-02-27 17:23:35 ls /LaunchAgents
       19  2014-02-27 17:23:35 ls /Automator
       20  2014-02-27 17:23:35 ls /KeyChains
       21  2014-02-27 17:23:35 sha
       22  2014-02-27 17:23:35 toop
       23  2014-02-27 17:23:35 top
       24  2014-02-27 17:23:35 dscl . -list /Users UniqueID
       25  2014-02-27 17:23:35 $ dscl -plist . readall /users
       26  2014-02-27 17:23:35 $ dscl . readall /users
       27  2014-02-27 17:23:35 $ dscl . readall /503
       28  2014-02-27 17:23:35 ls/Users
       29  2014-02-27 17:23:35 - dscacheutil -q group
       30  2014-02-27 17:23:35 cd
       31  2014-02-27 17:23:35 cd.
       32  2014-02-27 17:23:35 cd .
       33  2014-02-27 17:23:35 ls
       34  2014-02-27 17:23:35 ifconfig
       35  2014-02-27 17:23:35 ifconfig
       36  2014-02-27 17:23:35 ifconfig
       37  2014-02-27 17:23:35 config helper
       38  2014-02-27 17:23:35 config
       39  2014-02-27 17:23:35 ls
       40  2014-02-27 17:23:35 ssh awsXXXX
       41  2014-02-27 17:23:35 defaults write com.google.Keystone.Agent checkInterval 0
       42  2014-02-27 17:23:35 exit
       43  2014-02-27 17:23:35 exit
       44  2014-02-27 17:23:35 /var/log/secure.log
       45  2014-02-27 17:23:35 ssh awsXXXXXX
       46  2014-02-27 17:23:35 exit
       47  2014-02-27 17:23:35 kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
       48  2014-02-27 17:23:35 sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfi x|x)/{print $3}'
       49  2014-02-27 17:23:35 launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
       50  2014-02-27 17:23:35 ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
       51  2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
       52  2014-02-27 17:23:35 top
       53  2014-02-27 17:23:35 ps
       54  2014-02-27 17:23:35 top
       55  2014-02-27 17:23:35 top
       56  2014-02-27 17:23:35 top
       57  2014-02-27 17:23:35 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -agent -stop
       58  2014-02-27 17:23:35 man who
       59  2014-02-27 17:23:35 who
       60  2014-02-27 17:23:35 whoami
       61  2014-02-27 17:23:35 ps -aux
       62  2014-02-27 17:23:35 ps
       63  2014-02-27 17:23:35 top
       64  2014-02-27 17:23:35 ps -eo pid,etime
       65  2014-02-27 17:23:35 top
       66  ??ps aux | less
       67  2014-02-27 17:23:35 pstree
       68  2014-02-27 17:23:35 ps -eo euser,ruser,suser,fuser,f,comm,label
       69  2014-02-27 17:23:35 pgrep
       70  2014-02-27 17:23:35 pgrep remote
       71  2014-02-27 17:23:35 apt-get install htop
       72  2014-02-27 17:23:35 htop
       73  2014-02-27 17:23:35 netstat -tulpn | grep :80
       74  2014-02-27 17:23:35 ls -l /proc/635/exe
       75  2014-02-27 17:23:35 swapon  -a
       76  2014-02-27 17:23:35 ma ps
       77  2014-02-27 17:23:35 man ps
       78  2014-02-27 17:23:35 man ps
       79  2014-02-27 17:23:35 ps -a
       80  2014-02-27 17:23:35 ps -A
       81  2014-02-27 17:23:35 whoami
       82  2014-02-27 17:23:35 ps -f
       83  2014-02-27 17:23:35 ps -G
       84  2014-02-27 17:23:35 ps -g
       85  2014-02-27 17:23:35 ps -T
       86  2014-02-27 17:23:35 ps-t
       87  2014-02-27 17:23:35 ps -v
       88  2014-02-27 17:23:35 ps start
       89  2014-02-27 17:23:35 top
       90  2014-02-27 17:23:35 ps
       91  2014-02-27 17:23:35 users
       92  2014-02-27 17:23:35 last
       93  2014-02-27 17:23:35 ls /var/log/wtmp*
       94  2014-02-27 17:23:35 last -f /var/log/wtmp.1
       95  2014-02-27 17:23:35 last -f /var/log/wtmp.0
       96  2014-02-27 17:23:35 ~/.bash_history
       97  2014-02-27 17:23:35 cat ~/.bash_history
       98  2014-02-27 17:23:35 ls /Automator
       99  2014-02-27 17:23:35 cat Automator
      100  2014-02-27 17:23:35 open ~/.bash_history
      101  2014-02-27 17:23:35 dscl . readall /users
      102  2014-02-27 17:23:35 ls/library
      103  2014-02-27 17:23:35 cd/library
      104  2014-02-27 17:23:35 cd..
      105  2014-02-27 17:23:35 cd
      106  2014-02-27 17:23:35 ls
      107  2014-02-27 17:23:35 cd Library
      108  2014-02-27 17:23:35 cd/Library
      109  2014-02-27 17:23:35 ls/Automator
      110  2014-02-27 17:23:35 toop
      111  2014-02-27 17:23:35 top
      112  2014-02-27 17:23:35 ifconfig
      113  2014-02-27 17:23:35 config helper
      114  2014-02-27 17:23:35 config
      115  2014-02-27 17:23:35 top
      116  2014-02-27 17:23:35 ps -a
      117  2014-02-27 17:23:35 ps -A
      118  2014-02-27 17:23:35 ps -aux
      119  2014-02-27 17:23:35 ps
      120  2014-02-27 17:23:35 getprocessforpid(677)
      121  2014-02-27 17:23:35 man ps
      122  2014-02-27 17:23:35 ps -U
      123  2014-02-27 17:23:35 ps -u
      124  2014-02-27 17:23:35 GetProcessPID(494)
      125  2014-02-27 17:23:35 GetProcessPID() q
      126  2014-02-27 17:23:35 GetProcessPID494
      127  2014-02-27 17:23:35 GetProcessPID 494
      128  2014-02-27 17:23:35 netstat -b
      129  2014-02-27 17:23:35 top
      130  2014-02-27 17:23:35 top
      131  2014-02-27 17:23:35 top
      132  2014-02-27 17:23:35 netstat -a
      133  2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
      134  2014-02-27 17:23:35 top
      135  2014-02-27 17:23:35 netstat -a
      136  2014-02-27 17:23:35 top
      137  2014-02-27 17:23:35 top
      138  2014-02-27 17:23:35 netstat -a
      139  2014-02-27 17:23:35 ps -aux
      140  2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
      141  2014-02-27 17:23:35 ps -aux
      142  2014-02-27 17:23:35 ps -A
      143  2014-02-27 17:23:35 ps -A
      144  2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
      145  2014-02-27 17:23:35 netstat -a
      146  2014-02-27 17:23:35 top
      147  2014-02-27 17:23:35 top
      148  2014-02-27 17:23:35 netstat -a
      149  2014-02-27 17:23:35 netstat -a
      150  2014-02-27 17:23:35 netstat -a
      151  2014-02-27 17:23:35 q
      152  2014-02-27 17:23:35 top
      153  2014-02-27 17:23:35 top
      154  2014-02-27 17:23:35 sudo tmutil disablelocal
      155  2014-02-27 17:23:35 exit
      156  2014-02-27 17:23:35 top
      157  2014-02-27 17:23:35 top
      158  2014-02-27 17:23:35 top
      159  2014-02-27 17:23:35 top
      160  2014-02-27 17:23:35 top
      161  2014-02-27 17:23:35 top
      162  2014-02-27 17:23:35 neststat -n
      163  2014-02-27 17:23:35 netstat -n
      164  2014-02-27 17:23:35 netstat -n
      165  2014-02-27 17:23:35 ls
      166  2014-02-27 17:23:35 lsaf
      167  2014-02-27 17:23:35 cd ..
      168  2014-02-27 17:23:35 cd ..
      169  2014-02-27 17:23:35 cd ..
      170  2014-02-27 17:23:35 cd ..
      171  2014-02-27 17:23:35 ls
      172  2014-02-27 17:23:35 top
      173  2014-02-27 17:23:35 netstat
      174  2014-02-27 17:23:35 dscl . list/users
      175  2014-02-27 17:23:35 cd ~
      176  2014-02-27 17:23:35 dscl . list/users
      177  2014-02-27 17:23:35 dscl . list /users
      178  2014-02-27 17:23:35 dscl . list /groups
      179  2014-02-27 17:23:35 dscl . readall /users
      180  2014-02-27 17:23:35 netstat
      181  2014-02-27 17:23:35 netstat
      182  2014-02-27 17:23:35 whoami
      183  2014-02-27 17:23:35 ls
      184  2014-02-27 17:23:35 cd ..
      185  2014-02-27 17:23:35 cd ..
      186  2014-02-27 17:23:35 cd .
      187  2014-02-27 17:23:35 cd ..
      188  2014-02-27 17:23:35 ls
      189  2014-02-27 17:23:35 tree
      190  2014-02-27 17:23:35 cd Users
      191  2014-02-27 17:23:35 ls
      192  2014-02-27 17:23:35 cd Administrator
      193  2014-02-27 17:23:35 ls
      194  2014-02-27 17:23:35 cd ..
      195  2014-02-27 17:23:35 cd ..
      196  2014-02-27 17:23:35 cd ..
      197  2014-02-27 17:23:35 ls
      198  2014-02-27 17:23:35 cd Users
      199  2014-02-27 17:23:35 ls
      200  2014-02-27 17:23:35 cd Adminstrator
      201  2014-02-27 17:23:35 cd Administrator
      202  2014-02-27 17:23:35 ls
      203  2014-02-27 17:23:35 cd Downloads
      204  2014-02-27 17:23:35 ls
      205  2014-02-27 17:23:35 exit
      206  2014-02-27 17:23:35 whoami
      207  2014-02-27 17:23:35 ls
      208  2014-02-27 17:23:35 ls
      209  2014-02-27 17:23:35 cd Library
      210  2014-02-27 17:23:35 ls
      211  2014-02-27 17:23:35 cd Application Support
      212  2014-02-27 17:23:35 ls
      213  2014-02-27 17:23:35 cd ..
      214  2014-02-27 17:23:35 ls
      215  2014-02-27 17:23:35 cd ..
      216  2014-02-27 17:23:35 ls
      217  2014-02-27 17:23:35 cd pXXXXXXXX
      218  2014-02-27 17:23:35 ls
      219  2014-02-27 17:23:35 cd Library
      220  2014-02-27 17:23:35 whoami
      221  2014-02-27 17:23:35 sudo - Adminsitrator
      222  2014-02-27 17:23:35 ls
      223  2014-02-27 17:23:35 ls
      224  2014-02-27 17:23:35 sudo -
      225  2014-02-27 17:23:35 more /etc/hosts
      226  2014-02-27 17:23:35 scc ver
      227  2014-02-27 17:23:35 scc numprofiles
      228  2014-02-27 17:23:35 netstat -an |find /i "listening"
      229  2014-02-27 17:23:35 netstat
      230  2014-02-27 17:23:35 top
      231  2014-02-27 17:23:35 kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
      232  2014-02-27 17:23:35 sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfi x|x)/{print $3}'
      233  2014-02-27 17:23:35 launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
      234  2014-02-27 17:23:35 ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
      235  2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
      236  2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
      237  2014-02-27 17:23:35 top
      238  2014-02-27 17:23:35 dscacheutil -flushcache
      239  2014-02-27 17:23:35 sudo killall -HUP mDNSResponder
      240  2014-02-27 17:23:35 top
      241  2014-02-27 17:23:35 ./bitcoin-qt
      242  2014-02-27 17:23:35 cd $home
      243  2014-02-27 17:23:35 ls
      244  2014-02-27 17:23:35 cd ..
      245  2014-02-27 17:23:35 cd ..
      246  2014-02-27 17:23:35 cd ..
      247  2014-02-27 17:23:35 ls
      248  2014-02-27 17:23:35 cd Applications
      249  2014-02-27 17:23:35 ls
      250  2014-02-27 17:23:35 ./bitcoin-qt.app
      251  2014-02-27 17:23:35 top
      252  2014-02-27 17:23:35 ps -420
      253  2014-02-27 17:23:35 ps -9541
      254  2014-02-27 17:23:35 top
      255  2014-02-27 17:23:35 /Applications/Postgres93.app/Contents/MacOS/bin/psql ; exit;
      256  2014-02-27 17:23:35 /Applications/Postgres93.app/Contents/MacOS/bin/psql ; exit;
      257  2014-02-27 17:23:35 top
      258  2014-02-27 17:23:35 ps -a (2077)
      259  2014-02-27 17:23:35 ps -a2077
      260  2014-02-27 17:23:35 sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
      261  2014-02-27 17:23:35 top
      262  2014-02-27 17:23:35 on run
      263  2014-02-27 17:23:35 do shell script "osascript -e 'tell app \"ARDAgent\" to do shell script \"say quack\"'"
      264  2014-02-27 17:23:35 end run
      265  2014-02-27 17:23:35 ls -ls /System/Library/Filesystems/AppleShare/check_afp.app/Contents/MacOS/check_afp 2
      266  2014-02-27 17:23:35 sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
    <POB> END

    I'm extremely unclear on exactly what's happening. You mention something about a script running at startup in your subject, but then never mention that again. What's going on there? Where are you finding that script?
    That script would suggest someone playing a joke on you, by making your computer say "quack" every time you start up. That's not indicative of malware.
    On the other hand, a hidden file as you describe is a common malware trick, though I'm not sure why it would only contain "--purge" - that isn't a complete command, as far as I know, and the purge command isn't likely to be used for malicious purposes anyway.
    Still, you do have some indication that you're using Bitcoin-related apps, and there has been some Bitcoin malware that has appeared recently. See:
    New CoinThief malware discovered
    Note that the post on MacRumors that you refer to in your second post is almost six years old, and references a vulnerability that was closed later in 2008. It's completely irrelevant to any modern system.

  • HP dv7t CTO Corei7, Win7 . . . can this notebook run TRIM on SSD

    I have a new HP dv7t CTO Notebook, Core-i7, 64bit Win7, 128GB Crucial SSD-SATA III.  I also have a different, smaller SSD installed in the 2nd drive bay for data storage.
    I have attempted to enable TRIM for the 128GB SSD with no success.
    QUESTION:  Can this notebook support TRIM ?
    QUESTION:  Could the trouble be that I have a 2nd SSD installed ?
    Thanks for your help.
    This question was solved.
    View Solution.

    You are welcome
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • What can I do if script runs faster than network?

    I've written an inter-application script that moves from InDesign, where it starts in AppleScript, to Photoshop, where the AppleScript runs a JavaScript to perform various tasks.
    It runs beautifully on my laptop at home where I do my development. Yesterday, using myself as guinea pig, I tried it in the office.
    On about the third run, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome as seeing an AppleScript inviting the user to open the Script Editor and fix a script).
    The error message was that app.bringToFront(); was not a valid function.
    This was true in InDesign, which has a different activation function, and I realised that even though my AppleScript had called for Photoshop to activate I was still in InDesign.
    The JavaScript app.bringToFront had been called as well because I had enclosed my code in the Tranberry template.
    So I pressed the stop button on ExtendScript, went back to InDesign and ran the script again. This time it worked as usual.
    Occasionally on our network we spend some time beachball-watching as some communication goes on in the background. So I imagine that the time the error was thrown was on one of those network slowdowns.
    The switch from InDesign to Photoshop did not happen fast enough, but the script ran on and issued a Photoshop JavaScript command while I was still in InDesign.
    In AppleScript such unfortunate communication with users can be avoided using "try... on error" blocks.
    Would there be any error-handling equivalent in JavaScript which would enable me to avoid them being thrown into ExtendScript Toolbox and would give them a friendly message apologising, explaining what had happened and inviting them to try again?

    Also AppleScript has a default timeout of 60 seconds before it wants to execute its next command. If in you case the opening and processing of the image in JavaScript takes any longer than this wrap your call out to Photoshop in a timeout block thus extending the alloted time to whatever you think may be suitable? Like so:
    tell application "Adobe InDesign CS2"
    activate
    tell active document
    set This_Image to image 1 of item 1 of rectangle 1
    set Image_Path to file path of item link of (item 1 of This_Image) as alias
    my Call_Photoshop(Image_Path)
    delay 1 -- same as sleep(1000);
    update item link of (item 1 of This_Image)
    end tell
    end tell
    on Call_Photoshop(Image_Path)
    with timeout of 180 seconds
    tell application "Adobe Photoshop CS2"
    activate
    set display dialogs to never
    open Image_Path
    set ID_Image to the current document
    tell ID_Image
    -- do my stuff
    close with saving
    end tell
    end tell
    end timeout
    end Call_Photoshop

  • Can this train run any faster...?

    Hello virtual suggestion givers!
    Everything's working pretty ok when I enter small values while instantiating Train class, the thing is that when I enter large values about lets say
    new Train(5,96,5,10) its giving me IndexOutOfbounds exception or acting weirdly.
    I think there might be some problem in my Train class...
    should ArrayList be used instead of LinkedList?
    what's the flaw in the code?
    Is there anything redundant in this code?
    I had lot's of time this time in my hand, so I didn't have to come in here frequently.
    ==========================================
    concepts? inheritance? homework? don't understand?
    ==========================================
    import type.lang.*;
    import java.util.*;
    public class Train {
        public Train(int numSaloonCars, int nSeats, int numSleepingCars,
                     int nBerths) {
            if((numSaloonCars + numSleepingCars) <= 0
                    || (nSeats + nBerths) <= 0) {
                throw new IllegalArgumentException("input valid data!");
            } else {
                for(int i = 0; i < numSaloonCars; i++) {
                    atotal.add(new SaloonCar(nSeats));
                for(int m = 0; m < numSleepingCars; m++) {
                    btotal.add(new SleepingCar(nBerths));
        public String reserveSpace(String spaceType, int numP) {
            StringBuffer buf = new StringBuffer();
            if(( !spaceType.equals(BERTH) && !spaceType.equals(SEAT))
                    || (numP <= 0)) {
                throw new IllegalArgumentException("enter proper data!");
            } else if(spaceType.equals(SEAT)) {
                List train = new LinkedList(atotal);
                for(int i = 0; i < train.size(); i++) {
                    if(numP == ((SaloonCar) train.get(i)).getAvailableSpace()) {
                        buf.append(
                            ((SaloonCar) train.get(i)).addPassengers(numP));
                    } else if(numP
                              < ((SaloonCar) train.get(i)).getAvailableSpace()) {
                        buf.append(((RailCar) train.get(i)).addPassengers(numP));
                    } else {
                        throw new TrainFullException("Train's Full!");
            } else if(spaceType.equals(BERTH)) {
                List train2 = new LinkedList(btotal);
                for(int m = 0; m < train2.size(); m++) {
                    if(numP == ((SleepingCar) train2.get(
                            m)).getAvailableSpace()) {
                        buf.append(
                            ((SleepingCar) train2.get(m)).addPassengers(numP));
                    } else if(numP
                              < ((SleepingCar) train2.get(
                                  m)).getAvailableSpace()) {
                        buf.append(
                            ((SleepingCar) train2.get(m)).addPassengers(numP));
                    } else {
                        throw new TrainFullException("Train's Full!");
            return buf.toString();
        public String toString() {
            StringBuffer buf   = new StringBuffer("Train [");
            List         list  = new LinkedList(atotal);
            List         list2 = new LinkedList(btotal);
            for(int i = 0; i < list.size(); i++) {
                buf.append(" SaloonCar[ ");
                buf.append(((SaloonCar) list.get(i)).toString() + " ]");
            for(int m = 0; m < list2.size(); m++) {
                buf.append(" SleepingCar[ ");
                buf.append(((SleepingCar) list2.get(m)).toString() + " ]");
            return buf.toString();
        private List               atotal = new LinkedList();
        private List               btotal = new LinkedList();
        public static final String BERTH  = "berth";
        public static final String SEAT   = "seat";
    import java.lang.*;
    import java.util.*;
    public abstract class RailCar {
        public RailCar(Collection s) {
            this.s = s;
        public abstract String addPassengers(int p);
        public String allocateAvailableSpace(int p) {
            StringBuffer buf   = new StringBuffer();
            int          inP   = p;
            int          total = 0;
            List         list  = new LinkedList(s);
            for(int i = 0; i < list.size(); i++) {
                if(inP > ((OccupiableSpace) list.get(i)).getMaximumOccupants())
                //check maximumoccupants allowed
                    throw new IllegalArgumentException(
                        "shold be = or < MAXOccupants of seat");
                } else if(isFull()) {
                    //check for total available space in the railcar
                    throw new CarFullException("Car is full!");
            ++number;    // i replicator
                ((OccupiableSpace) list.get(number-1)).addOccupants(inP);
                buf.append(((OccupiableSpace) list.get(number-1)).getId() + " ,");
            return buf.toString();
        public int getAvailableSpace() {
            int  total = 0;
            List list  = new LinkedList(s);
            for(int i = 0; i < list.size(); i++) {
                total += (((OccupiableSpace) list.get(i)).getVacantSpace());
            return total;
        public abstract int getMaximumOccupancy();
        public boolean hasSpace() {
            if(getAvailableSpace() == 0) {
                return false;
            } else {
                return true;
        public boolean isFull() {
            if(getAvailableSpace() == 0) {
                return true;
            } else {
                return false;
        public String toString() {
            StringBuffer buf      = new StringBuffer();
            String       tostring = "";
            List         list     = new ArrayList(s);
            for(int i = 0; i < list.size(); i++) {
                if(((OccupiableSpace) list.get(i)) instanceof Seat) {
                    tostring +=
                        "SaloonCar ["
                        + buf.append(
                            "Seat" + "[ " + ((Seat) list.get(i)).getId() + " = "
                            + ((Seat) list.get(i)).getOccupants() + "] ") + " ]";
                } else if(((OccupiableSpace) list.get(i)) instanceof Berth) {
                    tostring +=
                        "SleepingCar"
                        + buf.append(
                            "Berth" + "[ " + ((Berth) list.get(i)).getId()
                            + " = " + ((Berth) list.get(i)).getOccupants()
                            + "] ") + " ]";
            return buf.toString();
        public Collection s;
        public static int number = 0;
    import java.util.*;
    public class SaloonCar extends RailCar {
        public static final int MAX_SEATS = 96;
        public SaloonCar(int numSeats) {
            super(new LinkedList());
            if( !((numSeats <= 0) || (numSeats > MAX_SEATS))) {
                for(int i = 0; i <= numSeats - 1; i++) {
                    s.add(new Seat());
            } else {
                throw new IllegalArgumentException("should be >= 0 & < MAX");
        public String addPassengers(int p) {
            StringBuffer buf   = new StringBuffer();
            int          total = 0;
            List         bag   = new LinkedList(s);
            if(p <= 0) {
                throw new IllegalArgumentException("should be >= 0");
            } else if(p > getAvailableSpace()) {
                throw new CarFullException("car's full");
            } else {
                for(int i = 0; i < p; i++) {
                    buf.append(allocateAvailableSpace(Seat.MAX_OCCUPANTS));
            return buf.toString();
        public int getMaximumOccupancy() {
            return MAX_SEATS;
    import java.util.*;
    public class SleepingCar extends RailCar {
        public static final int MAX_BERTHS = 16;
        public final int        ONE        = 1;
        public SleepingCar(int numSeats) {
            super(new LinkedList());
            if( !((numSeats <= 0) || (numSeats > MAX_BERTHS))) {
                for(int i = 0; i < numSeats; i++) {
                    s.add(new Berth());
            } else {
                throw new IllegalArgumentException("should be >= 0 & < MAX");
        public String addPassengers(int p) {
            StringBuffer buf   = new StringBuffer();
            int          total = 0;
            List         bag   = new LinkedList(s);
            if(p <= 0) {
                throw new IllegalArgumentException("should be >= 0");
            } else if(p > getAvailableSpace()) {
                throw new CarFullException("car's full");
            } else {
                int    found = 0;
                double check = p;
                List   list  = new LinkedList(s);
                for(int i = 0; i < list.size(); i++) {
                    if(list.get(i) instanceof Berth) {
                        if(check / 2 != 0) {
                            int num = ((Berth) list.get(i)).getOccupants();
                            if((num == 0) || (num == 1)) {
                                found = i;
                if(check / 2 == 0) {
                    for(int m = 0; m < check / 2; m++) {
                        buf.append(allocateAvailableSpace(Berth.MAX_OCCUPANTS));
                } else if(check / 2 != 0) {
                    ((Berth) list.get(found)).addOccupants(ONE);
                    buf.append(((Berth) list.get(found)).getId() + " ,");
                    check--;
                    for(int z = 0; z < check / 2; z++) {
                        buf.append(allocateAvailableSpace(Berth.MAX_OCCUPANTS));
            return buf.toString();
        public int getMaximumOccupancy() {
            return MAX_BERTHS;
    import type.lang.* ;
    import java.lang.* ;
    public abstract class OccupiableSpace
      public OccupiableSpace(String code)
        idcode = code ;
      public void addOccupants(int num)
        if (num > getMaximumOccupants() || num < 0)
          throw new IllegalArgumentException() ;
        else
          numOccupants += num ;
      public boolean equals(Object o)
        if (o ==null) return false;
        if (getClass() != o.getClass()) return false;
        OccupiableSpace oin = (OccupiableSpace) o;
        return idcode.equals(oin.getId());
      public String getId()
        return idcode ;
      public abstract int getMaximumOccupants() ;
      public int getOccupants()
        return numOccupants ;
      public int getVacantSpace()
        int left = getMaximumOccupants() - getOccupants() ;
        return left ;
      public boolean isOccupied()
       if (getVacantSpace() == 0)
       return true;
       else
       return false;
      public void removeOccupants(int o)
        if (o > getOccupants() || o <= 0)
          throw new IllegalArgumentException() ;
        else
          numOccupants -= o ;
      public String toString()
        String ans = getClass().getName() + "[ id=" + idcode + ", occupants=" +
            numOccupants + " ]" ;
        return ans ;
      public int numOccupants ;
      public String idcode = "" ;
    public class Berth
        extends OccupiableSpace
      public Berth()
        super("B-"+number);
        number++ ;
      public int getMaximumOccupants()
        return MAX_OCCUPANTS ;
      public static final int MAX_OCCUPANTS = 2 ;
      private static int number = 1 ;
    public class Seat
        extends OccupiableSpace
      public Seat()
        super("S-" + number) ;
        number++ ;
      public int getMaximumOccupants()
        return MAX_OCCUPANTS ;
      public static final int MAX_OCCUPANTS = 1 ;
      private static int number = 1;
    public class TrainFullException extends RuntimeException {
       public TrainFullException() {
          super();
       public TrainFullException(String msg) {
          super(msg);
    public class CarFullException extends RuntimeException {
       public CarFullException() {
          super();
       public CarFullException(String msg) {
          super(msg);

    what could be wrong in this part?
    using System.out ... in a class file !?
      if(( !spaceType.equals(BERTH) && !spaceType.equals(SEAT))
                    || (numP <= 0)) {
                throw new IllegalArgumentException("enter proper data!");
            } else if(spaceType.equals(SEAT)) {
                List train = new LinkedList(atotal);
                for(int i = 0; i < train.size(); i++) {
                    if(numP == ((SaloonCar) train.get(i)).getAvailableSpace()) {
                        buf.append(
                            ((SaloonCar) train.get(i)).addPassengers(numP));
                    } else if(numP
                              < ((SaloonCar) train.get(i)).getAvailableSpace()) {
                        buf.append(((RailCar) train.get(i)).addPassengers(numP));
                    } else {
                        throw new TrainFullException("Train's Full!");
                }ahh... may be i am exhaus...

  • How Can I make this query run faster

    SQL> EXPLAIN PLAN FOR SELECT a.txid, a.methodid, a.serviceid, a.nodename, a.env, a.ts, a.te, a.resultcode, a.resultmessage FROM g2log.txmaster a,
    2 g2log.txlookup b WHERE b.key = 'sbcgnfttxuniquedslamportid' AND b.value = 'MTC3LS733001-1-1-2-13' AND a.txid = b.txid ORDER BY ts desc;
    Explained.
    Elapsed: 00:00:00.01
    SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 3790334907
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
    | 0 | SELECT STATEMENT | | 578 | 108K| 1267 (1)| 00:00:16 | | |
    | 1 | PX COORDINATOR | | | | | | | |
    | 2 | PX SEND QC (ORDER) | :TQ10001 | 578 | 108K| 1267 (1)| 00:00:16 | | |
    | 3 | SORT ORDER BY | | 578 | 108K| 1267 (1)| 00:00:16 | | |
    | 4 | PX RECEIVE | | | | | | | |
    | 5 | PX SEND RANGE | :TQ10000 | | | | | | |
    | 6 | NESTED LOOPS | | | | | | | |
    | 7 | NESTED LOOPS | | 578 | 108K| 1266 (1)| 00:00:16 | | |
    | 8 | PX PARTITION RANGE ALL | | 578 | 44506 | 109 (0)| 00:00:02 | 1 | 27 |
    | 9 | TABLE ACCESS BY LOCAL INDEX ROWID| TXLOOKUP | 578 | 44506 | 109 (0)| 00:00:02 | 1 | 27 |
    |* 10 | INDEX RANGE SCAN | TX_KEY_VAL | 578 | | 58 (0)| 00:00:01 | 1 | 27 |
    |* 11 | INDEX UNIQUE SCAN | TXMASTER_TXID_PK | 1 | | 1 (0)| 00:00:01 | | |
    | 12 | TABLE ACCESS BY GLOBAL INDEX ROWID | TXMASTER | 1 | 116 | 2 (0)| 00:00:01 | ROWID | ROWID |
    Predicate Information (identified by operation id):
    10 - access("B"."KEY"='sbcgnfttxuniquedslamportid' AND "B"."VALUE"='MTC3LS733001-1-1-2-13')
    11 - access("A"."TXID"="B"."TXID")
    25 rows selected.
    I have gathered stats on the two tables as well
    SQL> select count(*) from g2log.txmaster;
    COUNT(*)
    88812
    SQL> select count(*) from g2log.txlookup;
    COUNT(*)
    228883

    I bellieve that it is disabled as well:
    SQL> show parameter parallel
    NAME TYPE VALUE
    fast_start_parallel_rollback string LOW
    parallel_adaptive_multi_user boolean TRUE
    parallel_automatic_tuning boolean FALSE
    parallel_degree_limit string CPU
    parallel_degree_policy string MANUAL
    parallel_execution_message_size integer 16384
    parallel_force_local boolean FALSE
    parallel_instance_group string
    parallel_io_cap_enabled boolean FALSE
    parallel_max_servers integer 985
    parallel_min_percent integer 0
    parallel_min_servers integer 0
    parallel_min_time_threshold string AUTO
    parallel_server boolean TRUE
    parallel_server_instances integer 2
    parallel_servers_target integer 1024
    parallel_threads_per_cpu integer 2
    recovery_parallelism integer 0

  • Can this laptop run After effects well?

    Hello,
    I have acer aspire 5742g laptop, i5 480m(max 2.93ghz), Geforce 540m, 6gb ram and slow 5400rpm HDD
    After effects runs quite slow if I do something more advanced so I think its time for upgrade.
    I found this quite cheap for specs it provides
    Asus N56JR
    Intel® Core™ i7-4700HQ Processor (6 MB Cache, 2.4 Ghz)
    8 GB DDR3 - 1600 MHz
    GeForce GTX 760M GDDR5 2GB
    1TB HDD 5400RPM(I will buy ssd later)
    Notebooks & Ultrabooks - N56JR - ASUS
    Will this laptop be able to handle after effects good enough?

    That would be better but you could use a bunch more ram. After Effects is a professional app with tons of capabilities. The more complex the project the higher the demands are on the system. If you want AE to run quickly when you work on extremely complex projects and you want to run on a laptop then you need a professional workstation grade laptop not a consumer model. Dell and HP make them, Apple makes the MacBookPro R which becomes a workstation grade laptop when you max it out. Simply put, buy the most powerful laptop with the most memory you can afford, make sure the company provides excellent customer service and get a long warrantee - or take your chances with a consumer grade laptop.

  • Can MatLab Script run in multi-cores?

    Whe LabVIEW runs a Matlab code through 'Matlab Script', does the 'Matlab Script' part run in a single-thread mode or multi-thread mode? It uses the ActiveX to communicate with Matlab so I am assuming it is single-thread?
    I have a LabVIEW code which has to call a .m file. I am wondering whether the program performance will be greatly improved if I convert the .m file into a .dll to eliminate the need to activate the Matlab server very time. 
    Solved!
    Go to Solution.

    You are correct in your supposition that the MATLAB Script nodes run single-threaded. Only one script will be able to run at a time.
    You may be able to improve performance by building it into a DLL, but you'd have to test it on your machine to know by how much. I don't really thing this would be too significant. Building a code into separate DLLs may also allow you to improve performance by allowing for parallelization as you could call the separate DLLs in different threads, I believe.
    Another option would be using the MathScript node - that allows for parallelization.
    MATLAB® is a registered trademark of The MathWorks, Inc.

  • Re: How to make this forum run fast

    I counted till eleven, but since I'm a rather quick counter, I'd say about 7 seconds as well.
    Could it be that y'all are using Firefox? I'm on IE7.
    &reg;
    (suspecting commie influence since '77)

    sabre150 wrote:
    kajbj wrote:
    CeciNEstPasUnProgrammeur wrote:
    I counted till eleven, but since I'm a rather quick counter, I'd say about 7 seconds as well.
    Could it be that y'all are using Firefox? I'm on IE7.
    &reg;
    (suspecting commie influence since '77)Strange. I tried with IE 7. Loading the main page, about 45 seconds, loading this thread about 30 seconds, getting to the reply page about 3-4 seconds.I find the site blindingly fast! Certainly less than 45 seconds to load the man page and very very much less that 30 seconds for this page. Both typically 1 second with the login page taking about 3 seconds.
    Now if only I could access ALL the pages without Server Error
    This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log.
    What forum? id 5?

Maybe you are looking for

  • Photoshop CS2- Invalid Serial Number

    I am installing my Adobe Photoshop CS2 on Windows Vista. When I try to install the program after entering my serial number that is on the CD case, the program states "Invalid Serial Number." Customer Service gave me new serial numbers to attempt at f

  • Mail problem accessing Novell POP server

    This one is both complicated and puzzling, and I sure would appreciate a solution. We use Novell Groupwise for email. It allows both POP and IMAP access. Two weeks ago, I stopped being able to access mail from the servers using either POP or IMAP fro

  • Lost all contact after sync contacts.!!

    guys, Help!! i lost my contact after sync my contact. Do not know where my contact goes and do not know how to put it back my contact from my itunes. iphone 3GS 10.6+ itunes no using iclouds

  • Does Palm have a software program similar to Shazam on Iphone (music recognition)

    I can't find any music recognition software. I've heard that Shazam sould be available to platforms other than IPhone. Does anyone know of anything like Shazam for the Palm (Centro)? Post relates to: Centro (AT&T)

  • Form new request for retranspor

    Hello Gurus,        I want to retransport some request in sap bw due to some missing object in it.  so what my precess is : SE10>request/task>create>click on newly created request> click button for " including objects..",  is this the correct chain f