Hello, I am new and needing help uploading .mov to my website ..

Hello everyone, I have been attempting to get a short (about 3 min video with .mov extension) on my website. All I get is the red x. I have no idea what the html coding is to get this short video to play on my site when a visitor wants it to play. Can anyone in here help me with this?

You're very close.
Treat the object and embed tags as individual entries (even though the embed tag is "nested" inside the object tag).
Each tag requires a source and height and width. They must match.
The object tag should have the "classID" info (the long string of characters) and the "codebase". Both tags should also have the link to the QT plug-in page.
You can view the html source of one of my pages to see how I use the tags:
http://homepage.mac.com/kkirkster/California/index.html
Notice the structure of the other object tags. You'll see a param name and a value. Each line must begin and end with < and>. The embed tags don't use the symbols.
Sounds difficult. Use copy/paste from my code to your html page. Edit the information to point to your file and its height and width. Remove the entire line for controller="false" and kioskmode ="true" tags.

Similar Messages

  • Hello i am new and need help

    hi i am in dire need of help i have been asked to create a program using Java sockets, construct a simple automated
    auction system. The server program, which is the auctioneer, should receive bids from client programs. Each bidder may have a different strategy, but will at least have different maximum bids, and bid increments. One extension to the basic idea might be to explore different types of auction (English, Dutch, Vickery, Sealed bid, etc.) Another extension might be to use threads to enable the server to service multiple client simulaneously. can any one help me with code for this. and it needs to be done for friday so am really panicing. thanks all.

    Forgive me for the double post, but I think I should add the following comment:
    In my design view I can't see anything, just a box thingy with an F.
    In my live view, I see the entire picture as I do on the site from where I downloaded.  The top portion is visible, but a lighter color ... I can still see it though.  When I upload it to my site, it's missing completely leaving just the blank white space with the border as well.
    Hope this helps?

  • Hello I'm new and need help.

    I have a BB Bold 9900, my provider is Mobilicity, I don't know if I have a BSI with my provider. I have tried to find my OS # without any luck. This is my first smart phone as well as my first BlackBerry, when I was setting up BBM it had asked me to set a password as well as choose a e-mail, I did that. One day I went into my bbm and it asked for my password. I do not remember my password, but I remember my security question. When I type in my answer it tells me that my password has been sent to the e-mail I chose, but I don't know how to get to that e-mail. I have an e-mail account on my phone, but it is one that I set up recently. I have gone on to blackberry website to see if I could change my password, but it won't let me because it tells me my cookies is disabled. I have tried to enable my cookies with no luck. I have contacts which send me bbm's, but I can't read them, or even see who it was who sent it. I am beyond frustrated with this, I hope someone can help. Please.

    Hi and Welcome to the Community!
    You do have several things going on...so I'll try to divide them up in my reply.
    Since you are receiving both email and BBM on your BB, you do indeed have a BIS-level account. BIS = BlackBerry Internet Service, a service delivered by your mobile service provider that enables the various services to which you subscribed.
    Next, to determine your OS level, refer to this:
    KB23393 How to check the model number and version of installed BlackBerry device software on a BlackBerry smartphone
    Now, as to your BB ID credentials. BBs are the most secure mobile devices available. As such, they depend heavily on the "human element" in maintaining that security. When the human "fails", sometimes the automated methods of recovery just aren't good enough. But, there are a few more things for you to understand.
    For security reasons, those password reset emails are never sent to the BB. So, to get to them, you must have non-BB access to that email account. I don't know what type of account you used, but if it was one of the "hosted" type (e.g., @bb or @carrier), then those typically have only BB access to them. Which creates a catch-22 for your situation...you must have non-BB access to the email account so as to receive the password reset email, but you used an email account that can only be accessed from the BB. Fortunately, there is a workaround:
    KB28111 Unable to reset BlackBerry ID password when using a BlackBerry hosted email address
    Basically you need to work with your carrier as they administer that email account...and get a forwarding rule put into that hosted email account, and forward those emails to something you can get to from other than the BB (e.g., gmail, yahoo, etc.). Then, generate again the password reset email, and retrieve/act upon it via that other email account (the one to which you set the forwarding).
    As it stands for you, that is your only non-destructive fix...everything else would mean abandoning your existing BB ID, wiping your BB to a "factory fresh" condition, and starting over again.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I'M NEW AND NEED HELP !!!!!!!

    Hi, I'm new to java and am trying to create a simple calculator program and need to know how to read a value into a program.
    I have defined 3 values, a, b, c and have printed out statements asking for these values to be entered
    System.out.println("\n\nPlease enter a value for A");
    System.out.println("\n\nPlease enter a value for B");
    System.out.println("\n\nPlease enter a value for C");
    now i need to read them in but i am unsure on how to do this.
    Any help would be appreciated
    Thanks.
    email: [email protected]

    Here is an approach to your problem. I did not know what you wanted to do for output.
    import java.io.*;
    class BufferReaderClass {
         public static void main(String[] args) throws IOException {
              int[] a; // User input value
              a = new int[3]; // initialize array to length of 3
              int ascii; // Used to hold ascii value of letter
              BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
              try {
                   for (ascii = 65; ascii < 68; ascii++) {
                        System.out.println("\n\nPlease enter a value for " + (char)(ascii));
                        a[ascii-65] = Integer.parseInt(in.readLine());
              } catch (Exception e) {System.out.println("Not a valid entry.  Please start again");}
              finally {
                   in.close();
    }

  • Urgent: im new and need help with this task!

    I need help with converting the pseudo code to java code, Any help will b greatly appreciated!
    // Declare a variable of type int, called "choice".
    // Generate a random number between 0 inclusive and 7
    // exclusive, and store that number into the variable
    // "choice". (How do you generate a random number? Use the
    // nextInt(int) method inside the random object, which takes
    // a single int parameter. You can read about this method
    // here:
    // http://java.sun.com/j2se/1.5.0/docs/api/java/util/Random.html
    // If "choice" is equal to 0, then create and return a new
    // IBlock object, passing "game" as the parameter to IBlock's
    // constructor.
    // Otherwise, if "choice" is equal to 1, then create and
    // return a new TBlock object, passing "game" as the
    // parameter.
    // Otherwise, if "choice" is equal to 2, then create and
    // return a new OBlock object, passing "game" as the
    // parameter.
    // Otherwise, .... etc ....
    // (please continue to do this for all of the 7 kinds of block
    // that can be created)

    import java.util.*;
    public class Echo{
         public static void main(String[] args)     {
              //System.out.println("enter ur choice");
    Random r=new Random();
    int choice=r.nextInt(6);
         switch(choice)
         case 0:
              IBlock object0=new IBlock("games");
              break;
         case 1:
              TBlock object1=new TBlock("games");
              break;
         case 2:
              OBlock object2=new OBlock("games");
              break;
         case 3:
              LBlock object3=new LBlock("games");
              break;
         case 4:
              JBlock object4=new JBlock("games");
              break;
         case 5:
              SBlock object5=new SBlock("games");
              break;
         case 6:
              ZBlock object6=new ZBlock("games");
              break;
    class TBlock
         TBlock(String s)
              System.out.print("TBlock called"+"\n value passed is "+s);
    class IBlock
         IBlock(String s)
              System.out.print("IBlock called"+"\n value passed is "+s);
    class JBlock
         JBlock(String s)
              System.out.print("JBlock called"+"\n value passed is "+s);
    class OBlock
         OBlock(String s)
              System.out.print("OBlock called"+"\n value passed is "+s);
    class LBlock
         LBlock(String s)
              System.out.print("LBlock called"+"\n value passed is "+s);
    class SBlock
         SBlock(String s)
              System.out.print("SBlock called"+"\n value passed is "+s);
    class ZBlock
         ZBlock(String s)
              System.out.print("ZBlock called"+"\n value passed is "+s);
    }

  • New and need help with replace harddrive M45-s265

    Hello,
    I am not sure were to post this had a hard time trying to find were to post this message.
    (I also upgraded to 2g memory with out a problem)
    I replaced the board and get a message as if it has none 
    part of message
    PXE-E61: Media test failure, check cable
    PXE-MOF: Exiting PXE ROM
    The new board is from newegg and is a western digital wd scorpio ATA 250 gb wd2500beve-00wzto, I was told this is what i needed. 
    The key in and pins are the same as old board.
    Thank you so much for any help I can get

    That's the correct drive.  What is your question?  To do the replacement, you flip the unit over, remove the hard drive cover, slip the drive out, remove the 'caddy' and put it on the new drive, slide the new drive back in, replace the cover and boot from your recovery disks to restore the original disk image.

  • I am new and need help --- Streaming live video

    Hello,
    I am attempting to stream live video from my Trendnet TV-IP 201 cameras through my web site. We have been able to embed the xplug.class applet into the page, but we can not remove the controls. If someone has any knowledge on this, please help us out. Thanks in advance for the help.
    Edited by: bill23stevens on Oct 15, 2007 11:28 AM

    I have the same problem, need to show and capture the video from Trendnet IP-camera and the same xplug.jar that sits in the camera is decompiled here:
    // Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 17.12.2007 11:20:28
    // Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name:   xplug.java
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Properties;
    import javax.sound.sampled.*;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class xplug extends Applet
        implements ItemListener, ActionListener, Runnable
        class TStreaming
            public void seturl(String s, String s1)
                try
                    if(s.indexOf(":") > 0)
                        m_urlRemoteHost = new URL("http://" + s);
                    else
                        m_urlRemoteHost = new URL("http://" + s + ":" + s1);
                catch(MalformedURLException malformedurlexception)
                    System.err.println("MalformedURLException : " + malformedurlexception);
            public void init(xplug xplug1)
                m_urlRemoteHost = xplug1.getCodeBase();
                m_sRemoteHost = m_urlRemoteHost.getHost();
                if(m_urlRemoteHost.getPort() <= 0)
                    m_iRemotePort = new Integer(80);
                else
                    m_iRemotePort = new Integer(m_urlRemoteHost.getPort());
                m_iTimeout = Integer.valueOf(xplug1.getParameter("Timeout"));
            public void init(String s, String s1, int i)
                m_iRemotePort = new Integer(s1);
                m_sRemoteHost = s;
                m_iTimeout = new Integer(i);
            public boolean InitRequest(String s)
                if(s.equals("/goform/video2"))
                    m_stream_type = 1;
                else
                if(s.equals("/goform/audio2"))
                    m_stream_type = 2;
                else
                    return false;
                m_sRequest = "";
                m_sRequest = m_sRequest + "GET " + s + " HTTP/1.0\r\n";
                m_sRequest = m_sRequest + "User-Agent: java-mobile\r\n";
                m_sRequest = m_sRequest + "Authorization: Basic " + xplug.DeviceSerialNo + "\r\n";
                m_sRequest = m_sRequest + "\r\n";
                m_bIsConnect = false;
                return true;
            public boolean OpenSession()
                try
                    m_sktClient = new Socket(m_sRemoteHost, m_iRemotePort.intValue());
                    m_sktClient.setSoTimeout(m_iTimeout.intValue());
                    m_Input = new DataInputStream(m_sktClient.getInputStream());
                    m_Output = new DataOutputStream(m_sktClient.getOutputStream());
                    m_bIsConnect = true;
                catch(IOException ioexception)
                    m_bIsConnect = false;
                return m_bIsConnect;
            public void CloseSession()
                try
                    m_Input.close();
                    m_Output.close();
                    m_sktClient.close();
                    m_bIsConnect = false;
                catch(Exception exception) { }
            public boolean SendRequest()
                try
                    if(m_numsend < 3)
                        m_Output.write(m_sRequest.getBytes(m_charset));
                        m_numsend++;
                catch(Exception exception)
                    System.err.println("<err>:SendRequest =" + exception);
                    return false;
                return true;
            public int subParameter(String s)
                String s1 = s;
                int k1 = 0;
                String s8 = "\r\n\r\n";
                String s9 = "\r\n";
                String s10 = "";
                String s11 = "";
                String s13 = "";
                do
                    int j1 = s1.indexOf(s8);
                    int i1 = s1.indexOf(s9);
                    if(j1 == i1)
                        String s2 = s1.substring(0, i1);
                        int i = s2.indexOf(":");
                        if(i > 0)
                            String s4 = s2.substring(0, i).toLowerCase();
                            String s6;
                            if(s4.compareTo("content-type") == 0)
                                s6 = s2.substring(i + 1, i1).trim();
                            else
                            if(s4.compareTo("content-length") == 0)
                                String s15 = s2.substring(i + 1, i1).trim();
                                Integer integer2 = new Integer(Integer.parseInt(s15));
                                m_len = integer2.intValue();
                        } else
                        if(s2.indexOf("HTTP") >= 0)
                            int j = s2.indexOf(" ");
                            s2 = s2.substring(j + 1, i1);
                            j = s2.indexOf(" ");
                            s2 = s2.substring(0, j);
                            Integer integer = new Integer(Integer.parseInt(s2));
                            k1 = integer.intValue();
                        break;
                    String s3 = s1.substring(0, i1);
                    int k = s3.indexOf(":");
                    if(k > 0)
                        String s5 = s3.substring(0, k).toLowerCase();
                        String s7;
                        if(s5.compareTo("content-type") == 0)
                            s7 = s3.substring(k + 1, i1).trim();
                        else
                        if(s5.compareTo("content-length") == 0)
                            String s16 = s3.substring(k + 1, i1).trim();
                            Integer integer3 = new Integer(Integer.parseInt(s16));
                            m_len = integer3.intValue();
                        } else
                        if(s5.compareTo("time") == 0)
                            s10 = s3.substring(k + 1, i1).trim();
                        else
                        if(s5.compareTo("usec") == 0)
                            String s12 = s3.substring(k + 1, i1).trim();
                            if(s12.length() < 6)
                                s12 = "0" + s12;
                            Long long1 = new Long(Long.parseLong(s10 + s12));
                            Date date = new Date(long1.longValue() / 1000L);
                            m_sDate = df.format(date);
                        } else
                        if(s5.compareTo("userdata") == 0)
                            String s14 = s3.substring(k + 1, i1).trim();
                            try
                                m_sStatus = Long.decode(s14).longValue();
                            catch(NumberFormatException numberformatexception)
                                System.err.println("m_sStatus decode failed");
                    } else
                    if(s3.indexOf("HTTP") >= 0)
                        int l = s3.indexOf(" ");
                        s3 = s3.substring(l + 1, i1);
                        l = s3.indexOf(" ");
                        s3 = s3.substring(0, l);
                        Integer integer1 = new Integer(Integer.parseInt(s3));
                        k1 = integer1.intValue();
                    s1 = s1.substring(i1 + 2, s1.length());
                } while(true);
                return k1;
            public int ParseHttp()
                int j;
    label0:
                    j = 0;
                    int k = 0;
                    String s = "\r\n\r\n";
                    String s1 = "\r\n";
                    StringBuffer stringbuffer = new StringBuffer("");
                    try
                        do
                            int i;
                            if((i = m_Input.read()) != -1)
                                k = 0;
                                stringbuffer.append((char)i);
                                continue;
                            if(k > 10)
                                j = subParameter(stringbuffer.toString());
                                System.err.println("<err>: ParseHttp Retry j>10 ret=" + j);
                                break label0;
                            Thread.currentThread();
                            Thread.sleep(50L);
                            k++;
                        } while(stringbuffer.toString().indexOf(s) <= 0);
                        j = subParameter(stringbuffer.toString());
                    catch(Exception exception)
                        System.err.println("<err>: ParseHttp error " + exception);
                        m_numsend--;
                        return -1;
                m_numsend--;
                return j;
            public void GetAudioHead(byte abyte0[], TAUHeader tauheader)
                byte abyte1[] = new byte[4];
                byte abyte2[] = new byte[2];
                tauheader.depth = abyte0[0];
                tauheader.channel = abyte0[1];
                tauheader.adpcm = abyte0[2];
                for(int i = 0; i < 4; i++)
                    abyte1[i] = abyte0[4 + i];
                tauheader.speed = xplug.byte2int(abyte1);
                tauheader.ref1 = abyte0[8];
                abyte2[0] = abyte0[10];
                abyte2[1] = abyte0[11];
                tauheader.ref2 = xplug.byte2short(abyte2);
                for(int j = 0; j < 4; j++)
                    abyte1[j] = abyte0[12 + j];
                tauheader.size = xplug.byte2int(abyte1);
            public int ReadData(byte abyte0[])
                try
                    m_Input.readFully(abyte0, 0, m_len);
                catch(Exception exception)
                    return -1;
                return m_len;
            public int ReadData(byte abyte0[], TAUHeader tauheader)
                if(m_len < 16)
                    return -1;
                try
                    if(m_stream_type == 2)
                        m_Input.readFully(abyte0, 0, 16);
                        GetAudioHead(abyte0, tauheader);
                        m_Input.readFully(abyte0, 0, m_len - 16);
                catch(Exception exception)
                    return -1;
                return m_len;
            public int uuencode(String s)
                char ac[];
                int i;
                int i1;
                int j1;
                char ac1[];
                String s1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
                ac = new char[s1.length()];
                ac = s1.toCharArray();
                boolean flag = false;
                boolean flag2 = false;
                long l = 0L;
                boolean flag3 = false;
                i1 = 0;
                j1 = 0;
                buf.setLength(0);
                if(s.length() < 2)
                    return -1;
                i = s.length();
                ac1 = new char;
    ac1 = s.toCharArray();
    _L6:
    boolean flag1;
    int j;
    long l1;
    int k;
    flag1 = false;
    j = 0;
    l1 = 0L;
    k = 0;
    _L2:
    if(i <= 0 && j == 0)
    break MISSING_BLOCK_LABEL_256;
    long l4;
    if(i > 0 && !flag1)
    l4 = ac1[i1++];
    if(--i < 0)
    flag1 = true;
    j1 = j;
    l4 = 0L;
    } else
    flag1 = true;
    j1 = j;
    l4 = 0L;
    if(!flag1 || j != 0)
    long l2 = l4;
    l1 = l1 << 8 & 65535L;
    j += 8;
    l1 = (l1 | l2) & 65535L;
    _L4:
    if(j < 6) goto L2; else goto L1
    _L1:
    long l5;
    j -= 6;
    long l3 = l1 >> j & 63L;
    int k1 = (int)l3;
    l5 = ac[k1];
    if(k <= 1020) goto L3; else goto L2
    _L3:
    buf.append((char)(int)l5);
    if(flag1)
    j = 0;
    goto _L4
    if(j1 == 2)
    buf.append('=');
    buf.append('=');
    } else
    if(j1 == 4)
    buf.append('=');
    if(i <= 0)
    return 1;
    if(true) goto L6; else goto L5
    _L5:
    final int ST_VIDEO = 1;
    final int ST_AUDIO = 2;
    private String m_charset;
    private String m_sRequest;
    public String m_sRemoteHost;
    private URL m_urlRemoteHost;
    public Integer m_iRemotePort;
    private Integer m_iTimeout;
    private Socket m_sktClient;
    private DataInputStream m_Input;
    private DataOutputStream m_Output;
    public boolean m_bIsConnect;
    public int m_numsend;
    public int m_len;
    public String m_sDate;
    public long m_sStatus;
    private DateFormat df;
    private int m_stream_type;
    public StringBuffer buf;
    TStreaming()
    df = DateFormat.getDateTimeInstance(1, 1);
    buf = new StringBuffer("");
    m_stream_type = 0;
    m_numsend = 0;
    m_charset = "8859_1";
    m_sRemoteHost = "";
    class TAUHeader
    byte depth;
    byte channel;
    byte adpcm;
    int speed;
    byte ref1;
    short ref2;
    int size;
    TAUHeader()
    depth = 0;
    channel = 0;
    adpcm = 0;
    speed = 0;
    ref1 = 0;
    ref2 = 0;
    size = 0;
    public class Adpcm
    public class AdpcmState
    int valprev;
    int index;
    public AdpcmState()
    public String codecName()
    return "DVI ADPCM";
    public int getSampleRate()
    return 8000;
    public Object createState()
    return new AdpcmState();
    public void initState(Object obj)
    ((AdpcmState)obj).valprev = 0;
    ((AdpcmState)obj).index = 0;
    public int decode(Object obj, byte abyte0[], int i, short aword0[], int j, int k, byte byte0,
    short word0)
    byte byte1 = 0;
    boolean flag = false;
    int k1;
    int l1;
    if(byte0 < 0)
    l1 = ((AdpcmState)obj).valprev;
    k1 = ((AdpcmState)obj).index;
    } else
    l1 = word0;
    k1 = byte0;
    int i2 = stepsizeTable[k1];
    k *= 2;
    for(int j2 = k; j2-- > 0;)
    int i1;
    if(!flag)
    byte1 = abyte0[i++];
    i1 = byte1 >> 4 & 0xf;
    flag = true;
    } else
    i1 = byte1 & 0xf;
    flag = false;
    k1 += indexTable[i1];
    if(k1 < 0)
    k1 = 0;
    else
    if(k1 > 88)
    k1 = 88;
    int l = i1 & 8;
    i1 &= 7;
    int j1 = i2 >> 1;
    if((i1 & 4) == 4)
    j1 += i2 << 2;
    if((i1 & 2) == 2)
    j1 += i2 << 1;
    if((i1 & 1) == 1)
    j1 += i2;
    j1 >>= 2;
    if(0 != l)
    l1 -= j1;
    else
    l1 += j1;
    if(l1 > 32767)
    l1 = 32767;
    else
    if(l1 < -32768)
    l1 = -32768;
    i2 = stepsizeTable[k1];
    aword0[j++] = (short)l1;
    ((AdpcmState)obj).valprev = l1;
    ((AdpcmState)obj).index = k1;
    return k;
    private final int indexTable[] = {
    -1, -1, -1, -1, 2, 4, 6, 8, -1, -1,
    -1, -1, 2, 4, 6, 8
    private final int stepsizeTable[] = {
    7, 8, 9, 10, 11, 12, 13, 14, 16, 17,
    19, 21, 23, 25, 28, 31, 34, 37, 41, 45,
    50, 55, 60, 66, 73, 80, 88, 97, 107, 118,
    130, 143, 157, 173, 190, 209, 230, 253, 279, 307,
    337, 371, 408, 449, 494, 544, 598, 658, 724, 796,
    876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066,
    2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358,
    5894, 6484, 7132, 7845, 8630, 9493, 10442, 11487, 12635, 13899,
    15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
    public Adpcm()
    public class CgiIO
    public boolean isConnect()
    return true;
    private int opensock(String s, String s1)
    try
    URL url = new URL(s + s1);
    int i = url.getPort() == -1 ? 80 : url.getPort();
    if(!s.equals(gurl) || inet == null)
    inet = InetAddress.getByName(url.getHost());
    fw_sktClient = new Socket(inet, i);
    catch(Exception exception)
    System.err.println("<err>: create socket error" + exception);
    return 0;
    return -1;
    public void CgiIO()
    public void CgiIO(String s, String s1)
    gurl = s;
    guri = s1;
    opensock(gurl, guri);
    public void seturl(String s, String s1)
    String s2;
    if(s.indexOf(":") > 0)
    s2 = "http://" + s;
    else
    s2 = "http://" + s + ":" + s1;
    if(!s2.equals(gurl))
    gurl = s2;
    opensock(gurl, guri);
    public void seturi(String s)
    guri = s;
    public String getContent()
    return ini.content;
    public int get()
    try
    URL url = new URL(gurl + guri);
    HttpURLConnection httpurlconnection = (HttpURLConnection)url.openConnection();
    httpurlconnection.setRequestProperty("Authorization", "Basic " + xplug.DeviceSerialNo);
    httpurlconnection.connect();
    if((conlen = httpurlconnection.getContentLength()) > 0)
    m_Input = new DataInputStream(httpurlconnection.getInputStream());
    m_Input.readFully(buf, 0, conlen);
    tStr = new String(buf, 0, conlen);
    ini.content = tStr;
    httpurlconnection.disconnect();
    catch(Exception exception)
    System.err.println(exception);
    return 0;
    return -1;
    public int post()
    boolean flag = false;
    String s = "";
    s = s + "POST " + guri + " HTTP/1.0\r\n";
    s = s + "User-Agent: java-mobile\r\n";
    s = s + "Authorization: Basic " + xplug.DeviceSerialNo + "\r\n";
    s = s + "Content-Length: " + ini.content.length() + "\r\n";
    s = s + "\r\n";
    if(fw_sktClient == null || fw_sktClient.isClosed())
    opensock(gurl, guri);
    fw_sktClient.setReuseAddress(true);
    fw_sktClient.setKeepAlive(true);
    fw_sktClient.setSoTimeout(5000);
    DataOutputStream dataoutputstream = new DataOutputStream(fw_sktClient.getOutputStream());
    BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(fw_sktClient.getInputStream()));
    dataoutputstream.write(s.getBytes());
    dataoutputstream.write(ini.content.getBytes());
    String s1;
    if((s1 = bufferedreader.readLine()) != null)
    if(s1.indexOf("200") > 0)
    flag = true;
    else
    flag = false;
    dataoutputstream.close();
    bufferedreader.close();
    return !flag ? 0 : -1;
    Exception exception;
    exception;
    System.out.println("post exception:" + exception);
    return 0;
    public int postproblem()
    HttpURLConnection httpurlconnection;
    URL url = new URL(gurl + guri);
    System.err.println("1post: ini.content " + ini.content);
    httpurlconnection = (HttpURLConnection)url.openConnection();
    System.err.println("2post: ini.content " + ini.content);
    httpurlconnection.setRequestMethod("POST");
    System.err.println("3post: ini.content " + ini.content);
    httpurlconnection.setDoOutput(true);
    httpurlconnection.setDoInput(true);
    System.err.println("4post: ini.content " + ini.content);
    m_Output = new DataOutputStream(httpurlconnection.getOutputStream());
    System.err.println("5post: ini.content " + ini.content);
    try
    httpurlconnection.setRequestProperty("Authorization", "Basic " + xplug.DeviceSerialNo);
    catch(IllegalStateException illegalstateexception)
    System.err.println("<err><CgiIO>: ignore1 " + illegalstateexception);
    System.err.println("6post: ini.content " + ini.content);
    try
    httpurlconnection.connect();
    break MISSING_BLOCK_LABEL_348;
    catch(IOException ioexception)
    System.err.println("<err><CgiIO>: ignore1 " + ioexception);
    return 0;
    System.err.println("7post: ini.content " + ini.content);
    m_Output.write(ini.content.getBytes());
    httpurlconnection.getResponseCode();
    if(httpurlconnection.getResponseCode() != 200)
    break MISSING_BLOCK_LABEL_456;
    httpurlconnection.disconnect();
    System.err.println("8post: ini.content " + ini.content);
    System.err.println("-1");
    return -1;
    httpurlconnection.disconnect();
    System.err.println("0");
    System.err.println(String.valueOf(httpurlconnection.getResponseCode()) + httpurlconnection.getResponseMessage());
    return 0;
    Exception exception;
    exception;
    System.err.println("<err><CgiIO>: " + exception);
    return 0;
    public int postfile(byte abyte0[], int i)
    return 0;
    public void ClearParameter()
    ini.ClearParameter();
    public String GetConfigValue(String s)
    return ini.GetConfigValue(s);
    public int SetConfigValue(String s, String s1)
    return ini.SetConfigValue(s, s1);
    public String GetConfigValueEx(String s, String s1)
    return ini.GetConfigValueEx(s, s1);
    public int SetConfigValueEx(String s, String s1, String s2)
    return ini.SetConfigValueEx(s, s1, s2);
    public String gurl;
    public String guri;
    private byte buf[];
    private String m_charset;
    private Ini ini;
    private int conlen;
    private String tStr;
    InputStream in;
    OutputStream out;
    DataInputStream m_Input;
    DataOutputStream m_Output;
    private final int SUCCESS = -1;
    private final int FAIL = 0;
    Socket fw_sktClient;
    InetAddress inet;
    int err;
    int ic;
    public CgiIO()
    gurl = "";
    guri = "";
    buf = new byte[3072];
    m_charset = "8859_1";
    ini = new Ini();
    public class Ini
    public void ClearParameter()
    content = "";
    public String GetConfigValueEx(String s, String s1)
    if((i_hos = getSessionHead(s)) >= 0 && (i_tos = getSessionTail(s)) >= 0 && i_tos > i_hos)
    return getItemValue(s1, i_hos, i_tos);
    else
    return "";
    public int SetConfigValueEx(String s, String s1, String s2)
    if((i_hos = getSessionHead(s)) >= 0 && (i_tos = getSessionTail(s)) >= 0 && i_tos > i_hos)
    return setItemValue(s1, s2, i_hos, i_tos);
    } else
    insertString("[" + s + "]" + dlim + s1 + "=" + s2 + dlim, content.length());
    return 0;
    public String GetConfigValue(String s)
    return getItemValue(s, 0, content.length());
    public int SetConfigValue(String s, String s1)
    return setItemValue(s, s1, 0, content.length());
    private int getSessionHead(String s)
    for(int i = 0; (i = getNextLeadingBracket(i)) >= 0;)
    i_sepline = getNextClosingBracket(i);
    t_session = content.substring(i, i_sepline).trim();
    if(t_session.equals(s))
    return i;
    return -1;
    private int getSessionTail(String s)
    for(int i = 0; (i = getNextLeadingBracket(i)) >= 0;)
    if((i_sepline = getNextClosingBracket(i)) >= 0)
    t_session = content.substring(i, i_sepline).trim();
    if(t_session.equals(s))
    if((i = getNextLeadingBracket(i)) > 0)
    return i;
    else
    return content.length();
    return -1;
    private int getNextLeadingBracket(int i)
    i_hol = i;
    for(i_tol = content.indexOf(dlim, i); i_tol < content.length() && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    t_str = content.substring(i_hol, i_tol).trim();
    if(t_str.charAt(0) == '[')
    return i_hol + 1;
    i_hol = i_tol + 2;
    return -1;
    private int getNextClosingBracket(int i)
    i_hol = i;
    i_tol = content.indexOf(dlim, i);
    i_sepline = content.indexOf("]", i);
    if(i_sepline > 0 && i_sepline < i_tol)
    return i_sepline;
    else
    return -1;
    private String getItemValue(String s, int i, int j)
    i_hol = i;
    for(i_tol = content.indexOf(dlim, i_hol); i_tol < j && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    i_sepline = content.indexOf("=", i_hol);
    if(i_sepline > 0 && i_sepline < i_tol)
    t_item = content.substring(i_hol, i_sepline);
    if(t_item.trim().equals(s))
    return content.substring(i_sepline + 1, i_tol).trim();
    i_hol = i_tol + 2;
    return "";
    private int setItemValue(String s, String s1, int i, int j)
    i_hol = i;
    i_tol = content.indexOf(dlim, i_hol);
    isChanged = false;
    for(; i_tol < j && i_tol > i_hol; i_tol = content.indexOf(dlim, i_hol))
    i_sepline = content.indexOf("=", i_hol);
    if(i_sepline > 0 && i_sepline < i_tol)
    t_item = content.substring(i_hol, i_sepline);
    if(t_item.trim().equals(s))
    isChanged = true;
    return replaceString(s1, i_sepline + 1, i_tol);
    i_hol = i_tol + 2;
    if(!isChanged)
    insertString(s + "=" + s1 + dlim, j);
    return 0;
    private int insertString(String s, int i)
    StringBuffer stringbuffer = new StringBuffer(content);
    content = stringbuffer.insert(i, s).toString();
    return 0;
    private int replaceString(String s, int i, int j)
    StringBuffer stringbuffer = new StringBuffer(content);
    content = stringbuffer.replace(i, j, s).toString();
    return 0;
    public String content;
    private int i_hol;
    private int i_tol;
    private int i_ho

  • I am really new and need help with internet

    Hi. I am really excited about the new MACS and want one really bad. First, I need to know what I would need to get for wireless internet. Next, are Macs compatible for Internet like MSN?
    iBookG4   Windows XP   I want to get an iBookG4

    I have a PowerBook G4 17 with a gig of ram that I absolutely couldn't live without. I use a Verizon aircard for internet access, and it's proven to be about 90% as fast as a high speed cable connection. I routinely send pics up to 3M in size with no problem. The only thing I have found that it really doesn't do very well is downloading software. And the Verizon card is really affordable--I have an unlimited plan that doesn't hurt each month at all. Hope this helps.

  • I am new and need help please...

    Hello, I used up my subscription time before the month was up so I bought credit. It says that my subscription would refill on today's date, but it hasn't. I had to buy more credit to call. I emailed Skype and they said it's because I have reached an Unmonitored alias and gave me a link to the support Page... What do I need to do to resolve this? Can someone please help me?

    please contact Skype customer service
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • New and need help - drag and drop with dynamic text

    So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
    Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
    So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
    Your help would be much appreciated!
    This is my code:
    var counter:Number = 0;
    var startX:Number;
    var startY:Number;
    six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
        event.target.startDrag(true);
    reply_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
        event.target.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName(myTargetName);
    if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
        reply_txt.text = "Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    event.target.x = myTarget.x;
    event.target.y = myTarget.y;
    } else {
    reply_txt.text = "Try Again!";
    event.target.x = startX;
    event.target.y = startY;
        if(counter == 6){
            reply_txt.text = "Congrats, you're finished!";
    six_mc.buttonMode = true;
    five_mc.buttonMode = true;
    four_mc.buttonMode = true;
    three_mc.buttonMode = true;
    two_mc.buttonMode = true;
    one_mc.buttonMode = true;

    where you have
    xxx.text = ....
    is where you're assigning text.

  • New and need help with keithley 2700 GPIB threw labview 2010

    Hello everyone,
    I have the drivers for the keithley 2700 dmm and its ok with labview idntifying the device.
    but when im trying to run the "Keithley 27XX Single Measurement.vi" and take a single resistance measurment
    I always get this error, (pic related)
    can anyone help please?
    btw, where can i start learn from zero how to program in labview in GPIB protocol (not visa) ?
    thanks alot.
    E.
    Attachments:
    Error.jpg ‏500 KB

    Zerez,
    Definately search the forums as I found another forum wher they tried troubleshooting a 2700 that was locking up. Unfortunately a resolution wasn't determined. 
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/keithley-2700-7700-4-wire-Measurement-GPIB/td...
    Can you use max to request values from the device? Using visa test panels. It should reply to the identification command if it is functioning properly.
    Kyle Hartley
    RIO Product Support Engineer
    National Instruments

  • I'm new and need help with lists.

    I'm writing an app in java (duh, thats why im here), and using NetBeans. I need to know how to add items to an awt list at run time. Thanks for your help in advance. ;)

    Try the APIs. I am assuming that you are not using the GUI editing part of NetBeans to make your app, but if you are, again.... make the action and then look at the APIs .
    Good Luck,
    Edward S. Rice

  • I am new and need help in SAP Securities

    Hi,
    I am new here and looking for some material for SAP Securities.
    Please help.
    Thankyou,
    Micky

    Hi,
    I am new here and looking for some material for SAP Securities.
    Please help.
    Thankyou,
    Micky

  • Hi am new and need help on client side java.

    Hi I am a .net developer. Dont boo lol. I am trying to find the latest on Java. I build web apps and would like to use java on the client side.
    Is there a new form of java for client side code.
    What do I need to install?
    Where are some good sites that provide tutorials for Java newbies wishing to develop web client scripts etc.
    Thanks

    Hi I am a .net developer. Dont boo lol. I am trying
    to find the latest on Java. I build web apps and
    would like to use java on the client side.
    Is there a new form of java for client side code. Web apps usually use Java Server Pages, or JSPs, on the client side.
    What do I need to install? Tomcat is a free servlet/JSP engine:
    http://jakarta.apache.org/tomcat
    Where are some good sites that provide tutorials for
    Java newbies wishing to develop web client scripts
    etc.
    ThanksBetter buy a book. I highly recommend Hans Bergsten's JSP book for O'Reilly.
    %

  • I am really new and need help

    Hello all,
    I am going to take my first Datbase course in 3 weeks, but I thought that I would start installing Oracle 10g. I did install Oracle 10g, but what is next for me? is there any book that would teach me how to use SQL with Oracle? or is there a website?
    Thank you
    Olga

    well the best hint I would give is: do not use a Windows PC if you want to learn about Oracle.
    You will be bothering about Windows services and Windows registry and this brain damaged command language and this brain damaged environment settting dialogs and so on...
    and you will never know why something is not working as it worked the other day ...
    you will not learn much other than: reboot your computer if your database will not start as expected. Use Linux and read the HTML quick start guide that comes with the Oracle installation media.

Maybe you are looking for