@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 webdev
@joelanman@hachyderm.io avatar

In a web app, I'm trying to do image upload with the option to use the camera or select from gallery. Currently using this code and getting this weird screen from it. Any ideas?

#webdev

<input type="file" accept="image/*">  
joelanman, to random
@joelanman@hachyderm.io avatar

Tonight's TV: The Great - very good so far

joelanman, to Starfield
@joelanman@hachyderm.io avatar

none of 's updates are tempting me to try again. I just found the quest design extremely dull, none of your choices really matter, it didn't even really feel like there were different approaches to combat

joelanman, to random
@joelanman@hachyderm.io avatar

Brexit would be a lot more fun if it was more literal, like James and the Giant Peach but a whole country

joelanman, to UX
@joelanman@hachyderm.io avatar

Any thoughts on infinite scroll vs button to load more vs next page buttons? In the context of a feed

joelanman, to random
@joelanman@hachyderm.io avatar

Intersectionality is such an important concept. You can have different aspects of privilege and oppression, trauma in different areas. They don't cancel each other out, they interact. It's important to be aware of them

joelanman, to random
@joelanman@hachyderm.io avatar

well I was gonna have a look at Droplets in Digital Ocean but the UI just won't load in Chrome or Safari, geez

joelanman, to random
@joelanman@hachyderm.io avatar

would be nice if Slack didn't like, break the law. Seems a low bar

joelanman, to random
@joelanman@hachyderm.io avatar

Ha ha pretty proud of this one

Framed
🎥 🟩 ⬛ ⬛ ⬛ ⬛ ⬛
https://framed.wtf

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})  

#nodeJS

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?

#ai

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, 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 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/

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, to random
@joelanman@hachyderm.io avatar

I have a database question - say you have an items table and a messages table, and messages can refer to items. If someone needs to delete an item, you can't because of the foreign reference in messages.

I know you could 'soft delete' - set a status column to deleted, but what if you really need to delete, for example because the content is illegal or the user has a legal right to delete it?

joelanman, to random
@joelanman@hachyderm.io avatar

more like DontSharePoint amirite

joelanman, to webdev
@joelanman@hachyderm.io avatar

has anyone done a good tutorial for new HTML popovers? MDN is a bit dry

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover

joelanman, to random
@joelanman@hachyderm.io avatar
joelanman, to javascript
@joelanman@hachyderm.io avatar

This feels a bit wonky to me. You can't use const like this:

try {  
 const myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

as myVar doesn't exist outside the try scope. So if you need to do a try catch, you have to use let - even if you actually want to use the variable as a const (not change it later)

let myVar  
try {  
 myVar = myFunc(options)  
} catch (error) {   
 console.error(error)  
}

console.log(myVar)  

#javaScript

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, to random
@joelanman@hachyderm.io avatar

is a .env.template the normal way to document what's needed in a .env file in a project? Or do you do that in the readme/dev docs, or both?

joelanman, to webdev
@joelanman@hachyderm.io avatar

https://www.rspca.org.uk loads 5mb of JavaScript... just, why? To do what? The state of tech architecture is just awful

joelanman, to random
@joelanman@hachyderm.io avatar
joelanman, to random
@joelanman@hachyderm.io avatar

Come on George Monbiot, what is this?

"A tall, fit, handsome man of 62, with a powerful frame and thick hair, he seemed remarkably friendly and kind. How could this person hold such terrible views?"

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • magazineikmin
  • cisconetworking
  • khanakhh
  • Youngstown
  • rosin
  • mdbf
  • slotface
  • Durango
  • ngwrru68w68
  • thenastyranch
  • kavyap
  • DreamBathrooms
  • JUstTest
  • cubers
  • osvaldo12
  • normalnudes
  • GTA5RPClips
  • everett
  • ethstaker
  • modclub
  • tacticalgear
  • megavids
  • Leos
  • anitta
  • tester
  • lostlight
  • All magazines