@joelanman@hachyderm.io avatar

joelanman

@joelanman@hachyderm.io

He/him, previously design lead on GOV.UK Prototype Kit and other GDS projects.

Looks after plants and animals. Anxiety and depression

This profile is from a federated server and may be incomplete. Browse more on the original instance.

joelanman, to random
@joelanman@hachyderm.io avatar

Ha ha pretty proud of this one

Framed
๐ŸŽฅ ๐ŸŸฉ โฌ› โฌ› โฌ› โฌ› โฌ›
https://framed.wtf

joelanman,
@joelanman@hachyderm.io avatar

@cwilcox808 ha, how did my message help?

joelanman, to CSS
@joelanman@hachyderm.io avatar

Is setting up a CSS grid, then having row divs with display: contents so its contents line up with grid a common pattern? Any pitfalls?

joelanman,
@joelanman@hachyderm.io avatar

@urlyman @eric good to know!

joelanman, to CSS
@joelanman@hachyderm.io avatar

> The most obvious difference between anchor and absolute positioning is that you donโ€™t have to nest your anchor target element into the child tree of the anchor element (i.e., the element with position:relative). On the contrary, you can place your anchor target element anywhere in the DOM.

https://blog.logrocket.com/use-css-anchor-positioning

joelanman, to programming
@joelanman@hachyderm.io avatar

missing from native Node - write a file and create any necessary folders in the path

fs.writeFileSync('a/b/c.txt','hello', {recursive:true})  

joelanman,
@joelanman@hachyderm.io avatar

@jscholes not sure, but it's such a common need I find. Python has this apparently:

from pathlib import Path

Path("my/path/to/create").mkdir(parents=True, exist_ok=True)  

Also, how do you do that in Node? So that it doesn't complain if it already exists?

joelanman,
@joelanman@hachyderm.io avatar
joelanman,
@joelanman@hachyderm.io avatar

@jscholes yup, but Node's errors if it exists, so you have to wrap it in a path check - thats what I meant by complaining

joelanman,
@joelanman@hachyderm.io avatar

@jscholes ah you're right! I was sure it threw an error but recursive: true doesnt, thanks!

joelanman,
@joelanman@hachyderm.io avatar

you can do this, thanks @jscholes

const filepath = 'a/b'  
fs.mkdirSync(filepath, { recursive: true })  
fs.writeFileSync(filepath + '/c.txt', 'hello')  
joelanman, to random
@joelanman@hachyderm.io avatar

are there any subscription services that proactively let you know you're not using it much and you could downgrade or cancel?

joelanman, to random
@joelanman@hachyderm.io avatar

A lot of people are finding LLMs more useful than Google search.

I think a huge part of that is that Google and web in general has massively deteriorated in terms of finding clear, concise answers. Even if you can find it, it's covered in ads, cookie popups and so on.

But LLMs will inevitably follow the same path - investors want their returns. And the complete non transparency of LLMs will make it even worse this time around. Is that really the best answer or is it sponsored?

joelanman,
@joelanman@hachyderm.io avatar

@kornel @benjamineskola pretty hilarious that lots of models are getting trained on answers from chatGPT

joelanman,
@joelanman@hachyderm.io avatar

@kornel @benjamineskola the ability to do that reliably and accurately? In my experience, not really. Enough to be helpful in some contexts maybe

joelanman,
@joelanman@hachyderm.io avatar

@kornel what have you been using it for?

joelanman, to webdev
@joelanman@hachyderm.io avatar

running a web service that sends emails, do you have to send plain text as well as html emails? If so, whats a good strategy to keep them in sync, content wise?

joelanman,
@joelanman@hachyderm.io avatar

@tomw I thought you were being weirdly rude until I remembered mutt is a client

joelanman, to random
@joelanman@hachyderm.io avatar

Join my campaign for readed. What kind of language has the same word for future and past tense?

joelanman, to indiegames
@joelanman@hachyderm.io avatar

Wildermyth is on sale again, very nice fantasy XCOM with a focus on dynamic story telling
https://store.steampowered.com/app/763890/Wildermyth/
#indiegames

joelanman,
@joelanman@hachyderm.io avatar

@grogpod oh I didn't know, thanks!

joelanman, to random
@joelanman@hachyderm.io avatar

huh I didnt know Ben Kingsley was born Krishna Pandit Bhanji

https://en.wikipedia.org/wiki/Ben_Kingsley

joelanman, to random
@joelanman@hachyderm.io avatar

Another db question! I'm using migration files whenever I make a change to the db. When I'm doing dev, whats a good source of truth for the current structure of the tables (column names, types and so on)? I could app switch to my db admin app but I'd prefer a quick way to reference inside VS Code

joelanman,
@joelanman@hachyderm.io avatar
joelanman, to ai
@joelanman@hachyderm.io avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • provamag3
  • ethstaker
  • magazineikmin
  • vwfavf
  • InstantRegret
  • Youngstown
  • Durango
  • khanakhh
  • slotface
  • ngwrru68w68
  • rosin
  • thenastyranch
  • kavyap
  • PowerRangers
  • anitta
  • DreamBathrooms
  • everett
  • tacticalgear
  • osvaldo12
  • cubers
  • mdbf
  • cisconetworking
  • normalnudes
  • GTA5RPClips
  • tester
  • modclub
  • Leos
  • megavids
  • All magazines