Please Help In Restriction Code !!!

Hie Guys..!
Before Sum Days I Was Usin My Sim Wid A data Card To Use Net On Pc,but Wen I Inserted Sim In Mobile it Started To Show "contact Service" ..!
I Switched It Off N On Again But Now Its Askin For " RESTRICTION CODE" even I Tried Wid Other Operators But Its Same...
Though I'm Able To Turn It On Widout Sim Card But Within 5 Minutes It Turns Off Automaticaly.
Please Guys Help Me...
My Info Is...
Mobile- Nokia 6300
country- India
Network- Tata Docomo
thnkz In Advance.
"~: b0rN To Ch3r1sH Uh :~" ....;o)

Nah i din't ..! But I Contacted to My Network Operator n even i tried dat default code too,but It Was Useless...
"~: b0rN To Ch3r1sH Uh :~" ....;o)

Similar Messages

  • Please help 'Translate' These codes from AS2 to AS3 for me

    Hi, i need help 'translating' these codes from Action Script 2 to Action Script 3. Please Do it for me:
    toc    loadText = new LoadVars();
        loadText.load("Curie.txt");
        loadText.onLoad = function(success) {
            if (success) {
                // trace(success);
                Curie.html = true;
                Curie.htmlText = this.Curie;
    Please translate it for me, i need it ASAP thanks
    Kenneth

    Thank you for helping me
    Kenneth
    Date: Thu, 15 Oct 2009 05:49:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please help 'Translate' These codes from AS2 to AS3 for me
    Take a look at that:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html
    There is a LoadVars section on that.
    There is also a tutorial here:
    http://www.republicofcode.com/tutorials/flash/as3externaltext/
    Cheers,
    CaioToOn!
    >

  • Help with restriction code

    i have just got a new t mobile sin card but when i put it in it is saying enter restriction code but i dont know what it means.the phone is a 6230i what was a old contract phone that i have had for about 2 years.the phone has not been on in over a year.please help cheers
    Solved!
    Go to Solution.

    Once you get the code, you can enter it as follows:
    Enter the 15 digit Network Unlock Code as follows:
    #pw+ followed by the 15-digit unlock code then +1#
    For example: #pw+123456789012345+1#
    The keypad will only allow you to enter numeric digits.
    To enter p, press the * (star) key three times.
    To enter w, press the * (star) key four times.
    To enter +, press the * (star) key two times.
    5. The phone will display ?Phone restriction off?. The handset is now unlocked.

  • PLEASE Help with HTML code for email background image...

    Hi there!
    i have a background image that I want to pop into an html email widget for the email's background...  here is the web link I created in Photoshop: file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/tileabl e-metal-textures-2.html
    If anyone could please help me out that would be AWESOME!  I've attached pics of the background & I'm using Infusionsoft email builder which allows for HTML widgets.  I have a code that I use for my landing pages & webforms which works, tried that but no dice!
    Any help would be much appreciated - I'm an html newbie!
    Here is the code that I use for landing pages & works great, tried it for the email & it was a fail:
    <style>
      #mainContent .background, {
          background: url('file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html') no-repeat center center fixed;
        background-size: cover;
    </style>
    <script src="file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html">
    </script>
    <script>
      jQuery(document).ready(
          function(){
          jQuery(' table.bodyContainer').removeAttr('bgcolor');
    </script>
    thanks in advance!
    Muse

    Not sure what you expect. Your URL is absolute and pointing to a local file resource. It's not a proper relative HTML link. Beyond that it's toatlly unclear how you actually plan to load your image and where they are hosted, so nobody can tell you anything. Either way, there is an obviously painful lack of understanding of even the most basic web techniques, so the best advise anyone would give you is to spend some time with a web search and actualyl learn some of that stuff...
    Mylenium

  • Please help in this code..

    Hi,
    I am developing one small program. Which has one inner class in parent class. I am using object [] array of that inner class. like thisPreferredRoomsItem maxPercentagePrefRooms[] = new PreferredRoomsItem[solutionOfTimeTable.MAX_ACTIVITIES];  
            for (int j = 0; j < solutionOfTimeTable.nInternalActivities; j++) {           
                maxPercentagePrefRooms[j].percentage=-1.0;
                maxPercentagePrefRooms[j].prefferedRooms.clear(); // test it.                                  
                double maxPercentage = -1;
                double minNRooms = INF;        
                for(PreferredRoomsItem it:activitiesPreferredRoomsList){ // check this code. this is incorrect/.
                if(maxPercentage<it.percentage || (maxPercentage==it.percentage && minNRooms>it.prefferedRooms.size())){           
                    maxPercentage = it.percentage;              
                    minNRooms = it.prefferedRooms.size();
                    maxPercentagePrefRooms[j] = it;
                } In inner class PreferredRoomsItem it has two member variables. And then I am using iteration with for loop. When I am using this line-->maxPercentagePrefRooms[j]. it gives me nullpointerexception. Please help.
    It is urgent.
    Thanks in advance.

    You still need to instantiate the Object in each array index.
    for (int j = 0; j < solutionOfTimeTable.nInternalActivities; j++) {           
                 maxPercentagePrefRooms[j] = new PreferredRoomsItem();
                //...

  • Please help with this code....

    I create a button with ActionListner and a writeCd method. Now I want everytime i push the button, it will read the writeCd method. I dont' know how to make it work. Please help me out as soon as possible. Thanks a lot. Below are the codes of the button and writeCd method.
    class findCD implements ActionListener
    public void actionPerformed(ActionEvent event)
    //what do I need to put here to make the button work
    //with method writeCD() below
    public void writeCd() throws Exception
    String outputFileName;
    PrintWriter outputFile;
    outputFileName = "D:\\cdoutput.txt";
    outputFile = new PrintWriter(new FileWriter(outputFileName,true));
    int loopTest;
    do
    String numStr = JOptionPane.showInputDialog("Please enter Index number");
    int number = Integer.parseInt(numStr);
    cC.setIndexNumber(number);
    numStr = JOptionPane.showInputDialog("Please enter cd name");
    number = Integer.parseInt(numStr);
    cC.setCdName(number);
    String message = cC.toString() +
    "\nYour input is: ";
    JOptionPane.showMessageDialog(null, message);
    outputFile.println(numStr + "");
    loopTest = JOptionPane.showConfirmDialog(null,"Do another?","",0,1);
    while (loopTest == 0);
    outputFile.close();

    class findCD implements ActionListener
           public void actionPerformed(ActionEvent event)
                try
                     writeCd();
                } catch(Exception e){
                                        e.printStackTrace();
      public void writeCd() throws Exception
          String outputFileName;
          PrintWriter outputFile;
          outputFileName = "D:\\cdoutput.txt";
    outputFile = new PrintWriter(new
    (new FileWriter(outputFileName,true));
             int loopTest;
             do
    String numStr =
    umStr = JOptionPane.showInputDialog("Please enter
    Index number");
             int number = Integer.parseInt(numStr);
             cC.setIndexNumber(number);
    numStr = JOptionPane.showInputDialog("Please
    "Please enter cd name");
             number = Integer.parseInt(numStr);
             cC.setCdName(number);
             String message = cC.toString() +
                              "\nYour input is: ";
             JOptionPane.showMessageDialog(null, message);
            outputFile.println(numStr + "");
    loopTest =
    pTest = JOptionPane.showConfirmDialog(null,"Do
    another?","",0,1);
             while (loopTest == 0);
           outputFile.close();
        }That should work. This also assumes that the method writeCd is in the class findCD.

  • Please help me on code inspector

    We want to run the code inspector on standard SAP reports (say, RABAB0504). But when we run the code inspector, it gives the message "This is a SAP object that cannot be checked". Why can't we run the Code Inspector on this?
    If we copy the code of Code Inspector into a Z program and remove the checks for this standard programs, would it run successfully or would there be any complications in that?
    Please help me.

    Well, it doesn't make much sense it run it on an SAP object. What would you do if it found something? But, if you must try, why not try copying it yourself and see if it works?
    Oh yes - and welcome to SCN!
    Rob
    Edited by: Rob Burbank on May 11, 2009 2:37 PM

  • Problem in layout, please help in correcting code

    Hello Friends,
    I am facing a very strange problem. I have 1 DespktopPane, say DT in which I have created two InternalFrames, say IF1 and IF2. Also there are two JPanels, say P1 and P2. P1 contains various controls and IF1s ContentPane is set to P1 and P2 contains nothing. There two MenuItems, say M1 and M2. On M1s click I displayed IF1 and on M2s click I displayed IF2. Before adding IF2 everything is working fine, i.e. all the controls are able to display on IF1 but after adding IF2 allthe controls are transferred from IF1 to IF2 and now IF1 displays as a blank screen and IF2 contains allthe controls which are added in JPanel p2 whereas IF2s ContenPane is set to P2 and no control is added in P2.
    For your reference, here is the code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MDILayout extends JFrame implements ActionListener
        private static JFrame frame = null;
        private static JDesktopPane desktop = null;
        private static JInternalFrame intframe = null;
        private static JInternalFrame rangeframe = null;
        private static JPanel panel = null;
        private static Image img = null;
        private static JMenuBar menubar = null;
        private static JMenu mfile = null;
        private static JMenuItem bexit = null;
        private static JMenuItem borders = null;
        private static JMenuItem boption = null;
        JButton bcancel,bquery,bexecute,bupdate,bnext,bprev;
        JLabel lheader,lheader1,lheader2,lheader3,lline,lline1,
        lodate,lquality,ltype,lparty,lindent,lsize,lmul,lgsm,lquantity,ldest,lorderno;
        JTextField todate,tquality,ttype,tparty,tindent,tlength,twidth,tgsm,tquantity,tdest,torderno;
        JComboBox cbotype;
        Font bigfont,bigfont1;
        static String ltext="",ltext1="",ltext2="",ltext3="";
        Panel p; Graphics g;
        MDILayout()
            frame = new JFrame("Deckle Suite (Board)");
            desktop = new JDesktopPane();
            intframe = new JInternalFrame("Orders",true,true,true,true);          
            rangeframe = new JInternalFrame("Machine - Deckle Range",true,true,true,true);           
            frame.setSize(1024,738);
            frame.setResizable(false);
            intframe.setSize(1000,680);
            rangeframe.setSize(500,350);
            JPanel p1=(JPanel)getContentPane();
            p1.setLayout(null);
            JPanel p2=(JPanel)getContentPane();
            p2.setLayout(null);
            intframe.setContentPane(p1);
            rangeframe.setContentPane(p2);
            frame.setContentPane(desktop);
            desktop.add(intframe);
            desktop.add(rangeframe);
            intframe.setMaximizable(true);
            intframe.setResizable(false);
            rangeframe.setMaximizable(true);
            rangeframe.setResizable(false);
            intframe.setContentPane(p1);
            intframe.setDefaultCloseOperation(HIDE_ON_CLOSE);
            rangeframe.setContentPane(p2);
            rangeframe.setDefaultCloseOperation(HIDE_ON_CLOSE);
            menubar = new JMenuBar();
            mfile = new JMenu("File");
            bexit = new JMenuItem("Exit");
            borders = new JMenuItem("Orders");
            boption=new JMenuItem("Options");
            menubar.add(mfile);
            mfile.add(borders);
            mfile.add(boption);
            mfile.add(bexit);
            frame.setJMenuBar(menubar);
            ltext="==========";
            for(int i=0;i<6;i++)
                    ltext1=ltext+ltext1;
                    ltext=ltext1;
            ltext2="----------";
            for(int j=0;j<6;j++)
                    ltext3=ltext2+ltext3;
                    ltext2=ltext3;
            bigfont=new Font("Monotype Corsiva",Font.BOLD,35);
            bigfont1=new Font("Times New Roman",Font.PLAIN,20);
            lheader=new JLabel("Deckle Suite (Board)");
            lheader1=new JLabel("Khanna  Paper  Mill (Pvt.) Ltd.");
            lheader2=new JLabel("Fatehgarh Road");
            lheader3=new JLabel("Amritsar");
            lline=new JLabel(ltext1);
            lline1=new JLabel(ltext3);
            lodate=new JLabel("Order Date");
            lquality=new JLabel("Quality");
            ltype=new JLabel("Sheet/Reel");
            lparty=new JLabel("Party");
            lindent=new JLabel("Indent No.");
            lsize=new JLabel("Size");
            lmul=new JLabel("x");
            lgsm=new JLabel("GSM");
            lquantity=new JLabel("Quantity");
            ldest=new JLabel("Destination");
            lorderno=new JLabel("Line No.");
            todate=new JTextField(50);
            tquality=new JTextField(50);
            ttype=new JTextField(20);
            cbotype=new JComboBox();
            tparty=new JTextField(200);
            tindent=new JTextField(50);
            tlength=new JTextField(35);
            twidth=new JTextField(35);
            tgsm=new JTextField(20);
            tquantity=new JTextField(35);
            tdest=new JTextField(200);
            torderno=new JTextField(200);
            lheader.setBounds(350,50,500,50);
            lheader1.setBounds(370,100,500,30);
            lheader2.setBounds(430,130,200,30);
            lheader3.setBounds(460,160,200,30);
            lline.setBounds(0,200,3000,30);
            lline1.setBounds(0,350,3000,30);
            lorderno.setBounds(40,240,100,20);
            lodate.setBounds(40,270,100,20);
            lquality.setBounds(320,270,100,20);
            ltype.setBounds(40,400,70,20);
            lparty.setBounds(40,300,70,20);
            lindent.setBounds(40,430,100,20);
            lsize.setBounds(450,430,50,20);
            lmul.setBounds(560,430,50,20);
            lgsm.setBounds(40,460,50,20);
            lquantity.setBounds(320,460,50,20);
            ldest.setBounds(40,490,100,20);
            torderno.setBounds(120,240,100,20);
            todate.setBounds(120,270,100,20);
            tquality.setBounds(380,270,200,20);
            cbotype.setBounds(120,400,90,20);
            tparty.setBounds(120,300,700,20);
            tindent.setBounds(120,430,200,20);
            tlength.setBounds(490,430,60,20);
            twidth.setBounds(580,430,60,20);
            tgsm.setBounds(120,460,80,20);
            tquantity.setBounds(380,460,80,20);
            tdest.setBounds(120,490,500,20);
            cbotype.addItem("SHEET");
            cbotype.addItem("REEL");
            p1.add(lheader);
            p1.add(lheader1);
            p1.add(lheader2);
            p1.add(lheader3);
            p1.add(lline);
            p1.add(lline1);
            p1.add(lodate);
            p1.add(todate);
            p1.add(lquality);
            p1.add(tquality);
            p1.add(lparty);
            p1.add(tparty);
            p1.add(ltype);
            p1.add(cbotype);
            p1.add(lindent);
            p1.add(tindent);
            p1.add(lsize);
            p1.add(tlength);
            p1.add(lmul);
            p1.add(twidth);
            p1.add(lgsm);
            p1.add(tgsm);
            p1.add(lquantity);
            p1.add(tquantity);
            p1.add(ldest);
            p1.add(tdest);
            p1.add(lorderno);
            p1.add(torderno);
            lheader.setFont(bigfont);
            lheader1.setFont(bigfont1);
            lheader2.setFont(bigfont1);
            lheader3.setFont(bigfont1);
            lheader.setForeground(Color.blue);
            lheader1.setForeground(Color.gray);
            lheader2.setForeground(Color.gray);
            lheader3.setForeground(Color.gray);
            bcancel=new JButton("Refresh");
            bquery=new JButton("Query");
            bexecute=new JButton("Execute");
            bupdate=new JButton("Update");
            bnext=new JButton("Next");
            bprev=new JButton("Previous");
            bcancel.addActionListener(this);
            bquery.addActionListener(this);
            bexecute.addActionListener(this);
            bupdate.addActionListener(this);
            bnext.addActionListener(this);
            bprev.addActionListener(this);
            borders.addActionListener(this);
            boption.addActionListener(this);;
            bexit.addActionListener(this);
            bcancel.setBounds(250,550,200,25);
            p1.add(bcancel);
            bquery.setBounds(450,550,200,25);
            p1.add(bquery);
            bexecute.setBounds(650,550,200,25);
            p1.add(bexecute);
            bupdate.setBounds(250,575,200,25);
            p1.add(bupdate);
            bprev.setBounds(450,575,200,25);
            p1.add(bprev);
            bnext.setBounds(650,575,200,25);
            p1.add(bnext);
            torderno.setEnabled(false);
            todate.setEnabled(false);
            bcancel.setEnabled(true);
            bexecute.setEnabled(false);
            bquery.setEnabled(false);
            bprev.setEnabled(false);
            bnext.setEnabled(false);
            bupdate.setEnabled(false);
            frame.show();
            frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
        public static void main(String args[])
            MDILayout layout=new MDILayout();
        public void actionPerformed(ActionEvent ae)
            if (ae.getSource()==borders)
              intframe.show();
              intframe.repaint();
            if (ae.getSource()==boption)
              rangeframe.show();
              rangeframe.repaint();
    }Please provide me the solution so that P1 appears in IF1 and P2 appears in P2.
    Thanks in advance,
    Ankur

    all the controls are able to display on IF1 but after adding IF2 allthe controls are transferred from IF1 to IF2 and now IF1 displays as a blank screen
    You can't have components at more than one place in the hierarchy. If you add a component to something it is removed from its existing parent if there is one.
    I'm not sure how much that helps you - I took one look at your code and ran away screaming.

  • Please help with timout code. I'm under deadline.

    I have a timeline that stops on a frame full of flv playback
    components. I need the frame to listen for mouse clicks and after
    no mouse clicks for 2-3 minutes I need it to gotoAndPlay frame 1.
    As long as the viewer keeps clicking on the video controls it need
    to keep reseting the timer.
    I have looked all over trying to find something on this and
    got some help from the as forum but it's not woking like I need it
    to. I'm hoping to have this ready for a tradeshow in a couple of
    days.
    Any help would be greatly appreciated.
    ff

    I've added this code on the video page frame and it works but
    I need to disable it after the goto frame 1 or else it just meets
    the criteria for the goto again as soon as it loops around and gets
    back to the video page frame and just goes back to frame 1 without
    showing the video page frame without the 120 sec check for mouse
    movement.
    How do I disable this code on frame one and then let it work
    again when the timeline gets to the video page frame again.
    t=120; // 120 seconds inactivity triggers return to frame 1
    clearInterval(inactiveI); // <-- new statement
    inactiveI=setInterval(inactiveF,1000*t);
    function inactiveF(){
    _root.gotoAndPlay(1);
    _root.onMouseMove=function(){
    clearInterval(inactiveI);
    inactiveI=setInterval(inactiveF,1000*t);

  • Please help with C code to synchronize counter output to analog input

    Hi All,
    I am using NI DAQ USB-6353 with text-based C code to control it. I would like to send a continuous pulse train from the DAQ to pulse a power supply, which then activates an electron beam producing current to be read by the analog input port of the same DAQ. I would like to keep only the analog samples during the pulse peak and samples of a couple pulse widths right after. I am successfully to generate a pulse train using the sampled clock from a counter output channel, but fail to use the same clock to synchronize the pulse train with the analog input. DAQmxReadAnalogF64 is not called by the static function EveryNCallback set for the analog input task. Am I doing something wrong with the following codes? It would be great if it turns out only I am using the wrong sampled clock name of the counter ("dev1/PFI8") for the analog input. Or is something more fundamental that a counter cannot be sync. with an analog input?
    Would someone be able to send me a link to an example in C or C++ or visual basic showing how to synchronize a buffered sample clocked digital pulse train from a counter output channel to an analog input? To simplify the post, the below codes do not include the static functions EveryNCallback and DoneCallBack, but I can send them if needed.
    Many thanks in advance for your help,
    Thuc Bui
    //setting operation parameters
    double initDelay = 0.0, freq = 10;
    double dutyCycle = 0.0001;           //thus pulse width is 10 microsec
    unsigned highTicks = 4;   //per period
    unsigned numSamplesPerPeriod = highTicks / dutyCycle;   //40000 samples/period
    unsigned lowTicks = numSamplesPerPeriod - highTicks;      //per period
    unsigned sampleRate = 2*numSamplesPerPeriod*freq;       //800000 samples/s
    //create counter
    TaskHandle counterTask;
    int errCode = DAQmxCreateTask("", & counterTask);
    errCode = DAQmxCreateCOPulseChanFreq(counterTask, "dev1/ctr0", "",
                                     DAQmx_Val_Hz, DAQmx_Val_Low,
                                     initDelay, freq, dutyCycle);
    errCode = DAQmxCfgSampClkTiming(counterTask, "dev1/PFI8", sampleRate, DAQmx_Val_Rising,
                               DAQmx_Val_ContSamp, numSamplesPerPeriod);
    //create analog input
    TaskHandle aiTask;
    double minVolt = 0.0, maxVolt = 1.0;
    errCode = DAQmxCreateAIVoltageChan(aiTask, "dev1/ai0", "", DAQmx_Val_Diff,
                                     minVolt, maxVolt, DAQmx_Val_Volts, "");
    unsigned bufferSize = 10* numSamplesPerPeriod;
    errCode = DAQmxSetBufInputBufSize(aiTask, bufferSize);
    errCode = DAQmxCfgSampClkTiming(aiTask, "dev1/PFI8", sampleRate, DAQmx_Val_Rising, DAQmx_Val_ContSamp, numSamplesPerPeriod);
    errCode = DAQmxRegisterEveryNSamplesEvent(aiTask, DAQmx_Val_Acquired_Into_Buffer,
                                            numSamplesPerPeriod, 0, EveryNCallback, 0);
    errCode = DAQmxRegisterDoneEvent(aiTask, 0, DoneCallBack, 0)
    //start aiTask first
    errCode = DAQmxStartTask(aiTask);
    //then counterTask
    errCode = DAQmxStartTask(counterTask);

    Hi Xavier,
    Thank you very much for getting back to me. I really appreciate it. I followed your advice with the option 2 and simplified my code by using one of the NI C example templates to generate the below codes (also attached). I was able to see the pulses generated with an oscilloscope, and on the same oscilloscope I could see the ouput pulses of the electron beam probe. Unfortunately, the below code via DAQmxReadAnalogF64 reports of no data read from the probe and finally times out. Below is the error message given by this function. I did check the connection of the analog input wires to make sure they were connected to pin 1 (A0+) and 2 (A0-) because I was using the terminal configuration DAQmx_Val_Diff. Do you see any obvious errors I have made in my codes?
    Thanks a lot for your help,
    Thuc Bui
    Task started, waiting for trigger...
    Acquired 0 analog samples DAQmx Error: Some or all of the samples requested have not yet been acquired.
    To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger,  make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.
    Property: DAQmx_Read_RelativeTo
    Corresponding Value: DAQmx_Val_CurrReadPos
    Property: DAQmx_Read_Offset
    Corresponding Value: 0
    Task Name: _unnamedTask<1>
    Status Code: -200284
    End of program, press Enter key to quit
    ********************** C Code **************************************************
    #include <stdio.h>
    #include "NIDAQmx.h"
    #include <math.h>
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    int main(void) {  
    int32 error = 0;  
    char errBuff[2048]={'\0'};
    TaskHandle  taskHandleDig=0;  
    TaskHandle taskHandleAna=0;    
    double  timeout=10;  
    double minVol = -1.0, maxVol = 1.0;
    double initDelay = 0.0;  
    double freq = 10.0;  
    double pulseWidth = 1.0e-5; //10us  
    double dutyCycle = pulseWidth * freq;
    unsigned hiTicks = 4;  
    double sampleRate = hiTicks/pulseWidth; //samples/s  
    unsigned lowTicks = ceil(sampleRate/freq) - hiTicks;  
    unsigned nSpPeriod = hiTicks + lowTicks;
    unsigned numPulses = 1;  
    unsigned nSpCh = numPulses*nSpPeriod;    
    double sampleRate2 = ceil(2.0*sampleRate);  
    unsigned sampleMode = DAQmx_Val_FiniteSamps;
     /*********************************************/  /*/ DAQmx Configure Code  /*********************************************/  
    DAQmxErrChk(DAQmxCreateTask("", &taskHandleDig));  DAQmxErrChk(DAQmxCreateTask("", &taskHandleAna));    
    DAQmxErrChk(DAQmxCreateAIVoltageChan(taskHandleAna, "Dev2/ai0", "", DAQmx_Val_Diff, minVol, maxVol, DAQmx_Val_Volts, ""));  
    DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandleAna, "/Dev2/Ctr0InternalOutput", sampleRate2, DAQmx_Val_Rising, sampleMode, nSpCh));
    DAQmxErrChk(DAQmxCreateCOPulseChanFreq(taskHandleDig, "Dev2/ctr0", "", DAQmx_Val_Hz, DAQmx_Val_Low, initDelay, freq, dutyCycle));  
    DAQmxErrChk(DAQmxCfgSampClkTiming(taskHandleDig, "/Dev2/PFI12", sampleRate2, DAQmx_Val_Rising, sampleMode, nSpCh));    
    unsigned bufferSize = nSpCh;  
    DAQmxErrChk(DAQmxSetBufInputBufSize(taskHandleAna, bufferSize));  
    DAQmxErrChk(DAQmxSetBufOutputBufSize(taskHandleDig, bufferSize));
    /*********************************************/  /*/ DAQmx Write Code  /*********************************************/  
    DAQmxErrChk(DAQmxWriteCtrTicksScalar(taskHandleDig, 0, timeout, hiTicks, lowTicks, NULL));
    /*********************************************/  /*/ DAQmx Start Code  /*********************************************/  
    DAQmxErrChk(DAQmxStartTask(taskHandleAna));  DAQmxErrChk(DAQmxStartTask(taskHandleDig));
    printf("Task started, waiting for trigger...\n");
    /*********************************************/  /*/ DAQmx Read Code  /*********************************************/  
    double* dataAna = new double[nSpCh];  
    int32 numReadAna = 0;  
    int errCode = DAQmxReadAnalogF64(taskHandleAna, -1, timeout, DAQmx_Val_GroupByChannel, dataAna, nSpCh, &numReadAna, NULL);  
    printf("Acquired %d analog samples\n",numReadAna);  
    if (numReadAna) {   
        unsigned nPts = (numReadAna < hiTicks)? numReadAna : hiTicks;  
        for (unsigned n = 0; n < nPts; ++n) {    
             printf("%6.3f ", dataAna[n]);   
        printf("\n");  
    delete [] dataAna;
    DAQmxErrChk(errCode);
    Error:  
    if( DAQmxFailed(error) )   DAQmxGetExtendedErrorInfo(errBuff,2048);  
    if( taskHandleDig!=0 && taskHandleAna!=0 ) {   
    /*********************************************/   /*/ DAQmx Stop Code   /*********************************************/   
        DAQmxStopTask(taskHandleDig);   
        DAQmxClearTask(taskHandleDig);   
        DAQmxStopTask(taskHandleAna);   
        DAQmxClearTask(taskHandleAna);  
    if( DAQmxFailed(error) )   printf("DAQmx Error: %s\n",errBuff);  
    printf("End of program, press Enter key to quit\n");  
    getchar();  
    return 0;
    Attachments:
    Correlated DIO AI_Sample_Clock Dig Start.c ‏6 KB

  • Please help have error code 1013 and can not restore iphone 3gs

    i have tried every thing i can find to restore 3gs and no luck
    tried 4 different computers and 3 cables and all the usb ports on the computers
    i have even tried the gs.apple.com fix and no go.. am at a loss on what to do next any help
    would be great thank you all

    Every time I restore I get a different code last 2 times I have gotten code 1002
    And 1013 a few times.
    Error 1002 usually means a hardware problem. If you've tried several known working cables, the problem is likely in thte phone itself.
    +"Error 23, 28, 29, 40, 1002, 1011, 1012, 1014, 1611: These errors may indicate a hardware issue with your device. Follow the steps in this article and also attempt to restore while connected with a known-good 30-pin Dock Connector cable, computer, and network to isolate this issue to the device. If the MAC address is missing or the IMEI is the default value (00 499901 064000 0), this can also confirm a hardware issue."+

  • Please help with merging code

    With the help of this forum I have a program that decrypts a password that was previously encrypted. I'm trying to encorporate this decrypt code into a program of mine and having a problem with an undeclared Exception. Can someone help?
    Here's the short decrypt program that works:
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    import sun.misc.*;
    public class DecryptPassword
         public static void main(String args[]) throws Exception
              if(args.length<1)
                   System.out.println("Usage : DecryptPassword text");
                   return;
              Security.addProvider(new com.sun.crypto.provider.SunJCE());
              Key key;
              try
                   ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
                   key=(Key)in.readObject();
                   in.close();
              }      catch(FileNotFoundException fnfe)
                        KeyGenerator generator= KeyGenerator.getInstance("DES");
                        generator.init(new SecureRandom() );
                        key=generator.generateKey();
                        ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
                        out.writeObject(key);
                        out.close();
              Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
                   cipher.init(Cipher.DECRYPT_MODE,key);
                   BASE64Decoder decoder = new BASE64Decoder();
                   byte[] raw = decoder.decodeBuffer(args[0]);
                   byte[] stringBytes = cipher.doFinal(raw);
                   String result = new String(stringBytes,"UTF8");
                   System.out.println(result);
    }Now here's the code snippet. I call this function from another part of the program with DecryptPassword();
         public void DecryptPassword()
              Security.addProvider(new com.sun.crypto.provider.SunJCE());
              Key key;
              try
                   ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
                   key=(Key)in.readObject();
                   in.close();
              }      catch(FileNotFoundException fnfe)
                        KeyGenerator generator= KeyGenerator.getInstance("DES");
                        generator.init(new SecureRandom() );
                        key=generator.generateKey();
                        ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
                        out.writeObject(key);
                        out.close();
              Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
              cipher.init(Cipher.DECRYPT_MODE,key);
              BASE64Decoder decoder = new BASE64Decoder();
              byte[] raw = decoder.decodeBuffer(EncryptedRemedyPassword);
              byte[] stringBytes = cipher.doFinal(raw);
              String result = new String(stringBytes,"UTF8");
              EncryptedRemedyPassword = result;
              //System.out.println(result);
         }Problem is, what do I do with the "throws Exception" that is a part of the Main program in the first set of code? I assume that's the problem.
    Thanks.
    James

    Please don't write the name of your method with an uppercase.
    There is two ways to solve your problem :
    1) you declare that your method throws an Exception like this :
    public void decryptPassword() throws Exceptionbut, for each call of this method you will have to put it in a try{} catch(Exception e) {} clause.
    2) you put all the code of your method in a try clause like this :
    public void decryptPassword() {
        try {
             // all the code
        catch(Exception e) {
            System.out.println(e);
    }I hope this helps,
    Denis

  • Can someone please help with this code and what it means? Interval Since Last Panic Report:  6395213 sec Panics Since Last Report:          1 Anonymous UUID:                    8AEBAB22-1943-48B3-8D30-E4D07CCDEEA0  Tue Mar 18 13:30:13 2014 Machine-check c

    Interval Since Last Panic Report:  6395213 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    8AEBAB22-1943-48B3-8D30-E4D07CCDEEA0
    Tue Mar 18 13:30:13 2014
    Machine-check capabilities (cpu 3) 0x0000000000000006:
    family: 6 model: 15 stepping: 6 microcode: 198
    Intel(R) Xeon(R) CPU            5160  @ 3.00GHz
    6 error-reporting banks
    Machine-check status 0x0000000000000005:
    restart IP valid
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x1000000020000000 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000000 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0020000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000011 invalid
    IA32_MC5_STATUS(0x415): 0xb200001080200e0f valid
    MCA error code:            0x0e0f
    Model specific error code: 0x8020
    Other information:         0x00000010
    Status bits:
      Processor context corrupt
      Error enabled
      Uncorrected error
    panic(cpu 2 caller 0x2cf3cc): "Machine Check at 0x002d3432, trapno:0x12, err:0x0," "registers:\n" "CR0: 0x80010033, CR2: 0x103dd000, CR3: 0x00100000, CR4: 0x00000660\n" "EAX: 0x00000000, EBX: 0x000000be, ECX: 0x6241b000, EDX: 0x00000001\n" "ESP: 0x6f853c58, EBP: 0x6f853c58, ESI: 0x00000000, EDI: 0x827a6b3c\n" "EFL: 0x00000016, EIP: 0x002d3432\n"@/SourceCache/xnu/xnu-1699.32.7/osfmk/i386/trap_native.c:258
    Backtrace (CPU 2), Frame : Return Address (4 potential args on stack)
    0x6853cf38 : 0x2203de (0x6b08cc 0x6853cf58 0x229fb0 0x0)
    0x6853cf68 : 0x2cf3cc (0x6bde94 0x6bdfc8 0x2d3432 0x12)
    0x6853d0d8 : 0x2cf409 (0x6853d110 0xde 0x6bdfc8 0x1)
    0x6853d0f8 : 0x2e6182 (0x6853d110 0x0 0x0 0x0)
    0x6f853c58 : 0x2d381e (0x20 0x7fffffff 0x6f853c88 0x29701be)
    0x6f853c68 : 0x29701be (0x684b6100 0xffffffff 0x6f853cb8 0x9d8e800)
    0x6f853c88 : 0x297028b (0x684b6100 0xffffffff 0x7fffffff 0x827aa38d)
    0x6f853cb8 : 0x296864f (0x684b6100 0x827aa38d 0xbe 0xffffffff)
    0x6f853d58 : 0x29699fe (0x827aa38d 0xbe 0x3 0x0)
    0x6f853de8 : 0x2d0cde (0xffffffff 0x7fffffff 0x6f853e08 0x2cd4ca)
    0x6f853e08 : 0x22d3e5 (0x684c5000 0x827a6711 0xbe 0x684c5de0)
    0x6f853e48 : 0x22e1c0 (0xd58c7f0 0x684c5000 0x0 0x0)
    0x6f853e98 : 0x22f6c2 (0xd58c80c 0x2 0x12 0xd7c0e00)
    0x6f853ef8 : 0x22f821 (0x2150f0 0x0 0x0 0xd58c7f0)
    0x6f853f18 : 0x21505d (0x2150f0 0x7000006 0xc00 0xffffffff)
    0x6f853f48 : 0x21b385 (0xede8f28 0x7000006 0xc00 0xffffffff)
    0x6f853f98 : 0x2b7bb7 (0xd4c9954 0x7fff 0xd4c9984 0x8)
    0x6f853fc8 : 0x2e60c7 (0xd4c9950 0x0 0x10 0xd4c9950)
         Kernel Extensions in backtrace:
            com.apple.driver.AppleIntelCPUPowerManagement(195.0)[D1550426-D346-4805-A777-06 63C69080DA]@0x2966000->0x298ffff
    BSD process name corresponding to current thread: iTunes
    Mac OS version:
    11G63
    Kernel version:
    Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386
    Kernel UUID: 859B45FB-14BB-35ED-B823-08393C63E13B
    System model name: MacPro1,1 (Mac-F4208DC8)
    System uptime in nanoseconds: 818233088876
    last loaded kext at 91751914186: com.apple.driver.AppleHWSensor          1.9.5d0 (addr 0x2990000, size 28672)
    last unloaded kext at 226546974280: com.apple.driver.CSRHIDTransitionDriver          4.0.8f17 (addr 0x21cd000, size 12288)
    loaded kexts:
    com.parentalctrl.kext.filter          3.8.1
    com.logmein.driver.LogMeInSoundDriver          1.0.3
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.driver.AppleHDA          2.2.5a5
    com.apple.driver.AudioAUUC          1.59
    com.apple.GeForce7xxx          7.0.4
    com.apple.driver.AppleUSBDisplays          323.3
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.8f17
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleMCEDriver          1.1.9
    com.apple.driver.Apple_iSight          4.0.1
    com.apple.driver.AudioIPCDriver          1.2.3
    com.apple.driver.ApplePolicyControl          3.1.33
    com.apple.driver.ACPI_SMC_PlatformPlugin          5.0.0d8
    com.apple.driver.AppleLPC          1.6.0
    com.apple.filesystems.autofs          3.0
    com.apple.driver.CSRUSBBluetoothHCIController          4.0.8f17
    com.apple.iokit.SCSITaskUserClient          3.2.1
    com.apple.driver.AppleRAID          4.0.6
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.1.0
    com.apple.driver.AppleFWOHCI          4.9.0
    com.apple.driver.AppleAHCIPort          2.3.1
    com.apple.driver.AppleIntelPIIXATA          2.5.1
    com.apple.driver.AppleIntel8254XEthernet          2.1.3b1
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleUSBHub          5.1.0
    com.apple.driver.AppleUSBUHCI          5.1.0
    com.apple.driver.AppleUSBEHCI          5.1.0
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          195.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.4
    com.apple.security.TMSafetyNet          8
    com.apple.driver.AppleIntelCPUPowerManagement          195.0.0
    com.apple.driver.AppleBluetoothHIDMouse          175.9
    com.apple.driver.AppleHIDMouse          175.9
    com.apple.driver.IOBluetoothHIDDriver          4.0.8f17
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.driver.DspFuncLib          2.2.5a5
    com.apple.nvidia.nv40hal.G7xxx          7.0.4
    com.apple.NVDAResman.G7xxx          7.0.4
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.driver.AppleHDAController          2.2.5a5
    com.apple.iokit.IOHDAFamily          2.2.5a5
    com.apple.iokit.IOAudioFamily          1.8.6fc18
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleGraphicsControl          3.1.33
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.driver.AppleSMC          3.1.3d10
    com.apple.driver.IOPlatformPluginLegacy          5.0.0d8
    com.apple.driver.IOPlatformPluginFamily          5.1.1d6
    com.apple.kext.triggers          1.0
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.8f17
    com.apple.iokit.IOBluetoothFamily          4.0.8f17
    com.apple.driver.AppleUSBHIDKeyboard          160.7
    com.apple.driver.AppleHIDKeyboard          160.7
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.driver.AppleUSBMergeNub          5.1.0
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.2.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOATAPIProtocolTransport          3.0.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.1
    com.apple.iokit.IOFireWireFamily          4.4.8
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.iokit.IOATAFamily          2.5.1
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOUSBFamily          5.1.0
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.11
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.driver.DiskImages          331.7
    com.apple.iokit.IOStorageFamily          1.7.2
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4
    Model: MacPro1,1, BootROM MP11.005C.B08, 4 processors, Dual-Core Intel Xeon, 3 GHz, 5 GB, SMC 1.7f10
    Graphics: NVIDIA GeForce 7300 GT, NVIDIA GeForce 7300 GT, PCIe, 256 MB
    Memory Module: DIMM Riser A/DIMM 1, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
    Memory Module: DIMM Riser A/DIMM 2, 512 MB, DDR2 FB-DIMM, 667 MHz, 0x802C, 0x39485446363437324A592D36363742344433
    Memory Module: DIMM Riser A/DIMM 3, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
    Memory Module: DIMM Riser A/DIMM 4, 2 GB, DDR2 FB-DIMM, 667 MHz, 0x8319, 0x4D4B435333385554412D4944542020202020
    Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Ethernet 1, Ethernet, en0
    PCI Card: NVIDIA GeForce 7300 GT, sppci_displaycontroller, Slot-1
    Serial ATA Device: ST3250824AS  Q, 250.06 GB
    Serial ATA Device: SAMSUNG HD501LJ, 500.11 GB
    Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
    Serial ATA Device: WDC WD10EADS-00M2B0, 1 TB
    Parallel ATA Device: SONY    DVD RW DW-D150A
    USB Device: hub_device, apple_vendor_id, 0x911d, 0xfd500000 / 3
    USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd520000 / 5
    USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfd522000 / 6
    USB Device: Apple Cinema Display, apple_vendor_id, 0x921d, 0xfd530000 / 4
    USB Device: USB2.0 Hub, 0x05e3  (Genesys Logic, Inc.), 0x0608, 0xfd400000 / 2
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8206, 0x5d200000 / 2
    FireWire Device: built-in_hub, 800mbit_speed
    FireWire Device: iSight, Apple Computer, Inc., 200mbit_speed
    FireWire Device: unknown_device, unknown_speed

    Kernel panic, machine check, uncorrected error correlates very strongly with RAM memory errors.
    Time for a Memory upgrade.

  • Please, HELP to convert code from AS2 to AS3!!!

    there is source code from paint application, thank to human who will convert this code, it's codeimportant for us.
    stop();
    var arrSloy:Array = new Array();
    //Initial
    //OnMove
    _root.onMouseMove = function() {
              if (checkPole() && onTool) {
                        Mouse.hide();
                        _root.kist._visible = true;
                        _root.eras._visible = true;
                        _root.pen._visible = true;
                        _root.line._visible = true;
              } else {
                        Mouse.show();
                        _root.kist._visible = false;
                        _root.eras._visible = false;
                        _root.pen._visible = false;
                        _root.line._visible = false;
              updateAfterEvent();
    //OnMove
    //New
    _root.panelMane.butNew.onRelease = function() {
              _root.newClip1.removeMovieClip();
              _root.clipMask.removeMovieClip();
              onTool = false;
              Mouse.show();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
              _root.gotoAndStop("newImg1");
    _global.XO = null;
    _global.YO = null;
    _global.WO = null;
    _global.HO = null;
    //creatNewPalitra
    function creatNewPalitra(color:String, w:Number, h:Number) {
              XO = 120;
              YO = 130;
              WO = w;
              HO = h;
              gotoAndStop(51);
              _root.createEmptyMovieClip("newClip1",0);
              newClip1.lineStyle(0,"0xFFFFFF");
              newClip1.beginFill(color);
              newClip1.moveTo(XO,YO);
              newClip1.lineTo(XO+w,YO);
              newClip1.lineTo(XO+w,YO+h);
              newClip1.lineTo(XO,YO+h);
              newClip1.lineTo(XO,YO);
              newClip1.endFill();
              _root.createEmptyMovieClip("clipMask",1);
              clipMask.lineStyle(0,"0xFFFFFF");
              clipMask.beginFill("0xFFFFFF");
              clipMask.moveTo(XO,YO);
              clipMask.lineTo(XO+w,YO);
              clipMask.lineTo(XO+w,YO+h);
              clipMask.lineTo(XO,YO+h);
              clipMask.lineTo(XO,YO);
              clipMask.endFill();
              newClip1.setMask(clipMask);
    function checkPole() {
              if (WO == null) {
                        return false;
              if ((_xmouse>=XO && _xmouse<=XO+WO) && (_ymouse>=YO && _ymouse<=YO+HO)) {
                        return true;
              } else {
                        return false;
    //New
    _root.panelTool.butCursor.onRelease = function() {
              onTool = false;
              Mouse.show();
              _root.kist.removeMovieClip();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
    //PEN
    creatClip = 10;
    _root.panelTool.butPen.onRelease = function() {
              onTool = true;
              _root.attachMovie("pensil","pen",1000000);
              Mouse.hide();
              _root.pen.startDrag(true);
              function drawPen() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.pen.onMouseDown = function() {
                        if (checkPole()) {
                                  drawPen();
                                  pen_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.pen.onMouseUp = function():Void  {
                        pen_draw_flag = false;
              _root.pen.onMouseMove = function():Void  {
                        if (pen_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //BRUSH
    _root.panelTool.butkist.onPress = function() {
              onTool = true;
              _root.attachMovie("kister","kist",1000000);
              Mouse.hide();
              _root.kist.startDrag(true);
              function drawKist() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleFill.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.kist.onMouseDown = function() {
                        if (checkPole()) {
                                  drawKist();
                                  kist_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.kist.onMouseUp = function():Void  {
                        kist_draw_flag = false;
              _root.kist.onMouseMove = function():Void  {
                        if (kist_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //LINE
    _root.panelTool.butLiner.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawLine() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawLine();
                                  line_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        line_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (line_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //ERASER
    _root.panelTool.butEras.onPress = function() {
              onTool = true;
              _root.attachMovie("eraser","eras",1000000);
              Mouse.hide();
              _root.eras.startDrag(true);
              function drawEras() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = "0xFFFFFF";
                        lineAlpha = "100";
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.eras.onMouseDown = function() {
                        if (checkPole()) {
                                  drawEras();
                                  eras_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.eras.onMouseUp = function():Void  {
                        eras_draw_flag = false;
              _root.eras.onMouseMove = function():Void  {
                        if (eras_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //CURV
    _root.panelTool.butCurv.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              anchor1X = anchor2X=controlX=null;
              anchor1Y = anchor2Y=controlY=null;
              onClic = 0;
              function drawCurv() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.line.onMouseDown = function() {
                        if (onClic == 0) {
                                  if (checkPole()) {
                                            drawCurv();
                                            anchor1X = this._x;
                                            anchor1Y = this._y;
                                            onClic = 1;
                                            _root.attachMovie("point","point1",1000001);
                                            point1._x = anchor1X;
                                            point1._y = anchor1Y;
                        } else if (onClic == 1) {
                                  if (checkPole()) {
                                            anchor2X = this._x;
                                            anchor2Y = this._y;
                                            onClic = 2;
                                            _root.attachMovie("point","point2",1000002);
                                            point2._x = anchor2X;
                                            point2._y = anchor2Y;
                        } else if (onClic == 2) {
                                  if (checkPole()) {
                                            controlX = this._x;
                                            controlY = this._y;
                                            onClic = 0;
                                            curv_draw_flag = true;
                                            point1.removeMovieClip();
                                            point2.removeMovieClip();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
              _root.line.onMouseUp = function():Void  {
                        curv_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (curv_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
                                  updateAfterEvent();
    //STAR
    _root.panelTool.butStar.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              Mouse.hide();
              _root.line.startDrag(true);
              function drawStar() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawStar();
                                  star_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  thisx = this._x;
                                  thisy = this._y;
                                  clip.moveTo(thisx,thisy);
              _root.line.onMouseUp = function():Void  {
                        star_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (star_draw_flag) {
                                  if (checkPole()) {
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //KVADRAT
    _root.panelTool.butRecttangle.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawRecttangle() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        fillColor = _root.panelProperties.poleFill.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawRecttangle();
                                  kvadrat_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        kvadrat_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (kvadrat_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.beginFill(fillColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,thisy);
                                            clip.lineTo(this._x,this._y);
                                            clip.lineTo(thisx,this._y);
                                            clip.lineTo(thisx,thisy);
                                            clip.endFill();
                                  updateAfterEvent();
    //Clear
    _root.panelMane.butClear.onRelease = function() {
              for (a=0; a<arrSloy.length; a++) {
                        clip = arrSloy[a];
                        clip.removeMovieClip();
                        delete arrSloy[a];
    //Back
    _root.panelMane.butBack.onRelease = function() {
              i = arrSloy.length-1;
              clip = arrSloy[i];
              clip.removeMovieClip();
              arrSloy.pop();
    Thank you very much!!!

    Zhanbolat,
    In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
    In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
    With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

  • Urgent: please help - Object Hash Code of RMI stubs in a cluster

    Hello all,
    I'm trying to find out for a week now if members of a cluster can get out of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.
    After binding an RMI object to one server (no rmic performed since the object
    is in the classpath of both servers and the service is pinned), the JNDI mapping
    looked identical on both servers.
    However, while one server went down for a few hours, the other server has changed
    the "Object Hash Code" to a new one (the binding name stayed constant). When the
    server went up again it tried to lookup the object under the same binding, then
    found it but failed to execute remote methods on it. An error message says that
    the object was garbage collected:
    java.rmi.NoSuchObjectException: Unable to dispatch request to Remote object with
    id: '347'. The object has been garbage collected. at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:766)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:738) at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:207)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:777) at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:508)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:664) at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
    Why isn't the new JNDI mapping replicated to the new booting server? Should I
    use specific rmic flags? How can I maintain the JNDI trees identical on all clustered
    servers?
    I'm using two managed WLS 7.02 servers running on win2000 servers.
    Dani

    Hi Andy,
    Thank you for responding.
    The binding code looks like that:
    m_ctx = new InitialContext();
    int index = getNextAvailableRepositoryJNDIIndex();
    m_ctx.bind(
    NODE_PREFIX+index,
    this
    where this is the Remote implementation.
    How will I make the object hash code constant or have all views remain constant
    when the GC changes its reference?
    Dani
    Andy Piper <[email protected]> wrote:
    "Daniel Gordon" <[email protected]> writes:
    I'm trying to find out for a week now if members of a cluster can getout of synch
    regarding "Object Hash Code" of RMI stubs in the JNDI.The hash code can probably change since the stub represents an
    aggregate view of the cluster. But this may be a red-herring. What
    does your code look like that binds the rmi object? It may be that DGC
    is biting you.
    andy

Maybe you are looking for

  • HD from FCP to DVD Studio Pro...Help!

    Looking for opinions in getting the BEST possible Standard Def DVD from a Final Cut Pro sequence containing heavilly effected HD DVCPro P2 footage. My sequences settings are: Frame Size: 960 x 720 Aspect Ratio: HD (960x720)(16x9) Pixel Aspect Ratio:

  • How to find unassigned master data text objects in process chain in bi

    Hi Please let me know how to find the unassigned master data text objects in process chain.

  • Do they load the OS on SSD if purchase from Apple Store

    On the website they state that if you buy an iMac with an SSD it will come with the OS loaded on it. Is this also true if you buy the same setup from the Apple store? Can you even buy an iMac with SSD at the store? Thanks for the quick answers. Looks

  • UOM Conversion

    I have a scenario wherein I have to convert to UOM from the data record to CS based on the Material. Below are the steps i performed. 1.) In the BEx tab of 0MATERIAL entered 0BASE_UOM for Base Unit of measure and also created UOM0MATE DSO. 2.) Loaded

  • CC Updater - U44M1I11 Another Instance is Running

    Seems like just last month I was struggling with this problem with CS6. Oh wait, I was: http://forums.adobe.com/message/5753380#5753380 So now I'm back with CC. Installed all the programs today. Hit Update and of course Photoshop, Premiere, and Audit