PHPNews

Debugging vanishing text in shell scripts

Did you ever get a weird bash scripting issue where a variable would "randomly" eat characters of another command? No…? Well, I have, quite a few times, so I figured it was time I wrote up my fix. Tools used: curl , awk and od The issue I was writing a small shell function that used the output of a …

Continue reading »

Written by Remy Sharp - - Aggregated on Monday October 29, 2018


Curation all the way

Curation is massively important to ffconf, and as of last week, ffconf now has a complete line up of speakers and sessions for ffconf v10 in early November. The talks are: The Future of JavaScript & Machine Learning Mentoring: Being the help you wish you'd had Practical Web Animation Is it …

Continue reading »

Written by Remy Sharp - - Aggregated on Friday October 5, 2018


Peer Deps

Just using my blog to share a little tip for future me that current me keeps forgetting. Over the years when working with clients I've created reusable React components, and it's pretty important to me to ensure that dependencies like React aren't dependencies of my own work - specifically to prevent React (for …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday September 27, 2018


Midlife

40. The big one . Though, I think television and movies have a lot to answer for that one. I wrote about turning 30 (content warning: decade old writing!), and I wanted to mark this one too, somehow.  A picture of me from earlier, with Gin-Gin, my guinea pig ( little did I know of the importance of gin…gin …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday September 12, 2018


8 years on

This is a stream of thought that I need to get out of me, and on to my personal blog. I apologise if it rambles, and I apologise if it's a bit too raw. I don't know who this is for other than me. But I wanted to put these thoughts here, today. I turned 32 fourteen days after Tia came into our lives. For those new …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday August 30, 2018


CLI: improved

I'm not sure many web developers can get away without visiting the command line. As for me, I've been using the command line since 1997, first at university when I felt both super cool l33t-hacker and simultaneously utterly out of my depth. Over the years my command line habits have improved and I often search for …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday August 23, 2018


My NHS Story

Today I realised that it was the end of the month and my two blog post a month, self imposed quota was going to fail. I had a few posts planned, but I'd found myself in hospital, and I realised it was a good opportunity to a) kill some time, b) write about how amazing I think the National Health Service is. …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday July 31, 2018


When helpful turns into super bad security!

A shortish post partly to point out a bad…no, terrible practise, and in part to remind myself to never do this again! The short version: I wrote code that allows anyone to expose secrets (i.e. environment values) in my application. Trying to help In writing jsonbin I found that it was pretty common for …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday July 25, 2018


An adventure in sparse arrays

I offered to coach JavaScript recently, and an exercise I dreamt up was to implement every array (prototype) method, and write tests that they work. Since I'd come down with tonsillitis which apparently comes with a full on bedridden fever, I thought I'd have a go myself. And I learnt a few things along the way. …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday June 26, 2018


Manual Aspire

As part of my research for the talk I gave at jsconf.eu 2018 , I bought a ZX Spectrum 48K. I purchased the machine from eBay, but it was indeed an original 1980's Spectrum with a few internals cleaned up. In fact, it even came with the original manual which I had long forgotten. Except the manual isn't a manual at …

Continue reading »

Written by Remy Sharp - - Aggregated on Tuesday June 19, 2018


The story of 42 million bins

This past month of April I had a bit of an adventure in server fires (though thankfully not literal) so I thought it might be interesting to share my experience, what I did, tools I used, discovered and created. Originally posted to my newsletter last month. It started with a retirement notice… One …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday May 31, 2018


My extinguished kindle

Last night I reached for my Kindle to continue reading 1984. I had just started part 3 of the book and a big turn of events had just happened. Except, I couldn't. My Kindle's screen had cracked. Or the e-paper in particular. After doing some quick reading, it seems that this is fairly fatal for a Kindle and it was …

Continue reading »

Written by Remy Sharp - - Aggregated on Friday May 18, 2018


I use the terminal a lot and aliases are a great way to both personalise my command line experience, but also to make some tasks a little easier (and sometimes, smarter

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday April 25, 2018


Quick tip for node modules

When writing my node modules, I've come to really quite enjoy using Jest for testing (I've written about how I used tap and it's quite similar). Sometimes however, being able to execute the module on the command line and passing some arbitrary data can be pretty handy, and I've used the following technique on a …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday April 12, 2018


Why I have a limited company

I've been asked a number of times over the years why I chose to run my business under a limited company, specifically Left Logic instead of running the business under my own name – since, for the majority, hiring Left Logic is hiring Remy Sharp. So I thought it would be useful to post it here (partly for me, partly …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday March 29, 2018


Last minute node debugging

I'm working on a node project that I need to debug, but I didn't start it with the --inspect flag. Moreover, I'm using nodemon to restart node (which makes this process a little trickier). Finding the node process id The first task is to find the node process id (aka PID). The way I do this when running …

Continue reading »

Written by Remy Sharp - - Aggregated on Saturday March 3, 2018


Headless Raspberry Pi setup

The following information is scattered around the web and it's taken me a few times to find it each time, so I'm putting it here for safe keeping. As much as I love the Raspberry Pi's, I rarely have a mouse and keyboard handy for setup, and nearly all concessions, I want to run the Pi in headless mode (and ssh into …

Continue reading »

Written by Remy Sharp - - Aggregated on Sunday February 18, 2018


How to cross post to Medium

At some point during 2017, Medium decided to pull their IFTTT applets that allows content to be posted into Medium. Which I think is a pretty shitty move since there was no notification that the applet was pulled (I only noticed after Medium just didn't contain a few of my posts), and it smacks of "Medium should be …

Continue reading »

Written by Remy Sharp - - Aggregated on Thursday February 1, 2018


Open source with a cap in hand

Nodemon was first released in Oct 2010 ( via twitter no less ). To date, nodemon has had 1,024 commits - 184 of which were the community, the rest being from me - runs with over 150 tests (mostly integration tests) had 144 releases into npm, starred over 13,000 times, has had 883 issues closed, merged 331 PRs (mostly …

Continue reading »

Written by Remy Sharp - - Aggregated on Wednesday January 10, 2018


A clean exit

I was running some tests recently using Mocha and I wanted to re-run the tests when files changed. Typically this kind of functionality is built into test runners, but a) I'm not that familiar with Mocha (meh, it's just a tool) and b) I've got nodemon (which I wrote)

Continue reading »

Written by Remy Sharp - - Aggregated on Monday January 8, 2018