Property readings for several classes, the best way

Hi all
I have a program which in the development is going to handle different languages. Also there has to be several settings for the user. But here is the question:
The program has several different classes which all have specific constants. These should in time be customizable by the user when editing property-files. But how does one utilize the Property-class to it's best?
I have tried looking at [Best way property|http://forum.java.sun.com/thread.jspa?forumID=54&threadID=665253], but that didn't help me as i wanted.
I then passed on to Singleton and found interesting notes. Which I am thinking very deeply into using.
As i am not a very skilled programmer I have no idea as to how many constants you can have in one class, before it get's to "crowded".
I am guessing about 200 properties. Is that to many things to be handled in a class that is open during the whole thread of the program? In memory-consumption?
Thanks alot....

Ok so if i have this:
public class ClassOne {
    private JCheckBox user;
    public ClassOne() {... initializing all}
    public void setUser(boolean userChecked) {
        this();
        user.setValue(userChecked); // can't remember if this is the right code but... :)
}and the other
public class ClassTwo {
    private JCheckBox god;
    public ClassTwo() {... initializing all}
    public void setGod(boolean godChecked) {
        this();
        god.setValue(godChecked); // can't remember if this is the right code but... :)
}And then every time i need ClassOne i do like this:
ClassOne cOne = Factory.instanceOfClassOne();
ClassTwo cTwo = Factory.instanceOfClassTwo();Where the Factory is something like:
public class Factory {
//porperty readings up here.. no problem :)
    public ClassOne instanceOfClassOne() {
        ClassOne cO= new ClassOne ();
        cO.setUser(USER_PROPERTY_READING);
        return cO;
    public ClassTwo instanceOfClassTwo() {ClassTwo cT = new ClassTwo ();
        cT.setGod(GOD_PROPERTY_READING);
        return cT;
}Is this the way?
Edited by: Zerothi on 21-05-2008 23:10

Similar Messages

  • Looking for thoughts on the best way to repeat the header row at the top of the exported file.

    I have a request to create an extract and they need the header row to be written twice at the top of the file.
    I thought maybe a for each loop with a script that reset the increment variable one time before looping through the rest of the dataset, I am curious to hear what other options there are.
    Thanks,
    P

    If it is the same record twice then make it a variable and append twice before the details as per this blog post:
    http://agilebi.com/jwelch/2008/02/08/adding-headers-and-footers-to-flat-files/
    Arthur My Blog

  • What is the best way to use 2 internal Hard Drives in a laptop.

    Looking for info on the best way (ease of filing, speed and efficiency) to use 2 internal hard drives in my laptop (OS and apps on one and Data on the other?) while using an ext. drive for back up and such.
    Thanks for any info.

    thanks for your help, I want to do the right thing, and I have thought about moving the files back to the c drive by 'importing' and just start over. But is there an easier way. I was wondering about using the 'add folder to library' function. Since all the music is now on my ext. drive.
    DAVE

  • Which is the best way for a called function to identify caller class name.

    Which is the best way for a called function to identify the caller class name .
    1)Using sun.reflect.Reflection from called function
                    Class caller = Reflection.getCallerClass(2);
                    System.out.println("Caller Class Name ::"+caller.getName());2) Analyzing current threads stack trace from called function
                    StackTraceElement[] stElements=Thread.currentThread().getStackTrace();
                    System.out.println("Caller Class Name ::"+stElements[3].getClassName());Is there any alternate ways to achieve the same .Which is the best way ?
    Called function doesn’t have any arguments, I don’t want t pass any arguments from caller function to called function.
    Plz help.
    With kind regards
    Paul

    798185 wrote:
    Which is the best way for a called function to identify the caller class name .
    Is there any alternate ways to achieve the same.SecurityManager
        // 0 is the anonymous SecurityManager class
        // 1 is this class (also works in static context)
        // 2 is calling class
        static Class getClass(int i) {
            return new SecurityManager() {
                protected Class[] getClassContext() {
                    return super.getClassContext();
            }.getClassContext();

  • What is the best way to create a SSRS 2005 Line Chart Report for a 12 month period?

    I'm looking for advice on how to create a SQL Server 2005 query and line chart report for SSRS 2005.
    I need to display the peak number of patients assigned to a medical practice each month for a 12 month period based on the end-user selecting a
    single month and year.
    I've previously created a report that displays all patients assigned to the practice for any single month but I’m looking for advice on how to
    how to produce a resultset that shows the peak number of patients each month for a 12 month period. I thought about creating a query that returns the peak count for each month (based on my previously created report which displays all patients assigned to the
    practice for any single month) and then use a UNION statement to join all 12 months but I'm sure that isn't the most efficient way to do this. The other challenge with this approach (twelve resultsets combined via a UNION) is that the end-user needs to be
    able to select any month and year for the parameter and the report needs to display the 12 month period based on the month selected (the month selected would be the last month of the 12 month period).
    For the report I’ve previously created that displays all patients assigned to the practice for any single month, the WHERE statement filters the
    resultset on two fields:
    Start Date - The date the patient was assigned to the practice. This field is never null or blank.
    End Date - The date the patient left the practice. This field can be null or blank as active patients assigned to the practice do not have an End Date. When the patient
    leaves the practice, the date the patient left is populated in this field.
    Using these two fields I can return all patients assigned to the practice during Nov 2012 by looking for patients that meet the following criteria:
    start date prior to 11/30/2012 (using the last day of the month selected ensures patients added mid-month would be included)
    AND
    end date is null or blank (indicates the patient is active) OR the end date is between 11/1/2012 -11/30/2012 (returns patients that leave during the month
    selected)
    Regarding the query I need to create for the report that displays the peak count each month for 12 months, I'm looking for advice on
    how to count patients for each month the patient is assigned to the practice if the patient has been assigned for several months (which applies to most patients). Examples are:
    John Doe has a start date of 6/01/2012 and an End Date of 10/07/2012
    Sally Doe has a start date of 8/4/2012 and no End Date (the patient is still active)
    Jimmy Doe has a  start of 7/3/2012 and an End Date of 9/2/2012
    Given these examples how would I include John Doe in the peak monthly count each month for May - October, Sally Doe in the peak monthly count for
    August - December and Jimmy Doe in the peak monthly count for July – Sept if the end-user running the report selected December 2012 as the parameter?
    Given the example above and the fact I'm creating a line chart I think the best way to create this report would be a resultset that looks like
    this:
    Patient Name              
    Months Assigned
    John Doe
    June 2012
    John Doe                     
    July012
    John Doe                     
    Aug 2012
    John Doe                     
    Sept 2012
    John Doe
    Oct 2012
    Sally Doe                     
    Aug 2012
    Sally Doe                     
    Sept 2012
    Sally Doe
    Oct 2012
    Sally Doe                     
    Nov 2012
    Sally Doe
    Dec 2012
    Jimmy Doe                  
    July 2012
    Jimmy Doe
    Aug 2012
    Jimmy Doe
    Sept 2012
    From the resultset above I could create another resultset that would count\group on month and year to return the peak count for each month:
    June 2012 - 1
    July 2012 – 2
    Aug 2012 - 3
    Sept 2012 - 3
    Oct 2012 - 2
    Nov 2012 - 1
    Dec 2012 - 1
    The resultset that displays the peak count for each month would be used to create the line chart (month would be the X axis and the count would
    be the y axis).
    Does this sound like the best approach?
    If so, any advice on how to create the resultset that lists each patient and each month they were assigned to the practice would be greatly appreciated.
    I do not have permissions to create SPs or Functions within the database but I can create temp tables.
    I know how to create the peak monthly count query (derived from the query that lists each patient and month assigned) as well as the line chart.
    Any advice or help is greatly appreciated.

    Thanks for the replies. I reviewed them shortly after they were submitted but I'm also working on other projects at the same time (hence the delayed reply).
    Building a time table and doing a cross join to my original resultset gave me the desired resultset of the months assigned between dates. What I can't figure out now is how to filter months I don't want. 
    Doing a cross  join between my original resultset that had two dates:
    08/27/2010
    10/24/2011
    and a calendar table that has 24 rows (each month for a two year period)
    my new resultset looks like this:
    I need to filter the rows in yellow as the months assigned for stage 3 that started on 8/27/2010 should stop when the patient was assigned to stage 4 on 10/24/2011.
    You'll notice that Jan - Sept 2011 isn't listed for Stage 4 assigned on 10/24/2011 as I included a filter in the WHERE clause that states
    the Months Assigned value must be greater than or equal to the date assigned value.
    Any advice would be appreciated.

  • What is the best way to use a SSD for Photoshop/photo editing?

    Computer hardware newbie here: I do a significant amount of photo editing work and for a very long time I've experienced Photoshop, Bridge and Photomatix crashing constantly (usually due to insufficient RAM) or just generally taking forever (Bridge took forever to load the thumbnail/preview extractions in a folder full of images, Photoshop took forever to save images and Photomatix took ages to load/merge a set of bracketed photos).  Here are the typical error messages I'd get: http://pastebin.com/J9byczse
    As a professional photographer, constantly running into that sort of thing is quite aggravating, so to hopefully avoid ever having to deal with that again I invested in a new custom built computer.  It's Windows 7 Professional 64 bit with 32GB of RAM and a 240GB SSD; I'm using the 240GB SSD as my boot drive/OS, all of my programs are installed there, and the page file.  My photos and data are stored on several HDDs.  I have yet to install any of my photo editing software (Photoshop CS6 Extended, Lightroom, Photomatix etc) to the new computer yet since I'd like some advice first.
    My basic question is this: what is the best way to take advantage of the SSD (and the computer in general) when it comes to my photo editing software?
    Specifically...
    1. If I have a folder of photos I'm working on, should I move it to the SSD and then work on them from there in order to take advantage of the speed of the SSD?  Would this make any difference in terms of speed if the photos are located on the SSD vs. an internal/external HDD?
    2. Most of what I've read online seems to recommend two separate SSDs, one for installing/booting the apps and one for cache/scratch.  Does it matter if I use my 240GB SSD for both?
    3. This is a fairly new computer and the SSD is already almost half full (102GB used, 120GB free) *WITHOUT* any of my photo editing software installed yet.  I'm concerned about how fast that remaining 120 GB may fill up.  As it fills up will I lose the speed advantage of the SSD vs. a regular HDD?
    4. Sort of similar to #3, but should I bother moving any of my other non-photo editing programs/caches off of the SSD to a HDD and would there be any major difference in the speed/lifespan of the SSD if I did so?  It's mostly Firefox and Chrome and their caches that I'm concerned may be a problem if they remain on the SSD.
    Thanks for any help!

    If you have an SSD you can run the cache and programs on the same drive.  However, many recommend a scratch disk size of 100-200 gigs so that will not work here unless you opt for a larger SSD.  Otherwise an internal spinner is recommended that does not contain the program files, or idealy any other files that may want to get acessed at same time (only one read/write head per drive).
    With 32 gig of RAM you may not need the constant use of the scratch drive unless working on large images with lots of layers.  So see no advantage to moving folder to SSD for temp work environment.
    From what I read the new crop of SSD do not have the wear problems of the older versions.

  • What is the best way of creating admin-only parameters for a java iView?

    Hi,
    I would appreciate some advice from more experienced developers...
    The scenario is as follows: I have created an Org Chart maintenance application that generates and renders xml&xsl-based Org Charts. This is the maintenance iView.
    I am creating a second iView that points to each org chart(the 'Viewer' iView). This iView will be re-used many times, for different parts of our organisation. My problem is I want the portal administrator to be able to set the specific Org Chart that each instance of the 'viewer' iView points to. This needs to be editable as a configurable property.
    I imagine that this is accomplished through the use of properties, what is the best way to accomplish this?
    Many thanks,
    Mark Hockings

    I believe that you should be able to specify the 'personalization' property to be no-dialog. This doesn't allow users to be able to change the property, but can be changed when creating the iView definition
    I hope this helps
    D

  • What is the best way to for a plugin to wrap a video element in a parallel composition with a reference plugin that points to that Video Element?

    I have a basic reference element loaded as a plugin, which is able to retrieve information about, pause and play video elements while displaying its own overlay content as well.  What it's not currently doing, is automatically positioning itself to the same location and dimensions of the video element that it references.  For some reason, when I try using the layout API to set position and size in the video element metadata, this is not retrieved by the reference element (it returns a null value for the target video element's metadata).
    I wanted to try a different approach, specifically, creating a parallel composition that works as follows:
    1) When a video element is created in the factory, it is automatically wrapped in a parallel composition element along with a reference element, which is passed the video element as a target.
    2) The reference element sets its width and height with the width and height properties of the video element spatial trait and will listen for any changes to that width and height to adjust accordingly.
    3) Now that I think about it, the parallel composition should itself be a proxy for the video element, so other code in the player that moves, resizes, or otherwise alters the dispay of the video element, will if fact be adjusting the whole video element + reference element parallel composition.
    In other words, I want the reference element to be an overlay that is "locked" to the surface of any video element and follows it in size, position, display and even audio traits.
    Suggestions for the best way to approach this within the framework?

    Thanks Wei,
    With some more tweaking, I am able to get and use the layout metadata as you said!  Here is where my issue stands now:
    * My IMediaReferrer element can now look at the layout metadata of the target media element and copy those values, so it has the same width, height, x, and y  properties.  This is great!
    * However, particularly for RelativeLayoutFacet metadata, this is only fully useful if both the target media element and my IMediaReferrer element are in the same composition.  If they are in different compositions which are themselves placed differently, then even identical x and y values don't add up to the same position on the screen.
    So, my challenge is to figure out how to ensure that my IMediaReferrer element is placed in the same composition as the target media element.
    Again, the goal is to write a plugin that will have a reference to an underlying video, and will always have the same width, height, x, and y of the video it is overlaying.  This plugin should not require any additional coding in the player, but should take care of setting itself up as above automatically when loaded.
    There isn't any property on a media element which exposes the "parent" composition element that it is a part of, so I don't know how to get my IMediaReferrer to add itself to the same composition as the reference target automatically.  I'm not sure if it's possible to make my IMediaReferrer element extend ParallelElement and still load in a SWF Element as an overlay, and add that SWF Element and the target Media Element as children with identical layout metadata.
    Do you have any suggestions on how I should proceed?
    Thanks again!

  • What is the best way to organize pictures for huge library?

    Hello.
    I have lost 3 evenings of work the last week after the corruption of the iPhoto database. I lose my temper now . it was not the first time. but I’m ready to take long term action to improve the situation.
    I have now around 15.000 pics & something like 15 Go of data. That means I have to use an external drive to store them all. Each team the connection between the external HD & my iBook is lost, not often but can happen, the database is bugged. Of course I gonna have more and more pictures in the future, I took 5.000 Go of pictures back from Australia.
    My question is very general, what is the best way to handle this kind of database size?
    Okay, now I know that I should bake-up the Library6.iPhoto file. What else?
    Could I archive my rolls on CDs (well I should do it anyway) & delete the rolls from the database afterwards? What about the photo album? Is it possible to restore the pictures from the CDs to the hard drive?
    I have read that I should create several libraries. That could be a solution. Is it possible to split the current one? I could import the pictures in a new library, but in this case I will lose the comments field.
    I would really appreciate if you could send me your feedback about handling this size of library. Thanks in advance.

    Arnaud:
    There's is a way you can have your library on your boot drive and keep the "source" files on the external. It's using iPhoto in it's alias mode. There are pluses and minuses to this system. The pluses are that you can have a very large library. I have 18,000+ photos in my alias library. The iPhoto Library folder on my boot drive is only 1.7MB while the source files on my external HD take up 27G.
    The minuses are 1: if the external HD is not mounted then you can only view the thumbnail files and any full sized files that have been edited (the edited version is saved to the iPhoto Library folder). Any operation that requires moving a thumbnail or using the full sized version can't be run. 2: if you delete a photo from your library the "source" file does not get deleted. You'll have to do that via the Finder. 3: When you add new files it's best if you put them in their own folder with the other source folders and then import. If you try to put them in another folder it you'll have to import them manually instead of just dragging the entire new folder into iPhoto to create a new roll.
    I've created some Tutorials to help users convert and use this type of library. It's not for everyone but may hold some pluses for your situation.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application, iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.8)   QT 7.1.3, 22 LCD, 200 & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • Wipe my hard drive clean except for the OS whats the best way?

    I need to wipe my hard drive clean except for the OS whats the best way?

    From Kappy (note: with this method, you will need to update to the present OS version using the appropriate Combo Update from Apple Downloads.)
    Boot from the OS X Installer Disc One that came with the computer. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities (Installer menu if using Panther or Jaguar) menu. After DU loads select the startup volume from the left side list then click on the Erase tab. Set the format type to Mac OS Extended (Journaled) then click on the Options button. Select the one pass Zero Data option and click on the OK button. Then click on the Erase button.
    Note: You can skip the Zero Data option if you are not concerned about removing sensitive personal data from the hard drive. If you choose to skip this part of the process then it is possible for others to recover data from the hard drive. The Zero Data procedure will prevent others from getting access to your personal information.
    This process will take 30 minutes to several hours depending upon the size of the hard drive. After formatting has completed quit DU and return to the installer. Now complete the OS X installation. At the completion of the installation do not restart the computer. Instead just shut it off. The next user will be presented with the Setup Assistant when they turn on the computer just as it would if new out of the box.
    https://discussions.apple.com/message/12364050?messageID=12364050#12364050

  • What is the best way to store data for this project?

    hey everyone,
    I have been subscribed to this for a while, not sure if I have ever actually asked anything though.
    I have a project on the go for myself/portfolio
    It is a booking sheet, where by I have a GUI that has a diary system of a day followed by time slots. This also has a date picker that can change the date of the booking sheet
    I want to be able to store mainly strings and ints,
    I need to be able to store, retrieve and on occasion change some data.
    I was looking at using something called JExcelAPI but I cant get that to work at all, I asked for assistance but was refered to here.
    what would be the best way to implement this data storage?
    davyk

    Hey everyone,
    Back again,
    I got this this little snippet of code working but want to ask you guys for a little bit of help on it. if thats ok?
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String dataSourceName = "mdbTEST";
         String dbURL = "jdbc:odbc:" + dataSourceName;
         Connection con = DriverManager.getConnection(dbURL, "","");
         // try and create a java.sql.Statement so we can run queries
         Statement s = con.createStatement();
         s.execute("create table TEST1234567 ( column_1 char(27), column_2 char(150), column_3 char(150), column_4 char(150), column_5 char(150), column_6 char(150))"); // create a table
         s.execute("insert into TEST1234567 values('"+date+"','"+a+"','"+b+"','"+c+"','"+d+"','"+e+"',)"); // insert some data into the table
         s.execute("select column_7 from TEST1234567"); // select the data from the table
         ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
         if (rs != null) // if rs == null, then there is no ResultSet to view
                    while ( rs.next() ) // this will step through our data row-by-row
              /* the next line will get the first column in our current row's ResultSet
              as a String ( getString( columnNumber) ) and output it to the screen */
                   System.out.println("Data from column_2: " + rs.getString(1) );
         s.execute("drop table TEST1234567");
         s.close(); // close the Statement to let the database know we're done with it
         con.close(); // close the Connection to let the database know we're done with it
    catch (Exception err)
         System.out.println("ERROR: " + err);
         err.printStackTrace();
    }there are more columns, but i cut this code down.
    my question is:
    I think I want a method with an if statement to see whether the table is created or not, if not create it, but how do I go about this? I have searched the API and google, but my brain is fried.
    Also do I always have to do the try/catch and have the code of Class.forname to Statement s in all methods that want to deal with the table?
    davy

  • I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.

    I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.
    From what I read, I have 2 choices: 1. to install OSX and then upgrade to Mavericks, but I'm not sure if this would be possible (to upgrade directly from OSX to Mavericks); and 2. to use a software called Super Duper.
    I wouldn't like to have to use a third party software to do this, so the question is: is there a better way to install directly the Mavericks not having to use a third party software?

    Install the new drive in the computer.
    Install the old drive in an external USB or Firewire enclosure.
    Boot the computer from the Recovery HD on the external drive.
    Use Disk Utility to partition and format the new internal drive.
    Clone your external drive to the internal drive.
    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the Recovery HD on the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the Recovery HD then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
      1. Using Disk Utility still opened.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • The best way to enlarge an image for print?

    Hello
    I've been designing for print for several years. Occasionally I design large display posters/banners (A0, 6-sheet, billboard etc) which use a photographic image. Assuming that the image I have is smaller at 300ppi than the final print, what is the best way to enlarge the image? Based on my experience, it seems that there are three options (to make it simple, the example here assumes that my image is exactly half the size it needs to be printed at. I'm also assuming that the file I will supply to the printer will be a high res pdf exported from Indesign):
    1. Set up the Indesign file at 100% size, place the photo and have Indesign upscale the image to 200%. Export a high res pdf for print.
    2. Set up the indesign file at 50% size, place the photo with no upscaling by Indesign. Export a high res pdf and have the printer blow it up to 200%.
    3. Set up the Indesign file at 100% size, enlarge the photo in Photoshop to 200%, and place the photo with no upscaling in Indesign. Export a high res pdf for print.
    I have been advised that having Indesign upscale the image is not a good idea, and I never do this. I guess that option 3 is probably best, with Photoshop doing the work and the resulting pdf being the correct size. However, it's not always possible to do this – some posters are huge which means that the enlarged photo and the high res pdf will both be huge files, and I think also Indesign has a maximum document set up size anyway. So sometimes I use option 2.
    So firstly, why is it a bad idea for Indesign to upscale the image (as I say, I never do this, but I would like to know the technical reason)? Secondly, if the choice is between re-sizing myself in Photoshop prior to exporting the pdf, or having the printer enlarge a high res pdf, which is better? When I say 'better' I mean in terms of the quality/sharpness of the end result. Also, I assume that vector elements in my design will not be adversely affected in either scenario, is that assumption correct?
    Thanks

    Sorry for the added confusion.  It appears, after doing some checking in my CS2 apps ( InDesign), there is no setting for DPI / Output Resolution.  Only Transparency Flattener Setting. See screen shot below...
    If you select Postscript File in the Print Presets, you can access resolution settings for transparency flattening there, too...
    in the "Advanced" tab dialog...
    But, I like having the option in Illustrator 10 File > Document Setup where I can set the output resolution to whatever is appropriate.  In this case ( below ) I've got it set for 5080dpi / 300ppi.  You also have Effect > Document Raster Effect Setting where you can select 300ppi ( see screen shot below )...
    ...and Raster Effects Resolution setting...
    I may have misled you because the apps I have are not CS6; but you should be able to follow along in your CS6 apps in various settings dialogs.  Mainly, resolution settings can be set in the Print dialog boxes.
    The main thing to keep in mind is, because you are enlarging upon output, the base scaled down file must have enough resolution to maintain its appearance at the final size.  In the case of 50% or 25% file resolution should be maximum ( for current apps it appears 300ppi is considered high resolution.  Most apps now leave output resolution setting adjusted in the RIP / Print driver.
    I still use Distiller because it allows me to setup custom PDF settings and save them for future use.  You very well may be able to do that in CS6 apps; but I have a tried-and-true workflow that utilizes Distiller as a personal preference.

  • What is the best way to prepare for CERTIFICATION?

    what is the best way to prepare for CERTIFICATION?
    what is needed?
    where can i read more about it?

    Hi,
    Do as much as possible exercises based on your course material(which will be more than enough).
    If you know (some) Java and have understand the basics of OOP then this is enough for the exam.
    And do not forget:
    it is a multiple-choice test meaning that you see the possible answers.
    Either a single answer is correct (then you will have radio-buttons) or several answers are correct
    (then you will have checkboxes; in this case almost all questions will have more than one correct answer).
    You can refer to the topics for the certification
    https://websmp102.sap-ag.de/~sapidp/011000358700000499112003E
    Some links which might help
    /message/213564#213564 [original link is broken]
    /message/514469#514469 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/257122#257122 [original link is broken]
    /message/130164#130164 [original link is broken]
    /message/1916905#1916905 [original link is broken]
    /thread/167254 [original link is broken]
    /message/213564#213564 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    <b>
    you try www.sapdoamin.com
    They provide Certification simulation questions which are veryuseful and a must try site.</b>
    Yes more questions comes on OOPS so get your OOPS concepts very clear.
    You don't need to do extensive coding in OOPS.
    Just get the concepts clear and i am sure the certification will be a cake walkthrough.
    All the best and good luck with your ABAP Accreditation.

  • The best way to change BO layer (in B2B Java class)

    Hi, mate:
    One question, what is the best way to modify a business object.
    For example: in B2B java, there is a class:
    BidMgrImpl.java, however I want to modify some code for method Bid(),and for the action flow and JSP, I do not need to modify them.
    I am looking for the simpliest way to implement this. instead of modify from JSP, to config.xml, action, and BidMgrImpl.java?
    Cheers,
    Eric

    Hi, Prashil:
    Thanks for your reply.
    And a basic question, I am using NWDS now, and have none exprience of the tool.
    I followed one PDF file(How_To_Create_Custom_App_ECO5200.pdf) to create my application(b2b_xyz), now I have three applications:
    - LPJ_CRM_Db2b_xyzsap.com
    - LPJ_CRM_Dcrmhomeshrext~sap.com
    - LPJ_CRM_Dcrmisawebb2b~sap.com (this contains all JSP files under webcontent folder).
    my question is if I need extend one class, where and how can I create:
    for example in SAP application:
    com.sap.isa.auction.businessobject.b2x.BidMgrImpl
    In this class, if I need extend, what's gonna be the classpath, and where I can create this subclass.
    Cheers,
    Eric

Maybe you are looking for

  • Getting error while file uploading in struts

    Hi! I am getting this error while file uploading,I can't find any solution. SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUplo

  • Unable to create a new Message  Layout : 500 attempts failed.

    I am getting this error " Unable to create a new Message Layout : 500 attempts failed." when I am trying to add my custom region to seeded Message Layout.

  • Using Airport Express to play music while surfing the web via netgear

    Can I play music over my airport express (airtunes), while simultaneosly surfing via a different wireless router. As it stands I have been unable to do this, because I have to set my wireless connection to one or the other. When I link up to my NETGE

  • Help with scrolling background

    i am following a tutorial and in it, when the Hero hits a wall he respawns somewhere on the screen. The problem with that was, that i didnt know where he would respawn. And In order to make the maze bigger i used a scrolling background and I couldnt

  • Search threshold and index strange thinks..

    Hi, I have a directory server 6.2 server with 60000 entries, the DS is used by lot of applications running in our environment. I have half of query that return in the access/error Logs that the search was unindexed. At the moment I have all the DB in