Missing something simple with culture?

I need to do something I've done a hundred times before with some image editors simple on my old Windows desktop, but now I have a shiny new MacBook Pro with Adobe Creative cloud subscription, so I'm learning how to use Photoshop CS6.

I have an image that someone sent me that has text at the top and bottom of the image and too 'white space' in the middle (it is not white, but work with me here). I want to cut this part, to have the average disappear and the upper and lower sections join.

I can understand how the Middle disappear (I used regular instead of harvest, selected selection in the Middle, reversed my select and chose the cut). But do not reach the upper and lower parts.

I asked my colleague warned Photoship and she told me on the subject to achieve layers to do this or that and overlapping (compensatory?) copies of the image. My ears started ringing. This may not be so complicated. With the tool free picture on my Windows machine, I was able to highlight what I wanted to get rid of, press DELETE, and it would remove this part of the image and join the upper and lower parts.

I suppose I could edit the image under Windows, but I'm hoping to use this as a learning experience. How would I do this in Photoshop?

Thanks in advance for answers!

I could do that

  1. top half of the image
  2. CMD J float a copy fo the layer
  3. Move this new ayer until closing the gap upward or white space as you alluded
  4. CLCK on the icon 'Add layer mask icon' 3rd btoom of the layers palette
  5. paint with a black brush filled in the mask to hide the overlay part to clear

Tags: Photoshop

Similar Questions

  • I must be missing something simple, but I can't figure out how to remove my Adobe account?

    I must be missing something simple, but I can't figure out how to remove my Adobe account?

    http://livingtext.WordPress.com/2009/03/13/delete-an-Adobe-account/

  • I must be missing something simple...

    I just started usng a new Epson R3000. Print letter size is no problem. However, I can't get it printed at 13 x 19. No matter what I do a 8.5x11 print (on a big, expensive piece of paper!). This happens with the driver set to "Super B", and also with a custom paper size, I created. The driver claims it will print to the appropriate size, but the output is 8.5 x 11.

    It's as if there is a kind of selection that replaces what I do in PS.

    Furthermore, I use PS CS 5.5, Mac Lion, printing via ethernet.

    What Miss me?

    I found it... Under management of the paper, there is a box that says 'fit to paper size' or something like that. I need to check that, even if the image was already on the right size. Without checking that the pilot decreased things down for a reason any.

  • How to access the hard drive USB on E3000? Am I missing something?

    I have my router configuration fine to the internet, as well as the media server.  I can't understand how to access the hard drive of my laptop, however.  The manual says to put 192.168.1.1 in the field the address of windows Explorer, but it gives me just the 'Setup' page for the router.

    Am I missing something simple?  I use Windows XP.

    Click on start - go to start > Run/start search and type "\\192.168.1.1" (without the quotes) and press on enter and it should ask the user name and password, the user name and password, use "admin" all lower case, and then click Ok... Now you should be able to see your USB... You must make a right click on it and select "Map network drive" and check the Enable box and below click Finish... It will map the USB on your computer... Once done, you will be able to send and receive data from your computer to the USB...

  • Something simple that I'm missing: switching XML text problem

    I'm sure it's something simple I'm missing. I was looking at this code for some time now, I'm hoping that a fresh pair of eyes can help out me:

    I have a title for my videos of xml that are loaded with the video of the scene. When you click on a thumbnail of the image of the video, what is supposed to happen is the title of the video could appear above of the new video and remove the previous title of the video. Instead, remains the previous title and the new title of stacks on top of the other.

    Here are some of my code:

              //Process XML==================================================================================================================
              public function processXML(e:Event):void{
                   var myXML:XML = new XML(e.target.data);
    
                   thumb_width = myXML. @ THUMB_WIDTH;
                   thumb_height = myXML. @ THUMB_HEIGHT;
                   video_x = 200;
                   video_y = -20;
                   my_videos = myXML.VIDEO;
                   my_total = my_videos.length();
    
                   makeContainers();
                   thumbs_x = thumb_container.x;
                   thumbs_y = thumb_container.y - 20;
                   callThumbs();
                   makePlayer();
              }
              
              //Make Containers=================================================================================================================
              public function makeContainers():void{
                   main_container = new Sprite();
                   thumb_container = new MovieClip();
                   addChild(main_container);
                   titles = new Sprite();
                   
                   thumbs = new Sprite();
                   thumbs.addEventListener(MouseEvent.CLICK, playVideo);
                   thumbs.addEventListener(MouseEvent.MOUSE_OVER, onOver);
                   thumbs.addEventListener(MouseEvent.MOUSE_OUT, onOut);
                   thumbs.x = thumbs_x;
                   thumbs.y = thumbs_y;
                   thumbs.buttonMode = true;
                   main_container.x = -10;
                   main_container.y = -10;
                   thumb_container.addChild(thumbs);
                   main_container.addChild(thumb_container);
                   main_container.addChild(titles);
                   thumb_container.mask = thumbScroller.vThumbMask;
                                  
                   thumbScroller.next_btn.addEventListener(MouseEvent.MOUSE_DOWN, doAction);
                   thumbScroller.previous_btn.addEventListener(MouseEvent.MOUSE_DOWN, doAction);               
                   thumbScroller.next_btn.addEventListener(MouseEvent.MOUSE_UP, releaseButton);
                   thumbScroller.previous_btn.addEventListener(MouseEvent.MOUSE_UP, releaseButton);
              }
    
         
              //Call Thumbs==================================================================================================================
              public function callThumbs():void{
                   
                   for (var i:Number = 0; i < my_total; i++)
                   {
                        var thumb_url = my_videos[i].@THUMB;
                        var thumb_loader = new Loader();
                        thumb_loader.name = i;
                        thumb_loader.load(new URLRequest(thumb_url));
                        thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
                        thumb_loader.y = (thumb_height+10)*i;
                   }
              }
    
              public function thumbLoaded(e:Event):void{
                   var my_thumb:Loader = Loader(e.target.loader);
                   thumbs.addChild(my_thumb);
              }
              
              
              //Make Player==================================================================================================================
              public function makePlayer():void{
                   my_player = new FLVPlayback();
                   my_player.skin = "SkinOverPlaySeekMute.swf";
                   my_player.skinBackgroundColor = 0x70A16C;
                   my_player.skinBackgroundAlpha = 0.5;
                   my_player.skinAutoHide = true;
    
                   my_player.x = video_x;
                   my_player.y = video_y;
                   my_player.width = 450;
                   my_player.height = 338;
    
                   main_container.addChild(my_player);
                   my_player.source = my_videos[0]. @ URL;
              }
              
              //stop audio and video
              public function stopPlayer():void{
                   my_player.stop();
              }
              
         
              //Thumbnail Functions-----------------------------------------------------------------------------------------------------------
              public function playVideo(e:MouseEvent):void{
                   var video_url = my_videos[e.target.name]. @ URL;
                   my_player.source = video_url;
                   thumbs.addEventListener(MouseEvent.CLICK,getTitle);
    
              }
    
              public function getTitle(e:MouseEvent):void{
                        var thumb_title = my_videos[e.target.name].@TITLE;
                        var title_txt:TextField = new TextField();
    
                                     //THIS DOESN'T WORK. FOR SOME REASON IT DOESN'T SEEM TO EVER GET CALLED 
                        if(titles.contains(title_txt)){
                                         trace("remove previous title");
                             titles.removeChild(title_txt);
                        }
                        
                        var myFormat:TextFormat = new TextFormat();
                        myFormat.font = "Helvetica";
                        myFormat.color = 0x000000;
                        myFormat.size = 25;
                        title_txt.defaultTextFormat = myFormat;
                        
                        title_txt.text = thumb_title;
                        title_txt.y = video_y - 40;
                        title_txt.x = video_x + 50;
                        title_txt.width = thumb_width;
                        title_txt.height = thumb_height;
                        title_txt.wordWrap = true;
                        titles.addChild(title_txt);
              }
    
    
    Also, for some reason, when the swf first loads, the title does not appear for the first thumbnail clicked but it starts to appear when you click a second thumbnail.
    Any help will be very much appreciated!
    
     
    

    The likely problem of lies between the following lines...

    var title_txt:TextField = new TextField();

    if (titles.contains (title_txt))

    {

    titles.removeChild (title_txt);

    }

    You just create an instance named title_txt.  So any reference to it thereafter is the newly created instance, no matter what that may already exist.

    I have just to keep a textfield and replace what is in it.  But if you want to continue to create instances and accumulate them in memory, then probably just want to use something like...

    if (titles.numChildren > 0)

    {

    titles.removeChildAt (0);

    }

  • I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    Hello
    I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    I use Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the Intel Core i7 2.7 GHz and 1333 MHz DDR3 8 GB memory.

    Thanks in advance,
    Pat

    You have a "Community Toolbar" extension installed? Which has been reported by other users of Mac as affecting the new tab feature in Firefox 30.

  • Number with gestures. Am I missing something?

    Hi all, I was experimenting with the sample of gestures of https://github.com/blackberry/NDK-Samples/tree/ndk2/Gesture ... I wanted to do something when a tap gesture were found (some processing and registration for the file...)...

    I noticed that after the treatment, the gestures would stop working...

    I was able to recreate the problem simply by putting a 2 second delay in the section of the tap of the gestures of the Gesturs sample application standard callback function...  I am pasting the main.c below...

    I tried searching in the gesture API on delays documentation or any configuration of the time-out option, but could not find something... am I missing something? How can I recover when it arrives? (of course I could put the personalised treatment in another thread, but I don't need this way, and I don't see why it wouldn't work...). Anyone else having this problem?

    This is the code:

    /*
    * Copyright (c) 2011-2012 Research In Motion Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    #include "input/screen_helpers.h"
    #include "gestures/double_tap.h"
    #include "gestures/pinch.h"
    #include "gestures/set.h"
    #include "gestures/swipe.h"
    #include "gestures/tap.h"
    #include "gestures/two_finger_pan.h"
    
    #define MIN_VIEWPORT_SIZE 128
    #define MAX_VIEWPORT_SIZE 4096
    screen_context_t screen_ctx;
    screen_window_t screen_win;
    static bool shutdown;
    struct gestures_set * set;
    const char* img_path = "app/native/wallpaper.jpg"; /* Relative path to image asset */
    int viewport_pos[2] = { 0, 0 };
    int viewport_size[2] = { 0, 0 };
    int last_touch[2] = { 0, 0 };
    
    /**
     * The callback invoked when a gesture is recognized or updated.
     */
    void
    gesture_callback(gesture_base_t* gesture, mtouch_event_t* event, void* param, int async)
    {
        if (async) {
            fprintf(stderr,"[async] ");
        }
        switch (gesture->type) {
            case GESTURE_TWO_FINGER_PAN: {
                gesture_tfpan_t* tfpan = (gesture_tfpan_t*)gesture;
                fprintf(stderr,"Two finger pan: %d, %d", (tfpan->last_centroid.x - tfpan->centroid.x), (tfpan->last_centroid.y - tfpan->centroid.y));
                if (tfpan->last_centroid.x && tfpan->last_centroid.y) {
                    viewport_pos[0] += (tfpan->last_centroid.x - tfpan->centroid.x) >> 1;
                    viewport_pos[1] += (tfpan->last_centroid.y - tfpan->centroid.y) >> 1;
                }
                break;
            }
            case GESTURE_PINCH: {
                gesture_pinch_t* pinch = (gesture_pinch_t*)gesture;
                fprintf(stderr,"Pinch %d, %d", (pinch->last_distance.x - pinch->distance.x), (pinch->last_distance.y - pinch->distance.y));
    
                int dist_x = pinch->distance.x;
                int dist_y = pinch->distance.y;
                int last_dist_x = pinch->last_distance.x;
                int last_dist_y = pinch->last_distance.y;
    
                int reldist = sqrt((dist_x)*(dist_x) + (dist_y)*(dist_y));
                int last_reldist = sqrt((last_dist_x)*(last_dist_x) + (last_dist_y)*(last_dist_y));
    
                if (reldist && last_reldist) {
                    viewport_size[0] += (last_reldist - reldist) >> 1;
                    viewport_size[1] += (last_reldist - reldist) >> 1;
    
                    /* Size restrictions */
                    if (viewport_size[0] < MIN_VIEWPORT_SIZE) {
                        viewport_size[0] = MIN_VIEWPORT_SIZE;
                    } else if (viewport_size[0] > MAX_VIEWPORT_SIZE) {
                        viewport_size[0] = MAX_VIEWPORT_SIZE;
                    }
                    if (viewport_size[1] < MIN_VIEWPORT_SIZE) {
                        viewport_size[1] = MIN_VIEWPORT_SIZE;
                    } else if (viewport_size[1] > MAX_VIEWPORT_SIZE) {
                        viewport_size[1] = MAX_VIEWPORT_SIZE;
                    }
    
                    /* Zoom into center of image */
                    if (viewport_size[0] > MIN_VIEWPORT_SIZE && viewport_size[1] > MIN_VIEWPORT_SIZE &&
                            viewport_size[0] < MAX_VIEWPORT_SIZE && viewport_size[1] < MAX_VIEWPORT_SIZE) {
                        viewport_pos[0] -= (last_reldist - reldist) >> 2;
                        viewport_pos[1] -= (last_reldist - reldist) >> 2;
                    }
                }
                break;
            }
            case GESTURE_TAP: {
                gesture_tap_t* tap = (gesture_tap_t*)gesture;
                fprintf(stderr,"Tap x:%d y:%d delay 2000",tap->touch_coords.x,tap->touch_coords.y);
                // *** 2 sec delay to reproduce issue ***
                delay(2000);
                break;
            }
            case GESTURE_DOUBLE_TAP: {
                gesture_tap_t* d_tap = (gesture_tap_t*)gesture;
                fprintf(stderr,"Double tap x:%d y:%d", d_tap->touch_coords.x, d_tap->touch_coords.y);
                break;
            }
            default: {
                fprintf(stderr,"Unknown Gesture");
                break;
            }
        }
        fprintf(stderr,"\n");
    }
    
    /**
     * Initialize the gestures sets
     */
    static void
    init_gestures()
    {
        gesture_tap_t* tap;
        gesture_double_tap_t* double_tap;
        set = gestures_set_alloc();
        if (NULL != set) {
            tap = tap_gesture_alloc(NULL, gesture_callback, set);
            double_tap = double_tap_gesture_alloc(NULL, gesture_callback, set);
            tfpan_gesture_alloc(NULL, gesture_callback, set);
            pinch_gesture_alloc(NULL, gesture_callback, set);
        } else {
            fprintf(stderr, "Failed to allocate gestures set\n");
        }
    }
    
    static void
    gestures_cleanup()
    {
        if (NULL != set) {
            gestures_set_free(set);
            set = NULL;
        }
    }
    
    static void
    handle_screen_event(bps_event_t *event)
    {
        int screen_val, rc;
    
        screen_event_t screen_event = screen_event_get_event(event);
        mtouch_event_t mtouch_event;
        rc = screen_get_event_property_iv(screen_event, SCREEN_PROPERTY_TYPE, &screen_val);
        if(screen_val == SCREEN_EVENT_MTOUCH_TOUCH || screen_val == SCREEN_EVENT_MTOUCH_MOVE || screen_val == SCREEN_EVENT_MTOUCH_RELEASE) {
            rc = screen_get_mtouch_event(screen_event, &mtouch_event, 0);
            if (rc) {
                fprintf(stderr, "Error: failed to get mtouch event\n");
            }
            rc = gestures_set_process_event(set, &mtouch_event, NULL);
    
            /* No gesture detected, treat as pan. */
            if (!rc) {
                if (mtouch_event.contact_id == 0) {
                    if(last_touch[0] && last_touch[1]) {
                        fprintf(stderr,"Pan %d %d\n",(last_touch[0] - mtouch_event.x),(last_touch[1] - mtouch_event.y));
                        viewport_pos[0] += (last_touch[0] - mtouch_event.x) >> 1;
                        viewport_pos[1] += (last_touch[1] - mtouch_event.y) >> 1;
                    }
                    last_touch[0] = mtouch_event.x;
                    last_touch[1] = mtouch_event.y;
                }
            }
            if (screen_val == SCREEN_EVENT_MTOUCH_RELEASE) {
                last_touch[0] = 0;
                last_touch[1] = 0;
            }
        }
    }
    
    static void
    handle_navigator_event(bps_event_t *event) {
        switch (bps_event_get_code(event)) {
        case NAVIGATOR_EXIT:
            shutdown = true;
            break;
        }
    }
    
    static void
    handle_events()
    {
        int rc, domain;
        bool has_events = true;
    
        while(has_events) {
            bps_event_t *event = NULL;
            rc = bps_get_event(&event, 50);
            assert(rc == BPS_SUCCESS);
            if (event) {
                domain = bps_event_get_domain(event);
                if (domain == navigator_get_domain()) {
                    handle_navigator_event(event);
                } else if (domain == screen_get_domain()) {
                    handle_screen_event(event);
                    /* Re-draw the screen after a screen event */
                    screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_SOURCE_POSITION , viewport_pos);
                    screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_SOURCE_SIZE , viewport_size);
                    screen_flush_context(screen_ctx,0);
                }
            } else {
                has_events = false;
            }
    
        }
    }
    
    static int decode_setup(uintptr_t data, img_t *img, unsigned flags)
    {
        screen_window_t screen_win = (screen_window_t)data;
        screen_buffer_t screen_buf;
        int size[2];
    
        size[0] = img->w;
        size[1] = img->h;
        screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
        screen_create_window_buffers(screen_win, 1);
    
        screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void **)&screen_buf);
        screen_get_buffer_property_pv(screen_buf, SCREEN_PROPERTY_POINTER, (void **)&img->access.direct.data);
        screen_get_buffer_property_iv(screen_buf, SCREEN_PROPERTY_STRIDE, (int *)&img->access.direct.stride);
    
        img->flags |= IMG_DIRECT;
        return IMG_ERR_OK;
    }
    
    static void decode_abort(uintptr_t data, img_t *img)
    {
        screen_window_t screen_win = (screen_window_t)data;
        screen_destroy_window_buffers(screen_win);
    }
    
    int
    load_image(screen_window_t screen_win, const char *path)
    {
        img_decode_callouts_t callouts;
        img_lib_t ilib = NULL;
        img_t img;
        int rc;
    
        rc = img_lib_attach(&ilib);
        if (rc != IMG_ERR_OK) {
            return -1;
        }
    
        memset(&img, 0, sizeof(img));
        img.flags |= IMG_FORMAT;
        img.format = IMG_FMT_PKLE_XRGB8888;
    
        memset(&callouts, 0, sizeof(callouts));
        callouts.setup_f = decode_setup;
        callouts.abort_f = decode_abort;
        callouts.data = (uintptr_t)screen_win;
    
        rc = img_load_file(ilib, path, &callouts, &img);
        img_lib_detach(ilib);
    
        return rc == IMG_ERR_OK ? 0 : -1;
    }
    
    int
    main(int argc, char **argv)
    {
        const int usage = SCREEN_USAGE_WRITE;
    
        screen_buffer_t screen_buf = NULL;
        int rect[4] = { 0, 0, 0, 0 };
    
        /* Setup the window */
        screen_create_context(&screen_ctx, 0);
        screen_create_window(&screen_win, screen_ctx);
        screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage);
    
        load_image(screen_win, img_path);
    
        screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void **)&screen_buf);
        screen_get_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, rect+2);
        viewport_size[0] = rect[2];
        viewport_size[1] = rect[3];
        screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_SOURCE_SIZE , viewport_size);
    
        screen_post_window(screen_win, screen_buf, 1, rect, 0);
    
        init_gestures();
    
        /* Signal bps library that navigator and screen events will be requested */
        bps_initialize();
        screen_request_events(screen_ctx);
        navigator_request_events(0);
    
        while (!shutdown) {
            /* Handle user input */
            handle_events();
        }
    
        /* Clean up */
        gestures_cleanup();
        screen_stop_events(screen_ctx);
        bps_shutdown();
        screen_destroy_window(screen_win);
        screen_destroy_context(screen_ctx);
        return 0;
    }
    

    Yes, when I run the code above I get the same problem.  It seems that the two finger gestures and pinching are fly events and not 'fault', so that it goes to the tap gesture.  If I rearrange the gesture_allocs to this

    _tfpan = tfpan_gesture_alloc (& tfparams, cb, _gest_set);
    _pinch = pinch_gesture_alloc (& pinparams, cb, _gest_set);
    _double_tap = double_tap_gesture_alloc (& dtparams, cb, _gest_set);
    _tap = tap_gesture_alloc (& tparams, cb, _gest_set);

    This works.  But the double tap does not work, probably because it takes 2 pressures, and to know that you have only 1 tap must wait or get an idle screen event.  In this case, I guess you could buffer events and use gestures_set_process_event_list with the functions in event_list.h

    https://developer.BlackBerry.com/native/reference/BB10/com.QNX.doc.gestures.lib_ref/topic/about_even...

    In addition, time of the event is the time of the real event, not when you have received the event with bps_get_event.  Any delay should not affect the treatment of the gesture.

  • I set up the new user on my MacBook Pro with the parental control, and I want to allow access to Word, Excel, PowerPoint for Mac.  I have those checked in the dialog box list, but they may not appear in its applications. Am I missing something?

    I set up a 'user' for my son and use parental controls.  I want to him to have access to Word for Mac, and it appears in the list of applications I can check to allow use for.  However, when we opened a session under his username, these applications do not seem to be anywhere.  When you configure new users, applications such as Word for Mac or the available Pages on users?  I can't find any information to help in this regard.  I don't know if I'm missing something under user put up, or parental controls, or both.  Any help would be greatly appreciated!

    These requests should be made available, provided you installed then in the folder/applications, not in a private folder ~/Applications for a specific user.

  • upsert xmltype data xpath - missing something obvious?

    Version: 10.2.0 * 2 * EA

    I'm doing a upsert (update / insert) of an xmltype for a given xpath.

    The xml data is passed as an xmltype, xpath is a string (varchar2), the new value is a string, varchar2.

    If the node specified by the xpath expression exists it is trivial using updatexml; of course if the node is not nothing happens. I can verify the existence of nodes using is node, but I just take off, trying to figure out how to insert the node.

    All the APIs I can find who to insert XML (APPENDCHILDXML, INSERTXMLBEFORE, INSERTCHILDXML) do not take an xpath but require an xmltype. Which means that if I'm reading this right I have no other choice to the parse varchar2 string xpath to create an xmltype (ugh!).

    I can't find any API that takes an xpath as a varchar2 and a value and gives me an xmltype. Ideally I want same, here an API that returns the XML updated which took the set xpath to update (or inserted if it did not exist) with the new value.

    I'm not an XML expert but I'm pretty handy with SQL and PL/SQL. For me this seems incredibly heavy just to do something as mundane as an upsert, so I hope I'm missing something obvious!

    Can soemone please put me everything right with a pointer or an example?

    On top of the XML uses namespaces, but they are not registered, there is no record of current schema.

    Marco Gralike wrote:
    Could not be done through XQuery, although the version of database doesn't really help...

    It would be possible with a dynamic, but 'painful' XQuery with a static expression expression because it would require parsing the XPath expression and rebuild the entire document of entry with the necessary adaptations.
    I think XSLT would be more effective in this case.

    Perhaps, one day, when the database is XQuery Update Facility, we will be able to do:

    copy $a := $doc/Address
    modify (
      if ($a/zip)
        then replace value of node $a/zip with "12345"
        else insert node element zip {"12345"} into $a
    )
    return $a
    

    user12083137 wrote: for me, from a SQL background, I can't believe this simple case is simply not covered.

    Perhaps not as simple as it sounds. :)

    The feature can be simulated by an IF/THEN/ELSE logic, or a DELETE/INSERT sequence.
    For example:

    case when existsNode(doc, xpath) = 1
      then updateXML(
             doc
           , xpath || '/text()'
           , somevalue
           )
      else appendchildxml(
             doc
           , substr(xpath, 1, instr(xpath, '/', -1)-1)
           , xmlelement(
               evalname(substr(xpath, instr(xpath, '/', -1)+1))
             , somevalue
             )
           )
    end
    

    or,

    appendChildXML(
      deleteXML(doc, xpath)
    , substr(xpath, 1, instr(xpath, '/', -1)-1)
    , xmlelement(
        evalname(substr(xpath, instr(xpath, '/', -1)+1))
      , somevalue
      )
    )
    
  • Sweep, but no document - something wrong with my kindergarten picture?

    I used my Pixma MX922 printer with an older computer without any major problems.  A few months back, I had to replace my PC and the printer continued to work properly.  The problem is that today ' today I need to use the scan function (I probably haven't tried to use it because I changed my PC), and it seems that the printer is scanning, but I can't find anything on my PC.

    And then I thought "duh!" Never, I reinstalled the printer software. So I downloaded the "official" Canon drivers, my kindergarten picture and a few other things from the Canon support website and installed it all. But it doesn't seem to make a difference.

    So I started my garden of Image, which was installed just, and "scan" control is gray, for some reason any. I can't find any setting scan regarding

    I must be missing something - what am I missing?

    Hi Haldurson,

    Please try to use the Scan IJ utility to scan your PIXMA MX922.  To scan using the IJ scanning utility, please follow these steps:

    1. click on the start menu select all programs (or all Apps)

    2. click on Canon Utilities, IJ Scan Utility and click on IJ Scan Utility to open the program.

    3. click the settings... button at the bottom.

    4. click on the upper left tab at the top.

    5. click on analysis of Document on the left side.

    6. next to Data Format, choose PDF (Multiple Pages).

    7 any other changes that you want, and the name of the file where you want to save the file.

    8. click on OK.

    9. in the IJ scanning utility, click Document.

    The PDF file will be saved to the specified location.

    Please note that Canon Forum is not intended for immediate help, but a place for the community to give you help and comments. If there is a need for emergency assistance, please use the link below to join our friendly technical support team:

    http://www.USA.Canon.com/Cusa/consumer/standard_display/contact_us_consumer

  • ORA-06530: Reference to the error message composite non initialized? Have I missed something

    Trying to figure out why I get message ORA-06530 to a simple example below. I am trying to create a PL/SQL table of values to be stored and then used later in a PL/SQL procedure. But now get this message when you try to added values to the table. Have I missed something?

    /*

    type of projection Usage_Groups_for_coda_tab1;

    type of projection Usage_Groups_for_coda_rec1;

    CREATE TYPE Usage_Groups_for_coda_rec1 AS

    object

    (Usage_Group_ID NUMBER (10),)

    Coda_comment VARCHAR2 (45).

    Amount NUMBER,

    Deduction_amount NUMBER)

    /

    CREATE TYPE Usage_Groups_for_coda_tab1 AS

    THE Usage_Groups_for_coda_rec1 TABLE

    /

    */

    declare

    p_usage_group_id USAGE_GROUP. USAGE_GROUP_ID % TYPE: = 10412.

    p_coda_comment CODA_TRANSACTION. CODA_TRANSACTION_COMMENT % TYPE: = 046602001;

    p_amount CODA_TRANSACTION. TOTAL_CREDIT_AMT % TYPE: = 100;

    p_deduction_amount CODA_TRANSACTION. TOTAL_CREDIT_AMT % TYPE: = 0;

    I have directory;

    g_usage_groups_for_coda_tab Usage_Groups_for_coda_tab1;

    BEGIN

    dbms_output.put_line ('initialize table');

    g_usage_groups_for_coda_tab: = Usage_Groups_for_coda_tab1();

    dbms_output.put_line ('1 added to count of records in the table");

    I: = g_usage_groups_for_coda_tab. COUNT + 1;

    dbms_output.put_line (' extend: do 1 row of table to use ');

    g_usage_groups_for_coda_tab.extend;

    dbms_output.put_line ('values added to g_usage_groups_for_coda_tab');

    g_usage_groups_for_coda_tab (i). Usage_Group_ID: = p_usage_group_id;

    g_usage_groups_for_coda_tab (i). Coda_comment: = p_coda_comment;

    g_usage_groups_for_coda_tab (i). Amount: = p_amount;

    g_usage_groups_for_coda_tab (i). Deduction_amount: = p_deduction_amount;

    dbms_output.put_line ('g_usage_groups_for_coda_tab (i).) Usage_Group_ID ' | g_usage_groups_for_coda_tab (i). Usage_Group_ID | ") ;

    END;

    You instantiate the collection, but you should also initialize the type of object for each row in the collection.

    A compact way to do this is to use the constructor when you complete each row, e... g

    g_usage_groups_for_coda_tab (i): =.

    () Usage_Groups_for_coda_rec1

    Usage_Group_ID-online p_usage_group_id,

    Coda_comment-online p_coda_comment,

    Amount-online p_amount,

    Deduction_amount-online p_deduction_amount);

  • BufferedReader InputStream?  I'm missing something...

    Video lesson 3-4 deals with "Method 2" to get a BufferedReader using an InputStream created from UART.

    The minute 04:38 mark slideshows:

    InputStream is = Channels.newInputStream (uart);

    BufferedReader reader = new BufferedReader (is);

    The IDE nor any JavaDoc I find this a constructor for a BufferedReader with an InputStream as an argument.

    Just curious to know if I'm missing something or there is an error?

    It should be: Player BufferedReader in = new BufferedReader (new InputStreamReader (is));

    Thank you


    Brent S

    As a result of my own question, I've implemented as follows, and it does not work (good or bad).

    InputStream is = Channels.newInputStream (uart);

    BufferedReader reader = new BufferedReader (new InputStreamReader (is));

    Maybe a quick edit of the video he will make it clear if I'm right.

    Enjoy!

    Brent S

  • I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    I've just updated Adobe Professional, but I'm not able to add, to delete the pages more. Before the update, it wasn't a problem. I missed something?

    Are you sure that you're not open your files with the free player instead of using Acrobat? And please do not post the same question multiple times. Also, try to be more specific. "I am not able" can mean many different things.

  • Is this a bug or am I missing something?

    Hello everyone

    I was playing around with the CC 2015 first version and I noticed this. If I have, say, three or four clips on the other and I need to extract some of them, I score inside and out, I activate the tracks I want extract to apply to the and I touched the relative tone (default is the ' key but I put extract to X and Z elevator key because I also do a lot of work with Avid Media Composer "). What I've noticed, however, is that, even if, say, the song V2 and V3 are not activated, the elevator is also applied to these titles. The only way around this is to turn off synchronization on these securities locking and then the action of the extract happens as it should. What's weird, is that this is NOT the case with the command of the elevator, which only works on the slopes turned on, without having to turn off the synchronization lock option.

    To give you a better idea what I'm talking about, I am attaching a video of my screen (please forgive me for the use of shortcuts X and Z, rather than the menu commands, the power of habbit, I guess... :-)

    I missing something here or is this a bug that Adobe should be aware of? I think it's also the case with the CC 2014 version but I need to check. It is very uncomfortable because on Avid, it works very well, and despite the fact, there is so much more that I love on the first, it's really frustrating on my workflow.

    Any ideas on this would be most welcome.

    If you want it changed to behave differently, then you must file a feature request:

    Feature request/Bug Report Form

    MtD

  • I recently bought and downloaded Lightroom 5.7 update of Lightroom 3. In my module to develop, I don't have sliders to hightlight and shadow. Am I missing something?

    I recently bought and downloaded Lightroom 5.7 and Lightroom 3 was updated. In my module to develop, I have no settings hightlight and shadow sliders. Am I missing something?

    Your photo does not process release 2012. Any photo with process version 2003 or 2010 will use the 'old' as shown below basic controls. You can update the process for 2012.

Maybe you are looking for

  • How can I get all internet radio to work again in iTunes?

    I am running iTunes version in Mac OS X version 10.11.6 12.4.2.4 (El Capitan) on a MacBook Pro. When I go into iTunes and not select the option of internet radio stations under news / talk of work. For example, WMAL does not, and yet I can get the li

  • Satellite A300 - disapperars video if I close the lid

    Hello I have a Toshiba Satellite a300 PSAGCC - 06:019 and I'm watching movies h264. I am running Vista Home premium SP1 with the latest ATI drivers and catalyst control center. I use the KMPlayer, as well as of the x 64 Media Player Classic version (

  • Re: Satellite L300 - no sound on internet

    I have a Satellite L300, PSLB8A-OFM004, 32-bit windows vista part number. I have no sound on the internet. Can someone help me?Anni

  • OfficeJet All in One Pro 7680

    Just bought this printer used for a private party. I can't get the installation disc to download on my computer using Windows 7 / 64-bit. I tried to download the software drivers and install by HP, but it seems that HP is not for Windows 7 that will

  • FPGA project daily Software development management

    I noticed that every day when I finished the work on the project and take a copy of this project and rename it to serve the next day and open FPGA vi in the new project file, Xilinx begins once again compiling FPGA VI. Is there a method that I could