Re: ClojureScript: catching all javascript exceptions

2012-11-01 Thread Hubert Iwaniuk
In past I used (goog.debug.ErrorReporter/install"logError") It worked great. HTH, Hubert. Steve Buikhuizen wrote: No problem. On the client (cljs) you should: 1. require [goog.debug.ErrorReporter :as reporter] 2. (reporter/install"/er") On the server (I'm using Noir which supplies defpage)

Re: after a few days, my app dies -- how should I diagnose?

2012-10-24 Thread Hubert Iwaniuk
October 23, 2012 7:37:03 AM UTC-4, Hubert Iwaniuk wrote: Not sure if that is a case but could your run your software in some long running shell like tmux or screen. You redirected all standard file descriptors, so it should not be a problem, but it is worth a try. HTH,

Re: after a few days, my app dies -- how should I diagnose?

2012-10-23 Thread Hubert Iwaniuk
Not sure if that is a case but could your run your software in some long running shell like tmux or screen. You redirected all standard file descriptors, so it should not be a problem, but it is worth a try. HTH, Hubert. AtKaaZ wrote: You could save the std out and err to some .log and can ins

Re: Q about eval-and-print function in clojurescript's cljs.repl (repl.clj)

2012-09-19 Thread Hubert Iwaniuk
If you look at cljs counterpart of it you'll see that maps are send as responses, that is why read-string is used. HTH Frank Siebenlist wrote: Sorry - I've answered part of my own Q by reading the read-string doc… nothing is eval'ed of the result - just the first "object" is read. Still un

Re: Browser as an Evaluation Environment error

2012-09-10 Thread Hubert Iwaniuk
Clue here is file:/// protocol. REPL will not work with mixed protocols, if you go to http://localhost:9000/ it will not refer to file:/// HTH, Hubert. goracio wrote: well manual says Once the REPL has started, you will see the message "Starting server on port 9000". At this point, open the

Re: ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread Hubert Iwaniuk
ss the page is be properly served over HTTP from what I can tell. Which won't be the case here. Patch welcome for supporting other BrowserREPL transports that don't have this issue. David Hubert Iwaniuk <mailto:neo...@kungfoo.pl> July 17, 2012 5:22 PM Hello Everyone, Did anyone mana

ClojureScript, Chrome Extension and BrowserREPL

2012-07-17 Thread Hubert Iwaniuk
Hello Everyone, Did anyone managed to get BrowserREPL running within Chrome Extension? I'm having hard time getting it up. Basically what happens for me is CrossPageChannel communication initialization failure both from content script and background. content_script: "Uncaught Error: CrossPageChan

Re: docstrings of if-let and when-let incorrect

2012-05-15 Thread Hubert Iwaniuk
I tried using if-let with multiple binding in past as well. Following least surprise principle, I would like to see support for multiple bindings. Cheers, Hubert. Vinzent May 15, 2012 5:47 PM Or maybe if-let and when-let should support multiple bindings, like the

Re: Clojurescript One and Websockets

2012-03-04 Thread Hubert Iwaniuk
IIRC WebSocket support was not yet released in Google Closure Library. You will need to run against development version of closure-library. For project using it check out: https://github.com/neotyk/ws-cljs/ and live demo: http://lab01.kungfoo.pl:8108/ Cheers, Hubert On Fri, Mar 2, 2012 at 4:51

Re: Looking to help out with an open source project...

2012-03-04 Thread Hubert Iwaniuk
IMHO it is crucial that you contribute to project that you personally find interesting. So I would suggest to follow with learning and most likely you will find a project you want to contribute to. Enjoy, Hubert On Thu, Mar 1, 2012 at 4:46 AM, Sam Garrett wrote: > Hello google Clojure group. >

[ANN] http.async.client v0.4.1 realeased

2012-02-07 Thread Hubert Iwaniuk
http.async.client is Asynchronous HTTP Client for Clojure and just got v0.4.1 release. This release is mainly community contributions. Code: http://github.com/neotyk/http.async.client Docs: http://neotyk.github.com/http.async.client/ Changelog: http://neotyk.github.com/http.async.client/changelog

Re: Colliding hashes

2011-12-31 Thread Hubert Iwaniuk
Should we watch the whole video to see what you mean? At what time is it important? Cheers, Hubert On Sat, Dec 31, 2011 at 1:39 PM, Brian Mosley wrote: > Saw this in a scala mailing list thread: > > http://www.youtube.com/watch?v=R2Cq3CLI6H8 > > Should the clojure hash be fixed? > > -- > You r

[ANN] http.async.client v0.4.0

2011-12-30 Thread Hubert Iwaniuk
http.async.client is Asynchronous HTTP Client for Clojure and just got v0.4.0 release. Code: http://github.com/neotyk/http.async.client Docs: http://neotyk.github.com/http.async.client/ Changelog: http://neotyk.github.com/http.async.client/changelog.html Clojars: http://clojars.org/http.async.clie

Re: Really loving Clooj but..

2011-12-29 Thread Hubert Iwaniuk
Just add (println min) before if-let and you will see what is happening. Hubert. On Thu, Dec 29, 2011 at 10:23 PM, Erlis Vidal wrote: > Hi guys, > > I've using Clooj and following the labrepl but I'm hitting a wall right now. > How can I debug here? > > This the code I want to debug > > (defn mi

Re: Which autodoc dep for clojure 1.3 (and advice on how to solve such questions generally)

2011-11-04 Thread Hubert Iwaniuk
Hi Phil, With "Leiningen 1.6.1.1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM" executing: $ lein plugin install audodoc 0.7.1 fails advising to download artifact by hand. Though searching for it: $ lein search "autodoc AND NOT g:org.clojars*" Shows line with: [autodoc "0.7.1"] A tool to bu

Re: Please try the alphas and betas!

2011-11-02 Thread Hubert Iwaniuk
http://bit.ly/clojure-releases Stuart Halloway wrote: I'd like to second what Bill said...I don't really have the time to setup a clojure build process to test out the 1.4 Alphas/Betas, but if there was a way for me to get to it via lein...I would just target 1.4 for all my day-to-day developmen

October Amsterdam Clojure

2011-09-27 Thread Hubert Iwaniuk
ent in great venue DeZwijger.nl. This year we will have 3 talks: - Cleaner than Java by Cees van Kemenade - Baking a Clojure webapp in 15m by Pepijn de Vos, Hubert Iwaniuk - The Case for Clojure by Uncle Bob Martin Please feel invited and register (we have limited seating) at http://bit.ly/ams-

Re: Why are some Google Closure library files not available in Clojurescript?

2011-08-14 Thread Hubert Iwaniuk
Hi Conrad, You can give a try to my fork: https://github.com/neotyk/clojurescript/tree/35-cl-head And vote on a ticket: http://dev.clojure.org/jira/browse/CLJS-35 I'm using local storage as well as websockets. Cheers, Hubert. On Aug 12, 2011, at 8:34 PM, Conrad wrote: > In case anyone wants t

Re: Silly Chat: Clojure, ClojureScript and WebSockets

2011-08-12 Thread Hubert Iwaniuk
Aleph On Aug 11, 2011, at 11:49 PM, Jimmy wrote: > Whats handling the serverside websockets connections? > > -- > 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 n

Silly Chat: Clojure, ClojureScript and WebSockets

2011-08-11 Thread Hubert Iwaniuk
Good news everyone! Here is a sample Clojure ClojureScript application that uses WebSocket for communication. http://lab01.kungfoo.pl:8108/ Source code: https://github.com/neotyk/ws-cljs/ Nothing really fancy, just a POC kind of thing. Cheers, Hubert. P.S. We are hiring in Amsterdam. -- Yo

Running ClojureScrtipt

2011-07-26 Thread Hubert Iwaniuk
While tinkering with ClojureScript I've created sample that uses WebSockets to communicate between Clojure and ClojureScript. WebSocket support in closure-library is only in SVN for now, so current bootstrap of ClojureScript will not have it. I've patched bootstrap to get ClojureScript running ag

Re: ClojureScript

2011-07-26 Thread Hubert Iwaniuk
Thanks Peter for sharing this. Great workflow! Cheers, Hubert. On Jul 26, 2011, at 6:59 AM, Peter Taoussanis wrote: >> I would also love to know how you set this up in a little more detail. It >> really sounds like an excellent approach… > > Sure: it's not complicated! I'm writing this in a h

Re: ANN: status-codes keyword status codes for compojure

2011-04-01 Thread Hubert Iwaniuk
New version is out v0.2 featuring dependency on latest and greatest of compojure and special response code for today. 418 I'm a teapot Cheers, Hubert Iwaniuk. On Mar 31, 2011, at 11:51 PM, Hubert Iwaniuk wrote: > status-codes allows you to report HTTP Response Status Codes as keywo

ANN: status-codes keyword status codes for compojure

2011-03-31 Thread Hubert Iwaniuk
quot; ..} :status :created}) Enjoy, Hubert Iwaniuk. -- 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 fir

Re: better error messages > smaller stack traces

2011-02-10 Thread Hubert Iwaniuk
Hi, Jeff correct me if I'm wrong but I think you are after something along the following lines. Instead: (defn f [x] {:pre [(some-fancy-validation x)]} ..) To have something like this: (defn f [x] {:pre [^{:msg "here goes description of what has not been valid"} (some-fancy-validation x)]} ..)

Re: http.async.client v0.2.2 released

2011-02-09 Thread Hubert Iwaniuk
(println "close") >(c/close *client*)) >(println "end")) > > > but it didn't help. > Are you using the same java version, clojure version and the same > versions of all libraries > and it does not hang? > There must b

Re: http.async.client v0.2.2 released

2011-02-09 Thread Hubert Iwaniuk
rote: > > On 7 Lut, 19:30, Hubert Iwaniuk wrote: >> Hi All, >> >> Just released v0.2.2 of HTTP Asynchronous Client. > > I have some problem using this library. Having such simple testing > program: > > (ns test.http > (:require [http.async.client :a

Re: http.async.client v0.2.2 released

2011-02-09 Thread Hubert Iwaniuk
for this awesome library! :) > > Las > > 2011/2/9 Hubert Iwaniuk > Hi Takahiro, > > Thank you for your feedback. > Inline are my answers. > > On Feb 9, 2011, at 8:13 AM, Takahiro Hozumi wrote: > > > Hi, > > Thank you for the introduction. Her

Re: http.async.client v0.2.2 released

2011-02-09 Thread Hubert Iwaniuk
t; method function. +1 https://github.com/neotyk/http.async.client/issues/issue/14 > > Thanks. > Thank you, Hubert. > > On 2月8日, 午前3:30, Hubert Iwaniuk wrote: >> Hi All, >> >> Just released v0.2.2 of HTTP Asynchronous Client. >> >> Featuring foll

[ANN] http.async.client v0.2.2 released

2011-02-07 Thread Hubert Iwaniuk
Hi All, Just released v0.2.2 of HTTP Asynchronous Client. Featuring following changelog http://bit.ly/hc9dxt - get-encoding helper works w/o Content-Type header - upgrade async-http-client to v1.5.0 - exposed more configuration options - zero byte copy mode - allow providing your own poll - allo

Clojure Job Opening in Amsterdam area

2011-01-14 Thread Hubert Iwaniuk
Hi Clojurians, My employer Sourcesense is looking for Clojure Developer to hire/contract in Amsterdam area. Please see opening details http://www.sourcesense.nl/careers/#clj Best regards, Hubert Iwaniuk. -- You received this message because you are subscribed to the Google Groups "Cl

Re: problem with stream

2011-01-06 Thread Hubert Iwaniuk
Shameless plug: or use http.async.client http://neotyk.github.com/http.async.client/docs.html#sec-1_2_4_1 (let [resp (c/stream-seq :get url)] (doseq [s (string resp)] (println s))) Cheers, Hubert. On Thu, Jan 6, 2011 at 5:34 PM, Aaron Cohen wrote: > On Wed, Jan 5, 2011 at 5:13 PM, Ken We

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Hubert Iwaniuk
t; sincerely, > --Robert McIntyre > > On Tue, Jan 4, 2011 at 9:57 AM, Hubert Iwaniuk wrote: >> Hi Seth, >> >> Yes I did play with org-mode + babel for clojure. >> It works great :-) >> Just make sure you are using latest and greatest of org-mode. >> >>

Re: Knuth's literate programming "tangle" function in Clojure

2011-01-04 Thread Hubert Iwaniuk
Hi Seth, Yes I did play with org-mode + babel for clojure. It works great :-) Just make sure you are using latest and greatest of org-mode. Cheers, Hubert. On Tue, Jan 4, 2011 at 3:34 PM, Seth wrote: > have you guys checked out org-mode + babel for emacs? This would be an > excellent place to

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Hubert Iwaniuk
Glad I could help, Hubert. On Tue, Sep 14, 2010 at 9:39 AM, Sunil S Nandihalli wrote: > Thanks Hubert, >  That is exactly what I was looking for. > Sunil. > > On Tue, Sep 14, 2010 at 12:54 PM, Hubert Iwaniuk wrote: >> >> Hi Sunil, >> >> Before it gets to

Re: is it possible to check if a "promise" has been "deliver"ed to without blocking?

2010-09-14 Thread Hubert Iwaniuk
Hi Sunil, Before it gets to clojure.core you could use it like that: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L21 Cheers, Hubert. On Tue, Sep 14, 2010 at 8:51 AM, Sunil S Nandihalli wrote: > Hello Everybody, >  Let us say I have something like > (de

Re: Does 'require' with the :reload option have a tendency to build up memory?

2010-09-12 Thread Hubert Iwaniuk
Have you tried class unloading options of JVM? CMSClassUnloadingEnabled and TraceClassUnloading HTH, Hubert. On Sat, Sep 11, 2010 at 9:19 PM, Rayne wrote: > As it turns out, this wasn't a memory leak at all. I decided to see if > I could max sexpbot's memory out by reloading. I got it to rise

Re: http.async.client v0.2.0

2010-09-11 Thread Hubert Iwaniuk
t 10:07 AM, Shantanu Kumar wrote: > One question - how is the (auto)doc generated? > > Regards, > Shantanu > > On Sep 10, 2:14 pm, Hubert Iwaniuk wrote: >> I'm happy to announce release of http.async.client v0.2.0 an Asynchronous >> HTTP Client for Clojure. &g

Re: http.async.client v0.2.0

2010-09-11 Thread Hubert Iwaniuk
ave a central index of Clojure > libraries something like this: http://java-source.net/ > > Regards, > Shantanu > > On Sep 10, 2:14 pm, Hubert Iwaniuk wrote: >> I'm happy to announce release of http.async.client v0.2.0 an Asynchronous >> HTTP Client for Clojure

Re: Generating functions programmatically

2010-09-10 Thread Hubert Iwaniuk
Hi icemaze, Please look at how fns are generated in http.async.client http://github.com/neotyk/http.async.client/blob/master/src/http/async/client/util.clj#L54 this macro is later used here: http://github.com/neotyk/http.async.client/blob/master/src/http/async/client.clj#L43 HTH, Hubert. On Se

[ANN] http.async.client v0.2.0

2010-09-10 Thread Hubert Iwaniuk
I'm happy to announce release of http.async.client v0.2.0 an Asynchronous HTTP Client for Clojure. This is wrapper/adapter on top of http://github.com/AsyncHttpClient/async-http-client Project: http://github.com/neotyk/http.async.client/ Documentation: http://neotyk.github.com/http.async.client

Re: Creating something Seqable in clojure

2010-07-30 Thread Hubert Iwaniuk
Hi Nicolas, Please take a look at how headers lazy map is constructed in ahc-clj http://github.com/neotyk/ahc-clj/blob/master/src/async/http/client/headers.clj It is a map and is sequable as well. HTH, Hubert. On Jul 30, 2010, at 12:04 PM, Nicolas Oury wrote: > Dear all, > > I am using deftyp

Re: ANN: Deview - Better test results

2010-07-15 Thread Hubert Iwaniuk
I've just pushed clansi to clojars http://clojars.org/clansi HTH, Hubert. On Jul 15, 2010, at 9:26 AM, Jeff Rose wrote: > On Jul 15, 6:27 am, Phil Hagelberg wrote: >> Yeah, a web display is certainly much richer. I'm totally an edge >> case, but when you're remote pairing it's pretty important

ANN: Async Http Client for Clojure aka ahc-clj

2010-07-14 Thread Hubert Iwaniuk
Hi * Just release first version of Async Http Client for Clojure. http://clojars.org/ahc-clj This is async http client that is backed by Async Http Client http://bit.ly/aUctdM which by default runs on top of Netty. General documentation on project is available here: http://neotyk.github.com/ah

[ANN] Clansi - ANSI color and style codes for Clojure

2010-04-15 Thread Hubert Iwaniuk
Hi *, Last Wednesday at Amsterdam Clojurians Meetup http://bit.ly/akuN8F we created clansi http://bit.ly/bLzHH2 . Clansi is first step in our effort to make REPL a bit more friendly, it make ANSI colors and styles easy in Clojure. Intention is to provide easy way to swap clojure.core/doc with colo

Re: Dutch Clojure users

2010-02-07 Thread Hubert Iwaniuk
Great to hear that there is Clojure group around. For ease of finding it: http://groups.google.com/group/amsterdam-clojurians?hl=en Cheers, Hubert On Sun, Feb 7, 2010 at 4:37 AM, Jeff Rose wrote: > There is a group of us hacking Clojure in Amsterdam and Utrecht. > Where are you?  Join the Ams

Re: Dutch Clojure users

2010-02-06 Thread Hubert Iwaniuk
Hoi Joop, I live in NL. Cheers, Hubert. On Sat, Feb 6, 2010 at 12:26 PM, Joop Kiefte wrote: > Hello folks! > I am from the Netherlands and I am learning Clojure now, using it at work, > and loving it so far. Are there any more dutch Clojure programmers on this > list so we can meet? I am also i

Re: clojure-contrib build error

2009-04-30 Thread Hubert Iwaniuk
See > > http://groups.google.com/group/clojure/browse_thread/thread/ee67ca7f69bc7e82/1ab62dcf4e2b33c9?lnk=gst&q=howard%2Brepository#1ab62dcf4e2b33c9 > for details, > > Regards, > > -- > Laurent > > 2009/4/30 Hubert Iwaniuk : > > Hi Robert, > > > > I got it

Re: clojure-contrib build error

2009-04-30 Thread Hubert Iwaniuk
faced similar difficulties as you. > > Let me know later if you need help adding in more depedencies like > Compojure or DB drivers, as I had to struggle through that a tiny bit. > > Rob > > > > On Thu, Apr 30, 2009 at 12:08 PM, Hubert Iwaniuk > wrote: > > Hi All, &

clojure-contrib build error

2009-04-30 Thread Hubert Iwaniuk
Hi All, I'm newcomer to clojure. Downloaded clojure.jar. Decided to go with VimClojure. So I need clojure-contrib. svn co clojure-contrib, and failed to build. svn co clojure, build fine retried building clojure-contrib, went fine. It's fine by me, but I believe that is not really a good user ex

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread Hubert Iwaniuk
Hi Jeffrey, I was recently thinking of adding support for https://grizzly.dev.java.net/ in http://github.com/weavejester/compojure/tree/master. Just need some time to get my head around compojure. Cheers, Hubert. On Tue, Mar 17, 2009 at 12:52 AM, Jeffrey Straszheim < straszheimjeff...@gmail.com