This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-07
Channels
- # announcements (3)
- # babashka (28)
- # bangalore-clj (6)
- # beginners (91)
- # calva (14)
- # cider (7)
- # clojars (6)
- # clojure (24)
- # clojure-europe (3)
- # clojure-nl (5)
- # clojure-uk (134)
- # clojuredesign-podcast (1)
- # clojurescript (16)
- # cryogen (3)
- # cursive (3)
- # data-science (1)
- # events (1)
- # fulcro (7)
- # jobs-discuss (1)
- # luminus (4)
- # malli (1)
- # re-frame (7)
- # shadow-cljs (74)
- # spacemacs (23)
- # sql (6)
- # tools-deps (2)
I did look at open graph but it does seem like there are existing meta tags for most of it. E.g. Title, description, author.
@lady3janepl fwiw, I'll probably use that schema for attribute names in the blog parts, eg pubdate. Although there's some overlap with the rss standard which is perhaps more standard.
https://stork-search.net this is very cool
> I did look at open graph but it does seem like there are existing meta tags for most of it. well, we're still in the vendor war era unfortunately. You need to repeat content in open graph, twitter, and normal meta tags, if you want nice "cards" to show for your links in facebook (og), linkedin (og), and twitter (twitter)
They don't fall back on a normal description?! Yikes. I assumed it was just for tailoring it to a site.
https://neilpatel.com/blog/open-graph-meta-tags/ looks mostly okay
@fmjrey I write a lot of static sites at http://practicalli.github.io and use Cryogen for the blog site. It's very simple to use and much faster than the nodejs tool I used previously. I use markdown, so haven't tried the asciidoc part yet. For the static site I use for books, I use http://Gitbook.io, the open source project, not the online service, but this is deprecated (and uses a lot of CPU to generate a 100+ page static site). It does create a nice responsive static site though with Klipse plugin. I am looking for another tool, ideally Clojure or ClojureScript to generate static sites for books. Something I can hack on and add features. Would be nice to create a library of tools that can build a range of different types of sites (blog, landing page, book, multi-page tutorial, etc) from a range of sources (markdown, asciidoc, org, hiccup), with a nice templating system.
Enjoy using cryogen, I do feel like using it to code snippeting was fiddly, I was trying to write a blog post about some code that I had written with the intention of making the code tinkerable in browser, pulled in klipse and could not get all the parts working with each other, probably was doing something wrong, but I decided to come back to it later…
(not that I'm trying to convert you, but if you're stuck, that's one of the things I was fixing yesterday)
in the post, indicate which fenced code blocks should be klipsified by setting klipse-cljs
as language
Ok, but how hard is it to load in external stuff? Like if I have a cljs or js file which contains a bunch of code, can I reference it and then use it in a snippet?
I haven't tried loading external stuff, but you can interact with everything outside of klipse
process of setting up klipse: https://www.3jane.co.uk/posts/setting-up-cryogen-blog/ interacting with DOM with code inside klipse: https://www.3jane.co.uk/posts/breaking-out-of-klipse/
(ignore the "rodent" mentions in the first one, blog used to be called something else 😉 imma update this once I'm done faffing with domain setup)
Thanks @lady3janepl, I’ll give this a shot =)…
https://validator.w3.org/feed/docs/rss2.html#ltcloudgtSubelementOfLtchannelgt want some soap in your rss?
Hi everyone, cryogen does seem to be the winner here in terms of popularity so it will be my first choice, and before going NIH maybe consider improving it?
if you're looking to start immediately, comment out cryogen-flexmark
in your dependencies, and use cryogen-markdown "0.1.11"
until fixes hit
I think the main reason I decided against this was that: • Fixing the asciidoctor integration requires not only fixing it to be "correct", but I expect I would find resistance in removing the edn. I'd have to extend the concept of metadata, provide coercions, etc. It's a lot of work and I'm not really sure it would be welcome • I felt like the API was a little bit rough. It generates 2 cryogen.x namespaces, which shouldn't really live in my project. Fixing this is somewhat breaking, it certainly makes the docs more confusing for "legacy" users. I just didn't want to fiddle with all of that. I also just wanted to challenge myself to write something. It was somewhat of a "huh, think you can do better do you Dominic? Prove it". I'm definitely not there yet 🙂.
feedly + Firefox with RSS plugin
I use Rometools to fetch RSS and jsoup to fetch actual articles. Those are java libs though
Saves me time trawling throught lots of websites for up-to-date news/articles and such like.
Following specific topics or blogs. I find it useful that I can subscribe to any topic on Guardian, eg all the theater reviews or articles related to particular areas I'm interested in. Plus i subscribe to some financial independence blogs, some tech blogs, some blogs of personal friends that post very occasionally.
aha: so, usecases: • notifications from blogs that post infrequently • receiving updates of subsections of a webpage which has a huge volume • reading a lot of smaller publications
That fits with my usage. I subscribe to a lot of feeds, and otherwise there's no way I'd remember to look at the ones that post less frequently.
I've heard from a lot of people that after google reader was shut down, they've stopped using RSS
personally, I tried other readers, and the problem for me wasn't readers, but that sites stopped publishing full articles in feeds
I'm thinking of changing that as there's some high quality blogs I feel I'm missing.
so the whole promise of syndication fizzled; I had to go to people's sites anyway, and click through the tedious pagination
The full article thing was annoying. There are tools out there which will convert those.
https://www.feedenlarger.com/ something like this 🙂 can't remember what I used way back when.
interestingly, I just learned that partial descriptions is a normal part of rss. It's essentially, by design.
To me RSS was more about knowing the headlines and then going to the article if needed, when the feed did not provide enough. Most sites still have much to gain from getting visits.
do you have opinions on domain names? what should be your primary address, http://www.somedomain.com or http://somedomain.com ?
(I'm partial to www. because I like having multiple specialised websites on the same domain, but I wonder what the general consensus is)
I saw a few articles about this on http://lobste.rs a little while ago. Seemed there was no social reason to go with www, there were some fiddly technical stuff which mostly didn't matter.
I used to be the other way around, but it’s useful to just be able to create subdomains for various things…
personally I'd favour subpaths instead of subdomains, but I'd still make a www. that redirects to main.
subdomains should serve very distinct purpose from main domain, things that cannot live under a subpath for good reasons, though you need to be mindful of the cookie payload, etc.
also subdomains and cloud usage in large orgs can easily lead to subdomain takeover...
Anyone willing to recommend any of the new macbook pro’s? Or alternatives? Surfaces any good etc?
I use a macbook pro at work, but a simple Lenovo Thinkpad X260 (cost me about £400) with the latest Ubuntu on it. Of the two, I think I like the thinkpad a bit more these days. Simpler, faster (even wit just i5 chips and 16gb of RAM) and easier to configure.
but, of course, if work is paying, I might go for the very latest MBP. But get the very latest one -- the one with the real escape key. I've heard people complaining about those virtual keys, mostly vim users.
That's what I have now at work, a 2015 model. Plenty of ports and that magnetic charger has saved it more than once.
The people with the newer ones have to carry adapters with them whereever they go.
people at work had newer (but not the newest) ones and they had problems with keyboard and screen quality
Not sure about the hardware changes they’ve been making recently, it’s super annoying to discover you need to tweak something at a low level and then go through a fun dance to change settings… Had to fiddle with system protection once to change a system setting and had to do a few reboots to get into safe mode to change it…
Trying to remember what it was for but presently escapes me, something to do with tweaking .DS_Store
I think…
How is ubuntu these days @UR71VR71S?
It’s been at least 5 years since I used it as a desktop, servers aren’t quite the same thing…
@folcon, I'm using 19.10 on the thinkpad, so a bit of the bleeding edge (not the LTS version), but everything works as expected. It sleeps correctly when I close the lid, uses an external monitor (or even two) and the battery life is good. I'm getting eight hours, but I have the extended battery on this. I've been using Ubuntu since Warty (the first version), but mostly on desktops. It's quietly gotten quite polished.
(But I've been using Linux since 1994-ish, when I had to download 20+ floppy disks. I think my first version was something called TAMU (Texas A&M University), then Slackware, Red Hat/Centos, Debian. I remember the days when you really could destroy your system or monitor with the wrong settings. So, by polished...)
Yep, remembered the name correctly: https://archiveos.org/tamu/ and it was probably 1993 when I started using it.
I have a Lenovo X1 Extreme (2ng gen) with 32Gb Ram and dual SSDs in Raid0 and Nvidia graphics on demand. Running Ubuntu server (for the raid) with Regolith desktop. Works beautifully and is incredibly fast. No problems running this lightweight powerhouse.
It also has a keyboard I can type on all day, every day (as I do most weeks)
I have a Lenovo x280 and I like it a lot (i7, 16GB RAM, 512GB ssd). I run Void Linux on it and manage to not break things too often :)
@folcon its a machine that will carry me through the whole decade :)
Actually, question to any and sundry still paying attention to this thread, how’s the touchpad experience? If I think about it the two things I’d miss is good driver/compile experience, (tons of dev stuff seem to default to mac in my experience) and apples touchpad, nothing too fancy, just responsive and what I would think of as basic stuff like 2 finger scroll etc…
I use X1 Carbon. Touchpad ... it takes some getting used to. I mainly use trackpoint though. What doesn't work for me: fingerprint scanner and microphone. Still happier to use it then my MacBook Pro. I have the last one with very shallow keyboard
The Mac’s touchpad is very nice, and as you say a lot of development stuff seems to target Mac OSX. I’m a keyboard oriented user — a touch typist and some 25-30 years of emacs bindings muscle memory — so the track point is merely nice, not a deal maker or breaker for me. I like the Thinkpad’s rubber thingy in the keyboard, whatever it is called, because I don’t have to move my hands too much. But moving back and forth between the thinkpad and the MacBook is a real pain. As for the Mac dev environment, it’s good, but so is Linux’s, and we’re (almost) all deploying to Linux, so you eliminate some issues by also developing there. Apologies for the typos — wrote this on my phone.
Yea, I switch back and forth between keyboard first and touchpad first, it’s just touchpad is such an ingrained driver on the browsing level, I could certainly go back, but I know I will miss it, so I’m wondering will I have to =)…
https://lobste.rs/s/gfi4xp/domain_ical_domain_ssl_expiration it's a shame this site doesn't exist anymore. Such a good idea!
I’ve done little things like that in the past, and stopped supporting them when I stopped needing them, I know in my case if they had usage there would be some impetus to keep it up in some capacity…
I've had domains and ssl expire on clients before. It's surprising how unprepared they are.
I suppose I’m surprised that this is not prepared for? However perhaps after the first scare people get their act together? Hence no real follow on interest?
I was surprised too. But that becomes next year's problem... Domain iCal has the nice side effect of being that solution I suppose.
I suppose with letsencrypt that stopped being next year’s problem, but a problem every 3 months unless you automate it ? 🙂
Oh yeah. Domain expiration is pretty bad if you don't have auto renew on. Aws solves this mostly too.
Re static site generators, I started playing around with Gatsby and then a work colleague recommended trying react-static instead for a couple of reasons. Ended up reviving my site with that, hosting the build on Netlify whenever I publish my master branch to GitHub. It was an interesting learning experience, but I'm not sold on react-static. The docs/videos seem very sparse or outdated. I may switch to something else soon. Netlify seems pretty cool though
Ugh, any suggestions for transforming a complex nested map than clojure.walk
? (I’m getting the impression the answer is lots of reducers)…
Specter?
(never used it myself but I hear folks recommend it for that sort of thing)
basically sending some state over a wire, wrote something really naive, now its time to pay the piper :)…
Yea, that might be a good solution @seancorfield… I haven’t used it in a while
In general nothing, after all as I said I wrote something naive to start. At the moment however, this happens:
(let [w (s/start-sim setup)
w (nth (iterate s/tick-world w) 1000)]
(time (dotimes [_i 10]
(redacted-game-state w))))
"Elapsed time: 249599.23 msecs"
All that redacted-game-state
is supposed to do is make the sim state safe to send over a sente websocket, this is after all, very much a prototype =)…
feedly + Firefox with RSS plugin