MapKit - User initiated drawing

Hi all,
I'm investigating MapKit for an upcoming project. I've found quite a few ways to programmatically draw points, lines, polygons, etc. The one thing I'm having trouble finding is how to allow a user to draw a line or polygon by touching the map. My users want to zoom-in on their property and draw a boundary to represent the state of their land at a given time (typically once per year). Is this type of functionality supported by MapKit? Will this type of functionality be part of Apple's new mapping technology in iOS 6?
Thanks ahead of any advice,
David

jdpal wrote:
Thanks - I posted it on the server forum as well per your suggestion.
Do you know if browse mode will let the users restore to the volume that was backed up, opposed to their local desktop?
I'm not sure. you should try and see what happens. it might. also, when you enter TM interface, scroll back in time and select what you want to restore you can click on the "gears" action button in the toolbar and choose 'restore to". this will let you choose where you want to restore this TO. it can be any volume including a network one. although when I just tried it with a network volume it had strange results. i got an error -36 saying that there was some kind of problem restoring and yet it restored just fine.
I guess either would be an okay solution but ideally they could put the file back where it originally was.

Similar Messages

  • How can I display the length of the yet unfinished line that a user is drawing in the image using the line tool of the IMAQ tool palette.

    Is this really not possible using standard Labview/Vision YI`s?

    Herbert,
    I can't find a way to extract the information you want within the program. However, this information is displayed as part of the IMAQ tool palette while the user is drawing the line. The pallette shows the anchor point, the X and Y offsets, and the line length and angle.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • LDAP imported users initial log in

    Using ice, I imported a users.csv file in to a container and I can not login. When I try to log in I receive Novell Security message " The system could not log you in to Netware". After I change the password either via consoleone or pw.ldif import I able to log in. How can I fix this initial log in?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    Does your LDIF set users' passwords along with creating the objects? If
    not, do so. Otherwise find out more about why the users do not login
    successfully and fix that issue. Feel free to post part of the LDIF
    here for verification.
    Good luck.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.15 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
    iQIcBAEBAgAGBQJO1PkkAAoJEF+XTK08PnB5BjwP/0wIh8kM2u2zpLghgi7CAS8J
    6m5QwJMirOm2AhKAv792ynuSfLacGEqQaNmOoDfnLWF4HGR4m3 xNby/evghryamF
    Uhq9Rk9uHAwdJEFDtnwAJNDqr0nYiFTf2Vr2InLbqdweO5fO1R qJpfAgRtN6yf/b
    NAkGXlX73coJ7IEzoPx6TzaS5p2E7cXW4ZThdscRdOp8KJUlp5 cjErkUly01BMj7
    1rZJhqeR/mMjIJbYkJ/2WqGqIoAlTmZd6jFlYQz7hySGhLXniqFU1FaeJQ4G+5iY
    YI9P8m2rLvV0s/DLLrmDyoywPkJ0HeKVx1AaDHOPMEzaNRTn1gQtKjzIC4nEE7AI
    WJk/ip3BP83y6QFlJE8apNgYkdkaddtAHzxvvKe85X8lzr3vaGrtyi 2z0PMU23yE
    UupKa634r2jxBm+SUQcr+WM9DCjbh1NowMcYAHNMbrgvQYmrvW d5wyvJ2xmu4Ex7
    xuBlFjv4yijZ5GUKAEAIyHsxy7IErIufZQQCGfMHgXOel1laNx gX9PTI8fYaLvzS
    JDs4Z5mrc8pYeIhleLrKmy0h4WgewD8SSLZB/hM4bQxk+QTlYjUvqrEvrekfFLJ2
    oIZ8LdebQj8YVppMER7kcjms3rgQvNPPrrd48gjwWOy1FYVAPz 9yLEIHzKqhmkQo
    2aLoDythWhw9BXNAdwHb
    =D/Nj
    -----END PGP SIGNATURE-----

  • How to change users' initial page based on a condition

    I'm using SSO on my application, and have two types of users who will be logging on - I want one set (admins) to go straight to one page, and the other set (users) to go to a another page after logging in. These two sets of users are stored in the database, so I can want to use that to check against.
    I get the impression this would be easy enough if my users went via the 101-login page, but as I'm using SSO I don't think they do. I can change the default starting page, with the home link setting in the application's security attributes, but you can only set one of those.
    I don't mind having it all default to one page, and then redirect away from that if the username meets a particular condition, but can't see how I can do that.
    Can anyone suggest how I can work this to achieve what I need?

    Tim,
    First I would create a HOME_PAGE application item. Then I would create an application computation on new instance that sets that item accordingly. something like this:
    with user_table as(
        select 'TIM' user_name, 'ADMIN' user_role from dual
    select case
               when exists(select *
                             from user_table
                            where user_name = :APP_USER
                              and user_role = 'ADMIN')
               then
                  102
               else
                  103
          end
      from user_tableI would make a landing page all people go to. Page 150. On that page i would make a branch before header which references your HOME_PAGE application item.
    Cheers,
    Tyson Jouglet

  • New TM user: initial back-up plan

    Hi. I’m going to be using TM for the first time to back up my son’s Digital Performer music project files. He keeps all of these files, which are very large, on a 1Tbyte internal drive called “Projects,” which is separate from his main Mac HD. My plan is to use TM to back up “Projects” to a 2 Tbyte external hard drive, excluding the main hard drive and all the other back-up drives he’s using. My thinking here is that TM requires a lot of space and that the less I’m backing up the better. I should also mention that both the main HD and “Projects” are regularly backed up to other external hard drives using Super Duper. My questions are: 1) is this doable—that is, can I exclude all the other drives, including the main HD and 2) does this seem like the best back-up plan or would there be some advantage in including the main HD in the back up. Thanks for any advice on this, and my apologies if this has been already covered in this forum.

    Yes, that's "doable." See #10 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum), if you're not sure how to exclude things.
    Whether it's the best strategy isn't a simple question, though.
    Usually, folks back up their OSX drive, and perhaps others, with Time Machine, and back up others with a different app, such as CarbonCopyCloner or SuperDuper, run much less often.
    It depends partly on how often things on various drives change, and how important it is to have hourly backups.
    For example, your OSX drive usually has lots of changes; preferences, browser history and bookmarks, email, and things like documents you're actively working on. There, the hourly backups mean if you accidentally change or delete the wrong file (such as "Save" instead of "Save As"), or something suddenly turns up corrupted, you have a good chance of finding one or more recent versions in your backups.
    Things that don't change too often, or where the intermediate versions aren't important, you may not want to back up all that often, and maybe not even worry about prior versions. (CCC can keep prior versions; I don't know if SD can.)
    When calculating space requirements for Time Machine, what's important is the amount of data it's backing-up, not necessarily the total capacity of the drive(s), but do allow for growth. Second most important is how often large things change. Thus you may have room on the 2 TB drive to keep backups of both the internal HD and the external for many months.
    I suspect you've got it covered, but I always recommend keeping secondary backups. See #27 in the FAQ for some suggestions.

  • Olympus E-3 Users Initial Experiences

    Now that Apple has finally released an update that covers the E-3 without DNG conversion, I'm curious as to initial and ongoing impressions. I'm still using Lightroom, but is Aperture 2 worth consideration?

    I agree. I have been doing the .dng conversion for several months and am impressed by how much better the native RAW engine works; more detail, richer colors and better overall image quality. Apple has, IMO, done an excellent job with this. And, the new tools are quite good. As always, it can help you make huge savings in workflow time...
    Get the trial...see for yourself. good luck with your decision.
    cheers,
    david

  • What should end-users initially do in BPC system?

    Hi: I am seeking some guidance here. My client wants to provide a small set of end-users access to the BPC sandbox system. These users are absolutely new to BPC, haven't had any training but use Excel regularly for their analytical & planning needs. The idea is to have them gain some familiarity with the look-and-feel of BPC for financial reporting purposes and assess how well it could serve as the financial report writing tool. It is a tall order for folks who have no experience with BPC but that's the approach. Can you please advice on what activities these users should and can realistically carry out that will not only give them a good overview but also help provide meaningful feedback on the product? (Data will be loaded in the sandbox and formal training will be provided soon but this question relates to the period prior to training).
    Full points will be awarded to all the helpful answers.
    Thank you very much,
    Jon

    Hello,
    I have exactly same situation.  One of my prospective customers is going to start small project to evaltuate BPC for their planning tool, and requires small sandbox machine.
    All replies above are useful information, also I think it is also important to consider your customer's requirement and expectation for better consulting service.
    I would like to add 2 things about this topic.
    1: current Excel spreadsheets
    If your customer uses tons of Excel sheets for planning process, it might be great to show the customer utilizing current Excel spread sheet by importing those to BPC and put some BPC functions like EvSND.  Then the cusomter would understand BPC is great application that enable to utilize existing Excel sheets easily.  I had some presales activities, and that seems to impress sereral prospective customers.
    2: how to build sandbox machine
    We're planning to build sandbox with virtual environment called "VMware".  The customer prepares just one stand alone note PC.  Then consultants make VMware files with VMware Workstation.  With VM, it is possible to make one set of files that includes OS, SQL Server, MS-Office, and BPC.  Everything is put into one file, and do not set up client server system.  I think you have to purchase VMware Workstation, but VMware Server might be free and has same functions.  The bad thing is that VM file is super heavy, I say 15GB in my teams' machine as average.  Also the note PC should be high-spec one.
    I do not have much information to answer your question.  I hope that comment would help you.  If you have further question, please feel free to ask me.
    Atsushi

  • User Initiated Remote Control - Behind NAT

    I must be missing something. I am try to allow a laptop to request a
    remote control session when it is disconnected from the network. When I
    right-click on the remote management agent the option to request a
    session is greyed out. Our user and workstation policy allow for the
    user requested session and the ability to accept connections accross
    NAT/Proxy. Assigning a password to the remote management agent also does
    not help. Any ideas?

    I keep seeing that if a machine is behind a NAT'd firewall, like home for
    instance, the user should be able to click on the Remote Management icon
    and select Request Session. If the machine is on the local network, all RC
    functions are fine. As soon as it's disconnected and behind a home
    firewall or not even that, connected via dial-up to the net these options
    go away. I have logged into the middle-tier via these methods and that
    produces no change in my remote control options.
    The error logs indicate that the workstation is not authenticated, which is
    obvious, and that neither policies will be active.
    Hope that helps...
    > On Tue, 25 Jan 2005 21:05:57 GMT, [email protected] wrote:
    >
    > > I am try to allow a laptop to request a
    > > remote control session when it is disconnected from the network.
    >
    > so how do you remote control?
    >
    > note: you need middletier installed to allow access from the outside of
    > your network... and IIRC running client32 will not really help in your
    > case...
    > --
    >
    > Marcus Breiden
    >
    > Please change -- to - to mail me.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Check whether User initiated its VoiceMail Box

    Hello Guys,
    unfortunately I could not find a database dictionary like for callmanager to find a way by myself. Maybe you can provide me one?
    I need to know whether there is a way to check if a user ever used its voice mail box from unity connection.
    Thanks for help!

    Hi there,
    There is a perfect tool for this type of report. We have used this to search for the same "setup" info.
    Check the  "Set for First Time Enrollment" and "Voice name Recorded";
    Connection  User Data Dump (CUDD) Tool
    The Connection User Data Dump (CUDD) is a  Windows-based remote database administration tool available on the Cisco  Unity Tools website. CUDD allows you to export specific information  about users to a file that can be viewed or imported into another  application, such as a database utility or Microsoft Excel. When the  data is exported, the tool automatically creates a header row that lists  the data type found in each column of the output, for ease of import  into other programs.
    The tool is available from the "Superb" Unity  Tools site;
    http://www.ciscounitytools.com/Applications/CxN/UserDataDump/UserDataDump.html
    From the  Help Notes;
    Requirements/Special  Notes
    This  version of User Data Dump runs on Windows XP/2000/2003 or Vista.
    ***This  version of User Data Dump only works with Unity Connection 7.0(1) or  later.
    Hope this  helps!
    Rob

  • Invalid graphics context when trying to draw by tracking user's finger

    Hi, I hope someone can help please.
    I am trying to write an application that will allow the user to draw on screen using his finger. My goal is to have the drawing consisting of a number of small circles drawn at the touch points. However, whenever I call my method that draws a circle at a specific point, nothing happens as I see the "invalid context" message in the console. I obtain the context in my drawing method using context = UIGraphicsGetCurrentContext();
    Any suggestions as to how to get a valid context please?

    The method is in at least a couple of the example apps.
    You can create your own bitmap and context, and draw to that anytime.
    Then have the desired view's drawRect copy from your bitmap to the views context when it's called (which it will be with a valid context at that time).

  • Getting initiating user out of proxy

    Hello!
    Following scenario:
    R/3(A) (sync. Proxy) --> XI --> R/3(B) (sync. Proxy).
    At the target system the user initiating the proxy in (A) should be investigated out of the proxy runtime data (This works fine via several called methods of the proxy instance). But instead of the user triggering the proxy (as shown correct in the monitoring) the XI user is placed in the runtime as i can see during debugging...
    Result:
    XI-Monitoring shows RUNTIME-User = User of (A). <-Correct
    Debugging shows RUNTIME-User = User of XI. <-Incorrect
    How can I get during runtime the real initiator of the communication as shown in the monitoring?
    Any ideas?
    Kind regards,
    Klaus

    SQL> CREATE TABLE T(USRNAME VARCHAR2(30));
    Table created
    SQL>  CREATE OR REPLACE TRIGGER TRI_TEST
      2   BEFORE DELETE
      3   ON TT
      4   FOR EACH ROW
      5   BEGIN
      6     INSERT INTO T VALUES(USER);
      7   END;
      8  /
    Trigger created
    SQL> SELECT * FROM T;
    USRNAME
    SQL> SELECT * FROM TT;
      EMP_P_ID EMP_FIRSTNAME                  EMP_ADDRESS
           100 Steven                         SKING
           101 Neena                          NKOCHHAR
           102 Lex                            LDEHAAN
           103 Alexander                      AHUNOLD
           104 Bruce                          BERNST
           105 David                          DAUSTIN
           106 Valli                          VPATABAL
           107 Diana                          DLORENTZ
           108 Nancy                          NGREENBE
           109 Daniel                         DFAVIET
    10 rows selected
    SQL> DELETE FROM TT WHERE EMP_P_ID=100;
    1 row deleted
    SQL> SELECT * FROM T;
    USRNAME
    DBAUSR
    SQL> Edited by: Garey on 2009-8-3 上午2:37

  • Pen annotation in Acrobat X leads to jagged initial stroke

    I'd like to use the freeform drawing tool to mark up PDFs on my tablet, but I'm having a problem with drawing accuracy. For some reason Acrobat takes a split second to recognize that the user is drawing after putting the pen down. For example, rapidly drawing a large circle will produce a straight line from the initial contact point to a point that is something like 20 percent along the circle outline. This makes drawing and writing pretty much impossible.
    Is there a setting that I can toggle to improve accuracy / response time? For reference, the Evermap Autoink add-in produces smooth and pressure sensitive annotations within Acrobat, so it's not a problem with my machine.
    Alternatives exist, but are not cheap or have issues:
    - iAnnotate PDF: near perfect but turns annotations into bitmaps
    - PDF Revu is rather expensive
    - AutoInk works, but does not allow the user to define custom pens beyond customizing the included 3 or 4 pens
    System:
    - Acrobat X (10.1.2)
    - Win7 X64 Ultimate
    - Lenovo X220 tablet, core i7, pen + touch

    Yes, I am now back to smooth drawing with the Free Form Pen/Pencil tool in Acrobat using the January 2012 driver. This with my aged Intuos 2 tablet. It was not the case with the earlier September 2011 driver, even though that driver did work fine in Acrobat 9. Since Wacom could fix this with a driver update, I hesitate to log it as being a bug with Acrobat X; it's possible Wacom's earlier driver didn't account for some behavior that got exposed for the first time in Acrobat X. If it were truly an Acrobat X bug I wouldn't think Wacom could have fixed it in a new driver release. I do think Acrobat X does something differently than previous versions and that is tripping up some of the older drivers... added to the interface changes in X that I don't like, I'd personally have been happier upgrading to CS5.5 and keeping Acrobat 9 with its interface and lack of any driver issues, but time marches on ...

  • Drawing BufferedImage vs. Graphics2D

    Hello everyone,
    I've got an app that does the following:
    - Reads image data from an input file (24 bit integers)
    - Stores the data in a buffered image (literally calls setRGB(...) for each pixel)
    - Displays the buffered image on a canvas (JPanel):
    getGraphics().drawImage(image, 0, 0, WIDTH, HEIGHT, Color.WHITE, this);
    fyi, here is my paintComponent() method:
        public void paintComponent(Graphics g) {
            Graphics2D g2d = (Graphics2D)g;
            g2d.drawImage(image, 0, 0, this);
        }Now that the image is displayed, I want to allow the user to draw (edit) the image and then save the changes to an output file. The drawing occurs in my canvas draw() method. I have a MouseListener and MouseMotionListener that detect mouse events on the canvas. The brushSize and currentColor are already set before draw(...) is called. Here is my draw method:
        protected void draw(Point start) {
            Graphics2D g2d = (Graphics2D)getGraphics();
            g2d.setColor(currentColor);
            int x = start.x - (brushSize/2) + 1;
            int y = start.y - (brushSize/2) + 1;
            g2d.fillOval(x, y, brushSize, brushSize);//maybe I should directly edit my image and call repaint() instead of doing this?
         }Visually, this seems to work. Drawing is displayed on the canvas as expected when the user drags the mouse around. But when I attempt to save the image to a file, I can see that the image is unchanged. Looking at the code, I think that what I need to do is change my draw method so that I actually edit the image (i.e. make changes to my image and then call repaint(), instead of using g2d.fillOval(...)). But I have no idea how to do this!
    I want to try:
    image.setRGB(startx, starty, width, height, rgbArray, offset, scansize);
    but I have no idea what these values should be: rgbArray, offset, scansize
    PLEASE advise.....

    Hi Markt,
    thank you, that helped.
    The first line (using the graphics of the image) did allow me to draw to the image which is what I needed.
    But when I called the second line:
    repaint(0,0,image.getWidth(null),image.getHeight(null));
    my whole canvas just went white.
    I tried this instead:
    getGraphics().drawImage(currentImage, 0, 0, (int)width, (int)height, this);
    and it seems to work. So now my drawing problem (as far as drawing to the image) is solved. This has uncovered a new problem...hopefully someone here can help me with this one too.
    My app also allows the user to zoom in and zoom out on the image. The zooming functionality (visually) is working. You can zoom in or zoom out as many times as you want - and the image displays properly (and is scrollable). BUT, when zoomed in, the moment you start to draw on the canvas with the mouse, the image reverts back to it's original size (scale of 1). I am pretty sure that this scaling is happening before my draw (the draw does not end up being in the same place as the mouse click).
    I put a breakpoint inside my paintComponent(g) method - this method is not being called when the user draws (i.e. clicks the mouse inside the canvas)
    I'm posting my code here. I guess I'm either doing something wrong - or forgetting to do something that I SHOULD do. If someone can tell me why my image jumps back to a scale of 1 when the mouse is clicked, I'd really appreciate it!
    CanvasDrawingListener.java (implements MouseListener, MouseMotionListener)
            public void mousePressed(MouseEvent e)
                lastPoint = e.getPoint();
                canvas.draw(lastPoint);
    * Represents a canvas that displays the image contained in a buffer of 24-bit
    * RGB values.  The canvas is initially displayed on a scale of 1.  The scale
    * is increased by a factor of zoomFactor each time the image is zoomed in.
    * Likewise, the scale is decreased by a factor of zoomFactor each time the image
    * is zoomed out.
    * Each time the image is zoomed in, the new scale value is placed inside scaleValuesVec.
    * This allows the application to keep track of previous scale values so that
    * the user can "back out" of the zoomed image.  In other words, if the user
    * clicks "zoom in" five times, scaleValuesVec will contain values: 2,3,4,5,6.
    * If the user then clicks "zoom out", the n-2 value (in this example, 5)
    * is retrieved from the scaleValuesVec and used to scale the image.
    public class Canvas extends JPanel{
        //initialize x to -1 so first increment sets it to 0 - drawing starts at x==0
        //y does not get incremented the first time
        BufferedImage origImage = null, currentImage = null;
        private int x = -1, y = 0;
        private boolean imageDisplayed = false;//this flag lets us know when to enable zoom buttons
        private Vector<Double> scaleValuesVec = new Vector<Double>();
        private final double zoomFactor = 1.0; //how much to increase or decrease the scale each time zoom button clicked
        private double scale; //the current scale of the bufferedImage
        private double WIDTH, HEIGHT;
        private int brushSize;
        private Color currentColor = Color.WHITE; //TODO set this same as initial button color
        /** Creates a new instance of Canvas */
        public Canvas() {
            scaleValuesVec.addElement(Double.valueOf(1.0)); //initial zoomFactor
            this.setPreferredSize(new Dimension(298, 310));
            this.setVisible(true);
        public void addListeners(){
            CanvasPropertyChangeListener cpcListener = new CanvasPropertyChangeListener();
            CanvasDrawingListener cdListener = new CanvasDrawingListener();
         * Sets the original size of the image.
        public void setInitialSize(Dimension d){
            WIDTH = d.getWidth();
            HEIGHT = d.getHeight();
            this.setPreferredSize(d);
        public BufferedImage getBufferImage(){
            return currentImage;
         * Reads a 24bit RGB value from buffer24 and registers a pixel of that
         * color to the buffered image that is displayed on the canvas.
         * This is the initial display of the image - only called once, when the
         * input file is opened.
        public void displayBufferedImage(int[] buffer24){
            origImage = new BufferedImage((int)WIDTH, (int)HEIGHT, BufferedImage.TYPE_INT_RGB);
            currentImage = new BufferedImage((int)WIDTH, (int)HEIGHT, BufferedImage.TYPE_INT_RGB);
            //read RGB data into origImage
            for(int i = 0; i < buffer24.length; i++){
                increment();
                origImage.setRGB(x, y, buffer24);
    //copy origImage to currentImage (currentImage is the working image)
    currentImage.setData(origImage.getData());
    this.getGraphics().drawImage(currentImage, 0, 0, (int)WIDTH, (int)HEIGHT, Color.RED, this);
    this.setImageDisplayed(true);
    * Increments the x and y coordinate so that the next drawn pixel
    * will be drawn at the next coordinate. For example, assume the dimension
    * of this canvas is 298x310. Pixels will begin drawing in the upper
    * left coordinate (0,0), left to right, and increment until the last pixel
    * is drawn at (297,309). If the last coordinate drawn was 150,150;
    * then this method will increment the coordinate to be 151,150
    public void increment(){
    if(x == getWidth() && y == getHeight()){
    Session.getInstance().getErrorHandler().displayError(ErrorMessage.DRAW_OPERATION_ERROR);
    if(x == getWidth() -1){ //reset when x == 255
    x = 0;
    y++;
    }else if(x < getWidth() - 1){
    x++; //first increment of x will set x == 0
    * Adjusts canvas size to encompass entire scaled image.
    public void adjustCanvasSize(double scale){
    double newWidth = scale * WIDTH;
    double newHeight = scale * HEIGHT;
    this.setSize((int)newWidth, (int)newHeight);
    this.setPreferredSize(new Dimension((int)newWidth, (int)newHeight));
    //repaint();
    public void zoomIn(){
    scale = ((Double)scaleValuesVec.get(scaleValuesVec.size()-1)) + zoomFactor;
    scaleValuesVec.addElement(scale);
    adjustCanvasSize(scale);
    public void zoomOut(){
    if(scaleValuesVec.size() > 1){
    scale = getLastScaleValue() - 1;
    }else{
    System.out.println("Already zoomed out to max!");
    adjustCanvasSize(scale);
    * Called when frame comes up, anytime repaint() called
    * Called when zooming in
    * Note: this method is NOT called from draw(Point p)
    public void paintComponent(Graphics g) {
    Graphics2D g2d = (Graphics2D)g;
    g2d.scale(scale, scale);
    g2d.drawImage(currentImage, 0, 0, this);
    protected void draw(Point start) {
    Graphics2D g2d = (Graphics2D)currentImage.createGraphics();
    g2d.setColor(currentColor);
    int x = start.x - (brushSize/2) + 1;
    int y = start.y - (brushSize/2) + 1;
    g2d.fillOval(x, y, brushSize, brushSize);
    double width = currentImage.getWidth();
    double height = currentImage.getHeight();
    getGraphics().drawImage(currentImage, 0, 0, (int)width, (int)height, this);
    * Removes most recent scale value from the vec and returns it.
    public double getLastScaleValue(){
    double scale = (Double)scaleValuesVec.elementAt(scaleValuesVec.size()-1);
    scaleValuesVec.removeElementAt(scaleValuesVec.size()-1);
    return scale;
    public boolean isImageDisplayed() {
    return imageDisplayed;
    * fires a change event so the zoom buttons become enabled
    public void setImageDisplayed(boolean imageDisplayed) {
    if(imageDisplayed != this.imageDisplayed){
    this.imageDisplayed = imageDisplayed;
    firePropertyChange("imageDisplayed", !imageDisplayed, imageDisplayed);
    public void setBrushSize(int size){
    System.out.println("CANVAS BRUSH SIZE IS " + size);
    this.brushSize = size;
    public void setCurrentColor(Color color){
    currentColor = color;
    * Compare each pixel in the origImage to the currentImage.
    * If pixels have same RGB, write a 0 to outputBuff.
    * If they are different, write a 1 to outputBuff.
    public byte[] getData(){
    //first, scale the currentImage back to 1
    adjustCanvasSize(1);
    //make sure currentImage is same size as origImage
    if(origImage.getWidth()==currentImage.getWidth() && origImage.getHeight() == currentImage.getHeight()){
    int width = currentImage.getWidth();
    int height = currentImage.getHeight();
    byte[] outputBuff = new byte[width*height];
    x = -1; y = 0; //reset x and y to beginning of image
    for(int i = 0; i < outputBuff.length; i++){
    increment();
    if(currentImage.getRGB(x,y) == origImage.getRGB(x,y)){
    outputBuff[i] = 48; //'0'
    }else {
    outputBuff[i] = 49;//'1'
    return outputBuff;
    }else {
    return null;
    //iterate thru both images and see if all RGB values are the same
    public boolean imagesEqual(BufferedImage image1, BufferedImage image2){
    if(image1.getWidth()==image2.getWidth() && image1.getHeight() == image2.getHeight()){
    int width = image1.getWidth();
    int height = image1.getHeight();
    int numBytes = width * height;
    x = -1; y = 0; //reset x and y to beginning of image
    for(int i = 0; i < numBytes; i++){
    increment();
    if(image1.getRGB(x,y) != image2.getRGB(x,y)){
    return false;
    }else{
    return false;
    return true;

  • Logical standby stuck at initializing SQL apply only coordinator process up

    Hi
    OS: solaris 5.10
    Hardware: sun sparc
    Oracle database: 11.2.0.1.0
    Primary database name: asadmin
    Standby database name: test
    I had been trying to convert a physical standby to logical standby database. Both the primary and standby reside on the same machine.
    The physical standby was created with a hot backup of primary.
    I had been following document id 278371.1 to convert the physical to logical standby and used the following steps:
    Relevant init parameters on primary:
    *.db_name='asadmin'
    *.db_unique_name='asadmin'
    *.log_archive_config='dg_config=(asadmin,test)'
    *.log_archive_dest_1='location=/u01/asadmin/archive valid_for=(all_logfiles,all_roles) db_unique_name=asadmin'
    *.log_archive_dest_2='SERVICE=test async valid_for=(online_logfiles,primary_role) db_unique_name=test'
    *.log_archive_dest_state_1='enable'
    *.log_archive_dest_state_2='enable'
    *.fal_client='asadmin'
    *.fal_server='test'
    *.remote_login_passwordfile='EXCLUSIVE'
    Relevant init parameters on standby database:
    *.db_name='test' -- Was asadmin before I renamed the DB during conversion to logical standby
    *.db_unique_name='test'
    *.log_archive_dest_1='location=/u01/test/archive valid_for=(all_logfiles,all_roles) db_unique_name=test'
    *.log_archive_dest_2='service=asadmin async valid_for=(online_logfiles,primary_role) db_unique_name=asadmin'
    *.log_archive_dest_state_1=enable
    *.log_archive_dest_state_2=defer
    *.remote_login_passwordfile='EXCLUSIVE'*.fal_server=test
    *.fal_client=asadmin
    Steps on primary:
    1) alter system set log_archive_dest_state_2=defer;
    2) shutdown immediate;
    3) Made sure that the physical standby has applied all of the redo sent to it following the shutdown.
    4) startup mount;
    5) ALTER DATABASE BACKUP CONTROLFILE to '/home/oracle/control01.ctl';
    6) ALTER SYSTEM ENABLE RESTRICTED SESSION;
    7) ALTER DATABASE OPEN;
    8) Verified that the supplemental logging is on.
    9) ALTER SYSTEM ARCHIVE LOG CURRENT;
    10) Checked for the checkpoint change no. at this point which is 72403818 and is present in archive log file 1_62_775102253.dbf
    11) EXECUTE DBMS_LOGSTDBY.BUILD;
    12) ALTER SYSTEM ARCHIVE LOG CURRENT;
    13) Checked for the archive log containing dictionary build which is 1_64_775102253.dbf
    14) ALTER SYSTEM DISABLE RESTRICTED SESSION;
    Details of archive logs and related checkpoint change nos:
    NAME FIRST_CHANGE# NEXT_CHANGE#
    /u01/asadmin/archive/1_61_775102253.dbf 72402901 72403817
    /u01/asadmin/archive/1_62_775102253.dbf 72403817 72404069
    /u01/asadmin/archive/1_63_775102253.dbf 72404069 72404211
    /u01/asadmin/archive/1_64_775102253.dbf 72404211 72405700
    Steps on standby:
    1) shutdown immediate;
    2) Copy the archivelog file 61(was created at primary after apply stopped at standby), 62(contains checkpoint no. 72403818), 63 and 64(contains dictionary build). Copy the backup controlfile from step 5 above to the controlfile location in standby init.
    3) startup mount;
    4) Rename all datafiles and redo log files (including standby redo log files) to the correct path on standby.
    5) alter database recover automatic from '/u01/test/archive' until change 72405700 using backup controlfile; -- This completed error-free
    6) alter database guard all; -- this completed error free
    7) alter database open resetlogs; -- this completed error free.
    8) nid target=sys/oracle12 dbname=test
    9) Changed the db_name in init file to new name test.
    10) Added a tempfile to temp tablespaces.
    11) ALTER DATABASE REGISTER LOGICAL LOGFILE '/u01/test/archive/1_61_775102253.dbf'; -- ORA-16225: Missing LogMiner session name for Streams
    12) ALTER DATABASE START LOGICAL STANDBY APPLY INITIAL 72405700; -- This completed error free.
    Also enabled the log_archive_dest_state_2 on primary.
    After this output from some views:
    SQL> SELECT SESSION_ID, STATE FROM V$LOGSTDBY_STATE;
    SESSION_ID STATE
    1 INITIALIZING
    SQL> SELECT SID, SERIAL#, SPID, TYPE FROM V$LOGSTDBY_PROCESS;
    SID SERIAL# SPID TYPE
    587 22 15476 COORDINATOR
    SELECT PERCENT_DONE, COMMAND
    FROM V$LOGMNR_DICTIONARY_LOAD
    WHERE SESSION_ID = (SELECT SESSION_ID FROM V$LOGSTDBY_STATE);
    PERCENT_DONE
    COMMAND
    0
    SQL> SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    TYPE HIGH_SCN STATUS
    COORDINATOR ORA-16111: log mining and apply setting up
    SQL> SELECT APPLIED_SCN, NEWEST_SCN FROM DBA_LOGSTDBY_PROGRESS;
    APPLIED_SCN NEWEST_SCN
    72405700 72411501
    SELECT THREAD#, SEQUENCE#, FILE_NAME FROM DBA_LOGSTDBY_LOG L
    WHERE NEXT_CHANGE# NOT IN
    (SELECT FIRST_CHANGE# FROM DBA_LOGSTDBY_LOG WHERE L.THREAD# = THREAD#)
    ORDER BY THREAD#,SEQUENCE#;
    no rows selected
    SQL> SELECT EVENT_TIME, STATUS, EVENT
    FROM DBA_LOGSTDBY_EVENTS
    ORDER BY EVENT_TIMESTAMP, COMMIT_SCN; 2 3
    EVENT_TIME STATUS EVENT
    14-FEB-12 02:00:50 ORA-16111: log mining and apply setting up
    14-FEB-12 02:00:50 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 02:20:11 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 02:20:39 ORA-16111: log mining and apply setting up
    14-FEB-12 02:20:39 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 02:54:15 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 02:57:38 ORA-16111: log mining and apply setting up
    EVENT_TIME STATUS EVENT
    14-FEB-12 02:57:38 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 03:01:36 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 03:13:44 ORA-16111: log mining and apply setting up
    14-FEB-12 03:13:44 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 04:32:23 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 04:34:17 ORA-16111: log mining and apply setting up
    14-FEB-12 04:34:17 Apply LWM 72405699, HWM 72405699, SCN 72405699
    EVENT_TIME STATUS EVENT
    14-FEB-12 04:36:16 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 04:36:21 ORA-16111: log mining and apply setting up
    14-FEB-12 04:36:21 Apply LWM 72405699, HWM 72405699, SCN 72405699
    14-FEB-12 05:15:22 ORA-16128: User initiated stop apply successfully
    completed
    14-FEB-12 05:15:29 ORA-16111: log mining and apply setting up
    14-FEB-12 05:15:29 Apply LWM 72405699, HWM 72405699, SCN 72405699
    I also greped for lsp and lcr processes and found that lsp is up but do not see any lcr.
    The logs are getting transported to the archive destination on standby whenever they are archived on primary but are not getting applied to standby.
    Also in case the standby is down while a log is generated on primary it is not automatically transported to standby once the standby is up, means gap resolution is also not working.
    I see the following in alert log every time I try to restart the log apply, everything seems to be stuck at initialization.
    ALTER DATABASE START LOGICAL STANDBY APPLY (test)
    with optional part
    IMMEDIATE
    Attempt to start background Logical Standby process
    Tue Feb 14 05:15:28 2012
    LSP0 started with pid=28, OS id=23391
    Completed: alter database start logical standby apply immediate
    LOGMINER: Parameters summary for session# = 1
    LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
    LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
    LOGMINER: SpillScn 0, ResetLogScn 0
    -- NOTHING AFTER THIS

    Hello;
    I noticed some of your parameters seem to be wrong.
    fal_client - This is Obsolete in 11.2
    You have db_name='test' on the Standby, it should be 'asadmin'
    fal_server=test is set like this on the standby, it should be 'asadmin'
    I might consider changing VALID_FOR to this :
    VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES)Would review 4.2 Step-by-Step Instructions for Creating a Logical Standby Database of Oracle Document E10700-02
    Document 278371.1 is showing its age in my humble opinion.
    -----Wait on this until you fix your parameters----------------------
    Try restarting the SQL Apply
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATEI don't see the parameter MAX_SERVERS, try setting it to 8 times the number of cores.
    Use these statements to trouble shoot :
    SELECT NAME, VALUE, UNIT FROM V$DATAGUARD_STATS;
    SELECT NAME, VALUE FROM V$LOGSTDBY_STATS WHERE NAME LIKE ;TRANSACTIONS%';
    SELECT COUNT(1) AS IDLE_PREPARERS FROM V$LOGSTDBY_PROCESS WHERE
    TYPE = 'PREPERER' AND STATUS_CODE = 16166;Best Regards
    mseberg
    Edited by: mseberg on Feb 14, 2012 7:37 AM

  • Flash app that allows users to create mini animations

    Hi,
    I am fairly new to flash, and was wondering if the community could point me in the right direction for my current project.
    I am looking to build an app that allows end users to draw and save mini animations (simple predetermined shapes that move in 2D).  So far I have a written a app that allows the user to draw a single frame using simple shapes and lines, but I am having some small troubles at this stage, and have not attempted to allow the user to animate or save the drawing.
    If anyone knows of a tutorial or some other resource to put me on the right path I would be very grateful.  I can also share what I have if anyone would be willing to give me some pointers (I am going to assume that as a newbie, my code could use a lot of improvement).
    Regards,
    Robbie Vos

    Hi Andei1,
    Thanks for the input.  I figured that the save functionality would be a little difficult. 
    However, if I can get the basic app going (allowing users to create mini animations) I think I should be able to get save going with some (ok, alot) of effort.
    Regards,
    Robbie Vos

Maybe you are looking for