Bringing lime imac files into the modern world

My husband has an old lime imac DV. I'd like to make an exact clone (copy) of his disc so he can transfer it to something more modern ;-D Is there any way I can slave it to a powerbook and copy the disc. When the imac is the startup disc, all the prefs won't copy (in use), so it would have to be a slave. I use Carbon Copy Cloner, but he is running OS 9.4 on the imac and I don't know of any comparable app for that. Any ideas?
Thanks.
Sass

How about putting the iMac into FireWire Target Disk mode, and accessing its disk with a more modern Mac?
HT1661- How to use FireWire target disk mode
Or if both Macs are on an Ethernet Network, (e.g., both are using a shared Broadband Internet connection) use File Sharing. You will probably need the IP Addresses of the Macs to initiate Sharing. If your older Mac were running Mac OS Older than 9, the setup becomes a little more complicated, but still very manageable.

Similar Messages

  • When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    When I try to import files from iMac HDD into the event, it fails. FCPX dosn't see this files for import. Files are *.m2ts and *.mpg. Should I buy plagin Quicktime component MPEG-2 to resolve a problem?

    no you should transcode those files into an format that os suitable for editing. Like proRez. Although you might need some Flip4Mac or perian or something to do the conversion.
    adam

  • I exported my iBook and got the .ibooks file on my Desktop(iMac Retina 5K), I tried to put the file into the iBooks application but I get a message that says "The file "______.ibooks" couldn't opened because it isn't in the correct format.

    I exported my iBook and got the .ibooks file on my Desktop(iMac Retina 5K), I tried to put the file into the iBooks application but I get a message that says "The file "______.ibooks" couldn't opened because it isn't in the correct format.  I took the same file and transferred it in my MacBook Air and was able to put it in the  iBooks application no problem, the MacBook Air runs OS X v 10.9.5
    Please advise as to Why it would work on an older OS X version as oppose to the newer OS X Yosemite
    Thanks
    JP

    Thanks Lyra,
    I may be doing something wrong because looking at the "Purchased" in iBooks I only see all the books that I actually purchased, none of the iBooks that I created in iBooks Author shows up. I can re-download all the iBooks I've purchased and some in iCouds, but the ones I've created  in iBooks Author are no where to be found.
    Any help is much appreciated,
    Best Regards,
    JP

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • I would like to bring layered Illustrator files into Muse

    I would like to bring layered Illustrator files into Muse.  It would be great to use them for buttons like the photoshop layered button options.
    It would be even better if it just converted the vectors to .SVG files auto-magically, when published.

    Importing .ai files in Muse and having Muse export them as .svg is imperative for future proof workflow.
    But in order for that to happen Muse would have to have some vector capabilities in itself and that means only one thing: rewrite of the whole app, most likely ditching Air framework.
    In other words ain't gonna happen.
    When you think about it really it's the Illustrator or Indesign that should do what Muse is doing right now. There is no reason for Muse to exist but they dont want to confuse the users I guess. Illustrator should apply native CSS effects by default enabled when you work on vectors such as drop shadow, round corners, blur, etc. and have it generate .css

  • Nothing shows up on my Desktop. I can put a file into the Desktop folder but it will not appear on the DTop. The HarDrive is not on the DTop either.

    Nothing appears on my Desktop. The Finder seems to work, so I can place a file into the DTop folder, but nothing appears on the DTop, not even the HarDrive.

    You can temporarily hide the crap on your desktop. Edit the CreateDesktop key in com.apple.finder:
    defaults write com.apple.finder CreateDesktop -bool false && killall Finder
    Then, to get my clutter back:
    defaults write com.apple.finder CreateDesktop -bool true && killall Finder

  • HT2518 How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    Hi, did you try iTunes>File>Import?

  • I got a new Macbook pro in March and transferred all of my old files into the new macbook from my old one. But ever since then, my iPhoto just does not open up. It says 'error' every time I try to open it, but I am still able to attach the iPhotos saved

    I got a new Macbook pro in March and transferred all of my old files into the new macbook from my old one. But ever since then, my iPhoto just does not open up. It says 'error' every time I try to open it, but I am still able to attach the iPhotos saved to emails. Help! How do I get my iPhoto back?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • Can I include raw files into the installer folder with LV application builder?

    Hello,
    I have created a batch file that will run at the end of the installer, which will copy over some raw configuration files into the source destination so that the configuration files can be customized for each end user without rebuilding the installer with application builder. I also have an autorun.inf so the installer will automatically run when the user installs the CD.  
    However I would like to have some default configuration files and an autorun.inf file that will be automatically added to the installer "volume" folder using the application builder. 
    However I don't see a way to include raw files in the "volume" folder. It appears all source files in the application builder are embedded into the binary files.
    Please let me know if this is possible with the current application builder.
    Regards,
    Russell
    Engineering Team Leader
    G Systems, www.gsystems.com
    Certified LabVIEW Architect
    Certified Professional Instructor

    Russel,
    i think this link might give you some good hints....
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do I add a jar file into the build path of the compiler?

    Hey,
    I'm trying to import a jar file into the build path of the compilation process, but it does not find the packages or the classes that are in it.
    I think I don't add it right...
              ArrayList<String> options=new ArrayList<String>();
              options.add("-d");
              options.add(targetDirectory);
              options.add("-classpath");
              for(String str:includeDirectory)
                   options.add(str);
              if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call());
                    ....and I've tried this way:
         public void setTargetDirectory(String targetDirectory) {
              this.targetDirectory = "-d " + targetDirectory;
         private void compile(Iterable<? extends JavaFileObject> compilationUnits) throws Exception {
              ArrayList<String> options = new ArrayList<String>();
              options.add(targetDirectory);
              String classPath="-cp ";// tried this also with "-classpath"
              for (String str : includeDirectory)
                   classPath+=str+":";
              options.add(classPath);
         if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call())
              // throw new Exception("Compilation Error");
         }Thanks in advance,
    Adam.
    Edited by: Adam-Z. on Feb 24, 2010 5:41 AM
    Edited by: Adam-Z. on Feb 24, 2010 5:42 AM

    Thank you for your reply,
    Q: Are there .class files in that directory in that jar file? (the compiler doesn't ( can't )) look for directories, it can just look for specific files , and scan to get a list of all files matching certain criteria. So if there are no class files, it will say the package doesn't exist, even if there is a directory, possibly containing other files.yes there are class files in the jar, the tree structure:
    j2MeDataChunkGenerator_Plugin\(lots of class files)
    META-INF\manifest.mf
    and thats it.
    , your code will only work on windows because other platforms use a different path separator. You should use java.io.File.pathSeparator not explicit ';" when building your classpath. (this is unrelated to your problem, but you should correct it)will do, thanks.
    Q: Is that error in your post formatted by your own diagnostics? (we could possibly help you better if we didn't have to guess!!)I would not post my own error code, this text is generated by the compiler diagnostic.
    {code}
         System.err.println(" Error details: " + diagnostic.getMessage(null));
    {code}
    Q: Is line 3 of ImageCroper_Editor.java (sic) an import statement? (we could possibly help you better if we didn't have to guess!!)it is an import error... didn't the error message stated that it is an import problem? wired, I'm sure before it did. anyway it is an import error.
    Also you don't show us what the variable includeDirectory is in terms of type, and contents, that might be helpful. (we could possibly help you better if we didn't have to guess!!)It has only one String object: "D:\%Important Documents\WorkSpaces\PacMan\ApplicationManager\Plug-in\Data Chunk Designer.jar"
    the last file on the classpath list.
    Q: Have you proven this? that i did post, in this long line of text.
    Q: Is the compiler finding other classes (in other packages) in that same jar file?No. all the class files are in the jar, they all have entries that start with "j2MeDataChunkGenerator_Plugin\*.class", and since I get 47 errors I guess it does not load any other class.
    thank you for you comments, the problem with having these errors, is that I can't even get a piece of information where this error is coming from, only that it is an import loading error package not found, what does that mean? that the jar was not loaded in compilation(no error about this), that the jar is corrupted(no error about this), that the path is incorrect(it is correct I made sure), that there is no such package in the jar(There is), that the compiler does not load the package(does it even do that?), really I can't even guess why this happens, I've been at this on and of all day today, really annoying.
    Thanks,
    Adam.

  • How to call a java method so I can pass a file into the method

    I want to pass a file into a java method method from the main method. Can anyone give me some help as to how I pass the file into the method - do I pass the file name ? are there any special points I need to put in the methods signature etc ?
    FileReader file = new FileReader("Scores");
    BufferedReader infile = new BufferedReader(file);
    Where am I supposed to put the above text - in the main method or the one I want to pass the file into to?
    Thanks

    It's a matter of personal preference really. I would encapsulate all of the file-parsing logic in a separate class that implements an interface so that if in the future you want to start taking the integers from another source, e.g. a db, you wouldn't need to drastically alter your main application code. Probably something like this, (with an assumption that the numbers are delimited by a comma and a realisation that my file-handling routine sucks):
    public class MyApp{
    public static void main(String[] args){
    IntegerGather g = new FileIntegerGatherer();
    Integer[] result = g.getIntegers(args[0]);
    public interface IntegerGatherer{
    public Integer[] getIntegers(String location);
    import java.io.*;
    public class FileIntegerGatherer implements IntegerGatherer{
    public Integer[] getIntegers(String location){
    FileInputStream fs=null;
    try{
    File f = new File(location);
    fs = new FileInputStream(f);
    byte[] in = new byte[1024];
    StringBuffer sb = new StringBuffer();
    while((fs.read(in))!=-1){
    sb.append(new String(in));
    StringTokenizer st = new StringTokenizer(sb.toString(),",");
    Integer[] result = new Integer[st.countTokens()];
    int count = 0;
    while(st.hasMoreTokens()){
    result[count]=Integer.valueOf(st.nextToken());
    count++;
    catch(IOException e){
    //something sensible here
    finally{
    if(fs!=null){
    try{
    fs.close();
    catch(IOException f){
    return result;
    Once compiled you could invoke it as java MyApp c:\myInts.txt
    Sorry if there are typos in there, I don't have an ide open ;->

  • Error coming while deploying portal EAR file into the weblogic Portal 8.1..

    HI Guys,
    When I deploy the latest PORTAL EAR file into the BEA portal environment we
    receive a number of these errors:
    ####<Feb 27, 2008 4:36:14 PM PST> <Warning> <netuix> <dev147> <portalName>
    <ExecuteThread: '0' for queue: 'weblogic.kernel.System'> <<WLS Kernel>>
    <BEA-423171> <
    java.lang.Throwable: New portlet file
    [portlet/portletname.portlet] and existing portlet
    file null have the same definition label
    Lebel Name. Will not create a definition for
    portlet file [portlet/portletname.portlet].
    at
    com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
    reatePortletDefinitionInternal(PortletDefinitionDelegate.java:1442)
    at
    com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionDelegate.c
    reatePortletDefinition(PortletDefinitionDelegate.java:906)
    at
    com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManagerImp
    l.createPortletDefinition(PortletDefinitionManagerImpl.java:520)
    at
    com.bea.netuix.application.manager.persistence.jdbc.PortletDefinitionManager_41
    0kn4_EOImpl.createPortletDefinition
    (PortletDefinitionManager_410kn4_EOImpl.java:476)
    at
    com.bea.netuix.servlets.repository.PortletFilePersistenceManager.create
    (PortletFilePersistenceManager.java:189)
    at
    com.bea.netuix.servlets.repository.PortletFilePersistenceManager.createUpdatePo
    rtletDefinitions(PortletFilePersistenceManager.java:304)
    at com.bea.netuix.servlets.repository.PortletFilePersistenceManager.sync
    (PortletFilePersistenceManager.java:609)
    at
    com.bea.netuix.servlets.repository.AbstractFilePersistenceManager$Sync.run
    (AbstractFilePersistenceManager.java:187)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs
    (AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs
    (SecurityManager.java:147)
    at
    com.bea.netuix.servlets.repository.AbstractFilePersistenceManager.startup
    (AbstractFilePersistenceManager.java:86)
    at com.bea.netuix.servlets.manager.PortalServlet.initFilePoller
    (PortalServlet.java:511)
    at com.bea.netuix.servlets.manager.PortalServlet.init
    (PortalServlet.java:242)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run
    (ServletStubImpl.java:1099)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs
    (AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs
    (SecurityManager.java:121)
    at weblogic.servlet.internal.ServletStubImpl.createServlet
    (ServletStubImpl.java:975)
    at weblogic.servlet.internal.ServletStubImpl.createInstances
    (ServletStubImpl.java:954)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet
    (ServletStubImpl.java:893)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet
    (WebAppServletContext.java:3456)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets
    (WebAppServletContext.java:3413)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets
    (WebAppServletContext.java:3399)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources
    (WebAppServletContext.java:3382)
    at weblogic.servlet.internal.WebAppServletContext.setStarted
    (WebAppServletContext.java:6262)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)
    at weblogic.j2ee.J2EEApplicationContainer.start
    (J2EEApplicationContainer.java:2181)
    at weblogic.j2ee.J2EEApplicationContainer.activate
    (J2EEApplicationContainer.java:2222)
    at
    weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateCo
    ntainer(SlaveDeployer.java:2521)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit
    (SlaveDeployer.java:2439)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit
    (SlaveDeployer.java:2156)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit
    (SlaveDeployer.java:2255)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare
    (SlaveDeployer.java:2150)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare
    (SlaveDeployer.java:2402)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask
    (SlaveDeployer.java:884)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta
    (SlaveDeployer.java:592)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate
    (SlaveDeployer.java:501)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute
    (SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Thanks in advance...
    Regards,
    Sandeep K

    Before deploying the app, you could check database table PF_PORTLET_DEFINITION for any entries there which might conflict with yours.
    --Stefan                                                                                                                                                                                                                                                                                                   

  • Saving a .pdf file into the network shared drive from Outlook 2013

    Hello sirs,
    I have one client that having the file saving issue into the shared drive from outlook 2013.
    I have isolated the network portion and confirmed that there is nothing to do with the network. They have 1 host server which has 2 VMs inside (DC & FS). Whenever they want to save .pdf file into the shared drive, "Saving" message box popped up and showed for about 1 min to complete the file saving. I have tested with .xlsx & .dcsx but no error saving those files. only for this particular extension that facing this slowness problem. It has been on going for a month already and I couldn't figure it out what could be the issue.
    Please if anyone experienced this issue, I would really appreciate your suggestions & guidance.
    Thank you.
    This topic first appeared in the Spiceworks Community

    I have a script that I am trying to cobble together, but I am stuck at attempting to execute an SQL query against and ADO connection. My code is as follows:Powershell $FQDNUpper = $Computer.ToUpper() + ".domain.dn1.dn2" $FQDNLower = $Computer.ToLower() + ".domain.dn1.dn2" $shell = New-Object -ComObject "Wscript.Shell" # for use later in script $cnn = New-Object -ComObject "ADODB.Connection" $cnn.ConnectionString = "Connection_String" $cnn.Open() $queryUpper = "SELECT CAST(ID AS nvarchar(50)) ID FROM Machine WHERE Name=$FQDNUpper AND Role = 0" $rs = $cnn.Execute($queryUpper,' ',1) #If statement that will qualify if $FQDNUpper returned anything else try $FQDNLowerWhen executing the code I receive an error:
    PowershellArgument: '2' should be a System.Management.Automation.PSReference. Use [ref].At line:9 char:5+ $rs = $cnn.Execute(...

  • I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0.  The

    I'm running TOMCAT locally on my PC (running Windows NT).
    I'm trying to invoke EXCEL or POWERPOINT file into the browser IE 6.0.
    The output is coming out all scrambled (almost like ASCII code or something),
    where it seems like the applications are not firing up.
    However, an MSWord file shows up fine. So I go to the WEB.XML file in the TOMCAT\CONF
    folder and notice that a MIME type has been set up for MSWord and not the other two.
    I set one up for EXCEL and POWERPOINT but the XLS or PPT files still don't work.
    So, just for kicks, I comment out the MSWord MIME definition but the MSWord file still worked!!!
    I can't figure out what's going on here.
    I'm stopping and starting the TOMCAT service each time I make changes to the WEB.XML file,
    but it seems like none of the changes are taking affect.
    I install all the viewers for MS-Word, ppt, and excell.
    But in Netscape it works fine.

    To support various file formats in IE browser while using window.open like .doc, .docx, .ppt, .pptx, .xls, xlsx etc.,
    The following code can also be used to force any format to get launch outside IE
    For these first configure a filter in web.xml and then include the filter class in given path
    <filter>
    <filter-name>MimeFilter</filter-name>
    <filter-class>com.srk.MimeFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.xls</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.xlsx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.ppt</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.doc</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.docx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>MimeFilter</filter-name>
    <url-pattern>*.pptx</url-pattern>
    </filter-mapping>
    and then include the filter class in the declared path
    import java.io.*;
    import java.util.logging.*;
    import javax.servlet.*;
    import javax.servlet.Filter;
    import javax.servlet.http.*;
    public class MimeFilter implements Filter {
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    HttpServletResponse httpResp = (HttpServletResponse) response;
    HttpServletRequest httpReq = (HttpServletRequest) request;
    String fileUrl = httpReq.getRequestURI();
    if(fileUrl.lastIndexOf(".xls")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/vnd.ms-excel");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    if(fileUrl.lastIndexOf(".ppt")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/powerpoint");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    if(fileUrl.lastIndexOf(".doc")!=-1)
    fileUrl = fileUrl.substring(fileUrl.lastIndexOf("/")+1);
    httpResp.setContentType("application/msword");
    httpResp.setHeader("Content-disposition", "attachment; filename="+fileUrl);
    chain.doFilter(request, response);
    public boolean isLoggable(LogRecord record) {
    return false;
    public void destroy() {
    public void init(FilterConfig arg0) throws ServletException {
    Please let me know your feedback.

  • Upload an XML file into the Internal table

    Hi Guys,
    I want to know, how to upload an xml file into the Internal table through ABAP programming

    you just wanted to load the xml file into internal table (as a table of binary strings)or load the xml data mapped to itab row columns
    for the first one you can simply use gui_upload
    and for the second one you need to load the xml file using gui_upload and use XLST program to transform into an itab
    Regards
    Raja

Maybe you are looking for