Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 42
Search took 0.01 seconds.
Search: Posts Made By: BungalowBill
Forum: Java May 3rd, 2007, 7:31 AM
Replies: 3
Views: 118
Posted By BungalowBill
Little Error checking help

I've got two methods which take in information from the user. One which takes in Strings:


public static String getNames(){
BufferedReader br = new BufferedReader(new...
Forum: Coder's Corner Lounge Mar 30th, 2007, 6:14 AM
Replies: 29
Views: 606
Posted By BungalowBill
"They say Mrs Miggins, that personal insults hurt...

"They say Mrs Miggins, that personal insults hurt more than physical pain. They are of course wrong as i shall now demonstrate by sticking this toasting fork in your head"

-Blackadder
Forum: Coder's Corner Lounge Mar 30th, 2007, 6:12 AM
Replies: 31
Views: 788
Posted By BungalowBill
My pubic area once caught fire, the details of...

My pubic area once caught fire, the details of how this happened aren't important, but im such a man that i doused the flames by hitting it with a hammer.



I actually stole that one from Billy...
Forum: Java Mar 28th, 2007, 3:52 PM
Replies: 4
Views: 145
Posted By BungalowBill
That could be it. I think the first and last...

That could be it. I think the first and last element in the array would be null. Couldn't i solve it by changing the for loop to not include the first and last element. i.e.


for(int...
Forum: Java Mar 28th, 2007, 6:01 AM
Replies: 4
Views: 145
Posted By BungalowBill
Pulling from an Arraylist

I have an arraylist (tokens) that i've filled with words from a text file i've parsed through and tokenized.

At some point in the file there is the word 'model', which only appears once. I know two...
Forum: Java Mar 19th, 2007, 8:09 AM
Replies: 2
Views: 149
Posted By BungalowBill
Yeah sorry i missed that out my post by mistake....

Yeah sorry i missed that out my post by mistake. I did remember to close output.

output.close();


EDIT: so sorry, i had the close() inside of a if statement that wasn't firing. such an idiot. Thanks
Forum: Java Mar 19th, 2007, 6:07 AM
Replies: 2
Views: 149
Posted By BungalowBill
Writing to a text file.

Hey guys i've got a problem. Im trying to write some text to a txt file using the following code:


try{
BufferedWriter output = new BufferedWriter(new...
Forum: Java Mar 13th, 2007, 8:56 AM
Replies: 11
Views: 179
Posted By BungalowBill
I get the error - unclosed character literal ...

I get the error - unclosed character literal
unclosed character literal
')' expected.

when i try that.
Forum: Java Mar 13th, 2007, 7:59 AM
Replies: 11
Views: 179
Posted By BungalowBill
Heres an extended piece of the code. Im not...

Heres an extended piece of the code. Im not exactly sure why the <apply> is needed but im just getting into SBML myself so theres still alot i don't know about. I'm guessing its something to do with...
Forum: Java Mar 12th, 2007, 12:33 PM
Replies: 11
Views: 179
Posted By BungalowBill
thanks for the reply, i went ahead and tried to...

thanks for the reply, i went ahead and tried to jsut battle it out. I assumed that there could only be 3 variables to a formula for now, i'll maybe have to change that later. I was going to paste...
Forum: Java Mar 12th, 2007, 11:02 AM
Replies: 11
Views: 179
Posted By BungalowBill
Could use some input

Hey guys, i've got a problem. As part of a program i'm writing i need to find a way of changing formulas automatically from one form to another. I'm converting text files filled with formulas, to...
Forum: Other Programming Languages Feb 20th, 2007, 11:10 AM
Replies: 8
Views: 177
Posted By BungalowBill
I understand code that i write myself, or if its...

I understand code that i write myself, or if its heavily commented i can work it out. Otherwise i tend to take a lot longer. Its just practice and it'll eventually become as easy as reading english i...
Forum: Other Programming Languages Feb 20th, 2007, 8:41 AM
Replies: 8
Views: 177
Posted By BungalowBill
Well from what i can make out from my limited...

Well from what i can make out from my limited ability to understand code, the solutions presented show a way of finding a string specified by the user and then telling the user when that string is...
Forum: Other Programming Languages Feb 20th, 2007, 8:15 AM
Replies: 8
Views: 177
Posted By BungalowBill
Thanks for the reply. Im pretty bad at...

Thanks for the reply. Im pretty bad at understanding code right now however so im not exactly sure what that solution does. By looking at the input and the output i'd guess it took in an input file...
Forum: Other Programming Languages Feb 20th, 2007, 7:25 AM
Replies: 8
Views: 177
Posted By BungalowBill
The forum won't seem to let me edit my above post...

The forum won't seem to let me edit my above post so i'll make a new one to explain things a bit clearer hopefully. this is whats in the text file:



Is there a way to search through a text file in...
Forum: Other Programming Languages Feb 20th, 2007, 5:56 AM
Replies: 8
Views: 177
Posted By BungalowBill
Java or Clips/Jess

I'm trying to come up with a way of searching through a text file for a specific pattern like. For example imagine a text file containing this:




I want it to search for 'At Bt' when it finds it...
Forum: Java Jan 29th, 2007, 11:41 AM
Replies: 3
Views: 154
Posted By BungalowBill
I would be modelling things like metabolic...

I would be modelling things like metabolic pathways in the human body. The user would be able to drag and drop objects using this 'graphical modeler' like an oxygen or nitrogen molecule and from this...
Forum: Java Jan 29th, 2007, 7:54 AM
Replies: 3
Views: 154
Posted By BungalowBill
Honours Project

I've been suggested a honours project by my supervisor, and a small part of it is to design a graphical modeler possibly in java. I have no background in doing this sort of thing and haven't a clue...
Forum: Other Programming Languages Nov 21st, 2006, 1:00 PM
Replies: 1
Views: 105
Posted By BungalowBill
Postcript

Anyone have any basic knowlege of how postscript works?

I want to pull a value off the stack

/
myfunction r <- top of stack

/r exch def
Forum: Java Nov 14th, 2006, 5:01 AM
Replies: 12
Views: 300
Posted By BungalowBill
I worked something out. Incedently, does anyone...

I worked something out. Incedently, does anyone know how to auto-indent an entire piece of code in Netbeans? Im using version 5.0.
Forum: Java Nov 13th, 2006, 8:45 AM
Replies: 12
Views: 300
Posted By BungalowBill
If i had an array called List and was able to...

If i had an array called List and was able to iterate through it, pulling out each element like this:


for(i = 0 ; i< List.size()-4 ; i++){

System.out.println(seqList.get(i));
}


Is there any...
Forum: Java Nov 10th, 2006, 6:55 AM
Replies: 12
Views: 300
Posted By BungalowBill
Alright thanks for that guys. The reason i was...

Alright thanks for that guys. The reason i was going to use an arraylist was that later on im gonna have to make similar lists for indivdual amino acids which include ints and i thought it would be...
Forum: Java Nov 9th, 2006, 11:16 AM
Replies: 12
Views: 300
Posted By BungalowBill
ArrayLists

Im writing a program to find out if a protein sequence has a turn in it (don't ask) and this is what i want to do.

I need to enter a sequence, at the terminal, i.e. CAENBVWGKL or something then i...
Forum: Other Programming Languages Oct 30th, 2006, 12:27 PM
Replies: 16
Views: 430
Posted By BungalowBill
Yeah he did the hard part. But i got the whole...

Yeah he did the hard part. But i got the whole thing working now.

just had to write:

owns a b = member a ( owner companies b )

('member' just does the same thing as arevos' inList method - but i...
Forum: Other Programming Languages Oct 30th, 2006, 11:32 AM
Replies: 16
Views: 430
Posted By BungalowBill
Okay, fair enough. I've managed to go from...

Okay, fair enough.

I've managed to go from entering two companies, to it returning the owners of the second. I'll do the rest on my own. You're right it's the only way i'll get it.

Thanks again...
Forum: Other Programming Languages Oct 30th, 2006, 9:15 AM
Replies: 16
Views: 430
Posted By BungalowBill
Thanks for the replys guys. Im working my way...

Thanks for the replys guys. Im working my way through this slowly. What i need to do now is to use the list that 'owners' returns, and check its members for the exsistence of the company supplied as...
Forum: Other Programming Languages Oct 26th, 2006, 9:52 AM
Replies: 16
Views: 430
Posted By BungalowBill
Hi im back again. This time with another question...

Hi im back again. This time with another question on something i've already asked about.

if i was to set up another list called companies. Like:

companies = [("c1, "c2"), ("c3", "c1"), ("c4",...
Forum: Other Programming Languages Oct 24th, 2006, 12:04 PM
Replies: 16
Views: 430
Posted By BungalowBill
Yeah thanks that works great. For some reason i...

Yeah thanks that works great. For some reason i was thinking it was much more complicated that it was.

Now i'm attempting to create a noughts and crosses board.

I'll be back soon enough no...
Forum: Other Programming Languages Oct 24th, 2006, 8:26 AM
Replies: 16
Views: 430
Posted By BungalowBill
Thats almost it but not quite. I want to set up...

Thats almost it but not quite.

I want to set up a list like you said with
relationships = [("Jane", "Mary"), ("Scott", "Brian")]

but at the terminal all i want to type is the name of the function,...
Forum: Other Programming Languages Oct 24th, 2006, 5:08 AM
Replies: 16
Views: 430
Posted By BungalowBill
Hi thanks for the replys and sorry i haven't...

Hi thanks for the replys and sorry i haven't replied. The site wouldn't let me log back in for some reason. I tried logging in about 4 times and each time i went to post, it asked me to log in again....
Forum: Other Programming Languages Oct 17th, 2006, 5:21 AM
Replies: 16
Views: 430
Posted By BungalowBill
Anyone with knowledge of Haskell?

Does anyone have any knowledge of using Haskell? I'm trying to write some functions to do some simple tasks.

For example, a program, getelem, which is given an integer n and a list, returns the nth...
Forum: Java Apr 21st, 2006, 8:59 AM
Replies: 5
Views: 228
Posted By BungalowBill
I don't know if anyone is still bothered about...

I don't know if anyone is still bothered about this but i have a new problem. This piece of code doesn't seem to be doing what i want. What is happening here is that i've submitted the form and now...
Forum: Java Apr 19th, 2006, 9:16 AM
Replies: 5
Views: 228
Posted By BungalowBill
Thanks but i want to use eclipse. Im almost...

Thanks but i want to use eclipse. Im almost there. I've managed to make a few pages, with a consistent menu system on each page to link them together.

Plus i've managed to populate all the...
Forum: Java Apr 19th, 2006, 3:42 AM
Replies: 5
Views: 228
Posted By BungalowBill
Thanks, but i want the radio buttons to be...

Thanks, but i want the radio buttons to be populated by looking to see whats in the database.

Any clue of where i could find something like that?
Forum: Java Apr 17th, 2006, 8:01 AM
Replies: 5
Views: 228
Posted By BungalowBill
An eclipse project

I want to use eclipse to make a simple order form.

I want to make some forms using html or jsp, then have some java code to connect to an existing java database.

I want the form to only display...
Forum: C# Apr 12th, 2006, 4:36 AM
Replies: 10
Views: 382
Posted By BungalowBill
Thanks for that codelord i'll give that a go. Is...

Thanks for that codelord i'll give that a go. Is the - this. - part neccessary though?

im just using access for the DB.
Forum: C# Apr 10th, 2006, 4:53 AM
Replies: 10
Views: 382
Posted By BungalowBill
String to decimal.

I want to add information to a database using a form. I want to take 3 bits of information - Name, Price, Quantity.
Name must be stored in the DB as text, Price as currency and quantity as...
Forum: C Dec 7th, 2005, 5:19 AM
Replies: 17
Views: 454
Posted By BungalowBill
I've got a piece of code for myfopen. Myfile *...

I've got a piece of code for myfopen.

Myfile * myfopen(){
Myfile * file = (Myfile*) malloc(sizeof (Myfile));
memmove(file->buffer.data, disk[79].data, blocksize);
file->pos = 0;
return file;
...
Forum: C Dec 6th, 2005, 12:33 PM
Replies: 17
Views: 454
Posted By BungalowBill
If meant if i stored that on disk, that piece of...

If meant if i stored that on disk, that piece of text, how would i open it up - but don't worry, i got that sorted.

I figured out how to open that specific file, now all i have to do is write a...
Forum: C Dec 6th, 2005, 6:41 AM
Replies: 17
Views: 454
Posted By BungalowBill
sorry. will do next time. I have another question...

sorry. will do next time. I have another question now though. If i had some data in a random block like:-

strcpy((char*)disk[79].data, "Tommorrow Never Knows");

how would i use fopen() to open...
Showing results 1 to 40 of 42

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC