Sean and Lee:
In general, I have considered the difference between Aquamacs and GNU
Emacs to be that the former prioritizes computer-user interaction via
mouse, command-bars and menus (which requires a lot of hand movement
between keyboard and mouse, but enables the user to dispense with
memor
On Mon, May 7, 2012 at 8:21 PM, Lee Spector wrote:
> My recollection was that Aquamacs had more support for Mac OS native menus
> and other GUI elements too...
Probably, yes. I installed it last year and I seem to recall some
native chrome and a menubar - but then folks recommended using Emacs
2
On May 7, 2012, at 11:02 PM, Sean Corfield wrote:
> On Mon, May 7, 2012 at 6:57 PM, Lee Spector wrote:
>>
>> FWIW I've often thought that it would be really wonderful to have real
>> Aquamacs support/polish for swank-clojure/SLIME, especially if it could be
>> packaged in form that permitted s
On Mon, May 7, 2012 at 6:57 PM, Lee Spector wrote:
> On May 7, 2012, at 3:10 PM, Larry Travis wrote:
>> If you are not into the intricacies of Emacs multi-key chording, using
>> Aquamacs helps a bit. (Despite the statement in the README that
>> "Swank-clojure and SLIME are only tested with GNU E
On May 7, 2012, at 3:10 PM, Larry Travis wrote:
> Lee's comments ring true for me so let me extend them.
>
> Before I discovered Clojure, my experience as a programmer had been mainly in
> the area of artificial-intelligence experimental programming. I was once a
> reasonably proficient Lisp
>Provided examples look very much like
https://github.com/michaelklishin/urly. Does e-f handle
>relative resolution, parsing of broken (technically invalid) URLs?
Yes, it handles relative resolution, as well as normalizing paths:
user> (normalize-path "http://www.test.net/some/uri/../path/./her
On 07/05/12 23:34, Softaddicts wrote:
I am guessing here, Multics ? DOS/360 ? MVS ? NOS/BE ? TOPS-10/20 ?
RSX-11 ? RT-11 ? VMS ? U*x ? Did I left any ? Oh, I forgot MS-DOS...
:)
...for the love of god!!! :-X
Jim
--
You received this message because you are subscribed to the Google
Groups "
I am guessing here, Multics ? DOS/360 ? MVS ? NOS/BE ? TOPS-10/20 ?
RSX-11 ? RT-11 ? VMS ? U*x ? Did I left any ? Oh, I forgot MS-DOS...
:)
Luc
> On 07/05/12 21:59, Aaron Cohen wrote:
> > You invoke your multimethod with 2 arguments. You need to change your
> > dispatch function to take 2 argu
Ok, a couple of things...
I think we can all agree that if there is one thing that OO is doing
right is polymorphism (well...almost!)...the whole notion of
multiple-dispatch allows us to make decisions on a higher level - one
closer to our mental perspective...personally, whenever i see some p
On Monday, May 7, 2012, Jim - FooBar(); wrote:
> On 07/05/12 21:59, Aaron Cohen wrote:
>
>> You invoke your multimethod with 2 arguments. You need to change your
>> dispatch function to take 2 arguments (it can ignore them if you don't need
>> them).
>>
>
> Thanks Aaron - it did the trick! I did n
On 07/05/12 21:59, Aaron Cohen wrote:
You invoke your multimethod with 2 arguments. You need to change your
dispatch function to take 2 arguments (it can ignore them if you don't
need them).
Thanks Aaron - it did the trick! I did not realize that multi-methods
cannot be overloaded...
Also..
The function passed to (defmulti) must take the same args as (defmethod).
Try this:
(defmulti halt
(fn [_ _]
(let [os (System/getProperty "os.name")]
(if (.startsWith os "Mac OS") :Linux (keyword os)
AJ
On Mon, May 7, 2012 at 4:53 PM, Jim - FooBar(); wrote:
> Following my earl
On Mon, May 7, 2012 at 4:53 PM, Jim - FooBar(); wrote:
> Following my earlier post, i tried converting the working shutdown
> function into a multi-method in order to make it cleaner to read...
> However for some reason the compiler is complaining and i can't pinpoint
> wheere the problem is! Th
Following my earlier post, i tried converting the working shutdown
function into a multi-method in order to make it cleaner to read...
However for some reason the compiler is complaining and i can't pinpoint
wheere the problem is! This is the multi-method:
-
On Mon, May 7, 2012 at 12:13 PM, John Gabriele wrote:
> I updated the [Brief Beginner's
> Guide](http://www.unexpected-vortices.com/clojure/brief-beginners-guide/index.html).
> Some changes:
This looks like a useful resource; thanks. A few notes:
* Most of the "Distributing" page repeats `lein h
Hi,
I updated the [Brief Beginner's
Guide](http://www.unexpected-vortices.com/clojure/brief-beginners-guide/index.html).
Some changes:
* updated for Leiningen 2 and Clojure 1.4
* now has syntax highlighting for any Clojure code therein
* added notes about reloading code in the repl while wo
Lee's comments ring true for me so let me extend them.
Before I discovered Clojure, my experience as a programmer had been
mainly in the area of artificial-intelligence experimental programming.
I was once a reasonably proficient Lisp programmer, but pre-CL and
pre-CLOS, that is, mainly using
Good stuff... :-)
Jim
On 07/05/12 19:51, Armando Blancas wrote:
Can someone please verify that it works on windows as well???
It works on XP.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googleg
>
> Can someone please verify that it works on windows as well???
>
>
It works on XP.
--
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 - pl
Well, clojure.java.shell/sh did the trick...thanks for your time guys!
The correct function now is:
---
(defn shutdown-pc [root-pwd minutes-after]
(let [op-system (System/getProperty "os.name")]
(cond
(or (.star
On 07/05/12 16:32, Craig Brozefsky wrote:
"Jim - FooBar();" writes:
In preference to using Runtime/exec, you can use
clojure.java.shell/sh and write your password to the stdin of the
process using its :in argument.
Now that sounds more sensible but it means that the consumer has to
have cloju
"Jim - FooBar();" writes:
>> In preference to using Runtime/exec, you can use
>> clojure.java.shell/sh and write your password to the stdin of the
>> process using its :in argument.
>
> Now that sounds more sensible but it means that the consumer has to
> have clojure...what if i was to aot-compi
So you mean something like :
(str
"#!/bin/bash echo " root-pwd " |" " sudo -S shutdown -h +" minutes-after)
?
Jim
On 07/05/12 16:20, Moritz Ulrich wrote:
I'm not familiar with .exec, so this is a guess:
What you try to do is piping some text to some other program. This is
a shell feature, a
On 07/05/12 16:16, Craig Brozefsky wrote:
You should checkout proces output to make sure, but I'm betting that
sudo is opening a tty to read the password and not getting it from
stdout. The properly solution here, here, may be to define shutdown as
a sudo action for your user ID which does not r
I'm not familiar with .exec, so this is a guess:
What you try to do is piping some text to some other program. This is
a shell feature, and I think .exec doesn't start a shell so you just
run 'echo' with some arguments. Try running a shell withing exec,
passing the commands as an argument to the s
The :refer-clojure clause has fixed my problem; however, I have 22+
symbols that I need to exclude in every namespace. Is there a way that
I can ease this exclusion, as this code is a library that I'll be
including in numerous files (and I'd like to have a form to simplify
using it).
I am not sure
On Mon, May 7, 2012 at 11:08 AM, Jim - FooBar(); wrote:
> Hello everyone,
>
> I was just messing about with the following function and cannot figure out
> why it won't work...
> I know that the command I'm passing to the runtime object is a valid unix
> command...i can execute it on my terminal no
"Jim - FooBar();" writes:
> -
> (defn shutdown-pc [root-pwd minutes-after]
> (let [op-system (System/getProperty "os.name")
> enviroment (Runtime/getRuntime)]
> (
Hello everyone,
I was just messing about with the following function and cannot figure
out why it won't work...
I know that the command I'm passing to the runtime object is a valid
unix command...i can execute it on my terminal no problem! Java however
refuses send the "halt" signal to my ubun
On May 7, 2012, at 12:37 AM, HelmutKian wrote:
> Hey there,
>
> I'm a fairly experienced Common Lisp programmer. By that I mean I've read
> PAIP, On Lisp, Let Over Lambda, and written several "real world" CL
> applications and taught the principles of FP using Racket as a TA.
>
> Now I'm l
Hi again,
Am Montag, 7. Mai 2012 16:26:48 UTC+2 schrieb Meikel Brandmeyer (kotarak):
>
>
> (ns piplin.test.math
> (:refer-clojure :exclude [not=])
> (:use ...)
> (:import ...))
>
>
You should do the same in piplin.math, btw.
Kind regards
Meikel
--
You received this message because you a
Hi,
Am Montag, 7. Mai 2012 16:15:44 UTC+2 schrieb dgrnbrg:
>
> I haven't been able to figure out how to consistently repro it--it
> happens when I evaluate it with VimClojure, and sometimes from the
> lein repl, but I don't have a clear repro case :(. Here's the
> repository that the code live
Your ns-statement doesn't exclude clojure.core. When :refer-clojure
isn't present, it refers clojure.core by default, even when you
require it prefixed. Take a look at the documentation:
http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/ns
On Mon, May 7, 2012 at 4:15 PM, Davi
Hello Clojurians,
I do not understand why this error happens. It appears to not want me
to refer to not= after it's been referred to once before, even though
it's the same not= that I'm referring to! I have tried using
refer-clojure instead of require to no avail.
I haven't been able to figure out
Well, if you already know CL and can understand bit of Java (for
interop), you're good to go!!!
Make sure you know about Clojure's immutable data-structures before
anything else...this is the BIG difference between Clojure vs CL
(Clojure wins here!) other than that, prepare yourself for a wond
I'd recommend The Joy of Clojure. You'll probably be able to skip some early
chapters, but overall I feel like its the right book for someone with a decent
working knowledge of lisp.
Sent from my iPad
On May 7, 2012, at 12:37 AM, HelmutKian wrote:
> Hey there,
>
> I'm a fairly experienced C
Hello,
Unfortunately I missed David's thread announcing accepted GSoC projects
while I was moving and without internet so i wanted to introduce my self
and my project. First off though, like the other accepted students I am
extremely grateful to Google Summer of Code but most of all to the
Hey there,
I'm a fairly experienced Common Lisp programmer. By that I mean I've read *
PAIP*, *On Lisp*, *Let Over Lambda*, and written several "real world" CL
applications and taught the principles of FP using Racket as a TA.
Now I'm looking to learn Clojure. What would be the best resource
On Sunday, May 6, 2012 6:36:41 AM UTC-6, zyboost wrote:
>
> why call DocumentHelper.createDocument(string name) error?
>
dom4j's DocumentHelper.createDocument either takes no arguments, or an
Element argument—there's no createDocument() method for a String argument.
http://dom4j.sourceforge.n
Walter Tetzner:
> The source and some documentation (in the README) can be found at
> https://github.com/wtetzner/exploding-fish.
Provided examples look very much like https://github.com/michaelklishin/urly.
Does e-f handle
relative resolution, parsing of broken (technically invalid) URLs?
MK
Hi,
I have released syntactic-closure 0.1.0, a Clojure library that
provides
some facilities to define hygienic macros with syntactic closures.
It aims to implement a hygienic macro system interoperable with
Clojure's
macro system.
It's available from Clojars as [syntactic-closure "0.1.0"]. Pleas
Hey
What's the plan for http://clojure.org/libraries?
Maybe some form of "deprecated" warning?
/Kevin
--
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 ar
Ah, thanks. It just seemed like there should be something that did this!
- D
On Mon, May 7, 2012 at 7:38 PM, David Powell wrote:
>
> Clojure doesn't seem to explicitly escape non-printable characters in
> String literals when you try to print them.
> You could always do it yourself with somethi
Clojure doesn't seem to explicitly escape non-printable characters in
String literals when you try to print them.
You could always do it yourself with something like:
(require 'clojure.string)
(defn escape-nonprintable [s]
(clojure.string/join
(map (fn [c] (if (Character/isISOControl c)
44 matches
Mail list logo