Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 380
Search took 0.81 seconds.
Search: Posts Made By: Apothem
Forum: PHP 05-31-2012, 06:40 PM
Replies: 4
Views: 604
Posted By Apothem
Well, you can technically keep on doing the merge...

Well, you can technically keep on doing the merge in your while loop and then array_unique it at the end and print the unique list. I'm not sure if that's what you're searching for, though.
Forum: Java and JSP 03-31-2012, 05:50 AM
Replies: 0
Views: 477
Posted By Apothem
Is JSP a Java interpreted 'language'?

I'm just curious since I'm trying to use Google AppEngine and I can't really tell if anything was compiled into object code or not. Plus the fact that it has 'open and close' brackets for running...
Forum: Computer Programming 03-26-2012, 07:54 AM
Replies: 4
Views: 624
Posted By Apothem
Can you give more information than that? Do you...

Can you give more information than that? Do you mean you have two main() procedures and you want to merge them into one main(), such that the "first" main() will run and then the "second" main() runs...
Forum: Computer Programming 01-25-2012, 12:54 AM
Replies: 2
Views: 493
Posted By Apothem
What programming language are you using? ...

What programming language are you using?

Also, assuming what they are sending are unicode characters, you should look up informaton about how to store & retreive unicode characters for your...
Forum: Java and JSP 01-22-2012, 04:02 PM
Replies: 5
Views: 656
Posted By Apothem
You need one more or (||) in between that.

You need one more or (||) in between that.
Forum: Python 01-22-2012, 03:25 PM
Replies: 2
Views: 2,071
Posted By Apothem
I would think so, yes. 1. Code A is calling...

I would think so, yes.

1. Code A is calling len() a lot more. At worse, you're calling it 3 times. If the string is quite large, it'd be quite inefficient.
2. Code A has more conditions.
...
Forum: Java and JSP 01-22-2012, 03:21 PM
Replies: 5
Views: 656
Posted By Apothem
Did you look at the line? I believe it's...

Did you look at the line? I believe it's something related to:
.... || dataline.equalsIgnoreCase("o") dataline.equalsIgnoreCase("u"))
Forum: Computer Programming 01-22-2012, 03:17 PM
Replies: 4
Views: 620
Posted By Apothem
Yes. You can also do that in C++. But do note it...

Yes. You can also do that in C++. But do note it has to be a char, not a string/char*.
Forum: Computer Programming 01-22-2012, 02:20 PM
Replies: 4
Views: 620
Posted By Apothem
Make letter into a char (or just do *letter). ...

Make letter into a char (or just do *letter).
Go here: http://www.asciitable.com/
Subtract the ascii # with the input number. No conditionals really needed.
Forum: Java and JSP 01-05-2012, 09:44 AM
Replies: 0
Views: 354
Posted By Apothem
What's the best way to have a specific amount of threads run and/or be reused?

So let's say I have an iterator it that returns something of class CustomClass. The iterator has "many" CustomClass to go over. More over, let's say that a user inputs something that makes my program...
Forum: Java and JSP 01-03-2012, 11:56 PM
Replies: 11
Views: 662
Posted By Apothem
The error displayed didn't have a stack trace. I...

The error displayed didn't have a stack trace. I downloaded the source of the program and tried to locate the error. It seems to be something related to:
if(! (new File("theirJar.jar")).canRead()) {...
Forum: Java and JSP 01-03-2012, 10:51 PM
Replies: 11
Views: 662
Posted By Apothem
Well, there isn't really a stack trace (as...

Well, there isn't really a stack trace (as myJar.jar is really the producer's jar, and theirJar.jar is a library he includes). It just says that theirJar.jar could not be found.

A solution I have...
Forum: Java and JSP 01-03-2012, 09:26 PM
Replies: 11
Views: 662
Posted By Apothem
myJar.jar: Class-Path: theirJar.jar ...

myJar.jar:
Class-Path: theirJar.jar
Main-Class: path.to.MainClass

theirJar.jar: none
Forum: Java and JSP 01-03-2012, 08:38 PM
Replies: 11
Views: 662
Posted By Apothem
In the C: drive, the problem persists. BUT...

In the C: drive, the problem persists.

BUT both solutions do not seem to work; for the second solution I moved the resource jar into the ext folder but it still could not be found when I ran:...
Forum: Java and JSP 01-03-2012, 07:10 PM
Replies: 0
Views: 292
Posted By Apothem
Questions on Concurrency, part 1

So I've been reading on concurrency and have some questions on the way (my guide (http://docs.oracle.com/javase/tutorial/essential/concurrency/index.html) - though I'm not sure if its the best...
Forum: Java and JSP 01-03-2012, 06:22 PM
Replies: 11
Views: 662
Posted By Apothem
Yes the classpath for that jar is relative. It's...

Yes the classpath for that jar is relative. It's weird, though.

If I change to class path of the included jar to an absolute path to that included jar (D:\path\to\jar\theirJar.jar) it then get the...
Forum: Java and JSP 01-03-2012, 06:16 PM
Replies: 3
Views: 657
Posted By Apothem
Ah, thanks. I see where I went wrong then. I read...

Ah, thanks. I see where I went wrong then. I read about cp while trying to figure out the problem, but for some reason I thought I was only suppose to compile with that argument. Thank you.
Forum: Java and JSP 01-03-2012, 07:32 AM
Replies: 3
Views: 657
Posted By Apothem
Running file that includes files from a jar works on Eclipse, not cmd

My program is including files from a jar file (imported by using Eclipse). I compiled my program, and everything was fine (in both Eclipse and command line). When I ran the program with Eclipse,...
Forum: Java and JSP 01-03-2012, 03:27 AM
Replies: 11
Views: 662
Posted By Apothem
How to run jar files from another file disk?

So I have two file disks (I think that's the right terminology):
C:
D:

I'm running a Windows 7 and it is installed on the C: drive. There is a jar file in D:\path\to\jar that I want to run. The...
Forum: Computer Programming 12-31-2011, 07:18 PM
Replies: 3
Views: 733
Posted By Apothem
printf("%d %d %d\n", i, power(2,i), power(-3,i));...

printf("%d %d %d\n", i, power(2,i), power(-3,i));

Basically is the evaluation output of the following values:
i 2^i (-3)^i
From when you input i = 0 to when i = 9. If you do not know what powers...
Forum: JavaScript frameworks 12-30-2011, 06:02 PM
Replies: 3
Views: 1,083
Posted By Apothem
The following links can help you accomplish what...

The following links can help you accomplish what you want:
http://api.jquery.com/jQuery.param/
http://api.jquery.com/serialize/
Forum: JavaScript frameworks 12-30-2011, 02:53 AM
Replies: 3
Views: 1,083
Posted By Apothem
I don't know why you would want to do that...

I don't know why you would want to do that instead of using objects/associative arrays. But:

I would think you would use eval() as such:
params =["street", "city", "state","zip_code"];
for(var...
Forum: MySQL 12-29-2011, 09:03 PM
Replies: 11
Views: 581
Posted By Apothem
I see. Very interesting. When I continue to...

I see. Very interesting. When I continue to program a project that uses a database, I'll definitely look up normalization for the type of database I will be working on.

----------------

What I...
Forum: MySQL 12-29-2011, 08:32 PM
Replies: 11
Views: 581
Posted By Apothem
"How many users have 'John Doe' in their FRIENDS...

"How many users have 'John Doe' in their FRIENDS list?"
Well we know the OP wants a bidirectional relationship between two users. If you suppose that he implements it correctly, the total list of...
Forum: MySQL 12-29-2011, 07:04 PM
Replies: 11
Views: 581
Posted By Apothem
I believe one thing I saw a forum do in their...

I believe one thing I saw a forum do in their MySQL structure is have a "friendid" column that contains a list of user ids that are friends of the user (separated by some deliminator, such as "," or...
Showing results 1 to 25 of 380

 
Forum Jump

All times are GMT +1. The time now is 12:01 PM.