Need help with an Opengl issue while using optical flares! (AAE CS6)

Hey guys, I really need your help. I am editing at the moment and I am getting a opengl warning and then it crashes, I am on an mid 2011 iMac 21.5 inch, Mac OS X 10.7.5 lion with 4gb ram, 2.5ghz intel core i5, AMD Radeon HD 6750M 512 MB graphics. The problem is in After effects CS6 with optical flares. http://gyazo.com/870648c9b1623d3b1bea39a40fcbfb93 - That link is a screenshot of what it says! Please help me ASAP!

Since the problem os with Video Copilot's Optical Flares and OpenGL, I recommend contacting their technical support or asking on the Video Copilot forums:
http://www.videocopilot.net/support/

Similar Messages

  • I need help with a mapping issue.

    We have a number of websites setup so that they are all under the default website in IIS 7.  We use ISAPI/ReWrite/3 to process and take it to the correct page to view.  Unfortunately this does not work so well with CFAJAX or CFFILEUPLOAD.  Can anyone help?
    Example:
    Local Directory: D:\sites\website1\index.cfm  or D:\sites\website2\index.cfm
    URL: http://website1.preview.domain.com/ would show a different website than http://website2.preview.domain.com/
    ISAPI ReWrite code:
    RewriteCond %{HTTP:Host} ^(?:.*\.)?website1\.preview\.domain\.com|^(?:.*\.)?website1\.new\.preview\.domain\.com|^( ?:.*\.)?website1\.office\.preview\.domain\.com$
    RewriteRule (.*) /website1$1 [NC,L]
    and the same with website2, only it has website 2 instead of website1.
    However, when I use CFFileUpload it creates the parameter as: 'http://website1.preview.domain.com/website1/upload/process.cfm'
    I have tried to replace the code when processing the template and the page content, but it does not replace it.  It must happen last, even after I do a <cfsavecontent>
    I need it to show up as http://website1.preview.domain.com/upload/process.cfm
    Can anyone help me with either an idea to use in the ISAPI/ReWrite or some other change I can make?

    The issue comes down to the fact that in the Coldfusion Administrator I set the Settings > Default ScriptSrc Directory : http://10.4.3.80/CFIDE/scripts/, because http://website1.preview.domain.com/cfide/scripts does not exist.
    This works for cfchart, but when I look at the source for any flash stuff, it still puts just "/CFIDE/...", which is trying to pull from http://website1.preview.domain.com/CFIDE/..., which doesn't exist, and it shows http://website1.preview.domain.com/website1/upload/process.cfm (which does not exist) instead of http://website1.preview.domain.com/upload/process.cfm like it should.  Everything else works on the website, all coldfusion stuff (although, I do convert some of the links and things in my page so that they work properly).  However, I can't find a place to replace links when I use a cffileupload, it puts that in very last, so my links are messed up.
    The nicest thing would be a setting that I could set the cffileupload to know what the path is.  If that is not available, then I need to write a ISAPI/ReWrite line to redirect it.

  • Need help with expression builder issue

    Hi all
    I'm hoping someone can help with an issue I'm having. I'm creating a database for a manufacturing joinery. For 1 of my forms, Ive to create a despatch form which includes order details along with customer details. Some customers can have contracts in which
    they get a fixed price on certain item. This is where the problem lies.
    For my customers table, I have a field called "On contract" which is a Yes/No field. I've created a query to attempt to make this form. I'm having trouble with adding a total column at the end of this query. Quantity,Unit Price, Contract Price
    are also in the query. I've been trying to build an expression to say like;
    iif [on contract] = "Yes", [Quantity] * [Contract Price]
    iif [on contract] = "no", [Quantity] * [Unit Price]
    It obviously wont work, what am I doing wrong?
    Thanks in advance

    Hi,
    Assuming you are using the database is SQL Server:
    SELECT [CustomerID]
    ,[Quantity]
    ,[Unit Price]
    ,[Contract Price]
    ,[Total] = CASE WHEN [On Contract] = 'Yes' THEN [Quantity] * [Contract Price]
    WHEN [On Contract] = 'No' THEN [Quantity] * [Unit Price] END
    FROM [Customers]
    Modify the SQL to suit your need.
    Hope this helps.
    ~J.

  • Need help with Itunes Authorization issue

    I've been a Itunes/Ipod user for a couple years. During that time, I've sure spent over $500.00 on Itunes music from the Itunes store for my Ipod. My daugter and I both have Ipods.. There have only been 2 machines with Itunes installed here but I occasionally rebuild my computers to have the latest and greatest hardware for my business.. The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades. Everything went smoothly including importing my purchased music back into Itunes.. The problem is I can't listen to it now. When I try to double click a song I get an error that says "You have already authorized 5 computers with this account. To authorize this computer you must first deauthorize one of the other computers" This isn't possible because the computers aren't around anymore to deauthorize. They were all housed (except 1, my daughters pc) in the same case as I have now.. Please respond...

    The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades.
    okay. you may have ended up with multiple authorisations on that PC due to the system changes. if so the following documents should be of some help with techniques for freeing up authorisations:
    One computer using multiple iTunes Music Store authorizations
    About iTunes Store authorization and deauthorization

  • Just Switched To  Mac's and Need Help With A Few Issues!

    Hi All,
    I finally did it and switched to a Mac!! Never thought it would happen as I always felt guilty about the cost but after 5 laptops crashing on me - well, I just could not take it anymore! I managed to get a fairly good deal on a 15" Macbook Pro - 2.2/120GB version. I still don't know much about the mac way but am trying to learn so any help would be appreciated!
    1). Is there any kind of video tutorial (preferably free!) that I can use that will help me learn the Ma OS X? I have Tiger 10.4.11 on my MBP (Did you hear that - MY MBP!!!)
    2). AOL Assured me that they fully support Mac before I purchased (only 5 times!) but after I had bought it - they then told me that they do not! I got the AOL disk for Mac but it kind of ***** - features are missing etc. Does anyone in the UK run their Mac's with AOL and does it run as per normal? Any advice with AOL & Mac?
    3). AOL also told me - hey, no probs - of course you can transfer all your old emails, favourites folders, personal filing cabinet from a PC to a Mac - but then, after I bought it - the so called dedicated Mac Experts at AOL tell me that simply is not possible - What advice can anyone give me who has switched from PC to Mac with AOL and who needed to transfer all their stuff over? AOL tells you totally different things depending on who you talk to and even from what their web page state! I am really fed up with them!
    4). If I am ever successful in getting all my many years worth of data from AOL on a PC to a Mac, I am really intent of changing ISP's - what are the best ones for Mac that offer good Mac support, good deals and no charges for telephone support?
    5). I was initially happy with Tiger as again, AOL assured me they supported it but not Leopard (even their website says so) and as I stupidly thought that it must be true (we are talking AOL here!). Now I know that they don't support anything Mac, I am contemplating moving to Leopard - I am a little cautious as I heard there were/are many bugs and unhappy leopard experiences - have the majority of these been solved yet and is it advisable to change to Leopard or should I wait until an updated version comes out?
    6). My MBP was originally bought in the US but is registered to my name in the UK. it has 6 months Apple warranty left and I wish to buy Applecare. Apple says it 'recommends' buying Applecare in the country at which the item is registered (not bought, as I understand it). Does that mean, if I buy Applecare in the USA, Apple UK will still accept it and service my MBP as they would do any other or will I have to have the hassle of sending the thing to the USA if it needs attention? Applecare USA T&C's state only for the 50 States & Canada and Applecare UK state only for the UK & EU. Both however state international servicing?! I am a bit confused on this one. I travel a lot and need to know, that any Applecare I buy will not then be limited to just the places they state in the T&C's. As It reads to me, Applecare purchased in the USA/Canada will not cover the UK/Europe/ROTW and vice versa. Is this true or am I missing something or just plain thick?
    5). I really wish to upgrade the 120GB HDD. My understanding is that it must be done by either Apple (who charge really silly money) or if correct, at an "Authorized Apple Service Provider" who of course will be much cheaper. If true, does this mean at ANY authorized apple service provider on the planet or just ones in which the item is registered? If I do the upgrade with a service provider, will Apple then also service the new HDD if something goes wrong as per normal anywhere in the world or will they then say, sorry, will not service the new HDD and you have to go back to the place where you had it installed, even though it was one of their authorized service centers? (that would really suck)!
    6). The spelling and dictionary (and a few other things) are set to US English - how can I set to UK English? I have tried but to no avail so far.
    7) What and how should I set the Firewall settings so I will not get attacks by any form of malware? (I do not know much about this area and what the implications mean)!
    Well, that's it so far - please bear my ignorance, I am so new to Mac's and hope this to be one of the smarter decisions I have made in life! Already I have strange sensation that I never had with all those years of Microsoft & PC's - I kinda feel reassured, safe, that if I have problems, they will get sorted, My life will now be easier and not having to worry so much about crashes, viruses, trojans etc, gives me a sense of liberation and contentment almost - very strange feeling but a **** good one! (if only the women in my life were like that)!
    Thank You All From A PC to Mac Switcher (and NO! I do not feel guilty or scared anymore)!
    SuaveBhav!

    I can help you with your questions about AppleCare, and can also reassure you that both the macbook pro and Leopard will be worth your investment and the time you are putting into figuring out how to get your data across. I switched from windows when I bought my macbook a year and a half ago and would not use any other system now. The other day I completed the transition by erasing parallels and Windows from my system entirely.
    As for AppleCare, you can get warranty care anywhere in the world, no matter where you buy your AppleCare. Mine was bought and is registered in the US, I live in Slovakia, and have had it serviced several times in Austria and Slovakia under the warranty without any problems at all. There are differences, however, in exactly what the warranty covers from place to place, in accordance with the law in each place that AppleCare is issued. Even though I live in the EU, my agreement with Apple is an American one, and the American guarantees hold. If EU law would demand that Apple fix more things, for instance, than American law does, I could not get those things repaired under my agreement, and vice versa.
    Basically, though, I understand my agreement with AppleCare to be that they will fix all problems/damage that are not my fault free of charge for two years after my initial one-year warranty runs out, and that is good enough for me.

  • Need help with an innerjoin issue

    Hello;
    I am writting a small app for my web site and have run into
    an issue with an innerjoin. Let me explain what the function is for
    this so maybe you can understand what I am doing.
    There are 2 pages to this. Page 1, is a category selection
    page. It loads all the categories on the page with a link that
    passes a category ID to page 2. Page 2, then allows you to view all
    the projects that are associated to the specific category. There is
    a numbered navigation on this page, kind of like google, 1 2 3 4
    More> Next>
    Now what I am trying to do it create a select function that
    allows you to choose another category to look through on page 2 so
    you don't have to go back to page 1 and select another category
    there.
    Right now, I have the innerjoin working well with page 1
    going to page 2 and the numbered nav, it is doing what it is
    supposed to. BUT the select function is working off the where
    clause and not working independantly from what the numbered nav and
    body is supposed to be doing. There is also a spot I added to this
    page that kind of works like the select function, it puts the name
    of the category your viewing on the page.
    What is happening with the select function and this name
    function is lets say there are 5 project records tied to the
    category you selected, then the select function gets 5 names of the
    same category in it and so does the category name function.
    (Follow this?)
    Let me post the code for page 1 and page 2. also will add
    what the tables are in the db.
    DB tables:
    Table1: Categories
    Name (this is the actual category name), MYFile(the file that
    give an image of the category), Description(a description of this
    category), CategoryID (this is added to the projects table for each
    project that is connected to each category)
    Table 2: Projects
    ProjectID (this is the ID of the projects), Name (this is the
    name of the project) Body (thi sis the description and picture of
    the project), CategoryID (this is the id of what category the
    project falls under, also assigned to tproject from the categories
    table)
    There is a lot of code that goes in this, so I am going to
    post the code that is pertinent to this question, 90% of it is
    working at this time, just not the select function and category
    name on page 2.
    Page1 Code:
    <CFQUERY name="GetRecord"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    </head>
    <body>
    <cfloop query="GetRecord" startRow="#URL.startRow#"
    endRow="#endRow#"><cfoutput>
    <img src="../img/cat/#MYFile#" width="50" height="50">
    <a
    href="portfolio-detail.cfm?CategoryID=#CategoryID#">#Name#</a>
    #Description#
    </cfoutput></cfloop>
    <!--- there is a numbered nav on this page, it works nice
    so I didn't add the code, that is why I am using a cfloop --->
    Page2 code:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <head>
    <!--- this script is for the select function so when you
    make a selection, it goes to the next category without having to
    hit a submit button --->
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- here are the Category name and select functions that
    aren't working properly yet --->
    <cfoutput
    query="getProjects">#cat_name#</cfoutput>
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "getProjects">
    <option value="#CategoryID#">#cat_name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!--- this part is working properly, it also has a
    numbered nav, like google that is working properly at this point
    --->
    <cfoutput query="GetProjects" startRow="#startRow#"
    maxRows="#maxRows#">
    #Name#
    #Body#
    </cfoutput>
    <!--- next is the cfmodule for the nav, the nav is a lot
    of code, a whole page on it's own so I am not posting it --->
    <cfmodule
    template="../CFdocs/PageNav.cfm"
    totalItems="#numRows#"
    numPerPage="#maxRows#"
    startRow="#startRow#"
    url="#cgi.script_name#?categoryID=#categoryID#&startRow=#startRow#">
    The main part that is not working properly is the select, and
    category name. How to I get those to work independantly from my
    where clause? (I need the where clause for the numbered nav and
    cycling through the projects tied to the category you called up
    from page 1.
    Can someone help me tweek my code from this point? I am
    stumped, I looked at the cf docs and I can't find a solution. I am
    using CF 8.
    Any help would be appreciated. Thank you!
    CFmonger

    I fixed a lot of this since I posted it this morning. Now all
    that isn't working properly is the select, it isn't passing the
    proper variable to make the query work.
    This is what I have now:
    Page 2:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <!--- I will add the <cfqueryparam> in a bit --->
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <!--- This query populates the select nav --->
    <CFQUERY name="cata"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- this output works well now, gives me what I need and
    changes when you select a category from page 1 --->
    <cfoutput query="getProjects"
    maxrows="1">#cat_name#</cfoutput>
    <!-- the select isn't passing the CategoryID properly, it
    is now throwing an error --->
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=#CategoryID#">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "cata">
    <option value="#CategoryID#">#Name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!-- the rest of the code goes after this, it ias all
    working --->
    The error I get when using the select is this:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression 'Projects.CategoryID ='.
    The error occurred in C:\Websites\folio\portfolio-detail.cfm:
    line 12
    10 : INNER JOIN Categories
    11 : ON Categories.CategoryID = Projects.CategoryID
    12 : WHERE Projects.CategoryID = #categoryID#
    13 : ORDER BY ProjectID
    14 : </CFQUERY>
    I also tried doing it this way:
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true"
    This way didn't work at all, it only made the numbered nav on
    the page cycle through all the projects in all the categories.
    What do I need to change to pass the proper variable from the
    select nav to the innerjoin query and my where statement?

  • Need help with PS CS5 crashing while openinng specific document!

    Good morning all, I am the network admin at my company, and i have a user expereicneing a strange issue.  I do not know much about PS, other than how to install it, so i am at a loss to troublshoot this issue.  Any help would be greatly appreciated.
    Background: Computer is a Dell Precision 690 with 4GB RAM, running windows 7 pro x64 with SP1 (this was happening before SP1 was applied as well). Video card is nVidia Quadro NVS 285 .  I have fully updated and patched everything i can find, including using the most up to date, and "performance" drivers from nVidia (neither driver solved the problem) for the video card.  I could not find a partner certified driver for this partticular card.  The software is Photoshop CS5 version Version: 12.0.3 (12.0.3x20101211 [20101211.r.1222 2010/12/11:02:00:00 cutoff; r branch]) x64.
    I have another user, with the exact same computer, and exact same software (they were made form the same image) whom does not have this problem.
    The issue:  Basically, when opening this one particular image (from the users desktop) PS crashes and throws up the following error.  Sometimes it will actually display the image, then crash as soon as you try to even so much as click anywhere on the image.  Other times it conks out before the image is even displayed.
    Problem signature:
    Problem Event Name:     APPCRASH
    Application Name:     Photoshop.exe
    Application Version:     12.0.3.0
    Application Timestamp:     4d035d7d
    Fault Module Name:     CoolType.dll
    Fault Module Version:     5.7.83.10783
    Fault Module Timestamp:     4cab0d45
    Exception Code:     c0000005
    Exception Offset:     0000000000033a38
    OS Version:     6.1.7601.2.1.0.256.48
    Locale ID:     1033
    Additional Information 1:     3a1d
    Additional Information 2:     3a1d09b5925693dbcbec7b77fa814510
    Additional Information 3:     bce7
    Additional Information 4:     bce7b9096fa4d3e33239f38f9b4cacd0
    My user says there is nothing fancy or odd about this image, and the filesize wasn't any bigger than anything else he works on.  What really baffles me is that the other user with the same setup has no issue...  Thanks in advance!
    -Jim

    Since CoolType is implicated, it seems likely that user has installed a font that throws Photoshop for a loop.  The recourse in that case is to try to figure out which one it is and remove it from the system (and/or reinstall an un-corrupted copy of that font).
    Some tricks to try to figure out which font it is:
    1.  Look in the document that's failing to open with the other user's copy of Photoshop.  See what fonts are there.
    2.  Create a new document on the offending machine, invoke the Horizontal Type Tool, then open the font list.  You might find the list stops abruptly before the offending font.
    3.  Remove all fonts except the Windows standard ones, see if the problem goes away, then add them back piecemeal until the problem recurs.
    If the above doesn't get you success, another thing to think about when a problem is user-specific:   You might reset their Photoshop preferences to out-of-box defaults.  To do that you press and hold Control-Shift-Alt immediately after starting Photoshop from its menu entry or shortcut.  You have to be very quick, and if you do get its attention it will prompt and ask whether the preferences should be reset.  Keep in mind some Photoshop reconfiguration will need to happen after you do this, so it's not something to do lightly or you might get your users upset at you.
    Best of luck.
    -Noel

  • Need help with jre-1_5_0_04 windows i586 use windows 98 first edition HELP

    HI,
    this is my first post here so please bear with me while I try to explain the problems I seem to be having here . I hope that someone here can assist me with these issues as well???
    I am using the windows98 first edition, and I wanted to use the latest version of java which I think is this 1_5_0_04 version, but when I get it download it said it is recommended that I not use this version,
    but I work with Yahoo sitebuilder for my online websites and need this verision to get sitebuilder to work?
    Now I read somewhere just dont remember where forgive me, but it said in that artical that there is a workaround or something to that nature to make this version of Java to work with the windows 98 version I am using?
    I do seem to have other versions of java on this PC as well but dont no how to remove them all and where to look to remove the older versions of java if need be to get this latest version of java to work right for me?
    I did the test and it said I have the latest version of the java but like I said it now wont seem to work with this yahoo site builder and it was working before but just mega and I do mean mega sloww???
    can someone please further assist me with this and please, I will need detail step by step as to how to get this java to work with my PC and be workable with the Yahoo sitebuilder as well???
    thanks in advance and I eagerly await some useful steps to try out here .
    I think also that I might need to go in and change paths or classes or something of that nature as well to try to get it to work. the java??
    Now the download took I wanted to mention apart from the install part that said this might not be compatiable with the version of windows that I am useing but I am hopeing again that there is a work around to this issue??
    thanks
    LIBBY

    There is no work around, that Windows version is no longer compatible.
    You can find older versions of Java here:
    http://java.sun.com/products/archive/index.html
    You may want to find the latest version that is compatible with your Windows, and install that.
    I strongly recommend that you uninstall all existing Java versions first. Do that using Windows' Add/Remove Program function.

  • I need help with this program ( Calculating Pi using random numbers)

    hi
    please understand that I am not trying to ask anymore to do this hw for me. I am new to java and working on the assignment. below is the specification of this program:
    Calculate PI using Random Numbers
    In geometry the ratio of the circumference of a circle to its diameter is known as �. The value of � can be estimated from an infinite series of the form:
    � / 4 = 1 - (1/3) + (1/5) - (1/7) + (1/9) - (1/11) + ...
    There is another novel approach to calculate �. Imagine that you have a dart board that is 2 units square. It inscribes a circle of unit radius. The center of the circle coincides with the center of the square. Now imagine that you throw darts at that dart board randomly. Then the ratio of the number of darts that fall within the circle to the total number of darts thrown is the same as the ratio of the area of the circle to the area of the square dart board. The area of a circle with unit radius is just � square unit. The area of the dart board is 4 square units. The ratio of the area of the circle to the area of the square is � / 4.
    To simuluate the throwing of darts we will use a random number generator. The Math class has a random() method that can be used. This method returns random numbers between 0.0 (inclusive) to 1.0 (exclusive). There is an even better random number generator that is provided the Random class. We will first create a Random object called randomGen. This random number generator needs a seed to get started. We will read the time from the System clock and use that as our seed.
    Random randomGen = new Random ( System.currentTimeMillis() );
    Imagine that the square dart board has a coordinate system attached to it. The upper right corner has coordinates ( 1.0, 1.0) and the lower left corner has coordinates ( -1.0, -1.0 ). It has sides that are 2 units long and its center (as well as the center of the inscribed circle) is at the origin.
    A random point inside the dart board can be specified by its x and y coordinates. These values are generated using the random number generator. There is a method nextDouble() that will return a double between 0.0 (inclusive) and 1.0 (exclusive). But we need random numbers between -1.0 and +1.0. The way we achieve that is:
    double xPos = (randomGen.nextDouble()) * 2 - 1.0;
    double yPos = (randomGen.nextDouble()) * 2 - 1.0;
    To determine if a point is inside the circle its distance from the center of the circle must be less than the radius of the circle. The distance of a point with coordinates ( xPos, yPos ) from the center is Math.sqrt ( xPos * xPos + yPos * yPos ). The radius of the circle is 1 unit.
    The class that you will be writing will be called CalculatePI. It will have the following structure:
    import java.util.*;
    public class CalculatePI
    public static boolean isInside ( double xPos, double yPos )
    public static double computePI ( int numThrows )
    public static void main ( String[] args )
    In your method main() you want to experiment and see if the accuracy of PI increases with the number of throws on the dartboard. You will compare your result with the value given by Math.PI. The quantity Difference in the output is your calculated value of PI minus Math.PI. Use the following number of throws to run your experiment - 100, 1000, 10,000, and 100,000. You will call the method computePI() with these numbers as input parameters. Your output will be of the following form:
    Computation of PI using Random Numbers
    Number of throws = 100, Computed PI = ..., Difference = ...
    Number of throws = 1000, Computed PI = ..., Difference = ...
    Number of throws = 10000, Computed PI = ..., Difference = ...
    Number of throws = 100000, Computed PI = ..., Difference = ...
    * Difference = Computed PI - Math.PI
    In the method computePI() you will simulate the throw of a dart by generating random numbers for the x and y coordinates. You will call the method isInside() to determine if the point is inside the circle or not. This you will do as many times as specified by the number of throws. You will keep a count of the number of times a dart landed inside the circle. That figure divided by the total number of throws is the ratio � / 4. The method computePI() will return the computed value of PI.
    and below is what i have so far:
    import java.util.*;
    public class CalculatePI
      public static boolean isInside ( double xPos, double yPos )
         double distance = Math.sqrt( xPos * xPos + yPos * yPos );        
      public static double computePI ( int numThrows )
        Random randomGen = new Random ( System.currentTimeMillis() );
        double xPos = (randomGen.nextDouble()) * 2 - 1.0;
        double yPos = (randomGen.nextDouble()) * 2 - 1.0;
        int hits = 0;
        int darts = 0;
        int i = 0;
        int areaSquare = 4 ;
        while (i <= numThrows)
            if (distance< 1)
                hits = hits + 1;
            if (distance <= areaSquare)
                darts = darts + 1;
            double PI = 4 * ( hits / darts );       
            i = i+1;
      public static void main ( String[] args )
        Scanner sc = new Scanner (System.in);
        System.out.print ("Enter number of throws:");
        int numThrows = sc.nextInt();
        double Difference = PI - Math.PI;
        System.out.println ("Number of throws = " + numThrows + ", Computed PI = " + PI + ", Difference = " + difference );       
    }when I tried to compile it says "cannot find variable 'distance' " in the while loop. but i thought i already declare that variable in the above method. Please give me some ideas to solve this problem and please check my program to see if there is any other mistakes.
    Thanks a lot.

    You've declared a local variable, distance, in the method isInside(). The scope of this variable is limited to the method in which it is declared. There is no declaration for distance in computePI() and that is why the compiler gives you an error.
    I won't check your entire program but I did notice that isInside() is declared to be a boolean method but doesn't return anything, let alone a boolean value. In fact, it doesn't even compute a boolean value.

  • Jxl -need help to solve error generated while using createWorkbook() method

    I need to copy a template excel file(template will hold the file name) to another new generated excel file (book.xls).
    And I was trying this, -
    FileInputStream fis = new FileInputStream(template);
    jxl.Workbook jwbook = Workbook.getWorkbook(fis);
    Sheet jsheet[] = jwbook.getSheets();
    int sheetNum = jwbook.getNumberOfSheets();
    FileOutputStream fos = new FileOutputStream(pathName + File.separator + "book.xls");
    WritableWorkbook outputWorkbook;
                outputWorkbook = Workbook.createWorkbook(fos, jwbook);error showing :-
    java.lang.NoSuchMethodError: common.Assert.verify(Z)V
         at jxl.biff.XFRecord.<init>(XFRecord.java:356)
         at jxl.write.biff.CellXFRecord.<init>(CellXFRecord.java:50)
         at jxl.write.WritableCellFormat.<init>(WritableCellFormat.java:87)
         at jxl.write.WritableWorkbook.<clinit>(WritableWorkbook.java:55)
         at jxl.Workbook.createWorkbook(Workbook.java:344)
         at jxl.Workbook.createWorkbook(Workbook.java:326)
         at custom.localopal.actions.TestExcel.processAction(TestExcel.java:581)
         at custom.localopal.actions.TestExcel.main(TestExcel.java:1373)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)Here,-
    template is a filename,
    pathname is "c://Test",
    'template' is also in the same path.
    Can any one please help me to identify the problem? What is the reason of the error and how it can be solved?

    It looks like the error is on the below line ;
    java.lang.NullPointerException
      at oracle.apps.ap.oie.audit.server.AuditReportLinesVORowImpl.isPersonalLine(AuditReportLinesVORowImpl.java:449)
    Please check what is the reason for the error.
    I am seeing many issues with VO substitution these days which is because the extended VORowImpl is not calling super for those attribiutes which is overridden in the stanard VORowImpl.
    Please have a read on the below blog and see whether that is applicable to your VO extension.
    Johny's Tips: OAF: Transient Attributes not getting populated in Extended VO
    If not, please attach the standard and the custom VO files
    Cheers
    AJ

  • Need help with startup Sync issue with Photoshop Elements 8.0

    When starting up Photoshop Elements 8.0 a brief dialog appears about sync space being filled up with options for Cancel or Proceed. This is then quickly covered up by the frame showing Survey/Show What's New/etc... cannot get back to dialog about sync space. Only way to get into the program is to click on the right arrows in the Welcome to Elements frame, start a tour, click right arrow until Go box is presented and then click on Go. Major PITA to do this. If we are quick, we can click on the initial dialog and click on Cancel or Proceed and get into the program without the covered up frame. We are running PSE8 on Windows 7.
    I have shut off sync and still this problem remains.I have been a loyal Adobe product user but this Automatic Sync stuff is really starting to get VERY irritating.
    Thanks for any help that can be provided.

    A lot of people are finding the same frustrations. Apparently PSE8 does not let you select start up with the Editor but forces the welcome screen on users. This is a classic case of Adobe not knowing what customers want and giving us what they think we want. It ignores the fact that the majority of users will have upgraded from earlier versions.
    You can make quick short cuts. If using windows right click on the desktop, select new short cut then browse to program files, Adobe Photoshop elements and scroll right down the list and click on Editor; then finish.
    You can do the same for the organizer and then launch each one independently.
    You need to think carefully whether you need to keep everything in sync with Photoshop.com. Several users have found problems when they have quickly used up their free storage capacity and then have to pay Adobe an upgrade fee just to continue using the program, otherwise they are locked out.

  • Need help with netstream crossdomain issue

    Our company has a main server for our web site. But all of
    our graphics are then copied from the main server to a special
    caching server to speed things up. I am trying to use netstream to
    create a universal video player for our company and it works fine
    as long as the source .swf and .flv are being called from the same
    server. But when I call the .swf from our main server and then the
    .swf tries to load the .flv from the graphics server, it doesn't
    play. I have tried the crossdomain.xml thing and it still doesn't
    work. I've looked for information relating to netstream crossdomain
    issues but haven't found anything. I know the easy solution is to
    make sure everything is called one server, but many people might
    use this and I can't always be sure they know what they are doing.
    Can anybody help???? OR could this be a problem with the way our
    servers are setup?

    forgot to add that i did delete and re add the Drivers thinking that might be an issue
    Ran system test on everthing and it show its working just fine
    but still no  SPOKEN VOULUME TO SPEAK OF
    the music or Sound side works fine 
    Paul

  • Need help with Concatenated Disk Issue

    I have three USB disks I want to arrange into a concatenated disk set.  One is Western Digital 2TB and is 'always on'.  The other two are LaCie and have on-off switches 1 TB each.
    When I power the two drives up (one at a time), the first one fails 50 percent of the time, regardless of which one is first.  It shows up "red" in Disk Utility, and an error message comes up.  I can power it off again, power it on again and it's fine.   They worked great (as single drives) until I tried this so I figure I'm doing something wrong.
    Thoughts?

    Great to hear Dean, thanks!
    Further notes: OSX needs about 15% or 10GB Free space minimum, but will run mucch faster/safer with 30-40% or 50GB of Free Space... Free Space is no longer ours to use.
    Another tool to help clear up assorted things is Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

  • Need help with administrator password for first use??

    Hi, I'm not sure if this is a dummy question. I just installed BI EE, then I was trying to open a sample Repository file, it asked me for password for Administrator account. I entered SADMIN as I found from the HELP (attached below), it didn't work; then I left it blank, it didn't work, then I tried any password I used during the installation, none of them worked.
    Hopefully I can get some insight here.
    Thank and have a good day.
    Crystal
    ====================
    About the Oracle BI Administrator Account
    The Oracle BI Administrator account (user ID of Administrator) is a default user account in every Oracle BI repository. This is a permanent account. It cannot be deleted or modified other than to change the password and logging level. It is designed to perform all administrative tasks in a repository, such as importing physical schemas, creating business models, and creating users and groups.
    NOTE: The Oracle BI Administrator account is not the same as the Windows NT and Windows 2000 Administrator account. The administrative privileges granted to this account function only within the Oracle BI Server environment.
    When you create a new repository, the Oracle BI Administrator account is created automatically and has no password assigned to it. You should assign a password for the Oracle BI Administrator account as soon as you create the repository. The Oracle BI Administrator account created during the installation of the Oracle BI repository, that is, the repository shipped with Oracle BI, has the default password SADMIN.
    The Oracle BI Administrator account belongs to the Administrators group by default and cannot be deleted from it. The person logged on using the Oracle BI Administrator user ID or any member of the Oracle BI Administrators group has permissions to change anything in the repository. Any query issued from the Oracle BI Administrator account has complete access to the data; no restrictions apply to any objects.

    Goran O wrote:
    Try Administrator/Administrator, it works for sh.rpd and samplesales.rpd.
    Regards
    Goran
    http://108obiee.blogspot.com
    Thank you too!!

  • New to Flash AS3, Need help with some weird issues, have .fla link attached...

    Basically, the buttons are not visible when siteplan_mc is replayeed after floorplan closes, but they still work. Most things are only working on double click for soe reason, tho I have them to function on click. and the back button only woorks on unit 1 floorplan, tho the code it the same for all floorplans. I have a feeling it has something to do with levels... but I really have no idea... hopefully someone can help!
    thanks in advance,
    Sarah
    http://www.30eastroosevelt.com/RRHA_SITE.fla

    There are at least two things you're doing wrong. You can't go to a frame where something exists for the first time, and immediately do something to it. Like in your playunit functios for example:
    gotoAndStop("unit1")
    unit1_mc.alpha = 1
    unit1_mc hasn't yet drawn itself on stage to have its alpha set, and so there's an error. That is something that was improved in Flash 10, so if you had set the Flash to publish for Flash 10 and not Flash 9, then the floor plans and the back buttons appears ok. It would sometimes work with double clicks because by the second time you clicked, the movieclip now existed. You might be able to do what you want by having all of the room units on frame 1 of the siteplan_mc, and then set their visible to true or false as you need them, instead of doing the gotoAndStop().
    The other problem is that you're trying to set listeners on the Back buttons that don't yet exist. Wait until you're on the frame where the buttons exists, and then set its listener for the mouse click.
    Other things you're doing could be improved too, but really you might want to get together with someone who has done more AS3, to help you become more familiar with how it works.

Maybe you are looking for

  • Printing to shared Windows printer fails after Yosemite upgrade

    Running Mountain Lion had a working shared printer from Windows 7 Pro - a Canon MX310. After upgrade the printer is still there but trying to use it results in "Support Code : 306 A communication error has occurred..." Tried deleting the printer then

  • How to handle the call transaction in method of a custom business object

    Hello all, There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for t

  • Unable to create thumbnail in Adobe Media Encoder in CS6

    I would like to create a thumbnail image in Adobe Media Encoder for all my videos. In the help file it says this is achieved by adding the same watch folder twice and choosing one of the output formats at JPEG. I have done this however JPEG is not li

  • Change/modify  Purchase info records (EINE table)

    Hi, Could you pls help to in providing FM to change/modify purchase info record. I have tried to use FM - >  ME_UPDATE_INFORECORD and ME_DB_UPDATE_INFORECORDS. but, it's not working . Kindly advice. Regards, Bharat

  • Nano 3rd Gen Graphical Bug

    When going from song lyrics to coverflow, a bug often occurs where the whole screen either goes green, or the coverflow is shifted up or to the right. http://forums.facepunchstudios.com/showthread.php?t=475025 Pictures and details on there. To fix it