Eyedropper picked up RGB. How to flag this?

I'm running ID CS4 and working on a print design.
I was recently using a consistent grey color on a design (C-0 M-0 Y-0 K-79).
At some point I inadvertantly placed a PSD in to the design that used an RGB colorspace, in Photoshop I had colored the background of this image with the same grey value, but forgotten to convert to CMYK, which led to my problem.
When I packaged the design the Summary panel gave me the relevant RGB image warning so I converted my PSD to CMYK in Photoshop and then packaged.
But then my printer informed me one of the grey shapes in my design was in the RGB colorspace with CMYK values of (C-65 M-56 Y-50 K-26)
I must have eyedropped the grey from my PSD while it was still in RGB mode.
My problem is that this new color didn't show up in my swatches, or bring up a warning when I packaged the design.
I know my mistake is using the eyedropper like I did, and I must have mistakenly eyedropped the image thinking it was another ID shape with the correct fill color.
Is there any way I can guarantee this won't happen again (other than stop using eyedropper)? Like change a setting so the preflight panel would flag it?
Thanks in advance,
Ben

The simplest solution would be to create a swatch for this colour of 79K
You can use the separations panel in both InDesign and Acrobat to check if colours are right etc. Turning off the black plate and scanning the pages you would have caught this.
This will be a lesson in checking your own work before sending it on. If it's meant to be a particular shade then check it thoroughly before sending it on.
Luckily the printers caught this - so you can make the change and push on.
There isn't a job that doesn't leave my desk without checking the separations panel in both inDesign and Acrobat - especially where consistent shades of colours are so important to the printing.

Similar Messages

  • I am looking into Buying Retail a New Blackberry Q10. Doing this to avoid having to Give up my old Data Plan. Have read that when you activate a new Phone it forces you to pick a new Plan. Is this True? and How to I avoid this? 20 Year Verizon Client

    I am looking into Buying Retail a New Blackberry Q10. Doing this to avoid having to Give up my old Data Plan. Have read that when you activate a new Phone it forces you to pick a new Plan. Is this True? and How to I avoid this? Any other advise in this matter would be greatly appreciated.
    20 Year Plus Verizon Client

    The only "unlimited" plan I can think of where this would not apply is the old Connect plan for multimedia/basic phones.  That unlimited data, on devices such as the LG Voyager, EnvTouch, and other "multimedia" devices is  not the same.
    If you currently have an individual $29.99 unlimited data plan with a 3G Smartphone, then you can buy a BBQ10 retail and activate it with the same data plan and keep the unlimited.

  • HT201412 My 4s is not picking up phone signal I do not no how to sort this out I have tried resetting it and its not working still I do receive messages and can send them but can not call as it just says call fail

    My 4s is not picking up phone signal I do not no how to sort this out I have tried resetting it and its not working still I do receive messages and can send them but can not call as it just says call fail

    Try resseting the network settings in settings>general then go to reset a the bottom.
    Then reset NETWORK settings.

  • Got a question on mail. We got two e-mail addresses, both different, but messages are picked up from the same server at Vodafone. Received at my iMac I want them to be splitted to two accounts, depending on each e-mail address. How to do this?

    Got a question on mail. We got two e-mail addresses, both different, but messages are picked up from the same server at Vodafone. Received at my iMac I want them to be splitted to two accounts, depending on each e-mail address. How to do this?

    Hello,
    Could you please clarify you have two email addresses [email protected] and [email protected] each with it's own password and you want these delivered to differnt OS X user accounts or seperate folders within Mail?
    mrtotes

  • How to achive this using servlet

    hi I am new to this technology... My requirement is , First I have to check whether that rebate_sku_num exists in the database or not.. If exits i need to update the row.. If now I have to insert the new row with values.. How to achive this..
    my screen contains 7 rows... in will increase.. for every submit.. i have to check with the database.. whether the rebate_sku_num exists or not.. help me out.. here is my code.. i am not sure how to format my code.. in future i will do it...
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import javax.servlet.SingleThreadModel;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import java.io.IOException;
    import java.sql.ResultSet;
    import java.io.*;
    import java.util.*;
    import java.util.Date;
    import java.text.*;
    public class AddRebate extends HttpServlet implements SingleThreadModel {
    public void init(ServletConfig servletconfig) throws ServletException {
    super.init(servletconfig);
    public void doPost(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
    throws ServletException, IOException {
    HttpSession session;
    session = httpservletrequest.getSession(true);
    String user_name;
    String divisionCode;
    String rebate_sku_num[];
    String selectedMonth;
    String amount[];
    String message = "";
    String Query="";
    String RebateId="";
    boolean flag = true;
    // from here
    Calendar todaysdate = new GregorianCalendar();
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy HH:MM:SS");
    System.out.println("today's date: " + sdf.format(todaysdate.getTime()));
    String entryDate = sdf.format(todaysdate.getTime());
    String entryDate1 = sdf1.format(todaysdate.getTime());
    System.out.println("entering date is " +entryDate) ;
    System.out.println("entering date is " +entryDate1) ;
    // to here
    user_name = (String) session.getAttribute("user_name");
    divisionCode = (String) session.getAttribute("division_code");
    selectedMonth = httpservletrequest.getParameter("selectedMonth");
    rebate_sku_num = httpservletrequest.getParameterValues("rebateId");
    amount = httpservletrequest.getParameterValues("amount");
    System.out.println("AddRebate : doPost() : selectedMonth = " + selectedMonth);
    System.out.println("AddRebate : doPost() : rebate_sku_num = " + rebate_sku_num);
    System.out.println("AddRebate : doPost() : amount = " + amount);
    // from here
    flag = true;
    for (int z = 0; z < rebate_sku_num.length && flag; z++) {
    try {
    flag=false;
    String s = "select REBATE_SKU_NUM from EASMSA_REBATE_SKU_DETAILS_TB where REBATE_SKU_NUM ='" + rebate_sku_num[z] + "'";
    System.out.println("AdjustmentServlet : doGet() : checking sku validity query = " + s);
    ResultSet resultset = DatabaseConnection.executeQuery(s);
    if (resultset != null) {
    while (resultset.next()) {
    RebateId = resultset.getString("REBATE_SKU_NUM");
    flag = true;
    if ((rebate_sku_num[z] != RebateId)) {
    System.out.println("get the values" +rebate_sku_num);
    System.out.println("get the values" + RebateId);
    Query = "INSERT INTO EASMSA_REBATE_SKU_DETAILS_TB " +
    "( REBATE_SKU_NUM, REBATE_DATE, REBATE_AMT, CREATED_BY," +
    "CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE ) VALUES (" +
    "'" + rebate_sku_num[z] + "', " +
    "TO_Date( '" + "30/" + selectedMonth + "', 'dd/MM/YYYY HH:MI:SS AM'), " +
    "'" + amount[z] + "' , '" + user_name + "'" +
    ", TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM')" +
    ", '" + user_name + "'," +
    " TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM'))";
    System.out.println("query is executed" +Query);
    }else if ((rebate_sku_num[z] == RebateId )){
    Query = "update EASMSA_REBATE_SKU_DETAILS_TB set REBATE_AMT=" + amount[z] + " where REBATE_SKU_NUM='" + rebate_sku_num[z] + "'";
    System.out.println("query is executed for updation" +Query);
    } else {
    System.out.println("AdjustmentServlet : doGet() : checking for sku validity : resultset null");
    // message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
    message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
    flag = false;
    } catch (Exception exception1) {
    System.out.println("AdjustmentServlet : doGet() : exception in checking validity of SKU");
    exception1.printStackTrace();
    // message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
    message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
    flag = false;
    try {
    if (DatabaseConnection.executeUpdate(Query) == 0) {
    System.out.println(" AddRebate : doPost() : rollback: error in executing update query= " + Query);
    DatabaseConnection.rollBack();
    message = "Some problem in updating transactions. Please try again later.";
    flag = false;
    // break;
    } else {
    System.out.println("AddRebate : doPost() : update sucessfull");
    message = "Rebate Transactions has been updated.";
    flag = true;
    } catch (Exception ex) {
    System.out.println("AddRebate : doPost() : exception in update query");
    message = "Some problem in updating transactions. Please try again later.";
    flag = false;
    ex.printStackTrace();
    session.setAttribute("message", message);
    httpservletresponse.sendRedirect("Welcome1.jsp?s=y");
    return;

    Oh and you can give me the dukes for helping you here:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=475828&tstart=0&trange=15

  • How to populate this fields in ce_bank_accounts?

    Hey there, first, i want to apologize for my bad english.
    i'm working with Cash management and i'm using this API ce_bank_pub because the bank are internals. i have the load from banks and branch, and kinda the bank accounts, but i can´t find how to populate this fields, that are mandatory for my requeriment:
    AUTORECON_AP_MATCHING_ORDER
    AUTORECON_AR_MATCHING_ORDER  
    RECON_ENABLE_OI_FLAG
    RECON_OI_FLOAT_STATUS
    RECON_OI_CLEARED_STATUS
    RECON_OI_MATCHING_CODE
    AUTORECON_AP_MATCHING_ORDER2
    this is my "flow of work", first, i load the data with SQL*Loader in a custom/personal table, after this, i have a cursor that select all the records of this table and do some validations, after this (and if all the records are ok) i use the API ce_bank_pub.
    i don't know if that API support those fields, I've read the documentation but can not find what I require.
    any help will be appreciate.
    thanks a lot.
    [SPANISH]
    Estoy trabajando con una carga de bancos, sucursales, cuentas bancarias y usos de cuentas, hasta ahorita todo bien, solo tengo problemas al poblar los campos que se muestran en la parte de arriba en la tabla ce_bank_accounts, estoy utilizando el API ce_bank_pub ya que los bancos son internos.
    mi procedimiento, o la manera que lo hago es ésta:
    cargo los datos con SQL*Loader a una tabla intermedia/temporal por decirlo así, posteriormente un cursor selecciona los datos para realizar las validaciones y las reglas de negocio y si los datos son correctos utilizo el API, eso es en general para las 4 cosas, pero los campos de arriba no se como cargarlo, modificarlos o si hay alguna otra manera para agregarselos.
    cualquier ayuda es apreciada.
    Muchas gracias.

    Hi Miguel,
    hope this helps ...
    AUTORECON_AP_MATCHING_ORDER - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AR_MATCHING_ORDER - Order of matching statement lines to AR transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX
    AUTORECON_AP_MATCHING_ORDER2 - Order of matching statement lines to AP transactions, by transactions first or by batch first, lookup type BATCH_OR_TRX_OR_GROUP
    For all the above three fields, navigate to Lookups from Cash Management responsibility and find the lookup type BATCH_OR_TRX, this will have 3 values, B for Batch, G for Group and T for Transaction ..... pass any one of the three value as per your requirement ..
    RECON_OI_MATCHING_CODE - Open interface transactions matching code, T for matching by transaction number, D for matching by date and amount. Lookup type: OI_MATCHING_CRITERIA
    For the above field, navigate to Lookups from Cash Management responsibility and find the lookup type OI_MATCHING_CRITERIA, this will have 2 values D for Date and Amount, T for Transaction Number .... Pass any one of the two values as per your requirement ...
    RECON_ENABLE_OI_FLAG -  Flag to indicate whether to allow reconciliation of statement lines to open interface transactions, Y or N
    As per your requirement indicate Y or N ....
    RECON_OI_FLOAT_STATUS - Code to specify the float status for open interface transactions
    RECON_OI_CLEARED_STATUS  - Code to specify cleared status for open interface transactions
    I am not sure about the above two ...i.e. the values that needs to be passed ...
    Regards,
    Ivruksha

  • Just updated to  os x 10.9.2 on 3/5/2014 and i cannot send mail  does anyone know how to fix this

    i just updated to osx 10.9.2 on 3/5/2014 and i cannot send mail
    does anyone know how to fix this   (the smpt shows as off line - the certificate shows as none)

    i figured out a solution if anyone is having the same problem
    go to preferences in mail
    pick the mail account that is not sending
    if your outgoing mail server states it offline as mine did
    click the dropdown  and than click edit smtp 
    a window will come up that says account information and advanced
    click advanced
    renter your password and ok
    restart your computer - when it restarts it will send emails 

  • When I connect to my home network I see a list of at least 5 or 6 networks. how do eliminate this list?

    I have an iPad2.
    when I connect to my home network I see a list of at least 5 or 6 networks. how do eliminate this list?

    iPadNoobie wrote:
    I figured I didn't really phrase the question correctly...
    I was just wondering why there are so many on the list and the ones that don't have a padlock icon next to them worry me...
    I would like to block/disable them.....
    The wireless radio picks up and displays all WiFi signals that are openly transmitted.  That is to show you the networks available to join.  Those that do not have the padlock are unsecure networks, which should not bother you as long as you do not attach to them.  Their being open has no affect on your security.
    You cannot completely and permanently block their being listed.  Just ignore them and don't attach to any unkown networks.

  • Condition type value is uploaded in inventory ,how can avoid this in import

    Dear Friends,
    I am doing Import , in import pricing  having two condition type which are copy of FRB2 .
    Where i am putting Amount and vendor name.
    ex.
    1) CUSTOM VAT - AMOUNT - AND - VENDOR AS SRILANKAN CUST,
    2) CUSTOM NBT - AMOUNT - AND - VENDOR AS SRILANKAN CUST,
    Both are recoverable.
    Now my question is that what ever amount i am putting here that is going to load on inventory . But I dont want this. how to achieve this???
    Regards,
    Mahesh.

    Hi,
    Cost of  (CUSTOM VAT & CUSTOM NBT) both take to two different G./L account.In import calculation schema in M/08 ,check your CUSTOM VAT & CUSTOM NBT condition types and see account key & accrual must be assigned {say example account key FRE and accrual key FR6 & FR7 ( a copy of FR1)}
    Now use t.code M/06, select CUSTOM VAT & CUSTOM NBT condition type, go to details & select accrual flag in control data 2 TAB & keep B in condition category in control data 1 segment save. Again in OBYC , just assign FR6 accrual key with your  CUSTOM VAT G/L account  and assign FR7 accrual key with your  CUSTOM NBT G/L account  with your chart of account, valuation class & valuation modifier & save.
    Now do transaction and see both are posted to separate G/L account not added to inventory material cost.
    NOTE:
    Cost of  (CUSTOM VAT & CUSTOM NBT) can post Material Inventory Account :
    Use t.code M/06, go to details of CUSTOM VAT & CUSTOM NBT condition types & keep BLANK in condition category in control data 1 segment and do not select accrual flag in control data 2 TAB  for both condition types & save. Do not keep / assign any account key & accrual key are assigned {Keep BLANK} to both CUSTOM VAT & CUSTOM NBT condition types in import calculation schema in M/08.
    Regards,
    Biju K

  • Eyedropper Picks Up Pattern Instead of Color

    I have obtained a JPG image by “print screen” which I have copied into Illustrator CS6, and I am trying to pick colors from it with the eyedropper tool in order to make a gradient. It picks up the colors alright, and even lets me copy them to the swatches panel. But when I try to group the picked colors together, or make a gradient out of them, it won’t let me, and says that you can’t do that with a “pattern”. Apparently the eyedropper picks up a “pattern” rather than a “color” (although it looks like a color to me; there are no “patterns” on the JPG image that I can see); and that is what prevents it from either grouping them together, or creating a gradient out of them. Any advice will be appreciated.

    Thank you. I tried that, and this is the screenshot of what I get:
    The small squares on the left are the colors which I have picked from my JPG image with the eyedropper tool, from which I want to make a gradient. The one circled in blue is selected, and the "Recolr Artwork" dialog box relating to the selected color is shown on the right. I have copied the five colors into the Swatches panel, circled in yellow. As you can see, it has identified them as patterns, and placed them next to the other patterns in the Swatches panel. And it wont let me create a gradient out of them because it identifies them as patterns rather than as colors. If I select those five colors in the swatches panel and click on the little folder icon on the bottom of the panel to make a color group out of them, it comes up with an error message saying, "Color groups cannot contain pattern or gradient swatches." Screenshot here:
    So it identifies them as patterns rather than colors, and the "Recolor Artwork" dialog box doesn't give me any information to help me resolve the problem, as far as I can tell. No idea why the colors are being identified as patterns (or gradients). They look like colors to me. I see no patterns (or gradients). And I can't understand why the color picker is not picking colors. I have doble clicked on the eyedropper tool to open the options box, and unselected all the options except colors, and it is still not picking up colors. It is picking up patterns or gradients, instead of colors.

  • HT201363 Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help  ?

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104569)

  • How to Flag Customer to Stop Quote Creation

    Suppose I have a customer that I have been doing business with for some and they currently have open orders that need to ship and invoice. We also have payements outstanding that we need to receive from the customer.
    For specific reasons, we no longer want to allow future ORDERS and QUOTES for that customer. What are the best methods for stopping the creation of Quotes and Orders for this specific customer?
    On the OM-side, it seems like the "Credit Hold" flag on the customer would be useful. On the ASO Quoting side, the Credit Check is not performed until the order is submitted. Any other good ideas on how to handle this scenario -- especially as it relates to holding the creation of Quotes?
    Thanks,
    Jason

    Hi Jason,
    Possible options:
    You could setup Quote Status that would require Approval before it can be transitioned to an order.
    Or use Quoting Hook for Credit Check, ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    R12: Oracle® Quoting Implementation Guide Release 12.1 (Part No. E13462-04)
    Chapter 4 Implementation Tasks for Oracle Quoting, page 4-3
    See detail on Quoting Hook for ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    page 4-29 Setting Up Credit Check Functionality
    11i: Oracle® Quoting Implementation Guide Release 11i (Part No. B12388-02)
    Chapter 4 Oracle Quoting Implementation Guide, page 4-2
    See details on Quoting Hook for ASO_CREDIT_CHECK_PUB (asopqccb.pls)
    page 4-42 Setting Up Credit Check Functionality
    Thank You,
    Deborah Bourgeois, Oracle Customer Support

  • How to Compile this prog. i DOS prompt.

    Hey Friends,
    I don't know how to compile this prog. on DOS prompt, kindly tell.
    // My Java Prog.
    package package1;
    import java.awt.Graphics;
    import java.lang.Number;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.Color;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.io.*;
    import java.util.*;
    import java.Applet.*;
    /* <applet code="abc" width=600 height=1000 > </applet> */
    public class abc extends Applet implements Runnable {
    Hashtable dataFile = new Hashtable();
    StringBuffer sb;
    String Date,Time,Freq;
    double KarDmd,KarDwl,KarShr,KarGen;
    boolean flag = true ;
    Thread myThread = null;
    * init
    public void init(){
    setBackground(Color.gray);
    * start
    public void start() {
    System.out.println("Start called"+this.getDocumentBase());
    System.out.println("Start called"+this.getCodeBase());
    myThread = new Thread(this );
    myThread.start();
    }//close thread
    public void run(){
    while (flag){
    try {
    URL url = new URL(this.getCodeBase(),"servlet/FileReadingServlet");
    HttpMessage message = new HttpMessage(url);
    InputStream in = message.sendGetMesage(null);
    ObjectInputStream ois = new ObjectInputStream(in);
    //String readStream = (String)ois.readObject();
    dataFile = (Hashtable)ois.readObject();
    //sb = new StringBuffer(readStream);
    System.out.println("Applet Read :"+dataFile);
    this.repaint();
    try {
    Thread.sleep(10000);
    }catch (InterruptedException io){}
    }catch (Exception e){
    e.printStackTrace();
    flag = false;
    }//while
    }//close run
    public void paint (Graphics g){
    g.clearRect(0,0,700,450);
    g.drawString("Date :", 500,16);
    g.drawString((String)dataFile.get("DATE"), 550,16);
    g.drawString("TIME:",500,32);
    g.drawString((String)dataFile.get("TIME"), 550,32);
    g.drawString("FREQ :",500,48);
    g.drawString((String)dataFile.get("FREQ"), 550,48);
    // "KARNATAKA"
    g.setColor(Color.cyan);
    g.drawRect(10,50,150,100);
    g.fillRect(10,50,150,100);
    g.setColor(Color.black);
    g.drawString("KARNATAKA",25,65);
    g.drawLine(160,100,250,100);
    g.drawString("GENERATION ",12,87);
    String KAR_GEN = this.getGeneration((String)dataFile.get("KAR_DMD"),
    (String)dataFile.get("KAR_DRL"));
    g.drawString(KAR_GEN ,120,87);
    g.drawString("SCHEDULE",12,107);
    g.drawString((String)dataFile.get("KAR_SHD"),120,107);
    g.drawString("DRAWL ",12,127);
    g.drawString((String)dataFile.get("KAR_DRL"),120,127);
    g.drawString("DEMAND ",12,147);
    g.drawString((String)dataFile.get("KAR_DMD"),120,147);
    g.drawLine(92,70,92,150);
    //"KAPS"
    g.setColor(Color.green);
    g.drawRect(12,5,85,30);
    g.fillRect(12,5,85,30);
    g.setColor(Color.black);
    g.drawString("KAPS",14,20);
    g.drawString("DEMAND:",14,35);
    g.drawString((String)dataFile.get("KAPS_DMD"),70,35);
    //"GOA"
    g.setColor(Color.magenta);
    g.drawRect(100,5,85,30);
    g.fillRect(100,5,85,30);
    g.setColor(Color.black);
    g.drawString("GOA",104,20);
    g.drawString("DEMAND:", 104,35);
    g.drawString((String)dataFile.get("GOA_DMD"),160,35);
    // "ANDHRA PRADESH"
    g.setColor(Color.orange);
    g.drawRect(250,50,150,100);
    g.fillRect(250,50,150,100);
    g.setColor(Color.black);
    g.drawLine(32,37,32,50);
    g.drawLine(110,35,110,50);
    g.drawString("ANDHRA PRADESH",268,65);
    g.drawString("GENERATION ",252,87);
    String AP_GEN = this.getGeneration((String)dataFile.get("AP_DMD"),
    (String)dataFile.get("AP_DRL"));
    g.drawString(AP_GEN,350,87);
    g.drawString("SCHEDULE",252,107);
    g.drawString((String)dataFile.get("AP_SHD"),350,107);
    g.drawString("DRAWL",252,127);
    g.drawString((String)dataFile.get("AP_DRL"),350,127);
    g.drawString("DEMAND",252,147);
    g.drawString((String)dataFile.get("AP_DMD"),350,147);
    g.drawLine(332,70,332,150);
    // "NTPC"
    g.setColor(Color.pink);
    g.drawRect(250,3,85,30);
    g.fillRect(250,3,85,30);
    g.setColor(Color.black);
    g.drawString("NTPC",252,14);
    g.drawString("DEMAND:",252,30);
    g.drawString((String)dataFile.get("NTPC_DMD"),305,30);
    //"HVDC"
    g.setColor(Color.green);
    g.drawRect(350,3,85,30);
    g.fillRect(350,3,85,30);
    g.setColor(Color.black);
    g.drawString("HVDC",352,14);
    g.drawString("DEMAND:",352,30);
    g.drawString((String)dataFile.get("HVDC_DMD"),405,30);
    //"GAUZACK"
    g.setColor(Color.magenta);
    g.drawRect(450,80,90,30);
    g.fillRect(450,80,90,30);
    g.setColor(Color.black);
    g.drawString("GAZ",452,90);
    g.drawString("DEMAND:",452,105);
    g.drawString((String)dataFile.get("GAZ_DMD"),510,105);
    g.drawLine(160,250,250,250);
    g.drawLine(85,150,85,200);
    g.drawLine(160,125,250,225);
    g.drawLine(270,300,270,330);
    g.drawLine(370,300,370,330);
    g.drawLine(400,230,450,230);
    g.drawLine(400,100,450,100);
    g.drawLine(270,33,270,50);
    g.drawLine(370,33,370,50);
    //"KERALA"
    g.setColor(Color.green);
    g.drawRect(10,200,150,100);
    g.fillRect(10,200,150,100);
    g.setColor(Color.black);
    g.drawString("KERALA",62,215);
    g.drawString("GENERATION ",12,237);
    String KER_GEN = this.getGeneration((String)dataFile.get("KER_DMD"),
    (String)dataFile.get("KER_DRL"));
    g.drawString((String)dataFile.get("KER_GEN"),120,237);
    g.drawString("SCHEDULE ",12,257);
    g.drawString((String)dataFile.get("KER_SHD"),120,257);
    g.drawString("DRAWL",12,277);
    g.drawString((String)dataFile.get("KER_DRL"),120,277);
    g.drawString("DEMAND",12,297);
    g.drawString((String)dataFile.get("KER_DMD"),120,297);
    //"TAMIL NADU"
    g.drawLine(92,220,92,300);
    g.drawLine(325,150,325,200);
    g.setColor(Color.yellow);
    g.drawRect(250,200,150,100);
    g.fillRect(250,200,150,100);
    g.setColor(Color.black);
    g.drawString("TAMIL NADU",272,215);
    g.drawString("GENERATION ",252,237);
    String TN_GEN = this.getGeneration((String)dataFile.get("TN_DMD"),
    (String)dataFile.get("TN_DRL"));
    g.drawString((String)dataFile.get("TN_GEN"),350,237);
    g.drawString("SCHEDULE ",252,257);
    g.drawString((String)dataFile.get("TN_SHD"),350,257);
    g.drawString("DRAWL ",252,277);
    g.drawString((String)dataFile.get("TN_DRL"),350,277);
    g.drawString("DEMAND:",252,297);
    g.drawString((String)dataFile.get("TN_DMD"),350,297);
    g.drawLine(332,220,332,300);
    // "PONDYCHERRY"
    g.setColor(Color.magenta);
    g.drawRect(450,220,90,30);
    g.fillRect(450,220,90,30);
    g.setColor(Color.black);
    g.drawString("PDY",452,230);
    g.drawString("DEMAND:",452,245);
    g.drawString((String)dataFile.get("PDY_DMD"),510,245);
    //"NLY"
    g.setColor(Color.green);
    g.drawRect(250,330,90,30);
    g.fillRect(250,330,90,30);
    g.setColor(Color.black);
    g.drawString("NLY",252,340);
    g.drawString("DEMAND:",252,355);
    g.drawString((String)dataFile.get("NLY_DMD"),310,355);
    //"MAPS"
    g.setColor(Color.pink);
    g.drawRect(350,330,90,30);
    g.fillRect(350,330,90,30);
    g.setColor(Color.black);
    g.drawString("MAPS",352,340);
    g.drawString("DEMAND:",352,355);
    g.drawString((String)dataFile.get("MAPS_DMD"),410,355);
    g.setColor(Color.black);
    //g.drawLine(440,306,620,306);
    //g.drawLine(440,332,620,332);
    //g.drawLine(440,358,620,358);
    //g.drawLine(530,280,530,388);
    for(int i=70;i<150;i=i+20) g.drawLine(10,i,160,i);
    for(int i=70;i<150;i=i+20) g.drawLine(250,i,400,i);
    for(int i=220;i<300;i=i+20) g.drawLine(10,i,160,i);
    for(int i=220;i<300;i=i+20) g.drawLine(250,i,400,i); }//close paint
    * stop
    public void stop() {
    myThread.destroy();
    * destroy
    public void destroy() {
    * getAppletInfo
    * @return java.lang.String
    public String getAppletInfo() {
    return "Applet Information";
    private String getGeneration(String DMD,String DRL){
    double _gen = 0;
    if ( ( DMD != null) && ( DRL != null)){
    Double DMDOB = new Double(DMD);
    Double DRLOB = new Double(DRL);
    gen = DMDOB.doubleValue() - _DRLOB.doubleValue();
    return new Double (_gen).toString();
    } //close class

    Change your directory to the directory above package1.
    Assuming that you've got d:/projects/src/package1/abc.java you'd want to be in d:/projects/src.
    Run javac referencing the abc class relatively:
    d:\projects\src> javac package1/abc.javaThis should get you abc.class in the package1 directory.
    Hope this helps.

  • Multi language, how to approach this?

    Hi everyone,
    I have a website on which I want to offer multi language, but no idea what is the best way to do this.
    There 2 plans I have:
    1:
    Of course all content (text) is in a database.
    If a user would want a different language, the user would click on a link/flag, this would put the requested language in a session variable, for example: session.language = "es"
    In the database I would have 2 columns (every language has 1 column) and then select the text which belongs to 'es'
    Every page would then do a request to the database to get the text beloging to the session.language.
    PROS: Relatively simple to implement
    CONS: SEO wise I don't think this could be very good. http://www.domain.com/page.cfm would give an english text or spanish text (or other language). Google will not add duplicate URL's
    2:
    Do something with http://www.domain.com/en/page.cfm for english and http://www.domain.com/es/page.cfm for english.
    With a URL rewrite rule the language value in the URL http://www.domain.com/en/page.cfm would actually be a page http://www.domain.com/page.cfm?language=en
    The url.language variable will then select the correct language from the database.
    PROS: Unique URL for each language. Good for SEO and Google indexing.
    CONS: A bit more difficult to implement. (I think)
    Or does anyone have other / better ideas?
    Thanks!!

    You kind of mix two different considerations partially in your two options here: how to identify the language (mentioned in both points), and how the data is stored (only mentioned in the first one).
    We use the second approach for identifying which language site one is on, except we use a subdomain instead of an element in the path (eg: we have es.domain.com, fr.domain.com etc, rather than www.domain.com/es/ and www.domain.com/fr/).  However I think that's neither here nor there.  The rewrite is simple to set up, and a one-off, so there's no real penalty there.
    As for how the data is stored, we've got a bit of a hotch-potch depending on which text it is.  Structural stuff which is fairly static (eg: in the breadcrumbs the text saying "You are here") we have in .properties files.  Slightly more frequently "managed" text like SEO-sensitive stuff is stored in a slightly different text-file-based system, due to who maintains said content.  Other (more volatile) content still is managed via a CMS.  This is basically down to which dept manages which text (as well as legacy issues like different people having different ideas as to how things ought to be done,if I'm honest).  The text-file-based stuff is loaded once at app-start-up, and the DB-stored stuff is called as necessary (with some CF & DB-side caching depending on what it is).
    The text-file-based stuff is applied to a page in the way Steve suggests.  The DB stuff is just output as per normal fetched-query content.
    You might want to read up on how Java handles this sort of thing, to get a fairly coherent picture of an accepted / standardised approach to such things.  Start with http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html and google "java ResourceBundle".
    Adam

  • How to resolve this Search Problem????

    Hi Every one
    I have a search module..I've never worked on... the problem is when i run that search module and after selecting date from date picker and clicking the search button i got following error:
    Error
    JBO-27122: SQL error during statement preparation. Statement: SELECT CtLine1.COST_TRAN_LN, CtLine1.COST_TRAN_ID, CtLine1.COST_TRAN_DATE, CtLine1.LINE_DESC, CtLine1.ACCOUNT_ID, CtLine1.OPERATING_UNIT, CtLine1.FUND_CODE, CtLine1.DEPT_ID, CtLine1.PROGRAM_CODE, CtLine1.CLASS AS CLASS11, CtLine1.PRODUCT, CtLine1.ACTIVITY_ID, CtLine1.STATUS_ID, CtLine1.TRANSACTION_AMOUNT, CtLine1.PROJECT_ID, CtLine1.CONTRACT_ID, CtLine1.ADJUST_AMNT, CtLine1.ADJUST_PRCNT FROM CT_LINE CtLine1 WHERE ( ( (CtLine1.COST_TRAN_DATE = TO_DATE('Mar 13, 2008', 'yyyy-mm-dd')) ) )
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    Actually I'm Getting Date from date picker in Mar 13, 2008 format and my database format is yyyy-mm-dd...
    so please help what to do now...and how to resolve this problem..

    hi frank,
    use this following code
    <af:selectInputDate>
    your code here
    <af:convertDateTime pattern="yyyy/M/d"
    secondaryPattern="d/M/yyyy" />
    </af:selectInputDate>
    the database date formet it different from what u have selected using selectInputDate.
    just add about bolded tag.
    Thanks & Regards,
    Arun

Maybe you are looking for