Trying to understand how pics are stored

I'm new to Mac (iMac Core i5 27") and trying to understand how pictures are stored. I've searched and found some posts that are relevant, but I really wanted to try and confirm a couple of things that still aren't clear to me.
First question is: Are the pictures in Events, Photos and Albums all the same photos?
Second question: If I import pictures from my external drive into iPhoto, are they stored on the iMac hard drive in the Pictures folder, and just viewed in iPhoto?
Thanks!

First question is: Are the pictures in Events, Photos and Albums all the same photos?
Yes. Iphoto works on a Library bsis. Every photo is in the Library. Events and Photos are both views of the Library. Albums reference photos in the Library. A photo can be in many Albums and use no extra disk space.
If I import pictures from my external drive into iPhoto, are they stored on the iMac hard drive in the Pictures folder, and just viewed in iPhoto?
Yes, by default. There are other options - for instance, iPhoto integrates with almost every app on your Mac, you can store the Library on an external etc etc. If you tell us what you'd like to achieve we may be able to help you.
Regards
TD

Similar Messages

  • Trying to understand how iPhoto keeps track of pictures...

    I am trying to understand how iPhoto stores & organizes pictures.
    I moved JPEGs from a portable drive to my hard drive, set iPhoto's preferences to not copy pictures when importing them, then imported them. Unfortunately, all pictures from a certain import has duplicated in iPhoto.... so I "moved to trash" all pictures from that import and tried importing again since the JPEGs were still where I moved them to. When importing, it said they were duplicated .
    I am confused. If I "move to trash", I assumed it got rid of whatever index (and preview cache) to that particular JPEG. I was actually surprised it did not delete the actual JPEG but I'm ok with that.
    Can someone help explain this behavior?
    Thanks
    -Ed

    iPhoto is a relational database program
    In the strongly recommended managed library (you have chosen to ignore this recommendation and use a referenced library) imported photos are copied to the iPhoto library and stored in the originals folder, a thumbnail jPEG is created and places in the data folder and when any modification is made (including autorotation) a modified version of the photo is created and placed in the modified folder. iPhoto updates its database entries to reflect everything it does.
    It is critical that you do not make any modifications of any sort to the content or structure of the iPhoto library - doing so is likely to corrupt the library and cause you to lose data.
    When you use the referenced mode which you are doing (and which is not recommended) you are taking total responsibility for the original photos which included not moving or modifying them while iPhoto is referencing them
    Unfortunately, all pictures from a certain import has duplicated in iPhoto.... so I "moved to trash" all pictures from that import
    Did you do this with the iPhoto trash? or did you use the finder to modify the contents of the iPhoto library.
    If I "move to trash", I assumed it got rid of whatever index (and preview cache) to that particular JPEG. I was actually surprised it did not delete the actual JPEG but I'm ok with that.
    again - iPhoto trash or finder trash. If you move a photo to the iPhoto trash and empty it all traces of that photo in the iPhoto library will be removed - nothing will be done to any file outside of the iPhoto library -- ever
    LN

  • I am new to mac and am trying to understand how to do something i did in Word. In Word you can set up document so that you have 2 pages per 8.5 x 11 landscape page. Each page is treated as a separate page. Can this be done in word for mac 2008?

    I am new to mac and am trying to understand how to do something i did in Word. In Word you can set up document so that you have 2 pages per 8.5 x 11 landscape page. Each page is treated as a separate page. Can this be done in word for mac 2008?

    Suggest you ask on the Microsoft Mac forums since it's their software you have a question about:
    http://answers.microsoft.com/en-us/mac

  • Trying to understand how SCVMM does networking

    I'm having trouble conceptualizing networking in VMM.
    I thought up the following hypothetical network to try to understand how it would be implemented in VMM:
    A company with: - Locations in NY and CA - 3 branches\buildings in each location - Each building has 3 floors with a different sub-net on each floor - One Hyper visor in each building - VMM being used to distribute IPs instead of DHCP
    I came up with the following diagram: 
    I'm still confused about a few things. Given this infrastructure what would my "VM Networks" look like? If I have one hypervisor in each building plugged into the same switch array as the computers on each floor I don't need a router right?
    If I have a switch+vlan installed on each floor, and those switches plug into a core switch which my hyper-visor is also plugged into VMM will take care of routing traffic between those VMs on different lan segments right?

    iPhoto is a relational database program
    In the strongly recommended managed library (you have chosen to ignore this recommendation and use a referenced library) imported photos are copied to the iPhoto library and stored in the originals folder, a thumbnail jPEG is created and places in the data folder and when any modification is made (including autorotation) a modified version of the photo is created and placed in the modified folder. iPhoto updates its database entries to reflect everything it does.
    It is critical that you do not make any modifications of any sort to the content or structure of the iPhoto library - doing so is likely to corrupt the library and cause you to lose data.
    When you use the referenced mode which you are doing (and which is not recommended) you are taking total responsibility for the original photos which included not moving or modifying them while iPhoto is referencing them
    Unfortunately, all pictures from a certain import has duplicated in iPhoto.... so I "moved to trash" all pictures from that import
    Did you do this with the iPhoto trash? or did you use the finder to modify the contents of the iPhoto library.
    If I "move to trash", I assumed it got rid of whatever index (and preview cache) to that particular JPEG. I was actually surprised it did not delete the actual JPEG but I'm ok with that.
    again - iPhoto trash or finder trash. If you move a photo to the iPhoto trash and empty it all traces of that photo in the iPhoto library will be removed - nothing will be done to any file outside of the iPhoto library -- ever
    LN

  • Trying to understand how MIDI Clock works in Logic

    Hi,
    I'm syncing a Roland MC-909 Groove Box with Logic.  I'm also using a MOTU MIDI Express interface.  The MC-909 syncs to Logic, thus it is in Slave mode. Under Preferences->Sync->MIDI Sync Project Settings, I've discovered something odd, and I'm trying to understand it.  It could be just a lack of understanding regarding the MIDI Spec.
    Under MIDI Clock, I necessarily need to set the destination to the MC-909.  I cannot use 'All'  or else the MIDI Express starts playing back at 8x the tempo set in Logic.  Not sure why this happens but its probably something weird with the MOTO interface.  Anyway in Logic, MIDI Time Code (MTC) is disabled, Song Position Pointer (SPP) is disabled, and MMC is disabled.
    So basically I'm only sending MIDI Clock to the MC-909.  Here's what is wierd:  As I locate to different places in the Arrange window (not in play mode), the MC-909 is locating to the correct time offset within the pattern!  This basically guarantees that you can start the Logic song anywhere, and the MC-909 will start playing back the pattern at the right time.  I don't understand how this can be happening given that I've disabled SPP in Logic.  The only sync communication between Logic and the MC-909 is MIDI Clock, but I don't believe that MIDI Clock is even capable of transmitting offset information that specifies the time-offset into a drum machine pattern, Does it?  Or is Logic sending SPP info as I click on different locations in the Arrange window?
    Another point, is that if I select to transmit MIDI Clock to another device other than the MC-909, but still using the MOTU MIDI Express, then the MC-909 plays back synchronously (i.e. its getting MIDI Clock from Logic, even though Logic isn't sending MIDI Clock to the MIDI port connected to the MC-909), but it does not track the pattern offset described in the previous paragraph.  The only way I can get the pattern offset to work, is if I select the MIDI Clock to be sent to the MIDI port connected to the MC-909.
    I would like to figure this out because I'm thiinking about buying an external MIDI synchronizer, but I don't want to lose the ability to have logic specify the offset into the pattern on the MC-909
    Thanks,

    Hi,
    I'm syncing a Roland MC-909 Groove Box with Logic.  I'm also using a MOTU MIDI Express interface.  The MC-909 syncs to Logic, thus it is in Slave mode. Under Preferences->Sync->MIDI Sync Project Settings, I've discovered something odd, and I'm trying to understand it.  It could be just a lack of understanding regarding the MIDI Spec.
    Under MIDI Clock, I necessarily need to set the destination to the MC-909.  I cannot use 'All'  or else the MIDI Express starts playing back at 8x the tempo set in Logic.  Not sure why this happens but its probably something weird with the MOTO interface.  Anyway in Logic, MIDI Time Code (MTC) is disabled, Song Position Pointer (SPP) is disabled, and MMC is disabled.
    So basically I'm only sending MIDI Clock to the MC-909.  Here's what is wierd:  As I locate to different places in the Arrange window (not in play mode), the MC-909 is locating to the correct time offset within the pattern!  This basically guarantees that you can start the Logic song anywhere, and the MC-909 will start playing back the pattern at the right time.  I don't understand how this can be happening given that I've disabled SPP in Logic.  The only sync communication between Logic and the MC-909 is MIDI Clock, but I don't believe that MIDI Clock is even capable of transmitting offset information that specifies the time-offset into a drum machine pattern, Does it?  Or is Logic sending SPP info as I click on different locations in the Arrange window?
    Another point, is that if I select to transmit MIDI Clock to another device other than the MC-909, but still using the MOTU MIDI Express, then the MC-909 plays back synchronously (i.e. its getting MIDI Clock from Logic, even though Logic isn't sending MIDI Clock to the MIDI port connected to the MC-909), but it does not track the pattern offset described in the previous paragraph.  The only way I can get the pattern offset to work, is if I select the MIDI Clock to be sent to the MIDI port connected to the MC-909.
    I would like to figure this out because I'm thiinking about buying an external MIDI synchronizer, but I don't want to lose the ability to have logic specify the offset into the pattern on the MC-909
    Thanks,

  • Trying to understand how beans work.

    I can't seem to figure out how beans work. Or more specifically how to target different parts of a bean. I think not knowing the terminology is a big part of this confusion too.
    For instance. I have a jsp file and a bean. the jsp has a form input that submits to itself. the bean gets the info that was typed in and displays is in the <%= etcetc %> tag. Now, what im trying to do is also submit that value to my mysql db. This has created numerous problems for me. For one, i don't really know how to check if it's working (other than actually looking at the DB table). The other problem is how do i target that part of the bean to tell it to do that function (again, the terminolgy eludes me).
    I'll post all of the code. There is a good chance that the DB code wont work. I'm really just hoping someone can explain to me
    how i call the DB function from the JSP file.
    I mean, is this even possible? Or do i need seperate beans for everything?? It seems kind of silly to not be able to do this.
    ok, so here is the code.
    JSP:
    <!-- JSP Directives -->
    <%@ page errorPage="myError.jsp?from=hello.jsp"%>
    <jsp:useBean id="simpleBean" scope="page" class="jspbook.ch3.simpleBean"/>
    <!-- Set bean properties -->
    <jsp:setProperty name="simpleBean" property="fname"/>
    <html>
    <head>
         <title>Hello</title>
    </head>
    <body>
    <center>
         <b><%= simpleBean.welcomeMsg() %></b>
    </center>
    <table align="center">
         <tr>
              <td>
                   <form name="sdfsdf" action="test.jsp" method="post">
                   <input type="text" name="fname" value="">
                   <input type="submit" name="submit" value="submit">
                   </form>
              </td>
         </tr>
    </table>
    </body>
    </html>and here is the bean
    package jspbook.ch3;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    public class simpleBean implements java.io.Serializable {
       private String emplid;
       private Connection con = null;
       private ResultSet rs = null;
       private PreparedStatement st = null;
       /* Member Variables */
       private String lname;
       private String fname;
      public simpleBean()
            try
              Class.forName("org.gjt.mm.mysql.Driver");
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/stm?user=root&password=");
        catch(Exception e)
              System.out.println(e.getMessage());
          /* Initialize bean properties */
        setLname("");
        setFname("");
      /* Accessor Methods */
      public String getLname() {
        return lname;
      public void setLname(String _lname) {
        lname = _lname;
      public String getFname() {
        return fname;
      public void setFname(String _fname) {
        fname = _fname;
      /* Display personalized message */
      public String welcomeMsg() {
        return "Hello " + fname + " " + lname +
          ", welcome to the wonderful world of JavaBeans!";
          public void insert()
           try
                String s1="insert into commstream (commTitle) values('"+fname+"')";
                st = con.prepareStatement(s1);
                st.executeUpdate();
                st.clearParameters();
                st.close();   
           catch(Exception m)
    }So there it is. If someone can explain the fundamentals to me, that would be great. What would also be great is if someone can make the above code work :)
    I've checked online tuts/specs on this, but to be honest im just not grasping it.

    iPhoto is a relational database program
    In the strongly recommended managed library (you have chosen to ignore this recommendation and use a referenced library) imported photos are copied to the iPhoto library and stored in the originals folder, a thumbnail jPEG is created and places in the data folder and when any modification is made (including autorotation) a modified version of the photo is created and placed in the modified folder. iPhoto updates its database entries to reflect everything it does.
    It is critical that you do not make any modifications of any sort to the content or structure of the iPhoto library - doing so is likely to corrupt the library and cause you to lose data.
    When you use the referenced mode which you are doing (and which is not recommended) you are taking total responsibility for the original photos which included not moving or modifying them while iPhoto is referencing them
    Unfortunately, all pictures from a certain import has duplicated in iPhoto.... so I "moved to trash" all pictures from that import
    Did you do this with the iPhoto trash? or did you use the finder to modify the contents of the iPhoto library.
    If I "move to trash", I assumed it got rid of whatever index (and preview cache) to that particular JPEG. I was actually surprised it did not delete the actual JPEG but I'm ok with that.
    again - iPhoto trash or finder trash. If you move a photo to the iPhoto trash and empty it all traces of that photo in the iPhoto library will be removed - nothing will be done to any file outside of the iPhoto library -- ever
    LN

  • I am trying to  understand how Photoshop deals with ICC profiles

    I have an Epson 3880 printer, which I am trying to master.   I am printing with either Photoshop CS2 or Photoshop CS5.   I would like to u nderstand where the profiles for particular papers are kept.
    For example, in principle, I can go to the Epson website and download profiles.   But I don't understand the nomeclature I see there.  Thus, there are several different categories.  I started with the first and downloaded the one for Epson Hot Press Bright Paper
    I get an archive which contains an executable file, which when run asks me if I want to extract the contents.  I run it and it completes, but I don't know what it put where.
    So first of all, where does Photoshop keep profiles for different printer using different papers?
    Second of all, where did that program put the files it supposedly extracted?  What does Hot Press Birght Paper mean?  Where are the profiles for the standard Epson papers?  Are there explicit profiles for using the 3880 with different papers, e.g., premimum glossy photo paper.   Where do I find them?
    (I think I have software for viewing a profile if I can find it.)
    Anything more of interest?

    Photoshop does not keep profiles anywhere.
    Profiles are managed by the OS.
    Photoshop shows the available profiles in it's UI, and gets the list of available profiles from the OS.
    What does Hot Press Birght Paper mean?
    That the profile applies to a particular paper, probably called "hot press bright" paper.
    Yes, you will have a profile for each printer and type of paper -- you have to in order to describe how the image will appear on each printer and type of paper.

  • Cansomeone tell me where and how photos are stored?

    When one imports photos into iphoto I'm wondering if it actually makes a copy, therefore making my storage system redundant? I keep my photo folders on my hard drive but would like to make some albums for printing. Thing is, I don't want the same photos stored in 2 places. Any help is appreciated.
    PB Aluminum G4 1.67   Mac OS X (10.3.9)  

    Hi HelpSlipFranklins,
    iPhoto 5 copies all photos it imports into it's own database, which is the iPhoto Library Folder.
    Here is a lot more info that might help you:
    --First thing to know and remember is this...Do not drag any images, folder of images into the iPhoto Library in the Finder. Images have to be imported into iPhoto within the application. Do not scan images and save them into the iPhoto Library folder in the Finder. Save them to another location such as the Pictures folder or even the desktop. You can then import them into iPhoto.
    If you have already put files/folders in the iPhoto Library folder in the Finder then you will also find out that if you try to import them into iPhoto you will get an error message. No worry, just drag them to the desktop and import from there.
    --All images that you import are shown in the library view. You can choose how you want to view, by rolls, by date, by rating, etc. When you put images in an Album, slideshow, book, etc, you are actually just putting pointers to those images in the library. You are not adding more images. If you delete an image from the Album it will still be in the library. If you delete an image from the library it is deleted from iPhoto's database (the iPhoto Library folder in the Finder) and your hard drive ONLY after you empty iPhoto's trash. (unless you have it backed up somewhere else)
    --You have a folder of images on your hard drive and want to import them into iPhoto. Drag the folder of images into an open iPhoto Library window and the folder of photos will be copied into the library, resulting in a new roll with the name of the folder. You now have two copies of those photos, the ones in iPhoto's database and the ones on your desktop. You can keep the ones on your desktop that you just imported as backup or you can delete that folder. You can also drag a folder of photos into an empty space in the source column and a new roll and album will be created at the smae time for those images in the folder. The album will have the same name as the folder you dragged into the source column.
    -- you scan a picture/pictures and save it in a folder. You cannot scan directly into iPhoto or the iPhoto Library folder in the Finder.
    You want all your photos in iPhoto so you import them into iPhoto.
    Now you have two copies of that picture/pictures, so you can delete the originals that were in the scanned folder and keep the one/ones that were imported into iPhoto.
    -- You download pictures from your camera into iPhoto.
    There is now one copy of each of the pictures. (DO NOT HAVE IPHOTO DELETE THE IMAGES FROM YOUR CAMERA! DELETE THEM MANUALLY WITH THE CAMERA-if something goes wrong with the import and they are never imported and then they are deleted from the camera you might end up losing those images)
    --You want to change something about a picture you imported, such as
    cropping it or changing the size, or changing the orientation.
    Once you do that to a picture, you now have two copies of the picture
    in iPhoto, the original and the edited one. The edited one will be in the library organize view. The original is packed away in an Original folder in your iPhoto Library folder under the date of the roll. You can always revert to the original by control clicking on the photo and choose "revert to orginal" You will not have this choice if you used iPhoto Diet to get rid of the Originals.
    (a quick note on cropping within iPhoto...when you are in edit mode, you automatically will be in the crop mode with cross hairs to highlight the crop area. To finish cropping you must click the crop button and then go back to library view and your cropped picture will be there.
    --You want to use Photoshop or another graphic program to edit a picture in your iPhoto library.
    You can open up prefs for iPhoto and choose
    For iPhoto 5--"when double clicking on
    photo" ..do" choose "other" and select Photoshop. Now you can edit all
    pictures in your iPhoto library in PhotoShop by double clicking. If you save the photo with the same name and as a flattened file it will be saved right into iPhoto and you will see the changes. If you don't want to save it into iPhoto then do a "save as" and save to the desktop. You will then have the original photo still in iPhoto and your new edited photo on the desktop.
    For iPhoto 6 (from the Apple Help Menu)-Have you ever used PS as the external editor set up within iPhoto Prefs?
    From the iPhoto Help menu;
    "Choosing what happens when you click the Edit button
    When you want to edit a photo, you can have the photo open in iPhoto's edit view, in a separate window, in full-screen view, or in another application.
    To choose a preference:
    Choose iPhoto > Preferences.
    Click General at the top of the Preferences window.
    Under Edit Photo, select one of the following options:
    "In main window" opens the photo in the main viewing area.
    "In separate window" opens the photo in a separate window.
    "Using full screen" opens the photo in full-screen view.
    "In application" opens the photo in another application you choose.
    To open a photo in its own window when "Main window" is selected, press the Option key when double-clicking the photo.
    To open a photo in edit view when "Separate window" is selected, press the Option key when double-clicking the photo.
    Note: Any video clip you imported into iPhoto will always open in QuickTime Player when you double-click it."
    And...
    "Editing photos in another application
    You can do many editing tasks in iPhoto, such as rotating and cropping a photo, changing a color photo to black and white, adjusting exposure and contrast, and reducing red-eye. If you want to make other changes to a photo, you can open it in another image-editing application, such as Adobe Photoshop.
    To edit photos in another application:
    Set your preferences to open photos in another application when you double-click them or click the Edit button. (See Related Topics below.)
    Double-click the photo to open it in the application.
    Edit the photo and save it using the same name and file format.
    The changes you made to the photo will be visible when you return to iPhoto.
    IMPORTANT: When you double-click a RAW-format photo, iPhoto creates a copy of the photo in JPEG format, which opens in the other application. To edit the photo in its original RAW format, drag the photo from the iPhoto window to the Finder, and then use the other application to open it. (If you previously used iPhoto to edit the RAW photo, select the photo and choose Photos > Revert to Original before dragging it to the Finder. This way, you can edit the photo using its RAW data in the other application.) If you want to import the photo back into iPhoto, you must first save it as a JPEG or TIFF file."
    --Or, with iPhoto open, you can drag a picture from the library window
    to your desktop (you see a + sign on the pic you are dragging). You now
    have two of the same picture, one in the iPhoto library and one on your desktop. You can open up the one on your desktop in any graphic program and work on it. The one in iPhoto stays the same. You can also share/export the picture/pictures to your desktop or folder to work on them or do batch processing, etc. You will still have the originals in your iPhoto Library.
    --Or, you can open up the ~/Pictures/iPhoto Library/folders and option drag any
    picture out of the folder to your desktop. Notice that you will see a plus sign while dragging the photo. This is copying the file to your desktop
    I would advise anyone not to do this as they might forget to use the option key and drag the photo out. Next time you open iPhoto the photo will be missing.
    -The one option you will not find within iPhoto is to resize photos. iPhoto wants you to keep all full size images within iPhoto to give you the best size for printing or using for other applications. You can however go to Share>export (for iPhoto 5) or File>export (for iPhoto 6) and choose the naming scheme, input the dimensions and export to the desktop to use for uploading to a web space or emailing.
    --to email a photo set up your email client in iPhoto Preferences. Once done, just select a photo/photos and hit the email icon in the toolbar.
    If you use a web based email, then you need to export the photo to the desktop and upload it from there.
    Two Apple kbs for you to read
    Don't tamper with files in the iPhoto library folder
    About the iPhoto Library folder
    Don't forget that in Library view you can Control click on any picture and get a contextual menu with many options. One is to revert to original.
    For more help and information you can go to the Help menu wiithin iPhoto and input your search term in the search bar, then hit the "enter" key on the keyboard.
    You can also go to the iPhoto Support site.
    iPhoto Support

  • Question about how songs are stored

    As I understand it, songs in iTunes are only stored in the library, right? Any songs listed in any kind of playlists, on-the go, etc are only pointers back to the original (and only) song file in the library, correct? Does it work the same on the iPod? (I have an 8GB Touch).
    I ask because my iPod is getting very near capacity, and I'm trying to make sure that I don't have multiple copies of the same song stored on my iPod.
    Thanks for any input or help.

    A nice trick is to create Smart Playlist (SPL) where you can limit the playlist to a certain number of tracks or size of playlist and then pick just that playlist to sync to your iPod (rather than everything). For example, on an "8GB" iPod (which really holds about 7.4GB), you might set up the smart playlist to be limited 7GB and selected by the least recently played. Check live updating.
    By picking the limit of 7GB you can continue to grow your library and not worry about having too many to fit in the iPod since the SPL will automatically limit it for you. And by making the rule Least Recently Played, your playlist will auto refresh to remove stuff you just listened to and throw in other ones that have been a while since you listened (least played will also include new tracks added to iTunes). So your 7GB Smart Playlist will be ever changing to rotate in new items added or things that have been the longest since you last listened.
    Have fun,
    Patrick

  • Trying to understand how BTRFS works

    Hello,
    I read most if not all of the articles, presentations and podcasts about Btrfs at https://btrfs.wiki.kernel.org/index.php/Main_Page and other sites. All is very nice. I had to read some of the information a couple of times though to more or less understand and I'm not sure if I really do.
    I'm trying to explain BTRFS in my own words, but wonder if it is correct. What about the following:
    The storage space of a BtrFS file system is comprised of file data blocks and metadata blocks. The BtrFS metadata is organized in a B-tree fashion and describes the version and location of data on disk. The BtrFS file system uses a copy-on-write (CoW) storage strategy. An existing file under BtrFS is never initially overwritten. Instead, when modifying a file, data blocks are copied, modified and written anywhere on disk according to metadata to prevent overwriting of data required by snapshots. When a file under Btrfs is modified, data is not necessarily overwritten. Modified data blocks of files can be written anywhere on disk according to metadata and requirement to maintain existing snapshots. A snapshot does initially not impose additional storage space until data blocks are modified.
    Is this correct? And if not, where am I wrong please?
    Thanks!
    Edited by: Dude on Oct 16, 2012 10:38 AM

    Dude wrote:
    Thanks for the feedback. Actually that's one of the parts I'm not sure if I understand it correctly. It is my understanding that Btrfs works on the data block level, which I think is the smallest amount of data that can be allocated. Similar to Oracle database. So in order to modify data, the whole block needs to be written. For example, let's say I change a the word "teh" to "the" in a file. Doesn't it have to read the whole block, modify the content, and check the metadata before writing the complete block?Yes. But it does tight packing, so it probably wouldn't write an entire block out for "the" -- it would just squash it into one of the leaves of the b-trees.

  • Trying to understand how to make a change to a SSIS package

    I was pretty familiar with DTS packages but SSIS packages have me completely lost.
    Let me start by saying we use TFS (Team Foundation Server) and Visual Studio 2010 for source control and development.
    I have to make a change which is very simple. I have to add a new field to an export file.
    My problem is I dont know what SSIS is or what all the components mean and what they are used for. I have no clue where to make this change. Does SSIS have any concept of 'source code'. How would an export file layout be defined and where would I look for
    it? I have read something about a 'manifest file' but again I don't know what it is or what it is used for or where I could find it.
    I have to make this change in TFS via Visual Studio but I don't see anything in the solution that looks like the SSIS stuff I need. If it is not there, I need to find it (on the production server maybe?) and add it to TFS.
    Is there a good online tutorial that explains all this? I tried the Microsoft ones and they are impossible to follow since they consist of dozens of links that completely tie you in knots.

    As of SQL Server 2012, SSIS catalogs are used for package version control, management and execution. Packages can be recovered from the catalog for edition and redeployment. It doesn't have a "source code". Which version of SQL Server are you using?
    Please note that your questions are kind of comprehensive and generic. There are no single formulas for package edition. Wether adding a new column to your file layout will be transparent to the package depends on its implementation and flow. As a general
    rule, you'll have to manually add the new column to each input and output of each source, transformation and destination tasks in your data flow.
    Follow these instructions to download a package from your SSIS catalog in SQL Server 2012. I think its the same process for SS 2014.
    http://www.mssqlgirl.com/editing-published-ssis-package-in-sql-server-2012.html

  • Trying to understand how Apache2 on SuSE OES serves pages

    Hi all,
    As far as I understand, all pages served by a default Apache2 instance
    running on a OES box have to be available to user www and/or wwwrun group.
    Please, how could I check if this is truth for a given folder?
    I am trying to troubleshoot some iFolder issues and working on that I've
    realized that I don't know how OES controls access to pages throughh
    Apache2.
    Thank you so much for any input,
    Ricardo Rodr*guez
    Your XEN ICT Team

    Ricardo,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Trying to understand how the AND and OR keywords works

    I read that the precedence of using AND and OR in the where clause can be determined by where you put the parenthesis. I tested it and it is true. How come .........
    THIS.....
    SELECT invoice_number, invoice_date, invoice_total
    FROM invoices
    WHERE (invoice_date > '01-MAY-2008' OR invoice_total > 500)
    AND invoice_total - payment_total - credit_total > 0
    Order By Invoice_Number; AND THIS....
    SELECT invoice_number, invoice_date, invoice_total
    From Invoices
    WHERE invoice_date > '01-MAY-2008' OR invoice_total > 500
    And Invoice_Total - Payment_Total - Credit_Total > 0
    ORDER BY invoice_number;GIVE ME DIFFERENT RESULTS BUT THIS..............
    Select distinct (Select Count(Invoices.Vendor_Id) From Invoices Where Invoices.Invoice_Date < '01-MAY-2008')  as Test_Column
    From Invoices
    Where (Invoice_Date > '01-MAY-2008' Or Invoice_Total > 500)
    And Invoice_Total - Payment_Total - Credit_Total > 0;AND THIS.............
    Select distinct (Select Count(Invoices.Vendor_Id) From Invoices Where Invoices.Invoice_Date < '01-MAY-2008')  as Test_Column
    From Invoices
    Where Invoice_Date > '01-MAY-2008' Or Invoice_Total > 500
    And Invoice_Total - Payment_Total - Credit_Total > 0;DONT GIVE ME DIFFERENT RESULTS.
    Edited by: mookjais on Feb 24, 2011 8:43 PM

    I tested the statements and the syntaxes (sp) are correct, here is the table. It's a sample table so I can give all the values that are in the table also.
    CREATE TABLE invoices
      invoice_id            NUMBER,
      vendor_id             NUMBER          NOT NULL,
      invoice_number        VARCHAR2(50)    NOT NULL,
      invoice_date          DATE            NOT NULL,
      invoice_total         NUMBER(9,2)     NOT NULL,
      payment_total         NUMBER(9,2)                 DEFAULT 0,
      credit_total          NUMBER(9,2)                 DEFAULT 0,
      terms_id              NUMBER          NOT NULL,
      invoice_due_date      DATE            NOT NULL,
      payment_date          DATE,
      CONSTRAINT invoices_pk
        PRIMARY KEY (invoice_id),
      CONSTRAINT invoices_fk_vendors
        FOREIGN KEY (vendor_id)
        REFERENCES vendors (vendor_id),
      CONSTRAINT invoices_fk_terms
        FOREIGN KEY (terms_id)
        REFERENCES terms (terms_id)
    );Edited by: mookjais on Feb 24, 2011 8:45 PM

  • Trying to understand how the DDK works

    Hi,
    1.)  If I wanted to be able to use a wide variety of NI DAQ cards
    under the QNX RTOS, would the NI Measurement Hardware DDK be able to
    faciliate this?
    2.)  From looking at the web-page describing the DDK, it looks to
    me that the driver code written by NI is done in a platform indepedant
    way, using only ANSI C/C++ function, and when it needs
    to do something platform specific, it calls out to functions that I can
    provide.  Is this correct?  I am envisioning having to
    provide code to get PCI resources, attach to interrupt, hw I/O.... am I
    on the right track?
    3.)  I've downloaded the NI HW DDK OTHER code, but it's not clear to me
    how the platform-dependant code for QNX will integrate with this.  I
    have the DAQ PCI_E_series Register Level Programming Manual
    and STC manual, but I can't find any docs on how to use the code in
    this archive.  What am I missing?
    Thanks

    Hi,
    1.)  If I wanted to be able to use a wide variety of NI DAQ cards
    under the QNX RTOS, would the NI Measurement Hardware DDK be able to
    faciliate this?
    Depends.  MHDDK provides register information for a number of NI
    DAQ devices.  There isn't an API that abstracts the measurement
    task form the hardware, like DAQmx does.
    You would need to write the high level functions for each type of
    device you what to use and provide an API to your application that
    would select the appropriate device specific function.  I guess
    something like
    startDevice()
        // somehow get deviceTypeId
        switch (deviceTypeId)
        case kMSeries:
              mseries_startDevice();
        case ESeries
              eseries_startDevice();
    or using function pointers, or c++ inheritance.  There are many possibilities...
    2.) .... am I
    on the right track?
    Yes.  MHDDK only abstracts device access using the iBus and
    tAddressSpace objects.  The iBus contains the address spaces of
    the device.  You request address spaces from the bus and use it
    write/read from the device.  For PCI devices the read/write
    functions using pointer manipuilation.  For a PCMCIA device on a
    x86 you would use the port io instructions.
    iBus objects are created and destroy using the factory methods
    acquireBoard() and releaseBoard().  This is where all the platform
    dependent magic should occur.  Here are a couple of KBs with more info:
    Measurement Hardware Driver Development Kit Register Level Programming Architecture
    How to Make an iBus
    3.)  I've downloaded the NI HW DDK OTHER code, but it's not clear to me
    how the platform-dependant code for QNX will integrate with this.  I
    have the DAQ PCI_E_series Register Level Programming Manual
    and STC manual, but I can't find any docs on how to use the code in
    this archive.  What am I missing?
    In  osiUserCode.cpp, implement acquireBoard(tChar*) and
    releaseBoard(iBus *&).   To acquire the board you usually
    have to loacte the device, find bar0 and bar1 , and map them to the
    current address space. 
    This article shows exactly how to do that in QNX: Talking to hardware under QNX Neutrino
    Also, create a QNX specific structure to
    attach to the iBus where you can store any handles you need for
    releaseBoard() to clean up.
    Hope this helps.
    Diego

  • Daylight Savings time, and how dates are stored internally and displayed

    This is probably a question that appears here annually, but I couldn't really find clear answers, so I'll try asking this in my own words:
    I'm in the Eastern timezone, and this Sunday, we'll be turning our clocks back an hour at 2:00 AM. That means that accordign to us humans, the time 1:30 AM will occur twice on Sunday.
    I've got an Oracle application that runs every 5 minutes around the clock, and it selects records from a certain table whose updated timestamp (TIMESTAMP(6)) is greater than SYSDATE - 5/1440, meaning any record that was updated in the last 5 minutes. Will we have a problem with some records being processed twice on Sunday morning? I'm theorizing that everything will be OK, that internally, Oracle stores DATE fields using something like an epoch which then gets interpreted when we display them. An epoch value will continue to grow each second no matter what “time” it is according to the U.S. Congress.
    A simpler way to look at the question might be as follows:
    If you store SYSDATE in a DATE column in row “X” at 1:30 AM before the time change, and you store sysdate in row “Y” exactly one hour later, will Oracle say that X’s timestamp is 60 minutes less than Y’s timestamp? All fields that are related to my particular situation are either DATE or TIMESTAMP(6).
    We use 11g.

    >
    That settles that! Thank you! My theory was wrong! I appreciate the help.
    >
    You may think it settles that but, sorry to burst your bubble, that doesn't really settle much of anything.
    One thing that was settled is the answer to this question
    >
    But are they talking about what you can EXTRACT and DISPLAY from the field or what is actually STORED internally?
    >
    which is, as Mark stated, they are talking about what is stored internally.
    The other thing that was settled is that you will pull the same, or mostly the same, data twice during that one hour. I say 'mostly the same' because of the major flaw your extraction method has to begin with.
    >
    If you store SYSDATE in a DATE column in row “X” at 1:30 AM before the time change, and you store sysdate in row “Y” exactly one hour later, will Oracle say that X’s timestamp is 60 minutes less than Y’s timestamp?
    >
    No - they will have the same time since 'one hour later' would have been 2:30 AM but the clock was turned back an hour so is again 1:30 AM. So the second time your job runs for 5 minutes at 1:30 AM it will pull both the original 1:30 AM data AND the data inserted an hour later.
    And Oracle will say that data stored in row "Z" exactly 45 minutes later than "X" at 1:30 AM will have a date of 1:15 AM and will appear to have been stored earlier.
    Your method of extracting data is seriously flawed to begin with so the daylight savings time issue is the least of your problems. The reason is related to the answer to this question you asked
    >
    do people avoid using DATE and TIMESTAMP datatypes because they are too simple?
    >
    That method isn't reliable - that is why people avoid using a date/timestamp value for pulling data. And the more often you pull data the worse the problems will be.
    >
    I've got an Oracle application that runs every 5 minutes around the clock, and it selects records from a certain table whose updated timestamp (TIMESTAMP(6)) is greater than SYSDATE - 5/1440, meaning any record that was updated in the last 5 minutes
    >
    No - it doesn't do that at all, at least not reliably. And THAT is the why your method is seriously flawed.
    The reason is that the value that you use for that DATE or TIMESTAMP column (e.g. SYSDATE) is assigned BEFORE the transaction is committed. But your code that extracts the data is only pulling data for values that HAVE BEEN committed.
    1. A transaction begins at 11:59 AM and performs an INSERT of one (or any number) of records. The value of SYSDATE used is 11:59 AM.
    2. The transaction is COMMITTED at 12:03 AM.
    3. Your job, which runs every five minutes pulls data for the period 11:55:00 AM to 11:59:59 AM. This job will NOT see the records inserted in step #1 because they had not been committed when your job query began execution - read consistency
    4. Your job next pulls data for the period 12:00:00 AM to 12:04:59 AM. This job will also NOT see the records inserted in step #1 because the SYSDATE value used was 11:59 AM which is BEFORE this jobs time range.
    You have one or ANY NUMBER of records that ARE NEVER PULLED!
    That is why people don't (or shouldn't) use DATE/TIMESTAMP values for pulling data. If you only pull data once per day (e.g. after midnight to get 'yesterdays' data) then the only data you will miss is for data where the transaction began before midnight but the commit happened after midnight. Some environments have no, or very little, activity at that time of night and so may never have a 'missing data' problem.
    Creating your tables with ROW DEPENDENCIES will store an SCN at the row level (at a cost of about 6 bytes per row) and you can use the commit SCN to pull data.
    Just another caveat though - either of those approaches will still NEVER detect rows that have been deleted. So if you need those you need yet a different approach such as using a materialized view log that captures ALL changes.

Maybe you are looking for

  • Trying to create a sales order in CRM with BAPI_BUSPROCESSND_CREATEMULTI.

    hi all, I am trying to create a sales order in CRM using the BAPI BAPI_BUSPROCESSND_CREATEMULTI. I need the sales order number as the out put. So I am declaring OBJECT_ID as the export parameter. This is my source code, I donu2019t get an error, but

  • Goods Movement 351 not posting to PCA

    For our new plant implentation, we create STO (ME23N), GI - 351 movement type, and GR - 101. No sales order, No delivery. Also 101 GR doesnt create financial document. at good issue  351 movement type : inv FG     13300100 Cr inv FG     13300100 Dr F

  • Change Profit center in the SD / FI CO interface to invoicing

    Hi, I am trying to change the profit center (resuting from a sales order) in some lines of ACCIT when posting the Fi documents for a sales invoice. This is done in the function exit exit_saplv60b_008 and generally works fine. However, in our case the

  • Unable to write to External Hard Drive, Disk Utility options don't work.

    I am a recent new user of Apple Mac from when I bought this Macbook Air 3 months ago. Nice machine, but difficult to get the hang of. Specific problem I'd like help with please is to enable me to write to my Samsung S2 Portable Hard Drive (500GB) I c

  • How to find out how many items within folder (and sub folders)?

    Hi all, This may be a silly question - but if I have a folder (containing sub folders etc) is there a way to calculate how many file items are within this folder? I cant seem to do it using the info panel. And the standard view tells you how many fil