Re: blip clojure videos from roku
http://blip.tv/clojure/rss was what I needed. I downloaded the clojure videos from there, and then stream them to my roku via Plex. Thanks! On Apr 6, 2012, at 6:54 AM, Aaron Cohen wrote: Is your roku able to play video from the rss feed at http://blip.tv/clojure/rss ? On Thu, Apr 5, 2012 at 7:16 PM, Terrance Davis terrance.da...@gmail.com wrote: I love the videos up at blip.tv/clojure. Is there anyway to watch these episodes from my roku? I already explored every option I could think of, unsuccessfully. I'm hoping someone on the list already figured this one out. -- 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
blip clojure videos from roku
I love the videos up at blip.tv/clojure. Is there anyway to watch these episodes from my roku? I already explored every option I could think of, unsuccessfully. I'm hoping someone on the list already figured this one out. -- 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: Clojure 1.3 Alpha 4
*begin rant* I have yet to see anyone who posts the classic rtfm (even politely) response search previous posts and realize that rtfm responses have already been sent and refrain from sending the same explanation of how to use a mailing list over and over and over. Simple customer service experience teaches that if customers are asking the same questions multiple times, then the documentation is either, hard to find, incomplete, or not clear enough. Improving the docs is a healthier and more productive use of time than starting yet another thread on how to use a mailing list. *end rant* Sorry. Couldn't contain myself ;-) Eric Schulte wrote: Ken Wesson kwess...@gmail.com writes: On Wed, Dec 15, 2010 at 12:51 PM, Eric Schulte schulte.e...@gmail.com wrote: Ken Wesson kwess...@gmail.com writes: Are you honestly suggesting I search the archives It is common courtesy on open-source lists such as this one to check if a question you are about to ask has already been answered. As I believe I already mentioned, if everyone spends a while searching some archives every time they are going to post, this list's traffic will drop to nearly nil. Do we really want that? 1. I disagree with your assertion that traffic would drop to zero, and 2. I would not mind if posts which repeat previous posts were not sent but maybe I'm wrong, and creating a vibrant open-source community is as simple as a thesaurus-equipped script which re-sends old mailing list posts with some synonym replacement. :) -- 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: [OT] Photos from Clojure Conj 2010
Nice pics. I am incredibly jealous of everyone that had the chance to attend. -Terrance Baishampayan Ghose wrote: Hello, I had the pleasure of attending the first Clojure Conj and I have uploaded some photographs that I took there - http://www.flickr.com/photos/ghoseb/sets/72157625254615916/ Enjoy. Regards, BG -- 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
parrot vm
Is anyone working on clojure for the parrot vm? -Terrance -- 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: precise numbers
The quick and dirty proof (not formal proof) for 1 = .... 1/3 = .33... 2/3 = .66... 3/3 = .99... Think of 3/3 as 1/3 (that is .3...) times 3. -Terrance Davis www.terrancedavis.com Felix H. Dahlke wrote: On 13/10/10 22:28, David Sletten wrote: On Oct 12, 2010, at 5:44 PM, Brian Hurt wrote: For example, in base 10, 1/3 * 3 = 0.9... It may seem counterintuitive, but that statement is perfectly true. 1 = 0.... That's a good test of how well you understand infinity. I'm clearly not a mathematician, but doesn't 0.9... asymptotically approach 1, i.e. never reaching it? How is that the same as 1? -- 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: Is knowing Java a prerequisite for using Clojure?
I'll add my two cents. You sound like you already program, so basic Java knowledge is useful with Clojure, but not necessary. You can pick up what you need to know as you learn Clojure. You will find hooks into Java are a lot more pleasant than interfacing with C and C++. I'm saying that one from experience. As for first books on Java, Look for Bruce Eckel's Thinking in Java That is absolutely the best book currently available for Java. It is more written for beginner programmers, but would likely work for a more experienced programmer, too. -Terrance Hugh Aguilar wrote: Thanks for the encouragement. I've already got the book. I suppose eventually I will have to learn Java. I have been putting it off because I hear a lot of Java-bashing from programmers, and have also noted that this is generally the impetus for the development of languages such as Clojure and Scala and the dozens of others. On the other hand, Java can't be any more difficult than C or C++ that I already know. With languages such as Factor or Python I am relying on the bindings to C and C++ programs, so with Clojure I would be relying on the bindings to Java programs, which might be an improvement. Can you recommend a book or online resource for learning what I need to know about Java? I saw the book Learning Java with the tigers on the cover and it looked pretty good, but also pretty extensive --- quite a lot to digest there, which might be why they put a large meat- eater on the cover. If anybody is interested, I can tell you what my intended application for Clojure is, and you can tell me about how you would go about such a project. I will just be writing toy programs initially, but I do actually have a specific purpose for Clojure in mind. On Sep 16, 11:34 pm, Krukow karl.kru...@gmail.com wrote: My recommendation would be: Don't wait learning Clojure! Start now, buy Stuart's book Programming Clojure. Once you get hungry for more real problems, start reading up on Java - but don't waste time learning too much about syntax and the many intricacies of Java semantics; stick with the basics: classes, classpath, using jars and standard APIs, etc. Really understanding Java takes forever. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
temp variables best practice
Commonly, I break down complex lines of code into several easy to follow simple lines of code. This results in many temp variables that are not intended to be used anywhere else in the code. Sometimes I see a method reusing common primitives and objects (like ints and Strings), so to prevent verbosity (meaning many unnecessary variable definitions), I define variables named something like 'tmpString' or 'tmpInt' with a local scope and reuse them locally. This is all to prevent verbose hard to read code. I can read through the simplified code ignoring variables with the visual tag of 'tmp'. I also benefit from the simpler code that does not chain several commands in one line. What is the best practice in Clojure? How do I properly break down chained commands? Am I completely missing the zen of FP? ;-) --~--~-~--~~~---~--~~ 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: temp variables best practice
For instance, in Java ... tmpString = JOptionPane.showInputDialog(What is your foobar?); finalFoo = Double.parseDouble(tmpString); instead of ... finalFoo = Double.parseDouble(JOptionPane.showInputDialog(What is your foobar?)); I translate this into Clojure as something like ... (def final-foo (. Double parseDouble (. javax.swing.JOptionPane showInputDialog What is your foobar?))) Obviously this a contrived example, and I didn't compile it to make sure it works. Still, you can easily imagine more complex code having many more levels of indentation. How would I break up the Clojure version in a Clojure-esque manner? On Sat, Sep 12, 2009 at 4:42 PM, Sean Devlin francoisdev...@gmail.com wrote: Could you post an example? It'd be easier to comment on it. On Sep 12, 6:32 pm, Terrance Davis terrance.da...@gmail.com wrote: Commonly, I break down complex lines of code into several easy to follow simple lines of code. This results in many temp variables that are not intended to be used anywhere else in the code. Sometimes I see a method reusing common primitives and objects (like ints and Strings), so to prevent verbosity (meaning many unnecessary variable definitions), I define variables named something like 'tmpString' or 'tmpInt' with a local scope and reuse them locally. This is all to prevent verbose hard to read code. I can read through the simplified code ignoring variables with the visual tag of 'tmp'. I also benefit from the simpler code that does not chain several commands in one line. What is the best practice in Clojure? How do I properly break down chained commands? Am I completely missing the zen of FP? ;-) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
clojure classpaths
Clojure is great. I have begun integrating Clojure v1.0 into my current project. I seem to be missing something real easy, ... It seems like every path I set from java -cp is ignored from inside of REPL, main or calling AOT classes. In fact, when I start Clojure from a directory, I have to explicitly (add-classpath file:///some/path/) from REPL to compile clj files in the same directory that I started Clojure from (or any other directory). The best part is that when I enter... (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader from REPL, I see the proper classpaths, but can't use them until I explicitly add them with (add-classpath ...). I can get around REPL and main classpath issues easy enough, but I must use AOT compiled classes in my project. I need to call compiled classes from my Java code. I just don't know how to force AOT classes to recognize the java.class.path property. I keep finding new ways to print the exception... Caused by: java.io.FileNotFoundException: Could not locate com/genedavis/clojure/testing/test__init.class or com/genedavis/clojure/testing/test.clj on classpath: at clojure.lang.RT.load(RT.java:398) at clojure.lang.RT.load(RT.java:367) at clojure.core$load__5058$fn__5061.invoke(core.clj:3734) at clojure.core$load__5058.doInvoke(core.clj:3733) at clojure.lang.RestFn.invoke(RestFn.java:413) at clojure.lang.Var.invoke(Var.java:346) Any suggestions? Thanks in advance! --~--~-~--~~~---~--~~ 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: clojure classpaths
Thanks. I should probably clarify. I have managed to compile the classes using (add-classpath ). My problem is using the compiled classes. The example code is here: http://clojure.org/compilation Namely... (ns clojure.examples.hello (:gen-class)) (defn -main [greetee] (println (str Hello greetee !))) and, ... (compile 'clojure.examples.hello) and, ... java -cp ./classes:clojure.jar clojure.examples.hello Fred Calling the main method from the clojure.org doc results in the previously mentioned exception (or package/namespace specific exception) when using clojure v1.0 I have called the main method from the command line. I have called it from Java classes. I have called it with the doc's namespace and mine. It all results in the same exception. My Java classes recognize the -cp argument, and the AOT classes throw the file not found exception. Like I said, I must be missing something real simple. I just can't figure out what it is. Thanks again! On Tue, Sep 1, 2009 at 6:46 AM, Meikel Brandmeyerm...@kotka.de wrote: Hi, On Sep 1, 6:58 am, Terrance Davis terrance.da...@gmail.com wrote: It seems like every path I set from java -cp is ignored from inside of REPL, main or calling AOT classes. In fact, when I start Clojure from a directory, I have to explicitly (add-classpath file:///some/path/) from REPL to compile clj files in the same directory that I started Clojure from (or any other directory). For AOT compilation the source files must be reachable as well as the generated .class files. So if you sources are in the src subdirectory and the .class files go to the classes subdirectory, you'll need both subdirectories in the classpath. (Note: with reachable I mean follow the usual convention, namespace foo.bar.baz must be in src/ foo/bar/baz.clj with src in the classpath) Adding . to the classpath should take care of the current working directory. Maybe you can post an example, how you setup your classpath for the JVM and the exact steps to reproduce the error? That makes it easier to help. Sincerely Meikel --~--~-~--~~~---~--~~ 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: clojure classpaths
The details help a lot. I was able to ensure I am doing the same steps with a file not found exception instead of a working file. I notice that the you used 'clojure.jar' whereas I am using 'clojure-1.0.0.jar'. Did you happen to compile your clojure.jar from source? I used the current release download. I am starting to wonder if I need to build from source to get this classpath problem to go away. On Tue, Sep 1, 2009 at 12:05 PM, Krukowkarl.kru...@gmail.com wrote: On Sep 1, 5:03 pm, Terrance Davis terrance.da...@gmail.com wrote: Okay. Here's some additional information. I have tried on OS X 10.6 and Vista and no dice either place. I am NOT This works for me on Mac: krukow:~/examples$ ls -R classes clojure.jar src ./classes: ./src: clojure ./src/clojure: examples ./src/clojure/examples: hello.clj krukow:~/examples$ java -cp clojure.jar:./src:./classes clojure.main Unable to find a $JAVA_HOME at /usr, continuing with system-provided Java... Unable to find a $JAVA_HOME at /usr, continuing with system-provided Java... Clojure 1.1.0-alpha-SNAPSHOT user= (compile 'clojure.examples.hello) clojure.examples.hello user= (clojure.examples.hello.) #hello clojure.examples.he...@dfbabd user= ^D krukow:~/examples$ java -cp clojure.jar:./src:./classes clojure.examples.hello Karl Unable to find a $JAVA_HOME at /usr, continuing with system-provided Java... Unable to find a $JAVA_HOME at /usr, continuing with system-provided Java... Hello Karl! krukow:~/examples$ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---