In need of some advice of approaches I could take

1)I want to create a program in java that allows the user to select six numbers from a fixed set of numbers (1-10,25,50,75,100)
2)Then i want to generate a number from 100-999 which will be the target value
3)Then i want to use arithmetic with the six chosen numbers to form an arithmetic expression that is equal to the target number, or as close to the target as possible.
Can anyone give me any ideas on how I can go about developing part 3) using java?
I know it can be done using a binary tree or just doing it recursively but im not too sure where to start, any help would be great.

create a function that takes in your test number (1 to 100).
within that function:
Declare three variables as follows:
int absoluteDifference;
int fixedNumberFound;
int[] fixedNumbers=new int[]{1,23,4,5,6,7,8,9,10,50,75,100};
Get the first value in fixedNumbers and take the absolute difference between it and the number entered into your function. Store the values in the 3 variables above.
Do the same above for each number in fixedNumbers and if the difference is less than the above steps you've taken, store this value and difference in the 3 variables above. If not, go onto the next fixedNumber. at the end, the three varaibles will hold the data you need.
The above is roughly what needs to be done. Sorry, I cant help further without actually coding it for you (which I wouldn't).

Similar Messages

  • Need for some advice

    hi.
    i am getting started with swing, and i was wondering if i am making some right choices. Meanwhile i dont know where to start.
    I want to create an graphical editor for my thesis.
    That means that I need to implement:
    - a tree with a hierarchy of concepts
    - draw several kind of graphs/ diagrams (drag and drop the concepts from the tree and create the nodes, connect them with each other with edges, extend a graph with other type of nodes...)
    - docks with properties for the edges. there with be various kind of edges, so the properties will have to comply with the type of the edge.
    - docks with tools for the graphs, e.g. edges, types of nodes.
    - save the created 'project' somehow... and load the saved ones.
    - .. and other stuff that i guess will come during the develpment.
    So the questions are:
    1. is swing enough? if not, what should i use?
    2. from where to start to?! how to organize my code? packages/ objects, is there a desing pattern for this kind of java projects? (e.g. web applications have mvc for start, factory, observers...). Is there a book that i could read?
    3. how to save the created object/project?
    - docks will be separate JFrames?
    Can someone advice me on this?
    I will be grad to provide you more information for the project if it is needed.

    ok, i ve done some work for this editor, and more questions came up.
    since now, i can drag a node of a tree and 'drop' it to a panel (GraphPanel). The 'drop' means that the panel is re-painted, drawing some Ellipses:
    public class GraphPanel extends JPanel implements Transferable {
         // holds all the nodes of my graph
         Set<GNode> nodes; // a node has a name (string) and a Point
         public void paintComponent(Graphics g) {
              super.paintComponent(g); // clear
              // repaint
              Graphics2D g2d = (Graphics2D) g;
              for (GNode n : nodes) {
                   Ellipse2D.Float circle = new Ellipse2D.Float(
                        (float)n.getPoint().getX(), (float)n.getPoint().getY(), 20, 20);
                   g2d.setColor(new Color(204, 159, 42));
                   g2d.fill(circle);
                   g2d.setColor(Color.black);
                   g2d.drawString(
                        n.getName(), (int)n.getPoint().getX()+20, (int)n.getPoint().getY());
    }while the JPanel implements Transferable and the TranferHandler of the JPanel accepts only the String (i only need the name of the node of a JTree) and importData() adds a new node each time a string flavor is tranfered.
    The bad thing is that (a) i repaint all the panel each time.. -ok this is dummy-, (b) the nodes cannot be draggable, neither i can add mouse listeners, (c) it is realy dummy...
    So.. how should i draw the nodes? Should I extend JComponent and add() an Image (e.g. an image with just a circle) in it and a Label, and add() a component to the GraphPanel on every drop?
    The next thing is to be able to draw an edge among two nodes. How the edge should be implemented?
    Thanks in advance (again).
    Edited by: 831144 on 11-Feb-2011 08:41
    Edited by: 831144 on 11-Feb-2011 08:42

  • In Need of some advices

    Hi
    I've got to build a small mailing module in an application which sends simple emails with attachements but I never used emails in Java.
    I've looked around and found the org.apache.commons.email package. Unfortunately I could not find articles on it. I just want to know if it's good, stable and relatively bug free.
    Also I would like to know if it is going to be a lot easier and faster to develop with this library VS using directly the javax.mail package.
    Thanks

    I've got to build a small mailing module in an
    application which sends simple emails with
    attachements but I never used emails in Java.
    I've looked around and found the
    org.apache.commons.email package. Unfortunately I
    could not find articles on it. I just want to know if
    it's good, stable and relatively bug free.Probably. Apache Commons stuff has a good reputation but I don't know anything about this particular package.
    Also I would like to know if it is going to be a lot
    easier and faster to develop with this library VS
    using directly the javax.mail package.Probably. They have done a lot of the work that you would have to do. The only hitch would come if you needed some mail feature that they don't support. But if you did, it still might be easier to fix their code than to write your own code from scratch.

  • In need of some advice - Trying to publish my first iOS app

    Hi there!
    I've been looking just about everywhere for this error, and it does seem like a lot of people have encountered the same problem. However, i cannot find the answer anywhere.
    When i click "publish", I'm getting this error message: " iOS publishing requires files which are not installed. Please quit Flash Professional and run the original installer to ensure that all optional components are installed"
    Now, after my 5th reinstall I cannot figure out which files these would be. From what i know, I've selected all the optional files that i can see during installation.
    So if anyone out there knows how to solve this, your reply would be more than greatly appreciated!
    - TJ

    Hi there!
    I've been looking just about everywhere for this error, and it does seem like a lot of people have encountered the same problem. However, i cannot find the answer anywhere.
    When i click "publish", I'm getting this error message: " iOS publishing requires files which are not installed. Please quit Flash Professional and run the original installer to ensure that all optional components are installed"
    Now, after my 5th reinstall I cannot figure out which files these would be. From what i know, I've selected all the optional files that i can see during installation.
    So if anyone out there knows how to solve this, your reply would be more than greatly appreciated!
    - TJ

  • Need some advice on how to approach a problem

    Hi,
    I have a Jpanel, in which i use paintComponent() to draw a lot of things....
    I pretty much have a large grid...and within this grid, i have lines, which are connected by points....The lines are moved around by dragging the points.
    To check if a point is grabbed....i just get the x,y coordinates from the mouse listener....loop through my list of points, and check if the x,y coordinates of the mouse click fall within a rectangle of the point....this is pretty simple...especially since the points are rather small...
    I now have to figure out a way to enable a right click popup menu to appear if the user right click on top of a line (give or take a few pixels)....now I could take the approach mentioned above...and loop through all the lines....but i would not be able to do 1 check per line...since the lines can be long/short, and take any angle...thus its not as simple to just check a specific area around the whole line (because this area might turn out to be too large)....
    so what i was thinking is to create my own component, which would draw a line, and have its own mouse listeners...and the popup menu would only occur if the mouse listener for the component went off....
    im not so sure of this idea...thats why i am posting to this forum....any and add advice is greatly appreciated!
    thanks!

    thanks for your help...i read the distance formula...and i tried to implement it...but i couldn't get it working....I think i am confused as to what the distance formula is returning...here is my math:
    we have a line between points: (105,239) & (153,239)...this is a straight line across the x - axis....and i click on a point: (140,230)
    first thing i need to do is convert these points into Ax + By + C = 0....so:
    y = (A/B)x + C
    A = (y1-y2); ==> 0
    B = (x1-x2); ==> -48
    C = C*B; ==> 239 * -48 => -11,472
    now we have our equation Ax + By + C = 0 ==> 0x - 48y - 11,472 = 0;
    the distance formula states: abs(Ar + Bs + C)/sqrt(A^2 + B^2)....using r=140, and s = 230...we get:
    abs(0 - 48*230 - 11,472) / sqrt(48^2) ==> approximately 469....
    now this doesn't make sense....since the point is actually only 9 pixels away from the line (in the Y direction)....
    thanks for your help!

  • Business Delegate pattern - need some advice

    Hi. First let me apologize for the long post. I could see no other way. I�m building a system that quite large and I need some advice. The system is a type of transaction system, let�s suppose a shopping cart. I�m using struts taglibs and tiles for presentation, struts proper for controller, and POJOs for business logic. Also I�m using OJB for my data tier.
    Now I�ve been reading Pro Jakarta Struts (Apress), which BTW is a recommended read to anyone with novice experience in struts and related technologies. I�ve assimilated most of the techniques and patterns described in the book, and most of them make sense to me. However, I�ve hit a snag while reading the Business Delegate and Service Locator patterns.
    The way I had though of building my application before reading the book, was to have a wrapper class, such as the following:
    public class ShoppingCart {
      private IAuthenticationService authenticationService;
      private ITransactionService transactionService;
      public ShoppingCart() {
         authenticationService = new DBAuthenticationService();
         authenticationService = new DBTransactionService();
      public login(String username, String password) {
         String sessionToken = authenticationService.logon(username, password);
         return sessionToken;
      private boolean isValidUser(sessionToken) {
         bolean validUser =  authenticationService.isValidUser(sessionToken);
         return validUser;
      public performTransaction(sessionToken, TransactionVO) {
         if (!isValidUser(sessionToken) {
              throw new AuthenticationException();
         transcationService.performTransaction(TransactionVO);
      public editPreferences(sessionToken, PreferencesVO) {
         if (!isValidUser(sessionToken) {
              throw new AuthenticationException();
         authenticationService.performTransaction(PreferencesVO);
    }My idea was that my wrapper class would isolate all the business logic and could perform login service in case my application was ever to be used with other presentation layer than struts (standalone client, web services). However I believe that this overlaps the Business Delegate pattern and maybe even totally implements it. The way I understand the code I�m reading in the book, they suggest having a BD for each major service such as AuthenticationServiceBD, TransactionServiceBD, etc� However this would break my single point of entry for authenticating users. I really need some advice on my design and how it fits with the BD and SL patterns (or others). I would also like to know what you think/recommend of my authentication strategy.
    thanks in advance
    Raphael

    Thanks for your reply. This however, I understood. My concern is regarding my application in regards to business delegate pattern. You see I have this class (simplified for clarity):
    public class ShoppingCart {
       private ILoginService ls = new DBLoginService();
       private ITransactionService ts = new DBTransService();
       // and so on for all services I offer.
       //  then I mirror all the calls of my private interfaces
       //  and pass them through internally
       public String sessionToken login(String username, String password) {
            ls.login(username, password);
       public boolean addToCart(sessionToken, itemNo) {
            // check session
            ts.addToCart(sessionToken, itemNo);
       //  and so on
    }Multiple questions for this one:
    1) Am I not already implementing the Business Delegate pattern with my ShoppingCart class since all interfaces are private and all calls are mirrored from the wrapper class (ShoppingCart) to the private interfaces? All services are implemented as POJOs and I am not using JNDI at the present so I don't use the ServiceLocator pattern.
    2) I store a reference to the wrapper class (ShoppingCart) in the ServletContext so I can grab it from my Action classes. What do you think of this approach?
    3) How many BDs should an application contain. In my case I use just one. What is the advantage of using more?
    4) I create my own session tokens in case I ever want to use to business code in a non-web applications where sessions are not available readily. This brings about the problem that I can't pass the interfaces directly to the Action classes because the login session needs to be checked before any calls to services. So all methods include a sessionToken parameter which I use to check the session. This way, if I want to expose some of the services through web services, I can still use a login. What do you think of this approach.
    5) Any other remarks are very welcome...
    I really need help with this from an experienced programmer. Most things I can handle on my own but with this type of design issue, books just don't cut it. I need experience. I would really apreciate some feedback.
    Raphael
    ps: I would give all my Duke dollars for this (I only have 30), but I'm not sure how. If you want them I can create a dummy question and give them to you.

  • Having some serious issues with my iPhone and need some advice

    I'm going to these two issues which have been occuring with me for the past weeks-
    1.) I am facing a problem with my iPhone 5's lightning port or the cable. This started happening all of a sudden; one second my phone is charging, and the other it is not. Even if it is slightly moved from its position, it would stop charging, and further shaking starts it again, so on and so forth. At first I thought the issue might be with my cable, so I asked my friend to bring his lightning cable to my house so we could test that. It happened again- one shake the phone will charge, another shake stops it. (Note that any kind of movement does this, not only shaking) I'm a bit skeptical about his (my friend's) cable too, though- it shows NOT CHARGING on his iPad while it is in fact actually charging. His cable is only 3-4 weeks old though, so this confuses me even more. I think the issue might be with my port, but as of now I cannot draw a valid conclusion to my problem.
    2.) The second problem is that I've noticed my battery drains a **** lot faster now- ever since the first issue started. I manage to get my phone charging by placing it very carefully on the table and it charges overnight. However, when I pick it up in the morning, and read some news, it drains from 100% to 99% in ~60 seconds. This never happened before. Before this, it used to be at 100% for at least 10-15 minutes (might be even more). If I reboot my phone, it shows 100% again, but it still drains a lot faster now. I know because I've been using this phone for the past 4 months now, and I know when it drains and when it does nots
    Please, help! I need some advice as to how I should approach this problem. My phone is in the warranty period, however, I would like to have an expert's opinion first.

    Hello,
    First: I've experienced the same problem with my iPhone 5. I've bought a new charger and it still did the same thing. I went to the Apple Store to get my iPhone checked out and they said that the pins inside my iPhone we're damaged, and I had to get a replacement.
    ~ Josh

  • Need some advice on a new build for CS5 Web Premium

    I am looking for a powerful PC that I can use mostly for work and some  light video work.  I have been looking at several systems, but I can't  decide if I should get the Core i7 875K, 950 or AMD 1090T for my needs.   I typically have many Adobe CS5 applications open at once like  Photoshop, Dreamweaver, Illustrator and Flash, iTunes, Quickbooks,  Microsoft Work and Excel. I would ideally like to buy a pre-built rig,  but I can surely put together if better.  Below are a few I have been  looking at, but I am unsure about cooling on one of them and about the  875K processor on the other one.  I figured a gaming PC would be fast  and powerful as my needs are behond a standard base config.  I would  like some advice also on a good video card.  Been looking at crossfire  ATI HD 5770, single ATI HD 5870, Radeon 6870, and GeForce GTX 470 and SLI GTX 460. I am not a typical overclocker, but I  can be if it will help performance running apps.  I leave my PC on all  day and night so cooling is a factor.
    Thanks in advance everyone for the advice on this.
    ==========================================
    Approximate Purchase Date: (the closer the better) 
    Budget Range: ($1000-$1500) 
    System Usage from Most to Least Important: (Web Development, Graphic Design, Internet, Movies)) 
    Parts Not Required: (keyboard, mouse, monitor, speakers) 
    Preferred Website(s) for Parts: (newegg.com) 
    Country of Origin: (USA) 
    Parts Preferences: by brand or type (I would like to use an Intel  Core i7 or AMD X6 CPU to power dual Big 27" Samsung LCDs via DVI and  full or mid tower case) 
    Overclocking: Maybe 
    SLI or Crossfire: Maybe 
    Monitor Resolution: (1920x1080 each monitor)
    =========================================
    Here is my latest config.  How does this one look?
    Qty.
    Product Description
    Savings
    Total Price
    1
    COOLER MASTER HAF 932 RC-932-KKN1-GP Black Steel ATX Full Tower Computer Case Item #: N82E16811119160Return Policy: Standard Return Policy
    -$30.00 Instant
    $159.98$129.98
    1
    Western Digital Caviar Black WD1002FAEX 1TB 7200 RPM SATA 6.0Gb/s 3.5" Internal Hard Drive -Bare Drive Item #: N82E16822136533Return Policy: Standard Return Policy
    $89.99
    1
    EVGA 012-P3-1470-AR GeForce GTX 470 (Fermi) 1280MB 320-bit GDDR5 PCI Express 2.0 x16 HDCP Ready SLI Support Video Card Item #: N82E16814130550Return Policy: VGA Replacement Only Return Policy
    $259.99
    1
    Nvidia Free Mafia 2 Game Coupon Item #: N82E16800999247Return Policy: Standard Return Policy
    -$59.99 Saving
    $59.99$0.00
    1
    CORSAIR HX Series CMPSU-850HX 850W ATX12V 2.3 / EPS12V 2.91 80 PLUS SILVER Certified Modular Active PFC Power Supply Item #: N82E16817139011Return Policy: Standard Return Policy
    -$30.00 Instant
    $20.00 Mail-in Rebate Card17-139-011
    $189.99$159.99
    1
    G.SKILL Ripjaws Series 12GB (3 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL9T-12GBRL Item #: N82E16820231358Return Policy: Memory Standard Return Policy
    $269.99
    1
    LG Black 10X Blu-ray Burner - Bulk SATA WH10LS30 LightScribe Support - OEM Item #: N82E16827136181Return Policy: Standard Return Policy
    $109.99
    1
    Intel Core i7-950 Bloomfield 3.06GHz LGA 1366 130W Quad-Core Processor BX80601950 Item #: N82E16819115211Return Policy: CPU Replacement Only Return Policy
    ASUS Sabertooth X58 LGA 1366 Intel X58 SATA 6Gb/s USB 3.0 ATX Intel Motherboard Item #: N82E16813131665Return Policy: Standard Return Policy
    -$5.00 Instant
    -$14.99 Combo
    $499.98$479.99
    1
    Crucial RealSSD C300 CTFDDAC128MAG-1G1 2.5" 128GB SATA III MLC Internal Solid State Drive (SSD) Item #: N82E16820148348Return Policy: Limited Replacement Only Return Policy
    Microsoft Windows 7 Professional 64-bit 1-Pack for System Builders - OEM Item #: N82E16832116758Return Policy: Software Standard Return Policy
    -$10.00 Instant
    -$30.00 Combo
    $419.98$379.98
    Subtotal:
    $1,879.90
    Calculate ShippingZip Code:    13662   FedEx 3Day Express Saver -- $145.44FedEx 2Day -- $219.19FedEx Standard  Overnight -- $263.21UPS Guaranteed 3 Day Service -- $15.97UPS 2nd Day --  $127.74UPS Next Day Saver -- $135.95
    Shipping:
    $15.97
    Redeem Newegg Gift CardsCard Number:                                          Security Code:
    Apply Promo Code(s):BFMB           
    Click here to clear promotion code(s).
    Sorry, the promo code BFMB you've entered is invalid.
    Promo Code:
    $0.00
    No Interest if paid in full in up to 12 Months. Minimum purchase required.                
    Subject to credit approval. See Terms
    Grand Total:
    $1,895.87

    Here is the final config I am looking to get.  I am just debating the hard drive config and video cards.  I want to be sure my video card will use teh GPU Accelleration and Advance features of Photoshop CS5.  Do you know if the NVIDIA GTX 460 is compatable or should I spend more for the 470?  I will not be gaming much and this pc is used mostly for work on CS5 Web Premium.  How does this all look?  All prices from NewEgg. I have another machine I will backup sata to each evening, so I really want a fast drive for program load and operation and another drive for data.  What is best way to config drives?  Should I get 2 of them and an SSD?
    Qty.
    Product Description
    Savings
    Total Price
    1
    EVGA GeForce GTX 470 (Fermi) 012-P3-1470-AR Video Card
    Item #:N82E16814130550
    Return Policy: VGA Replacement Only Return Policy
    $259.99
    1
    Nvidia Free Mafia 2 Game Coupon
    Item #:N82E16800999247
    Return Policy: Standard Return Policy
    $59.99
    1
    COOLER MASTER HAF 932 RC-932-KKN1-GP Black Computer Case With Side Panel Window
    Item #:N82E16811119160
    Return Policy: Standard Return Policy
    -$30.00 Instant
    $159.98
    $129.98
    1
    G.SKILL Ripjaws Series 12GB (3 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory
    Item #:N82E16820231358
    Return Policy: Memory Standard Return Policy
    $269.99
    1
    LG Black 10X Blu-ray Burner - Bulk SATA WH10LS30 LightScribe Support
    Item #:N82E16827136181
    Return Policy: Standard Return Policy
    $109.99
    1
    CORSAIR HX Series CMPSU-850HX 850W Power Supply
    Item #:N82E16817139011
    Return Policy: Standard Return Policy
    -$30.00 Instant
    $20.00 Mail-in Rebate Card
    $189.99
    $159.99
    1
    Western Digital Caviar Black 1TB 3.5" SATA 6.0Gb/s Internal Hard Drive -Bare Drive
    Item #:N82E16822136533
    Return Policy: Standard Return Policy
    $89.99
    1
    ASUS Sabertooth X58 ATX Intel Motherboard
    Item #: N82E16813131665
    Return Policy: Standard Return Policy
    Intel Core i7-950 3.06GHz LGA 1366 130W Quad-Core Processor
    Item #: N82E16819115211
    Return Policy: CPU Replacement Only Return Policy
    -$5.00 Instant
    -$14.99 Combo
    $499.98
    $479.99
    1
    Microsoft Windows 7 Professional 64-bit 1-Pack for System Builders
    Item #: N82E16832116758
    Return Policy: Software Standard Return Policy
    Crucial RealSSD C300 CTFDDAC128MAG-1G1 2.5" MLC Internal Solid State Drive (SSD)
    Item #: N82E16820148348
    Return Policy: Limited Replacement Only Return Policy
    -$10.00 Instant
    -$30.00 Combo
    $419.98
    $379.98
    Grand Total:
    $1,879.90

  • Need some advices with OBIEE

    Hi guys,
    At the moment I am doing an internship somewhere, and I am supposed to visualise some data from an Oracle database into a Google Map.
    The data should be fake, because the application will be a showcase.
    I need some start-up hints, because actually I don't know where to start and with which programs.
    First of all a little background.
    The following programs are installed on my laptop:
    - Oracle DB (1013)
    - Oracle Example Schemas
    - Oracle WebLogic (103)
    - Oracle BI enterprise (101340)
    - JDeveloper
    This is what I want:
    - Create a database or schema with fake data. The fake data should consist of addresses. (for the Google Map)
    - The combination with BI enterprise is a requirement, part of the internship programme.
    - Combination with Google map functionality.
    Maybe someone can give me some advices in how to begin. Which techniques I should use or some useful tutorials.
    I would really appreciate if someone can give me a heads up!

    The [Oracle by Example|http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/index.html] website has many good step by step tutorials on OBIEE so that would be a good start. Having said OBIEE doesn't support "heat maps" or overlaying data on maps out of the box. They are some 3rd party tools out there but I don't think you want to go there. From my point of view anyone asking you to use OBIEE to overlay data on Google Maps doesn't know what OBIEE should be used for (and probably doesn't know Google Maps either).

  • Need some advice on this big project

    Hello there!
    Let me introduce myself. My name is Wisse and I have been working with Adobe products since I was a child at the age of 8 (10 years ago). Well, then it was called Macromedia Flash but you understand what I mean.
    I have always been using flash for making animations and small simple applications (for presentations and games) in my spare time. I also use photoshop and dreamweaver for making sites and other things. So I will soon order the new CS5 web design collection.
    I have a big (biggest so far) project coming up and before I really started I thought it'd be best to orient on what Flash application(s) to use and how I will make this project. So here is the plan:
    I am making a dutch driving exam site where people can take practice exams for a small text message fee. The application will have to look slick and work smoothly. I made this to clarify what the application has to do.
    I have never worked with Flash Builder and Catalyst but I kind of like the idea of making nice looking interfaces using Catalyst and then export them to Flash Builder. But as I just said, I have never worked with Flash builder and so I don't know whether  I will be able to make this on Flash Builder (due to it's complexity). Flash builder also has some nice options for accessing external data (the XML, HTTP API and PHP in this case). Catalyst's data list designer and transition animator will save a lot of time and effort when compared to doing it manually in Flash Pro. The big issue here is that I have no idea how to script the rest in Flash builder. the 5 day course might help, but I want to make to be sure that Builder is the best way to go before doing so.
    But on the other hand, I am quite familiar with flash and that could also save time. Flash is a bit harder to use when I want to make a good UI and Flash builder wins when you look at the server communication and the debugging tools.
    So I would like some advice from some fellow Adobe users. What would you do? What would be the best way for me to go, according to you?
    Thanks in advance,
    Wisse Jelgersma.

    Just to elaborate,
    The shape and look of the outside of a car is defined by A) its colour and B) the reflections of the light sources on its surface.
    It's relatively easy to change the colour of the shell of the turtle, but making it look reflective is much harder (I didn't do a very good job myself), especially if you also want to keep the textures of the shell somewhat intact.
    To light the shell you need to consider what the light sources are that are hitting the shell when it is outside. Reflections of the sky and clouds should be brighter, reflections of the ground should be darker.
    In my attempt, I overlaid a landscape picture, warped to roughly follow the shape of the car, then played around with blend modes and opacity and colouration to achieve the above effect. (Although the "specular" highlights could stand to be brought up a bit more). In practice, making this look realistic is probably beyond my skill set.
    Then I added the lightning bolt and wheels for fun.
    Mike

  • I need some advice...

    Hi, I'm not quite sure where this topic should go exactly as it isn't about a specific topic. So plz fogive me if it's wrongly placed in your opinion.
    Anyway, I've been a long time fan of Linux and I don't want to have to stop using it. I've just recently converted my whole computer to a linuxbox only system, as I was running winxp(uke) before and couldn't stand it. It would lag during simple tasks like going from one directory to another and for no apparent reason, which aided me in my conversion. Enough about winblows, I don't need to tell you guys why it sucks, we all have our reasons. But there is just one thing bothering me now... and that is gaming. I am a huge fan of gaming and have been doing so for quite some time now (years) and well... gaming on linux hasn't been too pleasant for obvious reasons.
    1) the games I play except for quake3 are written and made to run solely on a winblows workstation.
    2) Wine and Winex3 have limited, but growing support for a range of games.
    3) Lastly the main game I would like to play (Steam CS 1.6) doesn't like to run on linux due to its constant updates, which throws WInex3 out of wack. Where it could have been working the day before but due to the update it no longer runs.
    I'm thinking of just making a partition for winxp(uke) so that I can game, but this isn't something I'm totally willing to do.
    Basically I need some advice and/or suggestions that anyone is willing to share with me.
    Thank you in advance.
    BTW: I'm not new to linux, I've been using it for almost 2 years now and have tried ALL of the distro's you can think of. (Arch is my distro of choice at the moment, along with slackware.)

    Enemy Territory is an excellent game, and it is totally free.
    I haven't played the free game from the US Army, but heard it is really good, and is totally free.
    I bought Return to Castle Wolfenstein, which plays perfectly in Single player mode, but I have some trouble in multiplayer mode (and I'm not an expert either).
    I bought Unreal Tournament 2004, which plays perfectly in both single player and online, but I simply suck at the game.
    I bought Never Winter Nights because I know the company has a linux version you can download once you have a registered copy.  I havent installed it yet, though, been playing UT2004.
    Doom3 is supposedly going to have a linux installer on the CD's, like UT2004 does.
    Anygame that uses OpenGL graphics instead of DirectX will prolly run under WINE or WINEX, or be easy for the original company to port (if they choose to).
    There are some "up and coming" linux only OpenGL games, light flightgear (a flight simulator), and a couple of 'massive online games".
    Betweet RTCW, EnemyT, Never Winter Nights, UT2004, and soon Doom3 - I have enough games to play, and thats without buying winex.
    Fergettabout Windows! You simply don't need it anymore.
    If you are determined to run Windows, get a removeable drive bay, and just swap boot drives when you want to swtich.  Or use GRUB if you want to select from multiple OS's.
    thx

  • I need some advice about the macbook pro and iPhone 5. I took a video on my iPhone and tried to email it it said it was too big to send? So i downloaded it to my macbook pro and tried to mail it to no avail? The macbook tells me the server won't let it th

    I need some advice about the macbook pro and iPhone 5.
    I took a video on my iPhone and tried to email it it said it was too big to send? So i downloaded it to my macbook pro and tried to mail it to no avail? The macbook tells me the server won't let it through other mail goes through any ideas how to resize it or what it might take to send it?

    I agree with LowLister, the best option for you to share the video online is to upload it to your online storage account for example : Box, Dropbox, SkyDrive (All of them provide free storage beginning from 2GB).
    You can upload the files which you want to share in this online storage and then they have sharing options in which you'll will get the link of the file to be sent and send the email. You're good to go!
    Tip : You can store multiple files for backup purposes.

  • When I burn a disc from a playlist in iTunes, the track names and artist info does not display on the disc when friends view/listen to it. This probably is an easy fix, but I need some advice.

    When I burn a disc from a playlist in iTunes on my MacBook, the track names and artist info does not display on the disc when friends view/listen to it. This probably is an easy fix, but I need some advice.

    No, this standard has been implemented for several decades.
    How iTunes remembers audio CDs - http://support.apple.com/kb/TA27785
    It is just conceivable you burned a CD that exactly matched one already in the Gracenote database.  Gracenote uses track count and duration to decide what CD it is you have in a computer.  If you have one that matches that it will label it.  You could conceivably even have one that matches it that is not the correct one.
    This script will only work on Macs:
    http://dougscripts.com/itunes/scripts/ss.php?sp=cdtexttocdinfo - script to use CD-text file on CD to label CD in iTunes

  • I need some advices...

    Hi,
    I develop a search-engine, and now I must develop a database that can upgrade itself(some kind of spider?). I don't know how to do that. I don't need a program-source, just some advices. Can you help me?
    Thank you in advance,
    Catalin

    That sounds quite complicated. Anyhow, I would first have a look at the following classes:
    java.net.URL
    java.net.URLConnection
    javax.swing.text.html.parser.Parser
    javax.swing.text.html.parser.DocumentParser

  • Dell Live! Value Soundblater card!!!! Need some advice

    I have an old 400 that has this card installed model #CT4780. I have purchased a new Dell E30 and want to install this card in it. I have downloaded the driver pack <FONT face=Verdana color=#ff0000 size=3>Li'veDrvUni-Pack(ENG).exe. This<FONT face=Verdana color=#ff0000 size=3> was<FONT face=Verdana color=#ff0000 size=3> listed<FONT face=Verdana color=#ff0000 size=3> on<FONT face=Verdana color=#ff0000 size=3> the<FONT face=Verdana color=#ff0000 size=3> website<FONT face=Verdana color=#ff0000 size=3> as<FONT face=Verdana color=#ff0000 size=3><FONT face=Verdana color=#ff0000 size=3> the<FONT face=Verdana color=#ff0000 size=3> correct<FONT face=Verdana color=#ff0000 size=3> one<FONT face=Verdana color=#ff0000 size=3> for<FONT face=Verdana color=#ff0000 size=3> XP.<FONT face=Verdana color=#ff0000 size=3> I notice that in the old computer there is a cable from the card to the CD-Rom and also one from the card to the modem. Are these cables need in the new computer? Also will I have a conflict with the integrated sound card that came with the new computer? I have not done anything expect download the driver pack.
    I know some about computers but do not like to install boards and new computers fearing some thing will go wrong. I need some advice and the procedure before I preceded. Any help would be greatly appreciated. Thanks

    Newer operating systems, computers, & audio cards do not require the use of the cable from the CD Rom to the soundcard. It is now handled via the IDE cable. Being that you only upgraded half of this equation (that being the computer and not the soundcard), this may be a "trial & error" situation. I do not have the experience with modem cards to comment on that one.
    Finally, you will need to disable the onboard soundcard via the motherboard's Bios. Look in the MB's manual to perform this action.
    Message Edited by johnston2 on 0-25-2006 06:49 PM

Maybe you are looking for


HashFlare