User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 426,390 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,303 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 71
Search took 0.01 seconds.
Posts Made By: indienick
Forum: Java Dec 10th, 2007
Replies: 1
Views: 918
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Forum: Java Aug 5th, 2007
Replies: 9
Views: 2,218
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Forum: Java Aug 4th, 2007
Replies: 14
Views: 1,366
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Re: Compiling and running an entire poject from command line/terminal on Linux

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,251
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Forum: Computer Science and Software Design Jan 22nd, 2007
Replies: 18
Views: 3,816
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Re: Looking for developers (read the posting for info)

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: 3,688
Posted By indienick
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
Posted By indienick
Re: Anyone ever switch from Linux to .NET Programming in their career?

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: 2,531
Posted By indienick
Re: Lisp Programming!

Poop, I didn't catch that.

Thanks for pointing it out, KevinADC.
Forum: Legacy and Other Languages Jan 22nd, 2007
Replies: 4
Views: 1,924
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Re: Lisp Programming!

Likewise :cheesy:
Forum: Legacy and Other Languages Jan 21st, 2007
Replies: 90
Views: 25,215
Posted By indienick
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
Posted By indienick
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
Posted By indienick
Solution 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
Posted By indienick
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...
Showing results 1 to 40 of 71

 
All times are GMT -4. The time now is 1:08 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC