HTML Limitations in ACV

Hi ,
I am experiencing trouble when it comes to Web content inside Adobe Content Viewer.
I am developing simple HTML widgets for my folio and embedding them with Web Content form Folio Overlays panel.
Thing is that some very basic Javascript functions don't seem to work at all. For instance, regular Alert messages just don't display. HTML5 geolocation doesn't work too. But it is way too difficult to debug this because in ACV there is no way to debug HTML.
By the way all those widgets are already tested and working fine in Safari and Google Chrome first.
Does anybody know what are the limitations in Javascript code within ACV? I am testing my files using USB to iPad preview form Folio Overlays panel.
Thanks.

There is a 20mg limit on downloads over 3G, regardless of carrier.

Similar Messages

  • HTML overlay on top of Flash

    I see that using a javascript library like JQuery, I can
    create overlays from one HTML page to another (code below). Our
    Flash designer is suggesting that perhaps the JQuery function could
    be modified to include the names of the external HTML pages so that
    he could just reference this function to call up the overlays. Is
    something like this possible? If not, is there an established way
    of calling HTML overlays from a Flash .swf perhaps using
    ActionScript?
    <%@ Page Language="C#" AutoEventWireup="true"
    CodeFile="overlay_external.aspx.cs" Inherits="overlay_external"
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    <title>Overlay as New Page</title>
    <script src="jquery-1.3.1.js"
    type="text/javascript"></script>
    <script src="
    http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <!-- include overlay script -->
    <script src="
    http://static.flowplayer.org/js/jquery.overlay-1.0.1.min.js"></script>
    <script src="jquery.expose-1.0.0.js"
    type="text/javascript"></script>
    <link rel="stylesheet" type="text/css"
    href="overlay-minimal.css"/>
    <!-- make all links with rel attribute to open overlays
    -->
    <style type="text/css">
    /* use a semi-transparent image for overlay */
    #overlay {
    background-image:url(images/transparent.png);
    color:#efefef;
    /* container for external content. uses vertical scrollbar if
    needed */
    div.wrap {
    height:441px;
    overflow-y:auto;
    </style>
    </head>
    <body>
    <form id="form1" runat="server">
    <!-- external page is given in href- attribute (as it
    should be) -->
    <a href="ExtOverlay.aspx" rel="#overlay">
    <!-- remember that you can use any element inside anchor
    tag -->
    <button type="button">Show external page in
    overlay</button>
    </a><br />
    <a href="ExtOverlayRegister.aspx" rel="#overlay">
    <!-- remember that you can use any element inside anchor
    tag -->
    <button type="button">Show Register external page in
    overlay</button>
    </a><br />
    <a href="ExtOverlayVote.aspx" rel="#overlay">
    <!-- remember that you can use any element inside anchor
    tag -->
    <button type="button">Show Vote external page in
    overlay</button>
    </a>
    <!-- overlayed element -->
    <div class="overlay" id="overlay">
    <!-- the external content is loaded inside this tag
    -->
    <div class="wrap"></div>
    </div>
    <!-- make all links with rel attribute to open overlays
    -->
    <script>
    $(function() {
    // if function argument is given to overlay it is assumed
    onBeforeLoad event listener
    $("a[rel]").overlay(function() {
    // grab wrapper element inside content
    var wrap = this.getContent().find("div.wrap");
    // load only for the first time it is opened
    wrap.load(this.getTrigger().attr("href"));
    </script>
    </form>
    </body>
    </html>

    Limitations in the Android 2.x rendering model require Flash content to always be rendered as the topmost object. 
    It gets better in Android 3.x, but I'd highly recommend staying away from pop-ups and overlapping interactive elements where possible.  It doesn't mesh well with the browsing experience in the context of small screens and touch input (you're always going to have wasted real-estate with a pop-up), and you'll avoid a lot of frustration.

  • How to perform a classic Mac OS search in Tiger

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • WHAT now with OSX search function?

    Okay, i just searched one of my hard drives for pdf files, and search returns 0 files.
    HOW can this be!? I would use profanity here because it's plainly warranted, but Apple doesn't like that. I think from now on, i'll use the term "OS X" as a substitute for profanity.
    So, I am looking at several pdf files in an OS X folder on this OSX drive, and i know there are more.
    So what the OS X is going on? Thanks.

    You should use spotlight to stop indexing an an hd.  Spotlight puts a file on the hd that says do not index.   I wrote this up awhile ago.
    In an this post I will describe how to perform a classic Mac OS search. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger.  I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard. 
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    How do you get to this interface?
    Perform the Classic Mac OS search with a Spotlight database.
    Click on the desktop to access the Finder.
    click on File then click on find.
    Pick what folder you wished to search.  Click on Others... to select a folder. Click on the plus sign to select the folder you wish to search.  Be sure the selected folder in the list is the only one checked.  In the first example I picked:  /Users/mac/Desktop/iMac/z-find/
    The "Search for" field on the first line is used for spotlight. Avoid using this box.
    Click on the plus symbol to the right of an input options. Click on the double arrow to the right of the first option. Go down to the name field.
    You can now search for the contents of a filename. I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window.  There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    I created the z-find folder on my Macintosh-HD then copy it over to my Spotless flash drive.  This means both searches searched for it the same file names.  See below for the list of file names.
    This is the result of the search:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html     {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel.  Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I do not know how this works internally. I successfully a search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on  delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    mac $ pwd
    /Volumes/Spotless
    mac $ ls -ld .Spotlight-V100
    drwx------   4 mac  staff  136 Jan 22 23:51 .Spotlight-V100
    mac $ ls -l .Spotlight-V100
    total 16
    -rw-------   1 mac  staff  55 Jan 22 23:51 _IndexPolicy.plist
    -rw-------   1 mac  staff  58 Jan 22 23:51 _rules.plist
    _IndexPolicy.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Policy</key>
        <integer>3</integer>
    </dict>
    </plist>
    _rules.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Spot_Auto</key>
        <integer>1</integer>
    </dict>
    </plist>
    I put these files on my Macintosh-HD and Spotless partitions.
    !http://farm4.static.flickr.com/3363/3219766624_63687ff9a7.jpg?v=0!
    Here is the list of files:
    mac $ pwd
    /Volumes/Spotless/iMac/z-find
    mac $ ls -RaF
    .DS_Store
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
    bash-copy-invisible-attr/
    bash-folder__green/
    ./.bash-copy-initial-dot:
    .DS_Store
    bash-backup-inside-bash.html
    ping_command_as_Give.html
    ./bash-copy:
    .DS_Store
    bash-backup-inside-bash-copy.html
    ping_command-bash-copy.html
    ./bash-copy-invisible-attr:
    .DS_Store
    ping_command_as_Give.html
    ./bash-folder__green:
    .DS_Store
    ping_command_as_Give.html
    mac $
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html     {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for  field seems to give the same result as using the name field.
    Related tips:
    • by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    If you haven't run Leopard, note that finding stuff is different than Tiger's.
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • "Searching for files by name"
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    Alternatives:
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the Terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find  -iname "*bash-*"  -exec ls -dF  {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery__yellow__4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r   "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing  "bash-" in  the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input:    grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery__yellow__4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing  "bash-" in  the directory "/Users/mac/Desktop/iMac/z-find".  The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    Robert

  • Minimum font size RichEditableText

    I'm using RichEditableText (with a TextConverter textFlow) to display emails that have been received which works great for bot clear text as well as HTML emails, however sometimes the HTML is really tiny.
    Now I've looked at this for a while and it always appears to be caused by a fault in the HTML markup in the received email.
    Some had a tag like ...<FONT SIZE="1"><SPAN STYLE='font-size:9.0px'>... in it and others had other similar reasons for it to appear very small.
    I obviously can't control what tags different mail clients put in their HTML mails, but does anyone know if there's a way of setting like a minimum font size for this RichEditableText so even though the HTML says it should be font size 1, it's actually displayed at the minimum size?
    I'm currently using this:
         <s:RichEditableText id="noteText"     selectable="true" editable="false" textFlow="{TextConverter.importToFlow(theEmail, TextConverter.HTML_FORMAT)}" />
    Thanks
    Skip

    Hmm, unfortunately this means i'll have to scan and reformat HTML as it comes in and replace <font size=xx> so the minimum size is i,e, 10px.
    All doable, but just a bit frustrating that there still is no simple way to display some basic HTML (and I don't want to go down the iFrame route).
    Oh, I also noticed the rendering of textFlow HTML in a richtexteditor is extremely slow and it stops rendering when it comes across:
    I'll file seperate bug reports for those as well.
    Luckily the Halo Text still does the trick even with it's known HTML limitations.
    Ah well. Thanks anyway.
    Skip

  • RRMX and RRMXP

    Hi All,
    I just know about these T-Codes. From my testing, RRMX enable me to open Bex Analyzer from SAP GUI, this excel session is already connected to SAP.
    RRMXP is similar, but this one can open query or workbook directly. Strange thing is that the SAP GUI session will be closed automatically.
    Questions :
    1. What are the usage of these two T-Codes ?
    2. Why SAP sessions are closed by system after executing RRMXP ?
    Thanks.

    Hi Handako,
    EP is having the inbuilt BEx Web Analyzer.  Why you want to create a Transactional iview with the transaction RRMX?
    As for as the minimal authorization profile needed for an user to be to execute transaction code RRMX, and run the BEx query, first you have to manually initilize S_RS_TOOLS authorization object to your User ID.
    > http://sapbimeterials.blogspot.com/2009/01/troubleshooting-bi-70-bex-analyzer.html
    Limiting the sessions
    >SystemAdmin->systemConfig->Serviceconfiguration->Applications->com.sap.portal.appintegrator.sap->Services->Transaction_Configuration
    Pl. refer the links & try out the session limiter.
    Thanks,
    Arun Bala G

  • Tcov Code Coverage Libraries missing from Sun Studio 12!!!

    Hi,
    When I try to collect coverage statistics using the -xprofile=tcov I get the following message
    f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
    f90     -xprofile=tcov -w0 -C  -c ./gcovsrc.f90 -o ./scovsrc.o
    f90     -xprofile=tcov -w0 -C  -c ./gcovdrv.f90 -o ./scovdrv.o
    f90      -xprofile=tcov -w0 -C  -o ./five82scov.exec ./scovdrv.o ./scovsrc.o /usr/lib/libg2c.so.0 
    f90: Cannot find /opt/sun/sunstudio12/prod/lib/bb_link.oThis file does not seem to be within the packages provided in sun studio 12!!! (linux/x86 editon). I then decided to get the latest patches and now I get the following message
    f90     -xprofile=tcov -w0 -C  -c ./intfaces.f90 -o ./scovintfaces.o
    /opt/sun/sunstudio12/prod/bin/f90comp: error while loading shared libraries: libyabe.so: cannot open shared object file: No such file or directoryThis file is also nowhere to be found!!! Have the sun developers decided to leave out crucial libraries?!?
    Regards

    This is not very nice from the compiler, but at least it is documented here:
    http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/fortran_95.html#limitations
    Quote:
    The -xprofile=collect and -xprofile=tcov options should not be used when building shared libraries on Linux.

  • Perform a classic Mac OS search

    I am looking for people to verify these results in Leopard. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard. I am working on a contribute to the User Tips Library.
    Background:
    http://discussions.apple.com/thread.jspa?threadID=1878391&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=1861415&start=0&tstart=0
    =====================================================
    In an this post I will describe how to perform a classic Mac OS search. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger.
    The results will be slightly different with spotlight database on the partition and without the database on the partition. With the database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without the database, you will see Unix hidden files. Using the special features nulls out the search. The "for search" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    How do you get to this interface?
    Perform the Classic Mac OS search with the spotlight database.
    Click on the desktop
    File: find
    Pick what folder you wished to search. Click on the Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    The "search for" block on the first line is used for spotlight. Avoid using this box.
    Click on the plus symbol to the right of an input options. Click on the double arrow to the right of the first option. Go down to the name field.
    You can now search for the contents of a filename. I searched for: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window. There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3366/3217404578_16ebe86446.jpg?v=0!
    The bottom window contains a list of all my files that I thought I might find in the folder, z-find.
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3386/3216549989_d001213824.jpg?v=0%20depends!
    The bottom window contains a list of all my files that I thought I might find in the folder, z-find.
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I do not know how this works internally. I successfully a search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3086/3218916497_2e7091b1f4.jpg?v=0!
    mac $ pwd
    /Volumes/Black-Gold
    mac $ ls -ld .Spotlight-V100
    drwx------   4 mac  staff  136 Jan 22 23:51 .Spotlight-V100
    mac $ ls -l .Spotlight-V100
    total 16
    -rw-------   1 mac  staff  55 Jan 22 23:51 _IndexPolicy.plist
    -rw-------   1 mac  staff  58 Jan 22 23:51 _rules.plist
    _IndexPolicy.plist
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple. com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Policy</key>
        <integer>3</integer>
    </dict>
    </plist>
    _rules.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple. com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Spot_Auto</key>
        <integer>1</integer>
    </dict>
    </plist>
    I put the files on my flash drive, black-gold, which does not have a slotlight index.
    !http://farm4.static.flickr.com/3363/3219766624_63687ff9a7.jpg?v=0!
    Here is the list of files:
    mac $ pwd
    /Volumes/Black-Gold/iMac/z-find
    mac $ ls -RaF
    .DS_Store
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html
    bash-copy/
    bash-copy-invisible-attr/
    bash-folder__green/
    ./.bash-copy-initial-dot:
    .DS_Store
    bash-backup-inside-bash.html
    pingcommand_asGive.html
    ./bash-copy:
    .DS_Store
    bash-backup-inside-bash-copy.html
    ping_command-bash-copy.html
    ./bash-copy-invisible-attr:
    .DS_Store
    pingcommand_asGive.html
    ./bash-folder__green:
    .DS_Store
    pingcommand_asGive.html
    mac $ 
    mac $ 
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3429/3218916245_c73ed8cfab.jpg?v=0!
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot    {folder}
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Does find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features null its out the search.
    The for search field seems to give the same result as using the name field.
    Robert

    Thanks for your quick reply. It will take me a bit to read through everything.
    I am wondering if you could read through a tiger post on search. A user doesn't like the Tiger search and I am wondering if Leopard will would solve his concerns.
    http://discussions.apple.com/message.jspa?messageID=8882253#8882253
    The complete discussion:
    http://discussions.apple.com/thread.jspa?threadID=1861415&tstart=0
    Robert

  • Include rownum in toplink

    When we form the query using Expression in toplink. How we can add rownum as one of the field in the query??

    To use ROWNUM for pagination in 10.1.3.3 you will need to extend the framework. Below is a QueryRedirector that can be used with any read query to translate the firstResult and maxRow configurations into Oracle specific ROWNUM SQL.
    package oracle.toplink.extension.queryframework;
    import oracle.toplink.internal.databaseaccess.DatasourceCall;
    import oracle.toplink.internal.sessions.AbstractSession;
    import oracle.toplink.publicinterface.DatabaseRow;
    import oracle.toplink.queryframework.*;
    import oracle.toplink.sessions.Record;
    import oracle.toplink.sessions.Session;
    * This is an example of how a TopLink QueryRedirector can be used to extend the
    * query framework and provide Oracle specific ROWNUM filtering. The redirector
    * forces the generation of the SQL for the query and wraps it in additional
    * SQL clauses to limit the results being returned.
    * http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    * Limitations/Issues:
    * - Code provided as is for 10.1.3.3. The complete feature has been added to
    *   Oracle TopLink 11gR1 and EclipseLink
    * - Does not support limiting the rows on batch reading of relationships
    * @author Doug Clarke
    * @since Oracle TopLink 10.1.3.3
    public class OracleRowNumRedirector implements QueryRedirector {
        public static final String PREFIX =
            "SELECT * FROM ( SELECT a.*, ROWNUM rnum FROM (";
        public static final String MAX_COMPARE = ") a WHERE ROWNUM <= "; // MAX
        public static final String MIN_COMPARE = ")  WHERE rnum  >= "; // FIRST
        public Object invokeQuery(DatabaseQuery query, Record arguments,
                                  Session session) {
            AbstractSession sessionImpl = (AbstractSession)session;
            DatabaseRow argsImpl = (DatabaseRow)arguments;
            // Ensure the query is read and the max value is set
            if (query.isReadQuery() && ((ReadQuery)query).getMaxRows() > 0) {
                query.checkPrepare(sessionImpl, argsImpl);
                SQLCall call = (SQLCall)query.getCall();
                ReadQuery readQuery = (ReadQuery)query;
                boolean usesBinding = call.usesBinding(sessionImpl);
                // Cache the values
                int maxValue = readQuery.getMaxRows();
                int firstValue = readQuery.getFirstResult();
                // Compute the string values for the SQL creation
                String max = usesBinding ? "?" : Integer.toString(maxValue);
                String first = usesBinding ? "?" : Integer.toString(firstValue);
                // Provide the custom SQL and reset the call so the query does not generate its own SQL
                call.setSQLString(PREFIX + call.getSQLString() + MAX_COMPARE +
                                  max + MIN_COMPARE + first);
                query.setCall(call);
                // Clear the previous first & max values to ensure the JDBC limits are
                // not applied
                readQuery.setFirstResult(0);
                readQuery.setMaxRows(0);
                call.setFirstResult(0);
                call.setMaxRows(0);
                // If binding is enabled then add the values to the call's parameters
                if (usesBinding) {
                    call.getParameters().add(maxValue);
                    call.getParameterTypes().add(DatasourceCall.LITERAL);
                    call.getParameters().add(firstValue);
                    call.getParameterTypes().add(DatasourceCall.LITERAL);
            // Continue the execution with the query as is
            return query.execute(sessionImpl, argsImpl);
    }To use it you simply need to configure the redirector on your query prior to execution:
            ReadAllQuery raq = new ReadAllQuery(Employee.class);
            raq.addAscendingOrdering("id");
            raq.setFirstResult(6);
            raq.setMaxRows(10);
            raq.setRedirector(new OracleRowNumRedirector());Doug

  • Photoshop CS4 cursor alignment in Transformation inaccurate

    Hi there,
    Noticed that the cursor in PS CS4 doesn't align precisely over the transformation bounding box, either the corners or the sides. I've used both a Wacom Intuos3, Intuos4 and a standard mouse and the Transformation prompts (either scaling arrows, or perspective) doesn't appear if the cursor is directly above the control handle. Rather you need to hover the cursor pixels away from the handles in order for the prompt to be visible, let alone getting the transformation to work accurately. (I am aware that Rotation doesn't kick in unless the cursor is further out of the bounding box).
    This is a rather hit-and-miss process, and sometimes the transformation don't kick in at all. Zooming in doesn't help either. I have updated all patches with Intuos3 and 4, and the current PS is 11.0.1.
    When I launch PS CS3, everything is back to normal. Transformations are more accurate as it's easier to see and manipulate the transformations as I can actually see what I'm doing. Is this a normal bug? And anyone found a way to sort it out? Any advice greatly appreciated.

    Reynolds (Mark) wrote:I personally never found, or been given a link to, any resource which actually specifies WHICH graphics cards are supposed to be compatible with CS4's Open GL interpretation, and which aren't.
    http://kb2.adobe.com/cps/405/kb405711.html
    limitations:
    http://kb2.adobe.com/cps/404/kb404898.html

  • Cant get layout to centre

    Hi all, newbie almost. Did some page authoring a while ago. Getting back into it. Familiar but not back up to speed on HTML, limited css.
    Using Win 7, Dreamweaver CS5. Firefox 7.0.1
    Imported the page from MS publisher 2010.
    Having trouble getting the pages to display centered. All coming out with a left or right justification.
    Self extractor here http://members.iinet.net.au/~mgalvin/Web%20pages/Redcliffe/

    This is why in part http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fpleysier.com.au%2FRedcliffe%2F
    As a starter, you are not using a program that is conducive for designing/developing web pages.
    The layout is a very simple one and I think you should stick to the following structure
    HTML
         HEAD
         BODY
              HEADER    
              NAV
              ARTICLE
              ASIDE
              FOOTER
    There is very good pre-defined layout when you open a new page called HTML5: 2column fixed, right sidebar, header and footer that you can use to start your project off.
    Gramps
    PS For John Waller, have a look here http://pleysier.com.au/Redcliffe/

  • Zimbra Security Question:  Allow / Block embedded javascript or tags?

    Technical requirement: Ability to send in plain text and rich text and HTML (limited HTML, no javascripting or harmful tags)
    Can javascript or tags be embedded in an email through the Zimbra interface?
    Also, Zimbra has developed ALE (AJAX Linking and Embedding), a technology that allows users to embed applets into e-mail. For example, users can share a live spreadsheet in e-mail, rather than sending copies back and forth. Are applets a potential security risk? Can they be blocked?
    Thanks for your time.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • MY EMAIL WONT WORK SINCE THE MOBILEME CHANGEOVER

    I use my email for business purposes and ever since early Friday morning I have not been able to receive ANY email. What's going on?!?!

    Hi,
    I use my email for business purposes
    I realise this isn't what you want to hear, but:
    http://www.apple.com/legal/mobileme/en/terms.html
    Limitations on Use
    You agree to use the Service only for purposes as permitted by these TOS and any applicable law, regulation, or generally accepted practice in the applicable jurisdiction. *The Service is designed for personal use and _not intended to be used for commercial business purposes_...*
    If business use is essential to you I can only recommend you use an email provider that can guarantee uptime.

  • Flash Player Server?

    This is just a thought and I like to know if this would be feasible.
    It seems everyone believes HTML 5 is the future and I do understand there are some cross compiling efforts being researched. I do not believe anyone wants to lose the investment they have in their current applications nor do they want to rewrite them. So I was wondering if it would be possible to serve the necessary portions of a flex app as HTML. Does this make sense? I guess my idea being that rather than loading an entire 4 MB SWF the server would send to the client only what was necessary for the current screen as HTML. I do not know if this would be possible but I do know I do not like JavaScript I would love to continue far into the future using action script.
    I find it interesting that the writing appears to be on the wall for the future of flash and all the bad talk of plug-ins that Google has their own little project that speaks of using a virtual machine which in my estimation is still additional software to get past HTML limitations and cross browser issues.

    This is just a thought and I like to know if this would be feasible.
    It seems everyone believes HTML 5 is the future and I do understand there are some cross compiling efforts being researched. I do not believe anyone wants to lose the investment they have in their current applications nor do they want to rewrite them. So I was wondering if it would be possible to serve the necessary portions of a flex app as HTML. Does this make sense? I guess my idea being that rather than loading an entire 4 MB SWF the server would send to the client only what was necessary for the current screen as HTML. I do not know if this would be possible but I do know I do not like JavaScript I would love to continue far into the future using action script.
    I find it interesting that the writing appears to be on the wall for the future of flash and all the bad talk of plug-ins that Google has their own little project that speaks of using a virtual machine which in my estimation is still additional software to get past HTML limitations and cross browser issues.

  • What works with plugin 1.3 fails with plugin 1.4

    Summary: What works under plugin 1.3 doesn't work under plugin 1.4 !!
    Background: Weblogic 5.1 server, Verisign certificate signed applet + server certificate,.... The applet need to communicate with servlets and EJB's on the server.
    Problem: everything works ok on a plugin 1.3 client - but with plugin 1.4 I get:
    java.security.AccessControlException: access denied (java.net.SocketPermission import.toldskat.dk:443 connect,resolve)
    java.security.AccessControlException: access denied (java.net.SocketPermission import.toldskat.dk:443 connect,resolve)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    ....snip....
    Checking newsnet: Appearently I'm not alone with this problem.
    [email protected] have the same problem, it seems - but his newsnet post has remained unanswed for 4 months - and I cheched with him that he hasn't found a solution
    http://groups.google.com/groups?q=sun+plugin+1.4+java.security.AccessControlException&hl=en&lr=&ie=UTF-8&selm=b41a32b9.0208211012.137914c9%40posting.google.com&rnum=3
    Some people seem to mean that the security part of plugin 1.4 has been gutted since 1.3. Check:
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=g9k89.2091%24NZ.76299%40bgtnsc05-news.ops.worldnet.att.net&rnum=3&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3Dsun%2Bplugin%2B1.4%2Bcertificate%2Bproblem
    They refere to document:
    http://java.sun.com/products/plugin/1.2/docs/nsobjsigning.html#limitation
    where it supposedly says that you need to import certificate into the browser before accessing the signed site (this is new, not necessary with plugin 1.3). Tried it quickly - no luck yet.
    This is a serious problem to us at a company here in Denmark, running a major EJB solution handling all the country's import. So I (and probably also [email protected] would appreciate an answer.
    regards
    Stig Valentini
    [email protected]

    The following examples are for a win 2000 machine, for linux
    you have to use alternative paths but I think the commands
    are about the same.
    The SUN jre doesn't care about IE settings, if an applet is signed it will ask the user "do you trust", if
    the user chooses yes or always the applet can do pretty much anything.
    Because anybody can sign an applet so it will pop up the do
    you trust dialog I prevent this dialog from popping up by
    adding the following to the
    C:\Program Files\Java\j2re****\lib\security\java.policy
    under grant { [/b]
    [color red]
    permission java.lang.RuntimePermission "usePolicy";
    [color]
    You now need to set up special permissions for sites that
    need it, signed applets get no special treatment since you
    specified in the java.policy that policy should allways be
    used.
    When your applet needs to do something it normally could
    not do (applet security) [b]and it needs to do this
    when a user clicks on a html button (applet method called
    from javascript), than all the signing and policy settings
    in the world wouldn't work Unless you grant all permission
    to all code.
    This is because the Java Plug-in executes methods with
    applet sandbox security restrictions.
    http://archives.java.sun.com/cgi-bin/wa?A2=ind0404&L=java-security&F=&S=&P=4012
    To solve this you can start a new thread that checks ...
    times a second if a variable meets certain conditions.
    These conditions are changed with public methods called
    from JavaScript. When a variable meets certain Conditions
    this thread will start the method that will perform
    normally restricted tasks.
    Here is an example where the applet doesn't work
    (the batchfile, html file are OK)
    Note that running this code with Mozilla on my w2k machine
    crashes Mozilla (not on my Fedora machine)
    Batch file to sign the applet: (please note this will
    delete some files)
    del *.cer
    del *.com
    del *.jar
    del *.class
    javac -classpath ".;C:\Program Files\Java\j2re1.4.2_04\lib\plugin.jar" test.java
    keytool -genkey -keystore harm.com -keyalg rsa -dname "CN=Harm Meijer, OU=Technology, O=org, L=Amsterdam, ST=, C=NL" -alias harm -validity 3600 -keypass pass -storepass pass
    jar cf0 test.jar test.class
    jarsigner -keystore harm.com -storepass pass -keypass pass -signedjar sTest.jar test.jar harm
    del *.classThe html page:
    <DIV id="dvObjectHolder">  </DIV>
    <br><br>
    <script>
    if(window.navigator.appName.toLowerCase().indexOf("netscape")!=-1){ // set object for Netscape:
         document.getElementById('dvObjectHolder').innerHTML = "        <object ID='appletTest1' classid=\"java:test.class\"" +
                    "height=\"0\" width=\"0\" onError=\"changeObject();\"" +
              ">" +
                    "<param name=\"mayscript\" value=\"Y\">" +
                    "<param name=\"archive\" value=\"sTest.jar\">" +
            "</object>";
    }else if(window.navigator.appName.toLowerCase().indexOf('internet explorer')!=-1){ //set object for IE
         document.getElementById('dvObjectHolder').innerHTML =      "<object ID='appletTest1' classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"" +
                   "         height=\"0\" width=\"0\" >" +
                   "   <param name=\"code\" value=\"test.class\" />" +
                      "<param name=\"archive\" value=\"sTest.jar\">" +
                   " </object>"
    </script>
    <LABEL id="lblOutputText">This text will be replaced by the applet</LABEL>
    <BR>
    <input value="Javascript to java" type=button onClick="document.appletTest1.fromJavaScript()"><br>The applet:
    // new class for jsObject!!!! since 1.4.2 compile this:
    // javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" test.java
    // since jaws.jar does not exsist anymore
    // to compile with jaws: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" test.java
    import netscape.javascript.*;
    public class test extends java.applet.Applet {
        JSObject win;
        JSObject outputLabel;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
                 outputLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
              outputLabel.setMember("innerHTML", "<center><h1>From Init<br>Your homedir " + System.getProperty("user.home") + "</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
        public void fromJavaScript(){
             try{
                     outputLabel.setMember("innerHTML", "<center><h1>From javascript<br>Your homedir: "+ System.getProperty("user.home") + "</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }When you put the files in c:\temp, run the batch file to
    compile and sign the applet and then open the html file you
    will be asked if you trust ... you can say yes and from
    init the applet can read user.home. Click on the button and
    you will get the following stack trace:
    java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at test.fromJavaScript(test.java:20)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)Conclusion: the applet can read user.home but not from
    JavaScript.
    Here is the applet that does work because a method called
    from javaScript doesn't perform a restricted task.
    // new class for jsObject!!!! since 1.4.2 compile this:
    // javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" test.java
    // since jaws.jar does not exsist anymore
    // to compile with jaws: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" test.java
    import netscape.javascript.*;
    public class test extends java.applet.Applet {
         JSObject win;
         JSObject outputLabel;
         boolean buttonFromJavaClicked = false;
         checkJavaScriptEvent evt = new checkJavaScriptEvent();
         public void init() {
              try {
                   evt.start();
                   win = JSObject.getWindow(this);
                   outputLabel =
                        (JSObject) win.eval("document.getElementById('lblOutputText')");
                   outputLabel.setMember(
                        "innerHTML",
                        "<center><h1>From Init<br>Your homedir "
                             + System.getProperty("user.home")
                             + "</h1></center>");
              } catch (Exception e) {
                   e.printStackTrace();
         public void fromJavaScript() {
              buttonFromJavaClicked = true;
         private void fromJavaScript2() {
              System.out.println("fromjavascript2 is started");
              try {
                   String strLbl =
                        "<center><h1>From javascript<br>Your homedir: "
                             + System.getProperty("user.home")
                             + "</h1></center>";
                   outputLabel.setMember("innerHTML", strLbl);
              } catch (Exception e) {
                   e.printStackTrace();
         class checkJavaScriptEvent extends Thread {
              public void run() {
                   while (true) {
                        if (test.this.buttonFromJavaClicked) {
                             System.out.println("OK buttonfromjava is true");
                             test.this.buttonFromJavaClicked = false;
                             test.this.fromJavaScript2();
                        try {
                             Thread.sleep(300);
                        } catch (Exception e) {
                             System.out.println("exception in sleep");
                             e.printStackTrace();
                             System.exit(1);
    }

Maybe you are looking for

  • Broadband usage limits

    Hi guys, I am not a happy bunny - previously had unlimited BB with AOL but BT sales advisor assured me that 10gb limit per month was a huge amount and more than enough for our family - he asked about downloading moviees (just occasionally) online wii

  • Droid Incredible Photo Albums

    How do you create photo albums on the droid incredible?  I have found no way to do this on the phone and every pic I take goes into camera shots and all photos folders.  I would like to be able to organize my photos in different albums but cannot fig

  • Character Value!!

    How do I display the character value of a particular character in a string?

  • Can't load iO6 need to free up GBs

    How can I delete some (not all) of my photos and songs so I can have 2.5 G free to download i06? Thank you

  • Replacing My Macbook Pro

    After having my Macbook pro for about, a year. It started making these obnoxious fan whirring noises. Many people already know about this problem, but I've gotten it replaced three times. The problem just keeps coming back. I primarily use it for gam