Search Results

Showing results 1 to 40 of 71
Search took 0.03 seconds.
Search: Posts Made By: indienick
Forum: Java Dec 10th, 2007
Replies: 1
Views: 2,010
Posted By indienick
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.
...
Forum: Legacy and Other Languages Dec 10th, 2007
Replies: 3
Views: 2,003
Posted By indienick
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...
Forum: Java Dec 10th, 2007
Replies: 2
Views: 1,938
Posted By indienick
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: 6,071
Posted By indienick
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: 944
Posted By indienick
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: 3,293
Posted By indienick
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.
...
Forum: Java Aug 5th, 2007
Replies: 9
Views: 9,382
Posted By indienick
Forum: Java Aug 5th, 2007
Replies: 9
Views: 9,382
Posted By indienick
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: 2,238
Posted By indienick
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...
Forum: Java Aug 5th, 2007
Replies: 14
Views: 2,238
Posted By indienick
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: 2,238
Posted By indienick
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: 2,550
Posted By indienick
Forum: Java Aug 4th, 2007
Replies: 14
Views: 2,238
Posted By indienick
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: 2,550
Posted By indienick
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...
Forum: IT Professionals' Lounge Aug 4th, 2007
Replies: 5
Views: 3,523
Posted By indienick
What you seem to have downloaded, are headers for using menus in a program. To actually use these as a program, you would need to write a program that makes use of, and creates instances of, these...
Forum: Getting Started and Choosing a Distro Aug 4th, 2007
Replies: 9
Views: 1,855
Posted By indienick
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: 2,238
Posted By indienick
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)...
Forum: Legacy and Other Languages Jun 14th, 2007
Replies: 4
Views: 1,601
Posted By indienick
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...
Forum: Legacy and Other Languages Jun 14th, 2007
Replies: 7
Views: 2,640
Posted By indienick
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 14th, 2007
Replies: 4
Views: 1,601
Posted By indienick
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 Mar 22nd, 2007
Replies: 5
Views: 6,058
Posted By indienick
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 LISP:
...
Forum: Computer Science Jan 22nd, 2007
Replies: 11
Views: 7,007
Posted By indienick
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 Jan 22nd, 2007
Replies: 11
Views: 7,007
Posted By indienick
@ 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,...
Forum: Computer Science Jan 22nd, 2007
Replies: 5
Views: 8,561
Posted By indienick
Forum: Computer Science Jan 22nd, 2007
Replies: 18
Views: 5,036
Posted By indienick
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: 6,315
Posted By indienick
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...
Forum: *nix Software Jan 22nd, 2007
Replies: 1
Views: 1,698
Posted By indienick
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...
Forum: *nix Software Jan 22nd, 2007
Replies: 3
Views: 1,216
Posted By indienick
Now, how is this much different than SourceForge, aside from focusing on Debian-based systems?
Forum: Getting Started and Choosing a Distro Jan 22nd, 2007
Replies: 27
Views: 5,055
Posted By indienick
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...
Forum: IT Professionals' Lounge Jan 22nd, 2007
Replies: 4
Views: 3,580
Posted By indienick
I recently inherited Programming C# from the O'Reilly line, and I'm reading through it, and almost losing interest due to the fact that it looks almost identical to Java. I've programmed in Java for...
Forum: Perl Jan 22nd, 2007
Replies: 4
Views: 3,039
Posted By indienick
Poop, I didn't catch that.

Thanks for pointing it out, KevinADC.
Forum: Legacy and Other Languages Jan 22nd, 2007
Replies: 4
Views: 2,337
Posted By indienick
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...
Forum: Legacy and Other Languages Jan 22nd, 2007
Replies: 4
Views: 2,337
Posted By indienick
It's logically correct, but watch the spacing:
(and (numberp n) (numberp m))
Forum: Legacy and Other Languages Jan 21st, 2007
Replies: 1
Views: 3,796
Posted By indienick
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,482
Posted By indienick
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: 3,039
Posted By indienick
Likewise :cheesy:
Forum: Legacy and Other Languages Jan 21st, 2007
Replies: 90
Views: 28,847
Posted By indienick
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: 3,632
Posted By indienick
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...
Forum: Java Aug 23rd, 2006
Replies: 5
Views: 4,638
Posted By indienick
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: 4,638
Posted By indienick
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...
Showing results 1 to 40 of 71

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC