Forum: Legacy and Other Languages Apr 4th, 2008 |
| Replies: 1 Views: 1,447 The cadr function will do what you want. |
Forum: Legacy and Other Languages Apr 4th, 2008 |
| Replies: 1 Views: 1,592 (typep thing 'first) will do what you want. |
Forum: Legacy and Other Languages Nov 14th, 2007 |
| Replies: 15 Views: 3,006 Try defining accessor functions that return particular elements of the list using car and cdr. |
Forum: Show Off your Projects Jul 23rd, 2007 |
| Replies: 5 Views: 2,310 Perhaps all the 20-year old legacy systems are so good because 99% of them have already been thrown in a dumpster? At this point, you're really looking at the best of the best. It's easy to be... |
Forum: C Jul 13th, 2007 |
| Replies: 5 Views: 2,385 Of what use would tokenizing the string be?
The question isn't to reverse the words in a string.
This looks suspiciously like a question intended by a job interviewer to filter out the people... |
Forum: Linux Servers and Apache Jul 12th, 2007 |
| Replies: 2 Views: 2,771 If you're talking about removing everything in it, that's a really bad idea.
If you mean to free some disk space, you should figure out what's eating it all up. You can also try rm -r /var/tmp/*... |
Forum: PHP Jul 9th, 2007 |
| Replies: 6 Views: 1,070 no,no...
<?php
if ($_REQUEST['id'] == 1 && $_REQUEST['lang'] == 1)
{
echo "hello";
}
?> |
Forum: Windows Software Jul 9th, 2007 |
| Replies: 1 Views: 1,351 Are you sure it's using port 25? Try using PuTTY instead of MS Telnet - it's a far superior program. |
Forum: PHP Jul 9th, 2007 |
| Replies: 6 Views: 1,070 It has to do with the magic variables setting. Try using $_REQUEST['id'] and $_REQUEST['lang'] instead. |
Forum: Legacy and Other Languages Jul 4th, 2007 |
| Replies: 1 Views: 1,158 It looks as though you're trying to write a function that returns a function, which I'm sure is not what you intended. Also, the LET form takes either an atom or a two-element list of atoms. What's... |
Forum: Legacy and Other Languages Jul 4th, 2007 |
| Replies: 2 Views: 1,571 Actually, never mind. The solution is pretty advanced for someone just learning. Here it is, for educational purposes:
(define (mymax arg . lst)
(cond
((null? lst)
arg)
((>... |
Forum: Legacy and Other Languages Jul 4th, 2007 |
| Replies: 2 Views: 1,571 Have you thought about using recursion? After all, the maximum of a list of numbers is the maximum between the first number and the maximum of the rest of the numbers. |
Forum: XML, XSLT and XPATH Jul 3rd, 2007 |
| Replies: 6 Views: 5,018 http://www.urbandictionary.com/define.php?term=jiggy
Incidentally, my source was an amusing interview
with Ice T, whom I consider to be authoritative in this domain. :) |
Forum: XML, XSLT and XPATH Jul 3rd, 2007 |
| Replies: 6 Views: 5,018 "getting jiggy with it" means to dress up for the purpose of looking good when you go out. |
Forum: Legacy and Other Languages Jul 1st, 2007 |
| Replies: 1 Views: 1,486 Try adding this to the end:
print "Press ENTER to exit: "
gets |
Forum: Legacy and Other Languages Jun 14th, 2007 |
| Replies: 4 Views: 1,608 The READ function will return a lisp object just like the representation in your code, but PARSE-INTEGER only takes strings. You probably want to use READ-LINE instead, which returns only strings. |
Forum: HTML and CSS Jun 7th, 2007 |
| Replies: 2 Views: 4,961 Use CSS to eliminate any margin and padding of the body tag:
body { margin: 0; padding: 0; } |
Forum: Legacy and Other Languages May 28th, 2007 |
| Replies: 4 Views: 4,904 You are incorrect. Both Common Lisp and Scheme are perfectly good industry languages with wide platform support and usage. For many, including myself, a lisp language is their preferred language.
... |
Forum: PHP May 22nd, 2007 |
| Replies: 6 Views: 3,709 That won't work, unless I'm reading it wrong...
<?php
$string = '2005-03-IT-31';
if (preg_match('/^\\d{4}-\\d{2}-[a-z]{2}-\\d{2}$/i',$string)) {
echo "Right format";
} else {
echo... |
Forum: Legacy and Other Languages May 22nd, 2007 |
| Replies: 5 Views: 23,365 (defun palindrome ()
(format t "Please enter your word or phrase: ")
(force-output)
(let ((word (read-line)))
(format t "Your word '~a' ~:[is not~;is~] a palindrome"
word
... |
Forum: PHP May 22nd, 2007 |
| Replies: 6 Views: 3,709 Ok, so what is the question? |
Forum: JavaScript / DHTML / AJAX May 22nd, 2007 |
| Replies: 3 Views: 2,795 It won't work like you want. Try this instead:
<script type="text/javascript" lang="Javascript" src="headerfile.js"/>
<script>
// your script
</script> |
Forum: Window and Desktop Managers May 22nd, 2007 |
| Replies: 5 Views: 2,079 It wants to know the directory under which the CD is mounted. |
Forum: C May 22nd, 2007 |
| Replies: 3 Views: 1,099 You're on the right track. You want to use the fread() and fwrite() functions with a pointer to an instance of your structure and the FILE pointer. |
Forum: C++ May 22nd, 2007 |
| Replies: 12 Views: 1,822 Yes, that's precisely correct. |
Forum: Legacy and Other Languages May 9th, 2007 |
| Replies: 4 Views: 4,904 I'm sorry, but what is it that you need help with? |
Forum: Legacy and Other Languages Mar 27th, 2007 |
| Replies: 2 Views: 2,728 Try testing the parents of the current person, then recurse if neither parent has blue eyes. |
Forum: Legacy and Other Languages Mar 27th, 2007 |
| Replies: 2 Views: 1,872 That won't work in common lisp for a number of reasons. This would, though:
(defun row-and-column ()
'((1 2 3 4 5)
(6 7 8 9 0)
(1 2 3 4 5)
(6 7 8 9 0)
(1 2 3 4 5))) |
Forum: OS 7 / 8 / 9 Oct 20th, 2006 |
| Replies: 8 Views: 4,617 Have you tried using another mouse? You might also be able to use the accessibility controls to move your mouse if you have the extension enabled. |
Forum: VB.NET Aug 22nd, 2006 |
| Replies: 2 Views: 1,336 Sure. You have a salesman who travels from city to city by car. There are roads connecting every city to each other, but they're all of different lengths. All you have to do is write a program to... |
Forum: Python Aug 22nd, 2006 |
| Replies: 3 Views: 7,480 People always come up with the generator case, and I think that's the worst way of all to show off closures. Where they really come in handy is introducing lexical scoping.
Lexical scoping just... |
Forum: C++ Jul 7th, 2006 |
| Replies: 6 Views: 2,605 I notice a few things...
There's no need to declare push() and display() as being friends of abc, since abc has no protected members.
The designation of head and top is kind of confusing. Why... |
Forum: Troubleshooting Dead Machines May 25th, 2006 |
| Replies: 3 Views: 2,967 One possibility is that the burnt wire might have damaged other wires inside your case - specifically the one to the power button. If you can, try shorting out the jumper on your motherboard that... |
Forum: Perl May 25th, 2006 |
| Replies: 2 Views: 1,945 If you're using XWindows on both your local computer and the server, you can use ssh X forwarding to get the server's GUI. Use the -Y option with ssh to enable this. X forwarding must be enabled by... |
Forum: Perl May 25th, 2006 |
| Replies: 3 Views: 5,732 Try using the CGI module. It makes doing CGI development in Perl extremely easy (at least the CGI bits).
Try this at a command line:
perldoc CGI |
Forum: Legacy and Other Languages May 23rd, 2006 |
| Replies: 1 Views: 2,580 What implementation of lisp are you using? The error should be that I was assumed special, since it wasn't declared with the lambda. |