Where to put "Option Compare" statement?

Hi, There,
The last argument of the Replace function is compare, according to Excel Help,
use -1 means to perform a comparison using the setting of the Option Compare statement.
And I should put the Option Compare statement in a module level before any procedures. For example:
Option Compare Text
Sub SeeReplace()
MsgBox Replace("ABC", "B", "K", 1, 1, -1)
End Sub
However, when I run the Sub as above, it shows an error message:
Run-time error '5':
Invalid procedure call or argument
Could someone kindly let me know what mistake I made? Thank you.

The documentation is incorrect - vbUseCompareOption is not defined. Simply omit the last argument in the Replace function to make it use the Option Compare setting of the module:
MsgBox Replace("ABC", "B", "K", 1, 1)
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • Where to put optional plug-ins of CS4 in Windows 7?

    At last I succeeded to add the optional plug-ins (contactsheet, picture package) into CS-4 on my laptop
    with Windows XP. On my PC with Windows 7 I've tried several maps, but could not find the right one to bring back the contactsheet and picture package to Bridge and CS4.
    Could someone shed light on this?
    Casperfoto

    Maps are not the same, I've also tried on a Windows Vista 64-bits system. There are 5 locations where Photoshop maps could be found in Vista:
    1- C\Program Files\Adobe\Adobe Photoshop CS4 (64bit)    (empty)
    2- C\Program Files\Common Files\Adobe\Plug-Ins\CS4\Automate    (contains Web Contact Sheet II, Photomerge UI, Contact Sheet II)
    3-C\Program Files (x86)\Adobe\Adobe Photoshop CS4\Plug-Ins\Automate   (contains Web Contact Sheet II, Photomerge UI, Contact Sheet II, WIA
         Support, HDR Merge, CropPhotosAuto)
    4- C\Program Files (x86)\Adobe\Adobe Bridge CS4\Plug-Ins\           (contains ContactSheet II, Web Contact Sheet II, Photomerge UI)
    5- C\Program Files (x86)\Common Files\Adobe\Adobe Photoshop CS4\32bit Photoshop dlls
    From Photoshop>Automate> there is no mentioning of contactsheet
    From Bridge>Tools>Photoshop>contactsheet  Photoshop opens but shows: "The command "unknown" is not currently available"

  • Preview in Browser Save/Put Options?

    Hi folks,
    I have what seems like a simple problem - new in this second
    website I am started in my Dreamweaver. I used to be able to hit
    the F12 button, be asked if I wanted to save, and said yes - no
    message about "putting" and no blue arrows happily streaming across
    in small box...Now, it seems I cannot escape the "Putting" function
    if I want to preview? I have gone to Preferences, and checked and
    unchecked the box about about that (I think) with no difference, it
    just seems faster if the box is checked!
    Wondering how I can just preview an ordinary HTML file in
    browser locally? It is unnerving to experiment on your page, and go
    to preview it, if it is going to be "put' and the "experiment" is
    now out on the web?
    Thanks for any ideas!
    Carol

    > Testing Server
    > Server model "None"
    > Access -->FTP
    Try setting Access to None.
    Now, please tell me again the details of your symptoms? You
    preview, and DW
    tries to connect to a remote site? (this is the problem with
    hijacking a
    thread - it's best to start a new thread).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ggrant3" <[email protected]> wrote in
    message
    news:[email protected]...
    > Okay.
    >
    > Local Info --> Local Root Folder Contents -->
    C:\Documents and
    > Settings\XP\My
    > Documents\New DIgestinol\
    >
    > Remote Info --> Host Directory --> httpdocs/
    > "Automatically upload files to server on save" -->
    (unchecked)
    >
    > Testing Server
    > Server model "None"
    > Access -->FTP
    > Testing server folder --> ( I don't have anything
    called that)
    > URL prefix -->
    http://digestinol.com/httpdocs/
    >
    >
    >
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Please go to SITES | Manage Sites..., select the site
    name, and click on
    > Edit. Click on the Advanced tab at the top. Tell me the
    following -
    >
    > Under LOCAL INFO
    > ----------------------------
    > The contents of "Local root folder:"
    >
    > Under REMOTE INFO
    > ----------------------------
    > The contents of "Host directory:"
    > The state of "Automatically upload files to server on
    save"
    >
    > Under TESTING SERVER
    > ----------------------------
    > The contents of "Server model:"
    > The contents of "Access:"
    > The contents of "Testing server folder:"
    > The contents of "URL prefix:"
    >
    > (You may not see these last 3 items if you have "None"
    in the first)
    >
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "ggrant3" <[email protected]> wrote in
    message
    > news:[email protected]...
    > >I don't know what I am missing but I went there and
    the closest thing I
    > >could
    > > find was under "Remote Info" and there is a box for
    "Automatically
    > > upload
    > > files to server on save" and it is already
    unchecked.
    > >
    > > But I don't think that is what I am looking for. My
    problem is after I
    > > save
    > > my file and I want to preview it in the browser it
    makes me go through a
    > > series
    > > of commands and then just replaces what is already
    on my site before I
    > > get
    > > a
    > > chance to see what it looks like.
    > >
    > > I must have hit something one day because I know
    for a fact I use to be
    > > able
    > > to save my work and preview it without uploading it
    to my site
    > >
    > >
    > >
    > >
    quote:
    Originally posted by:
    Newsgroup User
    > > Site > Manage Sites > Select site name >
    Edit.
    > >
    > > --
    > > Murray --- ICQ 71997575
    > > Adobe Community Expert
    > > (If you *MUST* email me, don't LAUGH when you do
    so!)
    > > ==================
    > >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    > >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    > >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > > ==================
    > >
    > >
    > > "ggrant3" <[email protected]>
    wrote in message
    > > news:[email protected]...
    > > >
    quote:
    Originally posted by:
    Newsgroup User
    > > > > no message about "putting" and no blue
    > > > > arrows happily streaming across in small
    box
    > > >
    > > > This indicates that you have enabled the
    AUTOMATIC PUT on save - a
    > > > very
    > > > very
    > > > dangerous option.
    > > >
    > > > Both of these are controlled from DW - the
    first is in the Preview in
    > > > Browser Category of the Preferences, and the
    second is in the Remote
    > > > site
    > > > definition.
    > > > "
    > > >
    > > >
    Text
    > > >
    > > > I am having the same problem, but I can't find
    where I would change
    > > > the
    > > > "automatic put" on save check box. I can't
    find the "Remote Site
    > > > Definition"
    > > > section.
    > > >
    > > > Where do I go to uncheck that auto put option?
    > > >
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >
    >
    >
    >
    >

  • Where to put javascript code?

    Hello,
    I am trying to set some columns in a list as "read-only" and is using the following code:
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById(’4_ctl00_ctl00_TextField’);
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push(“SetReadOnly()”);
    </script>
    But I am not sure where to put the code in. Should I put it in the space in Content Editor Web Part,
    or through a link to a txt file, or in "Edit HTML"? I've tried them but none works.
    Thanks a lot!
    Patrick

    You can try this:
    1) Open your Sharepoint List. Go to List edit view.
    2) On right side of Ribbon you will find "Form Web Parts" option as shown in figure.
    3) Choose your List form which you want to edit.
    4) Now you can add web part in new window.
    5) Add Content Editor Web part.
    6) In content editor web part add the path of your "txt" file in which you have written your script, for eg.
    <!DOCTYPE html>
    <html>
    <body>
    <script type=”text/javascript”>
    function SetReadOnly()
    var elements=document.getElementById('4_ctl00_ctl00_TextField');
    elements.readOnly=true;
    _spBodyOnLoadFunctionNames.push("SetReadOnly()");
    </script>
    </body>
    </html>
    I haven't tried this method so I am not sure but hope it works...:D
    ***If my post is answer for your query please mark as answer***
    ***If my answer is helpful please vote***

  • Where to put the commit in the FORALL BULK COLLECT LOOP

    Hi,
    Have the following LOOP code using FORALL and bulk collect, but didnt know where to put the
    'commit' :
    open f_viewed;
    LOOP
    fetch f_viewed bulk collect into f_viewed_rec LIMIT 2000;
    forall i in 1..f_viewed_rec.count
    insert into jwoodman.jw_job_history_112300
    values f_viewed_rec(i);
    --commit; [Can I put this 'commit' here? - Jenny]
    EXIT when f_viewed%NOTFOUND;
    END LOOP;
    commit;
    Thanks,
    - Jenny

    mc**** wrote:
    Bulk collect normally used with large data sets. If you have less dataset such as 1000-2000 records then you canot get such a performance improvent using bulk collect.(Please see oracle documents for this)
    When you update records Oracle acquire exclusive lock for that. So if you use commit inside the loop then it will process number of records defined by limit parameter at ones and then commit those changes.
    That will release all locks acquired by Oracle and also teh memory used to keep those uncommited transactions.
    If you use commit outside the loop,
    Just assume that you insert 100,000 records, all those records will store in oracle memory and it will affect all other users performance as well.
    Further more if you update 100,000 records then it will hold exclusive lock for all 100,000 records addtion to the usage of the oracle memory.
    I am using this for telco application which we process over 30 million complex records (one row has 234 columns).
    When we work with large data sets we do not depends with the oracle basic rollback function. because when you keep records without commit itb uses oracle memory and badly slowdown all other processes.Hi mc****,
    What a load of dangerous and inaccurate rubbish to be telling a new Oracle developer. Commit processing should be driven by the logical unit of a transaction. This should hold true whether that transaction involves a few rows or millions. If, and only if, the transaction is so large that it affects the size constraints of the database resources, in particular, rollback or redo space, then you can consider breaking that transaction up to smaller transactions.
    Why is frequent committing undesirable I hear you ask?
    First of all it is hugely wasteful of rollback or redo space. This is because while the database is capable of locking at a row level, redo is written at a block level, which means that if you update, delete or insert a million rows and commit after each individual statement, then that is a million blocks that need to go into redo. As many of these rows will be in the same block, if you instead do these as one transaction, then the same block in redo can be transacted upon, making the operation more efficient. True, locks will be held for longer, but if this is new data being done in batches then users will rarely be inconvenienced. If locking is a problem then I would suggest that you should be looking at how you are doing your processing.
    Secondly, committing brings into play one of the major serialization points in the database, log sync. When a transaction is committed, the log buffer needs to be written to disc. This occurs serially for multiple commits. Each commit has to wait until the commit before has completed. This becomes even more of a bottleneck if you are using Data Guard in SYNC mode, as the commit cycle does not complete until the remote log is notified as written.
    This then brings us two rules of thumb that will always lead a developer in the right direction.
    1. Commit as infrequently as possible, usually at the logical unit of a transaction
    2. When building transactions, first of all seek to do it using straight SQL (CTAS, insert select, update where etc). If this can't be easily achieved, then use PL/SQL bulk operations.
    Regards
    Andre

  • JUnit, where to put my unit test

    Hi all,
    I have a question regarding unit test.
    I am working on a project which has multiple packages. I need to unit test every package using JUnit. One question I have is where to put my unit test. The options are:
    1. Write unit test as a separate package. This makes the code clear but only the public functions get tested or I have to make all functions public.
    2. Write unit test in the same package of the code to be tested. This makes writing test easier but putting test and code together makes the structure dirty.
    Please let me know your opinion and tell me how do you normally do this?
    Many thanks,
    Regards,
    Kevin

    It sounds like you're probably a beginner, so this might be overkill, but here goes anyway: You might want to investigate Maven, which defines a standard directory structure that includes a test tree separate from the production tree, but yet still in the same overall folder. The beauty of this design is that you can keep both production & test code together in source control, IDE projects, etc. but they don't interfere with each other.
    Even if you don't use Maven now, you might want to consider using their standard directory structure, as it is has stood the test of time, & would facilitate using Maven if you ever decide to in the future.

  • How do I get Firefox to ask me where to put a file I wish to download

    When I download a file, Firefox puts it somewhere. I want to be able to tell it where to put that file each and every time.

    Options > General - Downloads = '''Always ask me where to save files'''

  • Where to put java code - Best Practice

    Hello. I am working with the Jdeveloper 11.2.2. I am trying to figure out the best practice for where to put code. After reviewing http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf it seemed like the application module was the preferred spot (although many of the examples in the pdf are in main methods). After coding a while though, I noticed that there were quite a few libraries imported, and wondered whether this would impact performance.
    I reviewed postings on the forum, especially Re: Access service method (client interface) programmatically . This link mentions accessing code from a backing bean -- and the gist of the recommendations seems to be to use the data control to drag it to the JSF, or use the bindings to access code.
    My interest lies in where to put java code in the first place; In the View Object, Entity Object, and Am object, backing bean.....other?
    I can outline several best guesses about where to put code and the pros and cons:
    1. In the application module
    Pros: Centralized location for code makes development and support more simple as there are not multiple access points. Much like a data control centralizes services, the application module can act as a conduit for different pieces of code you have in objects in your model.
    Cons: Everything in one place means the application module becomes bloated. I am not sure how memory works in java -- if the app module has tons of different libraries are they all called when even a simple query re-execute method is called? Memory hog?
    2. Write code in the objects it affects. If you are writing code that accesses a view object, write it in a view object. Then make it visible to the client.
    pros: The code is accessed via fewer conduits (for example, I would expect that if you call the application module from a JSF backing bean, then the application module calls the view object, you have three different pieces of code --
    conts: The code gets spread out, harder to locate etc.
    I would greatly appreciate your thoughts on the matter.
    Regards,
    Stuart
    Edited by: Stuart Fleming on May 20, 2012 5:25 AM
    Edited by: Stuart Fleming on May 20, 2012 5:27 AM

    First point here is when you say "where to put the java code" and you're referring to ADF BC, the point is you put "business logic java code" in the ADF Business Components. It's fine of course to have Java code in the ViewController layer that deals with the UI layer. Just don't put business logic in the UI layer, and don't put UI logic in the model layer. In your 2 examples you seem to be considering the ADF BC layer only, so I'll assume you mean business logic java code only.
    Meanwhile I'm not keen on the term best practice as people follow best practices without thinking, typically best practices come with conditions and people forget to apply them. Luckily you're not doing that here as you've thought through the pros and cons of each (nice work).
    Anyway, back on topic and off my soap box, as for where to put your code, my thoughts:
    1) If you only have 1 or 2 methods put it in the AppModuleImpl
    2) If you have hundreds of methods, or there's a chance #1 above will morph into #2, split the code up between the AppModuleImpl, ViewImpl and ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Instead put the code where it should logically go. Methods that work on a specific VO row go into the associated ViewRowImpl, methods that work across rows in a VO go into the ViewImpl, and methods that work across VOs in the associated AppModuleImpl.
    To be honest which you ever option you choose, one thing I do recommend as a best practice is be consistent and document the standard so your other programmers know.
    Btw there isn't an issue about loading lots of libraries/imports into a class, it has no runtime cost. However if your methods require lots of class variables, then yes this will have a memory cost.
    On a side note if you're interested in more ideas around how to build ADF apps correctly think about joining the "ADF EMG", a free online forum which discusses ADF architecture, best practices (cough), deployment architectures and more.
    Regards,
    CM.

  • Where to put removeChild (Away3d 4.x)

    Hey guys i need some help on how to change primitives and removing the previous primitive showing in the scene and also changing materials on the primitive with a click of a button.
    Mainly just where to put removeChild.
    This is for Away3d
    package
        import away3d.cameras.*;
        import away3d.containers.*;
        import away3d.controllers.*;
        import away3d.core.base.SubGeometry;
        import away3d.core.base.data.Vertex;
        import away3d.debug.*;
        import away3d.entities.Mesh;
        import away3d.extrusions.*;
        import away3d.filters.*;
        import away3d.lights.*;
        import away3d.materials.*;
        import away3d.materials.lightpickers.*;
        import away3d.materials.methods.*;
        import away3d.primitives.*;
        import away3d.textures.*;
        import away3dplus.controllers.SimpleHoverController;
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.geom.Vector3D;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        [SWF(backgroundColor="#000000",frameRate="30",quality="LOW")]
        public class Main extends Sprite
        //engine variables
        private var view:View3D;
        private var scene:Scene3D;
        // debug
        private var awayStats:AwayStats;
        //light objects
        private var pointLight:PointLight;
        private var lightPicker:StaticLightPicker;
        //material objects
        private var redColorMaterial:ColorMaterial;
        private var skyBoxCubeTexture:BitmapCubeTexture;
        //Buttons   
        private var btnCube:Sprite = new Sprite
        private var btnSphere:Sprite = new Sprite
        private var btnCylinder:Sprite = new Sprite
        private var btnTorus:Sprite = new Sprite   
        private var btnMaterial:Sprite = new Sprite   
        private var btnWireframe:Sprite = new Sprite
            public function Main() {
                init();
                private function init():void {
                    initEngine();
                    initLights();
                    initCamera();
                    initMaterials();
                    initObjects();
                    initListeners();
                    drawButton()
                    btnCube.addEventListener(MouseEvent.CLICK, changeCube);
                    btnCube.x = 400;
                    btnCube.y = 25;
                    addChild(btnCube);
                    btnSphere.addEventListener(MouseEvent.CLICK, changeSphere);
                    btnSphere.x = 400;
                    btnSphere.y = 60;
                    addChild(btnSphere);
                    btnCylinder.addEventListener(MouseEvent.CLICK, changeCylinder);
                    btnCylinder.x = 400;
                    btnCylinder.y = 95;
                    addChild(btnCylinder);
                    btnTorus.addEventListener(MouseEvent.CLICK, changeTorus);
                    btnTorus.x = 400;
                    btnTorus.y = 130;
                    addChild(btnTorus);
                    //btnMaterial.addEventListener(MouseEvent.CLICK, changeMaterial);
                    btnMaterial.x = 15;
                    btnMaterial.y = 95;
                    addChild(btnMaterial);
                    btnWireframe.addEventListener(MouseEvent.CLICK, changeWireframe);
                    btnWireframe.x = 15;
                    btnWireframe.y = 130;
                    addChild(btnWireframe);
                 * Initialise the engine
                private function initEngine():void {
                    //stage setup
                    stage.scaleMode = StageScaleMode.NO_SCALE;
                    stage.align = StageAlign.TOP_LEFT;
                    // 3d view - window into 3d scene
                    view = new View3D();
                    addChild(view);
                    // 3d scene.
                    scene = view.scene;
                    // stats
                    awayStats = new AwayStats(view);
                    addChild(awayStats);
                 * Initialise the lights
                private function initLights():void {
                    //point light
                    pointLight = new PointLight();
                    scene.addChild(pointLight);
                    lightPicker = new StaticLightPicker([pointLight]);
                private function initCamera():void {
                    var hoverCameraManager:SimpleHoverController = new SimpleHoverController(view, 700, [pointLight]);
                 * Initialise Buttons
                private function drawButton():void {
                    var textLabel:TextField = new TextField()
                    btnCube.graphics.clear();
                    btnCube.graphics.beginFill(0xFFFFFF); // white
                    btnCube.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH
                    textLabel.text = "CUBE";
                    textLabel.x = 22;
                    textLabel.y = 4;
                    textLabel.selectable = false;
                    btnCube.addChild(textLabel)
                var textLabel01:TextField = new TextField()   
                btnSphere.graphics.clear();
                btnSphere.graphics.beginFill(0xFFFFFF); // white
                btnSphere.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel01.text = "SPHERE";
                textLabel01.x = 18;
                textLabel01.y = 3;
                textLabel01.selectable = false;
                btnSphere.addChild(textLabel01)
                var textLabel03:TextField = new TextField()   
                btnCylinder.graphics.clear();
                btnCylinder.graphics.beginFill(0xFFFFFF); // white
                btnCylinder.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel03.text = "CYLINDER";
                textLabel03.x = 10;
                textLabel03.y = 3;
                textLabel03.selectable = false;
                btnCylinder.addChild(textLabel03)   
                var textLabel04:TextField = new TextField()   
                btnTorus.graphics.clear();
                btnTorus.graphics.beginFill(0xFFFFFF); // white
                btnTorus.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel04.text = "TORUS";
                textLabel04.x = 17;
                textLabel04.y = 3;
                textLabel04.selectable = false;
                btnTorus.addChild(textLabel04)   
                var textLabel05:TextField = new TextField()   
                btnMaterial.graphics.clear();
                btnMaterial.graphics.beginFill(0xFFFFFF); // white
                btnMaterial.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel05.text = "MATERIAL";
                textLabel05.x = 6;
                textLabel05.y = 3;
                textLabel05.selectable = false;
                btnMaterial.addChild(textLabel05)       
                var textLabel06:TextField = new TextField()   
                btnWireframe.graphics.clear();
                btnWireframe.graphics.beginFill(0xFFFFFF); // white
                btnWireframe.graphics.drawRoundRect(0, 0, 80, 25, 10, 10); // x, y, width, height, ellipseW, ellipseH   
                textLabel06.text = "WIREFRAME";
                textLabel06.x = 2;
                textLabel06.y = 3;
                textLabel06.selectable = false;
                btnWireframe.addChild(textLabel06)       
                 * Initialise the materials
                private function initMaterials():void {
                    // red color
                    redColorMaterial = new ColorMaterial(0xFF0000, 0.8);
                    redColorMaterial.lightPicker = lightPicker;
                    skyBoxCubeTexture = new BitmapCubeTexture(new EnvPosX().bitmapData, new EnvNegX().bitmapData, new EnvPosY().bitmapData, new EnvNegY().bitmapData, new EnvPosZ().bitmapData, new EnvNegZ().bitmapData);
                 * Initialise the scene objects
                private function initObjects():void {
                    var trident:Trident = new Trident(100);
                    trident.x = 0;
                    trident.y = 0;
                    scene.addChild(trident);
                    //Geometry - Geometry is a collection of SubGeometries, each of which contain the actual geometrical data such as vertices, normals, uvs, etc.
                        ////PrimitiveBase    - PrimitiveBase is an abstract base class for mesh primitives, which are prebuilt simple meshes.
                            //CubeGeometry     A Cube primitive mesh.
                            var newCubeGeometry:CubeGeometry = new CubeGeometry(200, 200, 200, 50, 50, 50, true);
                            //SphereGeometry - A UV Sphere primitive mesh.
                            var newSphereGeometry:SphereGeometry = new SphereGeometry(50, 16, 12, true);
                            //CapsuleGeometry     A UV Capsule primitive mesh.
                            var newCapsuleGeometry:CapsuleGeometry = new CapsuleGeometry(50, 100, 16, 12, true);
                            //ConeGeometry     A UV Cone primitive mesh.
                            //var newConeGeometry:ConeGeometry = new ConeGeometry(50, 100, 16, 1, true, true);
                            //CylinderGeometry     A UV Cylinder primitive mesh.
                            var newCylinderGeometry:CylinderGeometry = new CylinderGeometry(50, 50, 100, 16, 1, true, true);
                            //PlaneGeometry     A Plane primitive mesh.
                            var newPlaneGeometry:PlaneGeometry = new PlaneGeometry(100, 100, 1, 1, true);
                            //RegularPolygonGeometry     A UV RegularPolygon primitive mesh.
                            var newRegularPoligonGeometry:RegularPolygonGeometry = new RegularPolygonGeometry(100, 16, true);
                            //TorusGeometry     A UV Torus primitive mesh.
                            var newTorusGeomentry:TorusGeometry = new TorusGeometry(50, 50, 15, 8, true);
                    // Entity - The Entity class provides an abstract base class for all scene graph objects that are considered having a "presence" in the scene,
                    //            in the sense that it can be considered an actual object with a position and a size (even if infinite or idealised), rather than a grouping.
                        //Mesh - Mesh agregates instance of a Geometry, augmenting it with a presence in the scene graph, a material, and an animations tate.
                        //            It consists out of SubMeshes, which in turn correspond to SubGeometries. SubMeshes allow different parts of the geometry to be assigned different materials.
                        //var cube:Mesh = new Mesh(newCubeGeometry, redColorMaterial);
                        //cube.x = 100;
                        //cube.y = 100;   
                        //cube.z = 100;
                        //scene.addChild(cube);
                        //var sphere:Mesh = new Mesh(newSphereGeometry, redColorMaterial);
                        //sphere.x = -75;
                        //sphere.y = -150;
                        //scene.addChild(sphere);
                        //var capsule:Mesh = new Mesh(newCapsuleGeometry, redColorMaterial);
                        //capsule.x = -200;
                        //capsule.y = -150
                        //scene.addChild(capsule);
                        //var cone:Mesh = new Mesh(newConeGeometry, redColorMaterial);
                        //cone.x = -200;
                        //cone.y = 150;
                        //cone.showBounds = true;
                        //scene.addChild(cone);
                        //var cylinder:Mesh = new Mesh(newCylinderGeometry, redColorMaterial);
                        //cylinder.x = -75;
                        //cylinder.y = 150;
                        //scene.addChild(cylinder);
                        //var plane:Mesh = new Mesh(newPlaneGeometry, redColorMaterial);
                        //plane.x = -75;
                        //plane.y = 275;
                        //scene.addChild(plane);
                        //var poligon:Mesh = new Mesh(newRegularPoligonGeometry, redColorMaterial);
                        //poligon.x = -275;
                        //poligon.y = 275;
                        //scene.addChild(poligon);
                        //var torus:Mesh = new Mesh(newTorusGeomentry, redColorMaterial);
                        //torus.x = -275;           
                        //scene.addChild(torus);
                        //SkyBox     A SkyBox class is used to render a sky in the scene.
                        //var skyBox:SkyBox = new SkyBox(skyBoxCubeTexture);
                        //scene.addChild(skyBox);
                        // SegmentSet
                            //WireframeAxesGrid - Class WireframeAxesGrid generates a grid of lines on a given planeWireframeAxesGrid
                            //var wireFrameAxesGrid:WireframeAxesGrid = new WireframeAxesGrid(4, 400, 1);
                            //scene.addChild(wireFrameAxesGrid);
                            //WireframeGrid     Class WireframeGrid generates a grid of lines on a given planeWireframeGrid
                            //var wireframeGrid:WireframeGrid = new WireframeGrid(10, 100, 5, 0x0000FF);
                            //wireframeGrid.x = 75;
                            //wireframeGrid.y = 275;
                            //scene.addChild(wireframeGrid);
                            //WireframePrimitiveBase
                                //WireframeCube    - Class WireFrameGrid generates a grid of lines on a given planeWireFrameGrid
                                //var wireFrameCube:WireframeCube = new WireframeCube(100, 100, 100, 0x0000FF, 5);
                                //wireFrameCube.x = 75;
                                //scene.addChild(wireFrameCube);
                                //WireframeSphere - Class WireFrameGrid generates a grid of lines on a given planeWireFrameGrid
                                //var wireFrameSphere:WireframeSphere = new WireframeSphere(50, 16, 12, 0x0000FF, 5);
                                //wireFrameSphere.x = 75;
                                //wireFrameSphere.y = -150;
                                //scene.addChild(wireFrameSphere);
                                //WireframePlane
                                //var wireframePlane:WireframePlane = new WireframePlane(100, 100, 10, 10, 0x0000FF, 5);
                                //wireframePlane.x = 175;
                                //wireframePlane.y = 275;
                                //scene.addChild(wireframePlane);
                 * Initialise the listeners
                private function initListeners():void {
                    addEventListener(Event.ENTER_FRAME, onEnterFrame);
                 * render loop
                private function onEnterFrame(event:Event):void {
                    view.render();
                 * Intialise the buttons events
                private function changeCube(event:MouseEvent):void {
                    var newCubeGeometry:CubeGeometry = new CubeGeometry(200, 200, 200, 50, 50, 50, true);
                    var cube:Mesh = new Mesh(newCubeGeometry, redColorMaterial);
                    cube.x = 100;
                    cube.y = 100;   
                    cube.z = 100;
                    scene.addChild(cube);
                    private function changeSphere(event:MouseEvent):void {   
                         var newSphereGeometry:SphereGeometry = new SphereGeometry(50, 16, 12, true);
                         var sphere:Mesh = new Mesh(newSphereGeometry, redColorMaterial);
                         scene.addChild(sphere);
                    private function changeCylinder(event:MouseEvent):void {   
                        var newCylinderGeometry:CylinderGeometry = new CylinderGeometry(50, 50, 100, 16, 1, true, true);
                        var cylinder:Mesh = new Mesh(newCylinderGeometry, redColorMaterial);
                        scene.addChild(cylinder);
                    private function changeTorus(event:MouseEvent):void {   
                        var newTorusGeomentry:TorusGeometry = new TorusGeometry(50, 50, 15, 8, true);
                        var torus:Mesh = new Mesh(newTorusGeomentry, redColorMaterial);
                        scene.addChild(torus);
                    private function changeWireframe(event:MouseEvent):void {   
                        var wireFrameCube:WireframeCube = new WireframeCube(100, 100, 100, 0x0000FF, 5);
                        scene.addChild(wireFrameCube);
    Thanks, Matthew

    Fraudulent seller.
    I received an empty package.- - 
    Back to the drawing board.
    Thanks for your replies.
    eBay is going through their required steps.
    It will take a week or better to get my refund.
    Thanks
    Shopping for another "Mac Pro Late 2013" or I might settle for my "Mac Mini 2012 i7 16 Gig 256 SSD Intel 4000" refurb with warranty bought from Apple that I already have on hand.
    Thank You
    I don't know how this ended upon two threads.
    I'm pretty sure I'm going to go with my 2012 Mac Mini i7 16 gig 256 SSD and Lacie Little Big Thunderbolt 1 512 SSD
    That will be pretty punchy for me.
    I'll only have about $1,000 in the computer itself with a three year Apple Care Warranty.
    It should sell for $500 a year from now if I choose too.
    I think it's going to work great.
    I'm going to load it up with all of the software just like I was going to do on the Mac Pro.
    It's good for three computers in the future so no money lost on the software
    I'll probably just keep the Mini indefinitely for a backup even after I upgrade to the newer 2015 Mac Pro later next year.
    Thanks

  • Where to put Concurrent Manager?

    Hello,
    We are currently running our production EBS (11.5.10.2) as a 2-Tier system on 32 bit Red Hat Linux. We have Web, Forms, Discoverer running on one server and Concurrent Manager, Admin and Database running on another. We will be upgrading the database server to RAC and would like to change to 64 bit.
    Also we will be running multiple app servers using shared appl top. Since we cannot leave the Concurrent Manager on the database server once it is 64 bit how to best decide where to put the Concurrent Manager?
    I know a couple of options are:
    1) Run the Concurrent Manager on a standalone server (no redundancy).
    2) Run the Concurrent Manager on 2 standalone servers using Parallel Concurrent Processing (provide redundancy but increase costs/maintenance).
    3) Run the Concurrent Manager on the same servers as the Web, Forms, Discoverer using shared appl top.
    I'm leaning towards option 3 but would like to hear others opinions. Could we still use PCP in this scenario? Any reasons not to do # 3?
    Thanks,
    Alfredo

    How many servers will you be running?I believe we have 4 total available for the Application Tier. They are fairly robust servers (HP DL-580 (4 CPU each) with 24 Gig of RAM).
    I have not seen PCP with Shared APPL_TOP. If you are running multiple Web, Forms, Discoverer servers, it is a good option to run them with their own APPL_TOP and run PCP with hardware based load balancing. Can we just skip PCP and run the 4 servers with Shared APPL_TOP but include everything on the Shared APPL_TOP (Web, Forms, Discoverer, Concurrent Manager)?
    I'm trying to do these upgrades in phases and I'm thinking maybe we can get 2 additional servers later and implement PCP then (keeping the 4 Apps servers for Web, Forms, Discoverer).
    Thanks,
    Alfredo

  • CS 6 Image Windows Don't Stay Where I Put Them

    I installed CS 6 yesterday.  My system runs 64 bit Win 7.  In Preferences > Interface, as I did in CS 5, I unchecked both Open Documents as Tabs and Enable Floating Document Window.  However, unlike CS 5, in CS 6 images 'insist' on positioning themselves in the upper left corner of CS 6 and will cover both the options bar and the tool bar.  For example, this will happen after opening an image if I try to move it or if I enlarge the image window (CTRL-0).  If I open two images and try to move one so I can see both at the same time, the one I try to move will not stay where I put it but instead will reposition itself to the upper left, and cover the options bar and menu bar.
    As you might image, this makes working in CS 6 difficult and inconvenient.  I assume this is a bug, and wonder if there are any workarounds or other solutions.  To this point, I have not yet uninstalled and re-installed CS 6.  Any suggestions would be appreciated.
    Best regards,
    David

    Noel Carboni wrote:
    Can we assume you hate the Auto-Hide feature even worse? 
    Hi,
    The answer to your question is 'probably'.  I like things to stay put, ideally where I want them.  So far my feeling is that having the task bar on the bottom is the lesser of the two 'evils'.  But your note reminds me to give auto-hide another try.  Thanks.
    Best,
    David

  • Altered files don't upload on 'put' option.

    When I alter a 'template' file, Dreamweaver indicates that
    all other pages generated using that template are updated to
    reflect the changes in the originating template - the 'put' option
    doesn't recognize these pages as being changed and therefore does
    not upload them when I select the 'put' option. There are more than
    1,600 files on the site (www.e-rcps.com) so 'synchronizing' while
    comparing every single file on the website with the local file is
    not an option.
    Thanks for any suggestions.
    Peter

    Peter, if you search this forum for "templates" you'll find
    many identical
    recommendations - don't use templates on sites that have more
    than ~50-100
    pages. It's just too much manipulation of files, especially
    with regard to
    the uploading.
    Now - when you make your changes to the template are these
    files actually
    updated? If so, you can catch them with the EDIT | Select
    Recently Modified
    option on the Files panel's context menu (upper, right-hand
    corner).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "romaee" <[email protected]> wrote in
    message
    news:glllpn$i71$[email protected]..
    > When I alter a 'template' file, Dreamweaver indicates
    that all other pages
    > generated using that template are updated to reflect the
    changes in the
    > originating template - the 'put' option doesn't
    recognize these pages as
    > being
    > changed and therefore does not upload them when I select
    the 'put' option.
    > There are more than 1,600 files on the site
    (www.e-rcps.com) so
    > 'synchronizing'
    > while comparing every single file on the website with
    the local file is
    > not an
    > option.
    >
    > Thanks for any suggestions.
    >
    > Peter
    >

  • Where to put my Airdisk/Drobo/Server/Whatever

    I am looking for advice in optimizing what I want to do with my external storage to get the most out of... uh, well, out of life. Or something.
    In the basement I have a Mac Mini connected to my TV that acts as my Tivo. It uses EyeTV with an external drive connected via Firewire (400). Works great.
    Two floors up I have an iMac that acts as my central computer. It is connected, via ethernet cable, to an Airport Extreme base station. The base station is connected to my DSL modem via ethernet cable and to another external drive via USB 2.0. Works pretty well...
    So that all laptops and the Mac Mini can access the media, my iTunes library is on the upstairs external drive (the one connected to the Airport). Generally no issue there, but lately I've noticed that movies and shows played from that drive might get jumpy when being watched on TV. I guess that may be because the media goes from the drive through the Airport, through two floors, then into the Mac Mini.
    Or maybe it's because the drive was getting ready to fail (it just did).
    So now I'm going to get a Drobo so that I never go through replacing a failed drive (and trying to recover it!) again. This is drive #3 for me in 5 years. (No more non-redundancy!) But the question is where to put it.
    Should I move the Airport and modem to the basement and connect the Drobo to the Airport? Should I just put it upstairs and chalk the slowness up to a failing drive? Should I connect the Drobo directly to the Mac Mini and share the drive (and will that lead to a new can of worms with the Airport)? And what cable connections should I use? I just learned that the USB bus pretty much handles everything through one place no matter how many ports you have, so I'm guessing I want to limit that...? But I only have 1 Firewire connection on the Mini...
    What do you guys think? And if you think there's a better forum to post this message in, let me know.
    Thanks in advance,
    Rick

    Hey CPC Guy,
    If at all possible, I'd find a way to set up your modem, router and its connected USB external drives somewhere centrally on the center floor. Then just connect wirelessly to it with the iMac.
    One cheap storage solution that I've used to this point is to buy a 7-port USB hub, connect it to the Airport, and then add multiple external USB drives. You can also run a central USB printer from there as well as a ethernet connected network printer if you wanted. I've run something like this for a couple of years. All on a one level home but centralized in it nonetheless. Works great. Wireless speeds are great.
    Some of these drives can serve as backup drives for the others, including your computers. I've used SuperDuper to backup over the network. A great source for dual drive enclosures is OWC (www.MacSales.com).
    Another solution that I'd recommend over the drobo is an HP Media Smart Windows Home Server. Similar to the drobo, but I think it is a much better, more flexible, cost effective solution. In fact, I'm installing one as I write this. Bought it for $500 with free shipping from Newegg.com. It comes with a 750GB SATA and has three more upgradeable bays. I got the EX485. There is a EX487 and a new smaller one that would work as well. You might compare this with what the drobo has to offer.
    There are supposed to have been some conflict with installing via a connected Airport Extreme, but I have not had that problem. The one caveat is that you have to initialize with a windows PC first. I run XP and Vista via VM Fusion so that isn't a problem. Then you can use it fine with a mac.
    Also, a friend who does data recovery for a living and is a die hard mac guy swears by Seagate (1) Samsung (2) and Hitachi (3). The highest rate of failures he has seen for many years is WD. I buy these three and I have been fortunate to not have one fail yet. Knock on wood. YMMV.
    If you're looking to expand specifically around the mini in the basement, you might try the USB hub approach mentioned above. However, I think if you can centralize all your media on the middle level then streaming distances are much shorter and backups are much easier and faster over cabled connections. I just enclose it all in a small footprint media cabinet.
    Ed

  • Where to put custom function at?

    Let's say I make a custom function, do I make it a CFC or a tag?
    Here is some sample code (I put in bold my function call)
    <cfif IsDefined("form.submit")>
        <cfset data.comment = Trim(HTMLEditFormat(form.comment))>
        <cfset data.name = Trim(REReplace(form.name, "[^A-Za-z0-9 ]", "", "all"))>
        <cfset data.location = Trim(CustomFunction(form.location))><!--- where to put it? as cfc or as a tag? --->
        <cfif data.comment NEQ "">       
            <cfif data.name EQ "">
                <cfset data.name = "Anonymous">
            </cfif>
            <cfinvoke
            component="guestbook.cfc.db"
            method="insert_comment">
            <cfinvokeargument name="form_data" value="#data#"/>
            </cfinvoke>
        <cfelse>
            <cfset message="Comment is required!">
        </cfif>
    </cfif>

    Custom tags are different than udfs.  Let's stick with udfs.  Your location choices are:
    1.  If only one template is going to use it, you can put it in that template.  Otherwise,
    2. You can put it in a .cfm file and cfinclude that file whenever you want to call the function, or
    3. You can put it into a .cfc.
    A little while back, someone ran some tests and posted the results on one of these forums.  The gist of it was that Option 2 would run faster than Option 3.

  • Where to put data processing routine when acquiring data using DAQmx

    I have a program that is aquiring data using the DAQmx Acquire N Samples mechanism with automatic reset and a data handler callback routine. DAQmx acquires N samples (usually 1024) from the board, calls the handler to do something with it, and then resets to get the next batch of data. The program acquires a number of lines of data, say 512 lines of N points each, with one callback call per line. Triggering is done by a hardware trigger at the start of each line of data. So far so good.
    The issue is that the time that it can spend in the callback is limited, or else the callback is not finished when the next batch of data is ready to be transferd from the DAQmx buffers and processed. There is a substantial amount of analysis to be done after the entire frame has been acquired, and it ends up taking far longer than the time between lines; so where to put the processing? The data acquisition is started from a control callback callback that exits back to the idle loop after it starts the data acquisition process, so there is no code waiting to execute, to return to, when the data acquisition is finished.
    I could try to put the data analysis routine into an idle-time routine and trigger it with a semaphore, or I could put it into a timer control callback with, say, a 10 millisecond repetition rate and poll a flag, setting the flag when all of the data has been acquired. Any suggestions would be appreciated.

    I would recommend using Thread Safe Queues. Your acquisition callback can place items in the TSQ and then you can process the data in a separate thread. TSQs are nice because they allow you to install a callback function to run for certain events. Most importantly, you can install a callback for the Items in Queue or Queue Size Changed event which will run the callback if a certain number of items are in the queue. This lets you take advantage of multithreading in a simple and safe way using a standard Producer/Consumer architecture. However, you may still run into problems with this architecture if your acquisition thread is running much faster than the consumer thread. You could eventually overflow the queue. In that case, your only options are to either get a faster system, slow down the acquisition or do the data handling post process.
    National Instruments
    Product Support Engineer

Maybe you are looking for