macros - My first Lisp macro; is it leaky?

I've been working through Practical Common Lisp and as an exercise decided to write a macro to determine if a number is a multiple of another number:(defmacro multp(value factor) `(=(rem,value…


Real-world examples of recursion

What are real-world problems where a recursive approach is the natural solution besides depth-first search(DFS)?(I don't consider Tower of Hanoi, Fibonacci number, or factorial real-world problems.…


recursion - Examples of Recursive functions

Can anybody suggest programming examples that illustrate recursive functions? There are the usual old horses such as Fibonacci series and Towers of Hanoi, but anything besides them would be fun.…


How to change an Eclipse default project into a Java project

I checked out a project from SVN and did not specify the project type, so it checked out as a "default" project. What is the easiest way to quickly convert this into a "Java" project? I'm using Eclip…


How to share web content between eclipse projects

While the J2EE module reference feature allows your to create common Java library projects, I can't find a neat way to do this for web content. I have common JSPs, CSS files, JavaScript libraries an…



algorithm - How would you write a program to generate Haiku?

Computer Haiku How would you write a program To make them for you…


Algorithm to compute a Voronoi diagram on a sphere?

I'm looking for a simple(if exists) algorithm to find the Voronoi diagram for a set of points on the surface of a sphere. Source code would be great. I'm a Delphi man(yes, I know...), but I eat C-co…


What is a dynamic language, and why doesn't C# qualify?

Listening to a podcast, I heard that C# is not dynamic language while Ruby is. What is a "dynamic language"? Does the existence of dynamic languages imply that there are static languages? Why is C# a…


java - Can I move maven2 “target” folder to another device?

I would really like to make maven write the "target" folder to a different device(ramdisk), which I would normally consider to be a different path. Is there any maven2-compliant way to do this ? I am…


How do I find gems that depend on a given gem?

Is it possible to search for all gems that rely on a certain rubygem? For example, I'd like to ask for all gems in gemcutter that rely on the test-unit gem. Background: I'm looking to see how other g…




eclipse project add how for maven convert plugin java not