Looking to see if this VBA subroutine can be made more efficient

To All,
  I have put together a SUB that depending on a constant averages those numbers together then starts the process of exponential smoothing of the number until the last row of data.  As it does so, it checks to see if it is at the last row and then
copies the last number to row 2 of the same column.
  It works fine, but seems a little slow for just 11 columns and 200 rows.  Any thoughts on how to increase the efficiency of the routine?
Thanks
Harry
Private Sub EMACalc()
'EMA Calculations
Dim numRows As Integer
Dim EMAWindow As Long
Dim colCount As Integer
Dim rowCount As Integer
Dim col As Integer
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
numRows = Sheets("InvertData").UsedRange.SpecialCells(xlCellTypeLastCell).Row - 1
colCount = Application.WorksheetFunction.CountIf([BlanksRange], "<>" & "") - 1
EMAWindow = [EMAConst]
For col = 1 To colCount
Sheets("EMALng").Cells(EMAWindow + 1, col) = "=Average(InvertData!R[-" & EMAWindow - 1 & "]C[2]:R[4]C[2])"
For rowCount = EMAWindow + 2 To numRows
Sheets("EMALng").Cells(rowCount, col).FormulaR1C1 = "=InvertData!R[4]C[2]*(2/(EMAWindow + 1)) + R[-1]C * (1-(2/(EMAWindow+1)))"
If rowCount = numRows Then
Sheets("EMALng").Cells(2, col).Value = Sheets("EMALng").Cells(rowCount, col).Value
Else
End If
Next rowCount
Next col
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub

Hi Harry,
>> It works fine, but seems a little slow for just 11 columns and 200 rows.
I don’t quite understand the goal you were trying to achieve through the code. Based my understanding, accessing 2000+ cells and changing the formula cell by cell may make the macro running slow.
Since I’m not very familiar with your business requirement, I’m not sure whether it is possible to put the logic on the formula instead of changing the formula dynamically through VBA.
Hope it will help.
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad "/Volumes/Data/MacBook Pro de Carlos.sparsebundle" ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad “/Volumes/Data/MacBook Pro de Carlos.sparsebundle” ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Try Here  >  http://pondini.org/TM/Time_Capsule.html
    Perhaps P 2  >  Time Machine could not complete . . . sparsebundle could not be accessed. (Error 109).

  • Slow computer due to only 25 GB of storage available.  BUT...most of what's on the HD is labelled as "other".  What is this, and how can I make more space?  THANK YOU!

    SLOW MACBOOKPRO G4 === due to only 25 GB of storage available.  BUT...most of what's on the HD is labelled as "other".  What is this, and how can I make more space?  THANK YOU!

    I apologize for not knowing how or where to post the etre report, so I just copy&paste it here.
    My system is slow o
    Hardware Information:
              MacBook Pro (15-inch, Mid 2010)
              MacBook Pro - model: MacBookPro6,2
              1 2.4 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics - VRAM: 288 MB
              NVIDIA GeForce GT 330M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 16:57:32
    Disk Information:
              Hitachi HTS545032B9SA02 disk0 : (320.07 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 319.21 GB (143.12 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. Built-in iSight
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
              com.symantec.kext.internetSecurity          (1.3.2f5)
              com.symantec.kext.pf          (4.2.1f7)
              com.symantec.kext.ips          (3.2f8)
              com.symantec.kext.SymAPComm          (11.2.2f3)
              com.symantec.kext.fw          (1.0.3f5)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.google.keystone.daemon.plist 3rd-Party support link
              [System] com.symantec.avscandaemon.plist 3rd-Party support link
              [System] com.symantec.deepsight-extractor.plist 3rd-Party support link
              [System] com.symantec.diskMountNotify.plist 3rd-Party support link
              [System] com.symantec.MissedTasks.plist 3rd-Party support link
              [System] com.symantec.navapd.plist 3rd-Party support link
              [System] com.symantec.navapdaemonsl.plist 3rd-Party support link
              [System] com.symantec.Sched501-1.plist 3rd-Party support link
              [System] com.symantec.sharedsettings.plist 3rd-Party support link
              [System] com.symantec.symdaemon.plist 3rd-Party support link
              [System] com.symantec.symSchedDaemon.plist 3rd-Party support link
    Launch Agents:
              [System] com.conduit.loader.agent.plist 3rd-Party support link
              [System] com.google.keystone.agent.plist 3rd-Party support link
              [System] com.hp.help.tocgenerator.plist 3rd-Party support link
              [System] com.mga.updater.plist 3rd-Party support link
              [System] com.symantec.uiagent.application.plist 3rd-Party support link
    User Launch Agents:
    User Login Items:
              Garmin Lifetime Map Updater
              Steam
              iTunesHelper
              Skype
              Steam
              Mail
              GamePadCompanionLauncher
              Mac Game Store Helper
              HPEventHandler
              SymSecondaryLaunch
    Internet Plug-ins:
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
              FlashPlayer-10.6: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Flash Player: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              o1dbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5 3rd-Party support link
              GarminGpsControl: Version: 3.0.1.0 Release - SDK 10.4 3rd-Party support link
              googletalkbrowserplugin: Version: 4.9.1.16010 3rd-Party support link
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    User Internet Plug-ins:
              BrowserPlus_2.9.8: Version: 2.9.8 3rd-Party support link
              LogitechDeviceDetection: Version: 1.0.0.76 - SDK 10.7 3rd-Party support link
    3rd Party Preference Panes:
              BrowserPlus  3rd-Party support link
              Flash Player  3rd-Party support link
              GamePadCompanionPrefPanel  3rd-Party support link
              Norton\nQuickMenu  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              /Applications/iWork '09
              /Users/[redacted]/Downloads
                        Mystery Case Files Dire Grove CE:          Version: 1.0.8 - SDK 10.5 3rd-Party support link
                        Mystery Case Files Escape from Ravenhearst CE:          Version: 1.0.8 - SDK 10.5 3rd-Party support link
                        Weird Park Broken Tune Collectors Edition:          Version: 1.2 - SDK 10.5 3rd-Party support link
                        Call of Duty 4 Modern Warfare-1:          Version: 1.2 - SDK 10.5 3rd-Party support link
                        Anna-1:          Version: 1.0.8 - SDK 10.5 3rd-Party support link
                        Call of Duty 4 Modern Warfare:          Version: 1.0.8 - SDK 10.5 3rd-Party support link
                        Drawn The Painted Tower:          Version: 1.0.7 - SDK 10.5 3rd-Party support link
              Mayan Prophecies - Ship of Spirits CE:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/MacGameStore/Demos/Mayan Prophecies Ship of Spirits CE/Mayan Prophecies - Ship of Spirits CE.app
              Garmin Lifetime Map Updater:          Version: 2.1 - SDK 10.5 3rd-Party support link
              Google Chrome:          Version: 20.0.1132.47 - SDK 10.5 3rd-Party support link
              FacebookVideoCalling:          Version: 1.2.0.157 - SDK 10.5 3rd-Party support link
                        /Users/[redacted]/Library/Application Support/Facebook/video/1.2.0.158/FacebookVideoCalling.app
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                   8%          WindowServer
                   2%          HP Utility
                   1%          EtreCheck
                   1%          NortonAutoProtect
                   0%          mds
    Top Processes by Memory:
              315 MB          SymAVScanDaemon
              111 MB          DashboardClient
              102 MB          WindowServer
              94 MB          mds_stores
              90 MB          Mail
    Virtual Memory Information:
              36 MB          Free RAM
              1.23 GB          Active RAM
              1.18 GB          Inactive RAM
              758 MB          Wired RAM
              1.27 GB          Page-ins
              21 MB          Page-outs
    Thank-You

  • Looking to see if this NFS issue is universal with everyone else

    First I followed these directions exactly (and our filer is a Netapp):
    http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnRHEL5UsingVMwareESXAndNFS.php
    So the database has been created as per the end of these instructions. Nothing customized. No data populated or anything of any substance has been done yet.
    But if I now follow the instructions in this link (you do need a Netapp NOW login, but basically on the filer you do a nfstat -z to clear the stats, then nfsstat -l to see the top talkers, and then nfsstat -h <IP> to see the kind of traffic per host):
    https://now.netapp.com/Knowledgebase/solutionarea.asp?id=kb36582
    My top two servers by a long shot are the brand new RAC Nodes. Even more than the VMware NFS IP's used to carry all the guest vm traffic. After 10 minutes the top host had 450,000 NFSOPS. The third highest was less than 50,000.
    The bottom of that netapp link states "If it looks like it is the culprit that is generating too many getattr, access, or other requests at a rate of 50% or higher at the expense of reads and writes, you should work with your UNIX vendor or support team to analyze that data and determine what processes on the host are running against the filer to cause so many unoptimized requests."
    My values for "getattr" and "access" are 62% and 35% of the total traffic. My reads and writes are 2% and 1% respectively. According to Netapp this is a problem and hugely unoptimized. What the heck is Oracle or CRS doing? Anybody with a similar setup see the same thing? Is this a cause for concern? Should we bring it up with Technical Support or is this expected behavior for Oracle/RAC? Let me know what you all are seeing.
    Thanks!

    Hi,
    I have same issue on one of my two RAC nodes.
    We have NetApp 3020c and using a physical Dell PE 1435 server with RHEL 5.3 and Oracle 10.2.0.3 RAC.
    Did you found a solution for problem?
    Best Regards

  • Can I refactor this query to use an index more efficiently?

    I have a members table with fields such as id, last name, first name, address, join date, etc.
    I have a unique index defined on (last_name, join_date, id).
    This query will use the index for a range scan, no sort required since the index will be in order for that range ('Smith'):
    SELECT members.*
            FROM members
            WHERE last_name = 'Smith'
            ORDER BY joindate, idIs there any way I can get something like the following to use the index (with no sort) as well:
    SELECT members.*
            FROM members
            WHERE last_name like 'S%'
            ORDER BY joindate, idI understand the difficulty is probably; even if it does a range scan on every last name 'S%' (assuming it can?), they're not necessarily in order. Case in point:
    Last_Name:  JoinDate:
    Smith          2/5/2010
    Smuckers     1/10/2010An index range scan of 'S%' would return them in the above order, which is not ordered by joindate.
    So is there any way I can refactor this (query or index) such that the index can be range scanned (using LIKE 'x%') and return rows in the correct order without performing a sort? Or is that simply not possible?

    xaeryan wrote:
    I have a members table with fields such as id, last name, first name, address, join date, etc.
    I have a unique index defined on (last_name, join_date, id).
    This query will use the index for a range scan, no sort required since the index will be in order for that range ('Smith'):
    SELECT members.*
    FROM members
    WHERE last_name = 'Smith'
    ORDER BY joindate, idIs there any way I can get something like the following to use the index (with no sort) as well:
    SELECT members.*
    FROM members
    WHERE last_name like 'S%'
    ORDER BY joindate, idI understand the difficulty is probably; even if it does a range scan on every last name 'S%' (assuming it can?), they're not necessarily in order. Case in point:
    Last_Name:  JoinDate:
    Smith          2/5/2010
    Smuckers     1/10/2010An index range scan of 'S%' would return them in the above order, which is not ordered by joindate.
    So is there any way I can refactor this (query or index) such that the index can be range scanned (using LIKE 'x%') and return rows in the correct order without performing a sort? Or is that simply not possible?Come on. Index column order does matter. "LIKE 'x%'" actually is full table scan. The db engine accesses contiguous index entries and then uses the ROWID values in the index to retrieve the table rows.

  • Can u suggest  more efficient way

    hi
    i have strings like
    insert into drmandi_trans (drmt_mandi_code,drmt_commodity_code,drmt_qty_arrived,drmt_morning_price_max,drmt_morning_price_min,drmt_evening_price_max,drmt_evening_price_min,DRMT_Tran_date) values ('MD_INMPBPL003','MD_COM_001', 0,0,0,0,0,#8/3/2001#)
    and
    update drmandi_trans set drmt_qty_arrived = 012 ,drmt_morning_price_max = 012 , drmt_morning_price_min = 012 ,drmt_evening_price_max = 012 ,drmt_evening_price_min= 012 where drmt_mandi_code = 'MD_INMPBPL003' and drmt_commodity_code = 'MD_COM_002' and drmt_tran_date =#8/3/2001#
    i want them to be
    insert into drmandi_trans (drmt_mandi_code,drmt_commodity_code,drmt_qty_arrived,drmt_morning_price_max,drmt_morning_price_min,drmt_evening_price_max,drmt_evening_price_min,DRMT_Tran_date) values ('MD_INMPBPL003','MD_COM_001', 0,0,0,0,0,'8/3/2001')
    update drmandi_trans set drmt_qty_arrived = 012 ,drmt_morning_price_max = 012 , drmt_morning_price_min = 012 ,drmt_evening_price_max = 012 ,drmt_evening_price_min= 012 where drmt_mandi_code = 'MD_INMPBPL003' and drmt_commodity_code = 'MD_COM_002' and drmt_tran_date ='8/3/2001'
    i wrote following method for it and pass these strings to it as parameter
    public static String changeForSqlServer(String command)
           StringTokenizer st=new StringTokenizer(command,",=(#)",true);
              StringBuffer sqlServerVersion=new StringBuffer();
              String previousToken="";
              String nextToken="";
              String token="";
              while(st.hasMoreTokens()) 
                   token=st.nextToken().trim();
                   System.out.println("01 p->"+previousToken+"t->"+token+"n->"+nextToken);                         
                   if(token.equals("#"))
                        if(previousToken.equals(",")||previousToken.equals("(")||previousToken.equals("="))
                             System.out.println("1. p->"+ previousToken+"t->"+token+"n->"+nextToken);
                             sqlServerVersion.append("'");
                             previousToken=token;
                             System.out.println("2. p->"+ previousToken+"t->"+token+"n->"+nextToken);
                        else
                             if(st.hasMoreTokens())
                                       nextToken=st.nextToken().trim();
                                       System.out.println("3. p->"+ previousToken+"t->"+token+"n->"+nextToken);
                                       if(nextToken.equals(",")||nextToken.equals(")"))
                                       System.out.println("4 p->"+previousToken+"t->"+token+"n->"+nextToken);                         
                                            sqlServerVersion.append("'").append(nextToken);
                                       System.out.println("5 "+previousToken+"  "+token+"  "+nextToken);                              
                                       else
                                            sqlServerVersion.append(token).append(nextToken);
                                       previousToken=nextToken;
                                       System.out.println(sqlServerVersion);
                             else
                                  sqlServerVersion.append("'");
                                  return sqlServerVersion.toString();
                   else
                        if(!token.equals(""))
                             previousToken=token;
                             sqlServerVersion.append(token);
              return sqlServerVersion.toString();
      }although this method does above task i feel that there may be many improvements possible to make it fastest algorithm.
    it will be helpful if u can suggest improvements in this code
    or suggest some better algorithms
    thanks

    Could you simplify what excactly your trying to acheive here? Form the look of it, your doing the job of the JDBC. You should consider reading the JDBC doccumentation or buying a book. You should check for the PreparedStatements wich allow you to set predefined Statements with Variable inputs fields.
    Check out :
    http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html

  • My mac is slow. How can it run more efficiently?

    I find that my 2 year old Macbook Pro is super slow and just started to run slow about 4 months ago. It takes a long time to load and execute programs. Is there anything that I can do at home to allow the computer to run faster?

    First, back up all data immediately, as your boot drive might be failing.
    Take these steps when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into a message.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • Could this Fibonacci sequence generator and prime tester code be made more

    Hey,
    Could this Fibonacci sequence generator and prime tester code be made more efficient?
    package sideprojects;
    public class Exam2008Question2F
         public static boolean isPrime(int n)
              int div=2;
              while(div*div<=n)
                   if(n%div==0)
                        return(false);
                   div++;
              return true;
         public static void main (String [] args)
              int prev = 1, curr = 1;
              System.out.println(prev+": It's a prime number.");
              for(int i=0;i<10;i++)
                   if(isPrime(curr))
                        System.out.println(curr + ": It's a prime number.");
                   else
                        System.out.println(curr + ": It's not a prime number.");
                   int next = prev + curr;
                   prev = curr;
                   curr = next;
    1: It's a prime number.
    1: It's a prime number.
    2: It's a prime number.
    3: It's a prime number.
    5: It's a prime number.
    8: It's not a prime number.
    13: It's a prime number.
    21: It's not a prime number.
    34: It's not a prime number.
    55: It's not a prime number.
    89: It's a prime number.Edited by: woodie_woodpeck on Apr 26, 2009 3:42 AM

    corlettk wrote:
    Not what you expected? Or are you saying something about the performance of long arithmetic verses int?No, I thought you posted your method using long's as well. When you implement them both using int's (or long's), the 6-increment should run quicker:
    public class PrimeTester {
        public static boolean isPrimeInc2(long n) {
            if(n < 2) return false;
            if(n == 2) return true;
            if(n%2 == 0) return false;
            long sqrtN = 1+(long)Math.sqrt(n);
            for(long i = 3; i <= sqrtN; i += 2) {
                if(n%i == 0) return false;
            return true;
        public static boolean isPrimeInc6(long n) {
            if(n < 2) return false;
            if(n == 2 || n == 3) return true;
            if(n%2 == 0 || n%3 == 0) return false;
            long sqrtN = 1+(long)Math.sqrt(n);
            for(long i = 6L; i <= sqrtN; i += 6) {
                if(n%(i-1) == 0 || n%(i+1) == 0) return false;
            return true;
        public static boolean isPrimeCached(long n) {
            if(n == 2) return true;
            if(n < 2) return false;
            long[] cache = {2,3,5,7,11,13,17,19,23,29,31};
            for(long c : cache) {
                if(n == c) return true;
                if(n%c == 0) return false;
            long stop = (long)Math.sqrt(n);
            for(long i = cache[cache.length-1]; i <= stop; i += 2) {
                if(n%i == 0) return false;
            return true;
        public static void main(String[] args) {
            long N = 1000000, start = 0, end = 0, repeat = 5;
            while(repeat-- > 0) {
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeInc2(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeInc2(...) upto "+N+" took "+(end-start)+" ms.");
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeInc6(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeInc6(...) upto "+N+" took "+(end-start)+" ms.");
                start = System.currentTimeMillis();
                for(long i = 1; i <= N; i++) isPrimeCached(i);
                end = System.currentTimeMillis();
                System.out.println("isPrimeCached(...) upto "+N+" took "+(end-start)+" ms.\n");
    }

  • After installing Lion os I cannot see my desktop 1 nor can I see my open windows when I go to finder, I just get the grey/black background that comes with mission control. Any ideas as to how to solve this problem?

    The top picture is what my Desktop 1 looks like. And the picture below is what my desktop looks like after clicking mission control. Ive tried changing wallpapers, changing preferences, etc. and I still can't figure out what's wrong. As you can see, on mission control you can't see any of the open windows, or anything that I have placed on my desktop. Any ideas as to how to solve this issue?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • Where can I find/purchase textures you see in this illustration?

    The above illustration was taken from Peter Donnelly's illustration
    I really like this artist's style, and I would like to replicate it but I can't find the type of textures he uses. I am referring to the speckled white/black/red dots you see throughout the work.
    Can anyone refer me to some sites that have textures that are useful to illustrators?

    You will need to download or make some dust like brushes similar to the on I used which has an 11 underneath. You want just a single speck of dust.
    Then turn on scattering and shape dynamics to bay the rotation and scale, so you can spray some down. If you have about 3 speck of dust brushes, you can make this really look organic and random.
    You can search brusheezy.com, but have fun and spend less time searching and more time making your own brushes from a scan or just scribble some.

  • I am looking to change my apple ID because my e-mail is changing. How can I do this? or Can I have the same e-mail for two computers?

    I am looking to change my Apple Id (changing my internet profider), which is my e-mail, How do i do this? or, can i have two computer using the same gmail e-mail as a apple id ?  thanks!

    My iTunes appleID is an old defunct e-mail address - it does not have to be functional.
    Do what Winston says to ensure you keep getting correspondence related to that ID.
    AC

  • When my screen saver has been on a while, I have to use the cursor to "rub out" part of the screen saver to see my login section. Can anyone help me with this?

    When my screen saver has been on a while, I have to use the cursor to "rub out" part of the screen saver to see my login section. Can anyone help me with this?

    I don't have a solution for you, but just wanted to let you know I used to have the exact same problem. I resolved it (for the most part....about 90% of the time, anyway) by adjusting the screensaver and power settings to never let the computer go to sleep.

  • TS4036 my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    my device has been crushed beyond repair, and I don't think I ever did the backup thing. does this mean I can no longer see any of my stuffs??

    thats really 4kd up

  • This sign appeared in my account: "Your payment method was declined. Update your biiling info'. After adding new information about my others cards I see the same sign. Can't understand what the problem is and what should I do. Need help!!!

    This sign appeared in my account: "Your payment method was declined. Update your biiling info'. After adding new information about my others cards I see the same sign. Can't understand what the problem is and what should I do. Everything used to be good before.
    Do anyone know what I supposed to do in that situation?
    Really need help!
    Thanks in advance.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • Looking for a akku/battery replacement and/or extension for brand-new HP Envy 17-k288nz

    Any suggestions for a compatible battery for following HP Notebook Model?: HP Envy 17-k288nz -> looking for a replacement or extension with larger capacity? Didn't find any item in official HP Shop yet. -> Product Details: http://store.hp.com/Switzer

  • Soa-infra module is not starting when starting soa_server as service

    Hi, I have WLS 10.3.3 installed with the SOA suite component. I have configured the WLS admin Server as windows service and it is starting without any errors. When I am configuring the soa_server1 as the windows service and trying to start the servic

  • Poor image quality when viewing PDFs in Digital Editions

    I recently bought a digital copy of a book in the .acsm file format.  The site I bought it from recommended using Digital Editions.  I am on a mac, OS X 10.6.3.  When viewing this book, there are various screen shots that are essentially illegible in

  • IPad Invision Smart function not working on iPad 3

    Hi, I have an iPad 2 and i also have the invison leather case with the smart wake function and it always worked great. I now have a new iPad (3rd Gen) luckily it fits in the case, but the smart wake no longer works. I checked all the settings and the

  • Sending a web page by email

    Internet Explorer would provide an option under the File Menu to send a page by email. All I see, is send a link. Is there not a way to do this in Firefox without copying the entire page and posting in an email??