Re: ANN: A Clojure library for the Facebook Graph API - clj-facebook-graph

2011-06-05 Thread Bojan Jovičić
I got latest version of your framework from Github and it works OK. 

I am not sure if this is related to new settings in Facebook App page (I put 
most of them to Disabled now) or some global change. 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: ANN: A Clojure library for the Facebook Graph API - clj-facebook-graph

2011-06-05 Thread Bojan Jovičić
Dear Max,
have there been some changes around Facebook authentication, because now it 
seems as token that is returned is not valid?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: swank-clojure/lein/emacs

2011-06-05 Thread Phil Hagelberg
On Jun 5, 9:09 am, "Bhinderwala, Shoeb" 
wrote:
> I installed clojure-mode from marmalade. I added the following to my
> .emacs file:
>
>   (add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode/")
>   (require 'clojure-mode)

This is not necessary; if you install via marmalade then the autoloads
will handle this for you.

> And also added the following to my lein project.clj file:
>
>   :dev-dependencies [[swank-clojure "1.2.1"]]  

This is a rather old version of swank. You should stick with 1.3.1 at
least.

> When I perform step 3 from within EMACS, and specify the path to my lein
> project.clj file,  I get the following error:
>
>   Starting swank server...
>   cd c:/projects/pasclj && lein jack-in 1187: exited abnormally with
> code 1.

This is probably due to the old swank version.

> Also when I execute the following command "lein swank" from the command
> line, I get the following error:
>
> C:\projects\pasclj>lein swank
> Exception in thread "main" java.lang.IllegalArgumentException: No value
> supplied for key: 4005 (NO_SOURCE_FILE:1)
>         at clojure.lang.Compiler.eval(Compiler.java:5440)
>         at clojure.lang.Compiler.eval(Compiler.java:5414)
>         at clojure.lang.Compiler.eval(Compiler.java:5415)
>         at clojure.lang.Compiler.eval(Compiler.java:5391)
>         at clojure.core$eval.invoke(core.clj:2382)
>         

There's also a bug when mismatched versions are in lib/dev vs ~/.lein/
plugins that can cause behaviour like this. It's best not to put swank
in dev-deps at all but just stick with "lein plugin install". Just
inspect ~/.lein/plugins to make sure only 1.3.1 is in there. I'll
update the readme to explain this issue.

-Phil

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Parsing HTML in clojure

2011-06-05 Thread Myriam Abramson
Me too, starting in October. I still need to get up to speed with Clojure
however.

On Sun, Jun 5, 2011 at 11:04 PM, Andreas Kostler <
andreas.koestler.le...@gmail.com> wrote:

> There's a Java library called HtmlCleaner. You might wanna give that a
> shot.
> Btw, I'm working on quite a similar project so if you like email me and we
> can maybe join forces.
> Andreas
>
> On 06/06/2011, at 11:01 AM, Base wrote:
>
> > hi all,
> >
> > I am working on an app that will parse web pages to do some NLP and
> > statistics.  I am able to parse the HTML using several different tool
> > ( enlive, HTML parser, etc).  However I would like to discard all the
> > rest of the junk in the web page that is not pertinent (I.e. Ads).
> > Does anyone have any experience doing this?  Any tips On how to do
> > this - or even better, tools that you can recommend?   I have been
> > digging around on this for a while now and am stuck!
> >
> > Thanks!
> >
> > Base
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Parsing HTML in clojure

2011-06-05 Thread Andreas Kostler
There's a Java library called HtmlCleaner. You might wanna give that a shot. 
Btw, I'm working on quite a similar project so if you like email me and we can 
maybe join forces.
Andreas

On 06/06/2011, at 11:01 AM, Base wrote:

> hi all,
> 
> I am working on an app that will parse web pages to do some NLP and
> statistics.  I am able to parse the HTML using several different tool
> ( enlive, HTML parser, etc).  However I would like to discard all the
> rest of the junk in the web page that is not pertinent (I.e. Ads).
> Does anyone have any experience doing this?  Any tips On how to do
> this - or even better, tools that you can recommend?   I have been
> digging around on this for a while now and am stuck!
> 
> Thanks!
> 
> Base
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Parsing HTML in clojure

2011-06-05 Thread Base
hi all,

I am working on an app that will parse web pages to do some NLP and
statistics.  I am able to parse the HTML using several different tool
( enlive, HTML parser, etc).  However I would like to discard all the
rest of the junk in the web page that is not pertinent (I.e. Ads).
Does anyone have any experience doing this?  Any tips On how to do
this - or even better, tools that you can recommend?   I have been
digging around on this for a while now and am stuck!

Thanks!

Base

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


RE: swank-clojure/lein/emacs

2011-06-05 Thread Bhinderwala, Shoeb
Yes it is 4005. But I am just using the defaults. Does the problem have 
anything to do with the number 4005?

Again, I am just following simple instructions outlined to get swank running 
using lein, so that I can connect to it using emacs. I am not doing anything 
special or different. As a newcomer to clojure I am just struggling with 
getting a basic setup so I can use a repl in emacs and connect to swank 
launched by lein.

Did anybody face similar problem/error? Are there any more detailed clearer 
instructions anywhere else?

Thanks 
Shoeb

-Original Message-
From: clojure@googlegroups.com on behalf of Ambrose Bonnaire-Sergeant
Sent: Sun 6/5/2011 3:56 PM
To: clojure@googlegroups.com
Subject: Re: swank-clojure/lein/emacs
 
On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb <
sabhinderw...@wellington.com> wrote:

>
> Exception in thread "main" java.lang.IllegalArgumentException: No value
> supplied for key: 4005 (NO_SOURCE_FILE:1)
>

Might be a coincidence, isn't the swank port 4005?

Ambrose

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Best Installation Option

2011-06-05 Thread Sean Corfield
On Sun, Jun 5, 2011 at 12:26 PM, Laurent PETIT  wrote:
> Invert the 2 steps: after having invoked 'lein deps', first update the
> build path in your Eclipse project, then enable Clojure support for
> the project.
> CCW will not add clojure and/or contrib dependency if it already finds
> them in the classpath.

Good to know Laurent. That'll save me a few clicks on each new project
I set up - thanx!
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: swank-clojure/lein/emacs

2011-06-05 Thread Ambrose Bonnaire-Sergeant
On Mon, Jun 6, 2011 at 3:46 AM, Bhinderwala, Shoeb <
sabhinderw...@wellington.com> wrote:

>
> Exception in thread "main" java.lang.IllegalArgumentException: No value
> supplied for key: 4005 (NO_SOURCE_FILE:1)
>

Might be a coincidence, isn't the swank port 4005?

Ambrose

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

RE: swank-clojure/lein/emacs

2011-06-05 Thread Bhinderwala, Shoeb
I tried removing the :dev-dependencies but I am still having the same problem.

I gave up on running clojure-jack-in. However, I am still facing issues running 
"lein swank".

Can someone please help me with "lein swank"?

Here is my project.clj file:

(defproject expclj "1.0.0-SNAPSHOT"
  :description "my description"
  :dependencies [[org.clojure/clojure "1.2.1"]
 [clojure-contrib "1.2.0"]
 [incanter "1.2.3"]])

I am using clojure 1.2.1 and clojure-contrib 1.2.0. I tried removing incanter 
but the problem does not go away.

I installed the lein swank plugin by running the following command:

   lein plugin install swank-clojure 1.3.1

My leinengen version is: 

  Leiningen 1.5.2 on Java 1.6.0_25 Java HotSpot(TM) 64-Bit Server VM

I am running all this on Windows 7 - 64bit.

When I run "lein swank", I get the following error and then my console hangs:

Exception in thread "main" java.lang.IllegalArgumentException: No value 
supplied for key: 4005 (NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5414)
at clojure.lang.Compiler.eval(Compiler.java:5415)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$null_opt.invoke(main.clj:279)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:369)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)

Please can someone from the group help me with this problem. Is there anything 
wrong with my configuration? I simply can't get "lein swank" to work. I haven't 
even tried the emacs integration yet.

Shoeb

-Original Message-
From: clojure@googlegroups.com on behalf of Vijay Kiran
Sent: Sun 6/5/2011 12:42 PM
To: clojure@googlegroups.com
Subject: Re: swank-clojure/lein/emacs
 
I don't think you need to add the :dev-dependency, can you try again by 
removing the line ?

./vijay

On Jun 5, 2011, at 6:09 PM, Bhinderwala, Shoeb wrote:

> I am struggling to setup swank-clojure and connect emacs with a lein swank 
> session.
> 
> I am on Windows XP. I followed the instructions at:
> 
>
> http://clojure02.managed.contegix.com/display/doc/Getting+Started+with+Emacs
> 
> I installed clojure-mode from marmalade. I added the following to my .emacs 
> file:
> 
>   (add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode/")
> 
>   (require 'clojure-mode)
> 
> 
> And also added the following to my lein project.clj file:
> 
>   :dev-dependencies [[swank-clojure "1.2.1"]]  
> 
> I did a "lein deps" to get everything updated. However my problem starts when 
> I try to install swank-clojure from:
> 
>https://github.com/technomancy/swank-clojure
> 
> Again I am following the instructions:
> 
> 1. Install clojure-mode either from Marmalade or from git. ==> DONE
> 
> 2. lein plugin install swank-clojure 1.3.1 ==> DONE
> 
> 3. From inside a project, invoke M-x clojure-jack-in ==> ERROR
> 
> When I perform step 3 from within EMACS, and specify the path to my lein 
> project.clj file,  I get the following error:
> 
>   Starting swank server...
> 
>   cd c:/projects/pasclj && lein jack-in 1187: exited abnormally with code 1.
> 
> Also when I execute the following command "lein swank" from the command line, 
> I get the following error:
> 
> 
> C:\projects\pasclj>lein swank
> 
> Exception in thread "main" java.lang.IllegalArgumentException: No value 
> supplied for key: 4005 (NO_SOURCE_FILE:1)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5440)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5414)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5415)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5391)
> 
> at clojure.core$eval.invoke(core.clj:2382)
> 
> ..
> 
> On my other machine which runs Windows 7, I see the same error above from 
> within Emacs when I invoke M-x clojure-jack-in and specify the path to my 
> lein project.clj file.
> 
> 
> Anybody else experienced similar issues. Any help guidance greatly 
> appreciated.
> 
> 
> -- Shoeb
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note

Re: Best Installation Option

2011-06-05 Thread Laurent PETIT
Hi,

2011/6/5 Sean Corfield :
> On Sat, Jun 4, 2011 at 11:43 PM, flebber  wrote:
>> Yeah I am using counterclockwise as well.
>
> The easiest process is:
> * lein new myproject
> * cd myproject
> * lein deps
>
> In Eclipse, create new Java project in the myproject folder (it will
> pick up the dependencies downloaded above). Right-click on the project
> and enable Clojure language support. CCW will add Clojure JARs to the
> top level of your project - you don't want this (you want to rely on
> the lib/ folder managed by Leiningen) - so remove the newly added JARs
> and then fix the build path (to remove those 'dead' JARs).

Invert the 2 steps: after having invoked 'lein deps', first update the
build path in your Eclipse project, then enable Clojure support for
the project.
CCW will not add clojure and/or contrib dependency if it already finds
them in the classpath.

>
> At this point, you should be able to right-click on the project and
> Run As... Clojure Application to start a REPL inside Eclipse. You
> should also be able to open and edit src and test files.
>
> If you add dependencies to project.clj, you'll need to do the following:
> * close the REPL in Eclipse
> * at the command line, run lein deps
> * in Eclipse, update the build path to include the dependency changes
> * right-click the project and Run As... Clojure Application to start
> the REPL again
>
> Since you won't change dependencies all that often, this shouldn't be
> too burdensome (but it sure would be nice to automate it in CCW).
>
> HTH,
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
> Railo Technologies, Inc. -- http://www.getrailo.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Best Installation Option

2011-06-05 Thread Sean Corfield
On Sat, Jun 4, 2011 at 11:43 PM, flebber  wrote:
> Yeah I am using counterclockwise as well.

The easiest process is:
* lein new myproject
* cd myproject
* lein deps

In Eclipse, create new Java project in the myproject folder (it will
pick up the dependencies downloaded above). Right-click on the project
and enable Clojure language support. CCW will add Clojure JARs to the
top level of your project - you don't want this (you want to rely on
the lib/ folder managed by Leiningen) - so remove the newly added JARs
and then fix the build path (to remove those 'dead' JARs).

At this point, you should be able to right-click on the project and
Run As... Clojure Application to start a REPL inside Eclipse. You
should also be able to open and edit src and test files.

If you add dependencies to project.clj, you'll need to do the following:
* close the REPL in Eclipse
* at the command line, run lein deps
* in Eclipse, update the build path to include the dependency changes
* right-click the project and Run As... Clojure Application to start
the REPL again

Since you won't change dependencies all that often, this shouldn't be
too burdensome (but it sure would be nice to automate it in CCW).

HTH,
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: swank-clojure/lein/emacs

2011-06-05 Thread Vijay Kiran
I don't think you need to add the :dev-dependency, can you try again by 
removing the line ?

./vijay

On Jun 5, 2011, at 6:09 PM, Bhinderwala, Shoeb wrote:

> I am struggling to setup swank-clojure and connect emacs with a lein swank 
> session.
> 
> I am on Windows XP. I followed the instructions at:
> 
>
> http://clojure02.managed.contegix.com/display/doc/Getting+Started+with+Emacs
> 
> I installed clojure-mode from marmalade. I added the following to my .emacs 
> file:
> 
>   (add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode/")
> 
>   (require 'clojure-mode)
> 
> 
> And also added the following to my lein project.clj file:
> 
>   :dev-dependencies [[swank-clojure "1.2.1"]]  
> 
> I did a “lein deps” to get everything updated. However my problem starts when 
> I try to install swank-clojure from:
> 
>https://github.com/technomancy/swank-clojure
> 
> Again I am following the instructions:
> 
> 1. Install clojure-mode either from Marmalade or from git. ==> DONE
> 
> 2. lein plugin install swank-clojure 1.3.1 ==> DONE
> 
> 3. From inside a project, invoke M-x clojure-jack-in ==> ERROR
> 
> When I perform step 3 from within EMACS, and specify the path to my lein 
> project.clj file,  I get the following error:
> 
>   Starting swank server...
> 
>   cd c:/projects/pasclj && lein jack-in 1187: exited abnormally with code 1.
> 
> Also when I execute the following command “lein swank” from the command line, 
> I get the following error:
> 
> 
> C:\projects\pasclj>lein swank
> 
> Exception in thread "main" java.lang.IllegalArgumentException: No value 
> supplied for key: 4005 (NO_SOURCE_FILE:1)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5440)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5414)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5415)
> 
> at clojure.lang.Compiler.eval(Compiler.java:5391)
> 
> at clojure.core$eval.invoke(core.clj:2382)
> 
> ….
> 
> On my other machine which runs Windows 7, I see the same error above from 
> within Emacs when I invoke M-x clojure-jack-in and specify the path to my 
> lein project.clj file.
> 
> 
> Anybody else experienced similar issues. Any help guidance greatly 
> appreciated.
> 
> 
> -- Shoeb
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

swank-clojure/lein/emacs

2011-06-05 Thread Bhinderwala, Shoeb
I am struggling to setup swank-clojure and connect emacs with a lein
swank session.

I am on Windows XP. I followed the instructions at: 

 
http://clojure02.managed.contegix.com/display/doc/Getting+Started+with+E
macs

I installed clojure-mode from marmalade. I added the following to my
.emacs file:

  (add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode/")
  (require 'clojure-mode)

And also added the following to my lein project.clj file:

  :dev-dependencies [[swank-clojure "1.2.1"]]   

I did a "lein deps" to get everything updated. However my problem starts
when I try to install swank-clojure from: 

   https://github.com/technomancy/swank-clojure

Again I am following the instructions: 
1. Install clojure-mode either from Marmalade or from git. ==> DONE
2. lein plugin install swank-clojure 1.3.1 ==> DONE
3. From inside a project, invoke M-x clojure-jack-in ==> ERROR

When I perform step 3 from within EMACS, and specify the path to my lein
project.clj file,  I get the following error:

  Starting swank server...
  cd c:/projects/pasclj && lein jack-in 1187: exited abnormally with
code 1.

Also when I execute the following command "lein swank" from the command
line, I get the following error:

C:\projects\pasclj>lein swank
Exception in thread "main" java.lang.IllegalArgumentException: No value
supplied for key: 4005 (NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5414)
at clojure.lang.Compiler.eval(Compiler.java:5415)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)


On my other machine which runs Windows 7, I see the same error above
from within Emacs when I invoke M-x clojure-jack-in and specify the path
to my lein project.clj file.

Anybody else experienced similar issues. Any help guidance greatly
appreciated. 

-- Shoeb

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Best Installation Option

2011-06-05 Thread Mark Rathwell
Leiningen, via maven, will handle your clojure dependencies for you, no need
to copy and paste any jar files.  Lein is actually the only thing you need
to install, and it will take care of everything else.

I think the easiest way to start learning about leiningen is reading the
readme and all of the tutorials (all of the *.md files) in the top level of
its git repository:

https://github.com/technomancy/leiningen



On Sun, Jun 5, 2011 at 2:43 AM, flebber  wrote:

> Yeah I am using counterclockwise as well.
>
> Well I guess once I have built clojure and contrib with ant and maven
> I can copy and paste them where I need then use lenigen.
>
> Sayth
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: porting an old project - where to begin?

2011-06-05 Thread Daniel
Penumbra looks interesting.  Prior to heading there, I decided it
would be a good idea to take advantage of all the Processing examples
and see if I could dispell any concerns (Mainly because it packaged
jogl with the download and testing is as easy as clicking a button.
Very pleasant experience).  Any discovery could be pushed to penumbra
or picollo2d or whatever after working out some rudimentary
'understanding'.

Here's some code: https://gist.github.com/1008742

It's supposed to give the user a default view of the board (at an
angle, so that the opponents cards seem further away on the opposite
side - similar to the way most of your 3d chess games have looked).
Currently there is just one card, but imagine lots.  In the default
view the user should be able to mouse over a card and drag it about
the table.  If the user presses 'z' then the 'camera' zooms in (and
into a flat angle) and the user should be able to just pan around by
clicking and dragging.

So, my concerns seem to be valid.  I simply don't know how to do
proper transformations from...what are they called...viewport and
object space coordinates?  Is a wrapper over lwjgl going to fill that
knowledge gap?


On Jun 4, 7:07 pm, MiltondSilva  wrote:
> This,https://github.com/CharlesStain/clj3D, is probably what you are
> looking for. Though I'm not sure how the inputs are handled.
>
> Penumbra (https://github.com/ztellman/penumbra) is a very powerful
> abstraction over opengl and to it's very easy to handle inputs.
>
> On Jun 4, 8:24 am, Daniel  wrote:
>
>
>
>
>
>
>
> > I suppose the noob tag is appropriate ie I was around sometime last
> > year and earlier but RLing got in the way of doing anything useful
> > with this lovely language.
>
> > Anyway, I've got this old project (https://github.com/doubleagent/
> > Magic--legacy- ) which I've recently gained a renewed interest in, and
> > simultaneously am less concerned about the potential legal issues
> > which made me disinterested enough to drop it 4 years ago.  I'm proud
> > that it still builds and runs, but don't take the readme too
> > seriously, and I highly doubt the perl scripts work anymore.  The
> > intent was to write a program which assisted MTG (Magic: The
> > Gathering) players by providing them with robust deck building tools
> > and a way to compete over a network using the honor system.  Several
> > features are still unimplemented, and some were removed in this
> > version because the java2d worked too poorly to accommodate them.
>
> > I'd like to port it to Clojure, but in the process I'd also like to
> > solve some fundamental problems.  More specifically, real estate.  In
> > a real game you would not be able to see any of the cards in great
> > detail, but get an overall view of the board, and be able to inspect
> > cards more closely by zooming and panning (over the whole board - I
> > find Wotc's way of zooming on individual cards undesirable).  This is
> > even more critical when there are a lot of cards on the field eg some
> > decks can blast tokens onto the field which number into the hundreds.
>
> > I'm unsure how to approach this core problem in Clojure.  clj-
> > processing looks interesting, but I would prefer something more high
> > level b/c 3d graphics is difficult for me to wrap my head around.  In
> > particular, mapping a mouse click to the nearest movable object in 3d
> > space and ensuring proper draw updates on the object with dragging
> > *head asplode*
>
> > But I'm sure to be missing plenty.  Suggestions?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en