A simple applet that just won't work

I'm sorta new to applets...
anyways, I'm trying to instatiate a string in the public void init() method, and pass the string variable to the paint(graphics g) method. for some reason, I can't do this. silly applets (or silly me).
Can anyone clear this up for me?
I've got another problem reading parameters from a html file and printing those too, but I'm thinking that solving the first problem will solve this problem also.
Here is my code:
import java.applet.Applet;
import java.awt.Graphics;
public class HelloWorld extends Applet {
     private String myString;
     private String userName;
       public void paint(Graphics g) {
            g.drawString(userName, 150,150);
            g.drawString(myString, 10,10);
        public String appletInfo() {
         String appletInfo = new String("Mark Dojlida");
         return appletInfo;
        public void init() {
              userName = getParameter("username");
              String myString = "Print this, dammit";
}

Since you already declared myString as a string at the top, you do NOT need to re-declare it as a string in init(). Just putting myString="print this dammit"; is enough. If you put String myString="print this dammit" in init(), then that is re-creating the string, but since it is declared in a method, ONLY init() would be able to use it, and you would get a null pointer exception if you tried to use it in paint (or anywhere else besides init).

Similar Messages

  • Procedure that just won't work (newbie)

    CREATE OR REPLACE PROCEDURE NODB_LOAD
    AS
    -------------Declare neede variables---------
    t_schedule_number;
    t_month;
    t_year;
    prev_schedule_number;
    differencetable = Dt;
    rowcount = 0;
    DECLARE
    TYPE nodb_cur IS
    REF CURSOR RETURN joltsdata%ROWTYPE
    BEGIN
    OPEN nodbcur FOR
    SELECT * FROM tempcollected
    AND schedule_number = t_schedule_number
    AND month = t_month,
    AND year = t_year;
    FETCH nodbcur into C1;
    DECLARE
    TYPE nodb_cur2 FOR
    REF CURSOR RETURN coldata%ROWTYPE
    BEGIN
    OPEN nodb_cur2
    SELECT * FROM joltscollected
    ORDER BY schedule_number asc
         year desc
         month desc
    FETCH nodb_cur2 into C2;
    LOOP
    FETCH C2 into joltsdata;
    EXIT when C2%NOTFOUND;
    t_schedule_number = t_schedule_number.schedule_number;
    t_year = t_year.year;
    t_month = t_month.month;
    IF joltsdata.schedule_number <> prev_schedule_number THEN
    rowcount = 1;
    ELSE
    rowcount = rowcount + 1;
    /*      IF
         rowcount > 3 AND
         coldata.schedule_number <> joltsdata.schedule_number
         colddata.job_openings <> joltsdata.job_openings
         coldata.hires <> joltsdata.hires
         coldata.quits <> joltsdata.quits
         coldata.layoffs_and_discharges <> joltsdata.layoffs_and_discharges
         coldata.oth_sep <> joltsdata.oth_sep
         coldata.total_sep <> joltsdata.total_sep
         coldata.resp_code_c <> joltsdata.resp_code_c
         THEN
         SET
         Dt.schedule_number = joltsdata.schedule_number
         Dt.job_openings = joltsdata.job_openings
         Dt.hires = joltsdata.hires
         Dt.quits = joltsdata.quits
         Dt.layoffs_and_discharges = joltsdata.layoffs_and_discharges
         Dt.oth_sep = joltsdata.oth_sep
         Dt.total_sep = joltsdata.total_sep
         Dt.resp_code_c = joltsdata.resp_code_c
    END IF;*\
    --update c2 with c1 data close cursors end procedure. 
         FETCH coldata into joltsdata;
    CLOSE C1;
    CLOSE C2;
    END NODB_LOAD;

    Why so complicated?
    SQL> select * from m1
      2  /
          COL1       COL2
             1         23
             2         42
    SQL> select * from m2
      2  /
          COL1       COL2
             1         23
             3         69
    SQL> insert into rpt_table
      2  select * from (
      3  (select 'not in m1', col1, col2 from m2
      4   minus
      5   select 'not in m1', col1, col2 from m1)
      6   union
      7  (select 'not in m2', col1, col2 from m1
      8   minus
      9   select 'not in m2', col1, col2 from m2)
    10  )
    11  /
    2 rows created.
    SQL> select * from rpt_table
      2  /
    DIFF             COL1       COL2
    not in m1           3         69
    not in m2           2         42
    SQL> Cheers, APC

  • Just updated the lion os x, and now when I try to use my optus dongle, it comes up with the message saying that it won't work because Java Runtime needs to be installed.  Help?

    just updated the lion os x, and now when I try to use my optus dongle, it comes up with the message saying that it won't work because Java Runtime needs to be installed.  Help?

    Have you run Software Update.  You have Java already installed, but it needs to be updated.

  • My front Facing camera just won't work It freezes everytime

    My front Facing camera just won't work It freezes everytime

    Please tell me that it has NEVER been jailbroke.  If that's the case, here are some standard repair procedures:
    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore (or it doesn't help), go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without being charged again.  Also, if you have IOS-7, read this.

  • I disconnected my iPad unconsciously while it was updating ios 7.0.4 and it just stuck on that screen showing apple logo and a loading bar that just won't move on what to do now ????

    I disconnected my iPad unconsciously while it was updating ios 7.0.4 and it just stuck on that screen showing apple logo and a loading bar that just won't move on what to do now ????

    It's not uncommon for it to not work the first time and sometimes, you have to try it a few times. Turn off your antivirus software and your firewall while you are trying to restore the iPad. Enable them again after you restore.
    If that still won't work, post back with detailed information as to what exactly does happen as you go through the process.

  • I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. Help

    I am having a big problem. I am not getting notifications from snapchat and only snapchat. I've made sure every notification setting was on and it just won't work. I have also restored my phone and deleted the app and re-downloaded it multiple times. It just wont give me my notifications. Help please.

    Go to Settings > Privacy > Location Services.
    Turn off SnapChat.
    Go to Settings > Notification Center
    Turn off SnapChat.
    Restart the device.
    Go to Settings > Privacy > Location Services.
    Turn on SnapChat.
    Go to Settings > Notification Center
    Turn on SnapChat.
    Test the issue.

  • Hey, I have an unopened iPad mini that I won at work and I'm wondering if there's an upgrade option where I can exchange this for an iPad mini with retina display? Thanks

    Hey, I have an unopened iPad mini that I won at work and I'm wondering if there's an upgrade option where I can exchange this for an iPad mini with retina display? Thanks

    Take it to an Apple store and ask. All they can do is say no. They may ask for a purchase receipt to make sure it's not stolen.
     Cheers, Tom

  • I noticed that Sync won't works sometimes until I force the sync (Firefox 5, Firefox Sync 1.7, Windows 7)

    Hi, I used Firefox 5 under Windows 7 and I noticed that Sync won't works sometimes until I force the sync. I got these messages under about:sync-log :
    * 1309507318603 Service.Main DEBUG Idle timer created for sync, will sync after 5 seconds of inactivity.
    * 1309507333403 Service.Main DEBUG Clearing sync triggers.
    * 1309507350564 Service.Main DEBUG Clearing sync triggers.
    * 1309507359554 Service.Main DEBUG Clearing sync triggers.
    * 1309507463262 Service.Main DEBUG Clearing sync triggers.
    * 1309507487752 Service.Main DEBUG Clearing sync triggers.
    * 1309507522877 Service.Main DEBUG Clearing sync triggers.
    * 1309507533660 Service.Main DEBUG Clearing sync triggers.
    * 1309507546898 Service.Main DEBUG Clearing sync triggers.
    Thanks for your help.

    Hi,
    Here I paste the log (today) With first, a forced sync that ended without problem. But after, no sync.
    * Starting sync at 2011-07-03 13:54:00
    * 1309694040812 Service.Main INFO In sync().
    * 1309694040812 Service.Main DEBUG Clearing sync triggers.
    * 1309694041479 Net.Resource DEBUG mesg: GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/info/collections
    * 1309694041480 Net.Resource DEBUG GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/info/collections
    * 1309694041480 Service.Main DEBUG Fetching global metadata record
    * 1309694041480 Service.Main DEBUG Clearing cached meta record. metaModified is undefined, setting to 1308687063.01
    * 1309694041646 Net.Resource DEBUG mesg: GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/meta/global
    * 1309694041646 Net.Resource DEBUG GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/meta/global
    * 1309694041647 Service.Main DEBUG Weave Version: 1.8.0 Local Storage: 5 Remote Storage: 5
    * 1309694041647 Service.Main INFO Sync key is up-to-date: no need to upgrade.
    * 1309694041648 Service.Main DEBUG Fetching and verifying -- or generating -- symmetric keys.
    * 1309694041648 Service.Main INFO Testing info/collections: {"passwords":1309517879.48,"tabs":1309692995.39,"clients":1309684195.62,"crypto":1301170864.97,"forms":1309684238.31,"client":1309425759.37,"meta":1308687063.01,"key":1291370579.21,"bookmarks":1309532700.77,"prefs":1309692694,"history":1309692995.03}
    * 1309694041648 CollectionKeys INFO Testing for updateNeeded. Last modified: 1301170864.97
    * 1309694041649 Engine.Clients DEBUG First sync, uploading all items
    * 1309694041650 Engine.Clients INFO 1 outgoing items pre-reconciliation
    * 1309694041957 Collection DEBUG mesg: GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/clients?full=1
    * 1309694041957 Collection DEBUG GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/clients?full=1
    * 1309694041958 Engine.Clients INFO Records: 3 applied, 0 failed to apply, 0 reconciled.
    * 1309694041960 Engine.Clients INFO Uploading all of 1 records
    * 1309694041961 Collection DEBUG POST Length: 313
    * 1309694042209 Collection DEBUG mesg: POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/clients
    * 1309694042210 Collection DEBUG POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/clients
    * 1309694042211 Service.Main INFO Updating enabled engines: 3 clients.
    * 1309694042214 Engine.Bookmarks INFO 0 outgoing items pre-reconciliation
    * 1309694042215 Engine.Bookmarks INFO Records: 0 applied, 0 failed to apply, 0 reconciled.
    * 1309694042225 Engine.Forms INFO 0 outgoing items pre-reconciliation
    * 1309694042225 Engine.Forms INFO Records: 0 applied, 0 failed to apply, 0 reconciled.
    * 1309694042226 Engine.History INFO 16 outgoing items pre-reconciliation
    * 1309694042226 Engine.History INFO Records: 0 applied, 0 failed to apply, 0 reconciled.
    * 1309694042370 Engine.History INFO Uploading all of 16 records
    * 1309694042371 Collection DEBUG POST Length: 11098
    * 1309694043009 Collection DEBUG mesg: POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/history
    * 1309694043009 Collection DEBUG POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/history
    * 1309694043010 Engine.Passwords INFO 0 outgoing items pre-reconciliation
    * 1309694043011 Engine.Passwords INFO Records: 0 applied, 0 failed to apply, 0 reconciled.
    * 1309694043011 Engine.Prefs INFO 1 outgoing items pre-reconciliation
    * 1309694043012 Engine.Prefs INFO Records: 0 applied, 0 failed to apply, 0 reconciled.
    * 1309694043058 Engine.Prefs INFO Uploading all of 1 records
    * 1309694043059 Collection DEBUG POST Length: 86507
    * 1309694044202 Collection DEBUG mesg: POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/prefs
    * 1309694044203 Collection DEBUG POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/prefs
    * 1309694044204 Engine.Tabs DEBUG First sync, uploading all items
    * 1309694044205 Engine.Tabs INFO 1 outgoing items pre-reconciliation
    * 1309694044389 Store.Tabs DEBUG Adding remote tabs from Le Firefox de axelbsdwork sur Windows NT 6.1; WOW64
    * 1309694044399 Collection DEBUG mesg: GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/tabs?full=1
    * 1309694044400 Collection DEBUG GET success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/tabs?full=1
    * 1309694044400 Engine.Tabs INFO Records: 2 applied, 0 failed to apply, 0 reconciled.
    * 1309694044406 Engine.Tabs INFO Uploading all of 1 records
    * 1309694044407 Collection DEBUG POST Length: 1124
    * 1309694044586 Collection DEBUG mesg: POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/tabs
    * 1309694044586 Collection DEBUG POST success 200 https://phx-sync227.services.mozilla.com/1.1/axelbsd/storage/tabs
    * 1309694044587 Service.Main INFO Sync completed successfully at 2011-07-03 13:54:04 after 3.77 secs.
    * 1309694316555 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694316556 Service.Main DEBUG Idle timer created for sync, will sync after 5 seconds of inactivity.
    * 1309694409807 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694431901 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694439123 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694458028 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694485309 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694493621 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694535127 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694563506 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694607575 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694618425 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694622185 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694628810 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694647470 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694667989 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694671150 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694748953 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309694761475 Service.Main DEBUG Global Score threshold hit, triggering sync.
    * 1309695359025 Service.Main DEBUG Global Score threshold hit, triggering sync.

  • A simple Applet that doesn't work...

    1. The class file is compiled without any problems
    2. The html-file works. It's in the same directory.
    But when I open the html-file I've this output
    (Java Console InternetExplorer 5.5):
    Error loading class: test
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: test
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.securedClassLoad
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    In Netscape...(Java Console):
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad major version number
    java.lang.ClassFormatError: Bad major version number
    at java.lang.ClassLoader.defineClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
    at netscape.applet.AppletClassLoader.findClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass
    (Compiled Code)
    at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    The code of the applet is:
    import java.awt.*;
    import java.applet.*;
    public class test extends Applet {
    String text = "error";
    int x = 0;
    int y = 20;
    public synchronized void init() {
              text = getParameter("text");
              try {
                   x = Integer.parseInt(getParameter("x"));
                   y = Integer.parseInt(getParameter("y"));
                   } catch ( NumberFormatException ex ) {}
    public synchronized void paint(Graphics g) {
              g.setFont( new Font("TimesRoman", Font.BOLD+Font.ITALIC, 36));
              g.drawString(text,x,y);
    The HTML code is:
    <html>
    <body>
    <applet code="test.class" width="300" height="300">
         <param name="text" value="Browser Usage">
         <param name="x" value="50">
         <param name="y" value="50">
    </applet>
    </body>
    </html>
    Thanks!

    works here,
    http://www.geocities.com/rmlchan/test.html
    use the same jdk and jre/plug-in for the browser.

  • Javascript or applet dropdown menus won't work in IE6, How can I solve this

    I've made some dropdownmenu's of javascript and one of java applets. But they don't work in IE6. If IE6 is installed they won't work either. My friend has IE5.5 and he has no problems with the menus. How can you make them work.
    And how can you change the z-index of a javascipt/applet? How do you make a dropdownmenu that's put in the topframe slide over the mainframe?

    Perhaps someone could help me with the following question:
    I have a menu that cascades out of the Applet box. My question is:
    How do I close the menu without clicking on the Applet box? - i.e. if the user clicks on the HTML area of the WEB-PAGE, or simply waits a second or 2, the menu should collapse?
    I notice that this is actually the default behavior for the AWT classes - but then you can't set background colors etc. I need the same kind of behavior, but using Swing classes.
    Would appreciate any assistance or advice...

  • 32 Bit Java Just Won't Work

    I need to install both 32 bit and 64 bit java on my computer to run a variety of different applications. 64 bit installed perfectly, but 32 bit just won't. I get the message:
    ERROR: Could not create java virtual machine.
    ERROR: A fatal exception occurred. The program will exit.
    What do I do to fix it?

    I'm having the same problem. I'm on a 1st Gen (June 2006) MacBook. I'm completely up to date on Software Update, but I can't get Java applets to display in any browser. I've checked Java Preferences, and I know that Java is installed on my computer. What gives?

  • ITunes just won't work!

    Hi there,
    I've been trying to get iTunes working and it just won't! I have had an iPhone for a few months, and not sure whether this or a software update has anything to do with it? I basically use my iMac for the internet and as a glorified jukebox, but now I can't get it to open iTunes, the icon just bounces in the tray and then disappears.
    If I look at the iTunes application by clicking on the "Macintosh HD" icon, it looks like the computer thinks it's opening it though as the last time of use of the application is always when I last tried to open it (unsuccessfully). Please don't tell me to turn it off and on again as I've been at it for weeks! I've tried getting rid of iTunes and downloading it again, but that's not working. I can still see all of my songs, and have just found out that if I go into my music folder, I can preview the songs, which makes me think that there must be some form of music playing software still working on my computer!
    It's also affected iPhoto and Safari, as they are both doing the bouncy tray thing, but I think if I can fix one, I can fix them all (except I can't fix one!).
    Please help! So frustrating!

    Hi mm-
    One of the users on our network has the same problem (She's running OS 10.4). We've updated the OS (dot 11 now? whatever it is -- the newest iteration of 10.4). Here's what we've done (not necessarily in order, as we've performed some of these 'fixes' more than once):
    1) Ran Disk Utility and repaired permissions
    2) Reinstalled iTunes with a fresh download from the Apple site.
    3) Deleted the Genius list from the iTunes folder.
    4) We even ran some maintenance in Terminal -- sudo periodic daily, weekly, monthly, and update_prebindings.
    We still get the same inability to launch iTunes. If we click on the icon in the dock, it bounces once or twice and then stops. No launch, no error. No iTunes.

  • Problem with processes that just won't die...

    Hi,
    first off, hullo everybody
    I'm new to Arch Linux, but I do already like it very much. I have just installed it on my workstation and it works fine, except for the following problem.
    My home directory here is mounted via NFS from a central server. My username is malte (we're using YP/NIS for central authentication) and my home dir is /WW/home/malte/
    The network file system that is mounted at boot time is /WW
    malte@bombadil $ grep nfs /etc/fstab
    quarterback:/WW    /WW           nfs       defaults               0      0
    Everything is setup at boot time automatically and all works fine so far. However, when I reboot my machine using sudo reboot, or even when cleanly logging out and using the Shutdown/Reboot button in GDM, what happens is that Arch tries to unmount the net file systems (that is, /WW in this case), but fails and outputs
    /WW: device is busy
    (or something to that effect); so it gives up, and goes on shutting down all the other services, like the network etc. At the very end, when "Unmounting all filesystems", it then again tries to unmount the net file system, which of course won't work since the network is already shut down. It tries for about a minute or so before timing out, giving up and just rebooting
    This of course is quite annoying, as I have to wait more than a minute each time I want to reboot (or I would have to press the reset button on the computer, which I really don't want to).
    So why doesn't Arch succeed in unmounting the net file system when it should? Using lsof, I have traced down the problem further:
    When I do not login as user in GDM after booting up the system, but immediately reboot again after GDM has just been started, there is no problem: /WW is unmounted properly, and my system reboots flawlessly.
    The problem is when I log in to my WM as user. Even if I log out cleanly to GDM again, there are two processes belonging to user malte that go on living and that access to /WW/home/malte, and I suppose that is why unmounting fails at reboot time, saying the device is busy.
    I have found out that (and which these processes are) by closely observing the output of watch 'lsof | grep WW' run as root on vc/1, just after I log out from my WM as user:
    root@bombadil $ lsof | grep WW # executed closely after logging out as user malte
    menu-cach 3410  malte  cwd       DIR               0,16     1536    8785908 /WW/home/malte (quarterback:/WW)
    gam_serve 5391  malte  cwd       DIR               0,16     1536    8785908 /WW/home/malte (quarterback:/WW)
    More information on those two processes:
    root@bombadil $ ps aux | grep -e gam_serv -e menu-cach
    malte     3410  0.0  0.1  41540  2680 ?        S    14:46   0:00 /usr/bin/menu-cached
    malte     5391  0.0  0.0  17444  1476 ?        S    15:38   0:00 /usr/lib/gamin/gam_server
    root      5473  0.0  0.0   9324   740 tty1     R+   15:38   0:00 grep -e gam-serv -e menu-cach
    So! In short, even after logging out, menu-cached and gam_server keep on living, and access to /WW/home/malte, and that is why when I try to reboot, Arch does not succeed in unmounting /WW, and that is why it tries to unmount it again at a later time, after networking has already been shut down, and that is why it waits for a time-out for about a minute at the end of the reboot procedure.
    In fact, gam_server only keeps on living for about 20 seconds after I logged out, then it is terminated. As for menu-cached, it goes on and on living, at least for 5 minutes, which is when I got tired of watching the output of watch 'lsof | grep WW' ;-)
    Any ideas how this could be remedied? Ideally, I'd like to be able to reboot using sudo reboot rather than by logging out and using GDM to reboot, but I guess that then there will be even more processes alive and accessing the NFS file system when already Arch tries to unmount it.
    Oh yes, maybe this is of some interest also:
    malte@bombadil $ grep DAEMONS /etc/rc.conf
    # DAEMONS
    DAEMONS=(syslog-ng network portmap nfslock @netfs ypbind sshd crond)
    Please help
    Cheers,
    Malte
    Last edited by einheitlix (2009-03-31 14:20:35)

    I have the same problem.  menu-caches doesn't die after user logs out of the session (don't have the gamin issue though).  I too am running LXDE.  When a different user logs in via gdm you'll still see the menu-cached processes for other users and I end up having to kill them as root.  I do believe this is a bug with either menu-caches and/or LXDE (or perhaps, more specifically, its session manager).  I've looked high and low through the system to figure out where menu-cached is invoked from and for any sort of associated configuration file to no avail.  I'm left with the conclusion that the invocation of menu-cached is hard-coded into start-lxde. 
    As a ugly-hack workaround you might try making a shell script like the following in /etc/gdm/PostSession/ directory:
    #!/bin/sh
    killall menu-cached
    This of course is only applicable for those running gdm as their display manager.  Also don't forget to make it executable.
    I would imagine that menu-cached not closing on user logout is very much a bug.  Or perhaps, more precisely, something that hadn't gotten put in yet.  Afterall, LXDE is still a relatively new desktop.  A good one at that so far, if you don't mind some of the missing polish that its dev haven't had a chance to add yet.
    If someone else knows a more elegant solution than that please let me, and the other LXDE users, know.
    Last edited by PingFloyd (2009-04-04 02:08:29)

  • [CS3] this._root. or this._parent just won't work + retrieving a MC's y position.

    I've got some buttons which when i click them i want them to
    make a particular MC move downwards. Well the thing is that when i
    try to reference to that particular MC it just won't happen (yes
    the MC has an instance name). For the button i tried something like
    btn1.onRelease = function() {
    var mcReferece = this._root.myMC;
    trace(mcReference);
    or
    btn1.onRelease = function() {
    var mcReferece = this._parent.myMC;
    trace(mcReference);
    since they have the same parent.
    Both returned undefined.
    I've also tried putting directly myMC in the tween, with no
    effects whatsoever.
    The second question is, how can i retrieve the y position of
    a MC?
    Also i've tried putting the tween on the MC itself...
    onClipEvent(enterFrame){
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var myTween:Tween = new Tween(_level0.myMC, "_y",
    Elastic.easeOut, 195, 545, 10, false);
    But not only does it not animate it doesn't even go where
    it's supposed to go...
    Thanks in advance.
    P.S. This might be rlly simple to solve but it's been bugging
    me and can't go on without it. Couldn't figure it myself. Got rlly
    annoyed at some point :|

    The only 7 i can think of that i have in the project is what
    comes after 6 (ridiculous i know... xD) :
    for (i=1; i<=6; i++) {
    var current_btn = this["btn"+i];
    current_btn.onRollOver = function() {
    var currentAlpha = this.cover_mc._alpha;
    var myHoriTween:Tween = new Tween(this.cover_mc, "_alpha",
    Strong.easeOut, currentAlpha, 0, 0.5, true);
    current_btn.onRollOut = function() {
    var currentAlpha = this.cover_mc._alpha;
    var myHoriTween:Tween = new Tween(this.cover_mc, "_alpha",
    Regular.easeIn, currentAlpha, 100, 0.5, true);
    but that's just the animation for the individual buttons.

  • When I start-up my computer it has a Flashing ? in a Folder. I removed the HDD as then plugged it in via USB and it worked, but just won't work with it inside the Macbook.

    So, I just had a bit of a hurried train journey, two connections very close together, resulting in my laptop bouncing around a bit inside my bag (in a case). The Macbook was shutdown the entire time, but when I tried to start it up it came up with a flashing folder with a "?" in the middle of it after the start-up "bong".
    I proceeded to remove the hard drive to check if it was okay, and it worked fine via USB into my iMac, so I am now running my Macbook Pro from a hard-drive that is completely naked outside of its shell.
    What could have gone wrong other than the hard drive, bairng in mind that it is all working perfectly well with the hard-drive plugged in via USB. I was thinking it could be the ribbon cable that connects the hard-drive internally, however I had this replaced not long ago after a previous complete hard-drive failure, but that's a story for another time.
    If anyone could help I'd be very appreciative, as my macbook looks ghetto as all **** right now, as I have the hard-drive sellotaped to the left of my trackpad.

    If Apple was the one that replaced the ribbon cable, return it. If not, run AHT (Apple Hardware Test).
    Using Apple Hardware Test to troubleshoot a hardware problem
    Your issues might be caused by a hardware problem. Running Apple Hardware Test can help you solve this problem by showing you the faulty hardware.
    Shut down the computer by going to Apple () > Shut Down…
    Select Shut Down or allow the computer to shut down automatically.
    Plug in the MagSafe power adapter into a power source and then connect it to your Mac if you have not already done so.
    Press the Power Button to turn on the computer.
    Press and hold the D key on the keyboard before the grey starting screen appears.
    Continue to hold the D key until the loading screen shows up. You should see a globe.
    When AHT has loaded, select your Language and then press the Return (↩) key.
    Select the Perform Extended Testing checkbox located under the Test button.
    Press the T key, select the Test button, or press the Return (↩) key to start running the diagnostics.
    Report any issues it shows in a reply.
    I hope I helped.

Maybe you are looking for