This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-14
Channels
- # adventofcode (12)
- # aleph (8)
- # announcements (6)
- # babashka (16)
- # beginners (217)
- # biff (7)
- # calva (30)
- # chlorine-clover (4)
- # cider (3)
- # clj-kondo (15)
- # cljdoc (6)
- # clojure (50)
- # clojure-europe (86)
- # clojure-finland (2)
- # clojure-nl (1)
- # clojure-norway (37)
- # clojure-uk (2)
- # clojurescript (8)
- # cursive (10)
- # datomic (13)
- # emacs (1)
- # fulcro (41)
- # helix (1)
- # humbleui (2)
- # joyride (7)
- # juxt (4)
- # lsp (19)
- # off-topic (47)
- # pathom (14)
- # polylith (5)
- # portal (7)
- # reagent (10)
- # releases (4)
- # sci (1)
- # scittle (18)
- # shadow-cljs (54)
- # test-check (2)
- # tools-deps (28)
morning!
holy crap is that in NL?
ah it is 3 degrees here
I spent some time outside, maybe because it wasn't windy it didn't feel like 3 degrees
Good morning 🙂
(not trying to be a gud photographerpher here, just sharing the 0 degree mist)
I need a new phone. Either iPhone SE 2022 or iPhone 13 mini. I'm an average user, probably don't need the better screen or camera. Then again, I'm going to use this for 5 years... All these choices!
my colleague Mark just got the 13 mini, if you'd like to ask him about it
My brother in law also has one, so I'm good. Just trying to figure out what I want / need....
Get a Fairphone 4 if you don't mind the android. You get 5 years of support, and spare parts will be available too. https://shop.fairphone.com/
ah nvm this is a larger phone than those two
I had a Fairphone 1, ironically it only lasted 4 years or so because it got too slow with Android upgrades
I got the 13 mini very recently. it's a little beast - SE feel with seemingly advanced cameras and features (which I don't care about). I'm just upset I lost the headphone jack!
@U04V15CAJ it all comes down to - are you ready to lose the home button and use face ID / gestures? My wife got the iphone 11 recently for the improved battery over the iPhone SE, and the muscle memory is gone -> no button, the notch etc.
A question - where do you guys get your music from? I recently switched from Spotify to Apple Music, but I realised Apple Music has no "free" API and I'm not paying $99/year just to hack on this. So I either have to also get Spotify again, or start to hoard DRM-free albums... but I don't really want to manage files anymore. Any alternatives?
@orestis I've been a Spotify subscriber for a long time, also because I theoretically want a cross-platform experience, but this is bullshit since I go with Mac most of the time anyway ;)
I've tried the CD and mp3 route for a while again, but convenience wins in the long run. I listen to a lot of internet radio too with my favorite genres and use Spotify to "zoom in" on music/albums I might like
These damn subscriptions are piling up! But the truth is that 7eur / month for Spotify is very low for the value you get.
I’m also surprised that neither Apple Music nor Spotify DRM have been cracked. That is, I wouldn’t mind keep paying a subscription but I would like to download and play files with other players too.
My wife and I just use Spotify Duo. It is (I think) the cheapest if you’re only two. I have also had both Apple Music and Youtube Music for a while. I think Apple Music has some decent curated stuff, while Youtube Music has pretty good generated discovery. My wife prefers Spotify, so that’s why we use that.
I think Apple Music probably has the worst UI, while Spotify is trying way too hard to promote its podcasts and Youtube Music is a weird mix of music subscription and Youtube playback.
So they’re all flawed IMO. And obviously Spotify is lacking Neil Young and Joni Mitchell since Joe Rogan-gate.
there are so many music platforms I just do a different free trial every month
What's wrong with youtube?
It lacks a native app for desktop (you can use a third-party web view, though) and I don’t personally like the way it mixes in Youtube content.
I‘m with Apple Music, because I am lazy and it works on my devices. Also I like that it is more of a library because the recommendation algorithm is so bad that it‘s non-existant 😅 the bad thing is that I was looking into building a streaming box for kids which works with NFC (are tonieboxes known outside of Germany?), and while it would be possible with Spotify, Apple makes this really hard :(
Do you have schematics/plans anywhere or are you building it from scratch?
The original one was controlling the Spotify macOS app via a Mac Mini media player. The new one is going to use moode audio on a raspberry pi, via Spotify Connect. The NFC hardware luckily stays the same.
So, a brief overview is this:
• A bunch of NFC stickers I bought years ago on AliExpress, that I put on nice little cardboard squares of album art.
• Each NFC tag has ~140bytes of memory, enough to store a Spotify ID in there, like
, plus a header encoding the length.
• I have a ACR122U
NFC device over a USB, that can read/write to those tags
A small python program reads incoming tags, and fowards the spotify ID to the spotify API, so that it plays in a Spotify Connect device.
I used to it via a Mac Mini (macOS had native support for controlling the NFC device) using AppleScript to remotely control the Spotify App, but since moving a few times I don't want to deal with the Mac Mini anymore, so I've found moode audio that runs headless on a Raspberry Pi, and also gives me AirPlay support.
@U0N9SJHCH I’ve built a Phoniebox for my kids and my intention was to use Spotify, but the startup time was just too long (like a minute or so), so that I switched to the offline version. That was in 2020, perhaps they have fixed it.
Spotify offers a first-class start_playback
function these days that is instantaneous it seems.
https://developer.spotify.com/documentation/web-api/reference/#/operations/start-a-users-playback
What I meant is that the whole system (Raspberry PI and Phoniebox stack) needed about a minute from power on to ready to read a NFC card. This is probably acceptable for an adult, but my kids want everything immediately and a minute is like forever. 😂 I see this as a big advantage of the commercial Toniebox.
Everybody in my extended family has a toniebox, but it‘s just soooo expensive and locked down… I still have ~2 years to build something, our son isn‘t old enough, yet 😅 Thanks for the links, recommendations and experience reports! I hope I can find a way to make it work with Apple Music, don‘t really need another service. I have a developer account, anyways… :thinking_face:
I had it in the back of my mind to build a more rugged version of this, using a much lower-level controller and NFC reader, and probably using internal storage instead of streaming from the network. But I ran out of time 🙂
dumb clojure question: how do you get the index of an item in a vector? (vector of [:a :b :c]
and I want a function where calling (foo :b [:a :b :c])
returns 1
(defn positions
[pred coll]
(keep-indexed (fn [idx x]
(when (pred x)
idx))
coll))
We have this in our utilRandom question: do you hand roll Kubernetes YAMLs using rustic artisanal techniques , or is there any lib that can produce those by richly functional hipster clojure funcs?
option 3: we don't use k8s
Given that it’s all ReST, I thought there might be something available similar to cognitect AWS API.
I feel what I need to learn from the cognitect AWS API is how to turn a spec into some code w/checks really
There’s https://github.com/xtruder/kubenix for ultimate hipster points
We have a library at work to generate them from aero/edn files. I think it was meant to be open sourced at some point pt. I can ask tomorrow. It’s used for our own consumption and our managed kubernetes offering also uses it to generate customers clusters control plane manifests
@U050SC7SV that sounds like a nice lib/tool
not clojure, but there is kustomize built in to kubectl
these days : https://kustomize.io/
I can vouch for kustomize, it is easy to work with and reliable.. other than that it's just data. Generate your yaml using Clojure, no need for a special library.
the whole point of my question was how I can not write YAML 🙂 ideally something more sane language than YAML with benefits as https://github.com/dhall-lang/dhall-kubernetes - and indeed I can write maps and maps of stuff and generate yaml from that too. Which would be less wieldy I guess.
it's more about having validation & not having to write the boilerplate I suppose, otherwise going from edn->yaml is easy
Indeed. Writing yaml in yet another yaml doesn’t have any advantage for me 😅