Search found 15 matches

by kilik
Tue Sep 14, 2010 8:00 pm UTC
Forum: Coding
Topic: What does one do in Computer Science 1?
Replies: 16
Views: 2933

Re: What does one do in Computer Science 1?

Oh shoot right, I was wondering why you guys were quoting AP Comp sci as only going that far. I had forgot that since my Sophomore year in HS they dropped AB. Because we also went through Maps, Queue's, etc. Though Graphics (after the AP) was also pretty nice (though in class they just tought us how...
by kilik
Mon Sep 06, 2010 12:06 pm UTC
Forum: Coding
Topic: Bored and need a coding project
Replies: 14
Views: 3184

Re: Bored and need a coding project

Woah. You just convinced me to write a 200 line Python Rock-Paper-Scissors game that uses a genetic-algorithm-ish thing to decide on the best strategy to use, and some of the strategies learn from your choice biases and choose the 'attack' that will beat your most common option. It stores every mov...
by kilik
Sun Sep 05, 2010 8:43 pm UTC
Forum: Logic Puzzles
Topic: Tricky encryptions
Replies: 6
Views: 1934

Re: Tricky encryptions

What do you mean? Do you mean how you get the original intuition to solve this? I doubt I would, I just read the spoiler. However, This is a pretty common cipher with a twist. (I'm thinking the last time I saw this was on hack this site or something... not sure) There's a cipher in w...
by kilik
Sat Sep 04, 2010 10:06 pm UTC
Forum: Coding
Topic: How to access an array of pointers outside it's class C++
Replies: 3
Views: 992

Re: How to access an array of pointers outside it's class C+

Yeah, you won't be able to just magically access something created out of scope. However there are a few ways to pass it to other places. You can pass the Array as one of the parameters, for example by passing by reference into the method, and then work with it (once it's done the caller would still...
by kilik
Sat Sep 04, 2010 9:57 pm UTC
Forum: Coding
Topic: Lots of questions
Replies: 14
Views: 2658

Re: Lots of questions

Yeah, I know. I can think of a myriad of times I do it in each program. I actually didn't remember saying that. I simply meant that when programming, it tends to be more of a passing thing. You become familiar with a method that produces reasonable results and then just write that -- you don't spend...
by kilik
Sat Sep 04, 2010 6:36 pm UTC
Forum: Coding
Topic: Lots of questions
Replies: 14
Views: 2658

Re: Lots of questions

[list][*]How do you use pointers in Java?[/*] [*]I have a faint grasp of what multithreading is, but how do you use it in Java?[/*] [*]How do you use graphics in Java (Apart from the Swing and AWT GUI libraries. I want drawable graphics etc.)?[/*] [*]Last and probably least, how do you generate a r...
by kilik
Sat Sep 04, 2010 11:18 am UTC
Forum: Coding
Topic: java object comparison issue
Replies: 20
Views: 2532

Re: java object comparison issue

Right, for some reason I had assumed that he had been provided some base code and that he meant HE did not need to write the equals method (need to pay more attention next time). I still stand by my advise from above though, you should use System.out.println() a lot when having issues like these, al...
by kilik
Fri Sep 03, 2010 8:28 pm UTC
Forum: Coding
Topic: java object comparison issue
Replies: 20
Views: 2532

Re: java object comparison issue

No clue why your code isn't breaking (read infinite loop?), but before you assume that everything has gone to hell, throw some println's in there. try sprinkling these around where it seems prudent: if "System.out.println(course);" returns something you can actually use: System.out.println...
by kilik
Fri Sep 03, 2010 7:30 am UTC
Forum: Coding
Topic: java object comparison issue
Replies: 20
Views: 2532

Re: java object comparison issue

Copied for reference when walking through it: public boolean add(Course course) { int i; for(i = 0; i < 5; i++) { if(course.equals(cList[i]) == true) break; else if(cList[i] == null) { cList[i] = course; return true; } } return false; } You want it to add to the first null course available only if t...
by kilik
Fri Sep 03, 2010 7:10 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0788: "The Carriage"
Replies: 105
Views: 31894

Re: "The Carriage" discussion (#788)

Forget Gilligan's Island, when I've got a song in ballad/common meter, I always sing it to the tune of House of the Rising Sun. It certainly adds new meaning to Mary Had a Little Lamb... Edit: Oh, and to answer Gorak's question, the proper term is Red Dead Redemption, apparently. Sadly the organ bi...
by kilik
Fri Aug 22, 2008 4:06 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0466: "Moving"
Replies: 165
Views: 32042

Re: Moving

Nice, my network is called linsksys... my username for setup is admin... any guesses as to what the password is? Genius... I haven't moved and had this issue yet, though my internet provider is really bad so I'm constantly doing the little dance around the room with my 5 usb extension cords and a wi...
by kilik
Fri Jun 13, 2008 8:52 am UTC
Forum: Logic Puzzles
Topic: next number in this infinite sequence?
Replies: 15
Views: 8785

Re: next number in this infinite sequence?

Eh, bellow isn't a hint but it does give a method of finding the next term in the sequence... not nearly as useful as the formula though. I know this is probably given by the formula's... well definently since they both refer to the same sequence, but first thing I noticed was that to get the ne...
by kilik
Wed May 14, 2008 11:02 am UTC
Forum: News & Articles
Topic: Rickraided! By the FBI.
Replies: 34
Views: 5038

Re: Rickraided! By the FBI.

Wow, this is interesting... I'm pretty sure they will stop or at least improve it if we give them 1 million hits or something... I mean really, how power hungry can they be. If hundreds of innocents start getting raided wouldn't they have to stop? (Though I do not deny that it would severely suck fo...
by kilik
Mon Mar 31, 2008 10:50 pm UTC
Forum: Science
Topic: Question: Circuitry for light sensitive device.
Replies: 5
Views: 1534

Re: Question: Circuitry for light sensitive device.

Correct me if I'm wrong, but that circuit, up to the point where they add the chip which RadioShack doesn't sell and is a bit much for my purposes, goes on when the light is on, and off when the light is covered. I want the opposite.
by kilik
Mon Mar 31, 2008 10:27 pm UTC
Forum: Science
Topic: Question: Circuitry for light sensitive device.
Replies: 5
Views: 1534

Question: Circuitry for light sensitive device.

A friend and I were laughing on the way home about little devices which included buzzers, light sensitive diodes, etc. I am curious in trying to make a circuit that turns on when the lights go off (similar to those night lights). I want it to be as cheap as possible and made from parts available fro...

Go to advanced search