Distance between next line

Dear experts,
In sapscript if use the following code,i find that something like this is happening
I have given code for the window i created myself ZWIN
/E: HEADING
AS:   Mr Bob Williams
AS:  12,Vincent Street
AS   :London.
But i find text comes on paper like this on printing.
Mr Bob Williams
12,Vincent Street
London
There is a lot of distance between next line.Which attribute i need to control ?

Hi,
you can create customized paragraph format based on your requirement. But its better to understand each and every function in the styles so that you can understand the behaviour.
Thanks
Arul

Similar Messages

  • Shortest distance between two line segments

    Hi.
    I am looking for the code of the "Shortest distance between two line segments". I would appreciate if anyone has and willing to share.
    I can find some in the net but its in VB and i am not familiar with it.
    THanks a lot.
    regards,

    There are a couple of things that are not clear:
    What determines the rotation speed and lenght of each stick at any given time?
    What is the program allowed to do to prevent collision (change speed/direction, change radius, stop everything)
    Since you want to prevent collision, you need a predictive algorithm. Once they overlap, the collision has already happened. Too late!
    What information does your algorithm get (e.g. r1, r2, theta1, theta2, delta-thetat1, delta-theta2, etc.), i.e. does the program only get static information and need  to construct the trajectory from sequential history data or does it get dynamic information about speed and direction?
    The trivial answer would be to just keep r1+r2 < distance(P1,P2). This will prevent all "potential" collisions.
    LabVIEW Champion . Do more with less code and in less time .

  • How to draw a line(shortest distance)  between two ellipse using SWING

    how to draw a line(should be shortest distance) between two ellipse using SWING
    any help will be appreciated
    regards

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class ELine extends JPanel {
        Ellipse2D.Double red = new Ellipse2D.Double(150,110,75,165);
        Ellipse2D.Double blue = new Ellipse2D.Double(150,50,100,50);
        Line2D.Double line = new Line2D.Double();
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.green.darker());
            g2.draw(line);
            g2.setPaint(Color.blue);
            g2.draw(blue);
            g2.setPaint(Color.red);
            g2.draw(red);
        private void connect() {
            double flatness = 0.01;
            PathIterator pit = blue.getPathIterator(null, flatness);
            double[] coords = new double[2];
            double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        Point2D.Double p = getClosestPoint(coords[0], coords[1]);
                        double dist = p.distance(coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            x1 = coords[0];
                            y1 = coords[1];
                            x2 = p.x;
                            y2 = p.y;
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("blue type: " + type);
                pit.next();
            line.setLine(x1, y1, x2, y2);
        private Point2D.Double getClosestPoint(double x, double y) {
            double flatness = 0.01;
            PathIterator pit = red.getPathIterator(null, flatness);
            double[] coords = new double[2];
            Point2D.Double p = new Point2D.Double();
            double min = Double.MAX_VALUE;
            while(!pit.isDone()) {
                int type = pit.currentSegment(coords);
                switch(type) {
                    case PathIterator.SEG_MOVETO:
                    case PathIterator.SEG_LINETO:
                        double dist = Point2D.distance(x, y, coords[0], coords[1]);
                        if(dist < min) {
                            min = dist;
                            p.setLocation(coords[0], coords[1]);
                        break;
                    case PathIterator.SEG_CLOSE:
                        break;
                    default:
                        System.out.println("red type: " + type);
                pit.next();
            return p;
        public static void main(String[] args) {
            final ELine test = new ELine();
            test.addMouseListener(test.mia);
            test.addMouseMotionListener(test.mia);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    Graphics g = test.getGraphics();
                    g.drawString("drag me", 175, 80);
                    g.dispose();
        private MouseInputAdapter mia = new MouseInputAdapter() {
            Point2D.Double offset = new Point2D.Double();
            boolean dragging = false;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                if(blue.contains(p)) {
                    offset.x = p.x - blue.x;
                    offset.y = p.y - blue.y;
                    dragging = true;
            public void mouseReleased(MouseEvent e) {
                dragging = false;
            public void mouseDragged(MouseEvent e) {
                if(dragging) {
                    double x = e.getX() - offset.x;
                    double y = e.getY() - offset.y;
                    blue.setFrame(x, y, blue.width, blue.height);
                    connect();
                    repaint();
    }

  • PDF TEMPLATES ISSUE...DISTANCE BETWEEN LINES

    Hello People... after a read the manual i tried to do a pdf template based on a legal asset map.
    in Manual i read this
    'Note: The placement of this field in relationship to the
    BODY_START tag defines the distance between the repeating rows
    for each occurrence. See Placement of Repeating Fields, page 8-15.'
    My template have fixed lines and what i want to do is for each ocurrence put the data inside of line of the template. i tried to adjust commanding the space of start body form field and the repeating group field. Some rows stay's inside of the lines of my template but some rows don't. someone know's a way to do this? i dont understand why the distance between the rows have variations and dont stay always at the same distance of the previous line. I can send my output to anyone.
    Tks in advance.

    Kenoli,
    The objects are interacting because they are Inline (Moves with Text) and/or you have "Causes Wrap" turned on.
    With the object selected, go to the Format Pane and the Arrange Tab, set the Object Placement the way you want it and adjust Text Wrap to None.
    Jerry

  • Diversity - Distance between Antennas

    Considering both antennas are similar-type and gain the two imp criterias i read in achiveing Diversity is
    1. Antennas should be placed close enough to each other so that the RF coverage area is nearly identical.
    2. The receiving antennas are spaced sufficiently apart to achieve independence (no coupling) between the received signals.
    So the distance between both the antenna would be important.
    In a cisco doc,
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_tech_note09186a008019f646.shtml
    For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    Hence for 2.4GHz wavelength,
    Dist bet diversity Ant = 12.5cms Or 25cms or 37.5cms or 50cms
    now from below POST:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc18267
    The spacing can be in multiples but is best in multiples of odd numbers. 1x or 3x. This allows for the phase to be always 100% out for the opposing antennae. 2x could cause phase shift overlay and could result in both antennae receiving the same phase shift differentiation.
    Is this true? then my choise would narrow down to "Dist bet diversity Ant=12.5cms or 37.5cms'
    But from below POST iam confused regarding point 1 and 2 (I have put them pointwise just for reference)
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc0332d
    1. Never should you have the antennas exactly one wavelength away from each other. For the frequency of 2400, one wavelength is 4.92"... so any distance that is not a multiple of 4.92 and no more than a multiple of 4 is recommended.
    2. You should use 1/2 wavelength distances and to be safe no more than multiple of 3.
    My Questions are
    1. Should the distance between my Antennas for diversity be any len more than 12.5 cms and less than 25cms or more than 37.5cms and less than 50cms?
    2. Is it that the distance between my Antennas for diversity should not be exactly equal to the multiple of wavelengths? (12.5cms, 25cms, 37.5cms, 50cms)
    3. Is it that i have to use only odd wavelengths multiples? (12.5cms, 37.5cms) and should not use even multiples?
    4. The use 1/2 wavelength distances between the antennas is diversity. Is it ok? or is the minimum 1 wavelength as specfied in the cisco doc.
    Also from the below POST iam confused regarding the MAX distance:
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Wireless%20-%20Mobility&topic=WLAN%20Radio%20Standards&topicID=.ee6e8c2&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1dd7905b
    "Distance beyond 1-2 wavelengths is not critical. Since the antennas are not transmitting and/or receiving at the same time,there is no real chance of overloading the other antenna or radio front-end. "
    There's not really a "max distance" as far as diversity is concerned. By placing the antennas some distance apart (the minimum, I believe, is ~one wavelength), you optimize the chance that a signal that is null (or interfered with) on one side, isn't on the other.
    my question is
    5. Is there a max distance between the antennas in diversity (like we read 4xwavelength) or there is no max distance? then wont there evolve a different RF coverage area for both the Antennas?
    Another important question
    > If my wireless card supports 5GHZ and 2.4GHZ and hence my antennas would be dual band. Then to achive antenna Diversity, what would be the distance between the two antennas? The minimum distance should be 1 wavelength, so For 2.4GHz wavelength = 12.5cm and for 5GHz wavelength = 6cm.
    For a dual band antenna? how much should it be? Whats the min and max.
    someone please can help me solve the huge confusion in my mind :)

    First, let me say that this is certainly a well-done post, good job of back-tracking the links and expressing your questions.
    The next thing is that there are more than a few nuances when dealing with RF and signal transmission and propagation, so to cover a specific topic fully would frequently cover more space than provided.
    With all that dancing out of the way ;-), I'll take a shot at answering your questions...
    "Is there a max distance ... ?"
    Well, no, not really ... but there is a max *effective* distance and a fairly specific point of diminishing returns (as mentioned in the linked posts).
    The design and implementation goal is to create a sort of "binocular view" with the antennas, such that the chance of a "null" is reduced, such that the signal / pattern developed from the diverse pair of antennas will create at least one clean and clear (reduced multipath, reduced nulls, possibly better line of sight)signal to (ideally) every client in the coverage area.
    Even though only one antenna is active at any given time, having any conductor within the radiated field will distort the transmission envelope, either positively (in the case of a Yagi) or negatively (in the case of a grounded conductor, like a sprinkler head).
    The amount of the distortion, and the shape of the distortion are functions of the size and shape of the parasitic element. The effect is so variable that it is one of the foundations for the contention that a comprehensive site survey is not really an option, it's mandatory; it's truely the only way to see what adaptations are necessary to make the "rules of thumb" function in the specific location.
    Regarding antennas handling multiple bands:
    The antennas (in this case) are close to resonant multiples. The differences are such that the logical / electrical length can be adjusted by adding inductive or capacitive loads at the transmitter or feed point.
    Even though the physical shape of the antennas may be different from model to model, the electrical load characteristics for a given band / antenna remain similar, so electronically compensating to make an antenna primarily designed for 2.4GHz function well for 5.6GHz is not especially difficult. Going from the longer wavelength to the shorter is more effective and easier to design than trying to go the other way.
    For example, a quarter-wave 2.4GHz antenna is easily compensated to create a good half wave (or loaded 5/8) 5.6GHz antenna.
    So, (finally) to provide the proper spacing for a diverse pair of multi-band antennas, figure for the longer wavelength (2.4GHz in this case) and the (roughly double) distance is likely to be acceptable for the higher wavelength. The spacing doesn't have to be exact; personally, I used to shoot for ~18" (variable with the mounting location and antenna type)and I always had pretty good luck, according to the follow-up survey.
    Because of the jillions of possible variables, you can't just calculate and hang the antennas and be done ... a survey should be done to verify the installations and to make educated adjustments that will optimize the system for that specific location and environment.
    The initial calculations are ideal guidelines, then you make adjustments to cover things like metal wall studs, sprinkler heads, the boss' favorite "wall o' vines" ... you will rarely get a perfect environment, adjustments are almost always required.
    It's late and I'm starting to babble ... ponder the above and let us know if it helped any. There are a great bunch of experienced folks here, and I think this will be the start of a great discussion.
    Good Luck
    Scott

  • Unable to find line break between two lines in attachment file.

    Dear all I will be very great full if someone help me out,
    I am trying to send mail through SMTP server with an attachment of oracle report, but I am unable to find line break between two lines, when I down load the attachment from mail and open attach.txt file by double click on it. Next line starts right after previous line ends, it should starts with new line.
    In order to send an attachment file, I am reading source file line by line and put MIME protocol’s attachment instance, contain of source file is being properly written into target file if I open that attachment on cmd prompt.
    Following code may help you to understand the case.
    Thanks in advance.
    My code is as follows:-
    create or replace procedure bec_file_test
    v_subject varchar2, -- Subject of the email
    v_body varchar2, -- Body of the email
    v_from VARCHAR2 default 'XYZ.com', -- sender mail id
    v_to varchar2 default 'XYZ.com', -- Field To of the email
    v_cc varchar2 default 'XYZ.com' -- cc address
    ) is
    -- variable to hold the smtp server connection
    v_smtp_connection utl_smtp.connection;
    -- variable to hold the smtp host name
    v_smtp_host varchar2(100) default 'mail.bec-group.com';
    -- variable to hold the smtp port
    v_smtp_port number default 25;
    -- composite of {CR}{LF} caridge return and line feed.
    CRLF varchar2(2):=CHR(13)||CHR(10);
    cursor pr_rec is
    select requisition_no,line_no,release_no,a.contract,
    a.project_id,substr(a.activity_seq,1,11)ACT_SEQ,
    substr(a.part_no,1,12)PART_NO,
    substr(a.description,1,32)DESCRIPTION,
    substr(a.Bal_qty,1,8) BAL_QTY,
    substr(a.unit_meas,1,5)UOM,
    a.wanted_receipt_date WAN_REC_DT,
    a.latest_order_date LAT_ORD_DT
    from bec_pr_line_rep a
    where a.Bal_qty>0 and a.header_state not in 'Closed'
    and upper(a.state1) like 'RELEASED' and a.contract not in ('U1ENG','ULENG','U1FND','U2FND')
    and a.buyer_code='70306'
    order by a.part_no;
    begin
    declare
    fHandle UTL_FILE.FILE_TYPE;
    v_msg_line varchar2(2000);
    -- v_buffer varchar2(20000);
    --ALTER SYSTEM SET utl_file_dir = 'D:\Database\temp'
    --COMMENT='Temporary change on Dec 14'
    --SCOPE=SPFILE;
    SELECT name, value
    FROM gv$parameter
    WHERE name = 'utl_file_dir';
    --drop directory my_directory
    --CREATE or replace DIRECTORY my_directory AS 'D:\database\temp';
    --GRANT read,write ON DIRECTORY my_directory TO PUBLIC;
    begin ---writing data into a file.
    fHandle := UTL_FILE.FOPEN('MY_DIRECTORY', 'pending_pr_summry.txt', 'w');
    UTL_FILE.put_line(fHandle, ' Pending PR to process (detail report)');
    UTL_FILE.put_line(fHandle,TO_CHAR(SYSDATE,'MM-DD-YY HH:MI:SS AM'));
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, 'Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt' );
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    for pr_temp in pr_rec loop
    begin
    v_msg_line:=to_char(rpad(pr_temp.requisition_no,12,' ')||'|'||
    lpad(pr_temp.line_no,3,' ')||'|'||
    lpad(pr_temp.release_no,3,' ')||'|'||
    rpad(pr_temp.contract,7,' ')||'|'||
    lpad(nvl(pr_temp.project_id,' '),7,' ')||'|'||
    lpad(nvl(pr_temp.act_seq,' '),12,' ')||'|'||
    lpad(pr_temp.part_no,12,' ')||'|'||
    rpad(pr_temp.description,35,' ')||'|'||
    lpad(pr_temp.bal_qty,10,' ')||'|'||
    rpad(pr_temp.uom,6,' ')||'|'||
    lpad(pr_temp.wan_rec_dt,14,' ')||'|'||
    lpad(pr_temp.lat_ord_dt,14,' '));
    UTL_FILE.put_line(fHandle,v_msg_line);
    end;
    end loop;
    UTL_FILE.put_line(fHandle, '--------------------------------------------------------------------------------------------------------------------------------------------------');
    UTL_FILE.put_line(fHandle, ' Regards : IFSAPP ( Application owner ) ');
    UTL_FILE.FCLOSE(fHandle); ------------writing into file is successfuly done here!
    --Reading of file starts here containt will be added in attchment file
    fHandle :=UTL_FILE.FOPEN('MY_DIRECTORY','pending_pr_summry.txt','R' );
    -- establish the connection to the smtp server
    v_smtp_connection := utl_smtp.open_connection(v_smtp_host, v_smtp_port); /** OPEN CONNECTION ON THE SERVER **/
    -- perform a handshake with the smtp server
    utl_smtp.helo(v_smtp_connection, v_smtp_host); /** DO THE INITIAL HAND SHAKE **/
    -- set the 'from' address of the message
    utl_smtp.mail(v_smtp_connection, v_from);
    -- add the recipient to the message
    utl_smtp.rcpt(v_smtp_connection, v_to);
    -- send the email
    utl_smtp.open_data(v_smtp_connection);
    v_msg_line:='Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || CRLF ||
    'From: ' || v_from || CRLF ||
    'Subject: ' || v_subject || CRLF ||
    'To: ' || v_to || CRLF ||
    'Cc: ' || v_cc || CRLF ||
    'MIME-Version: 1.0'|| CRLF || -- Use MIME mail standard
    'Content-Type: multipart/mixed;'||CRLF ||
    ' boundary="-----SECBOUND"'||CRLF||
    CRLF ||'-------SECBOUND'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'Content-Transfer_Encoding: 7bit'|| CRLF ||
    CRLF ||v_body|| CRLF;     -- Message body
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    v_msg_line:='-------SECBOUND'|| CRLF ||
    'Content-Type: application/octet-stream;'|| CRLF ||
    'Content-Type: text/plain;'|| CRLF ||
    'name="pending_pr_summry.txt"'|| CRLF ||
    'Content-Transfer_Encoding: 8bit'|| CRLF ||
    'Content-Disposition: attachment;'|| CRLF ||
    ' filename="pending_pr_summry.txt"'|| CRLF || CRLF;     -- Content of attachment
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    -- check file is opened
    IF utl_file.is_open(fHandle) THEN
    -- loop lines in the file
    LOOP
    BEGIN -- Content of attachment
    utl_file.get_line(fHandle,v_msg_line);
    v_msg_line:=concat(v_msg_line,CRLF);
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    END LOOP;
    END IF;
    --end of attachment containt     
    utl_smtp.write_data(v_smtp_connection,v_msg_line);
    UTL_FILE.FCLOSE(fHandle);
    utl_smtp.close_data(v_smtp_connection);
    utl_smtp.quit(v_smtp_connection);
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
    when utl_smtp.transient_error then
    dbms_output.put_line(' Temporary e-mail issue - try again');
    when utl_smtp.permanent_error then
    dbms_output.put_line(' Permanent Error Encountered.');
    when others then
    dbms_output.put_line('Exception: SQLCODE=' || SQLCODE || ' SQLERRM=' || SQLERRM);
    RAISE;
    end;
    end bec_file_test;

    Pending PR to process (detail report)01-17-13 12:43:19 PM--------------------------------------------------------------------------------------------------------------------------------------------------Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt--------------------------------------------------------------------------------------------------------------------------------------------------MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade |500|kg |30-NOV-2012| 20-nov-2012MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012MAT/250606 | 2| |NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | |1|NMDCJ|6001|100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1|pkt | 25-DEC-2013| 14-dec-2013--------------------------------------------------------------------------------------------------------------------------------------------------
    where as source file is like that:-
    Pending PR to process (detail report)
    01-17-13 12:43:19 PM
    Req.no. li Re Site Prj Id Act seq Part no Description Qty UOM want rec dt lat ord dt
    MAT/250370 | 2| 1|ISCSP | 4977| 100004207| 0104000016|Angle 50 X 50 X 6 IS:2062 Grade | 5500|kg | 30-NOV-2012| 20-nov-2012
    MAT/250370 | 3| 1|ISCSP | 4977| 100004207| 0105000002|Channel 100 X 50 IS:2062 Grade A | 1000|kg | 30-NOV-2012| 20-nov-2012
    MAT/250579 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 2991|kg | 13-DEC-2012| 03-dec-2012
    MAT/250606 | 2| 1|NMDCJ | 6002| 100005860| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 2| 1|NMDCJ | 6001| 100005580| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 1500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 3| 1|NMDCJ | 6002| 100005818| 0109020002|TMT Bar 10 mm Fe 415 IS:1786 | 3939|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 4| 1|NMDCJ | 6002| 100005860| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 39000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 4| 1|NMDCJ | 6001| 100005580| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 2| 1|NMDCJ | 6002| 100005818| 0109020004|TMT Bar 16 mm Fe 415 IS:1786 | 12183|kg | 29-DEC-2012| 19-dec-2012
    MAT/250606 | 6| 1|NMDCJ | 6002| 100005860| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 9500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 6| 1|NMDCJ | 6001| 100005580| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 4500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 6| 1|NMDCJ | 6002| 100005818| 0109020006|TMT Bar 25 mm Fe 415 IS:1786 | 17500|kg | 29-DEC-2012| 19-dec-2012
    MAT/250607 | 7| 1|NMDCJ | 6001| 100005580| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 22000|kg | 29-DEC-2012| 19-dec-2012
    MAT/250194 | 7| 1|NMDCJ | 6002| 100005818| 0109020008|TMT Bar 32 mm Fe 415 IS:1786 | 27060|kg | 29-DEC-2012| 19-dec-2012
    MAT/251138 | 1| 1|NMDCJ | 6002| 100005825| 3501000001|Cement 50 kg | 1 |pkt | 25-DEC-2013| 14-dec-2013
    Ignore alignment. It is well formatted in source file.

  • How can I find the words which spans across end of line to next line in pdf ?

    I am using Acrobat Adobe X Pro version for our form development and maintanence. I am writting a Acrobat JAVA batch script which reads through all the words and execute spell check and reports the mispelled words in a excel sheet. Since I am running this script in batch mode for more than 1000 pdfs - I am getting many words joined together. When I looked in to those pdfs all such words are looking okay because it is appearing in end of right margin and the next word is in the next line. Since there was no space between them it was extracted as a single word. Hence the failure.
    I used wordf = this.getPageNthWordQuads(i,j)  to get the word begin and end coordinates. when I closely observe the values are creating a rectangle and that doesnt span across lines. I got the coordinates for the regular word and the word which span acoross two lines. both of the coordinates are same.
    I think I am screwed - I have 8000 such words and no clue of how to get rid of them from the actual misspelled words.
    please help. let me know if any class /method if I call will give me the end of line or do I need to go to next layer to find this split.
    the addnot is somehow marking the words using this coordinates - please hellp me understand how this works. Thanks.
    // for all pages
    for (var i = 0; i < this.numPages; i++ )
    // For all the words
    pg += 1;
    numWords = this.getPageNumWords(i);
    for ( j = 0; j < numWords; j++)
    //get the spell check 
    ckWord = spell.checkWord(this.getPageNthWord(i,j))
    if ( ckWord != null )
    jn=0
    ml=0
    // if mispelled word found.
    wordf = this.getPageNthWordQuads(i,j)
    swordf = wordf.toString()
    var st = swordf.split(",")
    var diffx0 = parseInt(st[0])-8
    var diffx1 = parseInt(st[1])-8
    var diffx2 = parseInt(st[2])-8
    var diffx3 = parseInt(st[3])-8
    var diffx4 = parseInt(st[4])-8
    var diffx5 = parseInt(st[5])-8
    var diffx6 = parseInt(st[6])-8
    var diffx7 = parseInt(st[7])-8
    if (cWord == csword)
    jn = 1
    if ( st[1] != st[3] )
    ml = 1
    //dataLine += "\r\n write "
    else
    ml=2
    dataLine += "\r\n"+this.documentFileName
    + "\t" + this.getPageNthWord(i,j)
    + "\t" + pg
    + "\t" + j
    + "\t" + ml
    + "\t" + jn
    + "\t st[0] " + diffx0 + "\t st[1] " + diffx1 + "\t st[2] " + diffx2 + "\t st[3] " + diffx3 
    + "\t st[4] " + diffx4 + "\t st[5] " + diffx5 + "\t st[6] " + diffx6 + "\t st[7] " + diffx7 
    ck=1

    If Acrobat is reading each word part as separate words, you have a problem.
    The way I approached it in some of my tools was to check if a word ends
    with a hyphen, and if so, to check if it's the last on the line. If both
    conditions are true, combine with the next word on the next line. This is
    not fool proof, of course, as there are documents with columns are other
    structural elements that prevent this from working. Better than nothing,
    though...
    However, it is also possible that Acrobat does see both parts as parts of
    the same word. In that case, getPageNthWordQuads() will return multiple
    quads arrays. As you know, that method returns an array of quad arrays.
    There's usually only one, but in principle there could be more... Something
    to check before giving up.

  • Calculating co-ordinate distances between specific atoms

    Hi,
    Below is some code to calculate distances between all pairs of atoms. However, i need to make it slightly more specific by only calculating the distance between certain pairs of atoms
    input
    ATOM 5 CA PHE 1 113.142 75.993 130.862
    ATOM 119 CA LEU 7 113.101 72.808 140.110
    ATOM 138 CA ASP 8 109.508 74.207 140.047
    ATOM 150 CA LYS 9 108.132 70.857 141.312
    ATOM 172 CA LEU 10 110.758 70.962 144.119
    e.g distance between all pairs for atoms 5, 119, 150 and 172 (say), last three columns are x,y and z co-ordinates
    code it self
    import java.util.*;
    import java.io.*;
    public class Distance {
    public static void main(String[] args) {
    System.out.println("***Campbells PDB Distance Calculator***" + "\n");
    new Distance();
    System.out.println("\nResults printed to file DistanceCalculations" + "\n");
    System.out.println("\nDue to nature of code, if rerun results will be appended to the end of previous run.");
    public Distance() {
    Vector atomArray = new Vector();
    String line;
    try{
    System.out.println("Enter PDB file:" + "\n");
    BufferedReader inputReader =new BufferedReader (new InputStreamReader(System.in));
    String fileName = inputReader.readLine();
    if ( fileName !=null) {
    BufferedReader inputDistance = new BufferedReader (new FileReader (fileName));
    while (( line = inputDistance.readLine()) !=null && !line.equals(""))
    Atom atom = new Atom(line);
    atomArray.addElement(atom);
    for (int j=0; j<atomArray.size(); j++) {
    for (int k=j+1; k<atomArray.size(); k++) {
    Atom a = (Atom) atomArray.elementAt(j);
    Atom b = (Atom) atomArray.elementAt(k);
    Atom.printDistance (a,b);
    } //if
    } //try
    catch (IOException e) {
    System.out.println("Input file problem");
    } catch (Exception ex) {
    System.out.println (ex);
    class Atom {
    public double x, y, z;
    public String name;
    public Atom(String s) throws IllegalArgumentException {
    try {
    StringTokenizer t = new StringTokenizer (s, " ");
    t.nextToken();
    this.name = t.nextToken();
    for (int j=0; j<3; j++) t.nextToken();
    this.x = new Double(t.nextToken()).doubleValue();
    this.y = new Double(t.nextToken()).doubleValue();
    this.z = new Double(t.nextToken()).doubleValue();
    catch (Exception ex) {
    throw new IllegalArgumentException ("Problem!!!! :-(");
    public String toString() {
    return "atom : " + name + "(x=" + x + " y=" + y + " z=" + z + ")";
    public double distanceFrom (Atom other) {
    return calculateDistance (x, y, z, other.x, other.y, other.z);
    public static double calculateDistance (double x1, double y1, double z1, double x2, double y2, double z2) {
    return Math.sqrt(Math.sqrt(Math.pow(Math.abs(x1-x2),2)+Math.pow(Math.abs(y1-y2),2))+Math.pow(Math.abs(z1-z2),2));
    public static void printDistance (Atom a, Atom b) {
    try{
    FileWriter fw = new FileWriter("DistanceCalculations", true);
    PrintWriter pw = new PrintWriter (fw, true);
    if
    (a.distanceFrom(b) <9){
    pw.println("Distance between " + a.toString() + " and " + b.toString() + " is " + a.distanceFrom(b));
    pw.flush();
    pw.close();
    } // if??
    } //try loop
    catch(IOException e) {
    System.out.println("System error");
    }

    ok, essentially
    want to calculate distance between to ranges. Say
    range 1 is the first three, range 2 the rest. THen
    calculate distance between all possible pairs between
    these two rangesYes - and no doubt that any number of people here could write it for you. But that's not what the forum is about. So what, exactly, is preventing you from doing it?
    Sylvia.

  • Table of Contents page numbers on next line (solution won't work!)

    I'm having this problem where the page number for my item in the table of contents appears on the next line instead of allt he way to the right on the same line. Example:
    Chapter 1 . . . . . . . . . . . .
    4
    instead of
    Chapter 1 . . . . . . . . . . . .4
    A solution has already been posted, but it won't work for me:
    "This is simple to solve. Select the TOC entry and show the text inspector. There press the "Tab" button for the tabulator seetings. At the bottom is a list of tab stops. Select the last one with a double click and set the number to a slight lower number then the width of your TOC area is. Make sure the tab stop is for right aligning by activating the button on the right side of the tab stop list (but I think it is already). Do that for all TOC levels and don't forget to save the styles." -Frank
    When I try to do this, I type my desired tab stop in (5 in, incidentally) and then as soon as I click outside the field it reverts to the default, which is the full width of my column.
    Anyone know why this might be? Thank you!

    Just to be clear, are you trying to set you tab stop at the 5 inch mark? What is your left margin setting? I believe the tab setting is the distance from the left margin, not the actual point along the paper width. Since you said in an earlier post that you are working on a booklet, I thought perhaps your left margin + 5 may be exceeding the allowable width inside your margins.
    MacBook Pro   Mac OS X (10.4.9)  

  • Is there any css to vary the distance between two items in apex

    Hi,
    Is there any css to vary the distance between two items ie two columns  horizontally / vertically in apex application at page line level
    Regards,
    Pavan

    Hi ,
    I done what u suggested above  but  i ll tel u clearly
    i have name,plot no,street,city,distict,state,country,phone no,pincode items.. i need to align this items like
    --------------------------------------------------------------------------main region----------------------------------------------------------------------------
    --left region-------------------------------------------middle region------------------------------------------------------right region-------------------
    name,___________
    plot no,_________
    street,________
    city,___________                                    distict,_________                                              
    state,__________                                   country,_________                                                  nothing in it
    phone no,__________                              pincode_________
    to achieve this wat i have to do
    Thanks,
    pavan

  • Find driving distance between two points without using API by use of Lat & Long?

    Using Google geocode API : http://maps.googleapis.com/maps/api/geocode/xml?address=thane&sensor=true
    We performed get distance between search criteria entered by user and all related clubs by lat & long  stored at db.
    2. Two different points such as  
    (origin: Lat1 & Long1) and (destination: Lat2 & Long2)
    We tried for to get distance between these two points,
     (Lat2 & Long2) to (Lat1 & Long1)
    But distance which we get by calculation is simple straight line distance 
    Origin Destination
    (Lat1 & Long1) (Lat2 & Long2)
    3. This is not driving distance as google shows in exact Km
    4. For that Google provide another API (distancematrix API)
    http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Thane&sensor=true&destinations=khopat&mode=driving&language=en%20-%20EN
    5. But there is limit for DistanceMatrix-Service without ClientID and client key
    100 elements per query.
    100 elements per 10 seconds.
    2 500 elements per 24 hour period.
    But as element request exceeds it shows : OVER_QUERY_LIMIT error  
    6. In case of Client ID and Client key
    In Distance Matrix 100 000 elements per 24 hour period,a maximum of 625 elements per query and a maximum of 1 000 elements per 10 seconds.
    As per this one there is option to get purchase these API but basic question is remain same for us if we are requesting single origin and multiple destination then how element calculation done by google?
    But in document google says :
    Elements
    The information about each origin-destination pairing is returned in an element entry. An element contains the following fields:
    Status: See Status Codes for a list of possible status codes.
    Duration: The duration of this route, expressed in seconds (the value field) and as text. The textual representation is localized according to
    the query's language parameter.
    Distance: The total distance of this route, expressed in meters (value) and as text. The textual value uses the unit system specified with the
    unit parameter of the original request, or the origin's region.

    Any information that you see in a google map webpage can be retrieved using the API.  The best way of finding the tags on the webpage is to manually perform the query using an IE webpage.   Then capture the source and save to a file so you
    can use a text editor to look at results.  I often on a webpage use the menu : View -  Source and then copy the source to a text file.
    jdweng

  • Report format - distance between rows

    Hi,
    After formatting a output(report), the distance between rows is much bigger than on output w/o format.
    What parameter controls the distance between rows?
    How to make the output/report more dense in row sense?
    Thx,

    Use BREAK ON column-name SKIP n
    where n is how many lines to skip:
    sql>create table t (one varchar2(3), two number );
    Table created.
    sql>insert into t values ('aaa', 1 );
    1 row created.
    sql>insert into t values ('aaa', 2 );
    1 row created.
    sql>insert into t values ('bbb', 3 );
    1 row created.
    sql>break on one skip 2;
    sql>select * from t;
    ONE TWO
    aaa 1
    2
    bbb 3
    (note: this doesn't display in "preview" with correct formatting so just try it and you'll see)

  • Length of record 2000,after 991 char remaining data appears in next line

    Length of the record is 2000,but after 991 character the remaining data is placed in next line.the file is received in mail as attachment.
    mail informations - MIME setting available is 1.0 version and encoding is 7 bit
    File is opend and reads a line, while writing using utl_smtp.write_data writes 991 character and places a new line character chr(13) || chr(10).
    problem is in utl_smtp.write_data
    Can any one help ,who faced this issue and got rectified
    Edited by: 796208 on Sep 22, 2010 4:51 AM

    I still do not see a problem using attachments with long lines and mixing that with a mail body using long lines.
    SQL> declare
      2          type TStrings is table of varchar2(1000);
      3 
      4          smtpSender      varchar2(100)   := '[email protected]';
      5          smtpRecipient   varchar2(100)   := '[email protected]';
      6          mailSubject     varchar2(100)   := 'Sample Mail';
      7          mimeBoundary    varchar2(100)   := 'CutHere';
      8          smtpConn        UTL_SMTP.connection;
      9 
    10  BEGIN
    11          smtpConn := UTL_SMTP.open_connection( 'mail.domain.com', 25);
    12 
    13          UTL_SMTP.helo( smtpConn, '[email protected]' );
    14          UTL_SMTP.mail( smtpConn, smtpSender );
    15          UTL_SMTP.rcpt( smtpConn, smtpRecipient );
    16 
    17          -- start sending mail body using the data command
    18          UTL_SMTP.open_data( smtpConn );
    19 
    20          -- write header
    21          UTL_SMTP.write_data( smtpConn, 'MIME-Version: 1.0'||utl_tcp.CRLF );
    22          UTL_SMTP.write_data( smtpConn, 'Content-Type: multipart/related; type="text/plain"; boundary="'||
    23                                  mimeBoundary||'"'|| utl_tcp.CRLF );
    24          UTL_SMTP.write_data( smtpConn, 'From: '||smtpSender||utl_tcp.CRLF );
    25          UTL_SMTP.write_data( smtpConn, 'To: '||smtpRecipient||utl_tcp.CRLF );
    26          UTL_SMTP.write_data( smtpConn, 'Subject: '||mailSubject||utl_tcp.CRLF );
    27 
    28          -- empty line between header and rest of mail body
    29          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    30          UTL_SMTP.write_data( smtpConn, 'This is a multi-part message in MIME format.'|| utl_tcp.CRLF );
    31          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    32 
    33          -- now write the mail body
    34          UTL_SMTP.write_data( smtpConn, '--'||mimeBoundary || utl_tcp.CRLF );
    35          UTL_SMTP.write_data( smtpConn, 'Content-Type: text/plain; charset="us-ascii"'|| utl_tcp.CRLF );
    36          UTL_SMTP.write_data( smtpConn, 'Content-Transfer-Encoding: quoted-printable'|| utl_tcp.CRLF );
    37          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    38          UTL_SMTP.write_data( smtpConn, 'start of mail message:'|| utl_tcp.CRLF );
    39          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'1') );
    40          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'2') );
    41          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'3') );
    42          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    43          UTL_SMTP.write_data( smtpConn, 'end of mail message' );
    44          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    45 
    46          -- add an attachhment
    47          UTL_SMTP.write_data( smtpConn, '--'||mimeBoundary || utl_tcp.CRLF );
    48          UTL_SMTP.write_data( smtpConn, 'Content-Type: text/csv'|| utl_tcp.CRLF );
    49          UTL_SMTP.write_data( smtpConn, 'Content-Disposition: attachment; filename="test.csv"'|| utl_tcp.CRLF );
    50          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    51          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'1')|| ',' );
    52          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'2')|| ',' );
    53          UTL_SMTP.write_data( smtpConn, lpad('x',1000,'3')|| utl_tcp.CRLF );
    54          UTL_SMTP.write_data( smtpConn, utl_tcp.CRLF );
    55 
    56          -- close the data command
    57          UTL_SMTP.close_data( smtpConn );
    58 
    59          -- terminate connection
    60          UTL_SMTP.quit( smtpConn );
    61  end;
    62  /
    PL/SQL procedure successfully completed.
    SQL> The mail shows correctly in my mail reader - both body and attachment contains lines that exceed a the 998(?) character limit you said results in a CRLF to be inserted.
    Make sure you know how your SMTP server deals with longs lines ito RFC compliance. Use telnet, from the Oracle db server platform, and connect to the SMTP server and manually send an e-mail with long lines. Determine what the end-result is (viewing raw mail contents) in the mail reader.
    Or post a (easily executed) test case here that demonstrates the specific problem.

  • Finding Distance between two zipcodes with longtitude and latitude

    Want to find distance between two zipcodes that have their latitude and longitude stored in a table.
    The table is as follows
    CREATE TABLE distance (zipcode VARCHAR2, LNG NUMBER, LAT NUMBER)
    I couldn't come up with a calculation or understand the mathematical calculation on line.. Can you help me with some stored procedure that will do..?
    Thanks

    There is no logical complexity in your query besides knowing the basics of
    http://en.wikipedia.org/wiki/Spherical_coordinates
    Also, the table name "Distance" cannot be more confusing; what you have is essentially "PointsOnSphere".
    select R*sqrt(
    (sin(pi-p1.lng)*cos(p1.lat)-sin(pi-p2.lng)*cos(p2.lat))* (sin(pi-p1.lng)*cos(p1.lat)-sin(pi-p2.lng)*cos(p2.lat))
    +
    (sin(pi-p1.lng)*sin(p1.lat)-sin(pi-p2.lng)*sin(p2.lat))*
    (sin(pi-p1.lng)*sin(p1.lat)-sin(pi-p2.lng)*sin(p2.lat))
    +
    (cos(pi-p1.lng)-cos(pi-p2.lng))*(cos(pi-p1.lng)-cos(pi-p2.lng))
    from distance p1, distance p2
    where R is the radius of Earth, and pi=3. Don't forget to convert angular degrees into radiants before you plug in them into the query above
    Correction: This was euclidean distance sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2) between the points (x1,y1,z1) and (x2,y2,z2). Spherical distance is
    sqrt(
    (R*(colatitude1-colatitude2))^2+
    (R*sin(colatitude1-colatitude2)*(longtitude1-longtitude2))^2
    Message was edited by:
    Vadim Tropashko

  • Distance between zipcodes

    Want to find distance between two zipcodes that have their latitude and longitude stored in a table.
    The table is as follows
    CREATE TABLE distance (zipcode VARCHAR2, LNG NUMBER, LAT NUMBER)
    I couldn't come up with a calculation or understand the mathematical calculation on line.. Can you help me with some stored procedure or straight query that will do..?
    Thanks

    Hi
    Your best bet here is to convert the long/lat values to the spatial 'sdo_geometry' and use the sdo_geom.sdo_distance function.
    -- create table
    CREATE TABLE distance (zipcode VARCHAR2(5), LNG NUMBER, LAT NUMBER);
    -- Add sample rows
    insert into distance values (90210,-118.4099,34.0925);
    insert into distance values (90806,-118.1894,33.8039);
    -- add geometry column
    alter table distance add geom sdo_geometry;
    -- convert coordinates to geometry
    update distance set geom = sdo_geometry(2001,8265,sdo_point_type(lat,lng,null),null,null);
    commit;
    -- example usage
    select from_zipcode,to_zipcode,sdo_geom.sdo_distance(from_geom,to_geom,0.005,'unit=mile') distance
    from
    (select zipcode from_zipcode,geom from_geom
      from distance
    where zipcode = '90210') f,
    (select zipcode to_zipcode,geom to_geom
      from distance
    where zipcode = '90806') t;
    FROM_ZIPCODE TO_ZIPCODE DISTANCE              
    90210        90806      17.9768483148904       This distance is of course 'straight line' and not driving / walking time!
    The '8265' above is the spatial reference identifier and I think is the right value to use here, although I'm sure my American counterparts will be happy to correct me if I have this wrong (i'm based in the UK and don't use American data that much anymore....)
    If you wish to do any other analysis (such as nearest neighgbour etc) you will need to add metadata and a spatial index to this example....
    You could implement the Great Circle calculation yourself and completely avoid using locator/spatial altogether but this would involve more code (= time = money).
    Steve

Maybe you are looking for

  • Change in Sales order deleted all process production order

    Dear All, We have Make to order scenario for our export sales. When we have receive order we make production with reference of sales order with help of t-code MD50 then convert plan order into production order. IF sales department do changes in sales

  • Macbook Pro randomly freezes time to time

    My Macbook Pro, end '11, randomly freezes from time to time. Especially when I'm on iTunes/Spotify/VLC/Skype. I ran the Etrecheck program and got this output. Could someone tell me how to fix this? It isn't exactly really ****** but it does get frust

  • Create an IDOC using Txt file

    Hello All, I have recived an   IDOC DATA in TEXT file. would u please help me how to create an idoc using the above text file. Kind Regards, Dev.

  • Automatic Audio "Ducking"?

    Hi everyone, I just recently purchased an HP Pavilion dv6-7010us laptop for school and I'm having an issue with audio playback. Any time I listen via my earbuds, the audio seems to automatically "duck" or "sound check" itself.  For example, a song I

  • Inline Objects Causing Grief

    I am writing a diary in the Word Processing layout of Pages, which is 95% text, but I want to be able to add photographs and other objects to illustrate it. I am having great difficulty making objects stay inline. I position them exactly where I want