David Brooks 2022-01-31 04:51:36 Hello there. I've been dreaming for years about a 2D spatial interface for laying out and editing / manipulating files in a filesystem (something like a local miro for my pc). I've recently attempted to build something using https://github.com/anvaka/panzoom which is great, but I'm pushing it beyond its limit, I think (or my own). I want a solid, intuitive (google maps-like) rendering and interaction to build off of. I mainly program in and prefer web technologies. But if there is something like panzoom for python or java or something, I'll do that instead. Does anyone have any recommendations? panzoom is the closest library I've found that is generic enough and flexible enough to do what I want, but I'm running into bizarre problems with it that I just don't want to deal with. Any recommendations for other libraries would be very appreciated! Thanks 🙂
David Brooks 2022-01-31 13:57:31 Thanks for this link! I'll check to see if I can adapt the panning and zooming to what I need. :thumbsup_all:
Jimmy Miller 2022-01-31 15:49:25 I’d definitely suggest trying to craft the panning and zooming yourself. Not because you necessarily will get it better than everyone else, but because
- It will be crafted specifically to your needs
- You will learn what things are hard and be able to better evaluate a library
David Brooks 2022-01-31 16:53:25 Thanks! I have actually implemented panning / zooming in the past, and as you say I learned how to better evaluate libraries. I do really like panzoom, it is almost perfect for my needs; I just seem to be pushing it to its limits. If I don't find a better option, I will just stick with it and hope to overcome the issues I'm running up against.
Mariano Guerra 2022-01-31 19:24:17 what's the best "thing" you have seen/read to turn a tree into a table? something like jq
visual things more than welcome
Mariano Guerra 2022-01-31 22:17:31 I mean flatten a subset of a deeply nested tree into a table
Matthew Linkous 2022-01-31 22:22:54 yeah for some reason I thought it did by concatenating key names as it recursed down an arbitrary but that must’ve been a different tool
Tom Larkworthy 2022-02-01 14:22:09 underscore flatten or d3 merge ?
quite often I just use reduce tho
Mariano Guerra 2022-02-01 14:44:49 not generic enough, I mean something like a graphql result or an ast
Tom Larkworthy 2022-02-01 14:59:09 if you are doing complex queries it might be worth loading sqlite.js
Tom Larkworthy 2022-02-01 16:23:34 or by table are you asking for a dataframe type thingy? https://github.com/uwdata/arquero I guess I am confused by what you are looking for. The term 'table' is ambiguous (SQL table, HTML Table, Mathematical Table) and hardly relates to jq in my world.
Mariano Guerra 2022-01-31 19:25:08 is there any datalog implementation I can use from a browser? how datalog-y can I get with a graph database or RDF?
David Brooks 2022-01-31 20:04:13 erlang's mnesia is very datalogish, if you're in the elixir/erlang world
Mariano Guerra 2022-01-31 21:41:33 I've used it, it's not so dynamic and the query language is tied to tables
Nick Smith 2022-02-02 04:20:04 Graph databases are the antithesis of Datalog. They reject the core tenets of relational programming:
- Data independence (evaluate programs by joins, not by pointer traversal).
- Relations of arbitrary arity (not just arities 1 and 2).
That's an answer to part of your question, anyway 😇.
Tony O'Dell 2022-02-03 02:45:10 I've been working on a datalog module for rakudo that would integrate directly into the language that can use different backends but it's probably not near what you'd like. (rakudo has a javascript backend that you could probably use in a browser)
Yousef El-Dardiry 2022-02-03 09:40:19 Just helped out a friend with a Wordpress website.. Always feels like hacking a big bunch of spaghetti with add_filter
etc. but in the end it kind of works and Wordpress is quite end-user (or in this case “admin”) modifiable.
- What do you think of Wordpress’
add_filter
and add_hook
system (combined with overridable files) for plugins? - Do you know of apps with a better plugin system? Where plugins can still easily modify both core functionality, and functionality from other plugins? Tips for resources on designing highly modifiable systems?
Alexey Shmalko 2022-02-03 11:41:37 Emacs:
- there is no difference between user configuration and packages
- everything is global
- everything is overridable
- everything is configurable (as that's pretty much the culture evolved around emacs and everyone expects maximum customizability of everything)
- hooks to trigger code on events
- advice system to partially modify functions
TeX:
- everything is global and modifiable
- also feels like a big bunch of spaghetti