[svn] 1179: - added setup and storing settings in a separate file to facilitate updates .

Revision: 1179
Author: [email protected]
Date: 2008-04-10 11:58:03 -0700 (Thu, 10 Apr 2008)
Log Message:
- added setup and storing settings in a separate file to facilitate updates.
- fixed support for paths with spaces (i.e diffpack pack "c:/my documents/egeorgie/package")
- fixed to handle relative paths in the arguments
- fixed to create and include a .patch file in the package
- added readme.txt
Modified Paths:
flex/sdk/trunk/tools/diffpack/src/diffpack.mxml
Added Paths:
flex/sdk/trunk/tools/diffpack/diffpack
flex/sdk/trunk/tools/diffpack/diffpack.air
flex/sdk/trunk/tools/diffpack/readme.txt
Removed Paths:
flex/sdk/trunk/tools/diffpack/src/diffpack

Revision: 1179
Author: [email protected]
Date: 2008-04-10 11:58:03 -0700 (Thu, 10 Apr 2008)
Log Message:
- added setup and storing settings in a separate file to facilitate updates.
- fixed support for paths with spaces (i.e diffpack pack "c:/my documents/egeorgie/package")
- fixed to handle relative paths in the arguments
- fixed to create and include a .patch file in the package
- added readme.txt
Modified Paths:
flex/sdk/trunk/tools/diffpack/src/diffpack.mxml
Added Paths:
flex/sdk/trunk/tools/diffpack/diffpack
flex/sdk/trunk/tools/diffpack/diffpack.air
flex/sdk/trunk/tools/diffpack/readme.txt
Removed Paths:
flex/sdk/trunk/tools/diffpack/src/diffpack

Similar Messages

  • Virtex6:Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and mode settings

    Hello,everyone.
    I am using virtex6 FPGA and trying to download mcs file to PROM and have failed.
    I download .bit file to FPGA and succeed.
    When i try to download .mcs file to PROM XCF128X-FTG64C(BPI Flash) and choose Slave SelectMAP Mode
    and the process is about 68% it fails.
    The message below the IMapct is as belows:
    done.
    PROGRESS_END - End Operation.
    Elapsed time =      0 sec.
    // *** BATCH CMD : identifyMPM
    // *** BATCH CMD : assignFile -p 1 -file "C:/Users/Administrator/Desktop/TEST/LED/led.bit"
    '1': Loading file 'C:/Users/Administrator/Desktop/TEST/LED/led.bit' ...
    done.
    INFO:iMPACT:2257 - Startup Clock has been changed to 'JtagClk' in the bitstream stored in memory,
    but the original bitstream file remains unchanged.
    UserID read from the bitstream file = 0xFFFFFFFF.
    INFO:iMPACT:501 - '1': Added Device xc6vlx240t successfully.
    INFO:iMPACT - Current time: 2014/3/13 8:48:14
    // *** BATCH CMD : Program -p 1
    PROGRESS_START - Starting Operation.
    Maximum TCK operating frequency for this device chain: 66000000.
    Validating chain...
    Boundary-scan chain validated successfully.
    INFO:iMPACT - 1: Over-temperature condition detected! [ 230.52C >  120.00C]
    1: Device Temperature: Current Reading:  230.52 C, Max. Reading:  230.52 C
    1: VCCINT Supply: Current Reading:   2.997 V, Max. Reading:   2.997 V
    1: VCCAUX Supply: Current Reading:   2.997 V, Max. Reading:   2.997 V
    '1': Programming device...
     Match_cycle = NoWait.
    Match cycle: NoWait
     LCK_cycle = NoWait.
    LCK cycle: NoWait
    done.
    INFO:iMPACT:2219 - Status register values:
    INFO:iMPACT - 0011 1111 0111 1110 0100 1011 1100 0000
    INFO:iMPACT:579 - '1': Completed downloading bit file to device.
    INFO:iMPACT:188 - '1': Programming completed successfully.
     Match_cycle = NoWait.
    Match cycle: NoWait
     LCK_cycle = NoWait.
    LCK cycle: NoWait
    INFO:iMPACT - '1': Checking done pin....done.
    '1': Programmed successfully.
    PROGRESS_END - End Operation.
    Elapsed time =     23 sec.
    Selected part: XCF128X
    // *** BATCH CMD : attachflash -position 1 -bpi "XCF128X"
    // *** BATCH CMD : assignfiletoattachedflash -position 1 -file "C:/Users/Administrator/Desktop/TEST/LED/leda.mcs"
    INFO:iMPACT - Current time: 2014/3/13 8:49:32
    // *** BATCH CMD : Program -p 1 -dataWidth 16 -rs1 NONE -rs0 NONE -bpionly -e -v -loadfpga
    PROGRESS_START - Starting Operation.
    Maximum TCK operating frequency for this device chain: 66000000.
    Validating chain...
    Boundary-scan chain validated successfully.
    INFO:iMPACT - 1: Over-temperature condition detected! [ 230.52C >  120.00C]
    1: Device Temperature: Current Reading:  230.52 C, Max. Reading:  230.52 C
    1: VCCINT Supply: Current Reading:   2.997 V, Max. Reading:   2.997 V
    1: VCCAUX Supply: Current Reading:   2.997 V, Max. Reading:   2.997 V
    '1': BPI access core not detected. BPI access core will be downloaded to the device to enable operations.
    INFO:iMPACT - Downloading core file D:/Xilinx/14.3/ISE_DS/ISE/virtex6/data/xc6vlx240t_jbpi.cor.
    '1': Downloading core...
     Match_cycle = NoWait.
    Match cycle: NoWait
     LCK_cycle = NoWait.
    LCK cycle: NoWait
    done.
    INFO:iMPACT:2219 - Status register values:
    INFO:iMPACT - 0011 1111 0111 1110 0100 1011 1100 0000
    INFO:iMPACT:2492 - '1': Completed downloading core to device.
    Current cable speed is set to 6.000 Mhz.
    Cable speed is default to 3Mhz or lower for BPI operations.
    Current cable speed is set to 3.000 Mhz.
    Setting Flash Control Pins ...
    Setting Configuration Register ...
    Populating BPI common flash interface ...
    Common Flash Interface Information Query completed successfully.
    INFO:iMPACT - Common Flash Interface Information from Device:
    INFO:iMPACT - Verification string:  51 52 59
    INFO:iMPACT - Manufacturer ID:         49
    INFO:iMPACT - Vendor ID:              01
    INFO:iMPACT - Device Code:            18
    Setting Flash Control Pins ...
    Using x16 mode ...
    Setting Flash Control Pins ...
    Setting Configuration Register ...
    '1': Erasing device...
    '1': Start address = 0x00000000, End address = 0x008CE03B.
    done.
    '1': Erasure completed successfully.
    Setting Flash Control Pins ...
    Using x16 mode ...
    Setting Flash Control Pins ...
    Setting Configuration Register ...
    INFO:iMPACT - Using Word Programming.
    '1': Programming Flash.
    done.
    Setting Flash Control Pins ...
    '1': Flash Programming completed successfully.
    Using x16 mode ...
    Setting Flash Control Pins ...
    Setting Configuration Register ...
    '1': Reading device contents...
    done.
    '1': Verification completed.
    Setting Flash Control Pins ...
    Current cable speed is resumed to 6.000 Mhz.
    '1': Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and mode settings.
    `Elapsed time =    814 sec.
    and i find many people have met the same thing. But they are spartan  series FPGA and i try to low the Resistances of Mode pins,M0 M1 and M2, but the problem does not been solved.
    I have read the status Registers and find there is an over-temperature state 
    and in Impact i could not readback the registers. It is strange.
    I am anxious about this problem and have not solved it yet
    What reasons may it be?
    Hope for your answer, thank you

    Hi~I want to know if you solve the configuration problem for virtex-6?
    As I encounter the  same configuration problem, I want to consult  you with some question.
    Can I have your email?
    gszakacs wrote:
    I have measured the VCCINT and find it is 1.0V, not 2.997V;
    That is not at all surprising.  I always assumed the problem is with reading the XADC (system monitor) block and not with the voltage or temperature.
    my Reference board is ML605
    That would have been nice to know at the beginning...
    It seems that you have selected the correct mode, assuming your jumpers are set as required in the ML605 Hardware User's Guide.  See table 1-27, table 1-33 and the note below it about switch S1.
    I'm not that familiar with the details of this reference design, but it may be that the slave SelectMap circuitry requires a reset or power cycle to actually configure the FPGA.  Have you tried power-cycling to see if the FPGA boots from the flash?
    I'd also suggest that you select the V6 in the JTAG chain view, then go to the debug menu of Impact and select Read Device Status (this is from memory, but it's something like that).  That will not only show the bits of the configuration status register, but also describe what each bit means.  Among other things you can check the state of the FPGA's configuration logic and the Mode pins.
     

  • What are the correct setup and system settings for importing HDV video from tape?

    I keep trying different "easy setups" and system settings/preferences in order to import both the audio and video from HDV recordings on miniDV tape to no avail in either FCE4 or FCP5.  I import via firewire from the camera.  My computer "sees" the camera and controls playback (I can hear the audio) but no video displays for capture (just color bars).
    My camera is a Canon Vixia HV40 and my computer is a MacBook Pro running Snow Leopard 10.6.8.
    I've tried the HDV easy setup...no video...
    I've tried HDV 1080i/60 as I saw recommended somewhere else...no video...
    Captures standard video just fine but I'd like to try editing some higher def footage.
    Any suggestions?
    Many thanks.

    The combination of all these helpful ideas solved the problem.
    I set AV settings to HD and Apple Intermediate Codec HDV 1080i/60 AND set the cameras output to "locked" HDV.  Funny, it had been on "A" (Auto) before and should have simply sensed the need for HD output.  I then tried to capture using "A" again and this time it detected the difference between SD footage and HDV footage (I had clips of both kinds on the same tape).
    I ran similar capture tests on FCP 5.1, FCE 4, and FCPX and all three programs captured HDV video and audio.
    Thanks again everyone.  Be sure the camera is set to output HDV or "A".

  • 'Vintage' MacBook has lost all wifi connection suddenly and stored settings. I've tried to manually input my IP address and DNS number but it just times out when trying to connect to the network can anyone help?

    'Vintage' MacBook has lost all wifi connection suddenly and stored settings. I've tried to manually input my IP address and DNS number but it just times out when trying to connect to the network can anyone help?

    You said:
    We still couldn't get it to stop timing out. I tried to download the firmware from iClarified but iTunes said it didn't recognise the software.
    Just what did yo do to gt iTunes to see the download:

  • XML stream and stored as an output XML file

    Dear ALL,
    Could you help me in such situation?
    I need create XML file. I have DTD file. I create XML stream and stored as an output XML file. But all the data of my XML file stored in one line.
    How I can create my XML file according to DTD file?
    Thanks a lot.
    Best regards,
    Igor

    hi
    good
    go through this links,hope these would help you to solve your problem
    http://rustemsoft.com/JSPsample.htm
    http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.etools.xmlbuilder.doc/tasks/txmltask.htm
    thanks
    mrutyun^

  • Create XML stream and stored as an output XML file

    Dear ALL,
    Could you help me in such situation?
    I need create XML file. I have DTD file. I create XML stream and stored as an output XML file. But all the data of my XML file stored in one line.
    How I can create my XML file according to DTD file?
    Thanks a lot.
    Best regards,
    Igor

    hi
    good
    go through this links,hope these would help you to solve your problem
    http://rustemsoft.com/JSPsample.htm
    http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.etools.xmlbuilder.doc/tasks/txmltask.htm
    thanks
    mrutyun^

  • [svn] 719: Added package and class level javadoc.

    Revision: 719
    Author: [email protected]
    Date: 2008-03-03 11:34:54 -0800 (Mon, 03 Mar 2008)
    Log Message:
    Added package and class level javadoc.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Element.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/InterfaceCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/LogAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/SourceCodeBuffer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Visitor.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/package.html

    Just create a package.html file in the package folder and put your package documentation there. I just put my cursor on the Application Sources package folder name and right click and create a simple file. It will default to the package folder.

  • How Do I Extract All Pages From A Pdf File and Turn Them All Into Separate Files

    Hi i have  downloaded 100 reports into a single pdf, that must be extracted into 100 seperate pdfs. A prety straightforward question, that i was not able to find a straighforward answer to.
    Thanks for your help in advance!
    Matt

    i have Adobe Acrobat Pro, Version 10, would that work?
    Mind you, I want to take the 100 pages and turn them into 100 pdf files, avoiding of course going through the process of doing it one page at a time, one page at a time, one hundred times lol

  • Help with computer setup and PP settings for faster/better previews

    I have been using Cyberlink PowerDirector software for video editing.  It is very easy to use and can do quite a bit.  It was also accelerated by Intel HD graphics built into my system, so I could see a lot of my work at a pretty high resolution in real time.
    However, I wanted to see what PP was capable of, specifically the Warp Stabilizer.
    So I downloaded PP and have been trying to use it, but it was just slow as heck to preview anything (chop stop chop stop...), with render times being insanely long (12 hours for five minutes of footage vs. about 30 minutes with PowerDirector).
    Thinking it was a problem with my system and I needed to get a real graphics card, I got an EVGA GTX 670 (FTW) for $400, and popped it in.  I modified the text file so PP would see it as a compatible card, opened up PP and changed the engine to the new card. 
    Things are faster, but I was expecting a lot more.  Here's what I'm doing:
    1. Shooting Canon 5D mark II (now III) clips 20-60 seconds long, 1080p.
    2. Import to PP and sequence them.
    3. Adding effects:
         A. Top adjustment layer for fast color correction (white balance)
         B. Next adjustment layer: 3-way color, shadow/highlight, unsharp mask, fast blur
         C. Video 1 layer has the clips with warp stabilizer applied to each, and dissolves.
    My final output will be 720p.  ( I shoot 1080p so the Warp Stabilizer will have more to work with, and I can crop without feeling like I'm degrading quality).
    My system: i7 2600k, 16GB RAM, GTX 670 graphics, 120GB SSD "Max IOPS", 2TB 7200rpm internal, 2TB 7200rpm external (USB 2.0, backup drive).
    I can currently preview at 1/4 res in realtime.  I would really like to be able to get to 1/2 res (of course full would be great).  One thing that worries me is that GPU-Z indicates that my GPU is only running at about 2% while previewing, while CPU usage is at around 50%.  I was under the impression that the Mercury thing would use GPU/CUDA to process previews and effects that are supported (that includes Warp Stabilizer).
    I've looked at Sequence Settings and fiddled with Preview File Format and size, but that doesn't seem to do anything.  I'm currently looking around at codecs (Cineform, DNxHD), but don't know if those can help.
    What settings should I alter to get better previews? 

    Well I'm still pretty clueless about this, but for anyone who is looking at this and wondering, here's what I've gleaned:
    1.  After Effects, especially CS6, makes much more and better use of graphics cards than does Premiere Pro.  I'm guessing that PP will, in future versions, make better use of them.  For now, no need to spend more than a couple hundred bucks on one.
    2.  Update the software.  PP and AE both performed substantially better after installing the .01 update from adobe.  After you install the update, be sure to re-do the CUDA hack, if necessary.
    3.  As it stands, money for a PP system is best spent on a processor, as in the newest Intel (currently Ivy Bridge), and overclocked.  This is where performance happens.  I'd say on a 2012 system, 16 GB RAM should be considered a minimum for video editing, and 24 or 32 if you can afford it.  More than that probably won't be utilized.  Hard disks can affect performance, but I don't think it's a bottleneck unless you're doing something that requires VERY fast/large reads and writes (4k source?).  Most people who have high-end editing stations also have a bunch of drives in RAID, but if you look at the performance chart, the SECOND highest scoring tester did not use RAID (though did use a presumably fast and large SSD).
    Keep in mind that all of this has to do with RENDER speeds.  I still don't know what the bottleneck is for PREVIEWS, but I'm just going to assume it's the same.

  • Strange behavior when getting data and storing it into a tdms file

    Hi
    I am getting data from a VISA device(10bytes every 20ms) in a string buffer and then using indexing array get each element which is 2 bytes , filtering the data in real time using a butterworth filter and then storing the data to a TDMS.
    The problem is that the data goes haywire after a brief the the different elemetns just switch. So for example x becomes resistance, GSR becomes  etc
    I have uploaded the VI and the TDMS file converted to excel format

    You really should be writing to the TDMS file while you acquire the data.  By using the Autoindexing Tunnels to build the arrays, you are causing A LOT of memory allocations, which causes things to really slow down.  I would venture to say that you are missing data, causing what looks like a shift in the data.  But you would need to be looking at the error coming out of the VISA Read to know for sure.
    So look into the Producer/Consumer.  The idea is to use a parallel loop to log the data while your current loop reads and processes the data.  The data is sent to the consumer loop via a queue.

  • Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files

    I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml.
    I can store file once I get the file content as a byte[] will
    not be difficult, as I can do:
    File.WriteAllBytes("c:\\mails\\"+mail.Subject+".eml",content);
    The problem will be to fetch (1) all mails with (2)
    all headers (like from, to, subject) (I am keeping information of those values of from, to and
    other properties somewhere else, so I need them too) and (3)byte[]
    EmailMessage.MimeContent.Content. Actually I am lacking understanding of
    Microsoft.Exchange.WebServices.Data.ItemView,
    Microsoft.Exchange.WebServices.Data.BasePropertySet and
    Microsoft.Exchange.WebServices.Data.ItemSchema
    thats why I am finding it difficult.
    My primary code is:
    When I create PropertySet as
    follows:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties, ItemSchema.MimeContent);
    I get following exception:
    The property MimeContent can't be used in FindItem requests.
    I dont understand
    (Q1) What these ItemSchema and BasePropertySet are
    (Q2) And how we are supposed to use them
    So I removed ItemSchema.MimeContent:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties);
    I wrote simple following code to get all mails in inbox:
    ItemView view = new ItemView(50);
    view.PropertySet = properties;
    FindItemsResults<Item> findResults;
    List<EmailMessage> emails = new List<EmailMessage>();
    do
    findResults = service.FindItems(WellKnownFolderName.Inbox, view);
    foreach (var item in findResults.Items)
    emails.Add((EmailMessage)item);
    Console.WriteLine("Loop");
    view.Offset = 50;
    while (findResults.MoreAvailable);
    Above I kept page size of ItemView to
    50, to retrieve no more than 50 mails at a time, and then offsetting it by 50 to get next 50 mails if there are any. However it goes in infinite loop and continuously prints Loop on
    console. So I must be understanding pagesize and offset wrong.
    I want to understand
    (Q3) what pagesize, offset and offsetbasepoint in ItemView constructor
    means
    (Q4) how they behave and
    (Q5) how to use them to retrieve all mails in the inbox
    I didnt found any article online nicely explaining these but just giving code samples. Will appreciate question-wise explanation despite it may turn long.

    1) With FindItems it will only return a subset of Item properties see
    http://msdn.microsoft.com/en-us/library/bb508824(v=exchg.80).aspx for a list and explanation. To get the mime content you need to use a GetItem (or Load) I would suggest you read
    http://blogs.msdn.com/b/exchangedev/archive/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange-web-services.aspx which also covers of paging as well.
    3) offset is from the base your setting the offset to 50 each time which means your only going to get the 50 items from the offset of 50 which just creates an infinite loop. You should use
    view.Offset
    = +50;
    to increment the Offset although it safer to use
    view.Offset  += findResults.Items.Count;
    which increments the offset based on the result of the last FindItems operation.
    5) try something like
    ItemView iv = new ItemView(100, 0);
    FindItemsResults<Item> firesults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    iv.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly) { ItemSchema.MimeContent, ItemSchema.Subject, EmailMessageSchema.From };
    do
    firesults = service.FindItems(WellKnownFolderName.Inbox, iv);
    service.LoadPropertiesForItems(firesults.Items, itItemPropSet);
    foreach(Item itItem in firesults){
    Object MimeContent = null;
    if(itItem.TryGetProperty(ItemSchema.MimeContent,out MimeContent)){
    Console.WriteLine("Processing : " + itItem.Subject);
    iv.Offset += firesults.Items.Count;
    } while (firesults.MoreAvailable);
    Cheers
    Glen
    .Offset += fiFitems.Items.Count;

  • JTable and storing up-dated in a file

    The first task is to save data entered in the JTable to a file.
    I could not do this as I could not access the updated model.
    I include the three files. At the moment the method tableChanged is stopping the init method loading because it sees this a table changed.
    Any help after a day slogging at this would be most appreciated.
    Yours Sincerely,
    Kieran A. Murray
    package tables;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.Vector;
    import javax.swing.table.*;
    public class PowerFrame extends JFrame
    private JFrame PowerFrame;
    private JTabbedPane PowerTabPane;
    private JMenuItem fMenuOpen = null;
    private JMenuItem fMenuSave = null;
    private JMenuItem fMenuClose = null;
    JavaFilter fJavaFilter = new JavaFilter ();
    File fFile = new File ("default.dat");
    private Object Vectorin;
    private Object v;
    public Vector q;
    private int count;
    private int xcount;
    private int qcount;
    private int ycount;
    private int pcount;
    private File file;
    BusbarRecords Busbar = new BusbarRecords();
    BusbarsUI ui = new BusbarsUI();
    public PowerFrame () {
         super("Begin at the Beginning");
         addWindowListener(new WindowAdapter()
         { public void windowClosing(WindowEvent e)
         { System.exit(0);
         PowerTabPane = new JTabbedPane(SwingConstants.RIGHT);
         PowerTabPane.setBackground(Color.blue);
         PowerTabPane.setForeground(Color.white);
         populatePowerTabbedPane();
         buildMenu();
         getContentPane().add(PowerTabPane);
    private void populatePowerTabbedPane()
         PowerTabPane.addTab("Busbars", null, new BusbarsUI(), "Data for Busbar");
    private void buildMenu()
         JMenuBar mb = new JMenuBar();
         JMenu menu = new JMenu("File");
         setJMenuBar (mb);
         setSize (400,400);
         JMenuItem openitem = new JMenuItem("Open");
         JMenuItem saveitem = new JMenuItem("Save");
         JMenuItem exititem = new JMenuItem("Exit");
         exititem.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent e)
         System.exit(0);
         openitem.addActionListener(new ActionListener()
         public void actionPerformed ( ActionEvent e ) {
              boolean status = false;
              status = openFile ();
              if (!status)
              JOptionPane.showMessageDialog (
              null,
              "Error opening file!", "File Save Error",
              JOptionPane.ERROR_MESSAGE);
         saveitem.addActionListener(new ActionListener()
         public void actionPerformed ( ActionEvent e ) {
              boolean status = false;
              status = saveFile ();
              if (!status)
              JOptionPane.showMessageDialog (
              null,
              "Error opening file!", "File Open Error",
              JOptionPane.ERROR_MESSAGE);
         menu.add(openitem);
         menu.add(saveitem);
         menu.add(exititem);
         mb.add(menu);
         setJMenuBar(mb);
         * Use a JFileChooser in Open mode to select files
         * to open. Use a filter for FileFilter subclass to select
         * for *.java files. If a file is selected then read the
         * file and place the string into the textarea.
         boolean openFile () {
         JFileChooser fc = new JFileChooser ();
         fc.setDialogTitle ("Open File");
         // Choose only files, not directories
         fc.setFileSelectionMode ( JFileChooser.FILES_ONLY);
         // Start in current directory
         fc.setCurrentDirectory (new File ("."));
         // Set filter for Java source files.
         fc.setFileFilter (fJavaFilter);
         // Now open chooser
         int result = fc.showOpenDialog (this);
         if (result == JFileChooser.CANCEL_OPTION) {
         return true;
         } else if (result == JFileChooser.APPROVE_OPTION) {
         fFile = fc.getSelectedFile ();
                   // Invoke the readFile method in this class
         q = (Vector) readFile (fFile);
              System.out.println(q.elementAt(1));
         /*ui.readFileIntoJTable(q);*/
         } else {
         return false;
         return true;
         } // openFile
         boolean saveFile () {
              File file = null;
              JFileChooser fc = new JFileChooser ();
              // Start in current directory
              fc.setCurrentDirectory (new File ("."));
              // Set filter for Java source files.
              fc.setFileFilter (fJavaFilter);
              // Set to a default name for save.
              fc.setSelectedFile (fFile);
              // Open chooser dialog
              int result = fc.showSaveDialog (this);
              if (result == JFileChooser.CANCEL_OPTION) {
              return true;
              } else if (result == JFileChooser.APPROVE_OPTION) {
              fFile = fc.getSelectedFile ();
              if (fFile.exists ()) {
              int response = JOptionPane.showConfirmDialog (null,
              "Overwrite existing file?","Confirm Overwrite",
              JOptionPane.OK_CANCEL_OPTION,
              JOptionPane.QUESTION_MESSAGE);
              if (response == JOptionPane.CANCEL_OPTION) return false;
              return ui.getJTableFields(fFile);
              else{
              return false;
              } // saveFile
         public Object readFile (File file) {
              try{
                   FileInputStream fis = new FileInputStream(file);
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   v = ois.readObject();
                   fis.close();
              catch(Exception e){
                   System.err.println("Exception:" + e.getMessage());
              return (v);
    public static void main(String[] args)
         PowerFrame PF = new PowerFrame();
         PF.pack();
         PF.setSize(765,690);
         PF.setBackground(Color.white);
         PF.setVisible(true);
    package tables;
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class BusbarsUI extends JPanel implements TableModelListener {
         private boolean DEBUG = true;
    private int xcount;
    private int ycount;
    private int pcount;
    private int qcount;
    private int y;
    private TableModel newmodel;
    JTable table;
         BusbarRecords Busbar=new BusbarRecords();
    public BusbarsUI() {
         init();
    public void init(){
         DefaultTableModel model = new DefaultTableModel();
         model.addTableModelListener( this );
         JTable table = new JTable(model);
         setLayout(new BorderLayout());
         setBackground(Color.white);
         Vector p = Busbar.setJTableFields();
    String[] s = initializevector();
    System.out.println(p.size());
         for (xcount=1; xcount <= Busbar.columnNames.length;xcount++)
              model.addColumn(Busbar.columnNames [xcount-1]);
         for (qcount=1; qcount <= 5; qcount++)
         model.addRow(s);
              pcount=1;
         while (pcount < (p.size()-1))
              for (ycount=1; ycount <= p.size()/5; ycount++)
                   for (xcount=1; xcount <= Busbar.columnNames.length;xcount++)
                        model.setValueAt(p.elementAt(pcount-1), ycount-1, xcount-1);
                        pcount++;
         model.addRow(new Object[]{""});
    for (pcount=0; pcount <= p.size()-1; pcount++)
         System.out.println(p.elementAt(pcount));
    table.setPreferredScrollableViewportSize(table.getPreferredSize());
    JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane, BorderLayout.CENTER);
    public void tableChanged(TableModelEvent e)
              System.out.println(e.getSource());
              if (e.getType() == TableModelEvent.UPDATE)
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                        TableModel model = table.getModel();
                        model.getValueAt(row,column);
                        Vector g = new Vector();
                        for(int i=0; i < model.getRowCount();i++){
                             for(int j=0;j < model.getColumnCount();j++){
                                  g.addElement(model.getValueAt(i,j));
    private void stopEditing() {
         if (table.getCellEditor() != null)
         table.getCellEditor().stopCellEditing();
    private String[] initializevector()
         String[] v = new String[5];
         for (int i=0; i<5;i++)
              v="";
         return v;
         /* public JTable update()
              for (xcount=1; xcount <= Busbar.columnNames.length;xcount++)
                   for (qcount=1; qcount <= 5; qcount++)
                        System.out.println(model.getValueAt(ycount-1, xcount-1));
              JTable table = new JTable(model);
              return table;
    /* public JTable readFileIntoJTable(Object q)*/
    public boolean getJTableFields(File file)
         Vector g = new Vector();
         stopEditing();
         /*for(int i=0; i < model.getRowCount();i++){
              for(int j=0;j < model.getColumnCount();j++){
                   g.addElement(model.getValueAt(i,j));
         int numRows=model.getRowCount();
         int numCols= model.getColumnCount();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + table.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");*/
    try
              FileOutputStream fos = new FileOutputStream(file);
              ObjectOutputStream object = new ObjectOutputStream(fos);
              object.writeObject(g);
              object.flush();
              object.close();
         catch(Exception ex)
              System.out.println("Exception:" + ex);
              return false;
              return true;
    package tables;
    import java.io.*;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableModel;
    import java.util.Vector;
    public class BusbarRecords implements Serializable
    private String firstName, lastName, sport;
    private int years;
    private boolean vegetarian;
    private int xcount;
    private int ycount;
    private int pcount;
    private int y;
    private PowerFrame PR;
    File file;
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object [][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
         public Vector setJTableFields(){
              Vector p = new Vector();
         for (ycount =1; ycount <=5; ycount++)
              for(xcount=1; xcount <= columnNames.length; xcount++)
                   p.add("one");
         return p;
    package tables;
    import javax.swing.*;
    import java.io.*;
    /** Filter to work with JFileChooser to select java file types. **/
    public class JavaFilter extends javax.swing.filechooser.FileFilter
    public boolean accept (File f) {
    return f.getName ().toLowerCase ().endsWith (".java")
    || f.isDirectory ();
    public String getDescription () {
    return "Java files (*.java)";
    } // class JavaFilter

    brilliant thanks Dr Clap thats just what i was looking for - ive been wasting time searching thru thr ROME and Informa API's for a way of doing this before realising that i just need to write the URL's into a file and the read from them !!

  • Easy Setups and settings not visible

    I've created a few different easy setups and other settings for various situations as I've been working but for some reason none of the settings I've saved are accessible after I close the program. I've tried clicking the "show all" checkbox on the Easy Setups box but the only thing that happens then is that I'm unable to expand the list of Easy Setups or hit cancel (meaning all I can do is either uncheck the box or hit OK).
    I have no clue why this is doing this and would appreciate any help. I'm using Final Cut 5.1.4 on a Dual-core Mac Pro...

    Hi friend,
    Please try to check you documents in transaction code VTFL by giving the Billing document (first) and the delivery document.
    Definitely you can find the combination
    And for your another question , In the table TVCPF you can see the sales document type ED which would have maintained in the VTAF copy controls from the Sales document to Billing documents
    Please let me know if you have further queries.
    santosh

  • Storing and Writing Settings

    Hey,
    Sorry if the topic is misleading, but basically I'm looking for a better way to store and retrieve settings/properties to/from files.
    Currently I'm using "Properties", but I'm a bit worried as to how it stores the settings.
    Eg. If mutiple objects load the Properties file, and other objects modify the Properties file before the first object stores settings will be lost.
    Obj1 -> Loads Properties file
    Obj2 -> Loads Properties file
    Obj2 -> Changes Property
    Obj2 -> Stores
    Obj1 -> Changes Property
    Obj1 -> Stores.
    Everthing changed from Obj2 will be lost.
    Is there a better API/Way of doing it?
    I'm writing a Server/Client Instant Messenger (out of boredom) with an Admin Console. Basically the admin can change any of the users settings, BUT if the user currently has these settings loaded and stores after the admin has all admin changes are undone.
    Even just some way to change a single Property at a time would fix this.
    I've read up a little on the Preferences API but not totally sure if this is what I want.
    Thanks in advance, and sorry for any confusion above :)

    The only time it could possibly occur is in the
    milliseconds it takes to:
    load config
    change properties
    save configUnderstood, but I come from a world where code gets pounded hard 24/7/365. Given enough uptime, every improbable situation becomes inevitable. The thing you think will never happen is always the thing that bites you in the ass. This environment may have made me too paranoid.
    I'll look into cleaning that up a bit though using the
    methods you mentioned above.
    This whole project is just me wasting some time while
    learning. And deciding the chances are small enough
    not to worry about it is probably a bad habit to
    start.I'd consider using both of my suggestions. There's probably no reason to couple systemwide settings and user settings. Give each user its own settings that are persisted independently. Make all references to system or user settings coordinate through a single, unified view of the settings. Don't let clients "check out" settings unless you want to add transaction support. In other words, don't let two objects get their own copies of the settings and then send them back when they've changed. Make every object work with the the only instance of the settings.

  • How to make the result showing one time and make the result to csv file?

    My script having problem of showing out all the AD computer name result  from Active Directory once when running it and storing the result to csv file. I am a newbie in AD and powershell.
    This is the code:
    $strADPathFile = "D:\Powershell for AD\ADPathList.txt"
    $strErrLogFile = "D:\powershell for AD\errorADComputer.log"
    $arrADPath = Get-Content -Path $strADPathFile
    foreach ($strADPath in $arrADPath)
    try
    $objSearch = New-Object DirectoryServices.DirectorySearcher
    $objSearch.Filter = '(objectCategory=computer)'
    $objSearch.SearchRoot = $strADPath
    $objSearch.SearchScope = "Subtree"
    $objSearch.PageSize = 1000
    $objResults = $objSearch.Findall()
    write-host "Retrieving AD computer information in the domain $strDomain"
    write-host "Number of AD Computer Name result: "$objResults.Count
    foreach($objResult in $objResults){
    $objComputer = $objResult.GetDirectoryEntry()
    write-host $objComputer.dNSHostName
    try
    # InsertSQLTable $objComputer
    catch
    write-host $error[0]
    $strError = $objComputer.dNSHostName + " " + $dateNow + $error[0]
    Add-Content $strErrLogFile $strError
    catch
    write-host $error[0]
    Export-Csv D:\PowerShellforAD\test2.csv
    This is the error that I had get is that it will get the result for 2nd time again.
    By the way, what is InputObject about? I had research some of it and still did not quite get it. Can anyone explain? Thanks 

    Hi,
    in the final line you call Export-Csv. which is a great command at exporting information. However, for it to work it needs a path to export to (D:\PowerShellforAD\test2.csv in your case) and Information (InputObject) to export.
    You do not give that command any Information, so it throws an error.
    Cheers,
    Fred
    There's no place like 127.0.0.1

Maybe you are looking for

  • How to Identify which Source Row is causing a slowdown in the Indexing?

    Every so often the Indexing seems to hit a wall and we gaet a huge backlog of text files that need to be indexed. We get about 2 to 3 million files per day. Most of the time the problem gets resolved when we increase the degree parallel. How can we i

  • ICal yields "Error during PUT for mailto:valid@email: iMIP request failed"

    Hello, I'm trying to bring up an iCal server (using Mac OS X Lion 10.7.3 Server on a Mac Mini). The basic configuration runs fine. But when I tried to enable eMail invitations, I got stuck with those messages in the error log: [twistedcaldav.scheduli

  • Cisco Router - Bandwidth Guarantee

    Hi Cisco Community, In my office I have 2 Mbp/s (Down) internet speed and 2 Mbp/s (Up). My LAN network is 192.168.10.0/24 My Laptop IP is: 192.168.10.9/24 ** I need a cisco router configuration to guarantee 99.99% All Traffic [TCP&UDP 1-65535] from m

  • How to go to dos in laptop envym6-1102sa

    greeting  i want to know how i enter the dos on my laptop envym6-1102sa i want put c.d and instal the windows from it i try to press on f9 in boot device but he get to me two choose  1.os manager  2.ufei  i hope find solution of how go to dos and how

  • Why do I get a black screen at times?

    I'm using the beta on a Motorola photon 4g and I'm getting a back screen at times.. the browser works 50% of the time