Fork me on GitHub
#off-topic
<
2022-01-14
>
sova-soars-the-sora01:01:15

Thanks a ton for participating in the Clojurians slack world. I get a lot of value from this community and aspire to contribute as much! Being able to hang out with some of the sharpest minds in software... it rubs off on ya! šŸ˜„ Very grateful!

šŸŽ‰ 11
šŸ’Æ 4
ā¤ļø 3
mpenet09:01:20

Anyone has experience with e-ink monitors such as the one from dasung or boox?

šŸ’² 1
Ben Sless09:01:00

I have a dasung, ask away

Martynas Maciulevičius09:01:19

Woah. That can run games šŸ˜„

mpenet18:01:06

Are you able to work (say use emacs) with it, or it's mostly to read documentation? Also what about dead "pixels" and expected lifetime ?

mpenet18:01:57

Did you ever try/see a boox to compare?

mpenet19:01:26

I read somewhere that they support to up to xx million refreshes, which is ok for reading but is a bit scary for something like editing

mpenet19:01:34

How bad is input latency? And font rendering?

mpenet19:01:28

I am very tempted by a dasung/boox-mira, I am trying to convince myself e-ink is not ready yet for this kind of usage :)

Martynas Maciulevičius23:01:43

But it won't display any syntax highlighting. What would you do about this?

respatialized23:01:29

I like using a theme without syntax highlighting every now and again, it helps me look at the code with fresh eyes

mpenet12:01:32

I quite like themes that are just shades of gray from time to time

mpenet12:01:45

There's a decent one in doom themes, I think it's plain-dark or stg

Ben Sless14:01:31

If you experience fatigue staring at a screen all day, it's nice, but the screen won't hard refresh which will get slightly smudged after some time

Ben Sless14:01:58

I think it's better if you have to read lots of papers or an eBook rather than programming

ericdallo23:01:11

Anyone knows about any tool that prints or build my project code in a tree, showing all namespaces hierarchy?

ericdallo23:01:16

Something like

foo.main
|
|-- foo.baz
|
|-- foo.qux
    |
    |-- bar.baz

noisesmith23:01:31

one of my favorite things about clojure is that in normal codebases there's a 1:1 mapping from files to namespaces, which means that in most projects $ tree would give you nearly the same information as any actual clojure tool would

seancorfield23:01:21

I assume under the hood it uses tool.namespace to get the dependencies as a data structure, so you could probably print out a text tree easily enough from that data structure?

noisesmith23:01:23

unless you want a graph of how one namespace uses another namespace, yeah

ericdallo23:01:07

thanks you @U04V70XH6,sounds perfect to my case

ericdallo23:01:24

@U051SS2EU yes, the issue is that I want to see which namespace calls other

ericdallo23:01:38

thanks for the tip anyway

noisesmith23:01:39

OK - that can't possibly be a tree is very unlikely to be a tree

noisesmith23:01:53

(that's the thing that led me on the wrong track there)

ericdallo00:01:22

It seems ns-graph doesn't work for deps.edn projects :(

seancorfield00:01:34

@UKFSJSM38 Sure it does:

(! 595)-> clojure -Sdeps '{:deps {ns-graph/ns-graph {:mvn/version "RELEASE"}}}' -M:rebel
[Rebel readline] Type :repl/help for online help info
user=> (require '[ns-graph.core :as g])
nil
user=> (g/depgraph* {:name "next.jdbc" :source-paths ["src"]})
nil
user=> (System/exit 0)

Fri Jan 14 16:41:15
(sean)-(jobs:0)-(/Developer/workspace/next.jdbc)
(! 596)-> ls -l graph.png 
-rw-r--r--@ 1 sean  staff  2564932 Jan 14 16:41 graph.png

Fri Jan 14 16:41:18
(sean)-(jobs:0)-(/Developer/workspace/next.jdbc)
(! 597)-> open graph.png 
which produces the following:

seancorfield00:01:57

Oops! I expected that to render inline.

ericdallo00:01:54

oh, that's odd, let me try again

ericdallo00:01:19

Hum, maybe something is missing on my machine

ericdallo00:01:33

probably graphviz, the exception doesn't help though

ericdallo00:01:05

Installing graphviz fixed my issue, thanks @U04V70XH6 :)

borkdude07:01:34

Based on clj-kondo analysis and work with deps.edn: https://github.com/SevereOverfl0w/vizns https://github.com/benedekfazekas/morpheus The latter is more fine grained and does it on the var level

ericdallo13:01:56

Oh, I'll give it a try, thank you borkdude!

borkdude13:01:08

@UKFSJSM38 morpheus also visualizes re-frame stuff, at least, @U0508JT9N was working on that and added stuff to clj-kondo for it

ericdallo13:01:37

In my case I was looking for just namespaces relationship for now to help some refactor on the codebase arch

ericdallo13:01:44

But sounds really cool morpheus

ericdallo13:01:54

I'll try vizns

Sam Ritchie21:03:08

gah, wrong thread!

respatialized23:01:39

do people have recommendations on web servers for static content? ease of use is more important to me than maximal performance.

Jon Boone23:01:38

Self-hosting?

Jon Boone23:01:58

If leveraging cloud services, why not use CDN?

respatialized23:01:03

I want a bit more control over my environment than delegating everything to the cloud provider's CDN, plus my VPS doesn't offer CDN delivery of content hosted on object storage

respatialized23:01:12

I'm hoping I can get a workflow going of rsync over ssh + fast reloading for rapid prototyping on a live website without having to push everything through a git host + ci build + etc

noisesmith00:01:45

with python it's literally a one liner if all you need is the bare basics

python3 -m http.server

noisesmith00:01:03

I can't vouch for security but it works

respatialized00:01:11

I'm looking for something a bit more robust than that - was considering something like caddy but I may just decide to throw a clojure web server into production

Heather00:01:24

I use github pages for static hosting. And I use one of those static site generators. Right now the thing is gatsby

noisesmith00:01:00

what does "robust" mean here?

respatialized00:01:50

"suitable to serve content to the internet at a real domain name", I think

noisesmith00:01:55

nginx for example is industrial grade and the config for serving a directory is simple

noisesmith00:01:50

I think the question about "robust" gets moved to "suitable" - is the concern about security? fault tolerance?

noisesmith00:01:57

many people seem to use npm for this sort of server, I have no experience with it

respatialized00:01:18

security mostly, scalability somewhat, being able to reload config changes seamlessly is nice to have - I guess this is all probably pointing me in the direction of nginx

slipset11:01:41

github pages is quite nice. http://www.clj-commons.org is https://github.com/clj-commons/clj-commons.github.io. github pages also gives you the ability to have a jekyll site. Most of the stuff I write on http://slipset.github.io I write directly on github as markdown files.

respatialized13:01:34

I currently use GitHub pages and am currently migrating away from it. I appreciate that GH pages provides a lot of people with ease of use, but I don't want to tie my publication workflow to a VM spun up on demand for a GitHub Actions CI workflow. My preference is for greater control over my environment and faster feedback, so I'm willing to put some additional work into setting that up if I need to. Plus, if you want to use a custom domain with GH pages and a public repo, your CNAME record gets messed up if anyone forks your repo. https://medium.com/@jehy/hijacking-domain-using-github-pages-41c80ac57523

gklijs15:01:17

You might want to try Netlify, it's quite easy to setup with a custom domain name.

jumar08:01:11

@UFTRLDZEW so far I really like Cloudflare pages that I started using for my blog: https://curiousprogrammer.net/#_cloudflare_pages

respatialized17:01:26

I don't really have anything against CDNs per se, but I did intentionally ask for recommendations on a web server and gave examples of what I was considering, and why. CDNs are not web servers, so they are not what I am looking for. I understand CDNs are nice for a lot of people, but it's not particularly helpful to me to be repeatedly directed away from the specific thing I'm asking about, especially when I said more than once that I wasn't looking for a CDN.

jumar17:01:07

You mentioned that you are migrating away from GitHub pages: > I don't want to tie my publication workflow to a VM spun up on demand for a GitHub Actions CI workflow. My preference is for greater control over my environment and faster feedback, so I'm willing to put some additional work into setting that up if I need to. I migrated away recently and have found Cloudflare pages to be a really nice and powerful alternative. I perfectly understand if this is not a good solution for you but perhaps you should describe your problems in more detail.