good morning!
Morning!
Good Morning!
Morning and hello 👋:skin-tone-3: @hequ
Good morning! 🙂
mogge
Morning! I forgot a merge marker in an EDN file and it parsed correctly as a key value pair:
>>>>>>> origin/master
Yep!
I once spent ages tracking a rogue '
in an edn file which was parsed as it's own symbol
user=> (clojure.edn/read-string "{:foo '(bar)}")
Execution error at user/eval3 (REPL:1).
Map literal must contain an even number of forms
BUT IT DOESHow much time do software engineers spend just looking at single character mistakes on a daily basis (cumulative )
Even more confusing was when "{:foo '}"
worked. Whole can of nope right there.
that is very weird indeed.
belated morning
Anyone here with AWS RDS experience? I am stuck on creating a proxy.
Morning
morning
@thomas what kind of proxy?
a Database proxy.
they strongly suggest you use one.
Amazon do?
Really?
but when I try to create a Proxy I can't choose a DB to associate it with.
yes, they do. Part of the RDS service.
I don't think that applies to java too much, as we most of that baked into client libraries.
we are planning on using Lambda's
Ah, makes sense then
I wonder if that actually works. Is opening a real db connection that much more expensive than this fake one? I always assumed tcp handshakes were the delay.
the idea is that the proxy holds all the DB connections
Single character problems. Try putting a ~ on a new line at the end of a file when you’re a vi user.
I still have no idea why tildas are still a thing in vi .. anyone?
@thomas sure. But is that faster than holding them locally and establishing a new connection to the proxy repeatedly?
@raymcdermott huh you’re unable to type a tilde in vim?
the idea is that all the retrying logic isn't needed in every lambda. and the proxy can do some authentication for you as well.
@synthomat it’s the visual end-of-file marker.
One line of text
~
~
~
The tildes are vis way of showing it’s nothing here.
i know, i know – didn’t get the question though 😅
But client libraries already do the retry, so I don't need to worry about that?
hm I’m wondering why ring has a session-wrapper that relies on storing the session key in cookies but doesn’t provide anything where the user can implement a custom “key-function”
Ray is just trolling us
If you :set number
it doesn't work anyway :)
Cypher sucks. Long live gremlins. I'm too lazy to dig in, but I really hope graph query language doesn't repeat the sql mistake and make string mashing the building tool. I'm now annoyed I have to do that with cypher.
Wow, not trolling
I know it’s the end of file marker but my point is that can easily be confused for a legal character in most programming languages. The fact that you can countermeasure it doesn’t make it good
These days the editor could easily choose a more evident set of characters. I’m assuming that Unicode support is in there by now
you can change it to a different character, for example π
(nur sure if pi is better than a tilde, though)
Just saying it’s a bad default for 2020
hehe
Should be ❇️❇️❇️❇️❇️
For example
not possible, tried it out 😞
I guess because emojis have more than one character
I should continue with my work rather than trying to change that character 😄
Yeah it’s yet another sharp edge
E474: Invalid argument: fillchars=eob:ray
:( boo
I used vi for decades and it’s still my fave in many contexts but just saying that there are problems
set fillchars=eob:\
does the trick anyway
Having a patch / fix really isn’t the answer cos 99% of users don’t have that - they have the defaults. Bringing it home, Clojure is a great example of why defaults matter.
I like ~ though, better default :)
it is what AWS recommend... just my 2c.
Yeah, I know. But I just assume everyone is upselling me 😁
Just sceptical
@dominicm gremlin is basically Groovy. Not the best choice IMO.
@thomas I think the RDS proxy is only for Aurora?
Or am I thinking about the Data API?
@slipset in what way is it basically Groovy? Is it implemented in Groovy?
But it's defined as a data protocol, so it's language agnostic and has a nice dsl in every language!
g.V.has('name','hercules').out('father').out('father').name
is an example query.
The implementation we’re using is implemented in/backed by Groovy which leads to all kinds of great surprises.
Since it’s accepting any groovy code.
So you can do g.V.map(my_own_fn)
Does anyone know how I can force Clojure highlighting in a gist? https://gist.github.com/borkdude/e6f0b12f9352f3375e5f3277d2aba6c9
call the gist somehting.clj
Which you’ve done…
https://gist.github.com/slipset/2ab95293a4ae6a4d614377544bae86d1
I'm using a shebang which confuses github apparently
it helps putting the shebang to the second line but it will of course break it.
@borkdude ooor put #!/usr/bin/env bash#
looks ugly but seems to work for both shebang and highlighting
I've seen some inline-comment hint recently to set the language. I should have written it down
I can select both Mysql and PostgresSQL DB' as options.
@slipset I think there's a clojure implementation kicking about. Anyway, that's way better than the neo4j cypher dsl:
(query g "social"
(.render cypher-renderer (.build (.returning
(Cypher/match (into-array [(.. (Cypher/node "person" []) (named "a"))]))
(into-array ["a"])))))
I think I'm going to have to "honey" that up somehow.I'm planning to try and load clojure code into redisgraph and see about querying it.
Yes, but RDS flavor or Aurora flavor? Or perhaps you need to change something in the security groups of those instances?
I tried both RDS and Aurora at the moment.... it turns out you need roles, secrets and what more... still working on it.
@slipset things like https://github.com/clojurewerkz/ogre look nothing like groovy of course. So I think it's all down to the library you use as to what syntax you get.
Luckily we’ve exposed the non-data thing to our customers, so we’re locked in.
btw I found a solution for the highlighting problem
@slipset you, uh, expose raw gremlin to your customers?