Creating web app/site without routing [experiment]

2013-02-26 Thread Yakovlev Roman
Hello Recently i was experimenting with Clojure and web stack and created kind of non-standart web app. It doesn't use routing there are no any urls there. This app is mostly "One page apps". Instead of routes i used id's and classes. Let me explain: I used "Noir" and "fetch" libs and logic of in

Re: Slow image convolution

2012-11-09 Thread Yakovlev Roman
what a mess if it is a function it's huuge did you try split it to useful chunks ? it's just unreadable and that's why you cann't spot anything i guess.. пятница, 9 ноября 2012 г., 0:48:20 UTC+4 пользователь Cedric Greevey написал: > > I have the following code to perform a complicated image co

[Learning] Clojure web programming - thoughts and series of articles

2012-11-08 Thread Yakovlev Roman
Some time have passed since i posted "Is clojure need it's own web framework like ruby on rails" ? https://groups.google.com/forum/?hl=en&fromgroups=#!topic/clojure/C41MfD72UBE There answer mostly was no. But i still think that clojure need some base for "Clojure web programming" maybe wiki site

Re: Simple way to get image from url

2012-10-16 Thread Yakovlev Roman
file (.write w (:body (client/get url {:as :byte-array} ; here we get image as byte-array )) Which trlanslates to ( i hope i get it right ) : Open file in stream mode (w) and write to it byte stream (image file ) from url. On Monday, October 15, 2012 1:06:19 PM UTC+4, Yakovlev Roman

Re: Simple way to get image from url

2012-10-15 Thread Yakovlev Roman
t; > I think you can use clj-http: > https://github.com/dakrone/clj-http > > (client/get "http://site.com/favicon.ico"; {:as :byte-array}) > > > > 2012/10/15 Yakovlev Roman > > >> Hi >> I am pretty new to java world so as i found there is no simple wa

Re: Simple way to get image from url

2012-10-15 Thread Yakovlev Roman
M, dennis zhuang > > > wrote: > >> I think you can use clj-http: >> https://github.com/dakrone/clj-http >> >> (client/get "http://site.com/favicon.ico"; {:as :byte-array}) >> >> >> >> 2012/10/15 Yakovlev Roman > >> >

Simple way to get image from url

2012-10-15 Thread Yakovlev Roman
Hi I am pretty new to java world so as i found there is no simple way to get image file from url like : http://example.com/image.jpg. What i need just to get file from url and store it to db. So we need to use buffer, stream and stuff to get file. I found this code but i guess there is a way to g

Re: Regarding Starting Clojure

2012-10-02 Thread Yakovlev Roman
You can make your site with many examples and good documentation and maybe it will be at first place at google if it will have great value. A lot of people here will agree with that. Site could be better place to get started ! but old site still there. As far as i know there is a company behind

Re: Clojure web framework

2012-10-02 Thread Yakovlev Roman
Ok that's good idea really. As i can see you just use ring compojure korma for mysql and postgresql for pg database. As for me i use for my first project this config (defproject testpro "0.1.0-SNAPSHOT" :plugins [[lein-catnip "0.4.1"]] :description "FIXME: write description" :url "http://e