Do we need to add "ByRef" to this method?

private void p (int i, double t, double cp[], double spline[], int index)
It is a private method inside a class, we need to retrieve/collect "spline[]" on exit from p, why the original author didn't put byref to "double spline[]", let me know if he was right and please give justifications!
Thanks
Jacky
Edited by: luckiejacky on Mar 5, 2008 8:22 PM

That depends...
Would having multiple files allow you to spread I/O over more spindles?
In the event of a disaster, how quickly can you restore a 3.6 GB file? If your data files were 2 GB, how would that affect the time it would take to recover from the loss of a data file?
Does your operating system have a limit on the size of a single file?
Personally, I would tend perfer a few 1 - 2 GB data files to a single large (and growing) file, but there may be no benefits to this in your environment.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Need a little help with this method

    this is what i need to do:
    Add a static method Account consolidate(Account acct1, Account acct2) to your Account class that creates a new
    account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. The new account should
    be returned. Two important rules of consolidation:
    ? Only accounts with the same name can be consolidated. The new account gets the name on the old accounts but a
    new account number (a random number).
    ? Two accounts with the same number cannot be consolidated. Otherwise this would be an easy way to double your
    money!
    right now i have this code but im not too positive i did it right (and i know its not done, but i just need some tips on what to do)
         public static Account AccountConsolidate(Account acct1, Account acct2)
              String name1 = acct1.getName();
              String name2 = acct2.getName();
              if(name1.equals(name2));
              newAccount = acct1.getBalance() + acct2.getBalance();
              newAccount = newAccount.getAcctNum();
              close acct2;
              return newAccount;
         }

    1. "close" is not a Java keyword.
    2. "newAccount" is being assigned twice.
    Not that there's anything wrong with that but what's
    the first assignment doing?
    3. "newAccount" seems to be an int but your
    method signature says to return an Account
    object.this is my entire code, and i made some changes in the consolidateAccount method
    // Account.java
    // A bank account class with methods to deposit to, withdraw from,
    // change the name on, and get a String representation
    // of the account.
    public class Account
         private double balance;
         private String name;
         private long acctNum;
         private static int numAccounts;
         private double newAccount;
    //Constructor -- initializes balance, owner, and account number
         public Account(double initBal, String owner, long number)
              balance = initBal;
              name = owner;
              acctNum = number;
              numAccounts++;
    // Checks to see if balance is sufficient for withdrawal.
    // If so, decrements balance by amount; if not, prints message.
         public void withdraw(double amount)
              if (balance >= amount)
              balance -= amount;
              else
              System.out.println("Insufficient funds");
    // Adds deposit amount to balance.
         public void deposit(double amount)
              balance += amount;
    // Returns balance.
         public double getBalance()
              return balance;
    //Returns number of accounts created
         public static int getNumAccounts()
              return numAccounts;
    // Returns name on the account
         public String getName()
              return name;
    // Returns account number
         public long getAcctNum()
              return acctNum;
    // Close the current account.
         public void close()
              if (balance == 0)
              numAccounts--;
              System.out.println("CLOSED");
    // Consolidates two accounts into one account.
         public static Account AccountConsolidate(Account acct1, Account acct2)
              String name1 = acct1.getName();
              String name2 = acct2.getName();
              if(name1.equals(name2));
              newAccount = acct1.getBalance() + acct2.getBalance();
              newAccount = newAccount.getAcctNum();
              Account consolidated = new Account(balance, name, newNumber);
              return consolidated;
    // Returns a string containing the name, account number, and balance.
         public String toString()
              return "Name:" + name +
              "\nAccount Number: " + acctNum +
              "\nBalance: " + balance;
         

  • Add rounding to this script

    Hi everyone,
    I need to add rounding to this script. I need two versions, one for 1 decimal place and one for 0 decimal places. Can anyone help out?
    #target illustrator
    addMeasurements();
    function addMeasurements() {
        var i, doc, imp, met, txtItems, txt, nub;
        doc = app.activeDocument;
        imp = doc.layers.getByName( 'Text' );
        met = doc.layers.add();  met.name = 'New';
        txtItems = imp.textFrames;
        for ( i = 0; i < txtItems.length; i++ ) {
            txtItems[i].duplicate( met, ElementPlacement.PLACEATEND )
        txtItems = met.textFrames;
        for ( i = 0; i < txtItems.length; i++ ) {
            var nub = parseInt( txt = txtItems[i].contents ); // For Numbers only!!!!
            txtItems[i].contents = String( txt * 1.1 )
    Thanks in advance.

    The example is just a basic function… Just place it after the main function body in your script… Call it where you need it… here is an example… I changed your parseInt() to parseFloat() to deal with your decmial values… While this should wolk it still may NOT be what you want… i.e. it does nothing about keeping the alpha characters in your text frames the new numbers replace all content…
    #target illustrator
    addMeasurements();
    function addMeasurements() {
        var i, doc, imp, met, txtItems, txt, nub;
        doc = app.activeDocument;
        imp = doc.layers.getByName( 'Numbers' );
        met = doc.layers.add();  met.name = 'New';
        txtItems = imp.textFrames;
        for ( i = 0; i < txtItems.length; i++ ) {
            txtItems[i].duplicate( met, ElementPlacement.PLACEATEND )
        txtItems = met.textFrames;
        for ( i = 0; i < txtItems.length; i++ ) {
            var nub = parseFloat( txtItems[i].contents ); // now parseFloat()
                                  nub = nub * 1.123456; // just to check the function rounds…
                                  var rnub = roundToDP( nub, 2 );
            txtItems[i].contents = String( rnub ); // replaces all content…?
    function roundToDP( n, dP ) {
              return Math.round( n * Math.pow( 10, dP ) ) / Math.pow( 10, dP );

  • I need to add a skin to my .fla or .swf, how can I do this without converting?

    I have created a project using motion and sound.  I need to add a skin to it which you use to be able to do when you published it.  Now it seems the only way to do it is by exporting my file into Media encoder then convert it to a MP4 ( there is no F4V or FLV in Media encoder, that I can see).  When I export this my sound quality is lost.  Then when I re-import into Flash to add the skin I lose the sound all together.  What am I doing wrong?
    Thanks

    I'm guessing you're using the free version. I would first try to import a table from another PDF file. If that doesn't work I would try using the "add item" feature for either the "text" or "email" fields because those are formatted as 2 columns. You will just have to manipulate them how you want them.
    Good luck!

  • I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

    I was told I need to remove the enterprise server account I have and need to add a new one for work but the IT person did not tell me how to do this.  Can anyone help?

        Jennymbell, never fear help is here!
    Have you tried contacting your IT department for assistance? You can visit http://bit.ly/QECbGh for steps on how to enterprise activation.
    Keep me posted if you need further assistance.
    John B
    Follow us on Twitter @VZWSupport

  • I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

       I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

    You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.

  • Submit SharePoint app to Office app store, this app need to add file to hosted web style library

    I want to submit SharePoint app to Office app store, I road the "Validation policies for the apps submitted to the Office Store : "http://msdn.microsoft.com/en-us/library/office/jj220035(v=office.15) 
    and the  Point 5.9 mention: 
    "Your app for SharePoint cannot request full-control permission. Apps for SharePoint that request full-control permissions are not accepted in the Office Store."
    I need to know if this point applied on site collection, web or List. because my app need to add files to hosted web, and it seem there is bug with "write permission" then I should use "full-control permission" on list. 
    any suggested solution will highly appreciated
    thank you 

    Below configuration will be enough for adding files. Yes 'Full control' can't be placed on Office store.
    <AppPermissionRequests>
    <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="Write"/>
    <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web/list" Right="Write"/>
    </AppPermissionRequests>
    See this : App permissions in SharePoint 2013 (See video)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • HT204161 I have a new ipod.  Do i need to add this to my apple id account so that if it ever needs service it shows up there?

    I have a new ipod.  Do i need to add this to my apple id account so that if it ever needs service it shows up there?

    Does it show up in your Support Profile?
    No JavaScript Error
    If should have been added when yo first setup your iPod. If not you should be able to add it  from within your Supprt Profile
    You can enter your iPods serial number here and check you wwarranty coverage. This is really all that counts
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    How to add a PDF to the Help button of the Application? Do we need a Robohelp to generate this?

    Thank you for your reply, William.
    Well, we just want the PDF to open when we click on the “Help” link of the Application.
    Also, we have the PDF ready. 
    Is it a job of a UI Developer? Do we need to tell him to link this PDF to the Help button or link of the Application?

  • Deauthorised some computers and need to add this one but I continue to get the error message

    I have deauthorised some computers and need to add this one but I continue to get the message: You cannot authoize more than 5 devices………

    Try to reload the page with F5.

  • HT1495 I need to add an app to my Japan iPhone from iTunes Japan, since it is not available in the US iTunes store. How do I do this.

    I am in Japan. My iTunes is a US account. I need to add an app to my Japan based iPhone.  It is not available in US iTunes. Do I need another iTunes account in Japan?

    You can only purchase from the country in which you live. You cannot purchase from the Japan Store if you live in the U.S. and your iTunes account is a U.S. based account.

  • Rikaichan (add-on) doesn't work at my office. It gives this error "Javascript application: the index for one or more dictionaries needs to be created. This may take a while on slower computers". And then the PC freezes. What should I do?

    I'm using Firefox 3.6.17, and have installed Rikaichan 2.02. Once I've installed the Japanese-English dictionary, I then click on Rikaichan to get it started, and it always gives a "Javascript Application" error:
    '''"The index for one or more dictionaries needs to be created. This may take a while on slower computers"'''
    Rikaichan always works fine on my laptop, but I just can't seem to install it properly at work. Is there some sort of office security screwing it up?

    venicespent,
    Boot into your Mavericks Recovery partition by hold down the command and R keys whilst booting. You'll see a screen that looks like this:
    Click on the Disk Utility item to open Disk Utility. You should see your boot drive (usually named "Macintosh HD" unless you've changed it) in the column on the left of the screen. Select your boot partition and click on the "Verify" button. Let your Mac do it's thing - if you get green text telling you that everything seems to be OK, then your disk should not be damaged. If, however, you get red text telling you that the disk needs to be repaired, click on the "Repair" button. If the disk can be repaired, you should be good to go. If the disk cannot be repaired then the drive is damaged.
    But before you do anything, make certain that you have backups!!!
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB RAM, 960GB SSD, 27” Apple Thunderbolt Display

  • I just got a new computer and need to add it to my Itunes account how do I do this

    I just bought a new computer and I need to add the computer to my Itunes account and cant see to figure it out.

    The iphone is not a storage/backup device.  The sync is one way - computer to iphone.  The only exception is itunes purchases: FIle>Devices>Transfer Purchases
    Copy everything form the old computer or your backup copy of your old computer.

  • Do I need to add Base Station MAC address to list?

    Hi, If I choose to use MAC address filtering on my Airport Extreme Time Capsule, do I need to add the wireless MAC address of the Base Station to the list of allowed MAC addresses???  I'd feel real bad if I set up a list, didn't include the base station's MAC address and then could never get in to the network again because I, in effect, locked myself out???  I doubt that address needs to be included but I would like some feedback on that.
    Second, does the one MAC address filter list apply to the Guest Network as well if I should choose to turn it on???  If that was the case, I would just turn off MAC address filtering why guests were present.
    thanks..  bob

    If I choose to use MAC address filtering on my Airport Extreme Time Capsule, do I need to add the wireless MAC address of the Base Station to the list of allowed MAC addresses???
    No. Timed Access would be for wireless devices....computers, mobile devices, printer, etc., that are connecting to the Time Capsule. The Time Capsule does not connect to itself in this regard.
    I'd feel real bad if I set up a list, didn't include the base station's MAC address and then could never get in to the network again because I, in effect, locked myself out???
    Sometimes, users lock themselves out by mistake by entering incorrect times for devices to connect, and they often forget that they can connect to the base station using an Ethernet connection and get back in that way.....since Timed Access only applies to devices that connect using wireless.
    does the one MAC address filter list apply to the Guest Network as well if I should choose to turn it on???
    Yes

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

Maybe you are looking for

  • Do you want to submit Form#?

    Not sure if I am doing something wrong but on my form I have a "Save Draft" button that will: Set the column [Filename] if NUL Set column [FinalizeNotice] to true (used to display a section with a message) Submit using data connection to a SharePoint

  • Updating images in Indesign

    Is it  > really < necessary to manually update images in Indesign when you have changed them? If you have changed a batch can you not just auto update the way you always could in that thing we used to use?? Thanks!

  • Help on Report Script

    Hi All, We are trying to write a report script to extract Level 0 data. We have an UDA associated with some parent members under a dimension (say "Entity"). Is there any way we can extract the level zero members of parent which are tagged with that U

  • My Mac Turns on But it Wont Load

    I got a prompt for an update last night. So I updated it as I always do and it restarted but it never loaded up. It turned on and I just got a blank screen, I was REALLY tired and while I was 'giving it time' I fell asleep and woke up 3 hours later t

  • ITunes9: where did the 3-column browser go ?!

    Hello there: Just installed the new iTunes 9, and I am shocked: where did the 3-column browser go? Did they really remove it, and replaced it with only the one Artists column on the left side? This cannot be serious, surely you would not remove one o