Re: Why is next.jdbc using my IP address?

2022-03-04 Thread Cora Sutton
And also change your password now. On Fri, Mar 4, 2022 at 8:09 AM Orestis Markou wrote: > You might need to quote the string with single quotes, otherwise bash will > probably try and interpolate a var `$n`... > > > On 4 Mar 2022, at 15.58, Lawrence Krubner wrote: > > Okay, this seems to have

Re: common ways to run regex against either Hickory HTML or zippers?

2022-02-02 Thread Cora Sutton
If all you're looking for is the format CVE--N then by all means just use regex against the plain text of the page. If you need to do dom traversal then jsoup is a good choice. Otherwise, like Mark said, tree-seq is a great choice if you don't want to play with clojure.walk. On Wed, Feb

Re: Strange Vector failure

2021-07-24 Thread Cora Sutton
not" functions. > > Many thanks! > > -Jack > > On Fri, Jul 23, 2021 at 6:03 PM Cora Sutton wrote: > >> You can stay away from eval unless you have extremely special needs, >> really. I never use it myself. The evaluate-or-fns and evaluate-and-fns >> don't

Re: Strange Vector failure

2021-07-23 Thread Cora Sutton
ed with conjunctive and > disjunctive lists, each of which can be similarly populated. That, of > course, means that evaluating a single inferrable list is the same as > walking a possibly complex (no loops, hopefully) spider web. > > Thanks > Jack > > On Mon, Jul 19, 2

Re: Strange Vector failure

2021-07-19 Thread Cora Sutton
>>> (#object[ie4clj.Tests$simple_false 0x3a4621bd >>> ie4clj.Tests$simple_false@3a4621bd] >>> #object[ie4clj.Tests$simple_false 0x3a4621bd >>> ie4clj.Tests$simple_false@3a4621bd]) >>> >>> Or maybe I missed something. >>> >>> On Mo

Re: Strange Vector failure

2021-07-19 Thread Cora Sutton
ybe I missed something. > > On Mon, Jul 19, 2021 at 3:33 PM Cora Sutton wrote: > >> Your members list needs to be filled with things that can be called as >> functions, since that's what that code snippet does, and booleans >> definitely cannot be called as functions. Th

Re: Strange Vector failure

2021-07-19 Thread Cora Sutton
he test conditions, > evaluate_and failed. > > > On Sun, Jul 18, 2021 at 5:00 PM Cora Sutton wrote: > >> Hello again Jack, >> >> On Sun, Jul 18, 2021 at 6:21 PM Jack Park >> wrote: >> >>> (every? eval members) does not appear to work on a

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
.lang.LazySeq cannot be cast to clojure.lang.IFn >> >> >> which, according to the intertubes, means that my buildAndList returns >> (value) instead of value. I tried flatten. No cigar. >> >> Thanks >> Jack >> On Sun, Jul 18, 2021 at 5:00 PM Cora Sutt

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
tick to the built-in Clojure collection types and use the built-in functions to operate on them. To give you a little direction, instead of a Person object you could make a hashmap like {:first-name "Jack" :last-name "Park"} and pass that around. And then you can make a function t

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
Oh! I just saw your post from earlier and Alex's response, I strongly believe we have an XY problem here. In Clojure you most likely wouldn't use interfaces like this. We can move this discussion over there since Alex has kicked it off. On Sun, Jul 18, 2021 at 2:37 PM Cora Sutton wrote

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
And for what it's worth, I hte how condescending that site ( https://xyproblem.info/) is. It could be so much kinder. On Sun, Jul 18, 2021 at 2:34 PM Cora Sutton wrote: > No worries! Deep Java experience is such a huge asset when it comes to > Clojure, there's nothing to be a

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
de which can use clojure's eval. > But, I've been creating classes, not functions. If I modify my code such > that the members sequence contains functions, then perhaps that would work. > > I confess, I'm saddled with a deep java experience. > Your coaching is extremely helpful. >

Re: Strange Vector failure

2021-07-18 Thread Cora Sutton
Hi Jack! I could be wrong but I think this could just be: (every? eval members) I see a few things here that seem strange to me so I wanted to share a few points that might be helpful (or might not, let me know either way) for future code. * So typically you don't want to def or defn within

Re: [ANN] Discontinuing 4clojure.com

2021-07-05 Thread Cora Sutton
Thanks so much for 4clojure! Tools like this help so many people and helped me in particularly when I was just getting started. I am in no way affiliated with them but https://exercism.io is another site with code challenges that I used for clojure while I was learning it. On Mon, Jul 5, 2021 at