Good practice with clusters

Hallo All,
I have one perhaps silly question. If I have numerous controls on my front panel. Is it better to use one cluster for all user inputs and use decorations to make it more intuitive or is it ok to use one big cluster which contains another clusters (i.e., cluster for VISA settings, for timing error in etc.) ? I have not found anywhere if the cluster of clusters can perahps be more demanding on memory or CPU. Thank you for any suggestions.
Yours Sincerely Karel

The point of clusters is to keep things that are related to each other together.  So you VISA settings for a power supply would be good canidate for a cluster.  If things are not really related, it is best to not bundle them from a logic point of view.
Based on your quick description, it sounds like it would be best to have several clusters, which each cluster containing related data.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Good practices with GUI? (deriving classes)

    Hello!
    I wonder if it is good practice to have the GUI in the
    init()-class, or superclass in an Applet? I have an applet with the GUI in the init(), and all events in the GUI is passed to it's child-class, named Manager. What about listeners, should they be in a class of their own?
    I am missing these guidelines in the tutorial, they don't tend to stress it, even though I think it is important for us newbies.

    hi,
    most times it is not really good to have listeners in own classes, because the job of many listeners is to invoke special algorithms which are mostly implemented in the class of the component, that owns the event. If you implement the listener in an own class, these class have to know the class, which hold the component an so you get an overhead of instances, you not really need.
    Another point you have to see is the object-oriented view on things:
    You only implement own classes, if they have a special use and can be used for more than one object, but most listeners doesn't fullfill this purpose, they are just needed for a special object and cannot be used for an other than this one.
    regards

  • Good practice to initalize all instance variables with type String to emptr

    Is it a good practice to initalize all instance variables with
    type String to emptry string?
    #1 approach:
    public class A
    { private String name = "";
    private String address ="";
    //etc...
    rather than
    #2 approach:
    public class A
    { private String name;
    private String address;
    //etc...
    When I read Java books, the examples don't usually do #1 approach.
    The problem is if we don't initialize to empty string, when we call
    the getter method of that instance variable, it will return null.
    Please advise. Thanks!!

    Please advise. Thanks!!It depends on your coding style. If you can avoid lots of checks for null Strings in the rest of the code then why not initialize to "".
    You have the same situation when a method returns an array. If you under circumstances return a null array reference then you have to always check for this special case, but if you return a zero length array instead you have no special case. All loops will just run 0 iterations and everything will work fine.
    So in general I guess the return of zero objects instead of null references really boils down to whether it simplicates the rest of your code by removing lots of extra checks for the special null case. This usage is especially favourable in the zero length array case. See Effective Java by Bloch, item 27.

  • What is a good practice to handle LOV in jdev apps?

    Hi, experts,
    In jdev 11.1.2.3,
    In our projects, there are many LOVs which the value are stored in a common dictionary table, for example in table refcode:
    refcode(id, low_value,high_value,meaning,domain_no),
    Different LOVs will retrieve value pairs(low_value,meaning) , or (high_value,meaning) from refcode table by using domain_no as the filtering criteria.
    In the end user's UI, the code/number field values should be displayed by a meaning word from refcode,
    To accomplish this goal, I will create numberous associations between different tables with refcode,
    and create VOs to have refcode entity view as a secondary entity view.
    I feel some odd in doing so(because so many associations with the same refcode table),
    Is that a good practice to handle LOV this way ?
    Thanks.

    On Fusion Developer's Guide for Oracle Application Development Framework
    10.3 Defining a Base View Object for Use with Lookup Tables
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bclookups.htm#BABIBHIJ)
    10.3.3 How to Define the WHERE Clause of the Lookup View Object Using View Criteria
    There are valuable information and suggestions on implement lookup features, especially by using view criteria
    (the View Criteria and View accessor is one of important and great idea in ADF)
    I think, by using of view criteria, the derivative attribute to display fk information can be implemented in a convinent way without FK associations definition.

  • Overloaded methods-yes or no & is this a good practice

    say i have two methods with the same name that take in the same parameters and have the same return type. the difference between the two is that one is static while the other is not. Also the methods contain different codes.
    are the methods going to function normally when i use em? also if they do function normally, is this essentially a good practice?
    if code is needed to answer this, please do mention it and i will think of a mini scenario where this can be applied and write a small piece of code for that.
    thanx. help will be appreciated.

    avi.cool wrote:
    duffymo wrote:
    each account has its own password that the user sets when the account is created-this password is declared as a state variable in the class file. One password per account? A bad model, IMO. My on-line banking software associates credentials with me, not my accounts. I see several accounts when I log in, and I don't have to log in individually for each one.
    besides that, theres also a bank password-this is declared and initialized as a static state variable in the class file. some of the operations require the bank password for access while others require account password.Static bank password? I'm very glad this is a throw-away student exercise, because you have no idea what you're doing.hahaaa, tru tru, its for a skool assignment for my first ever programming course. though not a throw away, i putting a lot of work into this :-) i m not actually trying to resolve any security issues here or strengthen account security. basically, I am only trying to exhibit a tiny bit of creativity while showing understanding of course contents. so nothing to stress on :-D i know not very creative but its all i got at this stage.
    i was trying to exhibit the use of overloaded methods in my program by having method to check the password that the user enters to access operations.
    now the ones that require account password, i was thinking of having the password check method as a non-static method since its associated with the object.
    while the ones that need bank password, i wanted to have as static method.
    i wanted both methods to have the same name.You've no idea what you're doing.
    how i solved it,
    i decided on having both methods as static methods. the one that checks account password, takes in two parameters, the account name(object name) and the string to be checkd. the one that checks bank password, takes in only one parameter- the string to be checked.Wrong.i would be really thankful if you could help me rectify my mistake and advice on how i should be doing this. is there a conceptual error? i am a bit confused now.
    Its exactly what I told you.. but now, you just have to come on here and post this :p
    and isn't this sort of like cheating? :P I mean this IS our exam you know... You're basically asking other for the arithmetic and logic lol.

  • What is good practice for playing multiple video's in a single swf?

    Hello,
    I have build in the past a video wall with video's inside. After building this i came across some problems.
    If you have too many video players loading at once it takes a lot of processing and the tweens in the
    page while loading the video's where not moving fluidly, but more in a stuttering way.
    After lot's of test i found a good working solution.  I imported the flv video's into flash en exported them on the timeline
    as a embedded swf.  Then i externally loaded these swf files and that performed much better.
    Is it even good practice to load multiple video instances at once? I used this time the LoaderMax of greensock but the video's
    only play after it's completely loaded. I would like to find a way to progressive play all video's at.
    Does someone has experience with this?
    Regards,
    Chris.

    How about an XML file which supplies the title for each movie and the location or source of the video to be played?  Simple version below.
    <?xml version="1.0" ?>
    - <playlist>
    <video src="Gfx/video/Alex1.f4v" title="John Deere 330" />
    <video src="Gfx/video/Benni1.f4v" title="Hitachi Z240F" />
    <video src="Gfx/video/Scotti1.f4v" title="Hitachi Z350F" />
    <video src="Gfx/video/Scotti2.f4v" title="Hitachi Z350F" />
    </playlist>
    JR

  • Is it good practice to auto submit forms?

    My users use forms that involve lots of textual matter and sometimes when after working for hours typing into the forms they might move out to some other links there by not submitting the form.
    Is it a good practice to auto save the contents of the form if there has been no inactivity for 5 minutes?
    What are the pros and cons of this approach?
    One problem the above approach could throw is if the user actually types in some data and forgets to close the browser window, the forms keeps on getting submitting unintentionally. This is ok with the user.
    Other alternatives like prompting the user for saving at frequent intervals have been thought of.

    as long as you can determine there's been no activity (simple enough with onblur/onfocus and other events in the fields) and can save the contents in a way that is not a submission, then it's not a bad idea. I wouldn't save after X minutes while the user is doing some entry, cuz it may interrupt what they are doing. Or you could use hidden frames and JS to save things without affecting the user.

  • Is it the good practice?

    Hi,
    With OIM 11g, I try to implement different UI requests for user creation.
    A request for external users and a request for internal users.
    For both of them, UI displays only :
    -Last name
    -First name
    -Birth Date
    For external user request, email is generated by firstname an lastname and prefixed by external.
    For internal user request, email is generated by firstname an lastname and not prefixed.
    To do that, I would like to use the request API "Platform.getService(RequestService.class)" in an event handler to get the request template name and generate the mail according to the template name.
    Can I get the request id in the event handler?
    Is it the good practice?
    Regards,
    Pierre.

    user1214565 wrote:
    thank you very much bbagaria,
    Can I use different datasets for user creation, one for external user, one for internal (I thought I could only modify and use the default dataset: /metadata/iam-features-requestactions/model-data/CreateUserDataSet.xml for all creation request)?
    If yes, how? (I tried to import MyCreateInternalUserDataSet.xml but it didn't work)
    With the default dataset, I expected to create two request templates, one for internal and one for external and get the template name in the a preprocess event handler.
    Regards,
    PierrePierre,
    I would suggest that you just modify the CreateUserDataSet.xml (not rename but import it back at same location in MDS [over-write]) to add additional field for type of user (hidden if you want) and use prepopulate with the type of user internal or external based on the template selection. The prepopulate adapter takes in RequestData object and that has getRequestTemplateName() method. Or just populate the email based on the template selection.
    I haven't tried this but theoretically it seems that you can user this.
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e17334/oracle/iam/request/vo/RequestData.html#getRequestTemplateName__
    HTH,
    BB

  • Good practices for ECC 6.0 wr.t. internal tables..

    hi,
    i am told that when defining internal tables in ecc 6.0, we shud avoid using OCCURS and WITH HEADER LINE.  and always use work areas..
    is this right ? is this a good practice or a must ?
    i followed this and created an internal table without a header line .then i  am using a collect statement in my programn which fails and says that IT is not with header line !!
    COLLECT ITT.
    what to do ?
    thks

    Yes, that is correct.  SAP is pushing the use of ABAP Objects and you can not use OCCURS or HEADER LINEs in the ABAP OO context.  You should always defined explicitly and a work area.
    Data: itab type table of mara.
    Data: wa like line of itab.
    So then you must keep this in mind when doing any operations on internal tables, like in the case of the COLLECT statement, the syntax would be.
    wa-field1 = '1'.
    wa-field2 = '2'.
    Collect wa into itab.
    Regards,
    Rich Heilman

  • GOA - Good practice in your projects

    Hi All
    Are you changing the following things in your GOA ?
    1.Target value of contract - Intially you create a contract for 10,000 INR and later can you change the same contract to 99,9999 INR? i think it is allowed is srm
    2.Can you change the Contract validity date ? iniatiially you create a contarct validity date is 2009.09.01 and later can you extend the contract validity date to 2010.12.12 ?
    Ability to extend the contract ?
    Abiility to change the target value data ?
    Are you do maintance of contract ?
    What piece of data buyr many change after creaing original goa ? for eg. set inactive material . what piece of data buyer may change in your account?
    Are these standard SRM allows?
    br
    muthu

    It depends on how the client/company wants to use this option. If we assume that there are no other measures to assure the validity of the contract terms then it is not a good practice.
    The option to change is there because it is possible some buyers negotiate or renegotiate contract terms offline and not through an RFQ. We cannot assume that the contract terms, once negotiated, will be constant and that negotiations always happen through SRM - need not be an RFQ (not in all companies).
    Ofcourse this puts the responsibility on the buyer to make sure everything is correct and as agreed with the vendor. It provides the flexibility. In the end, the buyer is responsible for maintaining the contract anyway.

  • Regarding good practice

    Hi,
    Can somebody let me know whether it is a good practice to have two declare section in same procedure in pl/sql programming. Is there any draw back for same?
    Regards,
    basil Abraham.

    user575682 wrote:
    Can somebody let me know whether it is a good practice to have two declare section in same procedure in pl/sql programming. Is there any draw back for same? It is good practice not to have declare sections at all - as PL/SQL code is best done inside the Oracle database as stored packages and procedure and functions. This does not require a declare section at all - unless when dealing with the exception of dynamic PL code. (an exception that requires very sound technical reasoning)
    For the external applications making PL/SQL calls using anonymous PL/SQL code blocks, these may use declare sections.. but usually not. Why?
    Declarations are typical for variables to be used in the anonymous block. As bind variables should be used by the application, there is very seldom the need to make use of a declare section.
    So the declare section is not something that you should often see and use in production PL/SQL code. Both in stored code in the database, and in anonymous block code in external applications.
    Mostly the declare section is found in code (anonymous PL/SQL blocks) used for purposes like testing. (e.g. typically adhoc code and not formal production code)

  • Is a good practice store pages into ECM ?

    Hello there.
    My team is building a portal that will be composed by a template/skin and some static pages. We think to put this pages into ECM, there is a good practice? How could i internacionalizate ?
    Thanks you.

    Why you need to store html pages in ECM ?Is it really required?
    If not then why you use mutiple time ucm calls to fetch html pages.
    Best practice to store static contents in PortalAssets projects.As per the documentation -
    http://docs.oracle.com/cd/E23549_01/webcenter.1111/e10273/createapp.htm
    PortalWebAssets is also a project. PortalWebAssets are intended to include static resources, like HTML and image files, in a newly created portal web assets project.
    Here is the link on how to build multilingual webcenter portals-
    http://docs.oracle.com/cd/E25054_01/webcenter.1111/e10148/jpsdg_languages.htm#CJAIIAJF
    Apart from your query on internationalization of webcenter ,what kind of objectives you have.
    you can manage simply by calling JSTL with EL and UCM mix to achieve it.But again it is simple form.
    <c:if test=${view.locale=='en'}>
    call ucm english content
    </c:if>
    <c:if test=${view.locale=='ar'}>
    call ucm arabic content
    </c:if>
    Hope it helps you,
    Regards,
    Hoque

  • Intermediate networks (Good practice or false sense of security)?

    I'm not really sure what you call them, but is it good practice to create an intermediate network between your private network and public side. For instance private 192.168.1.0/24 <---> intermediate 10.1.1.0/24 <---> Public. What benefits are there for doing this? What are some negatives? Please enlighten me.
    Thanks

    I'm sure there will be different opinions on this - here is mine.
    I don't see any benefit to the intermediate network. As you mentioned, it's quite common to use a "three legged" firewall with an inside, outside and DMZ interface.
    On the ASA for example, the interfaces are usually numbered with inside 100, DMZ 50, and outside 0. Traffic is always permitted from high to low but never low to high unless a) it's a response to a request from a higher number interface or b) it's explicitly permitted in on an ACL.
    One big benefit to doing this "three leg" approach is that you can put an ACL on the outside interface to only let traffic in to the DMZ subnet but not to the inside subnet - making the inside better protected from the outside world.
    In the event that the DMZ does become compromised, it can not initiate sessions into the inside network because it has a security level higher than the DMZ.
    Having the intermediate network could be, in a way, an alternative approach to the "three leg" solution though not as elegant or effective. The intermediate network could be a DMZ with public servers which is further firewalled from the inside network.

  • Apex version control: what are "good practices"?

    I have made my first Apex application that is been tested right now. Once this version is released, I should want to have a stable and robust versioning system for this application. I don't have any experience with this. So any info about this issue would be very welcome. Are there some good practice rules I should follow? What are things to watch out for? Etc... Some things I'd like to be able to do:
    1. Have version numbers assigned to the application
    2. Have update scripts to go from one version to the next. (If possible have update scripts to go to the latest version, whatever the current version is.)
    3. Rollback to a previous version of the application
    4. See te differences between different versions of the appliction
    I also would like the same for the database schema.
    Any help would be very welcome...

    Here how I do it:
    Each Apex application has a unique version number in the format Major Release Number / Minor Release Number / Patch Release Number e.g.
    Version 1.3.2
    Each object and build script are separate files, with their own version number and stored in a Configuration Management Database (CMDB) e.g. Subversion. The version number, author, description, date, change history are commented into the header of each script.
    Each Release on CD is also given a unique sequential number so that different releases of the same version can be tracked through test. Each CD Release will usually consist of an application export, object scripts and a build script. The CD image is also checked into the CMDB.
    If an application is going to distributed as a packaged application or installed on multiple environments then each release is a full build. For single instances, the builds are incremental.
    Cheers
    Shunt

  • Record live band practice with Garage Band

    Any tips on how to best record a band practice with a single mic and Garage Band? It doesnt have to be amazing quality, just something we can post online to give an idea of sound. We have a sno-ball mic and a macbook. Thoughts are appreciated. The band is 8-pieces (yeah horn section) so thats why we just want to do the quick and dirty for this. Thanks!

    Phillyberg125 wrote:
    Last question:
    How is it that the flash recorders will work and not comp sound but the mic i'd buy for the same price and usb into the mac does?
    Reasonable question -
    Both will work, both can sound great, both can sound terrible.
    Recording into a computer is more complex because the computer does other things. Flash recorders only do one thing, so they're optimized for that. A million things can go wrong with a computer, but the flash recorders are dedicated (albeit limited) devices. They're small and reliable, and won't try to connect to a wireless network or write to a Spotlight database in the middle of a recording and crash.
    But they don't necessarily sound better than a computer.
    My Sony flash recorder will sound better than recording into a computer with a so-so interface and so-so mic because it has better audio components. The mic pres, mics, and digital converters in it are well made, so it sounds great.
    However, if I use a better interface, mic pres, and mic and record into my computer, that will sound better than my Sony recorder, but will also be harder to manage. If I just want to set up and record to a single (stereo) mic source, the Sony is way more convenient and sounds great. If I want the best sounding recording I can make, I'll use my computer, interface, and a bunch of outboard pres and mics.
    I think there may be some USB mics that are OK sounding. I know some people who use them and get good results. But generally, USB mics are not that great sounding. They combine a mic, a digital converter, and an interface into one inexpensive package. The snowball sells for around $100. I'm not sure how that divides among the components, but that's very little money that's gone into making the mic, converter, and interface. It lets you get up and running for cheaps, but it's so cheap that it's never going to sound all that great.
    If you spent a hundred dollars on just the interface, and a couple of hundred dollars on mics going into your computer, it will sound better than the snowball because the components are better.
    The flash recorder won't sound better because it's a flash recorder. It's just that if you spend around (picking random number) $300 on a flash recorder, it's dedicating maybe $150 towards the mic and pres, and $150 towards the recorder, optimized to work together in a dedicated device. That will outperform the $50 mic in the snowball.
    Your setup sounds like it can take you in two very different directions - one simple (one mic to record the room), the other complex (at least 8 inputs of interface/mixer to record the entire band). Since setting up the complex solution would be a big jump in price to get decent sounding equipment, it sounds like the simple solution might be a better way to start, for now.
    You could buy a small interface and a couple of mics and that would rival (or be better than some) flash recorders. But you'd still be looking to upgrade to a more flexible interface for the whole band. And you'd still be paying a couple of hundred bucks. Still - you shouldn't rule that out. Maybe buying a small interface and a couple of mics would be a good way to start. A gateway drug to a bigger, more flexible interface.
    Or, for the same money that you'd pay for the small interface and mics, if you're still thinking of just plopping a mic down in one place and making a simple stereo recording (not multitrack), you could get a flash recorder which will not only work for now, but will continue to be useful to you even after you get a larger interface and expand.
    Flash recorders are always good to have around. Just being able to take something out of your pocket and record, fast and easy - that's always useful. And since you're talking about recording from one spot, why deal with a computer, wires, setup, hard drives, mic stands, a chair to put the computer on, a power cable from the computer to the outlet, someone walking into the cable, the computer falling off of the chair, the hinge on the screen breaking, everyone getting mad at the person who knocked the computer off the chair, that person feeling really bad, dropping out of the band, getting depressed, wandering around Lafayette Park in a chicken suit, getting in all sorts of trouble... it's just a slippery slope.
    However, no one solution is intrinsically better than the other, or intrinsically better-sounding. Both will work, both can sound great, both can sound terrible.

Maybe you are looking for