HNHacker News
TopNewBestAskShowJobs

joshfarrant

99 karma · joined January 2, 2015

https://farrant.me https://github.com/joshfarrant
submissionscomments
joshfarrant··on Sun Position Calculator
Tangentially related — on my website I track coffees I’ve enjoyed and show their origin on an interactive globe.

https://farrant.me/coffees/

The tilt of the globe on that page changes throughout the year to match The Earth’s tilt when viewed from from The Sun. The initial rotation of Earth is correct for the time of day too. This means that, when you load the page, you see The Earth as The Sun currently sees it.

I’m not sure anyone has ever noticed, and I’m sure my calculation isn’t perfect, but I enjoy watching it change over the course of the year.

joshfarrant··on Ask HN: Share your personal website
https://farrant.me

I’ve been having a lot of fun with the site in the last year-or-so. I’ve had a personal site for well over a decade now, but this is the iteration I like the most. Probably because this is the first time I’ve just built a playground for myself, and not tried to conform to what a site “should” be.

joshfarrant··on The joy of recursion, immutable data, & pure functions: Making mazes with JS
The author has also written a book which I’ve read a couple of times and enjoyed.

A Skeptic’s Guide To Functional Programming With JavaScript

https://jrsinclair.com/skeptics-guide

I’d recommend it for functional-curious JS devs like myself.

joshfarrant··on Portcullis
Imagine being under siege and dropping pitch on someone.

Give it 8-or-so years and they'll be in real trouble

joshfarrant··on Show HN: htmz – a low power tool for HTML
Finally, a Hacker News comment I can relate to.
joshfarrant··on Twenty-four hours in an invisible epidemic
Sorry, those with disabilities don’t actually have the right to enjoy art. This article just isn’t for you. /s

I hate how ableism is so prevalent on the web and amongst engineers. This website is a beautiful way to let users explore the data interactively. There’s absolutely no reason it couldn’t also be made accessible so everyone could appreciate it and explore the timeline of the page and the messages communicated therein.

As nice as the page is, the lack of accessibility comes down to laziness and complacency on the side of the author imo.

joshfarrant··on Show HN: Tell YouTube Ads to Fuck Off
YouTube charge different amounts for Premium in different currencies.

If you appear to be purchasing from Turkey (Türkiye), for example, then you’ll only be paying 29.99 Turkish Lira, or about £0.90, per month.

Well worth it for an ad-free experience (and picture-in-picture) in the native app imo.

joshfarrant··on Highgate Vampire
Whilst reading about notable people who share my surname, I discovered this bizarre article on the Highgate Vampire media sensation of the 1970s.

> There was more publicity about Farrant and Manchester when rumours spread that they would meet in a "magicians' duel" on Parliament Hill on Friday 13 April 1973, which never occurred.

joshfarrant··on Ask HN: Best service which reads online articles out loud?
I’ve historically used Shortcuts on iOS to pipe articles through Siri, but the experience isn’t great.

I’m sure services must exist which consume articles and can read them aloud with high quality test-to-speech, tracking of how far through an article you’ve listened, and so on.

joshfarrant··on Isomorphic-git v1.0
My particular use-case is that I'm not a Swift/Objective-C developer, I'm a JavaScript developer.

React Native opened the door to allow me to build apps and, realistically, I'm not going to spend the time battling through trying to get native git working through React Native. If there's a native developer out there that wants to tackle this problem and wrap it up in a nice JS module then I'd be in your debt!

joshfarrant··on Isomorphic-git v1.0
I’d love to see some work put in to making this work with React Native. I spent a day trying to get this to work a few weeks ago with no joy, and I couldn’t find any indication that anyone else had managed to make it work either.
joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
No plans currently, but the more libraries pop up around Shortcuts the more likely it is that knowledge can be shared between them, and that things may be able to be reconciled in the future. 10 different libraries all working to implement the same thing is needlessly wasteful.
joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
Thank you!

I’ll be honest, I didn’t spend too much time with Workflow before Apple acquired them. I’m hoping that the community that’s grown around Shortcuts, and the ever more interesting things that people are doing with them, will help convince Apple to continue adding more and more powerful features to the app. Full control over system-level features would be incredible for power users.

joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
I really hope so. I've submitted a radar, but as of yet there's been no progress on it.

I've not explored importing a Shortcut from a URL to be honest, I may look into that later.

EDIT: That doesn't work either.

joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
Sorry, I'm not sure I completely understand your question. Would you mind clarifying slightly please?
joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
Unfortunately it doesn't look like that works. I've been testing periodically as new betas are released, but I'm still seeing this every time I try to AirDrop a .shortcut over.

https://imgur.com/a/NmHcPY2

joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
I don’t believe so, unfortunately. Regardless of what you use to trigger the Shortcut (a QR code, NFC, running it manually) the actual .shortcut file needs to be on the device so that it can actually be run. This means that you still need to find a way to import your generated .shortcut file onto your iOS device.

There is an ‘Allow Untrusted Shortcuts’ option in the Shortcuts section of the Settings app, but as far as I can tell this currently has no effect. Hopefully enabling that toggle will, in the future, allow the import of .shortcut files directly into the app.

joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
I agree, it made life significantly easier than just using regular JS. I’d not built anything from scratch with TS before this, but it seemed such a great fit for the project I decided to take the time to familiarise myself with it. No regrets whatsoever.
joshfarrant··on Shortcuts JS – Create Apple Shortcuts Using JavaScript
Developer of Shortcuts JS here, happy to answer any questions!

At the moment the future of Shortcuts JS is uncertain. In the latest (iOS 13) betas of the Shortcuts app Apple have removed the ability to import Shortcuts from a file, only allowing them to be installed from the iCloud Shortcut sharing service. I’m hopeful that this feature will be added back in when the Shortcuts app comes out of beta in a few months. If not, then unfortunately Shortcuts JS may be dead in the water.

If you want to read a bit more about how Shortcuts JS came to be, then take a look at the medium post I wrote when I launched it. https://medium.com/@JoshFarrant/creating-ios-12-shortcuts-wi...

joshfarrant··on Shortcuts JS has a new home
Hey HN!

I'm happy to announce that Shortcuts JS finally has a proper home! The only real source of information on the library before now was the README on GitHub, so it's nice to have a better looking place to learn more about the library.

I've also spent a bit of time building a Playground into the site, so you can now play around with Shortcuts JS right in your browser! Downloading a Shortcut from the Playground doesn't currently work on iOS. I'll be adding support for that in the near future.

Any feedback on the site would be greatly appreciated!

As you'll see, we're about 10% of the way through implementing all of Apple's built-in actions into Shortcuts JS. If you'd like to help us get just a bit closer to 100% then I'd love to have you as a contributor! Adding an action only takes a few minutes and I'm more than happy to help you get started. Plus, you'll get pride-of-place in the Contributors section!

Any questions let me know!

joshfarrant··on Creating iOS 12 Shortcuts with JavaScript and Shortcuts JS
Scriptable allows you to run JS inside a Shortcut and interact with some of the devices APIs from within that JS.

Shortcuts JS allows you to build Shortcuts using JavaScript, which you can then Airdrop (or otherwise share) to your iOS device. That .shortcut file is then automatically imported into the Shortcuts app and the Shortcut you built with JS is then on the device exactly as if you’d have built it through the app. No JS ever runs on your phone using Shortcuts JS.

Shortcuts JS and Scriptable are solving different problems and don’t have any crossover at all.

Hope that helps clear it up!

joshfarrant··on Creating iOS 12 Shortcuts with JavaScript and Shortcuts JS
There's no official Shortcuts directory as far as I know. Others have tried to build their own directories, but they are very much opt-in solutions, rather than single global solutions.
joshfarrant··on Creating iOS 12 Shortcuts with JavaScript and Shortcuts JS
Hey HN!

I’m very excited to release something I’ve been working on for the last month-or-so, Shortcuts JS.

Since Shortcuts was released with iOS 12 earlier this year I’ve been really interested in the idea of building Shortcuts with code, rather than with the Shortcuts app. After a bit of hacking around I figured out a way to do it, and so started building Shortcuts JS.

Hopefully this is something that others find as useful as I do!

Happy to answer any questions!

joshfarrant··on Flat UI Colors – Color palettes for use in projects, designs, presentations
AFAIK The palettes are categorised by the nationality of the designer.
joshfarrant··on CSS Grid changes everything [video]
Was going to say the same thing. It's a great resource for getting to grips with Grid.
joshfarrant··on Show HN: OhMyCo.in – Real-time charts for cryptocurrency markets
Looks great! Looking forward to seeing support for XMR!
joshfarrant··on What we need from Apple to make standalone Apple Watch podcast apps
This is the single thing preventing me from buying an Apple Watch. I use Overcast to listen to podcasts on iOS and usually listen while running. As soon as Apple make these APIs available and Marco is able to create a watch app I'll be straight down the Apple Store to give Apple my £429.
joshfarrant··on What Should Happen to People’s Online Identity When They Die?
That's an interesting idea, care to elaborate on the documentation a bit more?
joshfarrant··on Amazon to Acquire Whole Foods for $13.7B
$13.7B is quite a satisfying amount.

That's $1 for every year since the Big Bang.

joshfarrant··on What Emotion Goes Viral the Fastest? (2014)
I'd highly recommend Jon Ronson's book "So You've Been Publicly Shamed" for more on this sort of thing. He discusses online lynch mobs and speaks to some of those at the receiving end of the internet's outrage.
Page 1 of 2Next →