cfoley's Profile User Rating: -----

Reputation: 2087 Grandmaster
Group:
Mentors
Active Posts:
4,347 (1.67 per day)
Joined:
11-December 07
Profile Views:
62,323
Last Active:
User is online A minute ago
Currently:
Viewing Topic: how to do this more the ruby way

Previous Fields

Country:
GB
OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
225
Expert In:
Java

Latest Visitors

Icon   cfoley has not set their status

Posts I've Made

  1. In Topic: Virtual Solar System in Jave3D and Swing

    Posted 29 Jan 2015

    The variable a is a double but is also trying to be a 3D coordinate.
    You have at least two different things that look almost like your accelaration equation.
    It looks like you're trying to add and subtract accelerations to a location which doesn't make sense to me.

    The code has confused me so much that I'm not really sure what you want that snippet to do. Could you explain a bit more?
  2. In Topic: How to save user input

    Posted 28 Jan 2015

    Lists can be sexy for such things:

    import java.util.*;
    
    
    public class RememebringThingsDemo {
    	
    	public static void main(String[] args) {
    		List<String> lyrics = new ArrayList<>();
    		
    		lyrics.add("One potato,");
    		lyrics.add("Two potato,");
    		lyrics.add("Three potato,");
    		lyrics.add("Four.");
    		lyrics.add("Five potato,");
    		lyrics.add("Six potato,");
    		lyrics.add("Seven potato,");
    		lyrics.add("More.");
    		
    		for(String line: lyrics) {
    			System.out.println(line);
    		}
    	}
    
    }
    
    
  3. In Topic: How to use a Java cheminformatics package "JOELIB" in

    Posted 28 Jan 2015

    Don't feel like you have to understand that whole PDF to get started. It will be a very useful reference to look things up as you go along. It also is packed with source code examples so why not try pasting some of them in. You can probably google for example input files to get them to run.

    If you're interested in SMILES then look for an example that uses them and paste it in. When you get it to work, try modifying it to tweak the behaviour. SMILES are also a good starting point because you won't need input files.

    I guess I should also say that we can help better if you paste the code you are trying to run. If it's finding a suitable input file then let us know too (alongside the code you are trying to run). The more information (and the more specific it is) the better we can help you.
  4. In Topic: What's your cure for procrastination?

    Posted 27 Jan 2015

    View Postjon.kiparsky, on 27 January 2015 - 08:39 PM, said:

    Ugh. Email is deadly. Work email really should be delivered twice a day: once at 9:00AM, and again at 4:00 PM.


    Totally agree. This is why I turn notifications off and check it twice a day.

    View Postered_mithrin, on 27 January 2015 - 08:48 PM, said:

    Agree! I'm using BatchedInbox for my Gmail mailbox and it is a fantastic tool.


    This seems unnecessary, and also insecure. Just check it at certain times. If you need to log in to look things up a lot, you can set up a filter to keep things out of your inbox, marked as read.
  5. In Topic: Is there a built in "Find and Replace" method in the API?

    Posted 26 Jan 2015

    To be honest, you don't need code generation or group theory, just a method and some enums:

    class Cube {
        enum Slice {TOP, MIDDLE, BOTTOM, LEFT, CENTER, RIGHT};
        enum Direction {CLOCKWISE, ANTICLOCKWISE};
    
        void rotate(Slice s, Direction d) {
         // Your code here
        }
    }
    

My Information

Member Title:
Cabbage
Age:
32 years old
Birthday:
April 7, 1982
Gender:
Location:
Glasgow
Forum Leader:
Java
Years Programming:
20

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    burakaltr Icon

    06 Mar 2013 - 18:18
    Thanks for Your Precious Input. I Found the character counting thing very bedazzling. I have the code to it that I wrote Myself, but it took me Long to find a subtle Algorithm :)
  2. Photo

    cfoley Icon

    18 Oct 2011 - 03:29
    Cheers! The next one is in progress, but I'm having to learn and write some programs first. It's going to take a little time...
  3. Photo

    Dogstopper Icon

    18 Oct 2011 - 03:24
    Nice blog. Can't wait to see more
  4. Photo

    ayaz 786123 Icon

    25 Feb 2011 - 06:49
    have a nice day sir
  5. Photo

    cfoley Icon

    16 Feb 2011 - 17:26
    Oooh thanks! Your comment is the first I heard!
  6. Photo

    m-e-g-a-z Icon

    16 Feb 2011 - 15:34
    Congrats on becoming a Forum Leader! :)
  7. Photo

    Dogstopper Icon

    08 Jan 2011 - 23:49
    "Cabbage" is much better! :D
  8. Photo

    cfoley Icon

    06 Jan 2011 - 16:19
    Cheers dude!
  9. Photo

    Dogstopper Icon

    06 Jan 2011 - 14:36
    "Purple DIC-headed Warrior" doesn't quite apply now that you got the promotion. Well done!
  10. Photo

    DaneAU Icon

    08 Sep 2010 - 09:19
    "cfoley has no profile comments yet. Why not say hello?"
    I don't have many comments either, so i am only doing what the thingy below said to do, hello cfoley and thanks for the thanks :)
Page 1 of 1