How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
It never hurts to combine things. I just started again with Clojure and I started with taking photos. In doing the latter I found out that I can take nice pictures of insects. But they mostly only take a part of the photo. At the moment I am using Image Magick on the command line with trial and err

Re: How to work with photos in Clojure

2016-07-19 Thread Miguel Ping
If you want to learn clojure by image processing, thats fine, but if your goal is to do the image processing part rather sooner than later, I recommend using an external lib like imagemagick or sharp (http://sharp.dimens.io/en/stable/) to do that for you, and hook it via FFI. As for interacting

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 10:23 GMT+02:00 Miguel Ping : > If you want to learn clojure by image processing, thats fine, but if your > goal is to do the image processing part rather sooner than later, I > recommend using an external lib like imagemagick or sharp ( > http://sharp.dimens.io/en/stable/) to do that f

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 10:49 GMT+02:00 Cecil Westerhof : > 2016-07-19 10:23 GMT+02:00 Miguel Ping : > >> If you want to learn clojure by image processing, thats fine, but if your >> goal is to do the image processing part rather sooner than later, I >> recommend using an external lib like imagemagick or sharp

Re: How to work with photos in Clojure

2016-07-19 Thread Karl Blomström
Hello Cecil! If you want to work with the instagram API I've put together a library that simplifies the retrieval of the necessary oauth2 token. Maybe you will find it useful! Please see https://github.com/blmstrm/loudmoauth and here is an example using the library with instagram among other APIs

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 11:31 GMT+02:00 Karl Blomström : > Hello Cecil! > > If you want to work with the instagram API I've put together a library > that simplifies the retrieval of the necessary oauth2 token. Maybe you will > find it useful! > > Please see https://github.com/blmstrm/loudmoauth > and here is a

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 9:26 GMT+02:00 Cecil Westerhof : > > My pictures have a dimension of 5,184x3,456 and I need to make a crop of > 1.080x1.080. This is a little to big for my screen. So I am thinking about > dividing everything by 8. > > I need to know two things: > - How would I display the picture as a

Re: How to work with photos in Clojure

2016-07-19 Thread Cecil Westerhof
2016-07-19 11:19 GMT+02:00 Cecil Westerhof : > 2016-07-19 10:49 GMT+02:00 Cecil Westerhof : > >> 2016-07-19 10:23 GMT+02:00 Miguel Ping : >> >>> If you want to learn clojure by image processing, thats fine, but if >>> your goal is to do the image processing part rather sooner than later, I >>> rec

Re: Clojure News is out

2016-07-19 Thread Erlis Vidal
Great idea! I've already added it to my favorites. Thanks! On Fri, Jul 15, 2016 at 11:19 AM, Ertuğrul Çetin wrote: > Hi Everyone, > > I'm very excited to announce that Clojure News(Beta) https://clojure.news is > out which is Hacker News Clone built for Clojurists. > > My goal is gathering Cloj

clojure.spec from returns object instaced of data for every-kv

2016-07-19 Thread Mamun
Hi According to documentation of clojure.spec/from, it should return data not object. But when I try for every-kv, it is returning object. (s/form (s/every-kv keyword? int?)) => (clojure.spec/every (clojure.spec/tuple keyword? int?) :into {} :clojure.spec/kind-form nil :clojure.spec/kfn

clojure.spec from returns object instaced of data for every-kv

2016-07-19 Thread Alex Miller
This is a bug. I'm actually looking at it (and some other form bugs right now). -- 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 pa

clojure.spec merge is excellent, but do you consider dissoc spec for keys?

2016-07-19 Thread Mamun
Hi Without dissoc in keys, how to avoid duplicate spec between backend and frontend layer? As an example I have backend service where I defined spec like this (s/def ::person-spec (s/keys ::req-un [::id ::fname ::lname])) Here Id is mandatory for some purpose. Now application layer I wou

Re: clojure.spec merge is excellent, but do you consider dissoc spec for keys?

2016-07-19 Thread Alex Miller
Well first I'd say it's actually more important here that you are reusing the attribute specs for ::fname ::lname etc across front and back. And second, perhaps you should be breaking out the common parts into a spec you can reuse instead: (s/def ::person-shared-spec (s/keys ::req-un [::fname :

Re: Clojure News is out

2016-07-19 Thread Jacob Strength
This looks great! I was just curious though, what are the advantages of this over say the Clojure page on reddit? To me it seems very similar. On Friday, July 15, 2016 at 9:28:12 AM UTC-6, Ertuğrul Çetin wrote: > > Hi Everyone, > > I'm very excited to announce that Clojure News(Beta) https://cloj

Indexable structures for easier lookup and retrieve

2016-07-19 Thread Olek
Hi! Often through the software development I bump into structures defining specification/manifest/configuration of some Unit (service/process/transformation/configuration). >From my observation I've noticed the repeating pattern in software development for consuming above. We star with a stru

Re: Indexable structures for easier lookup and retrieve

2016-07-19 Thread Mark Stang
I have been experimenting with something I call "path database". It is very rough, but usable. I would welcome some additional eyes and hands. I have an index structure where you can "build an index" and then "find" things. https://github.com/mstang/pathdatabase regards, Mark On Tue, Jul 19, 2