• hawksworx
  • blog
  • speaking
  • about
  • search

Notes - page 313

  • Newest
  • Previous
  • Next
  • Oldest

The archive of what I posted on Twitter, which I now self host due to a lack of trust in Twitter and some other reasons.

I'll soon begin refelcting all my Mastodon posts here too. I'm happier self-hosting or maintaining an archive of my content on URLs that I can own.

There are tools to help you do this too. Such as this one from the makers of Eleventy.

A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @jdlrobson
@jdlrobson @mahemoff @brad_frost 😻😻😻😻😻😻😻😻😻😻
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @DavidDarnes
@DavidDarnes @rafahari Never. Joke. About. Office. Supplies.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @rafahari
@rafahari This is the single best thing I've ever seen in my life.

Multiple nose-snort moments.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @philhawksworth
@brad_frost Narrator: He was not cool.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @brad_frost
@brad_frost 10 PRINT "Phil is cool"

(Followed by...)
20 GOTO 10

...on every BBC Micro I could find on display in the shop.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 3rd 2019 replying to this from @HenriHelvetica
@HenriHelvetica @Netlify @jllord Nice! That talk by @jllord is excellent. And this technique is handy. I've used it in a number of places.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @philhawksworth
@Kajrietberg An example of that to explore:
https://github.com/depadiernos/token-hider-inator
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @raymondcamden
@raymondcamden @Netlify My work here is done.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @philhawksworth
@Kajrietberg or... could that call and page population happen at build time when you generate the page, instead of in the browser? That would mean that you'd not hit API rate limits if *gazillions* of people requested your page (since you'd only get the data at build time, not request time)
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @philhawksworth
@Kajrietberg Instead you might want to proxy that JS call via an API in a serverless function. Netlify Functions can help you with that by adding your API key (they have env var access) and proxying to that opendata endpoint.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @Kajrietberg
@Kajrietberg Careful. It looks like you are conflating what you are trying to do at build time, and what you want to run in the client. Env vars are only available to the server.

If you need that JS to run client-side, you'd not want to populate it with your API secret. It would be exposed.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @raymondcamden
@raymondcamden @Netlify 🎉
Names for things are hard. And the cognitive baggage that comes with the word "static" is a big part of why another term is useful.

I'm less worried about the word we use, and more excited by the potential in...

- JAMstack
- Static
- StaticFirst
- Pre-rendered
- ShortStack
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019
This is a handy way to build and deploy your #JAMstack site on @Netlify directly from a Google Sheet where you manage some of your content. https://twitter.com/jmolivas/status/1112978392180113409
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @rem
@rem @jaffathecake I totally agree.

Developer convenience has trumped other considerations. Which is something to be wary of. I'm using @eleven_ty to do this as it brings support for using @LeaVerou's @prismjs which I already really love.

https://github.com/11ty/eleventy-plugin-syntaxhighlight
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @rem
@rem @jaffathecake Interesting though, that the result of your poll leans so much towards doing this client-side. I'm assuming ( 👈 danger!) that's because it feels simpler and easier for developers to do it that way.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @gauntface
@gauntface @eleven_ty @slsoftworks @rem Yeah, that's what I meant.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 2nd 2019 replying to this from @swyx
@swyx @Benghamine *whispers*: It's my "I'm whispering something to you because you are special" pose.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @rem
@rem I do it server side at build time.
Because anything I can do ahead of time, I do ahead of time.

It doesn't add markup for me as it is done by my SSG (@eleven_ty) during the build.

One less thing to have as a client-side js dependency and on the render path.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @yorksworths
@yorksworths Never leave home without it.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @MichaelWDelaney
@MichaelWDelaney @NetlifySupport Yeah, I'd rather like this too.
We'll track it internally here. It might be possible. I'd certainly use it.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @MichaelWDelaney
@MichaelWDelaney @NetlifySupport Sadly, Deploy to Netlify buttons can't work with private repos due to the way the repo needs to be cloned on your behalf.

I bumped into this myself recently.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @Kajrietberg
@Kajrietberg You can add environment variables via your Netlify Admin (look in your deploy settings). And you can use dotenv to safely set env vars locally too.

https://www.npmjs.com/package/dotenv

Remember to .gitignore your local .env file.
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019
Unbelievably good value! https://twitter.com/csswizardry/status/1112690957743505408
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019 replying to this from @
@DirtyF @forestryio Congratulations, Frank!
  • Permalink
  • |
  • Twitter
A photo of Phil Hawksworth's face
Phil Hawksworth @philhawksworth • April 1st 2019
If I still worked somewhere I needed to do timesheets, I'd be creating a job code for:

"Time spent trying to comprehend some conversation online that turned out to be a reaction to yet another April fools joke."

#pranks #lols #japes

Roll on April 2nd.
  • Permalink
  • |
  • Twitter
  • Newest
  • Previous
  • Next
  • Oldest

The source code of this site is available on GitHub and is hosted and updated by Netlify automatically after each code commit

Other than where specified, the content on this site is published under a Creative Commons Attribution 3.0 licence.

Subscribe to a feed of blog posts on this site.