PHPNews

Elsewhere 2019 w28

A few interesting links I came across this week. Ethical Web Principles Found on July 12, 2019 at 17:01 pm I've had this link open in my browser nearly a month after seeing Jeremy posting it. This list makes up the core ethics for working on the web. It's something I feel is worthy of re-reading every week to …

Continue reading »

Written by Remy Sharp - - Aggregated on Saturday July 13, 2019


A thought: Privacy Pollution

This post is very much a stream of thought from a small handful of conversations and triggered by a tweet I saw today. Firefox have launched Track THIS - a "tool" that will launch 100 tabs depending on the persona you select - which I half suspect are based on the Spice Girls personas. The effect of launching …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday June 27, 2019


Scheduled and draft 11ty posts

This post explains how you can add scheduled publishing to your 11ty blog (with a bonus for drafts). Before I jump in though, 11ty is a surprisingly simple system for generating a static site from very little HTML, and drives content from markdown. Why is this good? Because it lets you, the author, move focus to …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday June 26, 2019


Send Outgoing Webmentions

In a recent Twitch session I decided to add Webmentions to my blog, specifically in the flavour of showing "liked" from other websites (though, who am I kidding, it'll just be Twitter…). Amazingly I managed it in 90 minutes (with 3 stream crashes to boot). Adding Webmentions to a site seemed straightforward and …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday June 18, 2019


Reduce spread and the path to unique

As modern JavaScript language features land more and more support I find myself using more and more of the syntactic sugar. I'm a big fan of default arguments but I also really like the ...spread syntax. With that, I've found myself using spread syntax to get a list of unique elements, except until recently, I …

Continue reading »

Written by Remy Sharp - - Aggregated on Saturday June 15, 2019


Ejecting Disqus

Running a routing performance check on my blog I noticed that in the list of domains being accessed included facebook.com . Except, I don't have anything to do with Facebook on my blog and I certainly don't want to be adding to their tracking. I was rather pissed that my blog contributes to Facebook's data so it …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday June 11, 2019


Slide Show Karaoke

During a jsconf.eu break as I attempted to lighten Katie Fenn of her npm stickers, I was unwittingly co-opted into presenting to a series of animals. This was in fact for Global Diversity CFP which I'm probably (or certainly) not the target audience, but it was fun all the same. So then when I travelled back …

Continue reading »

Written by Remy Sharp - - Aggregated on Monday June 10, 2019


Firebase + Lambda + Zeit now

Super niché I know. I've been playing with Zeit's v2 now platform, and in particular I wanted to access a low cost (read: free) database with as little technical overhead as possible. Somehow I thought that Firebase's Firestore would be a good match, but if you try this at home you'll run into some roadblocks pretty …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday June 5, 2019


All I want for Christmas is…

…my two front teeth. A song, that for reasons beyond my comprehension, went around my childhood household like a bad smell . As a child, I think around 9 or 10, I was going down a slide, my best friend at the top with his feet apart standing on the slide, and I'd slide under him, face down. Eventually I clipped …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday May 21, 2019


Compiling binaries for Netlify

There's the odd occasion that inside of a Netlify build (or maybe a lambda function) that I've wanted to execute a custom binary. Most recently for me, a C based program called goaccess . This is my "easy" method for compiling to run inside of Netlify. "Easy" because it's the way that works for me in a repeatable …

Continue reading »

Written by Remy Sharp - - Aggregated on Monday May 20, 2019


How I got AWS running inside Netlify

In a recent attempt to move away from Google analytics I wanted to be able to run the AWS command line tool from inside of Netlify's build process. Except it turns out it wasn't so easy to get AWS's environment variables in Netlify because Netlify have some undocumented reserved environment variables: …

Continue reading »

Written by Remy Sharp - - Aggregated on Saturday May 18, 2019


Bare Import Cost

This post is about import in JavaScript. This post, I'm afraid doesn't have any grand solutions or even semi-grand conclusions. In fact, by way of disclaimer, this is more of a stream of conscious thought. In my travels across the web lately, I keep coming across JavaScript libraries whereby the very first line in …

Continue reading »

Written by Remy Sharp - - Aggregated on Friday May 10, 2019


Search & dynamic shortcut links for a static site

In porting my blog from Heroku to Netlify there were a few dynamic aspects that I had to reconsider in moving to a fully static hosting platform. Two features, which in my case, are closely connected, were search and dynamic shortcut links. These shortcut links meant that I could visit remysharp.com/twitter and it …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday May 2, 2019


All your envs in a row

If you've used Zeit's Now platform you'll know to get your environment values readable by your code, you have to jump a few hoops. There are solutions in place, you can put your environment values in a now.json file and you can use the zeit/now-env to read the values during dev, but I'm not a fan. My …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday April 24, 2019


How to put your kid in Scratch

I was asked by a few parent friends how I put my kid in Scratch , so here's my guide to how to put (and animate!) your kid in scratch ala: 1. Photos I used my phones camera to capture these pictures. He changed his pose as I took each picture. You should try to find a relatively visually quite surroundi…

Continue reading »

Written by Remy Sharp - - Aggregated on Monday April 15, 2019


Code highlighting: server or client?

Recently I posted a quick poll to Twitter asking: Do you think syntax highlighting (in blog posts, examples, etc) be in client side or server side? For the first half of the day the poll ran, client side held 2/3rds of the votes. It ended with a 60:40 split between client and server. Though (without …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday April 9, 2019


How I failed the

A real bug bear of mine is when JavaScript gets in the way of browsing a page on the web. Simple, but common things like time to interactive being delayed for no good reason, or, in this case, links that don't work like links. I'm guilty of this too, so this is my post to call myself out and to (ideally) prevent …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday April 4, 2019


Twitter without tracking

Recently I've been using the DuckDuckGo browser extension that gives me a web site privacy score but also the number of trackers (blocked) on the web site which I've enjoyed getting insights on what has been blocked. Seeing trackers surfaced in this way made me aware that by including a "here's me on …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday April 2, 2019


Slashed URI

Trailing slashes in URIs, or URLs or UDI ( surprisingly ). What the heck do they actually mean, do they have any user or technical value and should I be including them??? Inheritance from Unix A slash in the URL is a hang over from Unix days. A slash / (not to be confused with a backslash \ ), denotes a …

Continue reading »

Written by Remy Sharp - - Aggregated on Monday March 25, 2019


#Web30

This week marks the 30th birthday of the web. I've had my own involvement in this momentous date in history with being part of the WorldWideWeb restoration team at CERN last month, and having returned from the #Web30 event yesterday (both at CERN and at the London Science Museum), I thought it fitting to pay tribute …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday March 13, 2019