A simple question: think of shutdown in solaris

i'm a beginner in Solaris. i installed it as a guest OS in virtualbox.
i found these commands: "shutdown, halt, poweroff, init." can't really shutdown the machine as a non-root user.
However, i can just simplely click the button "Shut Down" to shutdown machine on graphic interface as a non-root user.
What did the button do in background? Does it work in terminal?

What version of Solaris or OpenSolaris are you using?
cat /etc/release and post.
alan

Similar Messages

  • A simple question on random number generation?

    Hi,
    This is a rather simple question and shows my newbieness quite blatantly!
    I'm trying to generate a random number in a part of a test I have.
    So, I have a little method which looks like this:
    public int getRandomNumber(int number){
            Random random = new Random(number);
            return random.nextInt(number);
        }And in my code I do int random = getRandomNumber(blah)...where blah is always the same number.
    My problem is it always returns the same number. What am I missing here. I was under the impression that nextint(int n) was supposed to generate the number randomly!! Obviously I'm doing something wrong or not using the correct thing. Someone please point out my stupidity and point me in the right direction? Ta

    I think the idea is that Random will generate the same pseudo-random sequence over and over if you don't supply a seed value. (The better to debug with, my dear.) When you're ready to put an app into production, the seed value should be the current system time in milliseconds to guarantee a new sequence with each run.
    Do indeed move Random outside the loop. Think of it like a number factory - instantiate it once and let it pump out the random values for you as needed.

  • Load Balancing Directory Servers with Access Manager - Simple questions

    Hi.
    We are in the process of configuring 2 Access Manager instances (servers) accessing the same logical LDAP repository (comprising physically of two Directory Servers working together with Multi-Master Replication configured and tested) For doing this, we are following guide number 819-6258.
    The guide uses BigIP load balancer for load balancing the directory servers. However, we intend to use Directory Proxy Server. Since we faced some (unresolved) issues last time that we used DPS, there are some simple questions that I would be very grateful to have answers to:
    1. The guide, in section 3.2.10 (To configure Access Manager 1 with the Directory Server load balancer), talks about making changes at 4 places, and replacing the existing entry (hostname and port) with the load balancer's hostname and port (assuming that the load balancer has already been configured). It says that changes need not be made on Access Manager 2 since the LDAPs are in replication, and hence changes will be replicated at all places. However, the guide also states that changes have to be made in two files, namely AMConfig.properties, and the serverconfig.xml file. But these changes will not be reflected on Access Manager 2, since these files are local on each machine.
    Question 1. Do changes have to be made in AMConfig.properties and serverconfig.xml files on the other machine hosting Access Manager 2?
    Question 2: What is the purpose of putting these values here? Specifically, what is achieved by specifying the Directory server host and port in AMConfig.properties, as well as in serverconfig.xml?
    Question 3. In the HTTP console, there is the option of specifying multiple primary LDAP servers, as well as multiple secondary LDAP servers. What is the purpose of these? Are secondary servers attempted when none of the list in the primary list are accessible? Also, if there are multiple entries in the primary server list, are they accessed in a round robin fashion (hereby providing rudimentary load balancing), or are other servers accessed only when the one mentioned first is not reachable etc.?
    2. Since I do not have a load balancer setup yet, I tried the following deviation to the above, which, according to me, should have worked. If viewed in the HTTP console, LDAP / Membership / MSISDN and Policy configuration all pointed to the DS on host 1. When I changed all these to point to the directory server on host 2 (and made AMConfig.properties and serverconfig.xml on host 1 point to DS of host 2 as well), things should have worked fine, but apparently Access manager 1 could not be started. Error from Webserver:
    [14/Aug/2006:04:30:36] info (13937): WEB0100: Loading web module in virtual server [https-machine_1_FQDN] at [search]
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Exception in thread "EventService" java.lang.ExceptionInInitializerError
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.iplanet.services.ldap.event.EventServicePolling.run(EventServicePolling.java:132)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at java.lang.Thread.run(Thread.java:595)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Caused by: java.lang.InterruptedException
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:74)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: ... 2 more
    In effect, AM on 1 did not start. On rolling back the changes, things again worked like previously.
    Will be really grateful for any help / insight / experience on dealing with the above.
    Thanks!

    Update to the above, incase anyone is reading:
    We setup a similar setup in Windows, and it worked. Here is a detailed account of what was done:
    1. Host 1: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST1:389)
    2. Host 2: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST2:389)
    3. Host 1: Started replication. Set to Master
    4. Host 2: Started replication. Set to Master
    5. Host 1: Setup replication agreement to Host 2
    6. Host 2: Setup replication agreement to Host 1
    7. Initiated the remote replica from Host 1 ----> Host 2
    Note that since default installation uses abc.....xyz as the encryption key, setting this to same was not an issue.
    9. Started webserver for Host 1 and logged into AM as amadmin.
    10. Added Host 2 FQDN in DNS Aliases / Realms
    11. Added http://HOST2_FQDN:80 in the Platform server (instance) list.
    12. Started Host 2 webserver. Logged in AM on Host 2, things worked fine.
    At this stage, note the following:
    a) Host 1:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host1_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host1_FQDN" port="389" type="SIMPLE" />
    b) Host 2:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host2_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host2_FQDN" port="389" type="SIMPLE" />
    c) If one logs into AM, and checks LDAP servers for LDAP / Policy Configuration / Membership etc services, they all contain Host2_FQDN:389 (which makes sense, since replica 2 was initialized from 1)
    Returning back to the configuations:
    13. On Host 1, login into the Admin server console of the Directory server. Navigate to the DPS, and confgure the following:
    a) Network Group
    b) LDAP servers
    c) Load Balancing
    d) Change Group
    e) Action on-bind
    f) Allow all actions (permit modification / deletion etc.).
    g) any other configuations required - Am willing to give detailed steps if someone needs them to help me / themselves! :)
    So now, we have DPS configured and running on Host1:489, and distributing load to DS1 and DS2 on a 50:50 basis.
    14. Now, log into AM on Host 1, and instead of Host1_fqdn:389 (for DS) in the following places, specify Host1_fqdn:489 (for the DPS)--
    LDAP Authentication
    MSISDN server
    Membership Service
    Policy configuation.
    Verified that this propagated to the Policy Configuration service and the LDAP authentication service that are already registered with the default organization.
    15. Log out of AM. Following the documentation, modify directory.host and directory.port in AMConfig.properties to point to Host 1_FQDN and 489 respectively. Make this change in AMConfig.properties of both Host 1 as well as 2.
    16. Edit serverconfig.xml on both hosts, and instead of they pointing to their local directory servers, point both to host1_FQDN:489
    17. When you start the webserver, it will refuse to start. Will spew errors such as:
    [https-host1_FQDN]: Sun ONE Web Server 6.1SP5 B06/23/2005 17:36
    [https-host1_FQDN]: info: CORE3016: daemon is running as super-user
    [https-host1_FQDN]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_04] from [Sun Microsystems Inc.]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amserver]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [ampassword]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amcommon]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amconsole]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [search]
    [https-host1_FQDN]: warning: CORE3283: stderr: netscape.ldap.LDAPException: error result (32); matchedDN = dc=sun,dc=com; No such object (DN changed)
    [https-host1_FQDN]: warning: CORE3283: stderr: Got LDAPServiceException code=-1
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:357)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java:314)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:253)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:184)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:194)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.initLdapPool(DataLayer.java:1248)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.(DataLayer.java:190)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:215)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:246)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:156)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.(SMSLdapObject.java:124)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:350)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance(Class.java:303)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.SMSEntry.(SMSEntry.java:216)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:67)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetector.java:219)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.(AMClientDetector.java:94)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.mobile.filter.AMLController.init(AMLController.java:85)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:322)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3271)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3747)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: failure: WebModule[amserver]: WEB2783: Servlet /amserver threw load() exception
    [https-host1_FQDN]: javax.servlet.ServletException: WEB2778: Servlet.init() for servlet LoginLogoutMapping threw exception
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: ----- Root Cause -----
    [https-host1_FQDN]: java.lang.NullPointerException
    [https-host1_FQDN]: at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]:
    [https-host1_FQDN]: info: HTTP3072: [LS ls1] http://host1_FQDN:58080 [i]ready to accept requests
    [https-host1_FQDN]: startup: server started successfully
    Success!
    The server https-host1_FQDN has started up.
    The server infact, didn't start up (nothing even listening on 58080).
    However, if AMConfig.properties is left as it originally was, and only serverconfig.xml files were changed as mentioned above, web servers started fine, and things worked all okay. (Alright, except for some glitches when viewed in /amconsole. If /amserver/console is accessed, all is good. Can this mean that all is still not well? I am not sure).
    So far so good. Now comes the sad part. When the same is done on Solaris 9, things dont work. You continue to get the above error, OR the following error, and the web server will refuse to start:
    Differences in Solaris and Windows are as follows:
    1. Windows hosts have 1 IP and hostname. Solaris hosts have 3 IPs and hostnames (for DS, DPS, and webserver).
    No other difference from an architectural perspective.
    Any help / insight on why the above is not working (and why the hell does the documentation seem so sketchy / insecure / incorrect).
    Thanks a bunch!

  • Jbutton to open a htm file in browser - simple question

    not sure where to look for this, but its a simple question
    I just want to get a jbutton (from a jFrame)to open a local htm page eg:
    When pressing the button open:
    C:\Documents and Settings\****\My Documents\profile.htm
    - Open this with any browser
    any pointers to look in the right direction, couldn't find it with search
    I dont want to use a JEditorPane to display the htm, just open any browser
    Edited by: Mr_Tuition on Dec 7, 2007 3:40 AM

    I also wont be able to use it to open an local file which will be set up differently on each computer:
    C:\\Documents and Settings\\***\\My Documents\\JavaProjX\\Preview\\profile.htmI want to use just: Preview\\profile.htm so it opens from the same location with different users, but
    try { Process process = Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE Preview\\profile.htm");}
         catch(IOException e) { System.out.println("could open IE");}opens: http://preview/profile.htm (incorrect location)
    I have just found I can use System.getProperty("user.dir"); to get the location of my program (i think)
    Edited by: Mr_Tuition on Dec 7, 2007 4:25 AM

  • A very simple question..Very Urgent

    HI,
    I have a very simple question.I am able to set up the client authentication as well as server authentication. Now do i need to authenticate (both server as well as client auth.) for every request i send to the server on https...i think it should be like that it should authenticate only for the first time and for the next upcoming requests in same session should not require any server or client authentication.. i think as it happens in browsers..
    what is the fact actually??..can somebody put some light...right now in my case it is authenticating for every requests..
    This is what i have done..
    /****constructor part********/
    // and tm are arrays of keymanagers and trustmanagers for client keystore and truststore
    sslContext.init(km, tm, null);
    HttpsURLConnection.setDefaultSSLSocketFactory(ssf);
    HttpsURLConnection.setDefaultHostnameVerifier(new MYHostNameVerifier());
    /****Method to send the request and response*********/
    urlConn = (HttpsURLConnection)url.openConnection();
    urlConn.setDoInput(true);
    urlConn.setDoOutput(true);
    OutputStream os = urlConn.getOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(os);
    oos.writeObject(someobject);
    oos.flush();
    InputStream is1 = urlConn.getInputStream();
    ObjectInputStream ois = new ObjectInputStream(is1);
    SomeObject retObj = null;
    retObj = (SomeObject)ois.readObject();
    ois.close();
    System.out.println("Get String>>>>> "+retObj.getString());
    I am creating the object of this class..and calling the method again and again for sending requests and response..so i think handshake everytime i call the method...what i want is that handshake should happen for the first time and for the next requests no handshake or certificates should be checked or processed..
    is it possible ..how..what i need to do for that..
    please help me in this..
    Akhil Nagpal

    Hi,
    how could I achieve SSL Session Resumption using HttpsURLConnection.
    Thanks.

  • Simple question about telnet and characters

    Hi all,
    We've installed for the first time a SUN machine. So i think it's for a SUN expert a very simple question.
    Normally when i type a special character it will be dispayed like " � " [alt+132]
    But when i use a telnet session and i type "alt+132" i get a "d" and not "�".
    Does someone know where i must start to find out how this works ?
    Thanks you very much.
    ESP

    This is probably related to the locale your server is in. I don't remember the default locale a box is installed in if you don't specify. I think its "C". I use the UTF-8 or en_US.ISO8859-1 locales at home. At work, usually C but sometimes applications may require UTF-8. BEA Weblogic required this for a project a while back. This is defined in /etc/init/tz.

  • Simple question about flex and AS 3.0

    Hi, this might sound like a simple question so I apologize...
    I have both a copy of flex 2 and 3, and i want to simply code in AS
    3.0 not mxml. I referred to the help of both flex 2 and 3, and all
    i could come up with is "you can add dynamic behavior to your
    documents using actionscript", which means to me, you only write
    your functions in AS and create instances with mxml (...ugh).
    personally, i find mxml to be ugly (mainly because it looks like
    html to me), and i'd rather not use it. coming from programming in
    an IDE in Java, it seems like it would be nicer to have something
    similar, all the while having the power and cool features of flash.
    I'm not fully educated in this matter so i understand that i could
    be totally wrong.
    i mean, if i have to code in mxml, i will. i'm a web
    programmer for a living, and if a more experience programmer said
    something like "if you don't code mxml in flex, you'll never get a
    job coding in flex", i would trust the advice, and learn the ugly
    code. :)
    yes, i do have Flash cs3, it's great but it seems like a pain
    to me the way you organize classes.... i've only seen a few
    tutorials, ones that explain how you cannot simply import a custom
    class, you have tell your movie to link to it, put it in the same
    directory, or manually name the package, it's sort of confusing.
    my main point here is that i'm very eager to start building
    apps in straight AS 3.0 instead of using flash cs3 (for some
    projects), and it would be cool to get some help or be pointed in
    the right direction.
    to simplify:
    can i write AS 3.0 and only as 3.0 in flex 2 or 3? how? can
    you link me to a tutorial? any advise?
    thanks!

    Hey William, thanks for the post. It's a great coincidence
    because I'm reading that book as well. I'm about half way through
    it, and I love it. I installed mxmlc on my linux box and am writing
    pure AS 3 apps. I think that's the way to go, though I know it's
    not for everybody.
    My problem with mxml is that it has a weird syntax for
    function calls, and it's not as 'intuitive' for a person like me,
    who came from C++ and Java programming in the past. I like writing
    programs in the C++ and Java style syntax, and since so many other
    languages use a similar syntax, I don't see any reason to learn the
    nuances of mxml, unless I was getting paid to do it. As far as I
    can tell there is no benefit.
    I hate using Flash to write flash apps as well, I feel like
    they become messy and confusing, especially when trying to write an
    OOP application. I only use it if I want to move an object in a
    very specific way and can't do it with the Tween methods.

  • Reading Files (simple question)

    I'm doing some homework (and no, I'm not just looking for a handout answer, I just need a simple question answered) and I was wondering about how to read a word and evaluate if the word is the same as another word. I want to do this from a .txt file using the Scanner. I know I have to read the file and use while(ifp.hasNext()) but how do I evaluate it word by word? If there's anything else you need or if I'm asking the wrong question, let me know.

    Is there any other way to read through a file other than nextLine? I know there's probably a simpler answer, but the only way I could think of doing it is storing the next line as a String and trying to find the specified word in the string. Not only am I not sure how to do that, I imagine there's a better way. Should I be evaluating it a different way?
    Edit: I was looking at the javadoc on the Scanner class and I saw the findInLine method. We definitely didn't use this in our class, but is that what I should use?
    Edited by: Mikola7 on Nov 5, 2007 4:14 PM
    Edited by: Mikola7 on Nov 5, 2007 4:16 PM

  • Flash cs3 simple question

    I know this is a very simple question, but i just dont know
    what im doing wrong
    Im trying to add a script on a movie clip, but everytime i
    click on the movie clip then click on the actions i get a message
    "Current selection cannot have actions applied to it"
    I have done everything i can think of to add script to the
    movie clip.

    "old way of programming buttons will work!"
    However, this is not the preferred way to add actions to
    symbols.. You should get into the habit of doing it correctly. You
    code will be more organized, and can make performance increase. If
    you want to use AS2, I strongly suggest attaching your actions to
    the frame. It is very simple, and a much better practice.. give
    your symbol an instance name and attach this to a frame.
    instancename.onRelease = function(){
    trace("I've been clicked");
    using on(release) and such, is outdated and not good practice
    for you for the future. Why revert to the old bad habits, when you
    can learn the new, and future of programming in AS

  • Simple Question - Data Import

    Hi,
    i have a simple question. Is it wise to change our actual import scenarios for input data from systems out of sap to XI?
    Today we have the scenario that data from outer systems will send per ftp to a special directory. After that a report will transform the data into a batchinput. The btci will send per rfbibl into the system. Now we have a huge number of such reports. Will it now be better to change to XI, which we use perhaps for MDM?
    Xi could take the file from ftp-srever maps the fields an will send per bapi to sap.
    Is it a quite simple scenario or is batchinput still the better way.

    Hi,
    If you have a scenario where you have different file formats , which needs to be converted and then send to different systems based on some conditions , then suggested is XI usage.
    However, also if you already have XI installed and running for the MDM system , then you can think of routing all messages through XI.  It may make sense to use one system for all routing and data conversion puposes.
    Hope this view helps.
    Cheerio,
    Disha

  • SIMPLE QUESTION: Change background color

    Hello mates, I have a really simple question.
    I want to change the color of my project from (default) black to white.
    Thanks,
    Ben

    Ben,
    I'm still not sure if you are looking to change the PrPro GUI (the display of the interface), or some aspect within your Project. If the "background" is what is seen in your Program Monitor, then creating a Color Matte on Video Track 1 will likely be the answer. You can choose the color that you desire and anything on the upper Video Tracks, that do not occupy the full Frame Size will have that Color Matte as the "background."
    For the GUI, Harm has addressed that, but I do not think that is what you are asking for.
    Good luck,
    Hunt
    PS an attached (use the little "camera" icon in the middle of the editing screen's Toolbar) screen-cap of your Timeline and your Program Monitor might clear things up a bit, in case you have not found the answer already. Just add some text to it in PS along the lines of "this is what I have now, but want to change it to a blue color... "

  • JComboBox simple question

    I think is a very simple question, I ve got a JComBox with an array of Strings. Something like this:
    JPanel myPanel;
    JComBox box;
    String levels[]={"Level 1","Level 2","Level 3","Level 4","Level 5"};
    box = new JComboBox (levels);
    myPanel.add(box);
    Ok. My question is: How can I let just the level 1 enable at first, or how can I enable or disable just one level of the JCombox, like level 1 and 2 enable but level 3, 4 and 5 disable.
    Thanks a lot!! Hope someone helps me!!

    I don't think this is possible with a JComboBox. I believe it is with a JMenu and JMenuItems.
    You could only display valid options by adding/deleting them. Or you could handle it in the listener code. ie if they select an invalid option do nothing. This would require you keeping track of which options are valid elsewhere in the code.

  • Simple Question - attribute alternative text within the same Word doc

    ok. I am having a brain freeze and can't locate the answer in the OPA help. Simple question.
    Is there a simple way to alias an attribute for use in Word?
    For instance the following two conclusions create 2 attributes where I only want 1 attribute.
    the annual percentage rate = 6
    APR = the annual percentage rate
    Is there a configuration option or something to alias APR as the annual percentage rate for use in Word? I want to use either in the same Word document. Something in my head tells me I saw that once before, but all of a sudden I have a brain freeze.
    Sorry for such a simple question, but sometimes I get too deep in the weeds.

    Hi Paul,
    You may be thinking of the OPA legend style. In the Office 2007 OPM ribbon it's called Table Legend, but I believe it works with non-table rules in Word as well - it certainly used to.
    It's an OPA rule style which can be used when you want to refer to a shorthand version of an attribute, e.g. "APR" instead of "the annual percentage rate". I believe it only applies to the rule immediately below where it has been set in the doc, and not the entire doc.
    I did a quick search in the OPM Help and found references to the legend style, but I didn't find a description of the functionality (I didn't search too thoroughly though).
    Here basically how it works...
    Above the rule write the shorthand version, then the word "is", then the full attribute text, e.g.
    APR is the annual percentage rateSide note: I always bold the "is" in the legend line. This is not required, but I like to do it because it makes it clearer at a glance which part is the shorthand and which part is the full attribute text.
    Then apply the Table Legend style to the line, then put your Word table or regular rule below it, e.g.
    [legend]APR is the annual percentage rate
    the result = APR * 10 I use this functionality occasionally. Usually it's when I've got calculations in Word tables and I'm trying to make the left hand column more readable, e.g. using something "APR" in the formula so that it doesn't take up so much space.
    Cheers,
    Jasmine

  • Disk space-simple question

    This is a simple question, I think: I have an external drive (250GB) and have my iPhoto and iTune libraries over there. If I delete about half of my photos from the main library (on the desktop, G4, running 10.4.10) to free up some space, will I still have all my photos from the original main library on the external drive, and just as important, will I still be able to update the external drive as I add new photos to the main library.
    Sorry, I know this is basic stuff but I want to be sure I can free up some space but not lose any photos in the process.
    Thanks, Mike

    Hi--
    If you delete files on the computer they will still remain on the external hard drive. HOWEVER, if you are using a backup program that updates the external drive to reflect the G4 then it may erase whatever you've deleted on the G4. It depends on how the backup program is set (if you are using one).
    If you are not using a backup program and just dragging the folders over to the external drive manually then you would have to be careful not to replace the folders that you want to keep on the external drive. Say for example you have your "Pictures" folder on the external drive. If you delete a bunch of photos on your G4 and then move the "Pictures" folder from your G4 to the external drive, it will REPLACE the "Pictures" folder on the external drive.
    One way to get around this would be to make a seperate folder on your external drive EACH time you made a backup, and drop your "Pictures" folder into that.
    Does this make sense?

  • Audigy 4 and Reciever/Amp simple question

    Hi all,
    Despite inundating myself with what is probably TOO much information from the knowledge base and forum, I could really do with an answer to what is essentially a pretty simple question....
    I recently got an Audigy 4 sound card and external io hub. Lovely bit of kit. Very nice. I only really use it to watch the odd dvd and listen to music with WMP9.
    I have a Sony multi-channel receiver/amp with 5. speakers attached.
    The amp has multiple digital connections - all either optical or co-axial. (and individual 5. analogue too)
    These currently accept optical links from my dvd player and xbox. Lovely.
    So, I would prefer to use the digital connections (nice and easy cable approach as with xbox) but I think I'll only get 2 channels when I play dvd... So what is the best way to connect the two....
    Thanks
    Glen

    The thing about that kind of digital connection is that involves compressing 5. channels into the space of 2, using proprietary encodings. This makes sense in terms of storage space savings (i.e. more room on that DVD for special features), or if bandwidth is constrained (i.e. broadcast TV can fit 5. into the space originally designed for stereo), but the only way it makes any kind of sense for getting audio a few feet from the soundcard to a receiver or speaker system is because nothing more direct ends up being available. The result is that your xbox needs a high-powered chip to make something very (and unnecessarily) complex seem simple. Your Audigy does not have that; it does not have the ability to make that kind of 5. audio for your receiver to then decode.
    Your Audigy does, in fact, have the ability to output 5. digitally, in the digital space that 6 full-range channels need, using a single cable; but your receiver, like virtually all of such, doesn't accept it. CL digital speaker systems have a "Digital DIN" input which uses it, but your receiver does not have a "Digital DIN" input, nor any equivalent of that. Even if it did, there's still a problem, because it's muted for DVD-Audio's higher-resolution formats, purely as an effort to prevent consumers access to high-resolution digital audio signals that are not encoded, for copy-protection reasons.
    Because DVD 5. soundtracks are pre-encoded on the DVD, you don't need the Audigy to be able to encode. All that is needed is to get the soundtrack from the DVD to your receiver as is. The Audigy can do that. As the other post indicates, the keys are to tell the DVD player software to output digital, and to tell the Audigy not to decode.
    Under the covers, that actually uses the Audigy as a 2-channel soundcard, and the rest of its channels are "wasted." None of its real multichannel capabilities can actually be used with a "digital" connection like that. However, if all you do is watch DVD's and listen to stereo audio files, especially if your receiver has features to simulate full surround from stereo, you may not care.
    Personally, my strong preference is for the multichannel analog hookup, although I might set up both types so I could compare the sound of the receiver's decoding with the Audigy's decoding.
    Things you can't do when using an external decoder hookup:
    . Use the soundcard to adjust volume while listening to DD/DTS multichannel soundtracks (though it's best to use the receiver to adjust volume all the time, actually).
    2. Hear any other sound sources while listening to DD/DTS multichannel soundtracks.
    3. Get multichannel audio from PC games.
    4. Get multichannel upmixing using CL's CMSS feature.
    -Dave
    [email protected]

Maybe you are looking for

  • Output to file

    I'm trying to create a clean text file from a sql statement so I can load data on my remote server. I've tried "spool filename.txt", but the file is not very clean. I seem to remember that there is some DBMS_OUTPUT command or something that I can use

  • Difference between compare nad compareTo method

    difference between compare nad compareTo method

  • Craigslist ad for adobe master collection pirated copy or legitimate? 65$

    I found an ad for adobe master collection CS6, he says I get the disk and serial but no box or customer support but I do get updates and that is a corporate volume, he is also selling windows 7 ultimate pretty cheap.. [ad removed by moderatore]

  • Should AppleMobileDeviceService.exe be using 1/3 of my processor power?

    I recently upgraded the software on my Itunes and Iphone 4.  I now have a program running in the background named AppleMobileDevice Service.exe.  It is taking up 1/3 of my processor power.  Is this normal?

  • Interface options

    I'm trying to figure out a way to interface online the SAP R/3 with an external non-SAP system. For example when a shipment is created in the R/3 environment, it is suppose to create the same shipment in an external system immediately. Which solution