- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am of a few in this world that partake in the beauty of Lisp programming. I'm not a guru with it, but I'm fairly proficient. For whatever I don't do in Common Lisp, I do in Java.
clisp is my shell.
- PC Specs
- AMD Athlon XP 2000+ 700MB RAM 10GB (primary) - 160GB (secondary) Primary OS: Debian Etch (4.0) Secondary…
47 Posted Topics
Re: What's the exact error you get when you try to delete the folder? | |
Re: Ahh...yet another discussion concerning the mind-twisting ambiguities of Windows. | |
Re: And which programming language? | |
Re: When referring to file paths in Common LISP, it's best to either use the pathname directive: [inlinecode](load #p("/path/to/file")[/inlinecode] -or- ...better yet, just use the arbitrary pathname tricks in Common LISP: [inlinecode] (load (make-pathname :device "c" :directory '(:absolute "temp") :name "testload")) [/inlinecode] Now, however, there's a problem with the syntax of … | |
Re: I'm running WinXP, but the method to get the Quick Launch bar on the Start Bar has been the same ever since Windows95. - Right click on the Start Bar - Click "Toolbars" - Click "Quick Launch" | |
Re: I haven't written any I/O Java code in a while, but I do remember using [inlinecode]java.io.PrintStream[/inlinecode] which is a buffered stream, so you don't need to create a whole mess of inline class instances. [code] import java.io.*; import java.util.Scanner; ... try { PrintStream ps = new PrintStream(new File("file.txt")); Scanner s … | |
Re: 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 is, unless, you've pin-pointed to the specific spot in the algorithm where the … | |
Re: 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 about with stack and heap programming in Common Lisp. When you mention "CLisp" do … | |
Re: [quote=vegaseat;100836]From a very shy Lisp person ... [php] (write-line "Hello World! in Common-Lisp") [/php][/quote] 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: [code] #!/usr/local/bin/clisp ;; USAGE: helloworld.lisp … | |
Re: The rudeness of some people on this forum floors me. gamingfan1993, here's a rough sketch (in QBASIC): [code] INPUT "User to look up: ", lookup$ OPEN "data.txt" FOR READ AS #1 lengthoflookup% = LENGTH(lookup$) WHILE NOT EOF(1) LINE INPUT #1, buffer$ IF LEFT$(buffer$, lengthoflookup%) = lookup$ THEN username$ = LEFT$(buffer$, … | |
Re: 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 headers and classes. Then you need to compile and link it, using [inlinecode]g++[/inlinecode]. | |
Re: 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 with it. | |
Re: 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 easier, but without a nice little manual to follow would be Debian - my distribution of choice. | |
Re: 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 UNIX core), especially when you are coming fresh from the … | |
Re: 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 Java-enabled device shouldn't be too hard these days. As for the voice recognition and such, you … | |
Re: One thing I would [i]not[/i] do is declare a variable inside of a loop: [code] ... for (int i = 0; i < 5; i++) { int n = Integer.parseInt(t.getText()); ...[/code] Put this instead: [code] public void compare(int x) { int n = Integer.parseInt(t.getText()); for (int i = 0; i … | |
Re: The only thing I use for input on the CLI is [inlinecode]java.util.Scanner[/inlinecode]. [code] import java.util.Scanner; public class Input { private Scanner scanner; private String ps = "> "; public Input { scanner = new Scanner(System.in); } public String input(String prompt) { System.out.print(prompt + ps); return scanner.nextLine(); } }[/code] | |
Re: 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 values and provide [b]volatile[/b] access semantics for array elements, which is not possible with the volatile modifier itself." … | |
Re: [u][b]KDE[/b][/u] +Looks pretty. +Highly customizable. +Most Linux programs written for the X display are designed for KDE. +/-Lots of eye-candy and useless utilities. -SLLLOOOOOWWWW (unless you have a mighty kick-arse computer). -If you're running 6 or more programs throughout the multiple desktops, it can slow down to the speed of … | |
![]() | Re: It appears you have a superfluous opening parenthesis just before the FORMAT call: [code] (defun adder () (format t "Enter a number, press return and enter another number") (setq number-one (read)) (setq number-two (read)) (format t "~a plus ~a equals ~a" number-one number-two (+ number-one number-two))) [/code] Also, more tips … |
Re: 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, with full Win32 EXE support, and a Windows XP-like desktop environment. | |
Re: 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 to be provided, and reference it against an already existing library of cars … | |
Re: 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 [I]the[/I] language for multiple solutions for any given problem - not to mention, it's great for writing minimal code with the least amount of effort … | |
Re: @ 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 object-oriented. Functional languages leave the entire language at your disposal without having to import other "classes". The … | |
Re: 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 Ford, Fiesta, Focus and Mondeo anywhere. Unless you want to define them like this: [inlinecode](defparameter [i]car-name[/i] (cons [i]"car … | |
Re: 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 all of the hardware - and I mean [i][b]all[/b][/i] - is proprietary, and friggin' expensive to … | |
Re: Now, how is this much different than SourceForge, aside from focusing on Debian-based systems? | |
Re: I recently inherited [i]Programming C#[/i] 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 years, and have eventually come to not like it - not enough ways to optimize code, … | |
Re: It's logically correct, but watch the spacing: [inlinecode](and (numberp n) (numberp m))[/inlinecode] | |
Re: 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 class. Keep in mind, QBASIC is [I]OLD[/I], and was designed and quite popular when … | |
Re: Please don't take this the wrong way, but I think Perl GUI's are a complete waste of time. If you're hellbent on getting a GUI done though, PerlTk is about the only way to do it, next to making calls to ``dialog'' like so: [inlinecode] system("dialog [i]arguments[/i]");[/inlinecode] [i]EDIT: This is … | |
Re: If you're just starting out - looking to indulge into the Linux world, I recommend Mandriva ([url]http://www.mandriva.com)[/url]. It's got an absolutely amazing graphical installer, and a pretty slick packaging system. It's pretty much what a Linux newbie should use, IMO. Once they get situated and comfortable mucking around in a … | |
Is there a way in Java to assign values en masse to an array? To give an idea of what I'm trying to achieve, in Perl, you can do: [inlinecode]@listofvalues = (1..$anynumber);[/inlinecode] to add (in this case) all digits between 1 and $anynumber to the array @listofvalues. Is there a … | |
Re: I'm not going to say any names, but I have to say, some of these people are sounding like paid Microsoft spokespersons. And I can't say as I agree with all this hullabaloo about WinXP being the greater good of OS'es. The only reason Microsoft took off was because of … | |
Re: I might suggest picking yourself up a copy of 'Beginning Programming with Java for Dummies"...and if you're feeling particularily sassy, O'Reilly Java In A Nutshell. It's all the reference you'll ever need (except for javax.swing.* and java.awt.* - which are briefly covered in the Dummies book). Perhaps I could be … | |
I'm trying to list some data gathered from files into a JTable - here's the code I'm using: [code] /* Packages listed in a JTable */ Object[] columnNames = {"Package", "Version", "Installed"}; int packageCount = getPackageCount(); Object[][] data = new Object[packageCount][2]; Scanner dbIndex = new Scanner(new File("/opt/npkg/dbindex.npkg")); int row = … | |
Re: Ok, try this code fixup: [code] #!/usr/local/bin/perl -w ############### check1.pl ############### $runAutomatic = $ARGV[1]; $skipCaseClean = $ARGV[2]; if ( -d $ARGV[0] ) { print "Directory is $ARGV[0] \n\n"; } if ( $runAutomatic eq 'n' ) { print "No run automatic. \n\n"; } if ( $skipCaseClean eq 'n' ) { print … | |
I have a question about creating my own custom classes. I want my own class - NButton. The idea of this class was to quickly make JButtons, by adding my own custom argument sets. Here's my prototype for this: [code] import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; /** * NButton - … | |
This post is asking ALOT, but I'm not expecting one person to leave me a hefty response, so any bits of widsom and knowledge are MUCHLY appreciated. Could someone(s) please explain to me (in detail) how to use: - Data Models (for JTree's and JTable's) - Pattern matching (java.regex.Pattern) and … | |
Ok, I know this is a stupid-easy question, but how do I "gather" (best word I could think of) an image? [code] JFrame frame = new JFrame(); Image programIcon = (...?...); frame.setIconImage(programIcon); [/code] My main issue is that since Image is abstract, I can't exactly go " = new Image("yadda.png");" … | |
Re: I've had some problems getting my computer(s) to look at the CD drive. I've installed Windows98SE without a bootdisk too. The trick is forcing your BIOS/CMOS to check your CD drive for bootable images. There was this tiny little option at the bottom of every boot sequence thing that said … | |
Re: If you're using a cracked/ripped version of WinXP, with that FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8 serial, go to my website: http://www.geocities.com/foinfo_phreak , and click "Articles". There's an article there I wrote that walks you through updating your computer with SP2, and how to change your Windows serial key. | |
Re: I use [URL=http://www.mpsoftware.dk/downloads.php]PHP Designer[/URL]. Dont' let the name throw you, it's not just a PHP page builder. It's got TONS of useful features (such as a library that has documentation on each and every tag for HTML, PHP, SQL, CSS, and XML). It also has a built-in webpage previewer, so … | |
Re: [b]IF YOU DON'T KNOW WHAT YOU'RE DOING IN A LINUX ENVIRONMENT, DON'T USE GENTOO!!!!!!![/b] Sorry, I had to get that out. It's just Gentoo is NOT a good starting point for anybody wishing to get into Linux. If you want a good place to start out, get [URL=http://www.us.debian.org/]Debian[/URL] or [URL=http://www.mandriva.com/]Mandriva … | |
Re: I've had that problem before, just re-install OVERTOP of your current WinXP installation. Somewhere, a file wasn't written to, or something wasn't copied over right....so just stick the install CD in, and re-install. | |
Re: All the above options are quite good, except for one thing: they cost money. Of course, you could always download a cracked version of Dreamweaver, but if you wanna keep it legal, I recommend checking out a program called [URL=http://www.mpsoftware.dk/downloads.php]PHP Designer[/URL]. It's 100% free. While Dreamweaver gives you a WYSIWYG … |
The End.