Simple Translate Q:

Simple Translate Q:
SELECT TRANSLATE('76051-9098','-','') FROM DUAL
I need to get '760519098' off this..
When i give a ' ' -- Iam getting a ' ' inbetween(Obvious!!)
But when i do '' -- A Null string is returned..
How do i overcome this..
Mohan.

This should do it.
SELECT replace('76051-9098', substr('-',1,1),'') as WORKS FROM DUAL;
Anyone know why Oracle's site is so slow? I thought it was my network at work this morning but even from home its taking ages.

Similar Messages

  • How to use Value Mappings for simple translations?

    Hello,
    I want to use Value Mappings for simple translations in mappings, e.g. from IDoc to Inhouse structures.
    For example unit of quantity:
    IDOC    -->    INHOUSE
    PCE               P
    ABC               A
    How can I use Value Mapping for this? What should be used as Agency, what should be used for Scheme? What about groups? I tried the following: I created a new Value Mapping in Integration Directory:
    - Source Agency: DELVRY05
    - Source Scheme: MENEE (IDoc field name)
    - Target Acency: INHOUSE_DESADV (Name of structure)
    - Target scheme: UNIT (Name of field)
    Then, in the table, I added several lines for translating PCE to P and ABC to A and so on. But I have to define a group name for each line. I used INHOUSE. But than I get one INHOUSE group for each line.
    This seems very complicated for simple translations from A to B. I don't want to use FixValue in Message mappings.
    Any help appreciated.
    Thanks,
    Christoph

    Hello,
    @pavan kumar: Thanks, but I know all Blogs about Value Mappings. That does not help me. And I refer to PI 7.1.
    Lets get it very simple: I want to have exactly the same functionality of "FixValues" as ValueMappings. In 7.1, I need to define a Group for every row / line in the conversion table (e.g. for units of measurement conversion between IDoc and FlatFile). That does not make sense for me, as the Group is always the same, e.g. "Unit of measurement". So I will get dozens of same groups called "Unit of measurement".
    I don't really understand the concept of Groups. Maybe this is just not appropiate for my intenses? Maybe the Group has to be defined as one specific value of Unit of measurement, e.g. "pieces"?
    CHRISTOPH

  • DUMP in Simple Translation

    Hello everybody
    I'm trying to use ST lately. I tried using the sample program found in the SAP Library, resulting with a dump. Did anyone run into the same problem before? Does anyone know how to solve it?
    The example translation and ABAP code can be found in  [this page|http://help.sap.com/saphelp_nw04/helpdata/en/ae/101640a991c742e10000000a1550b0/content.htm]
    The dump error analysis is as follows:
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_ST_MATCH_ELEMENT', was not caught and therefore caused a runtime error.
        The reason for the exception is:
        XML matching error
        Expected was element-start: "X2" [ ] Read was document-end: " " [ ].
    Kind regards,
    Itay

    HI ,
    For the error you are getting please refer the link below
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/951e40777cdd5fe10000000a155106/frameset.htm.
    hope this might help you understand the problem better .
    Regards
    Arun.

  • Rotating and Translating Objects with Collision Modifiers

    Hello
    Im trying to build a simple 3d scene. The idea being that a
    footballer walks up to a football and on detection of that
    collision, the football is translated or 'kicked.'
    Got the Collision Detection working using Collision
    Modifiers. Got it working so that it registers the collisions, what
    I havent gotten is how to translate the object (football) I have
    used the simple translate command but this seems to work on objects
    without collision modifiers.
    Does anyone have any work arounds?
    Thanks in Advance

    Hello
    Im trying to build a simple 3d scene. The idea being that a
    footballer walks up to a football and on detection of that
    collision, the football is translated or 'kicked.'
    Got the Collision Detection working using Collision
    Modifiers. Got it working so that it registers the collisions, what
    I havent gotten is how to translate the object (football) I have
    used the simple translate command but this seems to work on objects
    without collision modifiers.
    Does anyone have any work arounds?
    Thanks in Advance

  • Is Japanese translation built in to Lion?

    In older operating systems I was able to somehow enable a Japanese/English dictionary translation function, but I can not find this in Lion.  I seem to remember that in the old days one would have to enable this in some type of dictionary prefrences, but I can not find that either.  Is this function still there, and, if so, how do I get to it?  I have Japanses frineds who often post short sentences in Japanese that I would like to translate.  Thanks.

    For simple translation, use
    http://translate.google.com
    The dashboard translator widget is garbage.
    Also you can open Dictionary.app in applications and go to its preferences to activate a Japanese - English dictionary.

  • After Effects CS5.5 - Poor performance

    The tech info:
    After Effects 5.5 Version 10.5.1.2
    Windows 7 x64 SP1
    The problem persists when no video is present
    No error messages are being shown
    Atempting to "Play" in preview or attempting to "Ram Preview" will show the larges problems, seeking in the timeline causes the entire program to hang as well
    Not on this computer (My computer specs below)
    Chrome, Skype, Steam, Taskmanager (closing all of these does not change the problem)
    No thrid party codecs are installed
    My computer is as follows:
    Core i7 920 (Bloomfiled) OC 3.2ghz (4 cores, 8 logical threads)
    XFX 7970 3GB
    15GB DDR3 1333mhz (OC 1666)
    120gb SSD (280mB/ps read | 240mB/ps writes @ 4k) 25Gb is free
    Zero external drives are conected
    I am using no 3rd party IO hardware of any kind
    The problem persists when OpenGL is on or off
    The problem persisits when I am using "Render Multiple frames" and when it is not enabled
    My problem is that when I set up a project at 1920x1080 and just ask it to play a black screen I get ~12fps Not Realtime if I set the "preview quality" down to 1/2 I get ~10fps if I set the preview quality down to 1.5% I get ~8fps. While this is occuring my CPU usage is hard at 12% (one logical CPU pegged). When seeking the entire program will hang for 2 to 3 seconds while it grabs and "renders" the next empty frame, adding effects and clips does not change this performance in any way, I can have several clips placed in the timeline and performance persists at its constant 12fps regardless.
    If anyone has any ideas Im open, Id love to get after effects working but in this state I spend 75% of my time waiting for the program to "start responding" after asking it to seek.

    There is almost no overhead in "rotating" the monitors, thats all native to the GPU. There is no performance difference between 5760x1080 and 3240x1920. If there is any overhead its going to be in the de-stiching of the backbuffers. But this problem persisits even when I am not in an eyefinity display group. Double checked by rotating out of portrait mode as well same performance issue. Figured this was stupid and disabled my other 2 monitors and checked just by using one, same problem no framerate change whatsoever. Thought it my be because of HDMI, nope same thing on DVI.
    I dont know what kind of computer still has issues with simple translations of pixels, if this were the early two thousands I could understand where your coming from but its not so I am confused.
    Also if it were having trouble with "translating" the pixels 2 things would have happened and below is why I believe that is not possible.
    1. Because after effects is running on a different process the "overhead" that you speak of would be handled by the other 7 logical threads or the 88% of the processor that is sitting free.
    2. If the "translation" was not handled by the CPU and was GPU bound, that means the bottleneck would have to occur within the GPUs pixelshader array or vertex processor, both of witch are sitting clocked down and not under load. When openGL / DirextX / OpenCL is used the GPU will clock up and become under load, at that point the bottleneck could occur. But this is not the case.
    3. After effects has no knowelege of a "rotated" or "eyefinity" display, in windows, the backbuffer is handled the same as any other rotation of the monitor as a simple 2D array of pixels.
    I only wish it were so simple as using just 1 monitor.
    Any other ideas?

  • Accessing a file and more.

    Hi, I have an encrypted text file. I need to do the following things within my program to make it useful.
    1. Read the rather large 3.2MB file.
    2. Decrypt the file, it is a simple translation of A = F, B = O etc.
    3. Put each word into an ArrayList<String>.
    I'm not sure where to start and this has been a bit of a stumbling block for me.

    you might find read() useful.
    package krc.utilz.io;
    import java.util.Collection;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.io.File;
    import java.io.FileReader;
    import java.io.BufferedReader;
    import java.io.FileWriter;
    import java.io.PrintWriter;
    import java.io.InputStream;
    import java.io.FileInputStream;
    import java.io.Closeable;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    * @class: krc.utilz.io.Filez
    * A collection of static "file handling" helper methods.
    public abstract class Filez
      public static final int BFRSIZE = 4096;
       * reads the given file into one big string
       * @param String filename - the name of the file to read
       * @return the contents filename
      public static String read(String filename)
        throws IOException, FileNotFoundException
        FileReader in = null;
        StringBuffer out = new StringBuffer();
        try {
          in = new FileReader(filename);
          char[] cbuf = new char[BFRSIZE];
          int n = in.read(cbuf, 0, BFRSIZE);
          while(n > 0) {
            out.append(cbuf);
            n = in.read(cbuf, 0, BFRSIZE);
        } finally {
          if(in!=null)in.close();
        return out.toString();
      * a pseudonym for read especially for perl programmers
      public static String slurp(String filename)
        throws IOException, FileNotFoundException
        return(Filez.read(filename));
       * (re)writes the given content to the given filename
       * @param String content - the new contents of the fil
       * @param String filename - the name of the file to write.
      public static void write(String content, String filename)
        throws IOException
        PrintWriter out = null;
        try {
          out = new PrintWriter(new FileWriter(filename));
          out.write(content);
        } finally {
          if(out!=null)out.close();
      * a pseudonym for write especially for perl programmers
      public static void splooge(String content, String filename)
        throws IOException, FileNotFoundException
        Filez.write(content, filename);
       * reads each line of the given file into an array of strings.
       * @param String filename - the name of the file to read
       * @return a fixed length array of strings containing file contents.
      public  static String[] readArray(String filename)
        throws IOException, FileNotFoundException
        return readList(filename).toArray(new String[0]);
       * reads each line of the given file into an ArrayList of strings.
       * @param String filename - the name of the file to read
       * @return an ArrayList of strings containing file contents.
      public static ArrayList<String> readArrayList(String filename)
        throws IOException, FileNotFoundException
        return (ArrayList<String>)readList(filename);
       * reads each line of the given file into a List of strings.
       * @param String filename - the name of the file to read
       * @return an List handle ArrayList of strings containing file contents.
      public static List<String> readList(String filename)
        throws IOException, FileNotFoundException
        BufferedReader in = null;
        List<String> out = new ArrayList<String>();
        try {
          in = new BufferedReader(new FileReader(filename));
          String line = null;
          while ( (line = in.readLine()) != null ) {
              out.add(line);
        } finally {
          if(in!=null)in.close();
        return out;
       * reads the whole of the given file into an array of bytes.
       * @param String filename - the name of the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(String filename)
        throws IOException, FileNotFoundException
        return( readBytes(new File(filename)) );
       * reads the whole of the given file into an array of bytes.
       * @param File file - the file to read
       * @return an array of bytes containing the file contents.
      public static byte[] readBytes(File file)
        throws IOException, FileNotFoundException
        byte[] out = null;
        InputStream in = null;
        try {
          in = new FileInputStream(file);
          out = new byte[(int)file.length()];
          int size = in.read(out);
        } finally {
          if(in!=null)in.close();
        return out;
       * do files A & B have the same contents
       * @param String filenameA - the first file to compare
       * @param String filenameA - the second file to compare
       * @return boolean do-these-two-files-have-the-same-contents?
      public static boolean isSame(String filenameA, String filenameB)
        throws IOException, FileNotFoundException
        File fileA = new File(filenameA);
        File fileB = new File(filenameB);
        //check for same physical file
        if( fileA.equals(fileB) ) return(true);
        //compare sizes
        if( fileA.length() != fileB.length() ) return(false);
        //compare contents (buffer by buffer)
        boolean same=true;
        InputStream inA = null;
        InputStream inB = null;
        try {
          inA = new FileInputStream(fileA);
          inB = new FileInputStream(fileB);
          byte[] bfrA = new byte[BFRSIZE];
          byte[] bfrB = new byte[BFRSIZE];
          int sizeA=0, sizeB=0;
          do {
            sizeA = inA.read(bfrA);
            sizeB = inA.read(bfrB);
            if ( sizeA != sizeB ) {
              same=false;
            } else if ( sizeA == 0 ) {
              //do nothing
            } else if ( !Arrays.equals(bfrA,bfrB) ) {
              same=false;
          } while (same && sizeA != -1);
        } finally {
          if(inA!=null)inA.close();
          if(inB!=null)inB.close();
        return(same);
       * checks the given filename exists and is readable
       * @param String filename = the name of the file to "open".
       * @param OPTIONAl String type = a short name for the file used to identify
       *  the file in any exception messages.
       *  For example: "input", "input data", "DTD", "XML", or whatever.
       * @return a File object for the given filename.
       * @throw FileNotFoundException if the given file does not exist.
       * @throw IOException if the given file is unreadable (usually permits).
      public static File open(String filename)
        throws FileNotFoundException, IOException
        return(open(filename,"input"));
      public static File open(String filename, String type)
        throws FileNotFoundException, IOException
        File file = new File(filename);
        String fullname = file.getCanonicalPath();
        if(!file.exists()) throw new FileNotFoundException(type+" file does not exist: "+fullname);
        if(!file.canRead()) throw new IOException(type+" file is not readable: "+fullname);
        return(file);
       * gets the filename-only portion of a canonical-filename, with or without
       * the extension.
       * @param String path - the full name of the file.
       * OPTIONAL @param boolean cutExtension - if true then remove any .ext
       * @return String the filename-only (with or without extension)
      public static String basename(String path) {
        return(basename(path,false));
      public static String basename(String path, boolean cutExtension)
        String fname = (new File(path)).getName();
        if (cutExtension) {
          int i = fname.lastIndexOf(".");
          if(i>0) fname = fname.substring(0,i);
        return(fname);
       * gets the directory portion of a canonical-filename
       * @param String path - the full name of the file.
       * @return String the parent directory of the given path.
      public static String dirname(String path)
        return( new File(path).getParent() );
       * close these "streams"
       * @param Closeable... "streams" to close.
      public static void close(Closeable... streams) {
        for(Closeable stream : streams) {
          if(stream==null) continue;
          try {
            stream.close();
          } catch (Exception e) {
            System.err.println(e);
    }

  • Centering a DIV Tag

    Hi,
    am having trouble / don't have a clue how to centre a div tag
    to the center of the page? Can someone point me where am going
    wrong. Here is the html code:
    thanks in advance
    hammer.

    >>I think you'll find significant disagreement here
    about the following
    Yes, here, I definitely will find significant disagreement.
    But I'm very
    much of the opinion that publishing to the web is for the
    masses, not just
    for you folk with the time, motivation, and expereince to
    deal with the
    range of issues relating to css layout. The simplicity of
    tables far
    outweighs the gains of css layout at this point in time.
    >>There is nothing worse than a morass of nested tables
    spanned to death,
    >>not
    only for you as the maintainer of the site, but also for the
    browsers, some
    of which simply cannot render such pages. CSS layouts do not
    have these
    problems.
    Here you are wrong. I would actually revese that whole point.
    It is css
    layout that are notorious fo rbrowsers laying out or not
    rendering properly.
    Tables never came close to having such issues. Even nested
    tables, one level
    deep, are perfectly fine.
    >>some
    of which simply cannot render such pages. CSS layouts do not
    have these
    problems.
    Politely, where the heck have you been living these last few
    years!!
    >>Future maintainence, bandwidth usage, and simplicity
    of layout are big
    benefits of using CSS as opposed to tables.
    simplicity of layout??? Again, I think you are missing the
    argument here.
    Its almost a given that tables are simpler to use for layout.
    Almost all
    books on teh topic agree, but point out the long term benefit
    of css layout
    despite the added complexity. So please don't use the
    'simplcity' as an
    argument here. CSS layout is the most intimidating and hard
    to fathom thing
    for most beginners, not just the new syntax but all the
    nonsensical
    (seeming) twists and turns that must be taken to get it to
    work properly -
    not to mention they are buggy as hell. Tables? They don't
    come close to
    being as nasty as CSS layout as it is today.
    >>Everyone here (I think) agrees that if tables work
    better for you, then use them. BUT use them correctly if you
    are going to
    do that. It's pretty simple, really....
    Agreed. I personally use tables for average sized websites
    which have to be
    edited/maintained by general staff - you can teach tables oto
    people inside
    of amorning to a day. You'd need weeks to months to teach
    enough CSS layout
    to a layman and even then he'd think it sucks. I will be
    using css for
    layout about two browser versions from now.
    I don't see the sense on jumping on a technology that, at
    every second turn
    you get, go here for this hack, do this to get around that
    problem, IE
    cannot do this so use this javascript fix, oh it doesn't work
    while looking
    at in dreanweaver but it will work in the browser, blah blah
    blah...its
    enough to put someone off web design for life.
    I came to the web initially becuase I was amazed at how much
    I could do with
    so little knowledge - it was awseome. I think this should
    still happen to
    people today - it's quite empowering. I think the reality is
    a lot more folk
    get disheartned, confused and simply don't run with it. We
    scare the crap
    out them with css layout.
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    >I think you'll find significant disagreement here about
    the following -
    >
    > * CSS for layout is simply not there yet
    > * Its only the accesibility issue which tables lose
    points for
    > * Possibly, the only benefit of css layout is that it
    can be centrally
    > goverened through a linked style sheet, but even this
    can be done with DW
    > templates and tables
    >
    > CSS for layout is certainly "there". Perhaps it's not
    there for you, but
    > it surely is for others.
    >
    > There is nothing worse than a morass of nested tables
    spanned to death,
    > not only for you as the maintainer of the site, but also
    for the browsers,
    > some of which simply cannot render such pages. CSS
    layouts do not have
    > these problems.
    >
    > Future maintainence, bandwidth usage, and simplicity of
    layout are big
    > benefits of using CSS as opposed to tables.
    >
    > But let's not make this a holy war. Nobody here is
    saying that you have
    > to replace tables with CSS. Everyone here (I think)
    agrees that if tables
    > work better for you, then use them. BUT use them
    correctly if you are
    > going to do that. It's pretty simple, really....
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Arrdvark" <[email protected]> wrote in
    message
    > news:[email protected]...
    >> tables are much simpler, translate well to knowledge
    people have from
    >> other tools (ie; ms word) and can do layout quite
    well. CSS for layout is
    >> simply not there yet - it feels like one great big
    hack and is difficult
    >> for people to learn, especially causal web designers
    who just dont have
    >> the time to amass all teh knowledge and expereince
    needed just to get a
    >> simple css layout working in both major browsers.
    One of the things that
    >> made the web so big was how simple it was to publish
    to - CSS layout is a
    >> step backward in this regard.
    >>
    >> tables are still fine for most sites, a perfectly
    valid choice. Its only
    >> the accesibility issue which tables lose points for.
    Possibly, the only
    >> benefit of css layout is that it can be centrally
    goverened through a
    >> linked style sheet, but even this can be done with
    DW templates and
    >> tables, or dynamic pages and tables (ie: asp.net
    master pages).
    >>
    >> I am 50 / 50 these days as to wether css layout is
    worth the hassle for
    >> the average website being bult by the avergae
    person.
    >>
    >>
    >>
    >>
    >> "FreakyJesus" <[email protected]>
    wrote in message
    >> news:[email protected]...
    >>> Very well said, Thierry
    >>> And Arrdvark, I hear you on this:
    >>> "it almost always causes total confusion as to
    "why" this is the case
    >>> and puts
    >>> people right off CSS altogther."
    >>> I am showing a friend how to use CSS (blind
    leading the blind) and on a
    >>> regular basis she's like "wouldn't this be
    easier with tables within
    >>> tables."
    >>> Css CAN be very confusing.
    >>>
    >>> Andy
    >>>
    >>>
    >>>
    >>>
    >>>
    quote:
    Originally posted by:
    Newsgroup User
    >>> Al wrote:
    >>> > On Fri, 01 Dec 2006 09:39:18 -0500, Murray
    *ACE*
    >>> > <[email protected]>
    wrote:
    >>>
    >>> >> Not only something different, but an
    inferior choice at that!
    >>>
    >>> > I guess it can sometimes be difficult for
    an inexperienced user to
    >>> > assess and evaluate multiple solutions. If
    there are downsides to
    >>> > public forums, that would be at least one
    of them. It's hard enough
    >>> > for newbies to assess a single solution,
    but wading through a
    >>> > sub-discussion between third-parties
    micro-analyzing their personal
    >>> > favorite solutions can be untenable.
    >>>
    >>> I agree, but I can also understand that it can
    be frustrating for people
    >>> (people in general) who try to help to see that
    the OP (OPs in general)
    >>> didn't even try a solution that didn't require
    too much effort.
    >>> IMHO, there was not much for the OP to go
    through here since *early* in
    >>> this
    >>> thread, the OP had everything to make it work.
    >>> First post FreakyJesus said to set up the
    left/right margin of the DIV
    >>> to
    >>> "auto" and second post Murray gives a very
    explicit "fix" for IE5:
    >>> body { text-align:center; }
    >>> #graybox { text-align:left; }
    >>> Actually, just trying margin auto could have
    been enough for the OP.
    >>> Sometimes it is important to know "some"
    Javascript, HTML or else to be
    >>> able
    >>> to implement (not necessary understand) a
    solution, but here it was not
    >>> the
    >>> case.
    >>>
    >>> Nothing against the OP here, and nothing to get
    excited either ;-)
    >>> This is just a general statement about the other
    side of the coin.
    >>>
    >>> > Note to self: Recite Serenity Prayer before
    posting here in the
    >>> > future.
    >>>
    >>> Let's hope that works :)
    >>>
    >>> --
    >>> Thierry
    >>> Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    >>> The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    >>> CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    >>> CSS Tab Menu:
    http://www.TJKDesign.com/go/?3
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Emergency Question Re: Aspect Ratio

    I'm shooting for the first time today with an HD Camera. I'm going to shoot in SD, but which aspect ratio? 16:9 or 4:3? I don't know what type of TV the video will ultimately be viewed on, but I'd like the flexibility for it to look great on both widescreen and standard TVs (letterboxed).
    Thanks.

    I'd like the flexibility for it to look great on both widescreen and standard TVs (letterboxed).
    Agreed. It's a subjective thing, but widescreens conforms more closely to the area of vision of the human eye. Here is how I achieve that. (see the punch line at the end):
    HOW TO MAINTAIN 16:9 ASPECT FROM IMPORT TO BURN
    This is the way I do it. There is no compulsion on you to do it my way, but this works (for me). I started this method before iMovie and iDVD were upgraded to 6.0.3, and because not all elements of the various iDVD themes (particularly the pre-iDVD 6 ones) are consistent in keeping to 16:9 throughout the process.
    The widescreen preview works just fine when you check your finished project within iDVD. The problem only happens when you either burn a project or save it to an image.
    The reason this bug is present is because iDVD incorrectly sets a single binary value to 1 instead of 0 in the .IFO and .BUP files that correspond to widescreen .VOB titles. If this value is set to 1, it instructs a DVD player to prohibit shifting to widescreen mode, even though another binary value that specifies the 16:9 format instead of 4:3 is properly set.
    The simple translation of how to fix it is to open the .IFO and .BUP files, change the value (you do it in hexadecimal, which means it changes from 4F to 4E), save, then burn to DVD.
    The reality is, it’s a bit trickier because you have to first copy iDVD’s disk image to your hard drive, change the read-only permissions on both the files and the VIDEO_TS folder to permit writing, save the changes, then run the whole folder through DVD Imager which saves a new disk image to burn that will be recognizable by DVD players.
    That was one way to do it (and applies particularly to iDVD 5) but if, like me, you don’t fancy mucking about with hexadecimal, then here is an alternative.
    A bug in iDVD 6, particularly when working with PAL, and which has been reported to Apple, is that the sub-menus in many of the themes (the chapter settings) default to 4:3 aspect, NTSC and mpeg 1, instead of the desired 16:9 in mpeg 2 in PAL. This may be partly a leftover from iDVD 5 or even a newer ‘feature’ of iDVD 6. Either way, it is annoying when it happens, and we must hope Apple cure it in iDVD 7. In the meantime here is my failsafe workaround, which sounds a lot more complicated when reading about it, that it is in practise.
    Living in the UK, I use PAL (25 fps). Wherever you see a reference to PAL (25 fps) in the following you may substitute NTSC (30 fps) in the various settings mentioned (if you don’t live in Europe), the basic idea is the same. I still use this method, and take these steps, regardless of whether it is always necessary. Worst case scenario: it would have worked anyway. Best case scenario: it works perfectly where it otherwise wouldn’t!
    The object of the exercise is therefore to ‘fix’ all constituent parts of the project (video, titles, theme, effects, even audio!) in the desired 16:9 aspect to avoid producing a DVD where the movie is in 16:9 and the menu is in 4:3 or where other irritating surprises lurk in your project, which you only discover after burning a coaster!
    First go to http://www.mydvdedit.com/index.php?lang=english and download myDVDedit. This is shareware although the download is free. Send the guy a few dollars/euros, he deserves it. While you are there, read all about it. Now install it in your Applications Folder. You will need it later.
    You have finished your iMovie project with music, transitions and so on, and saved it to you Movies Folder. Before you started the project you naturally set it to DV Widescreen.
    Open iDVD. Give the project a name, and save it as Widescreen if it didn’t default to the same aspect as your iMovie project. Now import the iMovie project into iDVD, choose a theme (any theme you like, even if it prefers to stay at 4:3) and save the project. Do what you would normally do to the theme and its drop zones. Save the project.
    Now save as Disk Image on your desktop. Leave it there for the moment when it has finished/appeared.
    Open your Movies Folder. Create a new folder. Name it PROJECTNAME – TS FILES (where ‘projectname’ is the name of your project!). Close the folder. You can of course call it anything you like, but this aids identification.
    Now double-click the disk image on your desktop. It contains two folders: AUDIO_TS (which is empty, but please pretend that it isn’t) and VIDEO_TS. Drag and drop these to the folder you created in your Movies Folder. (This takes a moment).
    Click on the AUDIO_TS folder and go to Get Info in the file menu. Right down the bottom is where you have to change the permissions. Under ‘Ownership & Permissions’ change this from Read Only to Read & Write. Click the small triangle next to Details, scroll down and click on ‘Apply to enclosed items’. You will be asked for your root password. Close the get info window, and now click on the VIDEO_TS folder and do the same. Close the Projectname-TS Files folder. You have now allowed yourself to change the properties of the contents of those folders, which leads us to the next all-important step.
    Open myDVDedit. Go to File and open the projectname TS Files folder. By all means stare at it shock and awe, but don’t bother finding out what it can do, except for the following:
    Top left you fill see a list of files. Lower centre you have a large window. On the vertical menu to the left of that, click IFO.
    In the window at the top left, ignore ‘First Play’ (if there was anything to correct in that, myDVDedit will have done so and told you).
    Click on VMG Menu en (English). Now the whole thing springs to life.
    Set Coding Mode to MPEG-2 (if it isn’t already)
    Set Standard to PAL (or NTSC if that is what you want)
    Set Aspect to 16:9 (not any of the other options)
    Now save the file.
    Click on VTS Menu 1 en (English) and repeat as above.
    Click on VTS Menu 2 and repeat as above.
    You have now permanently ‘fixed’ the entire contents of the TS folder (the disk image) in 16:9 aspect. Close myDVDedit – you won’t need it again until the next project!
    If you have Toast 7 Titanium, open it. ‘Select DVD-Video from VIDEO_TS’. Choose Select from the main Toast window and select your projectname-TS Files folder. You are now ready to burn! You can set the burn speed (2x recommended) before the burn commences. Allow Toast to verify the burn before you eject the DVD-R disk.
    If you don’t have Toast 7, then I assume you can burn the projectname-TS Files folder (disk image) via Disk Utility. I say ‘assume’ only because I have never tried it that way.
    Either way, you now have a DVD which will play as 16:9 widescreen on any TV set, even the old ones where you can’t ask it to letter-box.

  • X11 Pipeline: Extreme Thrashing

    I have a graphics intensive application that I am working on, and I am getting severe thrashing while running in X. Results are excellent from an e-machine running Windows Vista.
    Here's the basic idea of the program. It uses AWT (no Swing is ever referenced). There is a collection of "sprites" which were created from GraphicsDevice.createCompatibleImage() to give them the best chance at acceleration. Then there is a backbuffer, to which the program draws. It attempts to deliver higher framerates by only updating portions of the screen which are changing. Originally, this backbuffer was also created with GraphicsDevice.createCompatibleImage(), however this leads to the thrashing I mentioned earlier.
    After reading through:
    [Troubleshooting Guide for Java SE 6 Desktop Technologies|http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/toc.html]
    I managed to isolate the problem to X11 offscreen pixmaps, and running with the flag -Dsun.java2d.pmoffscreen=false removes the thrashing.
    The problem I have here is that I am now confused. It seems to me that I want my sprites accelerated, but shouldn't my backbuffer also be accelerated? I'm not using antialiasing, nor alpha compositing, nor translations. I do make heavy use of setting the clip on the graphics object. Is that where my problem resides? Am I confused on the meaning of alpha compositing... does that include 1-bit transparency?
    Quote from the above referenced document:
    "The use of pixmaps typically results in better performance. However, in certain cases, the opposite is true. Such cases typically involve the use of operations which cannot be performed using the X protocol, such as antialiasing, alpha compositing, and transforms that are more complex than simple translation transforms.
    For these operations the X11 pipeline must do the rendering using the built-in software renderer. In most cases this includes reading the contents of the pixmap to a system memory (over the network in the case of remote X server), performing the rendering, and then sending the pixels back to the pixmap. Such operations could result in extremely poor performance, especially if the X server is remote."
    Could someone enlighten me here? Why are my accelerated surfaces being copied back into system memory when all I am doing is drawing accelerated surfaces onto accelerated surfaces using drawImage() and setClip().

    You're totally right. I was preparing a code example, during which I discovered my mistake.
    I'm still curious as to why Swing is causing a problem with off screen pixmaps in X. I've seen this problem before but I was never concerned with rapid updating of the screen so I never investigated. I think it must be Swing's backbuffer causing it, but is this a problem with the Java2D X11 pipeline, or maybe a bug somewhere else in my OS?
    Here is a code example which produces the problem, running it with sun.java2d.pmoffscreen=false runs fine, but without it, X begins hogging CPU time and starves Java out resulting in pauses in execution.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    class SwingFail implements ActionListener {
      private static JFrame frame;
      class RefreshPanel extends JPanel {
        public RefreshPanel() {
          setPreferredSize(new Dimension(512, 512));
        public void paintComponent(Graphics g) {
          g.setColor(Color.black);
          g.fillRect(0, 0, 512, 512);
          g.setColor(Color.white);
          g.drawString(new Date().toString(), 25, 250);
      public SwingFail() {
        frame = new JFrame("Rapid Refresh");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JPanel panel = (JPanel) frame.getContentPane();
        panel.add(new RefreshPanel());
        frame.pack();
        frame.setVisible(true);
      public void actionPerformed(ActionEvent e) {
        frame.repaint();
      public static void main(String[] args) {
        SwingFail sf = new SwingFail();
        javax.swing.Timer t = new javax.swing.Timer(1, sf);
        t.setCoalesce(false);
        t.start();
    }PS This is with Java 5, and the underlying OS is in bad need of an update so I wouldn't be surprised if this issue has long since been resolved, but I'd still love to hear from someone else running X11 if this works well or not. Of course hardware performance may be a factor, but the difference in CPU time should still be evident between turning offscreen pixmaps on or off.
    Edited by: DecadeOfJava on Jun 19, 2010 6:34 AM

  • Heap tables and index organized tables

    I performing migration from mssql server to oracle 10gr2 rdbms, in mssql all tables have clustered pk, index. Is it necessary to use index organized tables for that migration, or enough ordinal heap organized tables and what differences between those tables, and mssql tables
    Thanx

    In Oracle, the typical table is a standard 'heap' table. Stuff goes into the heap table randomly, and randomly comes out.
    An Index Organizaed Tables is somewhat similar to a Cluster Index in SS. It can have some performance advantages over heap tables - when the heap table has an associated index on the primary key.
    The IOT can also have some disadvantages, such as the need for an Overflow table to handle the extra data when a row doesn't conveniently fit in a block (implying multiple I/Os), and an extra translation table if bitmap indexes are required (implying extra I/Os).
    An unintelligent developer will generally believe that Oracle and SQL Server are the same - after all they both run SQL - and will attempt to port by a simple translation of syntax.
    An intelligent developer will test both styles of tables, during a port. Such a developer will also be quick to learn about the changes in internals (such as locking mechanisms) and will realize that different styles of coding are required for many application situations.
    I recommend reading Tom Kyte's books to get handle on pros and cons as well as testing techniques to help a developer become intelligent.

  • Can a DTD map custom styles to standard HTML tags?

    Hi,
    Every week the publishing house I work for has to manually copy the entire content of a weekly magazine on an article-by-article basis into an online database, the web version of the magazine. This means copying the styled InDesign content and inserting it into the database as plain text, re-finding all those italics (and any other styling) and putting it all back manually.
    I already know that I can create tags with all the basic HTML styles needed in the 'Tags' palette in InDesign, and then export that.
    The trouble is that when I re-import the XML file, I have to laboriously map the custom house-styles (there are many of them and they're boiler-plate, i.e. consistent, across all the magazine's InDesign styles) to the imported HTML styles.
    So here's my question:
    Am I wrong to believe that it's possible to create a DTD that would import not only the HTML tags but their relationship to the existing, custom-named InDesign tags that are common to all the magazine's documents?
    As an InDesign wish-feature, what's missing from the 'Tags' corner-menu is 'Export DTD' - if that was available, I could map the whole relationship between Indesign Styles/HTML styles just one time and later import the DTD on other articles; which would tell the Structure View how to convert our custom house-styles (both Paragraph Styles and Character Styles) into HTML tags and cut this time-consuming task in half.
    Thanks!
    EDIT: I perhaps should have mentioned that obviously the final stage after this 'dream conversion' is to export the XML from the Structure View. Then I can just open the saved XML file and paste it into the CMS with formatting intact.
    Added extra explanation of the workflow.

    geekbelief wrote:
    Googling XSLT and InDesign, it seems that such a stylesheet, if I were to create it, possibly couldn't handle spaces in the original InDesign style-names..? If anyone knows that for a fact, I'd be glad to be aware of it before starting down a long path to a roadblock.
    That's a good question. Let's find out together, shall we. I just created a text frame with Lorem Ipsum text, and created "a style" (with space) and "bstyle" (without). Now ... Map Style to Tag doesn't work, presumably because the tags don't exist and I assumed this would *create* them. And if you create one, ID complains "tags cannot contain tabs or spaces". (So can you have a Tab in your paragraph style name then? Gosh.)
    ... Forcing in a Non-breaking Space (#160) also doesn't work, this time ID simply says "A tag name cannot contain the character ' '."
    I think that's one you have to do manually.
    geekbelief wrote:
    I'm guessing that if I wanted to change the InDesign style 'Subheader' into 'h2', that snippet of the XSLT would be like this...?
    <xsl:template match="Subheader"><h2><xsl:apply-templates /></h2></xsl:template>
    Yeah, that's the correct syntax. But you cannot use an XSLT for mapping InDesign styles to tags. The process as I described works when importing your XML into InDesign, and changes the tags in the XML file to match InDesign styles. That's the other way around.
    I don't expect anyone to write this for me, but any hints or links to tutes that I haven't yet found would be appreciated!
    For a simple one-to-one translation of tag names, you can use this all the way. You only need any other XSL command if you want to do more than simple translation, such as filtering, moving, combining, or separating tags or their contents.
    There are lots of good tutes on the 'web for XSLT, although it seems interest has diminished lately. Half a decade ago XSLT was "hot"; nowadays the iPad is. Is there any news on improvements for ID's native XSLT support in CS6? I dare bet there are none at all -- it's already been deemed "yesterday's technology" by Adobe's Dev Team, just as Flash was discarded per CS5.5. I'm sure next year DPS will follow; and the year after that EPubs will be gone for good as well, replaced by holograms, transmitted live from your local library.

  • Project Siena app Publish Issue

    Hi all,
    I have just started creating Siena App and created simple translator app, its working fine but when I try to publish it using File-->Publish it shows me a warning prompt saying "Download Update require" when I click on "Download" the
    another windows appears and says "Error while Downloadin".
    Can you please tell me what is the reason behind such an issue. I searched on the net but could not find helpful answer and any post related to its resolution.
    Any help would be highly appreciated.
    Thanks.

    What Thor is suggesting is reasonable but it is odd if there is some restriction. The download update required is going to open web site.
    I would suggest trying this again and if it continues to fail, you might want to capture a Fiddler trace and we can take a look at it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Harold Kless Microsoft
    Online Community Support

  • TransformVector in debug/publish version of flash

    I have problems with transformVector function when debugging flash. I use simple translation matrix that moves point by 25 on z-axis, everything works fine when I run the flash in browser but in debug mode, transformVector makes vector -20 -20 -20 to -1 -1 -26 instead to -20 -20 -45 as in publish version of the movie. Any idea why debugging the movie mess things up with calculations ? The matrix and imput vector is completelly same in both cases but the computed vector is a mess...
    Edit:Looks like transformVector function has different functionality in different versions of flash 10 ... so much for version compatibility ... better to ignore this function ...

    There are many people complaining about this in other threads.  I found the solution from kglad in this thread: http://forums.adobe.com/message/5750996
    You can get Flash CC to publish to version 9 player by putting these two files in these locations:
    This file: http://forums.adobe.com/servlet/JiveServlet/download/5510986-147069/Fl ashPlayer9_0.xml
    Goes here: C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\Players\FlashPlayer9_0.xml
    This file:  http://forums.adobe.com/servlet/JiveServlet/download/5510986-147068/pl ayerglobal.swc.zip
    Goes here: C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\FP9\playerglobal.swc
    You may need to create the FP9 folder.
    Restart flash and you should see Player 9 in your publish options.  You'll have to find the AS3 clickTag code.

  • What Is the Equivalent Code If I Leave Internationalization Out

    I have source code for accommodating internationalization using the ResourceBundle. I do not want to use internationlization.
    Here is the source code:
    static final String OPTION_FILE_NAME  = "mvnplugin_mvnforum_MVNForumConfig";
    static String MVNFORUM_HOME = "mvnForumHome";
    static
       ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME);
       MVNFORUM_HOME = res.getString("MVNFORUM_HOME").trim();
       setMVNForumHome(MVNFORUM_HOME);
    }If I leave out the internationalization part, should my code be:
    static String mfh = "mvnForumHome";
    static String MVNFORUM_HOME;
    static
       MVNFORUM_HOME = mfh.trim();
       setMVNForumHome(MVNFORUM_HOME);
    }Then, I do not know what is so essential about
    static final String OPTION_FILE_NAME  = "mvnplugin_mvnforum_MVNForumConfig";Any consequences if I leave this statement out?

    Hi Natalie, maybe you need the isolationalism forum (haha, it's my sick sense of humour, don't worry).
    But seriously, I recommend that you follow, JN_'s first recommendation. Make your application able to use resource bundles, but just provide one default bundle. Even if you don't think you need, or are interested in internationalization just now, it is a forward thinking way to build your applications. I don' think it adds much complecity either.
    I'm also foolish enough to think that expertise in internationalizaion of software looks good on one's resume...
    My recent search for a certain kind of software to use in Japan, came up with a list of about 100 vendors, none of whom were able to provide anything suitable for simple translation to Japanese... lost opportunities all round, sad...

Maybe you are looking for

  • Oracle JDeveloper 11.1.1.2.0. PLEASE return F8 key for Step Over in Debug

    Just installed New Oracle JDeveloper 11.1.1.2.0. F8 key invokes SQL History window. It was hostorically assigned as Step Over function for Debugger. Tryed to assign F8 key Tools+Preferences+Short keys. It is not working. Does anyone know how to retur

  • Help with Airprint on HP Envy 111 / D411d

    Frustrated: Bought the Envy yesterday Hooked it up, got it working... was able to print documents from iPad 2 / 3G (AT&T) There is no network in this building There is no DSL, and there is no wireless router. Today I printed a couple more docs. Then

  • Cannot install 10.0.3 update

    Hi all; There is no way in the world that I can install the FCPX UPDATE 10.0.3, and for that matter the Motion 5 update, or Compressor either. running Lion 10.7.2 and have no issues, the Apps, FCPX is ver 10.0.2, from the previous update, that went f

  • Is there a quick way to fit everything in the Title/Action Safe Areas ?

    Hi, (sorry in advance for my english, I'm a french canadian) I built a complete DVD without realizing that I should consider the "Safe Areas" (see my first post : "Formatting in 4:3 but image is still stretched on a 4:3 TV. What the... ?"), so now I'

  • MSS Perf Mgmt Error

    Testing the ECC 6 EHP4 WD for ABAP services hap* for the MSS performance mgmt iViews in the Portal.  Unfortunately, an ABAP runtime error occurs.  The services are activated...any ideas? Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO Exception