Simplify ?

Is there some way that iTunes will scan through My Music folder (i.e. source folder) every time I open iTunes to see if there is some new music file that I have added and then automatically add it to iTunes?
At the moment, if I get a few music files, I first put them in My Music folder. Then I open iTunes and under File, I select the "Add file to library" option. Then I have to manually do this for each file - which is a pain. But also, sometimes the music files are not named properly so I have to remember the name before adding it.
There must be a better way to do this - pls help!
Oh, by the way, once iTunes creates a library, can I delete the files from the My Music folder since it is in the iTunes folder? How can we verify this before deleting?

If you have the preference to *Copy files to iTunes Media folder when adding to library* then any files you add *from outside* the iTunes Media folder will have copies created. If this option is unchecked then iTunes will reference the files in their original locations. I think you'll have to manually compare the My Music and iTunes Media folders to work out which files are duplicates that you can delete.
If possible I recommend keeping all your media inside the iTunes Media folder as this makes the library easier to maintain. If you're happy to let iTunes manage the file and folder names then you can just drop any additions into the *Automatically add to iTunes* folder. If, like me, you prefer more control then you can arrange the files manually first and drag the folder into iTunes.
If you plan to use other tools to rip & import or edit file names then the following may be useful:
*Adding new items/removing orphans*
Try iTunes Folder Watch or iTunes Library Updater. Folder Watch is much faster on the adding files front, can be set to run in the background and includes a useful exclusion feature, however it’s really slow at removing orphans. iTLU is better for this although doing it manually after looking at a list of proposed removals generated by Folder Watch is probably faster still. iTLU can also be set to update iTunes when you've used 3rd party tools to change tag info.
You may need to amend the list of file types these programs look for. My list includes *.mp3 .mp4 .m4a .m4b .m4p .m4v .mov .wav .ipa .ipg .itlp .m4r .pdf* but then I don't have any AIFF or Apple Lossless files. Note the last 5 types won't actually be recognised in the library so should either be omitted from the search or you can add (at least for Folder Watch) individual exclusions for files you know are already in your library.
tt2

Similar Messages

  • 2 apple ID's to 1.   With so many people having the same issue of 2 legitimate accounts by accident or whatever, why would Apple not let us merge them into one?  It would  simplify our lives and I don't see why Apple won't allow this.

    2 accounts to 1. I was so anxious to set up my new iPad at the store that I accidentally set up a new Account.  With so many people requesting to merge 2 legitimate accounts that they own, I can't understand why Apple is refusng to allow us to do so!  This would simplify our lives so much.  I have just switched over to Apple products and if I could at least set up both accounts on my iPad it would help -without signing in and out.  I could do this on my android.

    http://www.apple.com/feedback

  • I have two Apple ID Accounts. How can I combine them so I can simplify updates and purchases?

    I have two Apple ID's (accounts). How can I combine these accounts into one so I can simplify updates and purchases?

    Sorry, but Apple IDs/iTunes Store accounts cannot be merged.
    Regards.

  • [b]Tutorial:[/b] Simplify Developing OLE Automation Code Using VBA

    INTRODUCTION
    Automating Office applications from Oracle Forms can be a tedious, frustrating, and time-consuming process. Because the OLE2 and CLIENT_OLE2 built-ins do not validate the automation commands that they relay, code that compiles without errors often dies at runtime with a not-so-helpful error code. This tutorial will demonstrate how to simplify the development of automation code using a tool that ships with all Microsoft Office editions -- the Visual Basic for Applications (VBA) IDE.
    The VBA IDE, a core Office component, is a full-fledged development environment featuring code completion, basic syntax highlighting, context-driven help and a runtime debugger. Its Object Browser provides a convenient means of browsing the Word object model, as well as searching by keyword.
    For those who may not interested in following this tutorial in detail, I would like to stress the usefulness of the Object Browser as a tool for inspecting the functions supported by OLE server applications and, perhaps more importantly, valid values for function arguments. Whether/not anyone buys the assertion that starting with VBA prototypes is far more productive than pounding out OLE2 code from the very start, they will find the Object Browser invaluable as a reference -- I rely on it exclusively for this sort of documentation.
    A BRIEF INTRODUCTION TO THE VBA IDE & THE OBJECT BROWSER UTILITY
    Try this:
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Open the Object Browser by pressing <F2>
    The Object Browser allows you to visually navigate Word's class hierarchy. Its user interface is a bit crowded, so controls are unlabeled. Hovering the mouse cursor above a control will display a tooltip explaining that control's purpose. The browser's scope can be narrowed by using the Project/Library combo. Typing a keyword or substring in the Search Text combo and clicking on the Search button will cause all classes/members whose name contains the specified search text to be listed in the Search Results pane. Selecting an item from this list will update the two panes below it, showing the selected class, and its members. Beneath the Classes and Members panes is an untitled pane, gray in color, which displays details for the selected class/member, including hyperlinks to relevant information such as arguments, their types and allowable values. If Visual Basic Help is installed, pressing <F1> will display help on a selected class/member. (This feature can be installed from your Office install CD, if necessary.)
    NOTE: While it is possible to cut-and-paste the code examples that follow, I highly recommend that they be typed in by hand. Doing so will provide a better understanding of how the IDE's code completion behaves. Use code completion most efficiently by not using the mouse or <Enter> key when selecting from completion lists. Instead, just type enough letters to select the desired list element, then continue along as if you had typed the entire element, typing the next operator in your statement. It really is slick!
    HELLO WORLD - VBA-STYLE
    1. Open Word
    2. Launch the VBA IDE by pressing <Alt><F11>
    3. Select Module from the Insert menu.
    4. In the blank area that appears, enter the following code:
      Public Sub HelloWorld()
          Documents.Add
          Selection.TypeText ("Hello, world!")
      End Sub5. Press <F5> to run the code.
    If you switch back to Word by pressing <Alt><F11>, there should appear a newly-created document containing the text Hello, world!.
    A MORE AMBITIOUS EXAMPLE
    In this example, we will launch Word, type some text, and alter its formatting. For the purposes of this tutorial, consider it the process we wish to automate from within Forms.
    1. If Word is running, close it.
    2. Open any Office application except Word, such as Excel, Outlook or PowerPoint
    3. Launch the VBA IDE by pressing <Alt><F11>.
    4. Select References from the Tools menu -- a dialog should pop up.
    5. From within this dialog, locate and select Microsoft Word <version> Object Library, then click OK.
    6. Select Module from the Insert menu.
    7. In the blank area that appears, enter the following code:
    Public Sub LaunchWord()
        Dim app As Word.Application
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        app.Documents.Add
        With app.Selection
            .TypeText "This is paragraph 1."
            .TypeParagraph
            .TypeText "This is paragraph 2."
            .TypeParagraph
            .TypeText "This is paragraph 3."
        End With
        With ActiveDocument
            .Paragraphs(1).Range.Words(3).Bold = True
            .Paragraphs(2).Range.Words(3).Italic = True
            .Paragraphs(3).Range.Words(3).Underline = True
        End With
    End Sub8. Press <F5> to run the code.
    A new Word session should have been launched. Switch to it, to view the results of our handiwork!
    TAILORING VBA CODE INTENDED FOR OLE2 CONVERSION
    Now, things get a bit uglier. The code listed above gives a good idea of how concise VBA code can be, but With blocks and chained object references do not translate readily into OLE2 code. Here's the same process, rewritten in a more OLE2-friendly style. Note the numerous intermediate object references that have been declared.
    Public Sub LaunchWord()
        Dim app As Word.Application
        Dim doc As Word.Document
        Dim docs As Word.Documents
        Dim pars As Word.Paragraphs
        Dim par As Word.Paragraph
        Dim wrds As Word.Words
        Dim sel As Word.Selection
        Dim rng As Word.Range
        Set app = CreateObject("Word.Application")
        app.Visible = True                          '!!! IMPORTANT !!!
        Set doc = app.Documents.Add
        Set sel = app.Selection
        sel.TypeText "This is paragraph 1."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 2."
        sel.TypeParagraph
        sel.TypeText "This is paragraph 3."
        Set pars = doc.Paragraphs
        'select third word of first paragraph and make it bold
        Set par = pars.Item(1)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Bold = True
        'select third word of second paragraph and italicize it
        Set par = pars.Item(2)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Italic = True
        'select third word of second paragraph and underline it
        Set par = pars.Item(3)
        Set rng = par.Range
        Set wrds = rng.Words
        Set rng = wrds.Item(3)
        rng.Underline = True
    End Sub
    TRANSFORMATION: CONVERTING VBA CODE INTO PL/SQL
    Here is the PL/SQL counterpart to our previous VBA routine. Compare printouts of the two and note their similarities. Notice the need for argument lists -- this causes the code to fluff up quite a bit, and really interferes with readability.
    PROCEDURE LAUNCH_WORD IS
      v_app OLE2.OBJ_TYPE;     -- Application
      v_doc OLE2.OBJ_TYPE;     -- Document
      v_docs OLE2.OBJ_TYPE;    -- Documents collection
      v_pars OLE2.OBJ_TYPE;    -- Paragraphs collection
      v_par OLE2.OBJ_TYPE;     -- Paragraph
      v_wrds OLE2.OBJ_TYPE;    -- Words collection
      v_sel OLE2.OBJ_TYPE;     -- Selection
      v_rng OLE2.OBJ_TYPE;     -- Range
      v_args OLE2.LIST_TYPE;   -- OLE2 argument list
    BEGIN
      /* launch Word and MAKE IT VISIBLE!!! */ 
        v_app := OLE2.CREATE_OBJ('Word.Application');
        OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
      /* initialize key object references */ 
        v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
        v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
        v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
      /* type first paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 1.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type second paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 2.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      /* type third paragraph */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 'This is paragraph 3.');
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
      /* set reference to Paragraphs collection */
        v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
      /* select third word of first paragraph and make it bold */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 1);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Bold', TRUE);
      /* select third word of second paragraph and italicize it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 2);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Italic', TRUE);
      /* select third word of second paragraph and underline it */
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
        v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, 3);
        v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
        OLE2.SET_PROPERTY(v_rng, 'Underline', TRUE);
    END;
    REFACTORING FOR REUSABILITY AND READABILITY
    While the previous procedure runs without errors, it suffers from poor readability which, in turn, makes it difficult to maintain. Here, we address those issues by moving repetetive low-level operations into separate procedures.
      PROCEDURE LAUNCH_WORD IS
        v_app OLE2.OBJ_TYPE;    -- Application
        v_doc OLE2.OBJ_TYPE;    -- Document
        v_docs OLE2.OBJ_TYPE;   -- Documents collection
        v_sel OLE2.OBJ_TYPE;    -- Selection
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* launch Word and MAKE IT VISIBLE!!! */ 
          v_app := OLE2.CREATE_OBJ('Word.Application');
          OLE2.SET_PROPERTY(v_app, 'Visible', TRUE);
        /* create a new Word document */ 
          v_docs := OLE2.GET_OBJ_PROPERTY(v_app, 'Documents');
          v_doc := OLE2.INVOKE_OBJ(v_docs, 'Add');
          v_sel := OLE2.GET_OBJ_PROPERTY(v_app, 'Selection');
        /* add a few paragraphs */
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 1.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 2.');
          PRINT_PARAGRAPH(v_sel, 'This is paragraph 3.');
        /* apply formatting */
          APPLY_FORMATTING(v_doc, 1, 3, 'Bold', TRUE);
          APPLY_FORMATTING(v_doc, 2, 3, 'Italic', TRUE);
          APPLY_FORMATTING(v_doc, 3, 3, 'Underline', TRUE);
      END;
      PROCEDURE APPLY_FORMATTING(
        v_doc OLE2.OBJ_TYPE,
        v_paragraph_num NUMBER,
        v_word_num NUMBER,
        v_attribute VARCHAR2,
        v_value BOOLEAN) IS
        v_pars OLE2.OBJ_TYPE;   -- Paragraphs collection
        v_par OLE2.OBJ_TYPE;    -- Paragraph
        v_wrds OLE2.OBJ_TYPE;   -- Words collection
        v_rng OLE2.OBJ_TYPE;    -- Range
        v_args OLE2.LIST_TYPE;  -- OLE2 argument list
      BEGIN
        /* set reference to Paragraphs collection */
          v_pars := OLE2.GET_OBJ_PROPERTY(v_doc, 'Paragraphs');
        /* get specified paragraph */   
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_paragraph_num);
          v_par := OLE2.INVOKE_OBJ(v_pars, 'Item', v_args);
          OLE2.DESTROY_ARGLIST(v_args);
        /* get words for specified paragraph */
          v_rng := OLE2.GET_OBJ_PROPERTY(v_par, 'Range');
          v_wrds := OLE2.GET_OBJ_PROPERTY(v_rng, 'Words');
        /* apply formatting to word found at specified index */
          v_args := OLE2.CREATE_ARGLIST;
          OLE2.ADD_ARG(v_args, v_word_num);
          v_rng := OLE2.INVOKE_OBJ(v_wrds, 'Item', v_args);
          OLE2.SET_PROPERTY(v_rng, v_attribute, v_value);
      END;
      PROCEDURE PRINT_PARAGRAPH(v_sel OLE2.OBJ_TYPE, v_text VARCHAR2) IS
        v_args OLE2.LIST_TYPE;
      BEGIN
        v_args := OLE2.CREATE_ARGLIST;
        OLE2.ADD_ARG(v_args, v_text);
        OLE2.INVOKE(v_sel, 'TypeText', v_args);
        OLE2.DESTROY_ARGLIST(v_args);
        OLE2.INVOKE(v_sel, 'TypeParagraph');
      END;
    CONCLUSION
    It is my hope that this tutorial, despite it's introductory nature, has demonstrated the value of the VBA IDE, the ease with which automation processes can be prototyped using VBA, the noticeable similarity between VBA automation routines and their Forms PL/SQL counterparts, and the advantages of testing automation processes within the VBA IDE. Please feel free to follow up with any specific questions or concerns you may have.
    Thanks,
    Eric Adamson
    Lansing, Michigan
    FINAL NOTE: These examples use the OLE2 built-in, and will operate correctly when called from forms running in the Form Builder OC4J. Deploying them to an Oracle Application Server will launch Word on the server itself (if available), which is usually not the developer's intent! Automating Word client-side via web forms requires adding WebUtil support. Adapting the code for WebUtil is trivial -- just replace all instances of OLE2 with CLIENT_OLE2. Adapting forms for WebUtil and configuring OLE support into your Oracle Application Server, however, are beyond the scope of this tutorial.
    REVISION HISTORY
    This promises to be something of a 'living document'. I've snuck changes through without comment in the past, but in the future, I'll try to document significant changes here.
    2006-08-21
      * Prefaced boring subject line with text: 'Tutorial:' to clarify purpose
      * Added emphasis on value of Object Browser as a reference

    Thanks James, for your kind words. I do hope this information will help folks out. I honestly believe that tinkering around in the VBA IDE will prove highly gratifying for automation developers. It can be assured that learning to make Word jump through hoops is much more straight-forward in this environment. I'm not one for mottos, but if I were pressed for a cheesy motto, I would say: First, make it work. Then, make it work in Oracle!
    Once the idea has sunk in, that Visual Basic routines for automating Word are exact analogs to their OLE2 counterparts, we can remove keywords like Oracle and PL/SQL from our Google searches on Word automation which, at least in this context, are the proverbial kiss of death. Suddenly we find ourselves liberated by the possibility of steal-, ahem... borrowing ideas from the Visual Basic* community!
    As for links, my link of choice is invariably http://groups.google.com -- if you don't already use it at least ten times a day, you must try it. This is the venerable USENET archive, including the holdings of now-extinct DejaNews. Another possible site of interest is http://word.mvps.org/FAQs/MacrosVBA, which may serve as a good starting point for those who wish to learn how to do fancy tricks with Word using VBA.
    If these links don't prove immediately helpful, please feel free to give specifics on the sort of operations you are interested in automating, and I'll see if I can post an example that addresses it.
    Regards,
    Eric Adamson
    Lansing, Michigan
    PS: I do hope, as people read my posts, with every other acronym being VBA, that they are not mistakenly hearing a call to learn Visual Basic. I say this, not because I believe learning VB would be a Bad Thing, but because I assume that few of us feel we have the time to learn a new programming language. Despite having come to the Oracle camp already knowing VB/VBA, and having acquired a fair bit of experience with automating Office applications as an Access developer, I remain confident that what I am suggesting people attempt does not rise to the level of learning a language. What I am suggesting is that they learn enough of the language to get by.
    *VB vs. VBA
    Just a quick word on this, as readers may wonder why I seem to use these terms interchangeably. Visual Basic (VB) can refer to either a development platform or a programming language. Visual Basic for Applications (VBA) is a language -- more precisely, it is a subset of the Visual Basic language. One purchases VB, usually quite intentionally. VBA is included with Microsoft Office, as is VBA's development environment, the VBA IDE. The key distinction between VB and VBA is that VBA cannot be used to create self-contained executables. Rather, VBA relies on VBA-enabled applications, such as Microsoft Office applications, to serve as a container for VBA code, and to provide a runtime environment for that code. For the purposes of discussing OLE Automation, VB and VBA are quite interchangeable.

  • Free Oracle Tool to Simplify Commonly Run Dictionary Queries

    (orastat has a very good 'Hot Blocks' query)
    Hi,
    My co-workers and I at Agilent Technologies have developed a
    useful tool to simplify running common dictionary queries. It
    runs on UX and requires that you be the "oracle" user. You can
    download it from
    http://dbamon.com/orastat
    For example, if you wanted info about a certain table, you could
    query DBA_TABLE, DBA_INDEXES. With our tool "orastat", you would
    just run 'orastat -ti <OWNER>.<TABLE>. Example:
    2002/01/13-09:09:17 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:09:17 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:09:17 orastat | Version=2.23 Host=bigdog Company=agilent
    2002/01/13-09:09:17 orastat | Table Info for DBAMON.EVENTS
    Table Data (from dba_tables)
    Tablespace: DBAMON
    RowCount: (Null) (From ANALYZE)
    LastAnalyzed: (Null) (From ANALYZE)
    Blocks: (Null) (From ANALYZE)
    InitialExtents: 20971520
    NextExtents: 8146944
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Data (from dba_indexes and dba_ind_columns)
    Index: DBAMON.EVENTS_X1
    Tablespace: DBAMON
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 10485760
    NextExtents: 2764800
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: INSTANCE Length: 32 Descending: ASC
    Index: DBAMON.EVENTS_X2
    Tablespace: USERS
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 131072
    NextExtents: 983040
    MinExtents: 2
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: TS Length: 7 Descending: ASC
    Here is a list of all available orastat commands:
    2002/01/13-09:07:48 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:07:48 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:07:48 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Usage:
    -- View This Help File
    - Check for PMON Running, Show Oracle Version, Instance Status
    -ad List Archive Destinations (v)
    -al Show All Archived Logs
    -an Analyze Table COMPUTE STATISTICS - 'orastat -an TABLE-OWNER.TABLE-NAME'
    -ar Show Current DB Activity Rate
    -au Show DB Audit Status
    -az Show Current DB Activity Rate - Log to /opt/oracle/adm/cronlog/db_activity_rate_<SID>.txt
    -ba List Contents of dbamon.backup_age Table
    -bi List RMAN backup inventory -- ALL
    -bp List running RMAN backup sessions (if any)
    -br Backups: List all media written to since the last RMAN LVL0 backup
    -c Configuration: View init.ora File
    -ce Configuration: Edit 'vi' init.ora File
    -cf List Control Files
    -ck List Time of Last Checkpoint (from v$datafile_headers)
    -cp Configuration: View Contents of v$parameter
    -ct Coalesce TEMP tablespace
    -de List All Datafiles, Online Redo Logs and Control Files (For Destroying a DB)
    -df List Datafiles - Optional NOFSCHECK 2nd parm to prevent bdf'ing filesystem
    -dc List Datafiles in 'cp' commands to copy all datafiles elsewhere
    -ec Configuration: Edit 'vi' config.ora File
    -er Display contents of DBA_ERRORS
    -ex Select from plan_table
    -fs Free Space in Each Datafile
    -in List Indexes
    -iv List INVALID Objects
    -l List Archive Log Status
    -lf List Redo Log Files
    -li List Resource Limits (v$resource_limit)
    -lk Locks - Current TX (Non-Row) Locks
    -lh Lock Holders/Waiter
    -lo List Current Table Locks
    -ls Listener Status
    -lv List LVOL's / Usage
    -m View Last 20 Lines Of Alert Log
    -ma Cat entire Alert Log
    -mv 'vi' (read-only mode) Of Alert Log
    -op OPS: View V$PING - Lock Conversions
    -pi Performance: View Histogram of Datafile I/O
    -pd Performance: View Data Block Buffer Hit Ratio
    -pf Performance: View Total Cumulative Free List Waits
    -ph Performance: Hot Blocks - Block With Latch Sleeps
    -ps OPS (Parallel Server) Status
    -pw Performance: Show segment names for tables with buffer waits
    -ra List Rollback Segment Activity
    -rb List Rollback Segments
    -rc List And SHRINK All Rollback Segments
    -rd List And ALTER MAXEXTENTS UNLIMITED All Rollback Segments
    -ro List Roles
    -rh List REDO Logs - History
    -rl List REDO Logs - Files
    -rp RMAN Long Operation Progress
    -rs List REDO Logs - Status
    -sb Standby DB - Show log gaps
    -sc Sessions - By Session CPU Time
    -sd Sessions - Details - Sessions, Running SQL and Waits
    -se Sessions
    -sg List SGA Usage
    -sl SELECT * from table - name supplied as 2nd parameter
    -sn SNAPSHOT - Run systemstate trace 3 times (for Oracle diagnostics)
    -so List sorts by user
    -sp List StatsPack Snapshot Data
    -sq Run SQL - Pass SQL as argument in single quotes
    -sr View Running SQL - 'orastat -sr SESSION_NUMBER'
    -ss List default storage clause for all TABLESPACES
    -st System Statistics
    -su List Active Sessions - From Users Table (Under Construction)
    -sw Session Wait Statistics
    -ta List All Tables - From DBA_SEGMENTS (Name, TS, Size, Extents, Maxextents)
    -tb Count Tables - By Schema
    -tc Create Backup Schedule Template from List Of Tablespaces
    -td describe table - name of table supplied as 2nd parameter
    -ti Table Info - 'orastat -ti TABLE-OWNER.TABLE-NAME'
    -ts List Tablespaces
    -tt List 8i+ TEMPORARY Locally Managed Tablespaces
    -tu Temp space usage by user
    -tz List Tables - From DBA_TABLES
    -ub List the byte count of data, by User
    -ud List Users With ORADBA
    -ug List Users Table Grants (Much Output) - 2nd Parm is optional grantee name
    -us List All Users
    -ut List the byte count of data, by User and Tablespace
    -v List Oracle version and whether it is 32-bit or 64-bit
    -vs List All Views
    -vw Count Views - By Schema
    -ws Wait stats - from v
    2002/01/13-09:09:18 orastat | Found 2 Indexes
    2002/01/13-09:10:45 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:10:45 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:10:45 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Rollback Segments Statistics
    RSSize : Current rollback segment size in bytes
    A Xn's : Number of current transactions using the rollback segment
    HWMSize : High Water Mark size in bytes
    Wraps : Cumulative # of times a X'n continues writing from one
    extents to another existing extent
    Avg Actv: Avg # of bytes in active extents in the rbs measured over time
    Name Extents Extends RSSize A Xn's Gets HWMSize Wraps Avg Actv Status Waits
    SYSTEM 2 0 118784 0 2093 118784 0 0 ONLINE 0
    R01 19 0 2719744 1 261027 2719744 505 143362 ONLINE 122
    R02 20 0 2863104 1 263385 2863104 517 144526 ONLINE 164
    R03 19 0 2719744 1 264369 2719744 517 143207 ONLINE 155
    R04 19 0 2719744 0 267518 2719744 530 156265 ONLINE 139

    If the application uses a single database session, you can also generate a SQLTrace file to analyse with tkprof by using either Oracle Enterprise Manager to turn on SQL Trace for the session, or use DBMS_MONITOR SESSION_TRACE_ENABLE(session_id, serial_num) - you then have to find the trace file on the datbaas eserver USER_DUMP_DEST and either read manually (the queries are easily visible) or use tkprof to analyze it Using Application Tracing Tools  Among other things tkprof can tell you the top resource consuming SQL statements.

  • How to simplify a cumbersome workflow?

    Nearly everyday I need to update 5 large .html pages, each currently around 1.5 MB. The work involved to get these pages published is cumbersome to say the least and time consuming. I'm looking for tips or suggestions on ways to achieve this more easily and in less time.
    Details:
    The pages in question are: http://ppbm5.com/Benchmark5.html and the http://ppbm5.com/Benchmark5-1.html thru http://ppbm5.com/Benchmark5-4.html
    Step 1, Excel:
    The data are processed in Excel, sorted in 5 different ways and each sorted page is exported as a .html page. Due to some bugs in Excel, each export needs to be done with the active sheet zoomed to 10% of the original size, otherwise the conditional formatting is compromised.and messed up. So, after export, reset the zoom to 100%, resort the sheet on a different test, zoom to 10%, export to .html, zoom to 100%, resort, etc.
    While not very convenient, I have not found an alternative, because the conditional formatting and color coding is crucial, so using tables in DW is not an option.
    Step 2, .vbs script:
    A simple .vbs script is run from the desktop and that inserts in each of the created .html files the necessary code for Spry Tooltips, Lightbox and Scroll-to-Top in a very easy and reliable way. So far, so good.
    Step 3, the cumbersome process:
    Each of the five pages needs to have a Spry menu inserted in a specific cell of each spreadsheet. In Excel terms cell A2/A3 (merged).
    The original code in each .html page to be replaced is:
    <td rowspan=2 height=67 class=xl2179194 style='border-bottom:.5pt solid black;
    height:50.25pt'> </td>
    and needs to be replaced with this:
    <td height=67 rowspan=2 bgcolor="#EEE" class=xl2179194 style='text-decoration: none; border-bottom:.5pt solid black; height:50.25pt'>
    <ul id="MenuBar1" class="MenuBarVertical">
    <li><a href="http://ppbm5.com/index.html">Home Page</a> </li>
    <li><a href="#" class="MenuBarItemSubmenu">Sort Results by</a>
    <ul>
    <li><a href="http://ppbm5.com/Benchmark5.html">Overall Results</a></li>
    <li><a href="http://ppbm5.com/Benchmark5-1.html">Disk I/O Results</a></li>
    <li><a href="http://ppbm5.com/Benchmark5-2.html">MPEG2-DVD Results</a></li>
    <li><a href="http://ppbm5.com/Benchmark5-3.html">H.264-BR Results</a></li>
    <li><a href="http://ppbm5.com/Benchmark5-4.html">MPE Results</a></li>
    </ul>
    </li>
    </ul>
    </td>
    Notice: The bold figures in the code above, currently 217 can vary from page to page and from day to day. This is an Excel anomaly that is unexplainable to me. One day the first page may show 199 as the first figure and the other pages may show 198, the next day the first page may show 217 on the first page and 218 on subsequent pages.
    Due to some limitations of .vbs scripting and the strange Excel behavior, I have not found a method to automatically replace this code, because it is no longer static, as the rest of the script is.
    Current workaround:
    I know that in the .html pages, this code is somewhere in the vicinity of line 3514. So in DW I scroll down to around that line, delete the two unneeded lines and with copy/paste from a text file insert the replacement code and correct the 'class=xl2179194' manually to the correct number. This has to be repeated for each of the 5 files.
    As you can understand, far from ideal.
    Step 3, uploading and optimizing:
    Upload the saved .html files to the site, refresh in FF, use Firebug/Pagespeed to create a compressed .html (saves around 33 KB per file), upload again, refresh and then the next tedious step starts.
    Step 4, removing unused CSS code:
    Refresh the page in FF, analyze with Firebug/Pagespeed and remove the unused CSS code from the page (saves around 68 K per file) by going back to DW and manually remove all the lines on unused code from bottom to top, for instance removing lines 200-198-197-195-194- 189-186-...-23-22-21-20. Then save the file again, upload and repeat this exercise for the other files.
    These optimizing steps generally result in a page speed index that improves from 81 to 85, sizable enough IMO to justify the effort, but this is cumbersome, tedious and error prone. But with the way Excel works with exports of .html files I feel like I'm in a bind.
    Can anyone suggest a better, more effective workflow that is less time-consuming.

    Thank you for your attention. I know it is often suggested to export to a database or table, but the giant complexity of all the conditional formatting with legends and color grading, based on various calculations, the added and automated charts that are based on a number of calculations as well, make that approach extremly complex, not a task I look forward to.
    I don't think it's any more complex that what you're currently doing on an almost daily basis
    The real issue to me is letting go of the current mindset which has obviously evolved and developed this precision exercise over time.
    To me, it now has the hallmarks of a Rube Goldberg invention and is obviously a burden for you to maintain.
    It's often difficult to break away from, and re-think, projects that you're close to and have an intimate knowledge of.
    Is the current format set in stone or can it be done a different way? I assume you have a skilled readership which is able to digest that data as presented?
    All the conditional formatting on those pages is part of Excel's toolkit to try and offer some visual meaning and comprehension to the data displayed.
    This can just as easily be done with queries, filters and formatting with a database approach. In addition, a database approach allows you to re-sort, analyze and present the data in countless different ways which the current rigid presentation does not allow.
    Just some thoughts.
    It would already simplify my current workflow, if I were able to instruct DW to delete lines in the .html code in the following sequence:
    200 - 198 - 197 - 195 - 194 - 191 - 189 - 188 - 186- 185 - 183 - 181 - 180 - 179 - 176 - etc.
    Notice you have to start with the highest number first and work from there to the lowest numbered line.
    Do you happen to know if it is possible to enter this list of line numbers once and then instruct DW to delete these lines in the order indicated for all open documents?
    Long shot: It may be possible via RegExp expressions but I'm not skilled in the use of those. However, you're probably better off doing that manually.

  • Could not find Simplified Chinese input method when using FormsCentral

    Hi
    When I creating files using FormsCentral, I could not find the input method of Simplified Chinese, therefore, the document I created look strange. The font is not what I wanted but I really could not find Simplified Chinese to edit the document.  Could anyone please show me how should I do it or where I can download the font pack?

    We currently do not support Chinese forms.
    Randy

  • How can i get the length of a string with Simplified Chinese?

    when i use eventwriter to add content to a xmldocument,there are some chinese simplified string in it,i use String.length() for the length ,but it is not correct~how can i get the right length for eventwriter?

    Below is a simple patch for this problem. Using this patch you need to pass 0 as the length argument for any XmlEventWriter interfaces that take a string length.
    Regards,
    George
    diff -c dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsEventWriter.cpp dbxml-2.3.10.patch/dbxml/src/dbxml/nodeStore/NsEventWriter.cpp
    *** dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsEventWriter.cpp    Fri Nov  3 12:26:11 2006
    --- dbxml-2.3.10.patch/dbxml/src/dbxml/nodeStore/NsEventWriter.cpp      Thu Mar 15 13:58:13 2007
    *** 234,239 ****
    --- 234,241 ----
            CHECK_NULL(text);
            CHECK_SUCCESS();
    +       if (!length)
    +               length = ::strlen((const char *)text);
            if (!_current)
                    throwBadWrite("writeText: requires writeStartDocument");
            try {
    *** 413,418 ****
    --- 415,422 ----
            CHECK_NULL(dtd);
            CHECK_SUCCESS();
    +       if (!length)
    +               length = ::strlen((const char *)dtd);
            if (_current) {
                    if (!_current->isDoc())
                            throwBadWrite("writeDTD: must occur before content");
    diff -c dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsWriter.cpp dbxml-2.3.10.patch/dbxml/src/dbxml/nodeStore/NsWriter.cpp
    *** dbxml-2.3.10/dbxml/src/dbxml/nodeStore/NsWriter.cpp Tue Jan  2 16:01:14 2007
    --- dbxml-2.3.10.patch/dbxml/src/dbxml/nodeStore/NsWriter.cpp   Thu Mar 15 13:59:25 2007
    *** 326,331 ****
    --- 326,333 ----
                    needsEscape = false;
            else
                    needsEscape = true;
    +       if (!length)
    +               length = ::strlen((const char *)chars);
            writeTextWithEscape(type, chars, length, needsEscape);
    *** 336,341 ****
    --- 338,345 ----
                                  bool needsEscape)
            if(_entCount == 0) {
    +               if (!len)
    +                       len = ::strlen((const char *)chars);
                    if ((type == XmlEventReader::Characters) ||
                        (type == XmlEventReader::Whitespace)) {
                            char *buf = 0;
    *** 381,386 ****
    --- 385,392 ----
      NsWriter::writeDTD(const unsigned char *data, int len)
            if(_entCount == 0) {
    +               if (!len)
    +                       len = ::strlen((const char *)data);
                    _stream->write(data, len);
      }

  • Unable to read Simplified Chinese in downloaded excel

    Hi,
    We are running an MDMP Simplified Chinese SAP system.
    After extracting some data with both English and Simplified Chinese and saving it as excel file, we are not able to view the Simplified Chinese characters when it is opened in MS Excel.  "Garbage" are being displayed in place of Simplified Chinese.  English display is ok.
    The PC already has Simplified Chinese fonts installed (Control Panel->Regional & Language Options->Language tab->Install files for East Asian languages), and Windows XP is an English version.
    In addition, we are able to key in Simplified Chinese via the keyboard using Hanyu Pinyin.
    I am suspecting that the issue is with MS Excel which doesn't know how to convert the Simplified Chinese. 
    Does anyone know how to overcome this problem?
    Thanks

    Hi,
    as far as I know you need to set the system locale (Language for Non-Unicode programs) of Windows in the control panel to Chinese.
    In addition in a standard  MDMP system it is mandatory to logon with language Chinese if you want to download Kanji characters.
    Best regards,
    Nils Buerckel

  • Won't display simplified Chinese

    I just checked out an ebook written in simplified Chinese from an online library . The ADE displayed the title and the table of content correctly on the left pane, but the content of the book displayed on the right pane were not - just a bunch of special characters. Do I need to download a language pack to make it work? What do I need to do?  This is the first time I use th Adobe Digital Editions so I really don't know much about it.

    I have the same problem. I got the book Niubi: The real Chinese you were never taught in School, by Eveline Chao. The Chinese caracteres doesn't appear, the Latin letters with diacrits also not. I noted that Adobe Digital Editions, doesn't have a proper place to fonts, in this case Unicode, would be apreciated. How can I solve the problem? Without this, there isn't any sense to have a software and a book which you can't read properly.
    At Adobe PDF, when you open a book like this one, immediately the PDF upload a plugin for that specific language.  I also would like an aswer about this problem with Digital Editions. Thanks.

  • Change over from traditional chinese and simplify chinese

    I am using a MacBook Pro, Hardware : 2010 Q3 product, OS : OSX 10.6  Current OS : OSX 10.7.5
    My problem is when I select writing language by using Trackpad handwriting in Traditional Chinese, I write a word in Simplify Chinese, it can give me a Traditional Chinese for selection.   But when I change over from Traditional Chinese to Simplify Chinese, I write in Traditional Chinese, it never give me a correct word in Traditional Chinese, I think it is a BUG and I have visit Genius Bar at Apple Shop, nobody can solve thie problem,

    Ahavavaha wrote:
    But when I change over from Traditional Chinese to Simplify Chinese, I write in Traditional Chinese, it never give me a correct word in Traditional Chinese
    I can see how that might not be a bug but expected behavior.
    Try asking in the Chinese Mac group:
    https://groups.google.com/forum/#!forum/chinesemac
    Also if you know Chinese well:
    https://discussionschinese.apple.com

  • I have a vintage mac computer that I am trying to download the asian language pack for simplified chinese; However the error message tells me I need an update installer?? Cannot find the right download for the 10.5.8 OS

    I have a 10.5.8 os and need the simplified Chinese languag pack which I have not been able to download. It says I need an update installer which I cannot find as well/ or one that will work. Any suggestions?

    Are you sure it is not already there?   In system preferences/international/language, don't you see simplified Chinese on the list?  It is supposed to be there.  You just move it to the top and restart to put the OS into that language.
    Missing language packs can also normally be installed  by running the Language Translations installers found in the OptionalInstalls.mpkg of the Leopard DVD.

  • Acrobat 9 Professional simplified Chinese install package address

    We have been purchased Acrobat 9 Professional simplified Chinese licences for many years, but we lost the install file, Could you give us the install package address for it? PS: There are only language English/ French/ German / Japanese on the public page: http://helpx.adobe.com/acrobat/kb/acrobat-8-9-product-downloads.html

    Moving this discussion to the Acrobat Installation & Update Issues forum.

  • Is there a widget for this simplified menu?

    You've seen them. Google uses it. Adobe uses it, and it is seen everywhere in mobile apps. The simplified menu that expands to greater detail. Usually, it is three short horizontal lines, stacked vertically.
    How do I place this into an Adobe Muse website. I am in the process of formatting a desktop site created in Muse for smartphone and tablet. I would like to drop this into my design. Is there a widget available? Should I just create it in Illustrator or Photoshop?
    Thanks

    *content drained by mj*
    sorry, it wouldn't do pics.
    -mj
    [email protected]
    Message was edited by: macjack

  • Simplifying a java.awt.Shape

    Hi,
    I have a problem where i have a shape created by an AREA object (basically unioning shapes to create a larger shape). The shape visually appears to be just a plain old square however the shape contains 200 segments!
    The algorithm i'm using tp examine the shape will be much more effecient of I can simplify the segments. I'm hoping there is some available software or utility that exists to take an existing java.awt.Shape that has redundant data and "simplify" it by removing superfulous information.
    i.e. if I did a line segmenet from 0,0 to 1,1 then a line segment from 1,1 to 2,2 that would be collapsed to a line segment from 0,0 to 2,2.
    I realize there's the PathIterator's flattening ability however I would like the simplifying shape to condense two quad curves to one cubic curve if possible and not necessarily change everything to lineto segments.
    Does anyone have any resources or information that might help me with this?
    Thanks!
    Trevor

    Hi
    Use the Java Threading Model ...
    This is a Sample Program that use Buffered Image as a Source
    import java.awt.Color;
    import java.util.ArrayList;
    public class Joint implements Runnable
            ArrayList points;
         byte startside,closedside;
         byte type; //0 line 1 arc
         boolean closed;
         Junction closedwith,parent;
         // Area shapeimage;
            int pixels[];
            int startpoint,width;
            Color color = Color.black;
            TraceResult result;
    public Joint(TraceResult Result,int pix[],int start,int w,Junction j)
            result = Result;
            startpoint = start;
            System.arraycopy(pix,0,pixels,0,pix.length);
            parent = j;
            //startside = side;
            points = new ArrayList();
            width = w;
    public boolean isonsamejuncion()
            return (parent==closedwith);
    public void run()
            int i;
            int p=nextPoint(0);
            while(p!=0)
            {       points.add(new Integer(p));
                    p = nextPoint(p);
                      /* Joint t = new Joint(pixels,width,parent);
                       Thread thread = new thread(t);
                       thread.start(); continue;*/
            /* else  { closed = false; closedwith = null; break;  }
    private final int nextPoint(int i)
    {       boolean M,N2,NE2,E2,SE2,S2,SW2,W2,NW2;
            int l=pixels.length;
            int N,E,S,W,NE,NW,SE,SW;
            int NP,EP,SP,WP,NEP,NWP,SEP,SWP;
            Junction j;
            if (!(M = color.equals(new Color(pixels))))
    closed=false;
    closedwith=null;
    return 0;
    //Trace points
    EP = i+1 ;
    WP = i-1 ;
    SP = i+width ;
    NP = i-width ;
    SEP = i+width+1 ;
    SWP = i+width-1 ;
    NEP = i-width+1 ;
    NWP = i-width-1 ;
    E =( (EP <= l) && color.equals(new Color(pixels[EP])) )?3:0;
    W =( (WP >= 0) && color.equals(new Color(pixels[WP])) )?11:0;
    S =( (SP <= l) && color.equals(new Color(pixels[SP])) )?5:0;
    N =( (NP >= 0) && color.equals(new Color(pixels[NP])) )?1:0;
    SE=( (SEP <= l) && color.equals(new Color(pixels[SEP])) )?300:0;
    SW=( (SWP >= 0) && color.equals(new Color(pixels[SWP])) )?500:0;
    NE=( (NEP <= l) && color.equals(new Color(pixels[NEP])) )?100:0;
    NW=( (NWP >= 0) && color.equals(new Color(pixels[NWP])) )?1100:0;
    int sum=N+E+S+W+NE+NW+SW+SE;
    switch (sum)
    case 1: //N
    case 3: //E
    case 5: //S
    case 11: //W
    case 100: //NE
    case 300: //SE
    case 500: //SW
    case 1100: //NW
    closed=false;
    closedwith=null;
    return 0;
    case 4: //N + E
    return points.contains(new Integer(EP))?NP:EP;
    case 6: //N + S
    return points.contains(new Integer(SP))?NP:SP;
    case 8: //S + E
    return points.contains(new Integer(EP))?SP:EP;
    case 16: //S + W
    return points.contains(new Integer(WP))?SP:WP;
    case 12: //N + W
    return points.contains(new Integer(WP))?NP:WP;
    case 14: //W + E
    return points.contains(new Integer(EP))?WP:EP;
    case 400: //NE + SE
    return points.contains(new Integer(SEP))?NEP:SEP;
    case 600: //NE + SW
    return points.contains(new Integer(SWP))?NEP:SWP;
    case 800: //SW + SE
    return points.contains(new Integer(SEP))?SWP:SEP;
    case 1600: //SW + NW
    return points.contains(new Integer(NWP))?SWP:NWP;
    case 1200: //NE + NW
    return points.contains(new Integer(NWP))?NEP:NWP;
    case 1400: //NW + SE
    return points.contains(new Integer(SEP))?NWP:SEP;
    case 101: //NE + N
    return points.contains(new Integer(NP))?NEP:NP;
    case 301: //SE + N
    return points.contains(new Integer(NP))?SEP:NP;
    case 501: //SW + N
    return points.contains(new Integer(NP))?SWP:NP;
    case 1101: //NW + N
    return points.contains(new Integer(NP))?NWP:NP;
    case 103: //NE + E
    return points.contains(new Integer(EP))?NEP:EP;
    case 303: //SE + E
    return points.contains(new Integer(EP))?SEP:EP;
    case 503: //SW + E
    return points.contains(new Integer(EP))?SWP:EP;
    case 1103: //NW + E
    return points.contains(new Integer(EP))?NWP:EP;
    case 105: //NE + S
    return points.contains(new Integer(SP))?NEP:SP;
    case 305: //SE + S
    return points.contains(new Integer(SP))?SEP:SP;
    case 505: //SW + S
    return points.contains(new Integer(SP))?SWP:SP;
    case 1105: //NW + S
    return points.contains(new Integer(SP))?NWP:SP;
    case 111: //NE + W
    return points.contains(new Integer(WP))?NEP:WP;
    case 311: //SE + W
    return points.contains(new Integer(WP))?SEP:WP;
    case 511: //SW + W
    return points.contains(new Integer(WP))?SWP:WP;
    case 1111: //NW + W
    return points.contains(new Integer(WP))?NWP:WP;
    case 15: //N + E + W
    if(points.contains(new Integer(WP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (N2 && E2)
    j=new Junction(i,NP,EP,-1,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return EP;
    }else if(points.contains(new Integer(EP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    W2 = WP-1 > 0 && color.equals(new Color(pixels[WP-1]));
    if (N2 && W2)
    j=new Junction(i,NP,EP,-1,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,WP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return WP;
    }else if(points.contains(new Integer(NP)))
    W2 = WP-1 >0 && color.equals(new Color(pixels[WP-1]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (W2 && E2)
    j=new Junction(i,NP,EP,-1,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,WP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (W2)
    return WP;
    else
    return EP;
    case 9: //N + E + S
    if(points.contains(new Integer(SP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (N2 && E2)
    j=new Junction(i,NP,EP,SP,-1,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return EP;
    }else if(points.contains(new Integer(EP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    S2 = SP+width > 0 && color.equals(new Color(pixels[SP+width]));
    if (N2 && S2)
    j=new Junction(i,NP,EP,SP,-1,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return SP;
    }else if(points.contains(new Integer(NP)))
    S2 = SP+width >0 && color.equals(new Color(pixels[SP+width]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (S2 && E2)
    j=new Junction(i,NP,EP,SP,-1,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,SP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (S2)
    return SP;
    else
    return EP;
    case 17: //N + W + S
    if(points.contains(new Integer(SP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    W2 = WP-1 > 0 && color.equals(new Color(pixels[WP-1]));
    if (N2 && W2)
    j=new Junction(i,NP,-1,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,WP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return WP;
    }else if(points.contains(new Integer(WP)))
    N2 = NP-width >0 && color.equals(new Color(pixels[NP-width]));
    S2 = SP+width <l && color.equals(new Color(pixels[SP+width]));
    if (N2 && S2)
    j=new Junction(i,NP,-1,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (N2)
    return NP;
    else
    return SP;
    }else if(points.contains(new Integer(NP)))
    S2 = SP+width >l && color.equals(new Color(pixels[SP+width]));
    W2 = WP-1 > 0 && color.equals(new Color(pixels[WP-1]));
    if (W2 && S2)
    j=new Junction(i,NP,-1,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,SP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,WP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (S2)
    return SP;
    else
    return WP;
    case 19: //E + S + W
    if(points.contains(new Integer(SP)))
    W2 = WP+width <l && color.equals(new Color(pixels[WP+width]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (W2 && E2)
    j=new Junction(i,-1,EP,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,WP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (W2)
    return WP;
    else
    return EP;
    }else if(points.contains(new Integer(EP)))
    W2 = WP+width <l && color.equals(new Color(pixels[WP+width]));
    S2 = SP+width <l && color.equals(new Color(pixels[SP+width]));
    if (W2 && S2)
    j=new Junction(i,-1,EP,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,WP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (W2)
    return WP;
    else
    return SP;
    }else if(points.contains(new Integer(WP)))
    S2 = SP+width <l && color.equals(new Color(pixels[SP+width]));
    E2 = EP+1 < 1 && color.equals(new Color(pixels[EP+1]));
    if (S2 && E2)
    j=new Junction(i,-1,EP,SP,WP,-1,-1,-1,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,SP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,EP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (S2)
    return SP;
    else
    return EP;
    case 20: //N + E + S +W
    case 1500: //NE + SE + NW
    if(points.contains(new Integer(NW)))
    NE2 = NEP-width+1 < 0 && color.equals(new Color(pixels[NEP-width+1]));
    SE2 = SEP+width+1 < 1 && color.equals(new Color(pixels[EP+width+1]));
    if (NE2 && SE2)
    j=new Junction(i,-1,-1,-1,-1,NEP,SEP,-1,NWP,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NEP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SEP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (NE2)
    return NEP;
    else
    return SEP;
    }else if(points.contains(new Integer(SEP)))
    NE2 = NEP-width+1 >0 && color.equals(new Color(pixels[NP-width+1]));
    NW2 = NWP-width-1 > 0 && color.equals(new Color(pixels[NWP-width-1]));
    if (NE2 && NW2)
    j=new Junction(i,-1,-1,-1,-1,NE,SE,-1,NW,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NEP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,NWP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (NE2)
    return NEP;
    else
    return NWP;
    }else if(points.contains(new Integer(NEP)))
    NW2 = NWP-width-1 >0 && color.equals(new Color(pixels[WP-width-1]));
    SE2 = SEP+width+1 < 1 && color.equals(new Color(pixels[SEP+width+1]));
    if (NW2 && SE2)
    j=new Junction(i,-1,-1,-1,-1,NE,SE,-1,NW,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NWP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SEP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (NW2)
    return NWP;
    else
    return SEP;
    case 900: //NE + SE + SW
    if(points.contains(new Integer(SWP)))
    NE2 = NEP-width+1 >0 && color.equals(new Color(pixels[NEP-width+1]));
    SE2 = SEP+width+1 < 1 && color.equals(new Color(pixels[SEP+width+1]));
    if (NE2 && SE2)
    j=new Junction(i,-1,-1,-1,-1,NEP,SEP,SWP,-1,3,result);
    if(result.contains(j))
    closedwith=j;
    closed=true;
    return 0;
    else
    result.add(j);
    Joint j1=new Joint(result,pixels,NEP,width,j);
    Thread t=new Thread(j1);
    t.start();
    Joint j2=new Joint(result,pixels,SEP,width,j);
    Thread t1=new Thread(j2);
    t1.start();
    }else if (NE2)
    return NEP;
    else

  • Tax simplifier statement pdf does not open in chrome, but works in IE

    Hi,
    we are using the Tax simplifier statement
    http://server:port/sap/bc/webdynpro/sap/hress_a_rep_in_ssitp?sap-wd-configId=HRESS_AC_REP_IN_SSITP&sap-accessibility=X#
    it is opening properly in Internet explorer, but in google chrome, it is not displaying, instead, giving following message.
    I already have latest adobe reader.
    is there anything, we can do to enable to open in chrome.
    i tried to enhance the component HRGRT_FC_DOCUMENT_DISPLAY to make the xstring OUTPUT_CONTENT-PDF_SOURCE to download the pdf, but that too works only in IE but not in chrome.
    is there any way to enable/make it available in chrome.
    Madhu_1980

    check out page 4 of this document:
    http://www.dec.ny.gov/docs/water_pdf/pluginsdoc.pdf

Maybe you are looking for

  • Is there a way to disable the itunes video pop up for music videos in itunes 11?

    I'm wondering if there is a way to disable the video window from popping up everytime I change a music video track in itunes in previous versions I always used play in artwork viewer but I accidentally updated and now that option is no longer there. 

  • Validation for Duplicate Invoice Entry

    Hi Everyone, Currently, it seems that SAP reviews an incoming invoice for reference field (invoice number), invoice date, vendor and company code.  If the comibation of the criteria are met, then a warning message appears stating to review the entry

  • SQL Server to Oracle port

    Hi, I am investigating the feasability of porting an application to Oracle that currently uses SQL Server as the back end database. To that end I have installed Oracle XE and I have a several questions. First, I guess because this is a demo, I cannot

  • New user session from an existing logged in user browser window

    Hi, I have a requirement that says, a new browser window should be popped up with a new user session from the current "logged in user" browser window when he clicks a button event. What I have with me is the "UserID" of that new user. Is it possible

  • How can i send mails from mac mail to a PC?

    When i send mails from my mac to a Pc (outlook) the mail arrive with a different format or including the mail as an atached document. How can i send mails from mac mail to a PC outlook with the same format?