Jump to content

RobertVanGilder

Member
  • Posts

    241
  • Joined

  • Last visited

Awards

This user doesn't have any awards

2 Followers

About RobertVanGilder

  • Birthday September 4

Contact Methods

  • Steam
    gmyt72
  • Twitter
    twitter.com/RobertVGilder

Profile Information

  • Gender
    Male
  • Location
    Austin, TX
  • Interests
    Network Security Testing
    Software Engineering
    Water-Cooling
    Guitar
    Country Music
  • Biography
    Processor: AMD Phenom II X6 1055T
    Motherboard: Gigabyte GA-890XA-UD3
    GPU = Club3d 7970
    Memory: Corsair Vengeance 16gb 1600MHz
    Storage: 2 WD Green 1TB, 1 WD CB 640GB
    Cooling: 360mm Rad cooling GPU and CPU
    Case: CoolerMaster Cosmos 1000 (Moded)
    Power Supply: AZZA PSAZ-850B14 Dynamo 850W Power Supply
  • Occupation
    Network Engineer
  • Member title
    Member

System

  • CPU
    AMD Phenom II X6 1055T
  • Motherboard
    Gigabyte GA-890XA-UD3
  • RAM
    Corsair Vengeance 16gb
  • GPU
    Club3d 7970 w/Accelero Xtreme
  • Case
    CoolerMaster Cosmos 1000 (Modded)
  • Storage
    3 WD Green 1TB, 1 WD Black 640GB
  • PSU
    AZZA PSAZ-850B14 Dynamo 850W
  • Cooling
    360mm Rad cooling CPU, Dual Res
  • Keyboard
    CM Storm Cherry MX Blue
  • Mouse
    Microsoft Sidewinder (Original)
  • Sound
    Logitech 5.1

Recent Profile Visitors

987 profile views
  1. I do like the beer part And yeah its true; building an app is the best way to learn. I am developing a simple "flappy bird" app at the moment!
  2. Hey guys, I wanted to know which is the best way to learn objective C. I have an account on Lynda.com for objective C tutorials and a book called Cocoa Touch Programming in 24 hours. Which is better/quicker? Thanks
  3. Hey guys, I've been searching for a good iOS Tutorial, but most of them aren't really complete. I'm trying to find someone who creates a complicated app from scratch. I know how to code in Java and C++, but I don't want to read a book on Objective-C. I just want to find the quickest way of creating an iOS App Thanks folks
  4. Hey guys; whenever I run this program: package minesweeper;public class MineSweeper { public static void main(String[] args) { int M = Integer.parseInt(args[0]); int N = Integer.parseInt(args[1]); double p = Double.parseDouble(args[2]); boolean[][] bombs = new boolean[M+2][N+2]; for (int i = 1; i <= M; i++) for (int j = 1; j <= N; j++) bombs[i][j] = (Math.random() < p); for (int i = 1; i <= M; i++) { for (int j = 1; j <= N; j++) if (bombs[i][j]) System.out.print("x "); else System.out.print(". "); System.out.println(); } int[][] sol = new int[M+2][N+2]; for (int i = 1; i <= M; i++) for (int j = 1; j <= N; j++) for (int ii = i - 1; ii <= i + 1; ii++) for (int jj = j - 1; jj <= j + 1; jj++) if (bombs[ii][jj]) sol[i][j]++; System.out.println(); for (int i = 1; i <= M; i++) { for (int j = 1; j <= N; j++) if (bombs[i][j]) System.out.print("x "); else System.out.print(sol[i][j] + " "); System.out.println(); } }} I get the error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at minesweeper.MineSweeper.main(MineSweeper.java:6) Does anyone know what the issue might be?
  5. hahaha, yes, my cpu is a bit old but at 4.0Ghz it's very fast and I don't need that much CPU power for what I do..Mainly gaming, programming and maintaining vm's and systems... The color of the mobo is also a bit ugly since it's blue, but since I have blue uv flluid and UV lights as well as white leds, it won't be as noticeable. But a cpu and mobo is my next upgrade!
  6. Cooler Master Cosmos Build Log Hi y’all, I’ve been using a CM Cosmos 1000 case for my main gaming rig which has been modded a lot. I actually have a build log in the forum. It’s called “COSMOS Build".http://linustechtips.com/main/topic/19172-cosmos-build/ But I'm updating all the liquid cooling, the case, installing an ssd, and watercooling my 7970. Hardware CPU: AMD Phenom II X6 1100T @4.0Ghz Motherboard: Gigabyte GA-890XA-UD3 Graphics Card: ATI Sapphire Radeon 7970 Memory: Corsair Vengeance 16gb 1600MHz Storage: WD Green 1TB x3, WD Black 650GB x1, ADATA 256GB SSD x1 Case: Corsair Carbide Air 540 Power Supply: AZZA PSAZ-850B14 Dynamo 850W Power Supply Cooling Radiators: Alphacool ST30 360 , Black Ice GT Stealth 240 XFlow GPU Block: EKWB EK-FC7970 CSQ Reservoir/Pump: Phobya 250mm Reservoir, XSPC 750 Res/Pump CPU Block: EKWB EK-Supreme LTX AMD CSQ Fans: Bitfenix Spectre Pro (Modded) 120mm, Bitfenix Spectre Blue led 120mm Tubing: Primochill Primoflex (1/2'' OD, 3/8'' ID) Lighting: Lamptron Flexlight LED's (White), Sharkoon UV Cold Cathods Fan Hub: NZXT Grid Here's the shot of my rig/desk atm... Updates coming soon....
  7. Awesome man, thanks so much! You fixed the entire code!
  8. Thanks so much for your help pal, reply whenever you want I fixed the static error and now I think I know what the teacher wants me to do here: Basically he wants to add to the String item a value from the array String items, but it doesn't recognize it... Also the for loop at the end doesn't recognize the two arrays..That's the error: Prices cannot be resolved to a variable String[] items = {"pencil","pen","sharpie","notebook A","notebook B", "eraser","tippex","usb stick","glue","tape" }; double[] prices = {0.75 , 1.50 , 1.20 , 1.90 , 2.50 , 0.50 , 1.75 , 5.00 , 1.25 , 2.00 };{ String item = ""; do { public static float getPrice(String item) // search for name, return price{ // the price is not case-sensitive for(int x=0; x < prices.length; x = x+1) { if(items[x].equalsIgnoreCase(item)) // not cases-sensitive { return prices[x]; } } return 0.00;}
  9. Ok, so I've modified it a bit, but I still get a bunch of errors. Here is the source code: /**************************************************Kim works in the school bookstore, selling pens, notebooks, etc.They have prices written in a notebook. When prices change they must cross out old prices - that's messy. They wanta computer program that stores and displays prices.Item names and prices are stored in PARALLEL ARRAYS.***************************************************//**************************************************Download the program and run it. Check that it works correctly.Add 5 more items, with names in the items array and prices in the prices array.Add a method that prints the NAMES of all the items that cost less than 2.00 .Change the program so that it inputs the name of the item to be sold,as well as the quantity to be sold - e.g. "pencil" , 3 -and then it finds the price and calculates the total cost, multiplying the price times the quantity.Add another array called inventory, containing the number of items currently in stock.If the quantity to be sold is larger than the number in the inventory array,the program should notify the user that there are not enough of the item in inventory.Write a method called totalValue. This loops through the entire list, multiplying the pricetimes the inventory number for each item, and adding up all these calculations. At the end, that is value of all the items in stock.***************************************************/package ArraysTest;import java.util.*;import javax.swing.JOptionPane;public class arraystest{ public static void Main(String[] args){ String[] items = {"pencil","pen","sharpie","notebook A","notebook B", "eraser","tippex","usb stick","glue","tape" }; double[] prices = {0.75 , 1.50 , 1.20 , 1.90 , 2.50 , 0.50 , 1.75 , 5.00 , 1.25 , 2.00 };{ String item = ""; do { item = input("Type the name of an item"); float price = getPrice(item); if(price > 0) { System.out.println(item + " = " + price); } else { System.out.println(item + " was not found"); } } while(item.length() > 0); // type nothing to quit }}public static float getPrice(String name) // search for name, return price{ // the price is not case-sensitive for(int x=0; x < prices.length; x = x+1) { if(items[x].equalsIgnoreCase(name)) // not cases-sensitive { return prices[x]; } } return 0.00;} public static String input(String prompt){ return javax.swing.JOptionPane.showInputDialog(null,prompt); }} and I get "prices variable can't be resolved on this element: public static float getPrice(String name) // search for name, return price{ // the price is not case-sensitive for(int x=0; x < prices.length; x = x+1) { if(items[x].equalsIgnoreCase(name)) // not cases-sensitive { return prices[x]; } } return 0.00;} Thanks for your help
  10. lol, yeah, I'm kinda new, and this is a source code that's given to me by my teacher so I can modify it and add Parallel arrays. Here's the whole exercise Bookstore - Items and Prices in Parallel Arrays /**************************************************Kim works in the school bookstore, selling pens, notebooks, etc.They have prices written in a notebook. When prices changethey must cross out old prices - that's messy. They wanta computer program that stores and displays prices.Item names and prices are stored in PARALLEL ARRAYS.***************************************************/ String[] items = {"pencil","pen","sharpie","notebook A","notebook B", "eraser","tippex","usb stick","glue","tape" }; float[] prices = { 0.75 , 1.50 , 1.20 , 1.90 , 2.50 , 0.50 , 1.75 , 5.00 , 1.25 , 2.00 }; void setup(){ String name = ""; do { name = input("Type the name of an item"); float price = getPrice(name); if(price > 0) { output(name + " = " + price); } else { output(name + " was not found"); } } while(name.length() > 0); // type nothing to quit} float getPrice(String name) // search for name, return price{ // the price is not case-sensitive for(int x=0; x < prices.length; x = x+1) { if(items[x].equalsIgnoreCase(name)) // not cases-sensitive { return prices[x]; } } return 0.00;} public String input(String prompt){ return javax.swing.JOptionPane.showInputDialog(null,prompt); } public void output(String message){ javax.swing.JOptionPane.showMessageDialog(null,message); }Parallel ArraysAn Array can only contain one type of data - a list of int values, or a list of float values, or a list of Strings.It is NOT POSSIBLE to store both Strings and float values in a single array. So if we wish to storethe names and the prices of various items, we need two lists, not just one. In this example, we havethe items array for storing the names of items (Strings) and the prices array for storing the prices of the items.It's important that the names and prices are "parallel", so if a name is in position 10, then the correspondingprice is also in position 10 - like this:positionITEMSPRICES0pencil0.751pen1.502sharpie1.20The items and prices arrays are called parallel arrays. If we need to store more information, for examplethe stock level (inventory number) of each item, we can create a third array - say inventory.This enables a Java program to store data in a similar fashion to a spreadsheet table.Programming PracticeDownload the program and run it. Check that it works correctly.Add 5 more items, with names in the items array and prices in the prices array.Add a method that prints the NAMES of all the items that cost less than 2.00 .Change the program so that it inputs the name of the item to be sold,as well as the quantity to be sold - e.g. "pencil" , 3 -and then it finds the price and calculates the total cost, multiplying the price times the quantity.Add another array called inventory, containing the number of items currently in stock.If the quantity to be sold is larger than the number in the inventory array,the program should notify the user that there are not enough of the item in inventory.Write a method called totalValue. This loops through the entire list, multiplying the pricetimes the inventory number for each item, and adding up all these calculations. At the end, that is value of all the items in stock.
  11. Hey guys, I'm getting the error "ClassHeader expected instead" on the first float statement. Does anyone know why this is happening? Here's the code package ArraysTest;String[] items = {"pencil","pen","sharpie","notebook A","notebook B", "eraser","tippex","usb stick","glue","tape" }; float[] prices = { 0.75 , 1.50 , 1.20 , 1.90 , 2.50 , 0.50 , 1.75 , 5.00 , 1.25 , 2.00 ; }{{ String name = ""; do { name = input("Type the name of an item"); float price = getPrice(name); if(price > 0) { output(name + " = " + price); } else { output(name + " was not found"); } } while(name.length() > 0); // type nothing to quit }float getPrice(String name) // search for name, return price{ // the price is not case-sensitive for(int x=0; x < prices.length; x = x+1) { if(items[x].equalsIgnoreCase(name)) // not cases-sensitive { return prices[x]; } } return 0.00;} public String input(String prompt){ return javax.swing.JOptionPane.showInputDialog(null,prompt); }public void output(String message){ javax.swing.JOptionPane.showMessageDialog(null,message); }}
  12. Ok, so I tried it a couple of times, and when I ran it off the bat file, my secondary GPU crashed (random), and when I input the data on cgminer it says "cgminer has stopped working".... I think I know how to fix it though. So when I do fix it, how much improvement do you reckon that I will get? Do you think that an investment on another 7970 (or 280x) is worth the money? Thanks, your info has been extremely helpful!
×