Forum: Java Dec 10th, 2007 |
| Replies: 1 Views: 918 Re: Reversing ASCII space in notepad Could you please provide the code that dictates the decryption? I would normally ask only for certain parts of code, but I would need to see the whole thing to figure out where it's messing up.
That... |
Forum: Legacy and Other Languages Dec 9th, 2007 |
| Replies: 3 Views: 1,331 Re: How to implement heap in lisp? Way to beef up your post count, hopalongcassidy. If you hate Lisp so much, then avoid any thread with "Lisp" or "Scheme" in the title.
Sheesh.
I'm sorry for that lsprog.
I haven't done much mucking... |
Forum: Java Dec 9th, 2007 |
| Replies: 2 Views: 868 Re: Writing to a file I haven't written any I/O Java code in a while, but I do remember using java.io.PrintStream which is a buffered stream, so you don't need to create a whole mess of inline class instances.
import... |
Forum: Java Aug 7th, 2007 |
| Replies: 32 Views: 4,168 Re: Java IDE(s) For small to moderately-sized projects, I've stuck with Emacs and a terminal emulator.
For larger projects, I found Eclipse was too....busy, and I switched to Netbeans recently and am quite happy... |
Forum: Java Aug 7th, 2007 |
| Replies: 5 Views: 600 Re: project If you're looking to create mobile applications (when I hear "mobile" I think cell phones, PDAs, etc.), then you will need a J2ME SDK (Java 2 Mobile Edition), and a Java-enabled device. Finding a... |
Forum: Getting Started and Choosing a Distro Aug 6th, 2007 |
| Replies: 16 Views: 2,043 Re: Want to learn linux for servers and security For immersing one's self into Linux, I would suggest Gentoo. Just print yourself off a copy of the appropriate handbook (based on your processor architecture), and follow it very carefully.
Slightly... |
Forum: Java Aug 5th, 2007 |
| Replies: 9 Views: 2,218 |
Forum: Java Aug 5th, 2007 |
| Replies: 9 Views: 2,218 Re: User input sample code The only thing I use for input on the CLI is java.util.Scanner.
import java.util.Scanner;
public class Input {
private Scanner scanner;
private String ps = "> "; |
Forum: Java Aug 5th, 2007 |
| Replies: 14 Views: 1,366 Re: a for loop problem So?
I learned Java just so I knew at least one, non-Smalltalk-based, OOP language.
I'm still making use of other classes within the program (javax.swing.JFrame, javax.swing.JButton, etc.). I don't... |
Forum: Java Aug 5th, 2007 |
| Replies: 14 Views: 1,366 Re: a for loop problem What you've got is a good start. Here's how I would do it:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class GuessGame extends JFrame {
private static JButton... |
Forum: Java Aug 5th, 2007 |
| Replies: 14 Views: 1,366 Re: a for loop problem Sweet. :)
Alright. I looked over the code you have, and I would do it much differently than you have done it (while still staying within the requirements).
Get rid of the constructor for the... |
Forum: Java Aug 4th, 2007 |
| Replies: 5 Views: 1,019 |
Forum: Java Aug 4th, 2007 |
| Replies: 14 Views: 1,366 Re: a for loop problem That's fine, but having the loop repeatedly call Integer.parseInt() is just going to re-parse the first number it comes across (if they're separated by spaces) or it will just mush all of the... |
Forum: Java Aug 4th, 2007 |
| Replies: 5 Views: 1,019 Re: From beginner in Java: Atomic type-what is it? There is no atomic "type" in Java.
All of the classes in the java.util.concurrent.atomic package have the "Atomic" prefix in their names.
All of those classes "...provide atomic access to arrays of... |
Forum: Linux Users Lounge Aug 4th, 2007 |
| Replies: 5 Views: 2,235 |
Forum: Getting Started and Choosing a Distro Aug 4th, 2007 |
| Replies: 9 Views: 1,251 Re: Help, Im A Unix Novice Being a Linux user for the past 13 years, (starting when I was 6), one of the biggest brainf***s you could do is start with a UNIX system (the only exception being Mac OS X - which is a Darwin/BSD... |
Forum: Java Aug 4th, 2007 |
| Replies: 14 Views: 1,366 Re: a for loop problem One thing I would not do is declare a variable inside of a loop:
...
for (int i = 0; i < 5; i++) {
int n = Integer.parseInt(t.getText());
...
Put this instead:
public void compare(int x) {
int... |
Forum: Legacy and Other Languages Jun 14th, 2007 |
| Replies: 4 Views: 1,127 Re: Lisp question You're very welcome, dmmckelv. :)
azimuth0: Thanks for the additional info - I've never used READ, and just assumed it returned any expression as a string type, and not the entire line. Bad call on... |
Forum: Legacy and Other Languages Jun 13th, 2007 |
| Replies: 7 Views: 1,856 Re: BASIC Languages File I/O Help The rudeness of some people on this forum floors me.
gamingfan1993, here's a rough sketch (in QBASIC):
INPUT "User to look up: ", lookup$
OPEN "data.txt" FOR READ AS #1
lengthoflookup% =... |
Forum: Legacy and Other Languages Jun 13th, 2007 |
| Replies: 4 Views: 1,127 Re: Lisp question It appears you have a superfluous opening parenthesis just before the FORMAT call:
(defun adder ()
(format t "Enter a number, press return and enter another number")
(setq number-one (read))
... |
Forum: Computer Science and Software Design Mar 22nd, 2007 |
| Replies: 5 Views: 2,896 Re: Lisp Load Function When referring to file paths in Common LISP, it's best to either use the pathname directive:
(load #p("/path/to/file")
-or-
...better yet, just use the arbitrary pathname tricks in Common... |
Forum: Computer Science and Software Design Jan 22nd, 2007 |
| Replies: 11 Views: 4,910 Re: Object Oriented Programming From the way I was tought things, function programming is synonymous with procedural programming.
As for the "complexities" of operator overloading and pre-processor commands, I consider those... |
Forum: Computer Science and Software Design Jan 22nd, 2007 |
| Replies: 11 Views: 4,910 Re: Object Oriented Programming @ TylerSBrenton: If (s)he asked, you should at least have the common curtosey to provide an answer that isn't a google result.
@ sosina abraha:
There are two branches of programming: functional, and... |
Forum: Computer Science and Software Design Jan 22nd, 2007 |
| Replies: 5 Views: 5,098 |
Forum: Computer Science and Software Design Jan 22nd, 2007 |
| Replies: 18 Views: 3,816 Re: Lisp Programming defparameter Watch out with variable names...especially in this situation: CAR is a function in Lisp, so I would name the variable *cars* instead.
It's also not working, because you haven't defined the symbols... |
Forum: Legacy and Other Languages Jan 22nd, 2007 |
| Replies: 8 Views: 4,174 Re: Lisp Even though this thread is approximately 10 months old, I'm going to resurrect it anyways.
What is the purpose of this? Normally I wouldn't ask, but what you're asking for here is for a list of cars... |
Forum: *nix Software Jan 22nd, 2007 |
| Replies: 1 Views: 1,215 Re: UNIX Newbie / Boot assistance on Sun Ultra5 Have you checked the actual hardware?
Make sure the hardware is properly seated, and check to see if there are any noticable damages.
The problem with the SPARC station you've got there, is that... |
Forum: *nix Software Jan 22nd, 2007 |
| Replies: 3 Views: 972 |
Forum: Getting Started and Choosing a Distro Jan 22nd, 2007 |
| Replies: 27 Views: 3,688 Re: Gentoo and KDE... If you're new to Linux, I heavily recommend Ubuntu, Mepis and Mandriva.
If you would like to slowly edge your way into the Linux world, try LinuxXP - a linux distribution based off of Fedora Core 5,... |
Forum: Software Developers' Lounge Jan 22nd, 2007 |
| Replies: 4 Views: 2,518 |
Forum: Perl Jan 22nd, 2007 |
| Replies: 4 Views: 2,531 |
Forum: Legacy and Other Languages Jan 22nd, 2007 |
| Replies: 4 Views: 1,924 Re: LISP newbie The logical condition is correct, but watch the syntax: (and (numberp n) (numberp m))
Try this:
(if (numberp m)
(if (numberp n)
(+ m n)
((lambda ()
(format t "~%ERROR: N... |
Forum: Legacy and Other Languages Jan 21st, 2007 |
| Replies: 4 Views: 1,924 Re: LISP newbie It's logically correct, but watch the spacing:
(and (numberp n) (numberp m)) |
Forum: Legacy and Other Languages Jan 21st, 2007 |
| Replies: 1 Views: 2,926 Re: QBASIC, Windows XP, and screen sizing Try passing the -h switch to QBASIC on the shortcut properties. The -h switch makes the QBAISC window come up in "high resolution", more than likely why you deal with line counts greater than 24 in... |
Forum: Java Jan 21st, 2007 |
| Replies: 7 Views: 1,231 Re: New to JAVA Java's a good start.
After a while, but before you get comfortable with any language, I recommend you check out Lisp.
Lisp is pretty much the language for multiple solutions for any given problem -... |
Forum: Perl Jan 21st, 2007 |
| Replies: 4 Views: 2,531 |
Forum: Legacy and Other Languages Jan 21st, 2007 |
| Replies: 90 Views: 25,215 Re: A multilingual coded Hello World! thread Don't be :cheesy:
Lisp is amazing. I program in it, now, almost exclusively.
Now, here's an example supplying you have a Lisp REPL (interpreter) - like CLISP - installed to /usr/local/bin:
... |
Forum: Getting Started and Choosing a Distro Aug 25th, 2006 |
| Replies: 15 Views: 2,578 Re: Concerning install LINUX Unless I'm mistaken, isn't a P3 i686 architecture?
I'm currently running Mandriva on a P2 450 mHz box, with 160Mb of RAM - and it run's fine. =D
And to further add on to what joeprogrammer is says,... |
Forum: Java Aug 23rd, 2006 |
| Replies: 5 Views: 2,832 Re: Assigning Array Values En Masse I was just getting too bogged down trying to fix the old code, so I decided to start fresh, and guess what - I got it!
// Eratosthenes Prime Number Finder Algorithm
/**
* @author Nick Saika
*... |
Forum: Java Aug 23rd, 2006 |
| Replies: 5 Views: 2,832 Re: Assigning Array Values En Masse I'm just using a small value of 10.
Pretty much, what I'm writing (as to help me learn Java) is a Sieve of Eratosthenes (http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes), it's a prime number... |