Suggestion about string substitution

Hi guys,
I have been asked to modify a bunch of html files exported by a program named...mindmeister I guess.
It is a sort of faq and it is structured this way so the user can jump from a faq to another easily.
Well, I have something like 100 files or more and in any file I have the navigation repeated.
So in any page on there are 100 same links to other pages i order to be able to navigate through.
I have been asked to insert another page. This is the second time I have being asked to modify this faq list.
This is not a problem for me. The first time I just used Dreamweaver and I inserted easily another file. And I'm going to use it again because I cannot see how to do the same thing easily and simply
I just was wondering how could I done this without Dreamweaver.
I could use sed, sure, but imagine putting this in sed sintax:
This is the part of the navigation I have to modify in every file.
<div class="maintopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionedirelazioni.html"> 4. Estinzione di relazioni </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Dapartediprocuratore.html"> 4.1 Da parte di procuratore </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionefineanno.html"> 4.2 Estinzione fine anno </a></span>
</div>
<div class="maintopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="(NUOVO)FormularioA,ReT.html"> 5. (NUOVO) Formulario A, R e T </a></span>
</div>
Now suppose I wanted to add faq 4.3 Crappy hardcoded navigation due to crappy proprietary program unable to export the navigation as javascript
My new navigation should be this one:
<div class="maintopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionedirelazioni.html"> 4. Estinzione di relazioni </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Dapartediprocuratore.html"> 4.1 Da parte di procuratore </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionefineanno.html"> 4.2 Estinzione fine anno </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Crappy proprietary program.html"> 4.3 Crappy hardcoded navigation due to crappy proprietary program unable to export the navigation as javascript </a></span>
</div>
<div class="maintopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="(NUOVO)FormularioA,ReT.html"> 5. (NUOVO) Formulario A, R e T </a></span>
</div>
How would you do this? Doing this in sed would be unconfortable and time consuming.
I can do this with dreamweaver easily by just using code substitution in all files and the specifying to substitute this:
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionefineanno.html"> 4.2 Estinzione fine anno </a></span>
</div>
with this:
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Estinzionefineanno.html"> 4.2 Estinzione fine anno </a></span>
</div>
<div class="subtopic">
<img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Crappy proprietary program.html"> 4.3 Crappy hardcoded navigation due to crappy proprietary program unable to export the navigation as javascript </a></span>
</div>
I hope this is just my own and not unix filters limit.
This is just my curiosity. As I wrote before I can accomplish this task with dreamwaver, but I don't like much that approach.
I would like something more unix.
Edited because of errors notified by Procyon.
Last edited by ArchArael (2009-06-09 21:42:08)

I'm not sure how much simpler you expect to get than Procyon's example, to be honest.   It does exactly what you used to do (basic search and insert after).  What in your opinion would be more simple?
I can even expand it out and comment it for you to make it clearer:
for file in *.html; do # Process every html file in the current dir
sed -i '
/<div class="subtopic">/ { # If we see a line that looks like <div class="subtopic">, then perform the commands between { }
n; # Read in the following line from the file (ie <img src="blah blah...)
s/4\.2 Estinzione/&/; # Attempt to replace "4.2 Estinzione" with itself (ie. no end effect, performed for the sake of the next command)
T; # If the previous replacement failed, skip the remainder of the commands (ie. if "4.2 Estinzione" exists on this line, continue, otherwise stop)
n; # Read in the following line from the file (ie. </div>)
# The following 3 lines say "after the current line, insert this line"
a \ <div class="subtopic">
a \ <img src="Res/images/arrow.gif" alt=""><span class="unselect"><a href="Crappy proprietary program.html"> 4.3 Crappy hardcoded navigation due to crappy proprietary program unable to export the navigation as javascript </a></span>
a \ </div>
} # end of block of actions to execute when you see <div class="subtopic"> -- note, leave this quote-backslash here, it is necessary -->' \
$file # do the previous actions on the current HTML file
done
(note that this is still a valid sed script even with the comments - you could copy and paste this and it would run.

Similar Messages

  • Dynamic String Substitution in Eclipse with JSP

    Hi folks,
    I'm wondering if it is possible to dynamically change token for ant that are present in my jsp with the dynamic string substitution in jsp inside tomcat. Right now, I'm loading the bootstrap with my runner and pointing to my application. In preference, I've put some token like @STATIC_URL@ that should replace by something else. But It seem that Tomcat goes directly to the source of the jsp and does'nt really care about the string substition of eclipse. Is there a way to do that?

    Hi there,
    Since this is more of an Ant or an Eclipse question it is better to post the question in those forums / mailing lists as people on those lists will be able to help you better:
    Here's the link to subscribe to the Ant User Mailing List, once you subscribe send a new e-mail to the list:
    http://ant.apache.org/mail.html
    Forum for Eclipse:
    http://www-128.ibm.com/developerworks/forums/dw_forum.jsp?cat=28&forum=472

  • Installing JDeveloper on OSX : Fatal Error (during string substitutions)

    Following the instructions from: http://download.oracle.com/docs/cd/E12839_01/install.1111/e13666/ojdig.htm#BDCFFEJC
    and read about all the post in this forum, I am still not able to install JDeveloper 11.1.1.3 or 11.1.1.2
    MacOSX 10.6.5 with Java 1.6.0_22
    I did the steps as mentioned in the installation guide (make sure 64-bit is on top of the list in the java preferences tool + made the link)
    The installer has no problems finding java, but displays a "Fatal Error etc..." at 52%: the action going on then is "Performing String Substitutions"
    The log file looks as follows:
    2010-11-23 22:08:12,639 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,676 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,678 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,679 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,681 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.extra" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,681 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.saml2.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,682 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.coherence.integration" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,683 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.toplinkgrid" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,684 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.quickstart" feature-version="10.3.2.0"/>
    2010-11-23 22:08:12,685 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,686 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.launch" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,687 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.L10N" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,688 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config-security" feature-version="1.0.0.0"/>
    2010-11-23 22:08:12,689 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config" feature-version="7.0.0.0"/>
    2010-11-23 22:08:12,690 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.launch" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,690 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.L10N" feature-version="7.0.0.0"/>
    2010-11-23 22:08:12,693 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,716 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.sca" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,718 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.dotnet" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,720 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.xquery" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,722 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.gpr" feature-version="3.0.1.0"/>
    2010-11-23 22:08:12,723 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall" feature-version="6.2.0.0"/>
    2010-11-23 22:08:12,723 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.launch" feature-version="6.0.0.0"/>
    2010-11-23 22:08:12,724 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.L10N" feature-version="6.2.0.0"/>
    2010-11-23 22:08:12,726 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client" feature-version="3.2.1.0"/>
    2010-11-23 22:08:12,726 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client.L10N" feature-version="3.2.0.0"/>
    2010-11-23 22:08:12,728 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.ocm" feature-version="1.0.0.0"/>
    2010-11-23 22:08:12,729 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.paf" feature-version="1.1.0.0"/>
    2010-11-23 22:08:12,729 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.clone" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,005 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,005 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,007 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,008 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,009 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.extra" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,010 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.saml2.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,011 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.coherence.integration" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,011 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.toplinkgrid" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,015 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.quickstart" feature-version="10.3.2.0"/>
    2010-11-23 22:08:13,015 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,017 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.launch" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,017 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.L10N" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,039 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config-security" feature-version="1.0.0.0"/>
    2010-11-23 22:08:13,040 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config" feature-version="7.0.0.0"/>
    2010-11-23 22:08:13,040 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.launch" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,041 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.L10N" feature-version="7.0.0.0"/>
    2010-11-23 22:08:13,046 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,047 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.sca" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,048 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.dotnet" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,050 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.xquery" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,052 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.gpr" feature-version="3.0.1.0"/>
    2010-11-23 22:08:13,052 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall" feature-version="6.2.0.0"/>
    2010-11-23 22:08:13,053 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.launch" feature-version="6.0.0.0"/>
    2010-11-23 22:08:13,054 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.L10N" feature-version="6.2.0.0"/>
    2010-11-23 22:08:13,055 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client" feature-version="3.2.1.0"/>
    2010-11-23 22:08:13,066 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client.L10N" feature-version="3.2.0.0"/>
    2010-11-23 22:08:13,067 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.ocm" feature-version="1.0.0.0"/>
    2010-11-23 22:08:13,068 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.paf" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,069 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.clone" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,139 WARN [readCachedArchiveInfo] com.bea.plateng.wizard.installer.silent.tasks.ReadCachedArchiveInfoTask - Unable to read archive.bea from /var/folders/gQ/gQeTMB+nFpaLMIYi6zkEp++++TI/-Tmp-/
    2010-11-23 22:08:54,427 WARN [WizardController] com.bea.plateng.wizard.installer.gui.tasks.InstallSelectionSummaryTask - No JVMTargets selected for installation
    2010-11-23 22:09:17,095 WARN [Thread-5] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:11:06,516 ERROR [stringSubst_gui] com.bea.plateng.wizard.WizardController - Uncaught Exception
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.bea.plateng.common.util.StringsubsEngine.isValid(StringsubsEngine.java:1043)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:143)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:85)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:73)
         at com.bea.plateng.wizard.installer.gui.tasks.ProgressStringSubstTask.execute(ProgressStringSubstTask.java:150)
         at com.bea.plateng.wizard.gui.tasks.AbstractGUITask.run(AbstractGUITask.java:42)
         at java.lang.Thread.run(Thread.java:680)
    2010-11-23 22:12:01,325 WARN [WizardController] com.bea.plateng.wizard.installer.cleanup.tasks.CleanupShortcutsTask - No shortcuts to cleanup??
    2010-11-23 22:12:01,326 WARN [WizardController] com.bea.plateng.wizard.installer.cleanup.tasks.CleanupWinRegistryTask - No winregs to cleanup??
    Thanks in advance for some hints ...

    Official reply from Oracle via CS:
    "MacOSx 10.6.5 with Java 1.6.0_22 is not supported for JDeveloper version 11.1.1.2 and later. This has not been certified yet."

  • Suggestion about Report Generation Toolkit

    I'm adding report generation capabilities to a labview product test application.  The report will be 2-4 pages long with text and plots.  For other applications, I've used Word Templates in the past using VBA and Visual Basis 6.   I had been planning to use the Report Generation Toolkit, but when I tried to run the examples Labview doesn't find the installation of Office, (I'm using Windows Vista).  I've already read other posts about this particular problem and other issues with the Report Generation Toolkit for Microsoft Office, including upgrading to Office 2007 and beyond and I'm beginning to wonder if there might be a better longterm solution than the Report Generation using Microsoft Office.
    The two alternatives that I'm considering are HTML, and Simplicity AI's PDF toolkit (free),
       http://www.simplicityai.co.uk/products_services/products/pdftoolkit/
    which I still have to investigate.  I figure I could always generate in HTML and then print to PDF using something like PDFcreator (free). 
    If anyone has any comments/reviews/suggestions about the report generation from Labview, I'd appreciate hearing them.

    Hello PointOnePa,
    What examples were you trying to run? Here's a good example on how to create report in Excel
    http://zone.ni.com/devzone/cda/epd/p/id/1001
    Which version of LabVIEW and Report Gen you do you have? For Reort Gen 2009, it offers support for MS Office 2007/2003/XP
    http://digital.ni.com/public.nsf/allkb/45E349F79A55EAE6862575EF00614134  
    Andy Chang
    National Instruments
    LabVIEW Control Design and Simulation

  • How to a make a suggestion about new features i'd like to see in itunes

    how to a make a suggestion about new features i'd like to see in itunes?
    I can't find any link to do this. I found a page where you can request songs or an album to be added, but i can't find a page to submit my suggestions for itunes i have for new features i'd like to see

    As of now there is no good, direct link for feedback on iTunes itself. Writing Apple might be the best option, with the website feedback page perhaps the next best.

  • I need some detail solutions and suggests about below these problems ?

    I need some detail solutions and suggests about below these problems:
    Problem 1: SAP Management Console cannot start successfully
    • Problem 1.1: Click on SAP Management Console, but yellow light continues for a long period of time.
    • Problem 1.2: In DOS, startsap command cannot start SAP R/3.
    • Problem 1.3: Oracle 9i database automatically shutdown by itself.
    • Problem 1.4: There is very low disk storage left (say less than 50MB) in the hard disk where Oracle 9i database is installed in the server.

    3.1 - If you client copy from client 000, you need to go to SCC4 and set the client to customizing chnages allowed;
    3.2 - If you do a client copy from client 800 (the one that SAP delivers data in) you should have data. Client 000 is empty (almost).
    3.3 - You should be able to change the password of SAP* PASS user.
    I am not sure which version you are dealing with, but ERP2004 and ERP2005 allow you to change the password suring installation.
    Also, there is a parameter that can be maintained that allows you to log on as SAP*. If you set as not available, no one can log on.
    Hope it helps,
    Leonardo De Araujo

  • Your opinion - suggestions about my website

    I have published my website http://www.pcnetworks.gr (κατασκευή και φιλοξενία ιστοσελίδων) and I would apreciate your opinion and suggestions about the design of it and any ideas on how to make it more attractive. Thank you in advance

    pcnw,
    You might elaborate on the present use of colours, particularly the triple colours used on the first page at the top and at the bottom for the three levels, and also used elsewhere. In this connexion, you might consider designating a colour to each level and use that in the further pages, where the red appears for all as it is now, and to have a fourth general colour for other aspects/purposes.
    The (final) colours chosen could reflect and give an impression of the levels: what they offer and what they require.

  • Suggestions about query optimization

    Hello,
    i have the following query i would like to write in the other way or add indexes/hints/pin in memory if it's possible so it could be better optimiized.
    Query is :
    SQL> explain plan for
      2  with a as
      3  (select * from
      4  (select msisdn,valid_from
      5  from prepaid_options_option
      6  where active =1 and option_id in (1,2) )a )
      7  select count(*) from [email protected], a
      8  where transaccessflag=6
      9  and cgpacallingparty=a.msisdn
    10  and optionid IN (16,17,18)
    11  and timestamp > a.valid_from
    12  and callcharge=0
    13  and internalcause='254';
    Explained.
    SQL> r
      1* select * from table(dbms_xplan.display)
    PLAN_TABLE_OUTPUT
    | Id  | Operation            |  Name                   | Rows  | Bytes | Cost  | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT     |                         |     1 |   148 |   529K|        |      |
    |   1 |  SORT AGGREGATE      |                         |     1 |   148 |       |        |      |
    |*  2 |   HASH JOIN          |                         |     1 |   148 |   529K|        |      |
    |   3 |    REMOTE            |                         |    82 |  9922 |   529K| WENT   | R->S |
    |*  4 |    TABLE ACCESS FULL | PREPAID_OPTIONS_OPTION  |  4506 |   118K|    10 |        |      |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       2 - access("CALL_RECORD"."CGPACALLINGPARTY"="PREPAID_OPTIONS_OPTION"."MSISDN")
           filter("CALL_RECORD"."TIMESTAMP">"PREPAID_OPTIONS_OPTION"."VALID_FROM")
       4 - filter("PREPAID_OPTIONS_OPTION"."ACTIVE"=1 AND ("PREPAID_OPTIONS_OPTION"."OPTION_ID"=1
                  OR "PREPAID_OPTIONS_OPTION"."OPTION_ID"=2))
    Note: cpu costing is off
    20 rows selected.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for HPUX: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    SQL> select * from [email protected];
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for HPUX: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - ProductionI think that the main problem could be in the remote partitioned table that is quite big .
    SQL> SELECT SUM (BYTES) / 1024 / 1024 / 1024 GB
      2    FROM [email protected]
      3  WHERE segment_name = 'CALL_RECORD';
            GB
    181.453125
    SQL> select num_rows,last_analyzed
      2   from [email protected]
      3   where table_name='CALL_RECORD';
      NUM_ROWS LAST_ANA
    928646610 12.03.09Can some suggestion about making changes in this query/objects be given based on this informations ?
    Thank you very much.

    Thans for the reply Urs,
    by changing that query as you suggested, i got different plan, although i can't fully understand if it means that it's better in the mean of faster execution time because i can't(yet) run those queries to see.
    new plan is :
    SQL> explain plan for
      2  with a as 
      3  (select msisdn,valid_from
      4  from prepaid_options_option
      5  where active =1 and option_id in (1,2) )
      6  select /*+ driving_site(c) */count(*) from [email protected] c,a
      7  where transaccessflag=6
      8  and cgpacallingparty=a.msisdn
      9  and optionid IN (16,17,18)
    10  and timestamp > a.valid_from
    11  and callcharge=0
    12  and internalcause='254';
    Explained.
    SQL>
    SQL>
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation              |  Name        | Rows  | Bytes | Cost  | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT REMOTE|              |     1 |    78 |   529K|       |       |        |
    |   1 |  SORT AGGREGATE        |              |     1 |    78 |       |       |       |        |
    |   2 |   NESTED LOOPS         |              |     1 |    78 |   529K|       |       |        |
    |   3 |    PARTITION RANGE ALL |              |       |       |       |     1 |   128 |        |
    |*  4 |     TABLE ACCESS FULL  | CALL_RECORD  |     1 |    42 |   529K|     1 |   128 | WENT   |
    |   5 |    REMOTE              |              |     1 |    36 |    10 |       |       | !      |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       4 - filter("A2"."TRANSACCESSFLAG"=6 AND (TO_NUMBER("A2"."OPTIONID")=16 OR
                  TO_NUMBER("A2"."OPTIONID")=17 OR TO_NUMBER("A2"."OPTIONID")=18) AND "A2"."CALLCHARGE"=0 AND
                  "A2"."INTERNALCAUSE"=254)
    Note: fully remote operation, cpu costing is offas we can see the cost remained the same but there are some new columns as pstart and pstop.
    what do they mean?
    I think that it would be good to make statistics on that table , do you guys agree ?
    Also shoud i consider parallel hint option for that query ?

  • String Substitutions with PL/SQL Function

    Hello, i user APEX 4.2.1.00.08 in Database 11g
    I new in apex and a try to use String Substitutions.
    When I define a String like CONST with static value like '999' in Edit Applications Definition it's work fine.
    But I need to define the same String 'CONST' but with value to return from PL/SQL function like.. Package.function
    It's Possible ??
    Thanks !!

    No, you'll need to use application items instead - or pass the value as parameter to your function.
    Passing parameters like this makes for good practice anyway, since your modules become more testable outside the apex environment, and more robust.

  • String substitution on Weblogic

    Hi experts.
    As you know, the WLS domain template provides the string substitution mechanism.
    (startscript.xml and stringsubs.xml)
    Here you should specify your entries that will be processed during the template applying.
    After being applied, these entries are "registered" in DOMAIN_HOME/init-info/ startscript.xml and startscript-unsub.xml
    Can these strsubs tasks be modified later?
    1) Is there any UI (or WLST functions) available for strsubs modification?
    Sure, I can edit xml files, but I think that it is not the convinient (and graceful) way to do it.
    2) As there is the startscript-unsub.xml file,
    does it mean that these string substitutions can be rolled back later?
    If yes - then how can it be done?
    Thanks

    There is currently no mechanism to perform string substitution after the config.xml has been created.

  • Suggestions about the best tool for quality check for an ADF application

    Hi All,
    I need a few suggestions about the best tool for quality check in our ADF applicaiton.
    ours is a small size WebCenter Portal application which neither uses any task flows nor consumes any portlets.
    It has many jspx pages that use ADF components like table etc, consume web services using web service clients, and has some java classes.
    We have come across below option to implement the code quality tools.
    1. Jdeveloper inbuilt Staus option in View tab
    2. PMD extension for Jdeveloper
    3. Red Samurai
    Few more suggestions or best practices would be really helpful.
    Thanks,
    Usha

    Some general ADF / Webcenter coding standards -
    http://umeshagarwal24.blogspot.com/2012/06/adf-coding-standards-check-points.html
    You can use JAudit as well as mentioned in the blog.

  • I am novice to LabView programmin​g. Any suggestion about the the good programmin​g style will be of great help. Thanks.

    I just wrote a small program for reading a ASCII file and writting the numbers to Arrays. Files are enclosed for reference. Any suggestion about the programming style quality or what is the best way for LabView programming will be of great help. Thanks in advance.
    Attachments:
    Reading_Text_File_into_Array.vi ‏32 KB
    37a8176a.cr5 ‏1 KB

    I'm home from work today so ... here's my modification to your VI. Use it with you existing data. As you get more exposed to LV's existing tools, you'll discover the shortcuts. No loops are necessary for your task.
    Hope this helps.
    - Kevin
    Attachments:
    Reading_Text_File_into_Array_New.vi ‏47 KB

  • My ipad was stolen today in China today. Any suggestions about police report?

    They haven been connected to a wireless network. Ialready sent the wipe order. Any suggestions about police report with serial ?

    It's doubtful you'll get it back.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • Iphoto causes half my screen to be reversed (screen split with the right side half now on the left side) and computer freezes. Any suggestions about a fix?

    iphoto causes half my screen to be reversed (screen split with the right side half now on the left side and the left hand side on the right.) and screen gets multiple blurry copies. Also the computer freezes. Any suggestions about a fix? Can I delete iphoto and reinstall? If so, will I lose my photos?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • String substitution in a file

    What is the appropriate strategy to do string substitution within a file. Is it simply loading the contents of the file into a string, do the substitution on the string, then rewrite the string back to the same file? Is there a regex class that performs string substitution on a file?
    Thanks

    Depends. If the substitute string is the same length, than RandomAccessFile can be use affectively. Otherwise, read in the old file and write out the new one with the changes, then delete the old one.
    Regex is avail and is used indirectly via String methods such as replaceAll, etc.
    Refer to java.io. and java.lang.string.

Maybe you are looking for

  • Time Machine and backing up external hard drives

    Time machine will not back external hard drives I have connected to my Mac Pro. It works fine with the 3 hard drives mounted in the computer. Is this the way Time Machine is intended to work or am I doing something wrong? Thanks in advance for your a

  • Can connect wireless speakers to my airport express

    im looking to have 2 aiport express units in my house, one for the kitchen area and one for the bedroom/bathroom. i understand i will not be able to stream 2 different playlists through the 2 different airports at the same time, is that correct? if i

  • Insert statement stores multiple records...

    Hi there. ive been having trouble with my insert statements. for some reason unknown to me, the following code creates two entries in the same table: SELECT product_id_sequence.nextval into products.prod_id from dual; INSERT INTO PRODUCTS VALUES('PRD

  • Skype group chat breaking when my internet goes do...

    So for the past few days my internet has been unexpectedly going down at random times. This is normally not too big an issue but whenever it happens while I am sending a message in a group chat, the whole thing breaks meaning no new messages appear a

  • I want to know why display core dump when arch starts!

    I want to know why display core dump when arch starts! 2008. 06 iso! u can see display coredump in starting......