No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm trying to setup the programming environment for Princeton's online course at this website: http://algs4.cs.princeton.edu/code/ However, when I try and run one of the programs I get the following error: /Users/dane/algs4/algs4-2/RandomSeq.java:45: cannot find symbol symbol : variable StdRandom location: class RandomSeq double x = StdRandom.uniform(); ^ /Users/dane/algs4/algs4-2/RandomSeq.java:46: cannot find symbol … |
|
I just got a new laptop that is running os x maverick. I opened the /etc/apache2/httpd.conf file and uncommented the # Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.conf and LoadModule php5_module libexec/apache2/libphp5.so lines, but I still can't run php files. Does anyone have any idea how I can run php files locally again? |
|
I took a UIL test this weekend, and I don't understand this problem: What is output by //2 in the code to the right? The answer is 540,280, but I'd like to know why. int ct1 = 0; int ct2 = 1; for(int i=0; i<1040;i++){ for(int j=i; j<0; j--){ ct1++; … |
|
I'm just trying to echo a string to the browswer with the following code: <!DOCTYPE html> <html> <body> <h1>Hello World!</h1> <?php echo "My first PHP script!"; ?> </body> </html> but it doesn't show up in the browswer. The "Hello world!" header shows up but not the php statement. I know … |
|
I'm trying to create a multiple choice quiz, and I need the content pane to scroll. If you run the program I've attached you'll see what I mean. Each question and the answers are place in a JPanel and the JPanels are place on the content pane. Thanks in advance … |
|
I once did a project in a class that connected to a mySQL database, but now I'm using the jGRASP ide on a mac and the class files won't compile properly. In the project we added the files: Connection.class, ResultSet.class, Sql.class, and Statement.class to the directory (assuming it's the middleware). … |
|
I have been walking through the tutorial "second ios app" on apple's developer website and I am getting a warning from the code that is implemented in the "Get the User's Input" section at the bottom of this link https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/CreatingAddView/CreatingAddView.html#//apple_ref/doc/uid/TP40011318-CH6-SW1 In the implementation of the done method there is the … |
|
I'm trying to do a quickSort with a Doubly LinkedList. I can partition the original list into a lower and upper sublist, but have been unsuccessful going any further. Below is the code for the class DoublyLinkedList. The methods that perform the quick sort are at the bottom (partition, recQuickSort, … |
|
I'm trying to alphabetize an array by comparing the characters at position 0 of two strings in an array, but I don't understand why when the if statement doesn't run my trail variable doesn't get incremented. //alphabetize array public class AlphaArray { public static void main(String[] args) { String[] yourChoiceItems … |
|
Could someone please give me an idea of why I get a nullPointerException when I run this method in my main program. Every list has a variable, first, to store the address of the first node of the list. I assign current1 to the first node of list1 as a … |
|
I have been trying to follow along with the tutorial on Apple's developer website: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html but cannot figure out why my project will not run. I have one warning: Incomplete implementation in the BirdSightingDataController.m file: #import "BirdSightingDataController.h" #import "BirdSighting.h" @interface BirdSightingDataController () - (void)initializeDefaultDataList; @end @implementation BirdSightingDataController @synthesize masterBirdSightingList = … |
|
For some reason when I try to run a program there are errors and iPhone simulator won't come up. It says: Interface Builder encountered an error communicating with the iPhone Simulator. Failed to determine the value for systemColors of UIColor. Command/Developer/usr/bin/ibtool failed with exit code 1 ... if anyone can … |
|
I just got a MacBook Air and I would like to download the Python programming language and an IDE like Pyscripter. Could someone suggest what to download and any threads on this site that I might want to read before getting started? |
|
Hi, I'm new to programming. I have been taking the course for beginners on MIT's OpenCourseWare website like a few others I have seen on this site. I just finished my undergraduate in secondary education and thought that programming would be a useful skill to teach adolescence. I have been … |
|
Could someone explain to me why this code will not print the 10th prime number? It says there is a syntax error on the fourth line (the x = range(3, math.sqrt(test_num)). It also says there is a syntax error on the sixth line (while prime_count < 10:). [code]import math test_num … |