Interesting problem

Hello All,
This is the problem I am stuck with right now.
I have two array lists one producer array list and one consumer array list denoted by a and b
P1 P2 P3 P4 P5
5 6 7 8 9
C1 C2 C3 C4 C5
2 3 4 5 6
Now we find all those producer consumer pairs which satisfy the criteria Pi>=Ci
We have the following sets
(5,2)(6,2)(7,2),(8,2),(9,2)
(5,3)(6,3)(7,3),(8,3),(9,3)
(5,4)(6,4)(7,4),(8,4),(9,4)
(5,5)(6,5)(7,5),(8,5),(9,5)
(6,6)(7,6)(8,6),(9,6)
Let us done each of them with Si
so we have S1,S2,S3,S4,S5
we assign a third parameter called weight to each element in Si which has satisfied the condition Pi>=Ci;
so we we will have
(5,2,ai),(6,2,bi),(7,2,ci)....etc for S1
similarly for S2 and so on.
We need to find in each set Si the the pair which has the smallest weight.
if we have (5,2,3) and (6,2,4) then 5,2,3 should be chosen.We should make sure that there is only one pair in every set which is finally chosen on the basis of weight.
Suppose we get a pair (5,2,3) in S1 and (5,2,3) in S2 we should see that (5,2,3) is not used to compare to compare with any other elements in the same set S2,
Finally we should arrive at the best element pair in each set.They should be non repeating in other sets.
Given a problem
P0 P1 P2 P3 P4
9 5 2 2 8
6 5 4 5 3
C0 C1 C2 C3 C4
we have So as (P0,C0) and (P4,C0)
assuming that the one with the smaller index has lesser weight PO is selected.In the program I have used random weights.from set S1 we select the pair PO,CO
S1 =(P0,C1),(P1,C1) and (P4,C1)
since P0 and P4 are already used in previous set we dont use them for checking in S1 so we have (P1,C1) as best.
S2=(P0,C2),(P1,C2) and (P4,C2) so we dont use P0,C2 and P1 and C2 because PO and P1 are already used in S1.
So we choose P4,C2
in S3 and S4 ae have (P0,C3),(P1,C3),(P4,C3) so we dont choose anything
and same in S4 also.
So answer is
(P0,C0),(P1,C1) and (P4,C2).
My program is trying to assign weights and I am trying to print the weights along with the sets.It doesnt work fine.I need help to write this program to do this.
Thanks.
Regards.
NP
import java.util.*;
class Pairs {
public static void main(String [] arg) {
int k;
List a = new ArrayList();
List b = new ArrayList();
for(k=0;k<3;k++)
a.add(new Integer(((int)(StrictMath.random()*10 + 1))));
System.out.println("The Producer values are");
for(k=0;k<3;k++)
System.out.println(((Integer)a.get(k)).intValue());
for(k=0;k<3;k++)
b.add(new Integer(((int)(StrictMath.random()*10 + 1))));
System.out.println("The Consumer values are");
for(k=0;k<3;k++)
System.out.println(((Integer)b.get(k)).intValue());
// these lines nec. if List a,b are not in ascending order already
List rows = new ArrayList();
for(Iterator i = b.iterator(); i.hasNext(); )
int bi = ((Integer) i.next()).intValue();
List row = new ArrayList();
List weights= new ArrayList();
for(int j=0; j<a.size(); j++)
if(((Integer)a.get(j)).intValue()>=bi)
weights.add(new Integer (((int)(StrictMath.random()*10 + 1))));
row.add("("+bi+","+((Integer)a.get(j)).intValue()+ "," +((Integer)weights.get(j)).intValue()+")");
else
row.add("null");
weights.add("none");
rows.add(row);
System.out.println(rows);
List temp=new ArrayList();
//List temp1=new ArrayList();
int j=0;
System.out.println("List after being printed");
for(Iterator i=rows.iterator();i.hasNext();)
temp=(ArrayList)i.next();
if(((String)temp.get(0))!="null")
System.out.println( ((String)(temp.get(0))).charAt(5));
j++;

Sorry I can't help with your problem
but I must point two things out:
1. Please reply to the existing thread, not create a
new one each time you want to update us
2. Please put the tag [ code] in front of your code
and [ /code] at the end (without the spaces I put in).
This should make the code much more readable.

Similar Messages

  • Dynamic SQL and Bulk Bind... Interesting Problem !!!

    Hi Forum !!
    I've got a very interesting problem involving Dynamic SQL and Bulk Bind. I really Hope you guys have some suggestions for me...
    Table A contains a column named TX_FORMULA. There are many strings holding expressions like '.3 * 2 + 1.5' or '(3.4 + 2) / .3', all well formed numeric formulas. I want to calculate each formula, finding the number obtained as a result of each calculation.
    I wrote something like this:
    DECLARE
    TYPE T_FormulasNum IS TABLE OF A.TX_FORMULA%TYPE
    INDEX BY BINARY_INTEGER;
    TYPE T_MontoIndicador IS TABLE OF A.MT_NUMBER%TYPE
    INDEX BY BINARY_INTEGER;
    V_FormulasNum T_FormulasNum;
    V_MontoIndicador T_MontoIndicador;
    BEGIN
    SELECT DISTINCT CD_INDICADOR,
    TX_FORMULA_NUMERICA
    BULK COLLECT INTO V_CodIndicador, V_FormulasNum
    FROM A;
    FORALL i IN V_FormulasNum.FIRST..V_FormulasNum.LAST
    EXECUTE IMMEDIATE
    'BEGIN
    :1 := TO_NUMBER(:2);
    END;'
    USING V_FormulasNum(i) RETURNING INTO V_MontoIndicador;
    END;
    But I'm getting the following messages:
    ORA-06550: line 22, column 43:
    PLS-00597: expression 'V_MONTOINDICADOR' in the INTO list is of wrong type
    ORA-06550: line 18, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 18, column 5:
    PLS-00435: DML statement without BULK In-BIND cannot be used inside FORALL
    Any Idea to solve this problem ?
    Thanks in Advance !!

    Hallo,
    many many errors...
    1. You can use FORALL only in DML operators, in your case you must use simple FOR LOOP.
    2. You can use bind variables only in DML- Statements. In other statements you have to use literals (hard parsing).
    3. RETURNING INTO - Clause in appropriate , use instead of OUT variable.
    4. Remark: FOR I IN FIRST..LAST is not fully correct: if you haven't results, you get EXCEPTION NO_DATA_FOUND. Use Instead of 1..tab.count
    This code works.
    DECLARE
    TYPE T_FormulasNum IS TABLE OF VARCHAR2(255)
    INDEX BY BINARY_INTEGER;
    TYPE T_MontoIndicador IS TABLE OF NUMBER
    INDEX BY BINARY_INTEGER;
    V_FormulasNum T_FormulasNum;
    V_MontoIndicador T_MontoIndicador;
    BEGIN
    SELECT DISTINCT CD_INDICATOR,
    TX_FORMULA_NUMERICA
    BULK COLLECT INTO V_MontoIndicador, V_FormulasNum
    FROM A;
    FOR i IN 1..V_FormulasNum.count
    LOOP
    EXECUTE IMMEDIATE
    'BEGIN
    :v_motto := TO_NUMBER('||v_formulasnum(i)||');
    END;'
    USING OUT V_MontoIndicador(i);
    dbms_output.put_line(v_montoindicador(i));
    END LOOP;
    END;You have to read more about bulk- binding and dynamic sql.
    HTH
    Regards
    Dmytro
    Test table
    a
    (cd_indicator number,
    tx_formula_numerica VARCHAR2(255))
    CD_INDICATOR TX_FORMULA_NUMERICA
    2 (5+5)*2
    1 2*3*4
    Message was edited by:
    Dmytro Dekhtyaryuk

  • Very Interesting problem, need urgent resolution

    Hi Guys,
    I have very weird and interesting problem which I have to fix urgently. Appreciate any help you guys can provide.
    I have one query which runs in All our database enviornments but Prod. Our UAT is refreshed by Prod Fortnightly so I am sure that it is not a data problem. I even tried for very small dataset making sure to select same data in UAT and Prod.
    Error:
    ORA-00932: inconsistent datatypes: expected NUMBER got -
    Query:
    select level ,--works if we reomve this
    xmlelement("L1", XMLATTRIBUTES(resource_name as "L1" ,resource_id as "p_resource_id",resource_manager_id as "p_rm_id",FTE, project_hrs ,
                 misc_hrs , total_hrs, avg_tot_hrs, Perc_utilization))
          from (  SELECT   resource_id,
               resource_name,
               resource_manager_id,
               trim(to_char(round(SUM (FTE),1), '999,999,999,999.9')) FTE,
               trim(to_char(round(SUM (project_hrs),1), '999,999,999,999.9')) project_hrs,
               trim(to_char(round(SUM (misc_hrs),1), '999,999,999,999.9')) misc_hrs,
               trim(to_char(round(SUM (total_hrs),1), '999,999,999,999.9')) total_hrs,
               trim(to_char(round(SUM (total_hrs)/decode(SUM (FTE),0,1,SUM (FTE)),1), '999,999,999,999.9')) avg_tot_hrs,
               trim(to_char(ROUND (SUM (project_hrs) * 100 / decode(SUM (expected_project_hrs),0,1,SUM (expected_project_hrs)), 1), '999,999,999,999.9'))
                  perc_utilization
        FROM   (    SELECT   CONNECT_BY_ROOT resource_name AS resource_name,
                             CONNECT_BY_ROOT resource_id AS resource_id,
                             CONNECT_BY_ROOT resource_manager_id AS resource_manager_id,
                             employee_type_code,
                             FTE,
                             project_hrs,
                             misc_hrs,
                             total_hrs,
                             avg_tot_hrs,
                             expected_project_hrs
                      FROM   (    SELECT   r.username resource_name,
                                           resource_id,
                                           resource_manager_id,
                                           employee_type_code,
                                           fte,
                                           project_hrs,
                                           misc_hrs,
                                           total_hrs,
                                           avg_tot_hrs,
                                           expected_project_hrs
                                    FROM   TIME_UTILILIZ_ORG_SUM_L3M_MV r
                              START WITH   resource_id = 129523
                             CONNECT BY   PRIOR r.resource_id = r.resource_manager_id)               
                CONNECT BY   PRIOR resource_id = resource_manager_id)
    GROUP BY   resource_id, resource_name, resource_manager_id)
              start with resource_id =129523 connect by prior resource_id=resource_manager_id; --works if we remove thisIf we remove outermost connect by, it runs so not a xmlelement problem as well. Any idea?
    Edited by: 783830 on Jul 22, 2010 6:58 AM

    I'm not sure if this will help you, but:
    with my_tab as (select 1 resource_id, 0 resource_manager_id, 1 project_hrs from dual union all
                    select 2 resource_id, 1 resource_manager_id, 1 project_hrs from dual union all
                    select 3 resource_id, 1 resource_manager_id, 1 project_hrs from dual union all
                    select 4 resource_id, 2 resource_manager_id, 1 project_hrs from dual union all
                    select 5 resource_id, 2 resource_manager_id, 1 project_hrs from dual union all
                    select 6 resource_id, 0 resource_manager_id, 2 project_hrs from dual union all
                    select 7 resource_id, 6 resource_manager_id, 2 project_hrs from dual union all
                    select 8 resource_id, 7 resource_manager_id, 2 project_hrs from dual),
    --- end of mimicking some data
        results as (select resource_id,
                           project_hrs,
                           prior resource_id prev_resource_id,
                           level lvl,
                           sum(project_hrs) over (partition by connect_by_root (resource_id)) tot_project_hrs
                    from   my_tab
                    connect by prior resource_id = resource_manager_id),
       results2 as (select resource_id,
                           connect_by_root resource_id top_resource_id,
                           project_hrs,
                           prior resource_id prev_resource_id,
                           level lvl
                    from   my_tab
                    connect by prior resource_id = resource_manager_id
                    start with resource_manager_id = 0)
    select r1.resource_id,
           r1.project_hrs,
           r1.tot_project_hrs,
           r2.top_resource_id,
           r2.prev_resource_id,
           r2.lvl
    from   results r1,
           results2 r2
    where  r1.resource_id = r2.resource_id
    and    r1.lvl = 1
    order by resource_id;
    RESOURCE_ID PROJECT_HRS TOT_PROJECT_HRS TOP_RESOURCE_ID PREV_RESOURCE_ID        LVL
              1           1               5               1                           1
              2           1               3               1                1          2
              3           1               1               1                1          2
              4           1               1               1                2          3
              5           1               1               1                2          3
              6           2               6               6                           1
              7           2               4               6                6          2
              8           2               2               6                7          3

  • Interesting problem for all students and programmers Have a look!

    Hello. This is a very interesting problem for all programmers and students. I have my spalsh screen class which displays a splash when run from the main method in the same class. However when run from another class( in my case from my login class, when user name and password is validated) I create an instance of the class and show it. But the image in the splash is not shown. Only a squared white background is visible!!!.
    I am sending the two classes
    Can u tell me why and propose a solution. Thanks.
    import java.awt.*;
    import javax.swing.*;
    public class SplashScreen extends JWindow {
    private int duration;
    public SplashScreen(int d) {
    duration = d;
    // A simple little method to show a title screen in the center
    // of the screen for the amount of time given in the constructor
    public void showSplash() {
    JPanel content = (JPanel)getContentPane();
    content.setBackground(Color.white);
    // Set the window's bounds, centering the window
    int width = 300;
    int height =400;
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screen.width-width)/2;
    int y = (screen.height-height)/2;
    setBounds(x,y,width,height);
    // Build the splash screen
    JLabel label = new JLabel(new ImageIcon("logo2.gif"));
    JLabel copyrt = new JLabel
    ("Copyright 2004, Timetabler 2004", JLabel.CENTER);
    copyrt.setFont(new Font("Sans-Serif", Font.BOLD, 16));
    content.add(label, BorderLayout.CENTER);
    content.add(copyrt, BorderLayout.SOUTH);
    Color oraRed = new Color(100, 50, 80, 120);
    content.setBorder(BorderFactory.createLineBorder(oraRed, 10));
    // Display it
    setVisible(true);
    // Wait a little while, maybe while loading resources
    try { Thread.sleep(duration); } catch (Exception e) {}
    setVisible(false);
    public void showSplashAndExit() {
    showSplash();
    // System.exit(0);
    // CLASS CALLING THE SPLASH
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JMenu;
    import javax.swing.*;
    import java.applet.*;
    import java.applet.AudioClip;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.net.URL;
    public class login extends JDialog
    String username;
    String password;
    JTextField text1;
    JPasswordField text2;
    login()
    //super("Login To TIMETABLER");
    text1=new JTextField(10);
    text2 = new JPasswordField(10);
    text2.setEchoChar('*');
    JLabel label1=new JLabel("Username");
    JLabel label2=new JLabel("Password");
    label1.setFont(new Font("Garamond",Font.BOLD,16));
    label2.setFont(new Font("Garamond",Font.BOLD,16));
    JButton ok=new JButton(" O K ");
    ok.setActionCommand("ok");
    ok.setOpaque(false);
    ok.setFont(new Font("Garamond",Font.BOLD,14));
    ok.setBackground(SystemColor.controlHighlight);
    ok.setForeground(SystemColor.infoText);
    ok.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e)
    System.out.println("ddddd");
    //validatedata();
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    System.out.println("->here");
    // setVisible(false);
    // mainpage m=new mainpage();
    // m.setDefaultLookAndFeelDecorated(true);
    // m.callsplash();
    /// m.setSize(640,640);
    // m.show();
    //m.setVisible(true);
    SplashScreen splash = new SplashScreen(5000);
    // Normally, we'd call splash.showSplash() and get on with the program.
    // But, since this is only a test...
    splash.showSplashAndExit();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    JButton cancel=new JButton(" C A N C E L ");
    cancel.setActionCommand("cancel");
    cancel.setOpaque(false);
    cancel.setFont(new Font("Garamond",Font.BOLD,14));
    cancel.setBackground(SystemColor.controlHighlight);
    cancel.setForeground(SystemColor.infoText);
    cancel.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    dispose();
    System.exit(0);
    JPanel pan1=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan2=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan3=new JPanel(new FlowLayout(FlowLayout.CENTER,20,20));
    pan1.setOpaque(false);
    pan2.setOpaque(false);
    pan3.setOpaque(false);
    pan1.add(label1);
    pan1.add(label2);
    pan2.add(text1);
    pan2.add(text2);
    pan3.add(ok);
    pan3.add(cancel);
    JPanel_Background main=new JPanel_Background();
    JPanel mainpanel=new JPanel(new BorderLayout(25,25));
    mainpanel.setOpaque(false);
    // mainpanel.setBorder(new BorderLayout(25,25));
    mainpanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
    ("Login To Timetabler Vision"),BorderFactory.createEmptyBorder(10,20,10,20)));
    mainpanel.add("West",pan1);
    mainpanel.add("Center",pan2);
    mainpanel.add("South",pan3);
    main.add(mainpanel);
    getContentPane().add(main);
    void validatedata()
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    SplashScreen splash = new SplashScreen(5000);
    splash.showSplashAndExit();
    dispose();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    public void callsplash()
    {SplashScreen splash= new SplashScreen(1500);
    splash.showSplashAndExit();
    public static void main(String args[])
    { login m=new login();
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    int screenPositionX=(int)(screenSize.width/2-390/2);
    int screenPositionY=(int)(screenSize.height/2-260/2);
    m.setLocation(screenPositionX, screenPositionY);
    //m.setResizable(false);
    m.setSize(600,500);
    m.setSize(390,260);
    m.setVisible(true);

    Hi Luis,
    Use tcode XK99 for vendor mass change, select the Fax no field. You have to take note that this changes will be only 1 fax number for all vendors.
    Else you have to use BAPI for mass change.
    regards,
    maia

  • Interesting problem in HK wording

    Hi experts,
    i get a interesting problem for handling HK wording.
    i am doing a project which take input from the web by using JSP and store the result to Oracle DB(charset UTF8).
    i found that some character is change to something like this
    "# & 3 7 0 3 2 ;" rather that a a unicode character like \u90A8
    Do any expert tell me why it change to a string rather that a unicode character?
    From Timothy

    &#37032 is the unicode in html/JSP for browser display,
    it is a unicode too.
    in java, /u37032 is used instead.
    so they are the same.

  • Interesting problems with the 1.2.2 Debugger and String.substring(int)

    Guys/Gals,
    Here's an interesting problem to ponder...
    I define the following values in my class:
    private String descriptorClassName = null;
    private String userObjectClassName = null;
    private String name = null;
    I run the following piece of code as part of the constructor:
    descriptorClassName = this.getClass().getName();
    userObjectClassName = descriptorClassName.substring(0, descriptorClassName.indexOf("Descriptor"));
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1);
    The first line assigns the value of "com.foo.user.UserDataDescriptor" to descriptorClassName.
    The second line assigns the value of "com.foo.user.UserData" to userObjectClassName.
    The third line assigns the value of "UserData" to name.
    As I step through the code, I see the first two values being set, and yet the third value for name is reported by the debugger as:
    "name = null".
    I added a call to log4j, which reports that that value of name has been correctly set!
    This seems to be a result of the String.substing(int) call, as the call to Sring(substring(int, int) is fine.
    Has anyone come accross this one before?
    Does anyone have any workarounds other than:
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1, userObjectClassName.length());
    Cheers all.
    Regards,
    Chris.

    I've been trying to reproduce this problem and it always works perfectly. The debugger tells me that name = "UserData". I'm using JDev 3.2.2 and my project is using JDK1.2.2_JDeveloper. Here's the exact source code I'm trying.
    package com.foo.user;
    public class UserDataDescriptor {
    private String descriptorClassName = null;
    private String userObjectClassName = null;
    private String name = null;
    public UserDataDescriptor() {
    descriptorClassName = this.getClass().getName();
    userObjectClassName = descriptorClassName.substring(0, descriptorClassName.indexOf("Descriptor"));
    name = userObjectClassName.substring(userObjectClassName.lastIndexOf(".")+1);
    System.out.println("end of constructor");
    public static void main(String[] args) {
    UserDataDescriptor userDataDescriptor = new UserDataDescriptor();
    null

  • Interesting Problem to Solve

    Hello all,
    I have an interesting problem to solve. We are building a
    kiosk like screen that loads websites live from their url, then we
    need to overlay a Flash movie with some bullet points and
    description of the content / site underneath.
    The pages change every couple minutes to a new website, then
    put up new Flash describing it.
    Some of the sites take over the browser if attempting to load
    through frames, so frames are out.
    Even if I try and load through an iFrame still takes over
    parent browser.
    Suggestions?
    Thanks in advance,
    Hunter

    when the song is playing tap near the top of the album cover and it will bring up a small menu with a repeat and shuffle icon if shuffle is on it will be blue click it then it will go white and should be off
    hope this works for you i had the same prob and it took me ages to get it off

  • An interesting problem for HP All-in-one machines

    I posted a problem Sunday about my system freezing during boot. It was suggested that my power supply was probably underpowered. See link below for the thread:
    https://forum-en.msi.com/index.php?threadid=43996&sid=
    I bought a new 480W power supply (see specs at bottom) to resolve the problem. After installing it, I was surprised to see it freeze at boot-up again. So, this time I unplugged each USB individually. It turns out the device causing the problem was my new HP all-in-one printer/scanner/copier.
    I checked HP's site to find out that interestingly enough the computer was trying to boot from the digital camera card slots! Anyway, I downloaded the new firmware for my printer and everything is working great now.
    I am glad I replaced my power supply though, now I can overclock without worrying too much. Plus, the PS that came with my case was a piece of junk .

    Yep you Must watch those Do It All USB Devices, And you are 100% Correct Getting rid of the PSU that came with your Case, is the BEST Upgrade that you could have made Period!............Sean REILLY875

  • Interesting Problem in VA4Java: Using POST with forward(req, res)

    I am trying to use POST Metod with forward(request, response) in VisualAge for java using webSphere test environment and getting an error page. Interesting thing is that if I set a breakpoint then I get the desired page otherwise an error page. However, if use GET Method everything works fine. What confuses me is that why POST method is not working without setting a breakpoint and running the code in debug mode? Does it has to do with WebSphere test environment or problem of using POST method with requrest forwarding in servelt API?

    Hi there,
    I am beginning in developping jsp / servlet in VAJ3.5 and Websphere Test Environment.
    i manage to run the servlet properly. unfortunetely the jsp is not working properly : in my hello.jsp (this example is coming from tomcat4.0), there is a method 'request.getContextPath()'
    WTE send me a message : 'method not found in interface javax.servet.http.HttpServletRequest'
    Any idea hox to solve this?
    VAJ3.5, WTE use JSP1.0, is it something linked to this?
    Thanks to you.
    Regards
    Hugues

  • Help: Interesting Problem

    I need help. If any compationate soul is willing to help, I would appreciate it greatly!!! Please reply here or send the code to [email protected]
    Problem: A palindrome problem
    Study the following interesting fact:
    (1)Take any number N,
    (2) reverse it to get another number NN,
    (3) add N and NN: NNN = N + NN
    See if the resulting number NNN in (3) is a palindrome.
    If not, keep doing steps 1 and 2 to NNN.
    Write a program to generate a number less than 10000 and keep doing steps (1), (2) and (3), until in step (3) you get a palindrome.
    Print the how many steps were needed to stop the process.
    Thanks!!!

    public static void main(String[] args) {
    for (int count = 0; count < 10000; count++) {
    int N = anyNumber;
    int NN = Magic.reverseIt(N);
    int NNN = N + NN;
    if (Magic.isPalindrome(NNN)) {
    System.out.println(NNN);
    break;
    }

  • FPINTM1 Mass Interest problem

    Hello,
    I have a problem with transaction FPINTM1, calculation of mass interest. I want to do as many documents as interest FICA documents to the pre-selection of the transaction. The case is that if the same or VKONT GParted, I just type a document generated interest with the total amount, the sum of the documents selection.
    Case Study, 20% interest in with the same contract (VKONT1)
    Now I calculated like this:
    Doc1 of 5000 u20AC
    Doc2 u20AC 4000
    Result: Doc (INT) 1 of 1800 u20AC
    I want to calculate this:
    Doc1 of 5000 u20AC
    Doc2 u20AC 4000
    Result: Doc (INT) 1 of 1000 u20AC
                         Doc (INT) 2 800 u20AC
    I thought of using the 1788 event, but can not find where to modify it to generate the documents by me separately and I do not unify them.
    thanks

    Hi,
    thanks for the response,
    i checked the field icond of table TFK056A.
    the function (EVENT 2085) return Two items, because i want to calculate two interest for two documents, for the same vkont.
      CALL FUNCTION 'FKK_RESTRUCTURE_ITEMS_FOR_INT'
        EXPORTING
          i_rfki1                = i_rfki1
        TABLES
          t_fkk_int_item_chosen  = t_fkk_int_item_chosen
          et_fkk_int_item_compos = et_fkk_int_item_compos.
    And the result is the same...:( i don't achieved yet...

  • Interesting problem with Tree region...

    HI
    I have a tree region which I am using to show tasks in a task management / change control app. All working fine until I decided it would be good to have a select list at the top which allows me to see either all or just incomplete tasks...
    I set up a list selection item (P9_TASK_STATUS) with the following LOV:
    STATIC:All;101,Incomplete;100
    Then I modified the tree code to include ' AND pcent_complete < :P9_TASK_STATUS ' in the where clause (code below). Now, when I choose All from the drop down I see all nodes. When I choose Incomplete I see nothing... an empty tree! I have checked the value in P9_TASK_STATUS and it is as per the LOV...
    I tested the code by changing it to hard numbers instead of the item - and it works fine when I use ' < 101' but returns nothing when I use '< 100'. Have also tried changing the LOV to 100 & 90 then putting a '<=' in the where clause.
    Yes, there are many tasks with values less than 100!!
    Any ideas?
    Thanks in advance
    Steve
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "TASK_NAME" as title,
    null as icon,
    "TASK_ID" as value,
    "DETAIL" as tooltip,
    'f?p=&APP_ID.:9:&APP_SESSION.::::P9_TASK_ID_1,P9_TREE_NODE:'||"TASK_ID" || ',' || "TASK_ID" as link
    from "#OWNER#"."TM020_TASKS"
    WHERE project_id = :F102_PROJID and pcent_complete < :P9_TASK_STATUS
    start with "TASK_LEVEL" = 1
    connect by prior "TASK_ID" = PARENT
    order siblings by dte_sched, priority
    Edited by: Steve In Dorset, UK on Jan 13, 2011 9:46 AM

    Hi
    Interesting point ab out the where clause but that works fine with the single condition to filter by project ID. I've also noticed that the problem only occurs once there are tasks which have been marked as 100% complete! WHen there are no complete tasks the code runs OK. could be an excuse to never finish a task...
    COde to create table & data below
    Thanks
    Steve
    -- DDL for Table TM020_TASKS
    CREATE TABLE "TM020_TASKS"
    (     "TASK_ID" NUMBER(*,0),
         "PROJECT_ID" NUMBER(*,0),
         "TASK_NAME" VARCHAR2(100),
         "PARENT" NUMBER(*,0) DEFAULT 0,
         "REQUESTOR" VARCHAR2(25 CHAR),
         "DETAIL" CLOB,
         "DTE_CREATED" DATE DEFAULT sysdate,
         "DTE_STARTED" DATE,
         "DTE_DUE" DATE,
         "DTE_LIVE" DATE,
         "PRIORITY" NUMBER(*,0) DEFAULT 0,
         "PCENT_COMPLETE" NUMBER(*,0) DEFAULT 0,
         "WORK_SEQ" NUMBER(*,0) DEFAULT 0,
         "TASK_LEVEL" NUMBER(*,0) DEFAULT 1,
         "DEV_NOTES" CLOB,
         "DTE_TEST" DATE,
         "DB_OBJ" VARCHAR2(100),
         "APP_OBJ" VARCHAR2(100),
         "DTE_SCHED" DATE,
         "OWNER" NUMBER(*,0) DEFAULT 0
    REM INSERTING into TM020_TASKS
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (48,13,'Calendar Reports',43,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (39,15,'Bugs',0,'Everyone!',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (40,15,'Email to Postmaster',39,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('14-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (41,13,'Create table for tree',19,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,1,100,null,3,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),'icdb501_admintree',null,to_date('10-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (42,13,'Bugs',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (43,13,'Change Requests',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (44,13,'Download CSV Change',42,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,to_date('16-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (45,13,'Reports',0,null,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (46,13,'% Pats screened',45,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (47,13,'Patient Status',43,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (49,13,'Positive TCIs',48,'Anne',to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,4,null,null,null,to_date('18-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (14,13,'Make Admin more friendly',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('14-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,40,0,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (16,15,'Change Requests',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (18,17,'Create project docs structure',0,'System',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,0);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (19,13,'Set up IC Tree region',14,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('18-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,50,null,2,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (20,13,'Plan IC tree nodes',19,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,3,null,null,null,to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (21,13,'Create IC node pages',19,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('07-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,3,null,null,null,to_date('09-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (22,13,'Help & Support',0,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,1,null,null,null,to_date('17-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (23,13,'On-Line Help',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (24,13,'Written manuals',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (25,13,'Helpdesk documentation',22,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,to_date('21-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (26,15,'Split large fields',16,'Steve',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (27,15,'Ward activation',16,'Caroline',to_date('11-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,2,0,null,2,null,null,'listmanager.asp',null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (28,13,'Set up Micro tree region',14,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (29,13,'Plan Micro tree nodes',28,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (30,13,'Create micro node pages',28,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,3,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (32,31,'Clinic Letters',0,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,0,1,null,null,null,null,0);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (33,31,'Remove interprovide mail',32,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (34,31,'PAS',0,null,to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,1,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (35,31,'get TRUD',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,2,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (36,31,'Enable samba for trud',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,0,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (37,31,'HL7 email',34,'Caroline',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,null,null,1,0,null,2,null,null,null,null,1);
    Insert into TM020_TASKS (TASK_ID,PROJECT_ID,TASK_NAME,PARENT,REQUESTOR,DTE_CREATED,DTE_STARTED,DTE_DUE,DTE_LIVE,PRIORITY,PCENT_COMPLETE,WORK_SEQ,TASK_LEVEL,DTE_TEST,DB_OBJ,APP_OBJ,DTE_SCHED,OWNER) values (38,13,'Create icdb530_pk_trg',21,'Steve',to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),null,2,100,null,4,to_date('13-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),'icdb530_pk_trg',null,to_date('12-JAN-11 00.00.00','DD-MON-RR HH24.MI.SS'),1);

  • Interesting problem with rendering clips into B&W

    I returned to working on a project after a month hiatus. Half of my project, the clips have been successfully rendered to b&w. But beginning last night, I could no longer do that rendering. It would either make the clip all black, or as for tonight, no apparent difference. Now last night an interesting iMovie 06 window popped up while I was working that asked if I wanted to continue with the new settings or the original. Having never seen this window before, I clicked on the new settings option without fully thinking it through. I wonder if that is my problem.
    I am using the imovie video efx as well as the Slick software, both of which I have absolutely no trouble in the past. Other options seem to work just fine.
    Does anyone have any idea as to what's going on? Do I need to save the project and re-load the iMovie from disk?
    One other note. From first working on the project to now, the project has been moved to drive storage unit and I am working from that unit. Shouldn't make any difference, but then again, who knows with machines...
    thanks in advance.
    ciao
    Jeffrey

    when you create a new sequence (Cmd-N), you have a bunch of choices for formats. You can't change one you've already created in FCE. Choose the one that best matches your video.
    Even if you can't match it exactly, (because FCE is limited in the types of sequences you can create) usually it is not a problem as long as you have Real Time processing on and a reasonable mac that can handle converting formats in realtime.
    In FC Pro you can make a sequence with whatever settings you want.

  • Interesting problem from a noob

    I am using Adobe Acrobat Pro ver 8.0.0
    A co worker of mine had a company create him a small cataloge which was sent to him as a .pdf. When viewing the file it is easy to see that it is in the format of a book (ie the pages would be printed and stacked to make the pamphlet). I was asked to make this 10 page pamphlet available on our website for viewing. Now, with the format it arrived in (book form) I could not simply just load it onto the website as the pages would be out of order. I had a good deal of difficulty in trying to manouver pages and rotate them as they where sent to us in a landscape format although when viewing them they where sideways.
    To get around this, here is what I did, (likely quite convoluted for experienced users). I converted each page of the pdf document to a jpg. I then opened each page in photoshop and cropped each halfpage then adjusted its size to 8.5" width and then saved as a jpg again. Once I had all my individual sheets as jpgs with correct size and orientation, I converted them back to pdfs. Once converted, I combined all the individual sheet pdfs into a new binder pdf. I am happy that the orientation is correct and the page order is now correct.
    The problem is that my fist page/image is way smaller than the others. I cannot understand why this should be so. The jpg which it was derived from has the same size properties as the other jpgs that where converted.
    If any one can understand my issue and help me resolve this I would greatly appreciate it.
    If further explanation is required please ask.
    Sorry this post is so verbose.

    There is no nice solution to this, but anything involving JPEG or
    Photoshop will, I fear to say, make for a terrible result. You will
    lose most of the advantages of the PDF format.
    You could consider using Document > Crop Pages to crop all the pages
    to get the left; repeat with a second copy for the right; then merge
    the pages together. Still, all the deleted info will be there, making
    the file needlessly large.
    Ideally, ask for the PDF in its original format, which would be easy
    enough for the creator to have made. Bear in mind that they may charge
    for this (and indeed, they may well own the copyright and might not
    allow it on the web without their permission; it depends on the
    original contract).
    Aandi Inston

  • Interesting 'problem' after moving the WSUS database

    Firstly I have checked the suggested topics but none of them exactly describe the problem I have encountered.  
    (this link just gives a 'post not found page:  http://blogs.technet.com/b/sbs/archive/2009/09/23/how-to-move-sdfssdfdf-content-and-database-files-to-a-different-partition.aspx)
    Okay, I have a SBS2011 server running on an HP Proliant server.  The server has been dunning flawlessly for the last 2+ years. At deployment the WSUS content was initially located on the D drive. Free space on the C drive has dropped to 16GB and
    as a precaution I decided to move the WSUS DB to the D drive too.  I stopped the necessary  ISS Admin, Update and WWW services and proceeded, using  the SQL server management studio, to detach the DB, I moved (copy & paste) the DB to the
    new disk and attached it the the SQL SMS.  Nothing seemed to go wrong there, however, when opening the SBS console I am missing half of my information.  The face that the necessary icons are there leads me to believe that the service is functioning
    but just missing the computer info. If I click on a computer icon I can see the correct computer name. 
    Is there any way to fix this without deleting and reinstalling the entire WSUS service? 
    Thank you in advance for your time! 
    Please see the screenshot below 

    Hi,
    à
    (this link just gives a 'post not found page:http://blogs.technet.com/b/sbs/archive/2009/09/23/how-to-move-sdfssdfdf-content-and-database-files-to-a-different-partition.aspx)
    Please refer to following article and check if you have moved WSUS Content and Databases correctly.
    How
    to Move WSUS Content and Database Files to a Different Volume
    Meanwhile, please run
    SBS BPA and fix relevant issues that BPA tool can find. Then monitor the result.
    If this issue still exists, you may consider that repair Windows Server Update Services. Please refer to following
    TechNet article.
    Repair Windows Server Update Services
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

Maybe you are looking for