Help with copying contents of file to link list please

Hi,
Below is a snippet of code I am playing with. As you can see I have created a LinkList, I now need to copy the contents of a csv file in to that list. The file is several lines long and I need each line in the list.
I know how to add to the list manually i.e.,
list.add("First entry in list");
Could someone help me out with this please.
Many thanks.
(***CODE***)
private LinkedList list = new LinkedList();
     public LinkTest()
          // ** List content START **
          // Open the file today.csv
          File inFile = new File("C:\\today.csv");
     // Create a file stream, wrapping the file
     FileReader fileReader = new FileReader(inFile);
     // Create a second wrapper,
BufferedReader bufReader = new BufferedReader(fileReader);
     // Read in the first line...
     String s;
     s = bufReader.readLine();
     list.add(s);
     StringTokenizer st = new StringTokenizer(s);
     while (st.hasMoreTokens())
System.out.println(st.nextToken());
     // ** List content END **
     

I looked at your code and I thought, what's the question for, it's already adding lines to the list. And then I looked again and had the same thought. The third time I looked I noticed you didn't code the loop that read all the lines from the file. Silly me, I thought your question had something to do with linked lists.
Anyway, to answer your real question, which is how do you read all the lines from a text file:while ((s = bufReader.readLine()) != null) {
  // do something with the String s here
  // such as adding it to a linked list
}

Similar Messages

  • Help with converting a Nero file

    I have previously converted a dvd insert designed with Nero into a pdf using adobe acrobat in order to send to someone else.  When I tried to do the same thing today with a new Nero designed insert the conversion wouldn't work.  The message said adobe didn't support the program that created the file.  Any ideas?

    thanks for your response.
    When I create a dvd insert or cd label etc using Nero the file extension is nct - nero cover template.  The printer wants the file as a pdf as he can't open Nero files.  I have version 9.3 of acrobat.
    Date: Mon, 18 Jan 2010 21:43:47 -0700
    From: [email protected]
    To: [email protected]
    Subject: help with converting a Nero file
    Nero is simply a CD/DVD burning application and should have no effect on the type of files that will eventually be on the CD/DVD.
    What type of files are you trying to convert and exactly how are you trying to convert them? Plus, it would help to know the version of Acrobat you are using.
    >

  • I had to put my computer by together without migration or time machine I NEED help with order of the files?

    I had to put my computer by together without migration or time machine I NEED help with order of the files?

    Hi, where are these other files exactly?

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • I need help with copying files in java?

    hi, i use the following code sample to copy a directory structure and its files.
    It copy's the directory-structure, but all the files in it have 0kb as size. except one file.
    Here's the code:
    public static void copyDir(String source, String target)
    String [] listing = new String [0];
    FileReader in = null;
    FileWriter out = null;
    String sourcePath = source;
    String targetPath = target;
    // Maakt directory onder target directory
    File f = new File(targetPath);
    f.mkdir();
    // Maakt filelist van bestanden in source-directory
    f = new File(sourcePath);
    listing = f.list();
    for(int i = 0; i < listing.length; i++)
    f = new File(sourcePath + listing);
    if(f.isDirectory())
    copyDir(source + listing[i] + File.separatorChar,
    target + listing[i] + File.separatorChar);
    else
    try
    in = new FileReader(sourcePath + listing[i]);
    out = new FileWriter(targetPath + listing[i]);
    int t;
    while (-1 != (t = in.read()))
    out.write(t);
    try { Thread.sleep(200); } catch (InterruptedException e) { }
    System.out.println("Copied: " + sourcePath + listing[i]);
    catch (Exception e)
    System.out.println(e);

    Here is a quick copy program that works. You'll need to deal with the exception instead of just throwing it though.
    import java.io.*;
    public class Copy
      private static void copy(String source, String target) throws IOException
        // Create directory
        File file=new File(target);
        file.mkdirs();
        // Get contents
        file=new File(source);
        File[] files=file.listFiles();
        // Copy files
        int length;
        byte[] buffer=new byte[1024];
        for(int i=0; i<files.length; i++)
          String destination=target+File.separator+files[ i ].getName();
          if(files[ i ].isDirectory())
            copy(files[ i ].getPath(), destination);
          else
            FileInputStream in=new FileInputStream(files[ i ]);
            FileOutputStream out=new FileOutputStream(destination);
            while((length=in.read(buffer))!=-1)
              out.write(buffer, 0, length);
            in.close();
            out.close();
      public static void main(String[] args) throws IOException
        copy(args[0], args[1]);
    }[\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help with copying files onto external drive

    I need help! Trying to copy downloaded movie files from Vuze (which have downloaded successfully) and copy onto external hard drive to view them but it wont let me copy over to the external device. Any ideas how to fix this please???

    Can you explain the steps you used, and the error message (or symptom), that says the copy did not work? 

  • Help with quality of exported files

    The problem: I'm trying to get a good quality, 34 minute movie onto a DVD with chapter markers separating individual short films. This is supposed to be a compilation of 8 family movies, in addition to an introduction and credits at the end. Four movies are old movies made in iMovie and are .m4v files. Four were made in FCE earlier this year. I linked everything together in a Master Sequence, putting pauses in between each with some livetype text files to introduce each video. The m4v files were imported and placed in the master sequence. The others are nested sequences. I put chapter markers at the beginning of each section. My intention was to export this one master sequence as a quick time movie, then put it into iDVD.
    It worked, but the quality was horrible! Everything became grainy, even the movies I had previously created in FCE. This was very disappointing. So I expertimented with a few things, and here’s what I found.
    When I exported a quicktime movie, the quality degraded. It became grainy. Also, it changed the aspect ratio and stretches everything horizontally, as if to take a standard size screen and stretch it to a widescreen. It did this even with the original movies I had made in FCE. I don’t like building self contained movies using this mode because the file sizes are too big, so when I export I tend to use quick time conversion. In this case, I was hoping a non-self contained movie would merely point to all the original content and not add compression artifacts (or something like that). It turns out it made it worse.
    When I tried to export a quicktime conversion, 640x480 VGA, best quality, H.264, the machine couldn’t do it. It ran for an hour or so and then crashed. Twice. That is for the entire movie. When I export individual clips (3-6 minutes) it works. The quality is good for movies made in FCE, not as good for imported m4v movies made long ago in iMovie, but better than what I get exporting quicktime movie files, either self contained or not. This is surprising to me, because I was expecting the export quick time movie command to produce the best quality. Also, I’m concerned that if I was able to create this, iDVD would not see any chapter markers anyway.
    So there is a problem either way. Experimenting has led me to discover several questions/issues which need answering:
    Issue #1: Why can’t I get a quick time movie of the same quality as what I see on the canvas, using the quick time movie export command? On a side note, the user's manual says something about a settings pop up menu where you can deselect the "recompress all frames" option. I can't seem to find this, and was thinking maybe that would help.
    Issue#2: Why do m4v files which are very high quality in iTunes suddenly become poor quality when imported into a sequence? Seems to be an import problem, because the movies are already grainy when they’re on the canvas. I thought about making XML files and importing them that way, but the original project files in iMovie are gone.
    Issue #3: Why do I end up with a stretched picture if I export quick time movies and there are mixed aspect ratio contents in the sequence (the m4v files are widescreen, the others are not)? More important, how to I get FCE to not do this?
    Issue #4: When I export movies using quick time movie (not conversion), the grainy movies actually look better when played in VLC. They also look good when opened with FCE. How can I get that kind of quality in quick time, or at least in iDVD? Perhaps that would solve my problem.
    Thanks for any help you can provide.
    E

    Thanks for the response. I’m not fluent with codecs or video compression, so this project quickly became more trouble than I expected.
    It turns out the nested sequences are not H.264, the compression field is blank for the nested sequences. I double checked and the other properties are correct. Sorry about that. The other movies, though, (ones built in iMovie for iTunes) are H.264.
    These four . m4v movies are in 960x540 and 480 x 272 because of the way they were exported in iMovie (Share -> Export Movie opens a menu with four sizes: Tiny 176 x 144, Mobile 480 x 272, Medium 640 x 360, and Large 960 x 540).
    I just imported the final products (what was exported from iMovie) as clips into FCE. Sounds like I should not be doing that. The original media is on my computer, but not the iMovie project files, and for what I’m trying to do it’s just not worth the time to rebuild the movies in FCE.
    Bottom Line: Here’s the current status of the project:
    All eight of the movies, by themselves, play well in quicktime. I can put all of them on a DVD, and they still play ok. I wanted to string them all together in one sequence, with some transitions in between (creating a “Play All” option on the DVD). That’s why I nested the sequences, and imported the movies made from iMovie, than added chapter markers. Unfortunately, putting these different types of media together and asking the computer to make one sequence is creating a mess. So I’m sticking with Plan B and putting the movies on a DVD without trying to merge them into a single track.
    A few follow up questions…
    Out of curiosity, when you say “convert everything to QuickTime DV NTSC 720x480 at 29.97fps with 48k audio,” do you mean the original media (all of the bits of video and stills that came from the camera) or the edited sequences I’m currently working with? As a lesson learned, should I be changing properties of clips before importing them to FCE, so the source material has consistent aspect ratios?
    The still images, though they are huge, show up with much better quality than the movies (which is expected, and I’m ok with). So I get a product which includes both video and still images, where the images are very sharp and the movie portions are a bit grainy (because they were taken on a small digital camera). If I change the size on the stills, won’t that just bring the still image quality down?
    I’m still baffled at why using the export quick time movie command makes a video of lower quality than when using quick time conversion (in other cases as well, not just this project). In every case, I’ve got digital pictures and movies from my digital camera, and some text in FCE or LiveType files on top of that, usually with additional audio tracks.

  • Help with Spry Content Slideshow

    Hi,  I like the new widget browser and how easy it makes adding widgets in dreamweaver, Top marks to the developers.
    I have been having a play around with the spry content slideshow, with the possibility of using it on a small business website I am working on.  I have managed to alter the width and height of the widget and everything looks and works great.  I was however wondering how I would go about adding say a 250w x 80h logo above the banner on each slide, which would also require that the banner and story be lowered slightly.
    Thanks in advance for any help anyone can offer with this.

    I was just playing with Spry Content Slideshow earlier, and conveniently still have it open, so I'll give this one a shot, too. It looks like you've got two options embed a "logo bar" of some sort inside the the Slideshow, or (the easier method) wrap the Slideshow in another container. I just used a single banner image.
    I gave embedding a try and placed a <div class="logo"><img/></div> before the first article, but the JavaScript overrode this, and added a new article. Moving this construct inside the first article created a fairly nice banner, keeping the rounded corners at the top. The construct, however, will need to be added to each article. I didn't like that too much, but it's just a personal preference.
    The easy way (?) would be a wrapper, such as <div class="logo"><img /><div id="theSlideshow">...</div></div>, then style the ".logo" class as needed, maybe even copying portions of the style from ".WLBSlideShow" in "wanderlust-brown.css" for the rounded corners, and maybe giving ".logo" additional "padding-bottom" and ".WLBSlideShow" a negative "margin-top", to overlap the bottom of the logo area. Localized CSS modifications (placed after the linked CSS) might be something like the following?
    .logo { background-color: #491e16; width:700px; border: solid 1px #39312e; -webkit-border-radius: 7px; background-color: #491e16; -moz-box-shadow: 5px 5px 10px gray; -webkit-box-shadow: 5px 5px 10px gray; box-shadow: 5px 5px 10px gray; } .logo img { width:100%; height:100px; padding-bottom:40px; } .WLBSlideShow { margin-top:-60px; margin-left:-1px; } 
    If you'd like to see the first method, I can put that up, but the HTML is a bit repetitive.
    Hope this helps. If not you maybe someone!
    Richard

  • Help with Business Contents 7.0

    hello everyone,i need help with this question if i want to install a business content cube ok but i want bi 7.0 way how can i do that? either let me know or point me to a link. i tried to search by different keywords but i couldnot find anything. thanks.

    Hello,
    I am New to BI myself, please correct me if im wrong, but i thought that after you replicate metadata on the sap system it will prompt you to pick if you want to create it as 7.0 RSDS, or keep it as 3.x isfs, also an option to creaate one of each.  Please let me know if this helped out so I know if im on the right track.
    Thanks,
    Niraj

  • Help with Adobe Content

    I have installed Adobe Premiere by purchasing it and downloading it from Adobe's web site.  I also downloaded all the content the same way, but everytime I start or go back to a project i get this message, "A reduced set of content (instant movie, themes, title and menu templates, etc.) has been installed".  And it ask if I want to install the full content by inserting DVD or down loading.  I have downloaded this , but how do I know if has fully installed or the content?  Do I just click do not show me this again?  I think I have it completely installed, but I am not 100% sure.  Can anyone help.  I am just trying to create some video slide showes, I am not an expeirce programmer.

    I experienced the same thing. I have been using the program only two or three weeks and have been having problems with Instantmovies and themes rendering with missing content, such as intro videos that show up in the thumbnail preview animations. That problem is still unsolved and Adobe tech support says that's how the videos are supposed to render. Anyway, I also had the content failing to stay installed. I would install the content, close the program, reload it and the content would be there an usable. I could also close down the computer, reboot, and reload Premiere Elements and the content would be installed. So the installation was stable. However, when I would leave the computer on for a few hours and return and reload Premiere Elements, the content would not be installed and I'd get a message asking if I wanted to download and install it!
    The files would be still there in their folders but the installation had vanished within the program.
    Since no one had used anything on the computer while it was sitting idle, I wondered what was going on. I realized that the only thing happening in the computer was that my computer maintenance program, System Mechanic Professional, was scanning and mistakenly identifying the registry entries for the content installation as errors and automatically deleting them. I turned off the automatic error correction, then when it reported errors after reinstalling the content once again, I used System Mechanic's option of seeing what errors it found and choosing to have it ignore that registry entry in future scans. After doing that, I get no more uninstallations of the content.
    Do you have a computer maintenance program running in the background?
    I thought by completely uninstalling Premiere Elements 10 and reinstalling it and the content, new registry entries (to replace those that had been deleted) would be entered and my current problem would be solved, too, but it hasn't worked.
    So I hope this helps you. And if anyone has any way to help with my problem, I have posted a separate thread about it a day or two ago. Please help!

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Help with importing PC photo files and then organizing it all in iPhoto

    Hi everyone,
    I'm relatively new to mac but I am just loving my purchase! I need some serious help with getting all of my photos organized though so I can easily find it for editing in iMovie.
    I've accumulated over 10,000 photos stored on my PC which I've since transferred over to my LaCie external drive for my MacBook Pro via a wireless network connecting my PC & Mac. Some of these I've put onto my laptop internal hard drive and those I've imported into the iPhoto library. However, do I need to move the rest of the photos from my LaCie drive into my internal hard drive to import the photos into iPhoto, or can I tell iPhoto to look for the files in the external drive. If so, how do I do that? I know I'll then have to create albums in order to sort them, which I know how to do. Is there any fast way to do it by date? I had it sorted into different file folders by month & year so I could easily find them on my PC and would like to do the same using albums.
    I am quickly running out of hard drive space on my laptop which is why I've put most of my photos on the external drive. Once I organize my existing collection, I would like to be able to import new pictures and have it stored on my external drive, not my internal drive. How do I do that?
    Any other tips on organizing a massive photo library would be greatly appreciated.
    Thanks,
    Karen

    Karen,
    Is there any fast way to do it by date? I had it sorted into different file folders by month & year so I could easily find them on my PC and would like to do the same using albums.
    This is where you get to enjoy the power of iPhoto's database. You can change the Sort in the View menu. Check out View > Sort Photos > by Date.
    Or, click the little calendar icon near the lower left corner of the iPhoto window. This allows you to filter the library by year, month, week, or date. You can Command-click to add another date to your filter. You can Option-click to choose a recurring date: you get that month or date for all years in your library. [Want to see your kid's birthday for every year? Just Option-Click that date. Cool.]
    The keywords filter is similar. There is a preference setting where you choose to filter based on ALL keywords chosen (where by choosing more keywords you narrow your field) or ANY keyword (where the more keywords you choose, the larger your field will be). Click on a keyword to filter your library by all photos containing that keyword. Use Command-click to add more keywords to the filter. A difference is that Option-click will eliminate photos with that keyword from your filter. [You can find all pictures of your kids with your dog but NOT at Halloween.]
    You can create Smart Albums to combine the use of dates, keywords, ratings, titles, comments and more. The more information you enter into the database, the more powerful the tools become.
    When your task of importing is complete and you are ready to play with iPhoto's features it may help to look at the iPhoto multimedia tutorial. Better organized than trying to read through the Help files, it can help you get acquainted with many of iPhoto's features.
    Have fun.

  • Need help with query from .csv file

    I am trying to import a csv file with only 1 column in it.
    The column will only contain a 9 digit ID number. I want to read
    the file then use the contents to query a table to get the names
    and other information and display it. Here is what I have so far:
    <cffile action="read" file="#form.FiletoUpload#"
    variable="csvfile">
    <cfloop index="index" list="#csvfile#">
    <cfquery name="massimport" datasource="data1">
    SELECT * FROM IDTable
    WHERE CardNumber = ('#csvfile#')
    </cfquery>
    </cfloop>
    <cfoutput>#Name# #ID# #Site#</cfoutput>
    I get no errors but I am not getting any results. Just a
    blank page. Does anyone know how to query directly from a csv
    import? Thanks.

    You need to convert your file to a list somehow. Not sure if
    this is the most efficient way but, you can use the cfhttp tag to
    produce a query. Then your where clause becomes,
    where cardnumber in (#quotedvaluelist(query.column)#)
    and you won't need a loop.

  • Help with House keeping Archivelog files....!!

    Hi,
    I am trying to develop a script for housekeeping archive log files. The archives are written to a local disk, then moved to a different location, before being backed up to a tape. The purpose of the script is to identify and move the archive logs to a different location.
    Following is the code for the script:
    ORACLE_SID=BSCSDEV1
    ORACLE_BASE=/oracle/app/oracle
    ORACLE_HOME=/oracle/app/oracle/product/10.1.0/db_1
    PATH=$ORACLE_BASE:$ORACLE_HOME:$PATH
    ARCHDIR1=/oracle/oradata/BSCSDEV1/arch1
    ARCHDIR2=/oracle/oradata/BSCSDEV1/arch2
    rm -f archout.txt
    export ORACLE_SID ORACLE_BASE ORACLE_HOME PATH
    $ORACLE_HOME/bin/sqlplus -S '/ as sysdba'<<END
    @archquery.sql
    exit
    END
    while read line
    do
    dir=`dirname $line`
    file=`basename $line`
    if [ $dir = $ARCHDIR1 ]; then
    if [ -f $line ]; then
    echo "$file : matched"
    mv $line $HOME/movedfiles/$file
    fi
    elif [ $dir = $ARCHDIR2 ]; then
    if [ -f $line ]; then
    echo "$file : matched"
    mv $line $HOME/movedfiles/$file
    fi
    else
    echo "No Files to Move......"
    fi
    done < $HOME/archout.txt
    ARCHQUERY.SQL:
    set linesize 75
    set verify on
    set feedback off
    set heading on
    set termout off
    set serveroutput on
    set pagesize 999
    spool archout.txt
    select name,completion_time
    from v$archived_log
    where to_char(completion_time,'DD-MON-YY HH24:MI')<=(select to_char(sysdate - (30/1440),'DD-MON-YY HH24:MI') from dual)
    and
    to_char(completion_time,'DD-MON-YY HH24:MI')<=(select to_char(sysdate,'DD-MON-YY HH24:MI') from dual)
    and
    to_char(completion_time,'DD-MON')=(select to_char(sysdate,'DD-MON') from dual)
    and
    archived='YES';
    spool off
    My Logic:
    I am trying to identify the archive files generated every 30 minutes from v$archived_logs. For this, I am using the COMPLETED_TIME column and am comparing the same with SYSDATE.
    These files, I am comparing with the files in the archive destination and then am moving them to a different location.
    My problem:
    When I test the query, it lists out even those outside the timerange. Also, files that are shown as completed in the ARCHIVED columns and are physically present are not identified for at least 45 minutes.
    Could one of you please go through the scripts and tell me where I am going wrong?
    Any tips in this regard is deeply appreciated.
    Thanking You all in advance,
    Sriraman.

    Hi,
    Thanks for your reply.
    In my production setup, the client's techspecs insist on setting up only 1 archival destination. I did suggest the usage of a second destination, but they do not want it. They did not give me any concrete reason for this. So I have no option but to do this.
    It is therefore necessary that we move only those archive files that have been completed and not files being currently used.
    That is the reason for this script.
    Could you please have a look at it and tell me if I am missing something here?
    Regards,
    Sriraman

  • Help with turning off in-camera selected aspect ratios - Please!

    I shoot a Olympus e-P2. It allows me to change the aspect ratio of the file i.e. 4:3, 16:9 etc. I like to use this feature as 'masks' when I shoot to help with composition. When I open the RAW file in bridge or Camera Raw, this pre-selected aspect is automatically cropped from the file. I want to see the entire file, not the cropped version. The Oly software gives me this option, but I can't figure out how to turn off this 'feature' in Bridge or Camera Raw. Any help would be greatly appreciated.

    Your adobe product is only doing what the camera data told it to. However, in the raw converter you can try activating the crop tool then right click the image and choose to remove the crop. That may work (or not).

Maybe you are looking for

  • ACS 5.4 How to change CLI password?

    Anyone know how to change the ACS 5.4 CLI password? I found the command "acs reset-password".  But it seems to reset the GUI password instead of CLI password. Thank you very much!

  • ICal Invites to Outlook Users 5 Hours Off

    Hi, Have found a few posts on this, with even fewer answers. When I send iCal event invites to attendees who are on Win XP Outlook v 2003 sp2, the event is off by 5 hours. My 9 am appointments show up as 4 in the morning. Have tried resetting all tim

  • Svd 8.20 error

    Hi, I get the follwoing error with the SVD decomposition VI : "[...] exception error while calling a dll [...] NI_AALBase.lvlib:A x Vector.vi:5" I have installed LV 8.20 on another PC and it works properly ! PC that works : windows XP sp 2 dell dimen

  • Solved synch problem with iphone 2.0 outlook 2007, win XP Pro and Mobile Me

    I've been struggling with this mobile me business, and I hope that I solved it for me and therefore for you. I have the components listed above. I noticed that my iphone was no longer synching to outlook '07. Can't remember if that was before or afte

  • Monitor went out on Toshiba A215-S4767

    Hi I have a new problem I was listening to music last night and my monitor just died on me....at least I assume it's my monitor that died. The music was still playing but my monitor was just black (not black like it's on and black...black like it was