Trying to scrape multiple files in parallel using proxies and agents

2012-06-24 Thread Folcon
y function, displayed below, takes a proxy-agent (an agent with a vector containing the ip and port of a proxy) and then fetches the url. The problem I'm having is that this does not actually appear to run in parallel. The process seems to hang 10 to 15 url's in. Anyone have any ide

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Folcon
I think I could live with that :)... -- 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

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Folcon
Hi Tim, Personally if you have done or would be interested in doing a quick vid cast of how you progress through your workflow, I think that would be very interesting. Regards, Folcon -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Must a page refresh fire an init event?

2012-01-22 Thread Folcon
l. (I'm waiting for lein integration). It will be a lot easier to understand how things work when I can use my emacs repl :)... Regards, Folcon -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: Must a page refresh fire an init event?

2012-01-21 Thread Folcon
Thanks a lot Daniel, much appreciated! -- 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 unsubscri

Re: Must a page refresh fire an init event?

2012-01-21 Thread Folcon
Actually thinking about this what you are saying seems to be correct, I just realised that the atom is stored on the client, not the server. Is there any cookie functionality I can access from clojurescript? Regards, Folcon -- You received this message because you are subscribed to the Google

Re: Must a page refresh fire an init event?

2012-01-21 Thread Folcon
Hi Daniel, I am aware of that, reading the wiki it appears that Clojurescript One keeps track of state in an atom and I was under the impression that it should be possible to recover the current state from this atom? Maybe I'm mistaken in this however. Regards, Folcon -- You received

Must a page refresh fire an init event?

2012-01-21 Thread Folcon
I'm trying out Clojurescript one, but whenever I refresh the page the init event appears to fire so I lose the current state I'm in. How can I set it so that the init event only resets my state if I don't have any? (I'm intending to have an explicit reset event.) Kind Rega

Re: Rich Hickey: "Simple Made Easy" from Strange Loop 2011

2011-10-21 Thread Folcon
alk he mentions that rules are more simple than conditionals, which I (maybe incorrectly) take to mean that rules can replace conditionals. So what exactly do we mean by rules? Core.logic? And how do they take the place of conditionals? Regards, Folcon -- You received this message because you ar

Re: Rich Hickey: "Simple Made Easy" from Strange Loop 2011

2011-10-21 Thread Folcon
all or many of these ideas. Regards, Folcon -- 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 firs

Re: Oxjure - Oxford Clojure Group

2011-10-14 Thread Folcon
week or the weekend. Folcon -- 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 unsubscri

Re: Oxjure - Oxford Clojure Group

2011-10-09 Thread Folcon
A real world group was more what I had in mind :). Similar to Seajure etc. @Si you are welcome to anything we manage to setup, though I am hoping we will get more interest over the week :). I'm trying to work out a good/convenient place for the gathering. Preferably with a table for laptop carr

Oxjure - Oxford Clojure Group

2011-10-08 Thread Folcon
t the London group and hope to have the opportunity to do so in the future. So I think there is a need for Oxford to have it's own group. Please chime in with thoughts and ideas. I was thinking of setting up a meeting in the next week or two. Folcon -- You received this message because you

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
: clojure.lang.RestFn.invoke(RestFn.java:402) 55: clojure.lang.AFn.run(AFn.java:37) 56: java.lang.Thread.run(Unknown Source) On Aug 11, 1:00 pm, Meikel Brandmeyer wrote: > Hi, > > On 11 Aug., 09:12, Folcon wrote: > > > I've tried using the format shown on the docs which is: &

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I did try that and I get the exception: lib names inside prefix lists must not contain periods Thanks for trying ;) On Aug 11, 12:33 pm, Joop Kiefte wrote: > quote it? > > 2010/8/11 Folcon : > > > > > > > I've tried using the format shown on the docs

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. On Aug 11, 12:06 pm, Folcon wrote: > I'm trying to create an input stream to use with some libraries. I've > b

Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Tha

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-13 Thread Folcon
ode writer says he's failing in writing it. :S I'll need to poke around in it to see how it works. :) On Jul 13, 8:46 am, Mike Meyer wrote: > On Tue, 13 Jul 2010 08:29:00 +0200 > "Heinz N. Gies" wrote: > > > > > > > > > On Jul 13, 2010

Re: A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread Folcon
On Jul 13, 1:36 am, ngocdaothanh wrote: > > Are there any ways to restrict how many resources a user has access to? > > If you use Linux, you see /etc/security/limits.conf. That is useful and I will keep that in mind, however I was thinking of application users, so they would login to the cloju

A DSL for writing scripts which have restricted memory and cpu usage

2010-07-12 Thread Folcon
I want to provide a scripting api into my program which runs server side, but don't want my users to completely use up the resources on my server. Are there any ways to restrict how many resources a user has access to? Perhaps create a sandboxed environment per user which they can execute their scr

Is str supposed to be able to output lazy strings?

2009-12-06 Thread Folcon
I just called str on a function and it outputted: "SELECT * FROM QUERY WHERE TYPE='query' clojure.lang.lazy...@a600e679" if this is expected behavior how do you force it to evaluate the sequence before turning it into a string? Regards, Folcon -- You received this mes

Re: is there a cannonical way to create executable jar files?

2009-10-24 Thread Folcon
for anyone who has this same problem. The only solution that I've gotten so far that works is to use a java file that launches my clojure files. I'm still looking for a better way to do this. Here is the code for the launcher. import java.io.OutputStreamWriter; import java.io.IOException; impor

Re: is there a cannonical way to create executable jar files?

2009-10-16 Thread Folcon
ad feeling it's just loaded a repl as opposed to running my clojure code. Is there any way to get the clojure.main to run init or -main in a specific namespace? Regards, Folcon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

is there a cannonical way to create executable jar files?

2009-10-16 Thread Folcon
dering if it will be neccessary to create a java launcher class that just evaluates my clojure script and then calls the main function? Folcon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: using library.path

2009-10-11 Thread Folcon
Thanks for that! btw, is there a cannonical way to create executable jar files? I'm having some success to make this a web start application but every time I compile I keep getting could not find main class. my namespace contains (:gen-class :main true) with the main function I want to declare

Re: using library.path

2009-10-10 Thread Folcon
I appear to have solved the problem. Actually my main development is using clojure box which is a windows clojure development enviroment that runs in slime/emacs. It appears that you need to load the native files for your operating system to the library path. I'm not sure how operating system inde

using library.path

2009-10-10 Thread Folcon
I'm currently trying to import some slick classes. Namely BasicGame which appears to be the problem. I've tried this in Clojure Box and enclojure both in windows while running Java 6. I get mixed errors when I try calling (import '(org.newdawn.slick BasicGame)). Now I have noticed that calling (i