clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
dharrigan 2021-04-16T06:16:53.157400Z

Good Morning!

djm 2021-04-16T06:20:47.157600Z

👋

ordnungswidrig 2021-04-16T06:59:26.157900Z

hallo

2021-04-16T07:06:41.158100Z

Morning

simongray 2021-04-16T07:08:06.158300Z

dav

2021-04-16T07:17:04.163200Z

:morning:

simongray 2021-04-16T07:17:27.163600Z

So I managed to wrap that beastly Javascript library in reagent, turning a 10+ year old static timeline widget into a reactive one that I can load data into dynamically. Now the issue is that it relies on the developer manually marking sections of the timeline to be magnified at different levels in order to reduce the concentration of events at different points. I am thinking that I could make a little algorithm that is able to determine that automatically, right? Maybe by setting a limit on the events per time unit and then magnifying at points on the timeline where the limit is exceeded. And perhaps using that CLJC interval library that just popped up in #announcements recently?

thomas 2021-04-16T07:46:20.163900Z

morning

pez 2021-04-16T08:12:14.164200Z

Way cool! Can you post some screenshots/gifs to make it a bit clearer what the challenge is about?

pez 2021-04-16T08:12:28.164500Z

Morning everybody!

borkdude 2021-04-16T08:13:55.164700Z

Morning!

thomas 2021-04-16T08:14:28.164900Z

TGIF!!!!!!

agile_geek 2021-04-16T08:41:06.165100Z

Bore da :welsh_flag:

borkdude 2021-04-16T08:46:38.165300Z

Bonan matenon

borkdude 2021-04-16T08:47:09.166100Z

I read it, nice positive read (instead of all those rants on Reddit, nice for a change)

simongray 2021-04-16T08:50:45.169300Z

@pez here is an example using predefined zones for one time band. The time band morphs when panning back and forth, representing the same length in pixels used for days as minutes or seconds in those zones to better encompass the pile of events occurring in a very short time.

simongray 2021-04-16T08:51:15.170300Z

I want to make an algorithm that takes a series of events and figures out where to put those zones.

pez 2021-04-19T07:37:35.207Z

Oh, missed this. Now I get it. 😃

javahippie 2021-04-16T09:07:24.170700Z

Morning!

agigao 2021-04-16T09:09:00.170900Z

Morning!

simongray 2021-04-16T09:09:59.171Z

and it gets a little more complicated by the fact that the overview band should probably also be stretched in a similar manner even though it uses different time units, so the proportions are not comparable.

pez 2021-04-16T09:15:53.171400Z

Still not completely following, but it looks super smooth and awesome. 👏

🙏 1
simongray 2021-04-16T09:41:09.171600Z

haha, guess it’s not that obvious… basically, there’s a whole bunch of events all occurring within minutes or seconds of each other, but many of the other events occur days or weeks before or after this concentration of events. How do you represent that on a timeline? You can do it linearly on a scale using something like seconds as the main unit of time, but that will result in many events events being separated by an incredible distance on the timeline since the time series spans weeks. Another option is to use weeks as the unit of time, but that results in events getting piled in those hot spots where there is a new event every minute or second. So the solution of this ancient widget library is to predefine hot spots and stretch the time band at those places. What I wanna do is calculate those zones dynamically.

slipset 2021-04-16T10:03:17.172800Z

For no specific reason, I started thinking about Calva today, and I believe https://github.com/BetterThanTomorrow/calva/issues/64#issuecomment-433293059 was my first interaction with Calva. It’s come quite a bit further. Thank you @pez!

1
❤️ 2
borkdude 2021-04-16T10:04:03.173200Z

Calva rocks!

dominicm 2021-04-16T10:10:23.173500Z

morning 😄

pez 2021-04-16T10:15:34.175500Z

Wow, that’s wonderful, @slipset. You know you are forever part of Calva history since you saved my sanity with your awesome mentoring when I was struggling at the very deep end of the water. ❤️

pez 2021-04-16T10:18:16.177700Z

That was one weird issue, btw. One of many. It’s funny how sometimes many hours go into super boring stuff like that, with zero results, and sometimes just one or two hours can deliver tons of value to the users. Old as I am in the game, it still amazes me.

❤️ 4
borkdude 2021-04-16T10:32:49.178200Z

@pez You mean like, the space issue with powershell/cmd.exe? :)

🎯 1