Need Urgent Help with Apache and PHP

I have been struggling with apache and php for a week now and I finally broke down to post a message.
I have apache 1.3 running on my mac mini g4 with 10.4.9 and I installed sql. I went to the entropy website and downloaded php5 to install without knowing I already had php4 on the machine. I installed 5 but could not get it to work. I then went back to httpd.conf and tried to install php4 by uncommenting out the loadmodule and addmodule lines. I restarted apache but php still did not work. I tested the phpinfo.php script but all I got was the script in Safari and not the actual page. At the moment, I have php4 and php5 on my machine but can't get either one to work. I am sure there is an easy fix but I don't know it. Please help.

The problem is not terribly complicated, but Apache will not start with the entropy file in the folder
/etc/httpd/users/
Let me experiment on you. Rename the entropy file and then try to start Apache. To do this, open Terminal and paste this command:
<pre>sudo mv /etc/httpd/users/+entropy.conf /etc/httpd/users/+entropy<pre>
Now check the Apache configuration:
<pre>apachectl configtest<pre>
If it says "Syntax OK", start Apache:
<pre>sudo apachectl start<pre>
Since we only disabled the entropy file, you should be able to enable PHP5 with some more advanced configuring.

Similar Messages

  • Need urgent help with service and file removal

    Hi,
    I need a powershell script that would stop a windows service ,wait for 2 mins, delete a particular file from C:\documents&settings and then start the service again.Is this possible ?
    Thanks

    Thanks for the reply chen. May be i was not clear in my query
    I plan this because a particular file of configmgr is corrupt on workstations. So the service has to be stopped first before the deletion. I need to run this on many computers remotely. The import file will have the machines that need the script to be run.
    The script has to run all the four steps on the machines based on the import file and export to a file with the results.How can i modify ?
    The sequence will be as follows
    Stop-Service -Name BITS -Verbose
    Start-Sleep -Seconds 120
    Remove-Item -Path C:\documents&settings\***** -Force -Verbose
    Start-Service -Name BITS -Verbose
    Regards
    Sd

  • Need urgent help with HSDIO hardware timing

    Hi everyone,
    I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device. 
    I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
    Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
    What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
    which means, my data is getting into output in every 1ms time, right? (I'm using windows)
    And I want to be able to generate faster than that. 
    How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
    In the picture can you see how I do the write into device in every iteration of FOR Loop.
    Regards,
    Yan.

    hi, thanks for responding.
    with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
    But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
    How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
    regards,
    Yan.

  • Need urgent help with Ifs1.1 on Solaris

    We have installed IFS 1.1 with Oracle 8.1.7 on a three tier System (two Suns). We use JWS as WebServer. When we start IFS and JWS everything seems to work fine. But after some time (irregulary) we are not able to contact the JSP-Sites via a bowser. After restarting JWS, everything works fine for some time.
    Sometimes it happens (about one times a day), that the whole JWS crashes (JWS-Admin doesn't work). So we have to restart the whole IFS.
    What can be the problem? We need urgent help, because the deadline for our project is Wednesday.
    By the way:
    Where do I have to start CTX on the IFS- or the Oracle-Side?
    null

    Yes, we tried the Oracle HTTP - Server, but we weren4t able to get it to work. We didn4t get our JSP-Files to work with it. But that is another issue. I think it4s not a problem of JWS, but IFS.
    Additionally it is strange, that we are still able to connect to the database via SqlPlus.
    IFS works fine for about 15 minutes, than it crashes, nothing works anymore. We found following errors in the IfsAgents.log:
    maybe it can help?!
    Mon Dec 04 23:12:20 CET 2000
    Server STARTED: IfsAgents(19944) not managed
    Attempting to load agent EventExchangerAgent
    Agent EventExchangerAgent loaded
    Server STARTED: IfsProtocols(19945) not managed
    Attempting to start agent EventExchangerAgent
    EventExchangerAgent: Start request
    Agent EventExchangerAgent started
    Attempting to load agent ExpirationAgent
    Agent ExpirationAgent loaded
    EventExchangerAgent: starting timer
    Attempting to start agent ExpirationAgent
    ExpirationAgent: Start request
    Agent ExpirationAgent started
    Attempting to load agent GarbageCollectionAgent
    Agent GarbageCollectionAgent loaded
    ExpirationAgent: computed initial delay (in ms) is: 10024504
    ExpirationAgent: starting timer
    Attempting to start agent GarbageCollectionAgent
    GarbageCollectionAgent: Start request
    Agent GarbageCollectionAgent started
    Attempting to load agent ContentGarbageCollectionAgent
    Agent ContentGarbageCollectionAgent loaded
    GarbageCollectionAgent: computed initial delay (in ms) is: 11816890
    GarbageCollectionAgent: starting timer
    Attempting to start agent ContentGarbageCollectionAgent
    ContentGarbageCollectionAgent: Start request
    Agent ContentGarbageCollectionAgent started
    Attempting to load agent DanglingObjectAVCleanupAgent
    Agent DanglingObjectAVCleanupAgent loaded
    ContentGarbageCollectionAgent: starting timer
    Attempting to start agent DanglingObjectAVCleanupAgent
    DanglingObjectAVCleanupAgent: Start request
    Agent DanglingObjectAVCleanupAgent started
    Attempting to load agent OutboxAgent
    Agent OutboxAgent loaded
    DanglingObjectAVCleanupAgent: computed initial delay (in ms) is: 5500105
    DanglingObjectAVCleanupAgent: starting timer
    Attempting to start agent OutboxAgent
    OutboxAgent: Start request
    Agent OutboxAgent started
    Attempting to load agent ServiceWatchdogAgent
    Agent ServiceWatchdogAgent loaded
    OutboxAgent: Done processing
    Attempting to start agent ServiceWatchdogAgent
    ServiceWatchdogAgent: Start request
    Agent ServiceWatchdogAgent started
    Attempting to load agent QuotaAgent
    Agent QuotaAgent loaded
    ServiceWatchdogAgent: Initializing ServerWatchdogTable with 9 entries
    ServiceWatchdogAgent: starting timer
    Server STARTED: FtpServer(20082) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Attempting to start agent QuotaAgent
    QuotaAgent: Start request
    Agent QuotaAgent started
    QuotaAgent: starting timer
    Server STARTED: CupServer(20124) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Server STARTED: ImapServer(20130) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    Server STARTED: SmtpServer(20150) managed by IfsProtocols(19945)
    ServiceWatchdogAgent: New Server being watchdogged
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server Detected in checkServer
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Unlocked Server being investigated
    ServiceWatchdogAgent: Freeing unlocked server 19687
    ServiceWatchdogAgent: Freeing unlocked server 19666
    Server STOPPED: CupServer(19687) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freeing unlocked server 19723
    ServiceWatchdogAgent: Freeing unlocked server 19520
    Server STOPPED: FtpServer(19666) managed by IfsProtocols(19519)
    Server STOPPED: SmtpServer(19723) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freeing unlocked server 19519
    Server STOPPED: IfsAgents(19520) not managed
    ServiceWatchdogAgent: Freeing unlocked server 19712
    Server STOPPED: IfsProtocols(19519) not managed
    Server STOPPED: ImapServer(19712) managed by IfsProtocols(19519)
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    ServiceWatchdogAgent: Freed Server removed from watchdog list
    QuotaAgent: Timer event: 0 active; 0 exceeded
    ContentGarbageCollectionAgent: Freed 5 unreferenced ContentObjects
    QuotaAgent: Timer event: 0 active; 0 exceeded
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-11012: Unable to get events from other services
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException in checkForDeadServices():
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException in handle loop; continuing:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    ServiceWatchdogAgent: IfsException publishing timer details:
    ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
    oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
    java.sql.SQLException: ORA-03114: not connected to ORACLE
    null

  • Need ugent help with APC and ICW

    We are upgrading our Inventory and Engineering Applications to 11.5.9 to implement APC. I needed some help with the Item Creation Workflow that is shipped with APC. If someone has extensive experience with this, please send me an email-id to which I can send my questions. Any help is greately appreciated.

    thanks for the response. It is a USR ring.
    On the sonet ring we have 8 ONS 15454 boxes. They have 1 central site and 7 remote sites. Mojority of the Circuits go from the central site to the remote sites. Only a few circuits (STS) go from a so called remote site to a remote site. Also, we have 6500 hooked up behind every ONS box that does the routing. Is this an optinal design??

  • Need Urgent Help With Getting Intl Service from Bangkok

    Before I arrived in Bangkok, I spoke with Verizon CS from the US because I needed Intl Service on my Iphone 4. My boyfriend has an Iphone 5 and was able to add a calling plan in 5 minutes of calling Verizon CS. I then called Verizon CS, and was told that my Iphone 4 cannot be used in Thailand. I told the CS Rep that my boyfriend just added the service on his Iphone 5, and did the same on a trip to Thailand last year with an Iphone 4. She told me that with an Iphone 5 he also cannot use the service in Thailand without a Sim Card or Global Phone? I then put him on the phone with her, and they spoke for ten minutes about this before my plane departed.
    I have been in Bangkok since 04MAR14 trying to reach Verizon by web, Instant Chat, phone, and even called Verizon 611 from my boyfriend's handset. he call Failed! He then gave me this number to call Verizon Global Support: 908-559-4899. I have called this number numerous times from the hotel. The recording does not recognize when I "Press 1" or "Press 2", and proceeded to hang up on me several times. Is there no human at Verizon that help me????? I have spent approx 3 hours now trying to contact Verizon since 04MAR14. I am supposed to be enjoying my vacation here. Can someone please address these questions immediately?
    1. Am I currently being charged to use WIFI in Thailand?
    2. I transited Tokyo on 03MAR, and tried to call Verizon Support from my Handset, which Failed. Am I being charged for that?
    3. What message do my contacts receive when they text me in the US?
    4. Can I activate message response to contacts in the US now telling them that I am out of the country until the evening of 11MAR14?
    Please help me, I am extremely frustrated, as I desparately want Phone service here in Thailand, and I am transiting back to Tokyo on 10MAR14, arriving there at 245pm, and I will need Phone service there as well.
    Sincerely,
    Nancy
    Private info removed as required by the Terms of Service.
    Message was edited by: Admin Moderator

        I'm so sorry you haven't been able to get any service while traveling NancyStuckInThaiWithNoService, as well as for not being able to get a hold of anyone to assist you. I'm happy to answer your questions here. As you mentioned, the iPhone 4 is not a Global phone. Therefore, you can only use on a CDMA network, (not GSM). Thailand is GSM/Global, Japan/Tokyo is CDMA; therefore, you can use phone there. (It could be settings were not set correctly to use in Tokyo.
    1. If you're using WiFi, there is no charge. Its best to turn Mobile Data off in Settings to avoid any International charges.
    2. Japan/Tokyo calls are $1.99/minute. However, if trying to reach Global Support, you will not be charged.
    3. Your contacts don't receive any notification when they text you. They may get some alert days later, that the message was not received by you/ or it has been timed out, but it won't say why.
    4. If you're able to use another phone, and call your mobile number, you can press # when you hear your voice mail greeting, enter password, then # again, to change personal greeting. You're able to update greeting with notification that you're traveling.
    ** When back in Tokyo, you can go to Settings & make sure Airplane Mode is OFF. Also, you can go to General, (from Settings),> Network> Cellular Data- ON> Data Roaming- ON.***
    Here are rates while in Japan/Tokyo http://vz.to/18TRKVE
    Lastly, it may be easier to reach us on Facebook at Verizon Wireless, or on Twitter at @VZWSupport
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • Urgent Help with Date and then email in ASP

    Hii,
    USING ASP AND ACCESS
    I am implementing a classified section for my website and I
    am displaying
    everything successfully.
    When the user posts the classified he selects how many days
    he wants his
    POST like 10 days, 20 days or 30 days and i can successfully
    show the posts
    So if the user posts on says 1st of July 2006 and selects 10
    days for his
    post to be showed on my website
    THEN
    8th July 2006 an email shud go to him saying if he wants to
    keep his POST
    for another 10 days, 20 days or 30 days with 3 links
    and IF YES the 1st july 2006 date must be changed to
    Date of Post + Number of days selected initially + Number of
    days selected.
    I am using two columsn in the DB for this date thing one is
    the strPostDate
    and strAddDate
    So basically the number of days selected for the post to be
    shown on the
    website keeps adding up each time the user clicks on the link
    for 10 days,
    20 days or 30 days with 3 links
    please help need it badly :-)

    I have to disagree with my colleages above - this isn't that
    hard at all. I have done it a number of times successfully. It does
    depend on a "trick", but who cares as long as it works.
    Basically, the "trick" says that your site will receive a
    visit once in a while! It better, or why have the site!
    In ASP, use the global.asa file. In the "Session start"
    section of global.asa, which is fired off every time a new comer
    arrives, you have an opportunity to:
    1. check if it's ok to check who needs an email (in other
    words, you don't want to be checking EVERY time someone comines on
    board every last listing on your site. So what i would do is allow
    it to do the full check once daily, say after midnight.
    2. If its ok to check who needs an email, do so, and send the
    emails out.
    3. After sending out emails, fix it so you will not be
    resending uptil teh next time window. You could also set "flags"
    for any lister where you sent an email 1st round email has been
    sent.
    The above is one way.
    Sometimes i do the very same thing, but i simply tie the
    checking routine into the home page.
    Both schemes work as long as you have a single visitor once
    in a while. if you never had a visitor to teh site, not even one,
    then the emails would never be sent. But as i said if you go days
    without a visit, better start looking for a new vocation!
    www.brunswickdowntown.com is a site i did that has a
    sign-up-to-stay informed email system, its been running for a year
    just fine, all automatically, using the method of #1 (but for
    asp.net, same difference!)
    Rick

  • Need urgent help with database startup

    dear all,
    i am using oracle 10g on windower server 32 bit.
    i try to startup my database today, and it give me error, and it is my production database,
    i need very urgent help from you.(i have no rman backup , and the data is not so necessory, since it is for student practice.)
    SQL> startup open
    ORACLE instance started.
    Total System Global Area  524288000 bytes
    Fixed Size                   790180 bytes
    Variable Size             250343772 bytes
    Database Buffers          272629760 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01110: data file 34: 'G:\ORACLE\DATAFILES_ACADEMY\ACADEMY'
    ORA-01115: IO error reading block from file 34 (block # 1)
    ORA-27070: async read/write failed
    OSD-04016: Error queuing an asynchronous I/O request.
    O/S-Error: (OS 23) Data error (cyclic redundancy check).regards.

    Maahjoor wrote:
    Hi dears,
    i need further assistance from your side, i have restarted the server, but the same problem.
    as there a way to drop and re-create a system tablespace? since the file 34 belong to system tablesapce.
    regardsNo.
    So just create a new database. That will take all of ten minutes. And tell your students to create new tablespaces. That will take them two minutes.

  • Need urgent help with the query - Beginer

    Hello - I need help with a query to populate data in a table.Here is the scenario.
    Source1
    MnthID BranchCod CustID SegCode FXStatus ProfStatus Profit
    200712 B1 C1 20 Y Y 100
    Source2
    MnthID BranchCod CustID ProdCode ProdIndex
    200712 B1 C1 12 1
    200712 B1 C2 12 0
    Destination
    MnthID BranchCod SegCode ProdCode CountSegCust CountProdCust ProfitProdCust
    Condition and Calculations:
    1)Source1 customer are base customers.If Source2 has customers who is not in source1 then that customer's record should not be fetched.
    2)SegCode, FX Status, ProfStatus is one variable in destination table. [ SegCode = SegCode+ FXStatus (if FXStatus = Y)+ ProfStatus (if FXStatus = Y) ]
    3)CountSegCust = CountCustID Groupby MnthID,BranchCod,SegCode Only.
    4)CountProdCust = CountCustID Groupby MnthID,BranchCod,SegCode,ProdCode (when ProdIndex = 1)
    5)ProfitProdCust = Sum of Profit of Customers Groupby MnthID,BranchCod,SegCode,ProdCode (when ProdIndex = 1)
    Apologies for bad formatting.
    Thanks in advance!!

    A total guess indeed.
    It's not clear whether some aggregation can be done (summing counts of grouped data might cause some customers being counted more than once)
    insert into destination
    select mnthid,branchcod,segcode,prodcode,countsegcust,countprodcust,profitprodcust
      from (select s1.mnthid,
                   s1.branchcod,
                   s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end segcode,
                   s2.prodcode,
                   count(s1.custid) over (partition by s1.mnthid,
                                                       s1.branchcod,
                                                       s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                              order by null
                                         ) countsegcust,
                   count(case proindex when 1
                                       then custid
                         end
                        ) over (partition by s1.mnthid,
                                             s1.branchcod,
                                             s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                             s2.prodcode
                                    order by null
                               ) countprodcust,
                   sum(case proindex when 1
                                     then profit
                       end
                      ) over (partition by s1.mnthid,
                                           s1.branchcod,
                                           s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                           s2.prodcode
                                  order by null
                             ) profitprodcust,
                   row_number() over (partition by s1.mnthid,
                                                   s1.branchcod,
                                                   s1.segcode || case s1.fxstatus when 'Y' then s1.fxstatus || s1.profstatus end
                                                   s2.prodcode
                                          order by null
                                     ) the_row
              from source1 s1,source2 s2
             where s1.mnthid = s2.mnthid
               and s1.branchcod = s2.branchcod
               and s1.custid = s2.custid
    where the_row = 1Regards
    Etbin

  • Need urgent help with application please

    Hi i have a project for school. The application is a ball that bounces around in the frame and everytime it hits a wall it changes color and a popup menu is needed to change background color and to change the speed of the ball. I have so far got the ball to bounce and change color everytime it hits a wall and i also have a popup menu to change background color but im having trouble putting slow and fast modes on the popup menu. Below is my source code. Thread.sleep(10) is what determines the speed but i cant get it to be on the popup menu. Can somebody please help me. Thanks
    code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class WormX extends Panel implements ActionListener, Runnable{
    private String[] colorNames =
    { "White", "Gray", "Red",
    "Blue", "Black"};
    private String[] speeds =
    {"Slow", "Fast"};
    private Color[] colors =
    { Color.white, Color.gray, Color.red,
    Color.blue, Color.black };
    private PopupMenu menu;
    private PopupMenu menu1;
    final int WIDTH = 280, HEIGHT = 230;
    public static void main(String[] args) {
    Frame f = new Frame();
    f.addWindowListener(new java.awt.event.WindowAdapter() {
    public void windowClosing(java.awt.event.WindowEvent e) {
    System.exit(0);
    WormX wx = new WormX();
    wx.setSize(320,250); // same size as defined in the HTML APPLET
    f.add(wx);
    f.pack();
    wx.init();
    f.setSize(320,250 + 20); // add 20, seems enough for the Frame title,
    f.show();
    wx.start();
    public void start(){
    Thread t = new Thread(this);
    t.start();
         PopupMenu popup;
    int headx, heady, xinc, yinc;
    Color color;
    public void paint(Graphics g){
    g.setColor(color);
    g.drawString("OOO", headx, heady); //This is what the worm looks like.
    public void run(){
    while (true){
    putWorm();
    repaint();
    try{
    Thread.sleep(10); //This adjusts the speed of the worm
    catch (InterruptedException e){
    e.printStackTrace();
    void checkWorm(){                      //checkworm is the coding for changing the colour of the worm
    if ((headx >= WIDTH) || (headx <= 0)){
    xinc *= -1;
    changeColor();
    else if ((heady >= HEIGHT) || (heady <= 0)){
    yinc *= -1;
    changeColor();
    void changeColor(){    color = new Color((int)(Math.random() * 1677721));
    void putWorm(){
    headx += xinc;
    heady += yinc;
    checkWorm();
         public void init() {
    xinc = 2;
    yinc = 2;
    color = Color.black; //This is the base colour of the worm
    headx = (int)((Math.random() * WIDTH / 2) + WIDTH / 4);
    heady = (int)((Math.random() * HEIGHT / 2) + HEIGHT / 4);
    resize(WIDTH, HEIGHT);
         setBackground(Color.gray);
    menu = new PopupMenu("Background Color");
    enableEvents(AWTEvent.MOUSE_EVENT_MASK);
    MenuItem colorName;
    for(int i=0; i<colorNames.length; i++) {
    colorName = new MenuItem(colorNames);
    menu.add(colorName);
    colorName.addActionListener(this);
    menu.addSeparator();
    add(menu);
    menu1 = new PopupMenu("Speed");
    enableEvents(AWTEvent.MOUSE_EVENT_MASK);
    MenuItem speed;
    for(int i=0; i<speeds.length; i++) {
    speed = new MenuItem(speeds[i]);
    menu.add(speed);
    speed.addActionListener(this);
    menu.addSeparator();
    add(menu);
    public void actionPerformed(ActionEvent event) {
    setBackground(colorNamed(event.getActionCommand()));
    repaint();
    public void processMouseEvent(MouseEvent event) {
    if (event.isPopupTrigger())
    menu.show(event.getComponent(),
    event.getX(), event.getY());
    super.processMouseEvent(event);
    private Color colorNamed(String colorName) {
    for(int i=0; i<colorNames.length; i++)
    if(colorNames[i].equals(colorName))
    return(colors[i]);
    return(Color.white);

    I honestly don't know. I never had this Exception.
    But look at the API:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/InterruptedException.html
    Obviously, Java doesn't like what you do with your thread. Altogether, I'm not sure if your design isn't flawed. Basically, you pause your whole application regularly, so that it seems that you have a regular time flow. This is like doing slow motion on your DVD player by constantly pressing "play" and "pause".
    Think about using the swing timer instead:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/Timer.html
    So, instead of binding your moving object to your main class, you can trigger it by the timer. Think about it.
    Edit: As I see now, you DID catch the InterruptedException around the Thread.sleep(10) in your original code. Why did you do it in the first place, and why don't you now?
    You can just catch the Exception, and leave it like that. However, when an Exception occurs regularly, it would be better to know why.
    Editedit: Also, you declare the same class which is a panel als as a thread. AWT/Swing don't like it when create new Threads for the GUI, since AWT/Swing bring their own Thread for Event Handling. So, whatever you do with any kind of Threads, do it in some class which doesn't inherit from some visual component!

  • I need some help with AVI and IDX files please.

    Hello there,
    I've just been given a hard drive with a load of media on it that I need to work with in FCP.
    There's a folder with many .AVI clips, and each clip has an accompanying directory file with the extension .IDX
    The format of the AVI files is DV, 720x576, 48kHz.
    For the life of me, I can't get FCP to accept the media. Log and Transfer won't accept them, and if i bring in the AVI files in on their own using File>Import>Files... I get a message saying:
    Media Performance Warning
    It is highly recommended that you either recapture the media or use the Media manager to create new copies of the files to improve their performance for multi-stream playback.
    I can click 'OK' for this message and the media will appear in the browser, but If I place one of these AVI files on a new conformed sequence, the audio needs rendering. (Sequence settings correspond to media settings)
    I tried just changing the wrapper from AVI to MOV, thinking I could fool FCP into accepting them, but I get the same rejection.
    I thought the audio and video signals might be muxed, so I tried MPEG Streamclip to sort that out, but even MPEG Streamclip doesn't accept the media, saying : File open error: Can't find video or audio tracks.
    Could anybody advise me on how to get the most out of these media files please?
    Thanks in advance.
    James.
    Message was edited by: James M.
    Message was edited by: James M.

    yes. I tried transcoding in QT, but they still come in with the same audio rendering required. I'm a bit loath to convert them all though, as there are 1400 clips.
    It's not a huge problem, as they do play in FCP, but I'd like to sort out the audio rendering. I don't understand why it needs rendering as the media and sequence audio settings match, and it's not some weird format or anything, it's bog standard 48kHz stereo.

  • Need urgent help with communicating with the HP 4155B analyser with Labview

    i folks,
    I'm currently trying to communicate with our HP 4155B semiconductor pamaremter analyser.  I do not have experience with GPIB yet. I have installed the NI VISA.
    I was wondering if anyone could help with getting me started on how to start communicating with the device using Labview.
    I'm not certain where to start.
    Kind regards
    Rob

    Hi,
    Thanks for the help. I now have communication with the instrument.
    I was wondering if it's possible to to setup a data measurement (I-V Sweep) and be able to read the measurement data in realtime as it is being measured. So I basically see the graph updating itself on the PC during the measurement.
    Is this possible? Could anyone give advice on how I can go about this or are there any examples that can help me understand how to do this?
    I'm not completely sure how to initialise the instruemnt for communication and handle VISA WRITEs and READs. within LabView
    Best regards
    Rob

  • Need some help with Firefox and userChrome.css

    As you can see there is some space underneath the tabs. I used the addon 'Classic theme restorer' to hide the adressbar, but unfortnanly it left some space underneath the tabs. I've been trying to fix it with userChrome.css myself, but I really dont know what am I'm doing.
    Does anyone know how to remove it?

    *For Safari (4.0.2)* I just clicked help>installed_plug-ins and get this:
    http://www.easy-share.com/1908259228/Installed Plug-ins.html
    *Firefox (3.5.3)* tools>add-ons>extensions: Ad Block plus
    and tools>add-ons>Plug-ins: http://yfrog.com/6qnag2j
    Message was edited by: Jonnymont
    If I just delete these won't it make things worse? like not being able to go to any flash sites at all (majority of internet these days)
    Message was edited by: Jonnymont

  • Need some help with WRT54G2 and Home Network

    Ok, I've had the WRT54G for a long time and recently updated to the WRT54G2 but now can't access file and print sharing that's running Windows Vista from Windows XP using wireless.
    Here's my set up,
    Desktop running Windows Vista connected to router (This is the computer with Folders and Printers)
    2-Windows XP Laptops connected wirelessly 
    All 3 are set on same workgroup can be seen on Windows XP machine when going to, My Network Places, also all can get on the internet.
    Any ideas what the problem could be? I'm guessing a setting somewhere but I haven't been able to find it.
    Solved!
    Go to Solution.

    Hey Gary...
    I just upgraded my set up to a WRT54GS from an older linksys router that only had A/B. I have two wired desktops and a wireless desktop in my network..all running xp and all sharing files. I had no issues with the file sharing prior to the upgrade but once I changed over the computers could see eachother, access the net but not share files...Chances are it is likely a firewall issues...
    Try turning off windows firewall...that might help..
    Also depending upon your antivirus there might be settings in there that you would have to change to allow for file sharing.
    In my case I did some research and read that if you are running Norton 2009 on the computer that you want to share files from to try uninstalling and reinstalling the program..Had something to do with firewall settings in the program.....I did that and ouila...now all my computers are sharing again...
    Message Edited by redlands on 06-07-2009 06:41 AM

  • Need Urgent Help with static methods!!!!

    If I have a static method to which a variable is being passed...for example
    static String doSomething(String str)
    //..doSomething with str and return
    If the method is invoked a second time by a separate entity when it is already in use by one entity(!!!not entity beans) .... will this lead to the second invocation overwriting str while the method is already in use and thus corrupting the variable that the method was passed from the first entity?

    It's also a common misunderstanding about parameters. The method does not receive a variable as its parameter, it receives a reference to an object. And inside the method, the parameter acts just the same as a local variable would. So if two threads call the method (static or not), each thread has its own copy of the parameter.

Maybe you are looking for

  • Can I share my address book with other user profiles on my computer?

    My wife and I both logon to our iMac with different user accounts. However, we know all the same people and would like to share the contents of the Address Book. How do we go about this so that if I add a person to the address book, that my wife will

  • Can no longer get Illustrator CS2 to launch

    I was having problems launching programs in CS2, like In Design, Photoshop and Illustrator. So I reinstalled from the CDs, but I did not remove the old install first. Now all the applications run fine except for Illustrator. When I try to lunch it, t

  • Is it a Bug? Integration between Dreamweaver and Fireworks is broken in somewhere?

    I can not upload images related my topic here but you can see it in the same topic at http://www.fireworksguruforum.com/index.php?showtopic=14282 I use CS3 Suite. It is a big trouble for me in working on real pages. Integration is broken in somewhere

  • I cant stream HD video using Airplay

    I cant stream HD videos using airplay and a specific iphone app that used to work properly before (Globo.tv). HD videos from Youtube app work fine. Any idea on what is going on? All softwares are updated to the latest version, wifi is fine, router is

  • Set field dominance

    When importing SD AVCHD the field dominance set to "Un-modified" by FCP X which create a big problem when burning DVD. is there a way to set the field dominance before importing or to set the project field dominance so every clip that go there will h