Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-11 Thread George Oliver
> > > I'd also love to see a custom domain for this as well. I'm happy to pay > for it if no one else will. How about clj-docs.org or clj-doc.org (which > are available)? I do see clojuredoc.org is available but could easily be > confused with clojuredocs.org > There's also clojure-doc.org.

Re: [ANN] Grimoire 0.2.0

2014-07-11 Thread George Oliver
Great UI improvement, nice work! -- 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 fro

Re: Game logic with Clojure

2014-06-23 Thread George Oliver
On Monday, June 23, 2014 12:54:56 PM UTC-7, Majen Ful wrote: > > > Could you give me some tips and lead me to the right things to do. > > There's also this often referenced series of posts that might help, http://prog21.dadgum.com/23.html -- You received this message because you are subscrib

Re: Leiningen Clojure REPL in Windows doesn't accept arrow keys.

2014-05-04 Thread George Oliver
Arrow keys (left/right movement and up for history) on my lein repl in Windows XP works fine. Sounds like something on your system. -- 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 th

Re: cloure-mode indenting (or not)

2013-10-11 Thread George Oliver
On Friday, October 11, 2013 2:33:54 PM UTC-7, naipmoro wrote: The other strange thing, auto-indent no longer works; I have to hit the TAB > key after ENTER to get indentation. I can't believe *that* was > intentional (famous last words). So something must've broke. > I think it was intention

Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-06 Thread George Oliver
On Sunday, October 6, 2013 11:15:26 PM UTC-7, George Oliver wrote: > > > I could be wrong but my understanding is that the browser is just > connecting to your cljs repl which actually is in the 'clojure repl'. > Certainly if you refresh the page state built up in the

Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-06 Thread George Oliver
On Sunday, October 6, 2013 1:26:21 PM UTC-7, Tim Visher wrote: > > > That sounds really cool. I was not aware that Austin could do this. Do > you have any pointers to documentation about it? Again, my model of > how the system works is that the browser _is_ the repl, so refreshing > the browse

Re: how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-10-02 Thread George Oliver
On Sunday, September 29, 2013 8:12:23 PM UTC-7, Tim Visher wrote: Now with nrepl's ability to have multiple sessions open at once (an > ability I haven't taken any advantage of personally), you should be > able to have a JVM nrepl open _and_ a browser repl nrepl session, both > of which would

Re: Problems starting with Clojure and Leiningen and Light Table

2013-10-01 Thread George Oliver
To add to Shantanu's directions, if you receive an error when doing mkdir in C:\ it's probably because your user account doesn't have permissions to create directories there. At that point you have two basic options: 1) use a user account with admin privileges to do all your work (not recommend

how to reload Clojure files while connected to Clojurescript browser repl in Emacs?

2013-09-29 Thread George Oliver
I sent this to Clojure-tools before I realized that list is not really for support questions, apologies for the crosspost. I'm hoping someone can help me fit the missing piece in this workflow: (this works) 1. nrepl-jack-in in Emacs 2. launch web server from nrepl, modify Clojure files and rel

Re: Design/structure for a game loop in clojure

2013-05-20 Thread George Oliver
On Sunday, May 19, 2013 6:02:23 PM UTC-7, Daniel Wright wrote: > > thoughts/guidance appreciated! > > You might get something out of http://clojurefun.wordpress.com/2013/03/ -- "In this (somewhat extended) post I’m going to describe my experiences using Clojure for the 7DRL challenge – with di

Re: noob question about try/catch

2013-04-26 Thread George Oliver
On Friday, April 26, 2013 8:01:45 AM UTC-7, larry google groups wrote: > > > I thought I had written the try/catch blog so that this exception would be > logged, but otherwise ignored. > > Instead, this exception stops my app cold -- the app stops. > > > See http://clojure.org/special_forms#tr

Re: Advice on state handling for a multiplayer poker app

2013-04-11 Thread George Oliver
On Thursday, April 11, 2013 2:35:03 PM UTC-7, James Adams wrote: > > > How would you do this? All thoughts welcome and appreciated > To simplify matters you could think about decoupling the incoming game events from the state changes; for example, have a queue hold game events and then serial

Re: how to create dependncies for mysql in clojure

2013-04-07 Thread George Oliver
On Sunday, April 7, 2013 4:03:46 PM UTC-7, jayvan...@gmail.com wrote: > > I want to access mysql. it is in c:\program files as mysql > what is the rule to create a dependicy statement " > [mysql/mysql-connector-java "5.1.23"]]". > I have two books "Practical Clojure" > "Programming Clojure"

Re: Invoke a specific multimethod

2013-03-29 Thread George Oliver
On Friday, March 29, 2013 6:19:19 PM UTC-7, JvJ wrote: > > Is it possible to invoke a particular multimethod and bypass the dispatch > function? > > For instance, suppose that I have a multimethod with a dispatch value of > ::foo, and it's a really complex method. > > Now, I want all cases wher

Re: Debug prints don't execute on multimethod dispatch functions

2013-03-24 Thread George Oliver
On Sunday, March 24, 2013 3:01:53 PM UTC-7, George Oliver wrote: > > > > Not sure, but is it possible you're running afoul of a redefined defmulti > not overriding the original defmulti in the REPL? Try clearing the defmulti > with a (def dispatch-fn nil) and then

Re: Debug prints don't execute on multimethod dispatch functions

2013-03-24 Thread George Oliver
On Sunday, March 24, 2013 12:49:40 PM UTC-7, JvJ wrote: > > > I started using the meta-type function for dispatch, but then started > using debug-switch. It actually works fine, running the appropriate > version of the method, but the println doesn't execute. Does anyone know > why? > > Not

Re: Coding while running the program

2013-03-23 Thread George Oliver
Also, I forgot to mention this, http://www.lighttable.com/ -- -- 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 you

Re: Coding while running the program

2013-03-23 Thread George Oliver
On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote: > > Hi! > > I saw this video http://www.youtube.com/watch?v=BES9EKK4Aw4 of Notch > coding on Minecraft while the game was running, and of course seeing the > changes in the running program. He used some kind of debug mode in his I

Re: Clojure HTML5 Game Development

2013-03-12 Thread George Oliver
On Tuesday, March 12, 2013 1:34:21 PM UTC-7, Reginald Choudari wrote: > > Any resources/people dedicated to game development using > Clojure/Clojurescript? > I have made a couple games using HTML5/Javascript with the canvas element, > and seeing that Clojurescript can replace Javascript coupled

Re: Windows Installation

2013-03-08 Thread George Oliver
On Friday, March 8, 2013 7:55:59 PM UTC-8, James Ashley wrote: > > > But the bare-bones part of the installation process Just Worked. > > I agree, things are working well on Windows lately! It's pretty great. I've never bothered with cygwin. Some lightweight alternatives might be the bash shell

Re: does a future call redirect printlns?

2013-03-06 Thread George Oliver
I found the problem -- I was blocking on a select call made from the while loop, so my shutdown function wasn't cleaning up properly (not to mention my while test was a little goofy!). Adding a timeout to the select fixes it. -- -- You received this message because you are subscribed to t

does a future call redirect printlns?

2013-03-05 Thread George Oliver
hi, I could use some help figuring out why this is working the way it is. It seems like a future function call is rebinding *out* so I don't see some printlns at the repl. I have a couple of functions for a server like this, (defn run [handler] (let [server (create-server) se

beginner would like help with refactoring some functions in basic echo server

2013-03-03 Thread George Oliver
hi, I'm working on a basic single-threaded echo server for fun and learning (short-term goal is to have a simple chat server), and I'm at a point where I'd appreciate some feedback on refactoring a few functions. I've put them in a paste here, https://www.refheap.com/paste/12068 with some comm

libs and resources for upcoming 7 day roguelike challenge?

2013-03-03 Thread George Oliver
hi, I've made a short list of Clojure resources for the upcoming 7 day roguelike challenge [1] [2], but I feel like I'm missing a few libs and games I've seen mentioned before. If anyone could jog my memory I'd appreciate it. In particular I feel like I saw a cljs roguelike link on Twitter la

wrapping multimethods?

2013-02-26 Thread George Oliver
hi, I'm interested in what techniques are useful for adding functionality to multimethods without modifying the defmethod itself. A while back I asked a similar question [1] and there are good answers there, but recently I've been looking at simple concepts like Ring middleware and wrapping fu

how to understand differences in results for nrepl.el interrupt evaluation (C-c C-b)?

2013-02-15 Thread George Oliver
hi, I am experimenting at the repl with a while form. For now I just write it as (while true ...) and interrupt it with C-c C-b. This is for a basic socket server. Recently I noticed a difference in how C-c C-b behaves that I don't understand. Normally when I interrupt, the repl returns immedi

Re: recommended way to write loop where a binding depends on a previous 'useless binding' operation?

2013-02-12 Thread George Oliver
On Tuesday, February 12, 2013 9:52:35 AM UTC-8, Evan Mezeske wrote: > > The big advantage to my reorganization of your loop is that it doesn't > have an unused "x" binding. [] > Good points Evan, thank you! -- -- You received this message because you are subscribed to the Google Groups

Re: recommended way to write loop where a binding depends on a previous 'useless binding' operation?

2013-02-12 Thread George Oliver
@Baishampayan, I'm just experimenting at the repl right now so there's no stopping condition yet. It's a socket server. On Monday, February 11, 2013 11:56:22 PM UTC-8, Evan Mezeske wrote: > > Generally when you are calling functions that have (and depend on) > side-effects, you will end up usin

recommended way to write loop where a binding depends on a previous 'useless binding' operation?

2013-02-11 Thread George Oliver
hi, I have a loop that looks like this, (loop [x (a-function) y (another-function)] ; another-function must be called after a-function () ; x is not used in body (recur (a-function) (another-function))) This gets the job done (my a-function is a select() call which I don't use th

Re: Clojure Wiki

2013-02-08 Thread George Oliver
There might be some good information here to carry over, http://www.gettingclojure.com/start . -- -- 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 mode

techniques to work with Java mutable collections?

2013-02-04 Thread George Oliver
Hello, I'm writing a single-threaded TCP server for a bit of fun and learning, so I'm dealing with java.nio. I'm wondering how people here like to deal with mutable Java collections from Clojure. For example, I need to use java.nio.Selector and its Set of selected-keys (the channel sockets regi

Re: Installing Clojure on Windows 7

2013-01-29 Thread George Oliver
> On Thursday, January 24, 2013 12:56:59 PM UTC-5, > sampso...@googlemail.comwrote: >> >> Apparently installing a development environment for Clojure on Windows 7 >> is very difficult. What is the best way, that has a chance that it might >> work? >> > I just wanted to repeat the link that P

Re: Installing Clojure on Windows 7

2013-01-27 Thread George Oliver
On Saturday, January 26, 2013 7:01:34 PM UTC-8, Ravi Sundaar wrote: > > I am running into problems getting emacs (24.2) to work with clojure as > well on windows 7. I have installed leiningen fine. Clojure (1.4.0) itself > seems to be behaving. The packages seem to install fine in emacs - no >

Re: Installing Clojure on Windows 7

2013-01-24 Thread George Oliver
On Thursday, January 24, 2013 10:22:41 AM UTC-8, Sean Corfield wrote: > > Having now setup an Emacs-bsaed dev environment on XP and multiple > Windows 8 machines, I no longer think it's as difficult as some people > make it out to be. > Sean, have you been using lein trampoline successfully

Re: EOF when executing lein trampoline cljsbuild repl-listen

2012-12-23 Thread George Oliver
On Sunday, December 23, 2012 3:30:53 PM UTC-8, Mark wrote: > > > I figure the reader is trying to load the project.clj but I'm executing > from the project's root directory. I'm using lein 2.0 preview 10 on a > Windows 7 machine if that matters. > This might be a Windows + trampoline problem

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread George Oliver
On Monday, November 19, 2012 9:34:29 PM UTC-8, puzzler wrote: > > Ugh, I should have guessed. My attempts to do clojurescript several > months back were foiled by trampolining problems, but that was on lein > 1.7. I was under the impression those problems had been fixed in lein 2.0, > so I h

Re: [ANN] new book: "ClojureScript: Up and Running"

2012-11-19 Thread George Oliver
On Monday, November 19, 2012 8:18:16 PM UTC-8, puzzler wrote: > > > Then, at the command prompt I typed: > lein trampoline cljs-build repl-rhino > and got the following error message. I'm running on Windows. Any idea > what's going wrong? > Thanks. > > > These kinds of errors usually mean a f

architecture for distributed game server?

2012-11-18 Thread George Oliver
hi, apologies if this is slightly off-topic but I'd appreciate advice on something I don't have much experience with. I'm writing a mud (multiplayer text game) where you can write the game logic in different programming languages; for example, the combat system in Ruby and the movement system

Re: newbie question regarding maps

2012-09-25 Thread George Oliver
On Monday, September 24, 2012 3:04:42 AM UTC-7, Mond Ray wrote: > > > As you can see the REPL gives me an error stating that the keys must be > Integers. Is that right? Or is my call process faulty? > > I think the problem is that wish-lists is a vector, so you need a key for the vector first

Re: clojure-clr question

2012-09-09 Thread George Oliver
On Sunday, September 9, 2012 5:20:13 PM UTC-7, James Ashley wrote: > > I don't want to add noise to this group. Is there somewhere more > appropriate to ask? (The wiki on the site doesn't seem to fit). > No apologies necessary, this is the list according to the clojure-clr readme. -- You

Re: deployment

2012-08-24 Thread George Oliver
On Friday, August 24, 2012 4:03:32 AM UTC-7, David Della Costa wrote: > > > What I ended up feeling like was, these are the options more or less: > > Thanks David, this plus your github link is a great write-up and exactly what I was hoping to find by posting to the list. Regarding #3, if you'r

deployment

2012-08-17 Thread George Oliver
hi, I'm a Clojure beginner working on a web project and starting to think about deployment. Currently I host my project in a local VM and have a small VPS for public testing. Looking down the road I'd like a more flexible hosting solution. It seems like the hosting landscape is changing fast

Re: auxiliary methods like :before and :after for multimethods?

2012-07-27 Thread George Oliver
On Friday, July 27, 2012 12:06:33 PM UTC-7, Vinzent wrote: > > robert-hooke actualy doesn't work with multimethods afaik. You can try my > new library (https://github.com/dnaumov/hooks), but it's alpha (no docs > yet, sorry). Yes, from the robert-hooke readme, "Adding hooks to a defmulti is

auxiliary methods like :before and :after for multimethods?

2012-07-26 Thread George Oliver
hi, I'm wondering if anyone has extended multimethods with auxiliary methods like CL-style :before and :after, and if not what a suitable substitute might be. thanks, George -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote: > > > Thanks; do you know of a project that uses the latest cljsbuild with > lein 2 I could try to test? > > Not off the top of my head. Unfortunately, github's search tool is junk, > otherwise it might be possible to find somethin

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
On Sunday, July 15, 2012 1:17:04 PM UTC-7, Evan Mezeske wrote: > > Since Leiningen 2.x has not yet been released, lein-cljsbuild uses > Leiningen 1.x for both the example projects, and building the plugin > itself. The problem you ran into is a difference between Leiningen 1.x and > 2.x. > >

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
On Sunday, July 15, 2012 12:00:57 AM UTC-7, George Oliver wrote: > > hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the > simple example at > https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple > I think I found a

lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the simple example at https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple and then did $ lein cljsbuild once $ lein ring server-headless 3000 Which gives the error, C:\george\work\simple>lein ri

Re: Help getting Clojure/Leiningen 2.0 building with LWJGL

2012-07-10 Thread George Oliver
On Sunday, July 8, 2012 7:26:05 PM UTC-7, Karl Smeltzer wrote: > > > 3. Added :native-path "native" to my project.clj, although I'm not sure > this is correct or working the way I expect > > Have a look at this, http://stackoverflow.com/questions/10558795/using-lwjgl-in-leiningen-clojure -

Re: any advice for translating the book "The Joy of Clojure"?

2012-04-22 Thread George Oliver
On Apr 22, 10:40 am, Zhitong He wrote: > Hi, all. I am new to Clojure and feel exciting playing with it. > > Recently, I read the book "The Joy of Clojure", and got a strong > feeling toward translating the book from English to Chinese, to > introduce Clojure to more programmers in China. I thi

Re: Newbie's Guide to Learning Clojure

2012-03-29 Thread George Oliver
On Mar 28, 10:16 am, Elango Cheran wrote: > Hi everyone, > On Gregg's suggestion, I want to share a writeup about how total beginners > can learn Clojure in a minimally painful way.  I'd welcome any comments, > suggestions, etc. You could add a link to this guide, http://www.unexpected-vortice

Re: Returning Success

2012-03-20 Thread George Oliver
On Mar 19, 3:56 am, Narvius wrote: > I am writing a game in Clojure, and I often need some functions to return > whether they succeeded in doing what they are supposed to do > > [] > > I see several ways to achieve what I want, that is to return both the new > world state and success status. >

Re: Clojurescript One Errors

2012-03-19 Thread George Oliver
On Mar 16, 10:19 pm, John Collins wrote: > I copied the clojurescript one project and made changes to the html files. > > When I do (go) after `lein repl` I get errors in the browser about not > being able to resolve some namespaces. And also the wiki makes no mention > how to compile the projec

beginner help with views in ClojureScript One?

2012-03-18 Thread George Oliver
hi, I'm starting to modify the One sample application and can't get the hang of rendering a new view. I've tried looking at some forked projects but am coming up short. I created a basic template /templates/game.html: <_within file="application.html"> My game goes here.

Re: beginner help with views in ClojureScript One?

2012-03-18 Thread George Oliver
On Thu, Mar 15, 2012 at 8:50 PM, George Oliver wrote: > hi, I'm starting to modify the One sample application and can't get > the hang of rendering a new view. I've tried looking at some forked > projects but am coming up short. > This is solved -- looks like I saved

how to include external lib with :foreign-libs in ClojureScript One?

2012-03-18 Thread George Oliver
hi, I think I'm almost there but I can't figure out how to include an external js lib in a cljs one project. What's the correct way to do it when working in development mode? I have a dependency on unicodetiles.js in project.clj: :git-dependencies [ ["https://github.com/tap

Re: how to include external lib with :foreign-libs in ClojureScript One?

2012-03-18 Thread George Oliver
On Fri, Mar 16, 2012 at 1:09 PM, George Oliver wrote: > hi, I think I'm almost there but I can't figure out how to include an > external js lib in a cljs one project. What's the correct way to do it > when working in development mode? > OK, I just figured out th

how to restart Clojurescript One repl the right way?

2012-03-08 Thread George Oliver
hi, I'm just starting with ClojureScript and ClojureScript One. Sometimes working with One I kill the cljs-repl for whatever reason (something hangs, I make some mistake and can't correct it, etcetera); when I go to restart (by running lein repl again), I then can't restart the cljs-repl. I get, B

Re: Clojurescript One and Websockets

2012-03-01 Thread George Oliver
On Mar 1, 7:51 pm, Brian Rowe wrote: > Hi, > > I'm thinking about using clojurescript one a starting point for a web > game.  I would like to use websockets as the primary communication > mechanism between the browser and the server.  As far as I know Zack > Tellman's Aleph is the only clojure w

Re: Lack in the documentation

2012-02-18 Thread George Oliver
On Feb 14, 9:50 pm, g1i1ch wrote: > It seems > that to fully learn clojure, you first must know java. You can see it > especially in the documentation which is fully java programmer > focused. My problem is that I don't know java and I really don't have > the time to or the desire to learn java

Re: mini mud-client for within emacs-swank

2012-02-17 Thread George Oliver
On Feb 16, 5:03 am, bOR_ wrote: > Started playing with getting an within emacs clojure-based mud client, but > puzzling a bit with parsing the incoming stream. The below works (for > emacs+swank-clojure 1.4.0), but puts a space between every character. When > I try to solve that (for example by

conditional get with feedparser-clj (or another RSS feed parser)?

2011-11-04 Thread George Oliver
hi, I'm making a site similar to clojurls.com (a more dynamic version of my old site ifurls.tumblr.com), so I'm working with feedparser-clj [1]. It doesn't look like feedparser currently wraps the conditional get from RomeFetcher [2], so I'm wondering if there is a Clojure library that does provi