Change Photo
Jed Cartwright

Questions by Jed Cartwright

Class variable: public access read-only, but private access r/w?

In my current project I have a class which stores its Instance in a variable. This Instance should be accesible by a...

IndexError: index 2 is out of bounds for axis 0 with size 2?

Im trying to solve 3 differential equations,but I keep getting the following error: This is my code: import numpy ...

Changing color scheme of console output in mRemoteNG?

I use mRemoteNG to handle all my remote connections to servers. The only negative point I have run into is that the ...

Can I mask an input text in a bat file??

I am writing a batch file to execute some other programs. In this case I need to prompt for a password. Do I have an...

Counting Postive and Negative words in a file using dictionaries (Java)?

I'm trying to determine the number of occurrences positive and negative words in a file to calculate whether the fil...

'namespace' but is used like a 'type'?

This is my program the class uses it is called Time2 I have the reference added to TimeTest I keep getting the Error...

The ALTER TABLE statement conflicted with the FOREIGN KEY constraint?

I have a problem when trying to add a foreign key to my tblDomare table; what am I doing wrong here? CREATE TABLE t...

MySQLNonTransientConnectionException in JDBC program at run time?

I have a JDBC MySQL connection in Java. My program works fine for simple execution of query. If I run the same prog...

Inconsistent Accessibility: Parameter type is less accessible than method?

I'm trying to pass an object (a reference to the currently logged on user, basically) between two forms. At the mom...

Avoid trailing zeroes in printf()?

I keep stumbling on the format specifiers for the printf() family of functions. What I want is to be able to print ...

Displaying better error message than “No JSON object could be decoded”?

Python code to load data from some long complicated JSON file: with open(filename, "r") as f: data = json.loads(f...

Python: How can I generate a bar graph from 2D array?

I have a 2D array (3x3), and I want to generate a bar graph from each row vector that contains 3 bar charts like thi...

What does “Permission denied” “Id returned 1 exit status” mean??

I am taking a class on C, and I'm not very good at it , so I would like to ask you, how do I solve the problem: "Id ...

Searching in a sorted and rotated array?

While preparing for an interview I stumbled upon this interesting question: You've been given an array that is s...

Cause of Range Check Error (Delphi)?

Here's a condensed version of some code that causes both a Range check error and an overflow error, should I turn on...