Need help trouble shooting psinfo

Folks... I am confused... I need to programatically read the command line arguments in /proc/<pid>/as.
For 2 processes I get the message "as open: Permission denied". The processes are
smmsp 366 1 1 1 0 Jun 20 ? 0:05 /usr/lib/sendmail -Ac -q15m
AND
root 367 1 0 Jun 20 ? 1:02 /usr/lib/sendmail -bd -q15m
I am running my code as root... When I try using pargs I get the message "pargs: cannot examine 366: permission denied"
Can anyone explain why it these 2 processes that are in trouble? Is this real?
Thanx
Siva

Thanks for your suggestion regarding contacting Apple. I called the Express service and talked for a couple of hours trying to resolve the issues.
One, to deal with the password issue, Keychain Access > Preferences > click on Reset My Default Keychain, close.
For the original issue of mail downloading messesges from my server every time I checked mail,
Library > Mail folder > messagealreadydownloaded3 > drag to trash. Issues resolved!!!
As for creating a pretty good mess... well all I can say is that I was following suggestions from other users that have posted online with similar issue. Lesson learned??? Not sure if there was one:-)

Similar Messages

  • Need help trouble shooting on how to fix my MacBook Pro so it will start

    Ok, this is going to be a bit of a long one, cuz there are a good amount of details that go into the problem and how I have tried to fix it.
    To start, late last summer I got my Macbook Pro 15" with high resolution anti-glare, 500 GB X 7200 RPM hard drive, and everythin else standard.
    Next part of the story is that i decided to upgrade from my 3-year-old iPhone 3GS. So I preordered an iPhone 5 (never doing that again), and finally received it 10/05/12.
    Wanting to synch my new iPhone 5 ASAP so I could fully play with it, I finally synched my old iPhone 3GS with my MacBook Pro for the first time. I had not previously synched it with my MacBook Pro, because all of the songs and stuff that were on it were from being synched with my family's desktop (from maybe a year or so ago; I don't synch my phones often.). I also had been lazy this whole time in not transferring the songs and stuff from the desktop to my MacBook Pro, so thats why I didn't synch my 3GS, because I didn't want to lose that stuff on my phone until I had made time to transfer the data. Because of this, I didn't use iTunes that much and I updated it only 2 or 3 times over the year that I had if before I got my iPhone 5.
    After synching my old phone, I then tried synching the i5, but an iTunes pop up said that I needed to update to iTunes 7.0 in order to synch the new phone.
    So I canceled the pop-up, and checked the updates in iTunes, and selected update (I can't remember what it said I was updating to, but I don't think it was 7.0).
    After it started updating, it asked if I wanted to update something something else (I think it was an iOS update or something thing like that.).
    I select update, because it looks legit, and why not update the whole computer when I'm taking the time to update iTunes? So the 15-20 minute installation estimation time turns into 2 hours (I think that it said that there was 2GB of update, but not sure.).
    At that time, I think of how I don't remember if the update was 7.0 or not (maybe 6.9 or something like that was my thought.). So I tried to re-synched my i5 to make the pop up for iTunes 7.0 to come up. It came up, and I clicked the link to take me to Apple's site. I clicked the update to iTunes 7.0, and it started downloading from the internet, and it gave some download estimation time. Remember that the other iTunes and iOS thing was still updating while iTunes 7.0 was downloading. The problem was that I had to go to work a few minutes before the download of the iTunes 7.0 from Apple's site would complete and 1.5 hours before the other updates would finish. So I just left my MacBook Pro open, running, and updating/downloading.
    After work, I checked my laptop, and it said something about finalizing the installation. So I hit that button to finalize or whatever it said, and it starts finalizing.
    After waiting 10 or so minutes I check my MacBook Pro again, and it says that it needs to restart to complete the process. So I hit the restart button on the pop up.
    It restarted, and against a blue screen there was a grey pop up that said that there was some error or something like that in the installation and that I needed to restart the computer again. There was only one button on the pop up, and it was the "Restart" button. So I pressed it, and it restarted again.
    However, it didn't fully boot up (and to this day still doesn't) and get past the grey screen with the apple and the spinning gear thingy underneath it.
    After like 20 minutes, I did a forced shut off, and rebooted while holding the option button to see if I could start my Windows side, since I have my computer bootcamped, though I haven't used Windows on it yet. The three options appeared: Windows something, Macintosh something, and Recovery HD. I clicked the Windows button, and after loading and stuff, Windows was running and working. So I'm pretty sure that my problem isn't a hardware problem, but a software problem.
    So I asked a friend who is studying to be some kind of computer guy, and he suggested that I put in the Mac iOS X disk that I got with my MacBook Pro when I start up and try to get to Disk Utility. I did that, and was able to get to Disk Utility. And as he instructed, I (on the First Aid tab, I think) pressed "Verify Disk". He said that it started to look for problems and stuff. Then when it was done, I pressed the "Repair Disk", and he said it started fixing those problems. After it was done, I performed another forced shut off. I then turned my MacBook Pro on with crossed fingers, but it was still stuck on the gray screen with the apple and the gear.
    He then suggested that we try to start it in Safe Mode, so we researched how to do it on my family's desktop. I tried holding Shift after the turn on tone and releasing it when the spinning gear appeared, but that didn't work. I'm still not sure if that's the right way to start in safe mode.
    So right now I don't have any other ideas, besides spending money to get it fixed, which I don't want to do, cuz I'm not rich and I work hard for all these fancy toys.
    It ***** to have the joy of getting the newest iPhone overshadowed by my MacBook Pro not working.
    Someone, please help!!!

    First off your older OS X boot disks are no good as you upgraded OS X to a later version.
    When you held the option key down at boot, this entered Startup Manager and by what your describing you have Recovery HD, Macintosh HD (your OS X boot partition), and Windows BootCamp partition.
    To repair the drive, you enter Recovery HD and use Disk Utiltiy there to repair the Macintish HD partition.
    You also use Recovery HD to reinstall OS X 10.7 or 10.8 from Apple's servers, this should fix your problems without deleting your programs or files. (some third party with at boot kernel extension ones will have to be reinstalled)
    All you need to know is here
    Step by Step to fix your Mac
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Need help trouble shooting mail issue

    Mail issue started when the compter (imac intel, g4, os 10.6.8) said it needed to restart during a mail download. I restarted, then the mail program would not stop downloading older messages. I went online and followed a whole bunch of suggestions, which only made matters worse (preferences... drag com.mail.plist to desktop, add it back, rebuild mail) nothing worked. I then trashed the mail program, and trashed some of the mail cache (not wanting to lose preferences, I lett this cache). Then mail I could not access mail without the set-up assistant showing on screen. So... (digging a deeper and deeper hole!) I tried to restore mail from my time machine back-up (severl days prior to issue) and it did not help. I then reinstalled applications from snow leopard... not helpful. I then figured I could use migration assistant to copy my working mail program from my mac pro and this did not solve the issues. Of course all of this taking me away from my Christmas shopping:-)
    So, I tried to set it up manually, but the program will not save the password and it keeps asking for the password but rejecting it each time.
    Any ideas??

    Thanks for your suggestion regarding contacting Apple. I called the Express service and talked for a couple of hours trying to resolve the issues.
    One, to deal with the password issue, Keychain Access > Preferences > click on Reset My Default Keychain, close.
    For the original issue of mail downloading messesges from my server every time I checked mail,
    Library > Mail folder > messagealreadydownloaded3 > drag to trash. Issues resolved!!!
    As for creating a pretty good mess... well all I can say is that I was following suggestions from other users that have posted online with similar issue. Lesson learned??? Not sure if there was one:-)

  • I need help trouble shooting.... Screen/Monitor related.

    My monitor was going reddish/flickering and the backlight was going out so i can i could only barely see what's on the screen. The screen would also just blackout if it was on the brightest setting before. 
    A couple of days ago i replaced the CCFL backlight. No problems lights up nicely when the screen is not attached.  When i try to attach the screen to the hinges it will short out the lamp.  So basically, if the lcd frame (metal portion) touches the left or right hand sided "hinges or metal" that it screws into it will short hte lamp out.  I just have to put it back into sleep mode and then restart it w/o the lcd touching hte metal.  I've replaced the inverter, that did not help. 
    I am replacing the LCD cable when the part comes in.  The whole laptop is taken apart. I can not find any exposed wires.  Does anybody have anymore suggestions. I am out of ideas.
    T60, model 2007-64U, 14.1 screen.  HELP

    I give up!!!
    All parts don't fix the problem... I tried insulating the metal pseudo works... now the screen shuts off when its touched or moved. Different problems now....
    I have decided after a week and half of fixing and spending $50 in replacing CCFL, inverter, and LCD cable I am junking the T60 and leaving IBM/Lenovo.
    Going to go get a Mac Book Pro.  
    Cheers to everyone here... see ya.

  • I need help trouble shooting my 2 apple TV set up in home.

    I have 2 Apple TVs in my home.  One Gen1 and 1 Gen2.  The gen1 is working fine with home sharing and finding the movies, etc.  But the gen 2 is not showing up in iTunes under devices and I can't get it to pull down the content (movies, songs, etc).  What should I do?

    ATV1 doesn't use Home Sharing but ATV2 does.
    ATV1 was set up using an onscreen code you entered in iTunes for that device.
    On ATV2 as you set up Home Sharing credentials on the unit it then finds Home Shared itunes libraries without the numeric code step.  Consequently ATV2's never show in Devices (unless restoring them over USB).
    ATV1 had a hard drive to store contemt. ATV2 has solid state memory and only a small amount so cannot store any content permanently like ATV1. ATV2 only streams.  Do you see the iTunes library under the Computers column?

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Help needed to Trouble shoot

    I installed Directory SErver on Windows 2000 Advance Server.
    The directory server is responding but iplanet console is not responding (Not opening).
    How do i troubleshoot the problem. I am not an administrator.
    Thanks in Advance
    Krish

    As mentioned in the docs, http://docs.sun.com/source/816-6697-10/install.html#23711, you need to have Administrator privileges to install properly on Windows.
    If you see the login window when you start the console, it could be that the Administration Server you're trying to access is not running, or that some of the connection info (port number, admin ID, admin password) is not correct.
    You can look at the list of Windows Services to check whether the Administration Server is running.
    Note that you want to be using a 5.2 Administration Server with Directory Server 5.2. So if you're using an older Administration Server with Directory Server 5.2, that could also be a source of problems.
    Hope some of this helps,
    Mark

  • Help trouble shooting

    i have recently damaged my iphone 4 and the so far i know that i need to replace the battery and the front screen digitizer. I would like to know if it is worth just buying those parts of their is a possibility that there is more damage done to the phone that i dont know about. all i can do with the phone is conect it to my computer and it the lights up the broken screen. it then tries and fails to restore.
    please help it would be much appreciated

    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on): If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software.
    From: http://support.apple.com/kb/TS3694

  • Need help: trouble printing a doc into a pdf

    Hello
    I can not take a word docx or any other format and convert it into a pdf format.  When I click on printer, then pdf, hit ok - it gives me :
    invalid "adobe pdf" printer properties: do not change spooler settings. Please selete "print directly to the printer" option (from adobe pdf printer properties "advanced" tab).
    then it says windows cannot print due to a problem with the current printer setup
    I have tried setting the 'print directly to printer' and it does nothing but along pause... no print
    It used to work before now it stopped working and I don't know what happened
    I am not sure where the problem is, I do not have a lot of knowledge when it comes to computers.
    I do have an adobe reader 9.3 and an adobe acrobate 4.0 
    I am also using windows vista
    Please help me!  Thanks

    There are forums I read that say there is a convert on the word dox program.  Problem is that I am not always wanting to convert a word doc into a pdf.  There are other programs I want to convert as well like .indd for example, which does not have a pdf coverter option in its program
    I tried a live chat ... and they said they could not help me because they can only help version 10

  • Need help, Trouble in uploading records using sql loader in Forms 6i

    Hi,
    I am trying to develop a screen for uploading records to a table by using a ctl file, batch file and sql loader.
    Env: Forms 6i, Oracle 8
    Table to be updated is: shy_upload_table
    My TSN entry looks similar to this,
    TEST_AXA.CNB.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 11.23.11.123)(PORT = 1234))
    (CONNECT_DATA =
    (SID = axdabc)
    My intention is whenever i press the upload_button, I should truncate the table and upload it with the contents of the file.
    In the when-button-pressed event of the upload_button I have the following code. always I am able to truncate the table but am not able to upload it with the contents of the file. Can any of you help me fix this problem ?
    declare
         var_control varchar2(256);
         VAR_DATA VARCHAR2(256);
         VAR_OUTPUT VARCHAR2(500);
         var_filename varchar2(256);
         str varchar2(50);
         cnt number;
    begin
         FORMS_DDL('TRUNCATE TABLE shy_upload_table ');
         select count(*) into cnt from shy_upload_table;
         message('count '||cnt);
         MESSAGE('');
    If NOT form_success Then
         MESSAGE('Upload Failed');
         MESSAGE('Upload Failed');           
    else
         set_item_property('DISPLAY_PB',enabled,property_true);
    --when ever i run, i am able to see the display_pb enabled. it means form_success is true.
    end if;
         var_filename := :txt_filename;
    --I have tried with each of the below option,
    --sqlldr userid/[email protected] control=F:\ERP\file_upload.ctl
    --sqlldr userid/password@axdabc control=F:\ERP\file_upload.ctl
    --sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl
         VAR_DATA :='data=' || var_filename ;
         VAR_OUTPUT := var_control|| ' ' ||VAR_DATA;
         host('F:\a.bat');
    end;
    batch file contents...
    # I have tried with each of the below options
    sqlldr userid/[email protected] control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
    #sqlldr userid/password@axdabc control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
    #sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
    pause
    Thanks
    vish

    Hi Francois,
    Thanks for responding, I am not very sure of what you want me to try out.
    When I double click the batch file containing the below, the record gets inserted in the table. Only when using my form and trying to upload, it fails to insert the record.
    batch file contents...
    #sqlldr userid/password@TEST_AXA.CNB.COM control=F:\ERP\file_upload.ctl data=F:\ERP\sample.txt log=F:\ERP\x.log bad=F:\ERP\x.bad
    pause
    Thanks
    Vish

  • Help trouble shooting elements 12

    windows said there was a issue and would close the program and would get back if there was a solution and  the program shuts down and can not open to use if I try it does same thing

    Hi elements 12 help,
    Please provide following information :
    What is the OS and version ?
    What is the Graphics Card installed on the system ?
    How much Ram do you have ?
    Do you use any external Hard Drive ?
    Are you using security software e.g. Norton, etc
    and
    if windows, Please check if you have windows defender turned on ?
    Regards,
    Sandeep

  • Help trouble-shooting firefox https/http/something issues

    I just wrote a very long post only to be told on trying to submit it that I did not have permission to access the page.
    I am having various extremely frustrating issues in firefox.
    Some of these seem to be profile or addon related but I cannot quite pin anything down.
    With my default config:
    1. I cannot post in any thread in the forums.
    2. On tex.stackexchange.com, I cannot view many pictures in situ although I can view them in a new tab. These all seem to be hosted on http://i.stack.imgur.com.
    3. If I login to the meta site for tex.stackexchange.com, I end up on the regular site for tex.stackexchange.com. Although I appear to be me when I go there, I cannot post or vote or anything. If I try to navigate to meta from the top bar menu, I get a warning from firefox that I can't trust the connection because the certificate is not valid for the domain with the "get me out of here!" button.
    4. On SE's diagnostic site, https://meta.stackoverflow.com/network-login-help?, I get failures for both Messaging and Storage.
    5. Disabling rules for sites in https everywhere doesn't help. Nor does disabling it completely and disabling the ssl observatory. When I do that, I still seem to get errors in ~/.xsession-errors:
    SSL Observatory: Cert submission failure 0:
    With a clean profile in safe-mode:
    1. I just lost a post when I tried to submit saying I had no permission to access the page.
    2. If I try to navigate to meta from the top bar menu on tex.stackexchange.com, I get a warning from firefox that I can't trust the connection because the certificate is not valid for the domain with the "get me out of here!" button.
    3. On SE's diagnostic site, https://meta.stackoverflow.com/network-login-help?, I get a failure for just Messaging.
    One of the problems is that what works one moment seems to fail the next and I can't get any robust work around which survives, say, a restart of the browser even using a clean profile. It is driving me nuts. Some of this is documented in this thread. (I always find firefox issues confusing.)
    I first had problems at the same time as being bitten by a https everywhere bug which prevented login on SE sites. However, although that seems to have been resolved, the issues aside from that persist for me.
    I am not using Arch's build but the 64bit from Mozilla. However, this version (26) worked for some time before I started seeing issues so I doubt it is a firefox update issue per se.
    Does anybody have any thoughts about whether I am seeing one or several issues? how best to individuate them? and how best to diagnose them?
    In the past, firefox issues have generally been entirely addon related and it has just been a question of being systematic but while some of this might be addon related, there seems to be a basic issue independent of my profile and addons. At least, so it seems given the failures in safe-mode with a clean profile. Any suggestions would be greatly appreciated as this is driving me not-so-slowly mad.
    Last edited by cfr (2014-01-13 00:03:48)

    I was wondering why I hadn't seen any posts from you for a while!
    I had an issue just the other day that sounds kind of like this.  I couldn't post things on the forums, I couldn't log into a number of internet services, and things were just all around failing.  It took me a while of trying to debug my own local network to finally realize that it wasn't actually my problem.  In an effort to just see if things were getting through, I tried a speed test site.  The ping time and download speeds were normal, but my upload was working hardly if at all.
    So I called comcast and was told to stop by the comcast store to trade in for a new cable modem.  I got home and it magically worked great.  In fact, there were several small issues I had with the last cable modem that were suddenly gone.
    A grrr about the situation.  I had to go pick up the cable modem because they told me it would be $15 to ship the new modem out to me, and I would also have to pay for a service appointment.  The lady on the phone told me that comcast had recently made it so that they could not wave the fee for such things, despite the fact that it was their won hardware that was causing the problems.  Then of course when I went to the comcast place I took a number and waited a good two hours for a two minute cable box trade.  Thanks comcast, your customer service sucks.

  • Help trouble shooting PRINTER PROBLEM within Numbers using Leopard

    Help!! On both my spreadsheet created and other templates I've attempted printing, the print preview looks perfect (with the spreadsheet centered on the page)... but when they print, instead of printing centered like the preview, the print runs off the top and starts printing with no top margin and partially through my spreadsheet.
    I reinstalled my HP Photosmart C4280 printer, and downloaded the updated beta driver found on HP's website. This did solve the problem. Is anyone else having printing problems? What else could I try?!
    Thanks!

    I called Apple tech support and got an answer! In Numbers, we must use the Document Inspector to "format for" the printer we're using. I have 2 printers installed, and it was defaulting to my label printer. When I switched to my HP printer, I had to make some small tweaks to my page format, and then it printed perfect.
    Hope this can help someone else!

  • Need Help: Trouble with Wireless Router Connection on MBP

    Hi all.  I just bought a MacBook Pro (my first Mac ever) and love, love, love it.  However, one glitch is driving me crazy.  I do *NOT* have an airport but I connect to my cable modem through my netgear wireless router.  When my MacBook Pro goes into sleep mode, I lose the connection to the wireless router.  I have to go unplug the router to reboot it for the MBP to see it again.  I think it has something to do with how it is assigning the IP address.  Has anyone else seen this issue?  Know how to solve it?  Thanks so much.

    See "Symptom: The network connection drops unexpectedly" on this page:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6

Maybe you are looking for