TomMasz

joined 1 year ago
[–] TomMasz 18 points 5 days ago (1 children)

Saw this one coming. He'll do the same to justify ending elections.

[–] TomMasz 9 points 5 days ago (1 children)
[–] TomMasz 11 points 1 week ago* (last edited 1 week ago)

It was a long time ago that I realized that women’s clothing sizing was largely fiction. Trying to buy clothing for a girlfriend or (later) my wife based on the tag of something they already owned was an exercise in futility.

[–] TomMasz 4 points 1 week ago* (last edited 1 week ago) (2 children)

Dark Star(1974), directed by John Carpenter (The Thing) and written by him and Dan O'Bannon (Alien). Worth a watch for the low-budget effects and realistic depiction of what it must be like to be stuck in a spaceship for 20 years with the same people.

[–] TomMasz 8 points 1 week ago

Is this what being on drugs is like in normal times?

[–] TomMasz 1 points 1 week ago
[–] TomMasz 7 points 2 weeks ago (1 children)

Make sure your hosting supports webfinger, otherwise activitypub probably won't work. I'm on Siteground and they explicitly prevent it. Matthias Pfeferle, who wrote the ActivityPub plugin and now works for Automattic, actually asked them to enable it but they said no. Other hosts might do this as well.

[–] TomMasz 14 points 3 weeks ago* (last edited 3 weeks ago)

I'm so angry I'm going to spend hours angrily inscribing a clay tablet telling Ea-nāṣir know how angry I am.

[–] TomMasz 14 points 1 month ago

Eventually, even Tom Brady wasn't Tom Brady. And he's no Tom Brady.

[–] TomMasz 2 points 1 month ago

I'm sure he'll be prosecuted. Oh, wait, he's a Republican, nevermind.

[–] TomMasz 4 points 1 month ago
 

i have a format for note-taking in meetings that I currently copy/paste to use in new notes. I would like to be able to create a new, empty, note based on that format so I can skip the copy/paste step. I have Templater but it seems far more complex than what I need. Any suggestions?

67
Ride paranoid! (lemmy.world)
submitted 11 months ago by TomMasz to c/bikes
 
 

Absolute JS newbie here. I am able to use fetch() to get JSON from a URL but I can't figure out how to do anything with that JSON outside of the fetch itself.

Here's my code (API key and GPS redacted):

fetch('https://www.airnowapi.org/aq/forecast/latLong/?format=application/json&latitude=X&longitude=X&distance=50&API_KEY=X')
        .then(result => result.json())
        .then((out2) => {     
            console.log('Fetch Output: ', out2);
        }).catch(err => console.error(err)); 

Any code that references out2 other than console.log() call gives an error that out2 is undefined. How do I get access to out2 anywhere else?

view more: next ›