Open file for edit

hi
lets say i am doing a program similiar to autocad
and i need to open the file for edit in my java program
the file format is my own custom format, not autocad format
my question is that does it more sense to create a clone of the copy to edit
or edit the opened file directly...

Create a clone. If something goes wrong, the user can always revert to the original file.
(On the other hand, this may also depend on what you are really doing to "edit the file". I suspect that very fiew user applications actually make changes directly into a source file.)

Similar Messages

  • Vi error on nfs mount; E212: Can't open file for writing

    Hi all,
    I've setup a umask of 0 for testing on both NFS client (Centos 5.2) and NFS server (OSX 10.5.5 server).
    I can create files as one user and edit/save out as another user w/o issue when directly logged into the server via ARD.
    However, when I attempt the same from an NFS mount on a client machine, even as root I get the following error using vi;
    "file" E212: Can't open file for writing
    Looking at the system.log file on the server, I see;
    kernel[0]: add_fsevent: no name hard-link! dropping the event. (event 2 vp == 0xa5db510 (-UNKNOWN-FILE)).
    This baffles me. My umask is 0 meaning files I create and attempt to edit as other users are 777, but I cannot save out edits unless I do a wq! in vi. At that point, the owner of the file changes to whomever did the vi.
    This isn't just a vi issue as it happens using any editor, but I like to use vi.
    Any help is greatly appreciated. Hey, beer is on me!

    Hi all,
    Thanks for the replies
    I've narrowed it down to a Centos client issue.
    Everything works fine using other Linux based OS's as clients.
    Since we have such a huge investment in Centos, I must figure out a workaround. Apple support wasn't much help as usual however they were very nice.
    There usual response is "its unsupported".
    If Apple really wants to play in the enterprise of business space, they really need to change there philosophy. I mean telling me that I shouldn't mount home directories via NFS is completely rediculus.
    What am I supposed to use then, Samba of AFP? No, I don't think so. No offense to Microsoft but why would I use a Windows based file sharing protocol to mount network shares in a Nix env???

  • I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?

    I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?

    I recently purchased QuickTime 7 Pro to convert avi files to mov files for editing on Imovie. However, QuickTime won't play the files. How can I get them to play and how can I convert them to mov files?
    Both the AVI and the MOV file extensions refer to the file container and not the compressed data the file contains. Both are generic file containers in that each may contain any valid combination of audio and/or video data that is compatible with the codec component configuration of the system on which the file was created. On the other hand, whether a file is playback compatible, conversion compatible, and/or edit compatible depends on the data actually contained in the file container. So, you are basically dealing with two separate issues here—the container and what is inside it.
    Basically, if you want to make your files ediit compatible with iMovie, you must change your file container to one that is acceptable to iMovie and convert the data to edit compatible audio and/or video compression formats as may be necessary. The best approach is to determine what codecs were actually used to create the original AVI files and add them to your system if possible. In most cases a codec package like Perian can be added to your system's codec component configuration to may the AVI file playable. Once they are playable, in the QT 7 app then they can be chnged or converted to file types and compression formats that can be edited in iMovie. (While Perian handles most codecs commonly used to create AVI files, it does not handle all possibilities and, while the Perian codec package still works under cureent Mac OS versions, its development group has decided to drop further development/support of the package.)
    Background: AVI is a file container originally developed by Microsoft back in 1992 but for which official support was discontinued about 11 years. Despite its limitations, Windows users still tend to use this file based on its open source ease of use and generic nature, thus, making its use so popular that most users are unwilling to switch to more modern but less generic file types. Since some AVI legacy compression formats have never been transcoded for the Mac or use beyond OS 9 or OS X PPC platforms, it is often important to know what specific compression formats are contained in the AVI file to know which codecs to add to your system and which not to add in order to avoid possible codec conflicts.
    You can use many different converters to convert AVI files to iMovie edit compatible files. Most third-party apps contain their own buit-in codecs which do not relay on the Mac codec component configuration. Free ones, like HandBrake, usually have limited conversion capabilities while those that have more varied outputs are usually commercial in nature and will cost you additional cash. QT 7 Pro or the free MPEG Streamclip app allow you to access you own system's component configuration and use any available codec component like DV, AIC, MPEG-4, H.264, Photo JPEG, etc.—all of which are iMovie compatible for editing purposes—but only after making the AVI file QT 7 player compatible.
    In order to determine what compression formats wewre used in your AVI files you can
    1) Try checking the Finder "Info" window,
    2) Use the "Inspector", "Media Info", or "Properties" window of any player app that will open the file, or
    3) Use a general media utility app like "MediaInfo" to read the file characteristics.

  • I'm having problems exporting files for editing from LR 4.3 into photoshop elements 9.

    This problem only occurs with files that I have been imported from cd's/dvd's into the libraryand I get the msg "Lightroom was unable to prepare the selected file for editing. It will not be opened."
    Files that are stored on my hard drive have NO PROBLEM in being edited. .
    I am new to Lightroom and currently using it on the 30 day trial I have been using PSE for a long time and have over 90,000 images in Organizer and all of my images are on cd's/dvd's, very few are stored on the hard drive.
    Thanks in advance for any feedback and suggestions.
    Ken

    Do you mean they are still on the CD/DVD and you want to export them directly from CD/DVD?
    That's not possible since the CD/DVD is not writeable. You have to move the photos to your hard drive first.

  • [SOLVED]Couldn't open file for 'Log debug file /var/log/tor/debug.log'

    Hello,
    I'm trying to run a tor relay on my arch linux box. Trying to launch the tor daemon, here's the log via
    $ systemctl status tor.service
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.877 [notice] Tor v0.2.4.21 (git-505962724c05445f) running on Linux with Libevent 2.0.21-stable and OpenSSL 1.0.1g.
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.877 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.877 [notice] Read configuration file "/etc/tor/torrc".
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.909 [notice] Opening Socks listener on 127.0.0.1:9050
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.909 [notice] Opening OR listener on 0.0.0.0:9798
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.000 [warn] Couldn't open file for 'Log debug file /var/log/tor/debug.log': Permission denied
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.000 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9050
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.000 [notice] Closing partially-constructed OR listener on 0.0.0.0:9798
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.000 [warn] Failed to parse/validate config: Failed to init Log options. See logs for details.
    May 20 11:53:10 arch tor[21726]: May 20 11:53:10.000 [err] Reading config failed--see warnings above.
    May 20 11:53:10 arch systemd[1]: tor.service: main process exited, code=exited, status=255/n/a
    May 20 11:53:10 arch systemd[1]: Unit tor.service entered failed state.
    Why the tor daemon cannot write into /var/log/tor/debug.log ?
    Here's my /etc/group
    root:x:0:root
    bin:x:1:root,bin,daemon
    daemon:x:2:root,bin,daemon
    sys:x:3:root,bin
    adm:x:4:root,daemon,nue
    tty:x:5:
    disk:x:6:root
    lp:x:7:daemon
    mem:x:8:
    kmem:x:9:
    wheel:x:10:root,nue
    ftp:x:11:
    mail:x:12:
    uucp:x:14:
    log:x:19:root
    utmp:x:20:
    locate:x:21:
    rfkill:x:24:
    smmsp:x:25:
    http:x:33:
    games:x:50:
    lock:x:54:
    uuidd:x:68:
    dbus:x:81:
    network:x:90:
    video:x:91:
    audio:x:92:
    optical:x:93:
    floppy:x:94:
    storage:x:95:
    scanner:x:96:
    power:x:98:
    nobody:x:99:
    users:x:100:
    systemd-journal:x:190:
    nue:x:1000:
    avahi:x:84:
    lxdm:x:121:
    polkitd:x:102:
    git:x:999:
    transmission:x:169:
    vboxusers:x:108:
    tor:x:43:
    mysql:x:89:
    Last edited by giuscri (2014-05-20 12:18:56)

    SidK wrote:You must have modified your torrc to print to that log file. systemd starts the service as the tor user (see /usr/lib/systemd/system/tor.service). So if if you want to log to a file the tor user must have write access to it. By default however tor it set to log to the journal, which doesn't require any special permissions.
    Yes. I did edit the torrc file since I wanted the log to be store in that file. Indeed
    ## Logs go to stdout at level "notice" unless redirected by something
    ## else, like one of the below lines. You can have as many Log lines as
    ## you want.
    ## We advise using "notice" in most cases, since anything more verbose
    ## may provide sensitive information to an attacker who obtains the logs.
    ## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
    #Log notice file /var/log/tor/notices.log
    ## Send every possible message to /var/log/tor/debug.log
    Log debug file /var/log/tor/debug.log
    ## Use the system log instead of Tor's logfiles
    Log notice syslog
    ## To send all messages to stderr:
    #Log debug stderr
    I missed the file systemd uses to choose who's the process owner.
    Course, I could edit /usr/lib/systemd/system/tor.service such that root will become the process owner; or, I could add the user I use everyday in the root group, then change the permission of /var/log/tor/debug.log such that it will be writable also for the folks in the root group.
    Yet they both seems to be a bit unsafe ...
    What is the best choice, to you guys?
    Thanks,

  • HT2486 how can I export the contact book data to a csv file for editing?

    how can I export the contact book data to a csv file for editing?

    You can edit a card right in Contacts. No need to export and re-import.
    Select a name and on the right side, click the Edit button:

  • Using NIK software...LR5 said it cannot prepare the file for editing

    I have reimported photos from my backup HD (Lacie) into LR5.  After selecting a photo in LR5 I attempted to edit using NIK software...LR5 said it cannot prepare the file for editing?
    Message was edited by: Geoff the kiwi
    Changed title to reflect query

    Is there a question mark icon next to your photo?
    What is your operating system?
    Which NIK Software?

  • Cannot download Flash Player 10 due to - Error opening file for writing: Flash10d.ocx

    Hello all,
    I am having difficulty installing Flash Player 10. I open it up, and only 10% of the download bar finishes before I get the message:
    "Error opening file for writing:
    C:\Windows\system32\Macromed\Flash\Flash10d.ocx"
    I am running Windows Vista with Internet Explorer, although I'm not 100% sure which version of IE it is and haven't found out how to check. I have McAfee for security, but I have already tried disabling the Firewall with no success.
    My computer is new, so there's a chance that it already has Flash Player 10 on it since it belonged to someone else before it came to me, but I don't know how to check that either.
    Any suggestions?
    Thanks!

    Let me clarify:
    I have already tried disabling the firewall and running the installer again, but it didn't work.

  • Convert mts files for editing in Final Cut?

    Is there a way to convert mts files for editing in Final Cut Express or Pro?

    Well, first, if you are talking about AVCHD video, FCE & FCP can directly import it from your camcorder.  They will also import AVCHD from an SD card or even your hard drive provided you have saved the entire AVCHD folder structure, not just the .mts files by themselves.
    If you only have the .mts files (without the surrounding AVCHD folder strucutre) then you should be able to use MPEG Streamclip to convert them to QuickTime/Apple Intermediate Codec for editiing in FCE.  MPEG Streamclip is free and works great.
    If that doesn't work, then look into ClipWrap, which has a $49.99 price tag.
    This will work the same for converting .mts files to ProRes assuming you already have FCP installed, which gives you the ProRes codec.
    FCE & FCP do not, however, directly import video from DSLRs because the camera manufacturers have each done some proprietary stuff in their implementation of video in their DSLRs.  However, if you have a Canon DSLR & FCP (that is, FCP 7) there is a Canon EOS video plugin that will enable you import the video directly from the DSLR into FCP7.  Not sure it's supported on Lion (10.7.x) just yet, but if you have a Canon DSLR it's worth a look.

  • Error Opening File for Writing

    I have a laptop running on Windows XP and I was having a really hard time running applications on Face Book. I kept getting a message to "kill pages" or "wait" for the program to respond. Most times it would eventually automatically "kill pages" and I am unable to use those apps. It's not only on Face Book either; some other pages will not run due to this problem. So I visited the Adobe web site and it said my version was out of date and that I needed to download the latest version. I did and now I am getting the error unable to open file for writing. (C:\WINDOWS\system32\Adobe\Shockwave\SwHelper_1166636.exe) I don't know if that matters or not.
    I cannot download the latest version; I don't know what other information I can give about the laptop; I am now getting the message "A plug-in (Shockwave) isn't responding". Please help if you can.
    Thank you for your time and help,
    Frustrated in Alabama

    Tami3979 wrote:
    (C:\WINDOWS\system32\Adobe\Shockwave\SwHelper_1166636.exe)
    That is actually Shockwave Player.
    So does this FB app actually require Flash Player or Shockwave Player?
    Get Flash Player from http://get.adobe.com/flashplayer/

  • Error opening file for writing when installing

    I cannot install Flash on my Vista X64. I have tried running
    the downloadable install and the online install. Any time I try to
    run the install I get "error opening file for writing" when trying
    to write C:\Windows\SysWOW64\Macromed\Flash\Flash9d.ocx.
    I have uninstalled Fash first (it never worked anyway) and I
    have rebooted. I even tried rebooting in Safe Mode but no matter
    what I try, I cannot remove the existing Flash9d.ocx and installing
    will not overwrite the existing file.
    Even after uninstalling Flash and rebooting to safe mode,
    Windows reports that flash9d.ocx is in use. So why is the file in
    use after uninstalling?
    Any help is appreciated.
    Dale

    Well, I finally figured out the problem with mine today. Of
    course, I'd still like to know what nefarious purpose might be
    involved with the Flash activeX file being loaded in memory even
    after uninstall and reboot such that it cannot be removed from my
    PC even in Safe Mode.
    At least I got Flash working. I discovered that Flash was
    disabled in IE.
    In IE, go to Tools->Options->Programs and then Manage
    Add-Ons. In my case, the ShockWave Flash Object was set to
    disabled. I changed it to Enabled and I was able to install and use
    Flash properly. Now I am just not sure I want to.
    With the questionable practices of using the ActiveX control
    even after uninstall, and making the file un-removable, along with
    the extremely (in my opinion) dishonest practice of installing
    Google Toolbar with Flash, I am hoping that Microsoft's Silverlight
    puts Flash out of the market - and I'm no huge fan of Microsoft
    either. With the new practices from Adobe, they are, in my opinion,
    no better than any other spyware and malware purveyor on the market
    - right up there with Napster and the dozens of follow-on products
    that tricked users into installing unwanted software.

  • The best way to make proxy files for editing?

    Hi,
    What is the best way to create proxy files for editing? I'm thinking Apple ProRes 422 (Proxy). The original material is DVCPRO HD 1080i50, shot on Panasonic P2 cards, and copied on to hard drives. But as there is about 400 hours of it, I desperately need to find a clever way to make smaller proxy files for editing.
    I would also like to make the proxies at a smaller resolution than 1080i for the editing process.
    I guess it's possible to import the media and then batch export it to the proxy format, but Is there a better way?

    I'm not able to ingest the material directly from the P2-folders as ProRes 422 (Proxy). No matter how much I change the import settings in "Log and transfer", it still ingests as DVCPRO HD 1080i50.
    Correct. DVCPRO HD P2 can only come in as DVCPRO HD. You can't transcode it. AVCIntra P2 is what you can bring in as ProRes. (Sorry Tom).
    I can of course transcode it form there to the proxy format and delete the ingested files,
    Why? Why do that? You have ingested all the files, right? You ALREADY HAVE THEM...right? Why not work with them? You obviously have the room (20TB). Why import all this, then now take the days it would require to make proxies?
    Making the ProRes-proxies directly from the P2-material seems more logical, or isn't it?
    DVCPRO HD P2 cannot come in as anything else, so the offline/online workflow for them doesn't work unless you import it all, then transcode to a smaller format...but then need to keep the originals online to relink to when you are done. If you wanted to do an offline/online, you needed to research this better...or test it...before you shot your hundreds of hours only to find that what you want to do won't work.
    Shane

  • PDE-PLI038 Cannot open file for use as a PL/SQL library

    Hi,
    We are using oracle 12 .0.4 on RHAS 4
    I am trying to compile a .pll file with the following code
    frmcmp_batch module=$AP_TOP/patch/115/sql/apacrndb.pls userid=apps/apps module_type=LIBRARY;
    but it's returning the error
    PDE-PLI038 Cannot open file for use as a PL/SQL library
    Thanks
    Umair

    Umair,
    What is the issue about?
    Usually, it would be required to run the pls files to recreate certain objects (mainly packages) in the database, and you run the pls file from SQL*Plus as apps/applsys user.
    Please update the SR and confirm with Oracle Support what the action plan you need to follow to resolve the issue.
    Regards,
    Hussein

  • Why can't I find and open a text layer on photo (psd file) for editing using an iMac?

    When I open Photoshop Elements 10 Editor to edit a text layer on a 511KB 412x292 psd photo the text layer is not shown.  How do I open the text layer?  How do I edit the text layer?  How do I save the finished work product?  The background layer is locked.  I can't unlock it.  Do I have to unlock first or do what?  I have tried any number of approaches none of which open the text layer for editing.  I would greatly appreciate help in resolving this issue. 

    How do you know there is a text layer? All the layers should be shown in the layers panel.
    The background layer is always partially locked and that has no effect on editing. You can ignore that.
    Would this be a comp layer or part of a layer group created in full Photoshop, by any chance?

  • "Error 7 occurred at Invoke Node..." when attempting to open .vi for editing

    I am attempting to open a vi for editing, and instead the vi is attempting to execute.  I get the error:
     "Error 7 occurred at Invoke Node in BuildTargetBuildSpecification.vi->BuildXFS.vi"    
    Possible reason(s):   LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    Method Name: Project: Open
    When I close the Error Message dialog, Labview terminates.

    Hi R.Jay,
    Error 7 generally occurs when trying to create an executable when there is an extra instance of a top-level vi.  You may need to remove the file as a support file (but leave it as the top level vi).
    Are you trying to run an executable that has already been created?  Unless you have already built an executable, it should not automatically run when opened.  Also, was it built in a previous version of LabVIEW?  Sometimes this error can be seen when you upgrade to a newer version without compiling.
    Regards,
    Lauren
    Applications Engineering
    National Instruments

Maybe you are looking for

  • Loop Browser

    I just bought a new 2.8 24" iMac. When I turned it on, I transfered all my files from my old iMac G5, including GarageBand, Logic Studio, and all Jam packs (which I paid for) to the new iMac. Unfortunately most loops are not active in the browser. Th

  • Error on running a windows xp based .VI in windows 7

    Hello; I  am a new user of labview. I want to use a .VI that properly works in windows xp. But when I run this .VI in windows 7, this error at port 32 is displayed. Error: -4850 Occured at In port 32.Vi This .VI is a driver for a hardware that contro

  • ITunes no longer supported on PPC MACS!!

    This can't be right?? Apple is leaving all it's long time supporters using PPC macs out in the cold for future updates to iTunes? But they are still supporting Windows XP and up??  Please tell me this is just an oversight and a fix is coming. For tho

  • Price recaliculation in service specification

    Hi Work order  has created with four line items. In this work order 3rd, 4th line item consists around 240 service lines. User has entered discount for all services at header level. After entering user has selected service specification >>prices >> r

  • Unzipping not Unzipping

    I have tried several times to unzip some movie files, it seems that my system is intent on telling me that it can't do it due to 'Error - 1' Sure the files can't be too big? But it happily unzips smaller files. Any ideas???? Thanks Matthew