Different CRC's, same file?

Hello Sun Forums,
I have a question for all you Sun experts. The nature of my company's product is such that when we compile our code, the same set of files always needs to have the same CRC. One of our developers here mentioned that he thinks that every time we build the jars, even on the same set of files, a time stamp, or the manifest, or something, is causing the same jar files to have a different CRC with each new compile.
Can someone tell me how to avoid having each new compile of the same code generate different CRC's for the jars? Thanks!!!
Mike

Here's a CRC-32 brute forcer. The first version used reflection, which was fairly slow (I figured worst case on my computer was going to be around half an hour). The CRC-32 algorithm and table was taken from the JDK's sources at j2se/src/share/native/java/util/zip/zlib-1.1.3/zcrc32.c
Worst case on my machine (Core2/2.4 running XP) is around 75 seconds, and will try all possible byte sequences of 1 to 4 bytes. I don't know if this necessarily means every possible value is covered, but the random CRCs it picks have worked:
import java.util.Random;
public class ChangeCRC2
  // Table copied from j2se/src/share/native/java/util/zip/zlib-1.1.3/zcrc32.c
  public static int[] CRC_TABLE = {
    0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,
    0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4,
    0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07,
    0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,
    0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856,
    0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
    0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4,
    0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,
    0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3,
    0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a,
    0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599,
    0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
    0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190,
    0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f,
    0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e,
    0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,
    0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed,
    0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
    0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3,
    0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,
    0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a,
    0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5,
    0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010,
    0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
    0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17,
    0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6,
    0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615,
    0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,
    0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344,
    0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
    0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a,
    0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,
    0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1,
    0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c,
    0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef,
    0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
    0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe,
    0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31,
    0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c,
    0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,
    0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b,
    0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
    0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1,
    0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,
    0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278,
    0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7,
    0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66,
    0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
    0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605,
    0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8,
    0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b,
    0x2d02ef8d
  // Unused, from first version
  public static int computeCRC(int crc, byte[] b, int offset, int len)
    crc = ~crc;
    while (--len >= 0)
      crc = CRC_TABLE[(crc ^ b[offset++]) & 0xff] ^ (crc >>> 8);
    return ~crc;
  public static int checkMatch(int crc, int targetCrc, int n)
    crc = ~crc;
    targetCrc = ~targetCrc;
    int count = 0;
    while (++count <= 4)
      if ((crc = CRC_TABLE[(crc ^ n) & 0xff] ^ (crc >>> 8)) == targetCrc)
        return count;
      n >>>= 8;
    return -1;
  public static void main(String[] argv) throws Exception
    int startingCRC = 0;
    int endingCRC = 0;
    if (argv.length == 2)
      startingCRC = (int)Long.parseLong(argv[0], 16);
      endingCRC = (int)Long.parseLong(argv[1], 16);
    else
      Random r = new Random();
      startingCRC = r.nextInt();
      endingCRC = r.nextInt();
    System.out.println("Looking for byte sequence to change " + Long.toHexString(startingCRC & 0xFFFFFFFFL) + " to " + Long.toHexString(endingCRC & 0xFFFFFFFFL));
    long startTime = System.currentTimeMillis();
    int n = 0;
    do
      int numBytes = checkMatch(startingCRC, endingCRC, n);
      if (numBytes > 0)
        long elapsedTime = System.currentTimeMillis() - startTime;
        System.out.print("Found " + numBytes + " byte sequence after " + elapsedTime + " ms:");
        for (int i = 0; i < numBytes; i++)
          System.out.print(" " + Integer.toHexString((n >>> (i << 3)) & 0xFF));
        System.out.println();
        return;
    } while (++n != 0);
    System.out.println("Did not find match!");
Sample run:
java ChangeCRC2
Looking for byte sequence to change 156d85dc to bb7e7925
Found 4 byte sequence after 60017 ms: fe 64 f1 d8EDIT: I also have one more version that has a worst case of about 9-10 seconds, but it's a little uglier (four nested loops).
Edited by: paul.miner on Jun 25, 2008 12:11 PM

Similar Messages

  • Different appearance of same file

    Can anyone explain why the same PDF file viewed in Reader 8.1.2 on
    XPSP3 on two different laptops should look so different? I've posted
    side-by-side screenshots of an example at
    http://www.pixentral.com/show.php?picture=1oi6hYvQnhYXKGvG5GN7TiYgzURZ
    This PDF version 1.3 is created in Quark 6.0.
    Noel

    Not much interest, I see. It turned out that (a) the PDF had a
    colour background layer a bit smaller than a grey intermediate
    layer, and (b) on one machine, Overprint preview was selected in
    Prefs, so the colour background was showing through.
    Noel

  • Different Sizes with same file.

    Hi All,
    I have made 2 post script files from 1 indesign file, but the trap setting I have used to make for both Post Script file was:
    1. Application In-Rip
    2. Adobe In-Rip
    My questions are :
    1. Is there any diffrence between these settings?
    2. Why the file size of PS and Generated PDF through distiller was different. (Seems only due to different trap settings) PDF was made by same Distiller preset.

    This is what I would use to handle my trapping - Of course someone will come along and say I am doing it all wrong, but this is the base of I have been using for nearly 25 years applying theory that was around before the MACS (Ouch, that hurts).....
    I'd print PS, In Rip Separations, Built In trapping. I would then choose my screening option (this dialog is all screwey - LPI/DPI... For another post I guess).
    I personally change my angles to my liking - make sure they are 30 degrees apart to avoid a moiré, and then I enter the ink manager - There, I just adjust the density to total 2.0... All you are really telling the file is to spread the lighter colors into the darker colors. For instance, a CMYK file made of all vector art that needs to trap, I put in Y=.2, M=.3, C=.5, K=1.0. See the lighter color (yellow .2) will go into every other color, the magenta into the cyan and black and then the cyan into the black.
    From there, just distill your file and preview your PDF. Make sure to have overprint preview on so you can see the traps.

  • Problem with SQL*Loader and different date formats in the same file

    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    System: AIX 5.3.0.0
    Hello,
    I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from different sources and this results in us having different date formats within the same file. For example:
    ...;2010-12-31;22/11/1932;...
    I load this data using the following lines in the control file:
    EXECUTIONDATE1     TIMESTAMP     NULLIF EXECUTIONDATE1=BLANKS     "TO_DATE(:EXECUTIONDATE1, 'YYYY-MM-DD')",
    DELDOB          TIMESTAMP     NULLIF DELDOB=BLANKS          "TO_DATE(:DELDOB, 'DD/MM/YYYY')",
    The relevant NLS parameters:
    NLS_LANGUAGE=FRENCH
    NLS_DATE_FORMAT=DD/MM/RR
    NLS_DATE_LANGUAGE=FRENCH
    If I load this file as is the values loaded into the table are 31 dec 2010 and 22 nov *2032*, aven though the years are on 4 digits. If I change the NLS_DATE_FORMAT to DD/MM/YYYY then the second date value will be loaded correctly, but the first value will be loaded as 31 dec *2020* !!
    How can I get both date values to load correctly?
    Thanks!
    Sylvain

    This is very strange, after running a few tests I realized that if the year is 19XX then it will get loaded as 2019, and if it is 20XX then it will be 2020. I'm guessing it may have something to do with certain env variables that aren't set up properly because I'm fairly sure my SQL*Loader control file is correct... I'll run more tests :-(

  • How can I save my data and the date,the time into the same file when I run this VI at different times?

    I use a translation stage for the experiment.For each user in the lab the stage position (to start an experiment) is different.I defined one end of the stage as zero. I want to save the position , date and time of the stage with respect to zero.I want all these in one file, nd everytime I run it it should save to the same file, like this:
    2/12/03 16:04 13567
    2/13/03 10:15 35678
    So I will track the position from day to day.If naybody helps, I appreciate it.Thanks.

    evolution wrote in message news:<[email protected]>...
    > How can I save my data and the date,the time into the same file when
    > I run this VI at different times?
    >
    > I use a translation stage for the experiment.For each user in the lab
    > the stage position (to start an experiment) is different.I defined one
    > end of the stage as zero. I want to save the position , date and time
    > of the stage with respect to zero.I want all these in one file, nd
    > everytime I run it it should save to the same file, like this:
    > 2/12/03 16:04 13567
    > 2/13/03 10:15 35678
    >
    > So I will track the position from day to day.If naybody helps, I
    > appreciate it.Thanks.
    Hi,
    I know the function "write to spreadsheet file.vi"
    can append the data
    to file. You can use the "concatenate strings" to display the date,
    time as well as data... Hope this help.
    Regards,
    celery

  • Different photos with the same file name!! How to change this?

    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?

    Celtic Mom
    Welcome to the Apple user to user discussion forums
    While I was organizing my photos, I realized there are about 30 or so photos that have the same exact file name as another photo. Example: There are two IMG_1243.jpg, but they are different pictures. They were taken at different times, even different years. I have used more than one camera to import photos. I have changed the name of one of the photos in the Title area in the information section of iPhoto. When I try to put the newly named photo into a folder that has the other IMG_1243, I get a message that says" An older item named "IMG_1243" already exists. Do you want to replace it with the newer one you are moving?"
    I want to have both IMG_1243.jpg photos in the same folder. How can I do this? Also, I have a few thousand pictures, so how can I tell exactly how many photos have the same file name as another photo?
    It sounds like you are using the finder inside the iPhoto library - do not do that - you will corrupt your library and lose the edits, keywords, etc that you have
    iPhoto does not care about duplicate file names - it handles it fine
    changing the title of a photo does not affect the file name - although when you export the photo you can use the title for the file name as an option
    What are you doing and what do you want to accomplish?
    Remember do not ever make any changes in the iPhoto library using the finder or any other program
    LN

  • Same file name - Different extension - Viewing problem

    I know this has been written about quite a bit and I have searched through the posts but I cannot find a solution to my problem. I shoot RAW, import then into Lightroom, make changes, import into CS3 & make more changes, save as a .psd file; no problem so far. I use Neat Image on some files that need the noise reduction so in CS3 I save the .psd as a .tif, run it through Neat Image and save it to the same directory where the RAW and .psd files are. Go back to Lightroom and no .tif file. If you "find" the file in Lightroom it shows up but shows as the .psd file. I have tried unstacking and everything else I can think of but I cannot make the .tif file display. I can go back to CS3 and locate the file through it but if in a few months or however long it takes me to forget that the .tif is there, the .tif will be lost in never never land. Bottom line, how do I get Lightroom to show ALL files, no matter name, extension, etc?
    I am using Version 1.3.1 on Windows XP, 2Gigs ram, 3.4 Gig P4 processor

    This issue was argued down to skeletal remains in beta and after. Adobe finally rlented somewhat and allowed the importation of files with same name and the RAW and jpeg extensions, because for one good reason some cameras produce both and some shooters utilize both for differring purposes.
    Jao,
    I will disagree with your reading of what is standard. That MS's stupid explorer or anything else won't show extensions is immaterial. First, anyone wanting to work at any speed and efficiency will be using something like Total Commander instead of Explorer, and it and virtually every other app I own shows extensions and treats files with the same name but differing extensions as unique files unto themselves--as it should be.
    After all it is digital data in the file that is unique. The extension is a tag to tell you and the computor how to deal with that data. The content is not identical, and therefore it ought not be treated as if it were by any application.
    Anyone with an interest in wasting several hours can trace the arduous wailing at the LR team to treat the extension as part of a unique name. As I said bdefore, they did make some concessions. Hopefully, they will go the whole distance soon.

  • Using Labview how can one store different data in different sheets of same excel file, I mean how to select different sheets to store data??

    Hello Everyone,
    I want to store various data but in different sheets of excel file. So how to select Different sheets of same excel file???
    Thanks so much 
    Pallavi 

    aeastet wrote:
    Why do you not want to use Active X?
    One very good reason that I can think of is that MS keeps changing their ActiveX interface with each version of Excel, so code written for one version of Excel using ActiveX may not work for another version of Excel, even though the basic functionality hasn't changed. A perfect example is when MS changed the "Value" property to "Value2". Yeah, that made a whole lot of sense.
    pals wrote:
    I dont want to use active X as i am not
    getting results... by using write to spreadsheet in am getting results
    but on just one sheet... I want different data on different sheets of
    same excel file. So....
    Can anyone help me in this...
    Then it's something you're doing. Please post your code. Have you tried a search on this forum for ActiveX and Excel? There have been tons of posts on it, including lots of examples. There's also the Excel thread.

  • How to configure a scenario which posts same file to different directories

    How to configure a scenario which posts same file to different directories of a receiving system?
    Consider an Idoc to file scenario where I have to post same file to two different directories but logical receiver system has to be same.

    Hi,
    You can try out like this: Using multiple receiver interfaces you can send it to multiple directories with the help of enhanced interface determination/conditions and with the help of multiple receiver communication channels.
    Another option is to copy the file from one target directory into another directory  with the help of Unix script by executing the same from the OS command level.
    One more option is to create a Java Server Proxy and inside the proxy, you can write java code to FTP into different locations.
    Hope this helps,
    Regards,
    Moorthy

  • Get Info sees different "Open With" for the same file on different computer

    I've got a laptop (17") and a desktop, both with OSX 10.4.3. I had a disk problem with the laptop, but was able to get everything off the disk, reformat it, and put it all back. Everything's been working fine until today, when I tried to use the Equation Editor in Office. It wouldn't work. As I tried to chase down the problem, including reinstalling Office, I realized that my laptop was seeing certain Office files using GetInfo as "Open With" Netscape. I compared this with the settings on the desktop, and they were different. Different applications, different icons, even.
    Then I noticed that when I have the CD in the laptop and do GetInfo on a file there, or even look at the icon, it's different from what appears when I look at the same file on the desktop. So it appears to be an OSX issue, not a Microsoft issue.
    I've rebuilt permissions several times. I changed the OpenWith settings, but that didn't solve the problem. But I think it's because other Office files are being misread by the OS, too.
    If anyone has a diagnosis (and hopefully, a cure), I'd really appreciate it.

    Hi, Jim.
    You wrote: " I realized that my laptop was seeing certain Office files using GetInfo as "Open With" Netscape."If you are seeing more than just Office documents displaying the incorrect default application, this could indicate a corrupted Launch Services cache or preferences on the affected Mac.
    In associating documents with applications, Finder employs Launch Services. Launch Services employs several files to associate documents with applications and vice versa. When these files become corrupted, this can result in problems including:
    - The wrong applications being launched when double-clicking a file.
    - Multiple copies of a single application appearing in the Open With menu for a given document.
    - Incorrect icons appearing on files, folders, or other objects.
    The following steps will remove all of the files used by Launch Services. Be sure to read these instructions entirely, including the Notes, before proceeding.
    1. Quit all running applications.
    2. Trash the following two files in the Computer > Macintosh HD > Library > Caches folder:
    - com.apple.LaunchServices-0140.csstore
    - com.apple.LaunchServices-014xxx.csstore
    where xxx is the uid number for the affected account in the NetInfo database. Type your Admin password when prompted to authenticate the deletion of the first file. See Notes [1] and [2].
    3. Trash the com.apple.LaunchServices.plist file in your Home > Library > Preferences folder. See Note [3].
    4. Restart your Mac.
    5. Log in to your account.
    6. Empty the Trash.
    Do not empty the Trash until after you have restarted your Mac.
    Notes:
    [1] Step 2 will result in you being prompted to approve the launch of the application associated with a document the first time you double-click a document. These alerts are a result of the security feature in Mac OS X. The list of applications which you have previously approved are saved in the caches deleted in step 2.
    [2] The first user account defined on your Mac is generally uid 501, the second uid 502, and so forth. For example, the second file ID for the first account would becom.apple.LaunchServices-014501.csstoreYou can find the uid number for any account as follows:1. Launch NetInfo Manager, which is in the Computer > Macintosh HD > Applications > Utilities folder.
    2. Select users in the middle column of the NetInfo Manager window.
    3. Select the desired user account in the right column of NetInfo Manager.
    4. The data for the selected user, including uid, is displayed in the lower pane of the NetInfo Manager window.[3] Step 3 will reset to default values all associations you have created between specific file types and applications. For example, if you set PDFs to open in Adobe Acrobat instead of Preview, they would now open in Preview again until the association of PDFs with Acrobat is reset. You may want to skip step 3 to see if the other steps resolve the problem. However, if skipping step 3 does not resolve the problem, running steps 1-6 again, including step 3, should resolve the problem.
    Note that some of the information above is from the "Applications" chapter of my book, Troubleshooting Mac® OS X, Tiger Edition.
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Opening the same file in by different users

    As a newbie to InDesign I got a workflow question.
    Working with a team of 6 designers, we would like all to work in the same InDesign document. We need to create a big salebooks book, therefore it is necessary to open the same file in different copy of indesign?
    Currently we are working with CS5 and when I have a indd file open, none of my coworkers are able to open the file except for a copy. I understand that really working together on the same file is something you could do. But can’t be like in MS-Office? The moment you open a indd file which is already opened by a other user, you will get a message and you can then either to open as read only or a notification when the other user is ready editing the file
    Is this possible? Or do we need some additional tools?

    But can’t be like in MS-Office? The moment you open a indd file which is already opened by a other user, you will get a message and you can then either to open as read only or a notification when the other user is ready editing the file Is this possible? Or do we need some additional tools?
    I would actually be surprised if there are no workflow management plugins that do this.
    As you imply, it's really not that hard to do.
    Making it look really slick would probably require a plugin.
    But you could do it fairly easily with some simple scripting, a few hours of work.
    One script that runs whenever anyone opens or closes a file and registers that open/closure with a server.
    Plus some extra stuff to deal with messaging.

  • Is it possible to have same file size for different dpi?

    I changed one.TIFF file (300dpi, 1024X1332)  to .jpg files of four different dpi. But when I checked the four result jpg files, I found out that they are all in same file size and quality.( I also have checked the property of the files in the Windows.)
    I think more DPI means more data and more file size. Am I wrong?
    I use Photoshop CS 5.1(64bit, WINDOWS) - which is part of my Adobe Master Collection CS5.5.
    TIFF(300dpi, 1024X1332) ->
    1. JPG(72dpi, 1024X1332) : 306KB
    2. JPG(108dpi, 1024X1332) : 306KB
    3. JPG(144dpi, 1024X1332) : 306KB
    4. JPG(600dpi, 1024X1332) : 306KB
    I tested a few times more with different files. and same result comes out.(same file size for different dpi)
    Thanks in advance.

    Yes absolutely. Great observation.  PPI does not control the number of pixels, just how big they are.
    Now, if you change the PPI in the Image Size dialog with Resample checked.. then, that is a different story. In that case you will be changing the pixel dimension of an image (i.e.,changing the total number of pixels making up the image) while keeping its print size.
    In your test files, you will notice all the print sizes are different, because all you were telling Photoshop to do was change the size of the pixels (if or when the image is ever printed), which is really just a bit of metadata of the file.

  • Same file is different on different OS'es

    Hallo,
    I am having the following problem. I am reading a file (image, sound, whatever) with the code below, and depending if it runs on windows or different linux versions some bytes are always different when reading the very same file. I really don't know why. Has someone had a similiar problem and knows a solution? Please answer...
    public void load(File file){
              try{
                   this.fistream=new FileInputStream(file);
                   this.distream=new DataInputStream(this.fistream);
              catch(FileNotFoundException ex){ex.printStackTrace();}
              catch(IOException ex){ex.printStackTrace();}
         public int nextChar(){
              try{
              if (distream.available()!=0)
                        return distream.read();
              catch(IOException ex){ex.printStackTrace();}
    return -1;
    Thanks a lot
    Max

    Homer_Sanchez wrote:
    I'm doing following. I want to create a "random" byte sequence from an arbitrary file. This sequence should be same everytime it's created from the same file. But this isn't the case this way. Windows XP gives different results than for example mandrake linux. Everything that's already been said still holds.
    So in essence this means, I don't need any binary data. What? This makes no sense. I have no idea what you're talking about here, but it seems to contradict everything you've said so far.
    The name nextChar() was just a name. It shouldn't mean anything.No, it should clearly and concisely describe what the method does. Don't expect others to read your code if you can't make the effort to make it make sense.
    But does the InputStream method in the code skip carriage-return and line-feed characters? No, it does not. The phrase "carriage-return and line-feed characters" is only meaningful when dealing with line-oriented text data. Read what we already said.

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • Folder is empty on second computer. I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?

    Hi DeafScientist,
    Please try the below mentioned links.
    Creative Cloud Help | Browse, sync, and manage assets
    Error: "Unable to sync files"
    Creative Cloud File Sync | Known issues
    Kindly revert if you are unable to sync files.
    Thanks,
    Atul Saini

Maybe you are looking for

  • Question about memory upgrade on Satellite 2140 (PS241C-2PW9XP)

    I wanna upgrade my memory up to 1gb and i have a pc3200 533 stick. I am wondering if it would be ok or do i specifically need pc2700? Thanx :)

  • Need help please swf html not working right

    Hello everyone, I created a game in keynote for my HS kids with links to the right slide according to whether or not they are the correct answer. I exported it to flash. I got two files xxx.swf when I click on this on my desktop it opens in safari wi

  • How can I get videos (Hulu) on my laptop to appear on my TV?

    How can I get videos (Hulu) on my laptop to appear on my TV?  I already have the correct cable cord, but all I can see on my TV is the start-up screen.

  • Problem while genearting WSDL from ABAP

    Hi all I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am

  • Call a BSP page and save the output

    I have a BSP page, and an other one that acts as a report. From the first one I would like to call the second one to save its output as binary data. Can anyone help? Thaks in advance.