How to clone HttpServletRequest

I need to clone HttpServletRequest object to session in jsp-page (1) , move to another jsp-page (2), do something in that page and return from button-action to jsp-page (1), and replace jsp-page (1) HttpServletRequest with the request object from the session. Is this possible?

Hi.
Try this
HttpServletRequestWrapper wrapper = HttpServletRequestWrapper(request)
maybe it helps.

Similar Messages

  • How to clone Boot Camp partition when Winclone does not work

    The hard drive in my MacBook Pro is failing. It has 2 partions, one for Apple and the other is a Bootcamp with Windows 7.
    I tried repairing it with Disk Utility, which did not work. I also ran DiskWarrior, which resulted in the error message: "Directory cannot be rebuilt due to disk hardware failure". I was able to copy my Apple files through DiskWarrior although there were a couple of errors.
    My question is how to clone my Bootcamp Partition. I tried making an image with Disk Utility but it failed. I also tried using Winclone and it failed indicating there were hard drive issues.
    Is there another way to try to copy the Bootcamp partition? I can boot to Apple so running a program/app or trying UNIX commands might work.
    Thank you in advance.

    Some previous forum comments I have collected regarding backup of BootCamp.
    Acronis 2011 w/ plus pak, didn't work well previously
    Ghost 15 - probably not
    Casper 6 works for Windows on Boot Camp only
    CopyCatX is more lengthy and sector copy so takes the longest.
    Paragon Hard Drive Suite 2011 because it works great and they have CampTune
    Windows 7 system backup and restore - Apple's goofy HFS read-only interferes with system and file backup.
    I have also used Casper, Clonezilla and Paragon but less regularly, Casper failed a few times, I stopped using it, Clonezilla worked but took forever (for me) Paragon (which I have only used twice) was the best but my sample is limited.
    I have restored from DU, CCC, SuperDuper and TM, they all worked, TM was slower but not a lot, you can boot from the others, which I prefer.
    Paragon HDM 2011 can do either offline or online backups, the difference is that with an offline backup, the entire partition (or disk) is unallocated. In an online backup, the backup utility is running against a partition that may be making changes to itself. When you run CCC or SD! in OS X, you're running an online backup. However, I would recommend (at least for the first backup) that you boot from the HDM recovery CD to do an offline backup. This will ensure that you have an *exact* copy of the parition/disk.
    I tried the native Windows backup utility.  It worked to backup and restore my Windows partition, but I noticed a "bad" side effect.  When I would restore a Windows Backup to my HD, it would corrupt my MacOS boot partition, so I would then have to restore the Mac partition as well.
    Winclone allows you to migrate your Bootcamp partition from one Mac to another Mac and make sure Windows will boot. However, if the processor (for example, Core Duo or i7) is a different type, the restored version of Windows may not be supported or be able to run on the new Mac. If you are migrating between Macs that are the same type (MacBook Air to MacBook Air, for example), you will have the greatest chance of success. You can try to restore Winclone images between different types of Macs (for example, a Mac Pro to a Mac Mini), but be aware that if Windows boots but does not reach the desktop, it is probably not an issue with Winclone, but rather the change in processor type.

  • Plz provide me some documents on how to clone a database using cold backup

    Dear All,
    Please provide me some documents on how to clone a database using cold backup which is in archive log.
    Also, please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Thanks,
    Mahipal

    Please provide me some documents on how to clone a database using cold >backup which is in archive loghttp://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    please can you provide me the document to install Oracle 9.2.0.6 on Aix 5L
    Oracle9i Installation Guide
    Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris -
    http://download.oracle.com/docs/html/A96167_01/toc.htm

  • Re: How to Clone Using the Restore Option of Disk Utility

    This is a revision to original post:
    How to Clone Using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled) and click on the Erase button. Wait for volume to remount on the Desktop.
    5. Click on the Restore tab in the DU main window.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    8. Select the destination drive icon on the Desktop and press COMMAND-I to open the Get Info window. At the bottom in the Ownership and Permissions section be sure the box labeled "Ignore Permissions on this Volume" is unchecked.
    9. Double-check you got it right, then click on the Restore button.

    There is a checkbox option in the Restore dialog to Erase the Destination. Be sure you uncheck the option.

  • How to clone a database

    hi all
    1.how to clone a oracle database?
    2.what is the difference between cloned database and restored back up of a particular database?

    Hi.. I am giving procedure for cloning a database
    Regards
    sai
    Task :Creating cloning database
    ================================
    S no Task Result
    ===================================================================================================
    1 Shut the database & open in SQL>shut immediate
    the restric mode. SQL>startup restrict
    2 Take controlfile backup SQL>alter database backup controlfile to trace;
    3 shut cleanshutdown SQL>shut normal
    4 Go to the trace files $cd admin/jay/udump
    5 copy the reset logs file $vi clone.sql
    information & paste in
    new .sql file
    6 Change the sid sid change jay to clone
    7 Create file of environment $vi clone.env                variable
    8 Change the SID of the clone.env SID is clone
    9 Run the bashrc . clone.env
    10 Go to the admin&create directory admin$mkdir clone
    directory
    11 Create cdump bdump udump dir clone$mkdir cdump udump bdump
    ectory in the clone
    12      Create clone directory in the oradata$ mkdir clone
    oradata and copy all files which
    are in the previous directory
    (another database sid name)
    except control files
    13 Copy initjay.ora initclone.ora initclone.ora
    and change sid and comment of EXCLUSIVE
    14 Open the database in nomount SQL>startup nomount
    15 Run the script SQL>@clone.sql
    16 Open the database SQL>alter database open resetlogs
    clone.sql:
    CREATE CONTROLFILE SET DATABASE "CLONE" RESETLOGS ARCHIVELOG
    -- SET STANDBY TO MAXIMIZE PERFORMANCE
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 226
    LOGFILE
    GROUP 1 '/ora2/oracle9/oradata/clone/redo01.log' SIZE 100M,
    GROUP 2 '/ora2/oracle9/oradata/clone/redo02.log' SIZE 100M,
    GROUP 3 '/ora2/oracle9/oradata/clone/redo03.log' SIZE 100M
    -- STANDBY LOGFILE
    DATAFILE
    '/ora2/oracle9/oradata/clone/system01.dbf',
    '/ora2/oracle9/oradata/clone/undotbs01.dbf',
    '/ora2/oracle9/oradata/clone/cwmlite01.dbf',
    '/ora2/oracle9/oradata/clone/drsys01.dbf',
    '/ora2/oracle9/oradata/clone/example01.dbf',
    '/ora2/oracle9/oradata/clone/indx01.dbf',
    '/ora2/oracle9/oradata/clone/odm01.dbf',
    '/ora2/oracle9/oradata/clone/tools01.dbf',
    '/ora2/oracle9/oradata/clone/users01.dbf',
    '/ora2/oracle9/oradata/clone/xd
    [oracle9@of32 clone]$ ls
    drsys01.dbf indx01.dbf redo01.log redo03.log temp01.dbf undotbs01.dbf xdb01.dbf
    cwmlite01.dbf example01.dbf odm01.dbf redo02.log system01.dbf tools01.dbf users01.dbf
    initclone.ora
    =============
    *.aq_tm_processes=1
    *.background_dump_dest='/ora2/oracle9/admin/clone/bdump'
    *.compatible='9.2.0.0.0'
    *.control_files='/ora2/oracle9/oradata/clone/control01.ctl','/ora2/oracle9/oradata/clone/control02.ctl','/ora2/oracle9/oradata/clone/control03.ctl'
    *.core_dump_dest='/ora2/oracle9/admin/clone/cdump'
    *.db_block_size=8192
    *.db_cache_size=33554432
    *.db_domain='orafact.com'
    *.db_file_multiblock_read_count=16
    *.db_name='clone'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=cloneXDB)','(PROTOCOL=TCP)'
    *.fast_start_mttr_target=300
    *.hash_join_enabled=TRUE
    *.instance_name='clone'
    *.java_pool_size=83886080
    *.job_queue_processes=10
    *.large_pool_size=16777216
    *.open_cursors=300
    *.pga_aggregate_target=25165824
    *.processes=150
    *.query_rewrite_enabled='FALSE'
    # *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=524288
    *.star_transformation_enabled='FALSE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/ora2/oracle9/admin/clone/udump'
    ~

  • How to Clone the DataBase

    Hi
    How to Clone a Dabase .. ??
    When the Database is Online (Up and Running).
    I want to Clone the Database on the Same System.
    Its a testing scenario.
    In one of the interview I had faced this quesiton.
    Kindly, any one guide me in this regard,
    Thanks,
    Pavan Kumar

    This is a documentation forum.
    You need to read that documentation.
    Specifically, go to http://docs.oracle.com, select the version of the database you are working with, and put 'clone' into the search box. One link for 10gR2 is http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#sthref1874
    IN the future, please have the courtesy to
    1) post in an appropriate forum, as described by the title of the forum
    2) Include product (database) version and operating system
    when asking for assistance

  • How to clone Production Hyperion 11.1.2.1 to Test Hyperion 11.1.2.1

    Hi Experts,
    I am looking for detailed steps on how to clone our Production Hyperion version 11.1.2.1 to Test Hyperion version 11.1.2.1.
    I know some ways on doing it like using LCM and EAS, export and import of relational schemas but I am not sure which process comes first and which comes next. So can anyone tell me the detailed steps on how to clone it.
    Thanks.
    Edited by: 786923 on Feb 8, 2012 11:52 AM

    Ranzal has a good blog post about LCM: http://ranzal.wordpress.com/2010/03/24/using-oracles-hyperion%C2%AE-life-cycle-management/
    I also like Oracle's post too: http://blogs.oracle.com/HyperionPlanning/entry/lifecycle_management_utility_lets_execute
    Of course the admin guide gives you a lot of info: http://docs.oracle.com/cd/E17236_01/epm.1112/epm_lifecycle_management/launch.htm
    Cheers,
    Mehmet

  • How to clone data with in Table with dynamic 'n' number of columns

    Hi All,
    I've a table with syntax,
    create table Temp (id number primary key, name varchar2(10), partner varchar2(10), info varchar2(20));
    And with data like
    insert itno temp values (sequence.nextval, 'test', 'p1', 'info for p1');
    insert into temp values (sequence.nextval, 'test', 'p2', 'info for p2');
    And now, i need to clone the data in TEMP table of name 'test' for new name 'test1' and here is my script,
    insert into Temp  select sequence.nextval id, 'test1' name, partner, info from TEMP where name='test1';
    this query executed successfully and able to insert records.
    The PROBLEM is,
    if some new columns added in TEMP table, need to update this query.
    How to clone the data with in the table for *'n' number of columns and*
    some columns with dynamic data and remaining columns as source data.
    Thanks & Regards
    PavanPinnu.
    Edited by: pavankumargupta on Apr 30, 2009 10:37 AM

    Hi,
    Thanks for the quick reply.
    My Scenario, is we have a Game Details table. When ever some Game get cloned, we need to add new records in to that Table for the new Game.
    As, the id will be primary key, this should populate from a Sequence (in our system, we used this) and Game Name will be new Game Name. And data for other columns should be same as Parent Game.
    when ever business needs changes, there will be some addition of new columns in Table.
    And with the existing query,
    insert into Temp (id, name, partner, info) select sequence.nextval id, 'test1' name, partner, info from TEMP where name='test'_
    will successfully add new rows but new added columns will have empty data.
    so, is there any way to do this, i mean, some columns with sequence values and other columns with existing values.
    One way, we can do is, get ResultSet MetaData (i'm using Java), and parse the columns. prepare a query in required format.
    I'm looking for alternative ways in query format in SQL.
    Thanks & Regards
    PavanPinnu.
    Edited by: pavankumargupta on Apr 30, 2009 11:05 AM
    Edited by: pavankumargupta on Apr 30, 2009 11:05 AM

  • How to Clone Primary Drive prior to, or after, adding a second drive in Ultrabay

    Alright, I have a T510 with a single internal drive. I wish to add a SSD drive and make it my primary drive. I have an Ultrabay and know about the drive adapter for it and plan to use it as the new drive location.
    My question is how to perform the cloning of the primary drive. I can install the new SSD in the Ultrabay and use software, previously copied to the primary(or backup) drive since the Ultrabay is now used for the SSD so I can't run a CD. The issue is how to clone. I don't wish to buy another external drive just for the cloning software CD.
    I have an external hard drive that I use for backups. Has anyone cloned a copy of a drive(A) to another drive(B) and then copied it to a new drive(C)? If this is a good idea, it is easy since the CD drive is still available using this method.
    The end result would be to swap locations of the drives making the SSD the new primary internal drive and the old drive goes to the Ultrabay.
    Just looking for input. 
    Thanks for taking the time,
    Pete

    Hi RePete,
    Cloning Hard Drive
    How to install Windows on the Solid State Drive
    Hope this helps.
    Be AWESOME Everyday!
    Donate KUDOS and Click "Accepted Solution"
    Did someone help you today?
    Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"
    This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • How to "Clone Components"

    I've got an aplication witch needs a lot of JButtons all of them with same Text and same Action.
    I created one, how to clone them ?
    Thanks.
    Wmiro

    hi
    for cloning you should override method clone() so that it return same object you desire and same properties as requried ...
    then you invoke this method ..
    it is good for speed and documentation purpose

  • How to clone X and Y axis?

    I have a barChart with overplot a lineChart, two different series
    barChart.getData().addAll(series1);
    lineChart.getData().addAll(series2);My question: is it possible, and how to, clone barChart axis so to get the same settings for lineChart?
    What I would like to have is a perfect axis settings overlapping.
    Thanks

    Hi bouye thanks for your kind reply: following your suggestion I have modified my code but still I have some problem.
    Below is a sample class, it plots a line chart and by clicking the Add Serie button it adds a scatter chart, and it is all fine.
    This class has three mouse events, one for each axis and one chat.
    Charts can be compressed / expanded by left mouse click and drag on X or Y axis, and chart can be moved left/right and up/down by left mouse click and drag anywhere on the chart.
    I get axis out of sync when move or compress/expand chart.
    Can you help me whit this issue?
    Thank you very much
    import java.util.Set;
    import javafx.application.Application;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Side;
    import javafx.scene.Group;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.Node;
    import javafx.scene.chart.*;
    import javafx.scene.control.Button;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.StackPane;
    public class RescalingSeries extends Application {
    StackPane               mainGraphStackPane = null;
    Button btnAdd;
    BorderPane pane;
    XYChart.Series series1 = new XYChart.Series();
    SimpleDoubleProperty rectinitX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectinitY = new SimpleDoubleProperty();
    protected static Axis _duplicateAxis(Axis axis, Axis result) {
            result.setAnimated(axis.animatedProperty().get());
            result.setAutoRanging(axis.isAutoRanging());
            result.setLabel(axis.getLabel());
            result.setSide(axis.getSide());
            result.setTickLabelFill(axis.getTickLabelFill());
            result.setTickLabelFont(axis.getTickLabelFont());
            result.setTickLabelGap(axis.getTickLabelGap());
            result.setTickLength(axis.getTickLength());
            return result;
        protected static ValueAxis _duplicateValueAxis(ValueAxis axis, ValueAxis result) {
            _duplicateAxis(axis, result);
            result.setLowerBound(axis.getLowerBound());
            result.setUpperBound(axis.getUpperBound());
            result.setMinorTickCount(axis.getMinorTickCount());
            result.setMinorTickLength(axis.getMinorTickLength());
            result.setTickLabelFormatter(axis.getTickLabelFormatter());
            return result;
         * Duplicate a number axis.
         * @param axis The source axis.
         * @return A {@code NumberAxis}, never {@code null}.
        public static NumberAxis duplicateNumberAxis(NumberAxis axis) {
            NumberAxis result = new NumberAxis();
            _duplicateValueAxis(axis, result);
            result.setTickUnit(axis.getTickUnit());
            result.setForceZeroInRange(axis.isForceZeroInRange());
            return result;
         * Duplicate a category axis.
         * @param axis The source axis.
         * @return A {@code CategoryAxis}, never {@code null}.
        public static CategoryAxis duplicateCategoryAxis(CategoryAxis axis) {
            CategoryAxis result = new CategoryAxis(axis.getCategories());
            _duplicateAxis(axis, result);
            result.setStartMargin(axis.getStartMargin());
            result.setEndMargin(axis.getEndMargin());
            result.setGapStartAndEnd(axis.gapStartAndEndProperty().get());
            return result;
    @Override
    public void start(Stage stage) {
        final NumberAxis xAxisLC = new NumberAxis(1, 12, 1);
        final NumberAxis yAxisLC = new NumberAxis(0.53000, 0.53910, 0.0005);
        yAxisLC.setSide(Side.RIGHT);
        yAxisLC.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxisLC) {
            @Override
            public String toString(Number object) {
                return String.format("%7.5f", object);
        final LineChart<Number, Number> lineChart = new LineChart<>(xAxisLC, yAxisLC);
        lineChart.setCreateSymbols(false);
        lineChart.setAlternativeRowFillVisible(false);
        lineChart.setAnimated(true);
        lineChart.setLegendVisible(false);
        series1.getData().add(new XYChart.Data(1, 0.53185));
        series1.getData().add(new XYChart.Data(2, 0.532235));
        series1.getData().add(new XYChart.Data(3, 0.53234));
        series1.getData().add(new XYChart.Data(4, 0.538765));
        series1.getData().add(new XYChart.Data(5, 0.53442));
        series1.getData().add(new XYChart.Data(6, 0.534658));
        series1.getData().add(new XYChart.Data(7, 0.53023));
        series1.getData().add(new XYChart.Data(8, 0.53001));
        series1.getData().add(new XYChart.Data(9, 0.53589));
        series1.getData().add(new XYChart.Data(10, 0.53476));
        series1.getData().add(new XYChart.Data(11, 0.530123));
        series1.getData().add(new XYChart.Data(12, 0.531035));
        pane = new BorderPane();
        pane.setCenter(lineChart);
        mainGraphStackPane = new StackPane();
        mainGraphStackPane.getChildren().add(pane);
        Scene scene = new Scene(mainGraphStackPane, 800, 600);
        lineChart.getData().addAll(series1);
        stage.setScene(scene);        
        scene.setOnMouseClicked(mouseHandler);
        scene.setOnMouseDragged(mouseHandler);
        scene.setOnMouseEntered(mouseHandler);
        scene.setOnMouseExited(mouseHandler);
        scene.setOnMouseMoved(mouseHandler);
        scene.setOnMousePressed(mouseHandler);
        scene.setOnMouseReleased(mouseHandler);
        Group root = new Group();
        btnAdd = new Button();
        btnAdd.setText("Add serie");
        root.getChildren().add(btnAdd);
        pane.getChildren().add(root);             
        btnAdd.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {       
                NumberAxis xAxisBC = duplicateNumberAxis(xAxisLC);
                NumberAxis yAxisBC = duplicateNumberAxis(yAxisLC);
                ScatterChart<Number, Number> scatterChart = new ScatterChart<>(xAxisBC, yAxisBC);
                scatterChart.setAlternativeRowFillVisible(false);
                scatterChart.setAnimated(true);
                scatterChart.setLegendVisible(false);
                XYChart.Series series2 = new XYChart.Series();
                series2.getData().add(new XYChart.Data(1, 0.53185));
                series2.getData().add(new XYChart.Data(2, 0.532235));
                series2.getData().add(new XYChart.Data(3, 0.53234));
                series2.getData().add(new XYChart.Data(4, 0.538765));
                series2.getData().add(new XYChart.Data(5, 0.53442));
                series2.getData().add(new XYChart.Data(6, 0.534658));
                series2.getData().add(new XYChart.Data(7, 0.53023));
                series2.getData().add(new XYChart.Data(8, 0.53001));
                series2.getData().add(new XYChart.Data(9, 0.53589));
                series2.getData().add(new XYChart.Data(10, 0.53476));
                series2.getData().add(new XYChart.Data(11, 0.530123));
                series2.getData().add(new XYChart.Data(12, 0.531035));
                scatterChart.getData().addAll(series2);
                Set<Node> chartNode = scatterChart.lookupAll(".chart-plot-background");
                for(final Node chr : chartNode){
                    chr.setStyle("-fx-background-color: transparent;");                          
                chartNode = lineChart.lookupAll(".chart-plot-background");
                for(final Node chr : chartNode){
                    chr.setStyle("-fx-background-color: transparent");                           
                mainGraphStackPane.getChildren().add(scatterChart);
                xAxisBC.lowerBoundProperty().bind(xAxisLC.lowerBoundProperty());
                yAxisBC.lowerBoundProperty().bind(yAxisLC.lowerBoundProperty());     
        stage.show();
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() {
        @Override
        public void handle(MouseEvent mouseEvent) {
            boolean XScaling=false;
            boolean YScaling=false;
           if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED ){
                LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter();
                NumberAxis yAxis = (NumberAxis) lineChart.getYAxis();
                NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
                double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound());
                double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();
                double newYlower=yAxis.getLowerBound(), newYupper=yAxis.getUpperBound();
                double xAxisShift = xAxis.localToScene(0, 0).getX();
                double yAxisShift = yAxis.localToScene(0, 0).getY();
                double yAxisStep=yAxis.getHeight()/(yAxis.getUpperBound()-yAxis.getLowerBound());
                double CurrentPrice=yAxis.getUpperBound()-((mouseEvent.getY()-yAxisShift)/yAxisStep);
                double Delta=0.3;
                if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED && mouseEvent.getX()<xAxisShift+yAxis.getHeight() && mouseEvent.getY()<yAxisShift+yAxis.getHeight() && (XScaling==false || YScaling==false)){
      //==================================================== X-Axis Moving ==================================
                    if(rectinitX.get() < mouseEvent.getX()){   
                        newXlower=xAxis.getLowerBound()-Delta;
                        newXupper=xAxis.getUpperBound()-Delta;
                    else if(rectinitX.get() > mouseEvent.getX()){   
                        newXlower=xAxis.getLowerBound()+Delta;
                        newXupper=xAxis.getUpperBound()+Delta;
                    xAxis.setLowerBound( newXlower );
                    xAxis.setUpperBound( newXupper );
    //===================================================== Y-Axis Moving ====================================
                    if(rectinitY.get() < mouseEvent.getY()){   
                        newYlower=yAxis.getLowerBound()+Delta/1000;
                        newYupper=yAxis.getUpperBound()+Delta/1000;
                    else if(rectinitY.get() > mouseEvent.getY()){   
                        newYlower=yAxis.getLowerBound()-Delta/1000;
                        newYupper=yAxis.getUpperBound()-Delta/1000;
                    yAxis.setLowerBound(newYlower);
                    yAxis.setUpperBound(newYupper);
    //----------------------------- Re-Scale the X-Axis when dragging below it ---------------------------------
                else if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED && mouseEvent.getY()>yAxisShift+yAxis.getHeight() ){
                    if(rectinitX.get() < mouseEvent.getX()){   
                        newXlower=xAxis.getLowerBound()+Delta;
                        newXupper=xAxis.getUpperBound()-Delta;
                    else if(rectinitX.get() > mouseEvent.getX()){   
                        newXlower=xAxis.getLowerBound()-Delta;
                        newXupper=xAxis.getUpperBound()+Delta;
                    xAxis.setLowerBound( newXlower );
                    xAxis.setUpperBound( newXupper );          
    //--------------------------------- Re-Scale the Y-Axis when dragging to the left of it --------------------------
                else if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED && mouseEvent.getX()> (xAxisShift + xAxis.getWidth())){
                    if(rectinitY.get() < mouseEvent.getY()){   
                        newYlower=yAxis.getLowerBound()-Delta/1000;
                        newYupper=yAxis.getUpperBound()+Delta/1000;
                    else if(rectinitY.get() > mouseEvent.getY()){   
                        newYlower=yAxis.getLowerBound()+Delta/1000;
                        newYupper=yAxis.getUpperBound()-Delta/1000;
                    yAxis.setLowerBound(newYlower);
                    yAxis.setUpperBound(newYupper);               
                rectinitX.set(mouseEvent.getX());
                rectinitY.set(mouseEvent.getY());
                if(mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED && mouseEvent.getY()>yAxisShift && mouseEvent.getY()<yAxisShift+yAxis.getHeight() && mouseEvent.getX()>xAxisShift && mouseEvent.getX()<xAxisShift+xAxis.getWidth()){
                double XX=((mouseEvent.getX() - xAxisShift) / Tgap) + xAxis.getLowerBound();
                double YY=CurrentPrice;
                series1.setName(String.format("%.2g%n",XX) + ", " + String.format("%.4g%n",YY));
    public static void main(String[] args) {
        launch(args); 
    }

  • How to clone 40 mac mini at the same time using network clone (like Ghost)

    how to clone 40 mac mini at the same time using network clone (like Ghost)
    Any Ideas ?
    Thanks

    Rather than a 100% identical clone to 40 Macs, I suspect you want the same basic image to be loaded on to those 40 Macs but will require some individualisation so that for example each has a unique computer name.
    NetRestore and System Imaging Utility can do this but a lot of people including myself prefer to use DeployStudio which has more capabilities. See http://www.deploystudio.com
    DeployStudio can be used to like NetRestore to restore an image to multiple Macs at the same time which is like multiple people downloading at the same time, but it can unlike the standard NetRestore also be configured to use multicast traffic which is more like a TV broadcast whereby multiple people receive the same transmission at the same time. This can be more efficient for imaging larger numbers of computers at the same time. For example 1Gbps shared between 40 computers is only 25.6Mbps each, but if you multicast a single transmission of 100Mbps to 40 computers then all 40 can listen to it at the same time and still be receiving 100Mbps even on the same network connection.

  • How to clone a physical drive?

    Hi, I have been trying to figure out how to clone my MacBooks hard-drive. It has OSX, plus Bootcamp and XP Pro partitions. My destination drive is an exact duplicate physical drive in an external USB enclosure. I want to clone the entire internal drive to the external drive, including all partitions and boot data. The DiskUtility, even when booted from CD, only supports cloning individual partitions. SuperDuper and other utilities seem to work the same. I tried the linux tool, G4L, and it did not recognize the external USB drive. I am trying to clone so that if the internal drive ever croaks, I can just drop in the drive thats currently in the external case - and have no down time. I only need to backup my machine this way once a month, so it doesnt matter how long the process takes - as long as it works! Any suggestions?

    Hi wh31415,
    You can clone both your OS X and Windows partitions from within OS X. Partition your external so that the Windows portion is large enough to hold a disk image of the Windows installation on your main drive. Leave the rest for OS X. You can do this with Disk Utility.
    Once you have the external partitioned, use WinClone to clone the Windows drive. You run it right from OS X. It creates a compressed disk image that can be restored from OS X also. It's free and works great.
    For OS X, use either SuperDuper! or Carbon Copy Cloner. Both can be run right from the OS X installation you're booted from. Just don't do anything else while it's cloning. Both are free, though the paid version of SuperDuper! is worth every cent for updating your backup.

  • How to clone and partition Mac OS

    Hi
    I got the 2010 Macbook Pro. I am upgrading my default setup (320GB HDD) with a 250GB SanDisk SSD and a 1TB HDD hybrid. I'm just wondering how to transfer all my current data to the SSD and then proceed to partition my hard drive for Windows 7/8.
    Thanks and I appreciate your input.

    How upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility in your Utilities folder.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
    Step Five: Clone the old drive to the new drive
      1. Open Disk Utility from the Utilities folder.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.
    You will have to prep the new HDD before you can use it. Then you use Boot Camp Assistant to create the Windows partition.

  • How to Clone Hard Drive from Macbook Pro to Macbook Pro with Retina

    Hey everyone! I had a question about cloning my laptop's hard drive. I was considering buying a MBP with Retina, but was wondering how I would accomplish copying over my current hard drive to the retina, as I know you can't take out the retina's hard drive, and it is flash. Any suggestions?

    Connect the two with a Firewire cable if they both have Firewire ports (or use Thunderbolt if the both have Thunderbolt ports.) Boot the new computer into Target Disk Mode and the old computer normally. The new computer's disk drive should appear on the Desktop of the old computer.
    Clone using Restore Option of Disk Utility
      1. Open Disk Utility in the Utilities folder.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Select the destination volume from the left side list and drag it to the Destination
          entry field.
      5. Select the source volume from the left side list and drag it to the Source entry field.
      6. Double-check you got it right, then click on the Restore button.
    Destination means the new computer's drive Source means the old computer's drive.
    Be sure the old computer is running a version of Mountain Lion that is later than the version installed on the new computer. After cloning you will probably need to run the new 10.8.2 updater for the new computer. OS X Mountain Lion 10.8.2 Update for 13" Macbook Pro with Retina Display, 21.5" iMac (Late 2012), Mac mini (Late 2012).

Maybe you are looking for