Filter by source
All sources GoCardless 6188 PubNub: 2462 Vercel 1539 Ariya Hidayat 849 Serverless 848 Jake Trent 812 Drew DeVault 783 Nic Raboy 733 Neon 479 Supabase 424 Soundcloud 409 SitePoint 406 Johannes Brodwall 378 Databricks 366 Jeremy Kun 323 PostHog 286 Real Python 286 Graham King 257 Carlos Becker 251 MapTiler 250 Scott Johnson 250 Lea Verou 242 Laravel 232 Matt Aimonetti 231 Andrew Bancroft 214 Stanko Tadić 186 Twilio 181 Atomic Object 176 Cloudflare 170 Nvidia 168 Trivago 158 Freek Van der Herten 155 Stack Overflow 145 The Daily WTF 136 Discord 134 WyeWorks 134 Dan Luu 133 Raymond Chen 133 Una Kravets 132 Swizec Teller 129 GitHub Old 128 Reginald Braithwaite 121 Radek Pazdera 118 Warp 114 Antirez 110 Codrops 110 Jane Street 105 Android 104 Cerner 103 AdRoll 102 Auth0 102 Jake Wharton 101 Changelog 100 Nelson Elhage 98 OCTO Technology 96 Ilija Eftimov 94 Marek Majkowski 94 Thoughtbot 89 AWS 88 dbt Labs 88 Finn.no 86 Nick Desaulniers 86 Hostinger 84 Hayden James 81 Luciano Mammino 79 Martin Fowler 78 Wingify 78 Marcelo Rinesi 77 Monica Dinculescu 77 Matt Warren 76 Docker 75 Drivy 75 Jan Lelis 75 Jessie Frazelle 75 Paweł Chudzik 73 Toptal 73 .NET 69 Nordic APIs 69 Mykhailo Kozik 68 Lerner Consulting 67 T.J. Maher 67 Timescale 66 Axel Rauschmayer 64 Mozilla Release 64 Ebay 62 Kotlin 62 Tania Rascia 60 0xADADA 59 Khan Academy 59 Jake Yesbeck 58 Confluent 57 Evil Martians 54 jOOQ 53 Tailscale 51 Sam Saffron 50 Sentry 49 Monstermuffin 48 RoseHosting 48 Huon Wilson 45 HackerEarth 44 Philip Walton 44 Dennis Felsing 43 SurveyMonkey 43 Fly.io 42 Robin Ward 41 Philipp Oppermann 40 Gleb Bahmutov 39 Facebook AI Research 38 The Pragmatic Engineer 38 Dean Hume 37 Rust 36 Josh Sherman 35 Alex Russell 34 Stripe 33 Joe Nelson 32 Tumblr 32 8th Light 31 Addy Osmani 31 Grab 31 Armin Ronacher 30 Domenico Luciani 30 Lazarus Lazaridis 30 Palantir 30 Pamela Fox 30 Airbnb 29 Brandwatch 29 Evan Miller 29 IPFS 29 Ruslan Spivak 28 Vanilla Java 28 Bartlomiej Filipek 27 Daniel Doubrovkine (dB.) 27 Jonathan Snook 27 Petr Mitrichev 27 Pinterest 27 Red 27 Mozilla Hacks 26 Bad Concurrency 25 CSC - IT Center For Science - Cloud Team 25 Dereuromark 25 Evan Hahn 25 GameChanger 25 Guido van Rossum 25 Jay Fields 25 Jeff Preshing 25 Julia Evans 25 Life Plus Linux 25 Mark Seaborn 25 Okta 25 Oona Räisänen 25 Srinivas Tamada 25 Stephen Colebourne 25 Steve Yegge 25 PagerDuty 24 Squarespace 24 Kogan.com 23 Criteo 22 GitHub 22 Babbel 21 Elegant Code 21 Crystal 20 Dave Cheney 20 David Walsh 20 Eli Bendersky 20 Guardian 20 HomeAway 20 Justin Weiss 20 Michael Herman 20 Miguel Quinones 20 Mike Ash 20 Ole Begemann 20 Paul Irish 20 Robert C. Martin 20 Stefan Parker 20 Target 20 Yahoo 20 Dropbox 19 Gusto 19 Netflix 19 Instacart 18 Nikola Brežnjak 18 The Coded Self 18 Aaron Patterson 17 Jeff Atwood 17 Thumbtack 17 Erlang Solutions 16 Stack Abuse 16 Wealthfront 16 Arkency 15 Bigcommerce 15 Edward Faulkner 15 Filippo Valsorda 15 High Scalability 15 Hypriot 15 Jacopo Tarantino 15 Jerry Gamblin 15 John Wittenauer 15 Lambda the Ultimate 15 Localytics 15 Matthew Green 15 Medium 15 Microsoft Python 15 Postmark 15 RocksDB 15 Slack 15 Spotify 15 Yegor Bugayenko 15 Advanced Web Machinery 14 Helpshift 14 Housing.com 14 HubSpot 14 OLX 14 REA Group 14 Robin Wilson 14 Zach Holman 14 Amit Merchant 13 Blender 13 Chris Wellons 13 Grofers 13 Indeed 13 Nextdoor 13 Rob Allen 13 Scott Hanselman 13 Henrik Warne 12 Jon Skeet 12 Mary Rose Cook 12 Nicolas Liochon 12 Novoda 12 Steve Bellovin 12 Abu Ashraf Masnun 11 Badoo 11 Bazaarvoice 11 Blundell's Android Tutorials 11 Canva 11 Feedzai 11 Haptik 11 Hashrocket 11 JobTeaser 11 Kevin Burke 11 Lyft 11 Marco Pivetta 11 Michael Crump 11 Paypal 11 RisingStack 11 Small Improvements 11 VNGRS 11 Vinted 11 Zendesk 11 Alan Storm 10 Appnexus 10 Artsy 10 BBC 10 Benchling 10 Bill the Lizard 10 Bohops 10 Bootstrap.com 10 Brendan Eich 10 Brendan Gregg 10 Brujo Benavides 10 Clever 10 Curalate 10 Daily JS 10 Daily Tech Video 10 Daniel Schmidt 10 Deliveroo 10 Dot Dev (.dev) 10 Dragan Djuric 10 Eddie Smith 10 Eric Elliot 10 Eric Lippert 10 Erik Runyon 10 Evan Jones 10 Federico Cargnelutti 10 Findmypast 10 Flickr 10 Freeletics 10 GoSquared 10 Groupon 10 Harry's 10 Henrik Lau Eriksson 10 High Scalability 10 Hootsuite 10 Idontgetoutmuch's Weblog 10 Itamar Turner-Trauring 10 Jamis Buck 10 Jesal Gadhia 10 Joel Spolsky 10 Juan Treminio 10 Junior Grossi 10 Kirill Shevchenko 10 Larry Land 10 Matt Cutts 10 Matt Might 10 Mesosphere 10 Miro Cupak 10 Miro 10 NSHipster 10 New York Times 10 Nick Craver 10 Ofer Zelig 10 OpenDNS 10 Panorama Education 10 Pat Shaughnessy 10 Piotr Pasich 10 Pony Foo 10 Postman 10 Ramon Fried 10 ReactJS News 10 Regular Geek 10 Remind 10 RetailMeNot 10 Riot Games 10 Schakko 10 Skyscanner 10 Stitch Fix 10 Strava 10 Teamwork 10 Tikhon Jelvis 10 Tinder 10 Transferwise 10 TrueCar 10 Undocumented Matlab 10 Universe 10 UpGrad 10 VTS 10 Vlad Mihalcea 10 Wilfred Hughes 10 Wojtek Gawroński 10 XING 10 Yammer 10 Yifan Lu 10 Zolmeister 10 eFounders 10 Josh Haberman 9 Nate Berkopec 9 Wemake.services 9 Mike Fogus 8 Ian Hummel 7 Ilya Grigorik 6 K. Harrison 6 Sensible 6 James Long 5 Thomas Young 5 Edgar Aroutiounian 4 Avenue Code 3 Bandcamp 3 James Hague 3 Raymond Hettinger 3 Algolia Anders Aarvik Ariejan de Vroom Asana Atlassian Bjørn Johansen Blake Erickson Bryan Cantrill Capgemini Chen Hui Jing Chien Tran Cloudera Cloudsmith CockroachDB Code with style! CodeName One Codelitt Codeship Commercetools Credit Karma Crowdfire Deezer DoorDash Dragan Gaic Engine Yard Entelo Envato Envoy Eventbrite Federico Tomassetti Figma GIPHY Galois Go GoDaddy Grafana Guilherme Rodrigues Hashnode Heroku Honeybadger Honeycomb IMVU Ievgen Kuzminov Instagram Jobandtalent John Resig Jonathan Dekhtiar Just Eat Kinvolk Kolosek Kyle Kingsbury LINE Linear LiveRamp Liveblocks Made Tech Marc Plano-Lesay Microsoft Edge Moove-it Mozilla Automation Team NPR Apps Nicolai Parlog (CodeFX) Oursky Oxide Computer Paul Lewis Peter Norvig Peter Steinberger Peteris Krumins PicCollage PlanetScale Prezi PullReview Rachel Kroll Radim Řehůřek Ray Wenderlich React Native Render Retool Schibsted Tech Polska Sharethis Shopify Sketch Sky Betting & Gaming Soshace Speedledger Sqreen Square Stackshare Swift Swiggy Takipi Temporal Turso Vena Solutions VersionEye Wayfair William Kennedy Zed Zendesk(old) theScore
812 articles Visit blog →

31. Create VPN Exception for Local Network Devices (jaketrent.com)

Here's a way to create a VPN exception for local network devices using NordVPN.Failure to contactI was having trouble mounting my network drive. Symptoms:Pinging the network drive IP fails with no packets delivered:ping 192.168.1.200 PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data. ^C --- 19...

32. Output to a Bluetooth Speaker from the Terminal (jaketrent.com)

Here's a way to switch audio output to a bluetooth speaker using terminal tools.On Pop_OS, I have a utility called bluetoothctl that facilitates communication with bluetooth devices.This utility opens its own repl when typing bluetoothctl:❯ bluetoothctl Agent registeredFrom inside this repl, we can ...

33. Show Git Log Before Move (jaketrent.com)

Here's how to show the git log for a file, including history before rename.Git LogFirst, the basics:git log shows the history of changes in the repo.git log -- ./my-file.clj shows the history of changes to that one file.git log --pretty='%h - %s - %an' will show a custom-formatted history with the l...

34. Play an Audio CD in Terminal (jaketrent.com)

mpv is a great tool to play all sorts of media in the terminal. Let's play an audio CD and groove to our latest mix.Just worksGet mpv:sudo apt install mpvThis may just work for you (hopefully). Insert your CD, and run:mpv cdda://If this works, great. Party on!Btw, the cdda:// is kind of like a proto...

35. Specifying a Timezone on the Client (jaketrent.com)

Here's how to specify a timezone on the client, regardless of their browser location.Why?Why would I want to do this? In my case, I am writing a tool where a user enters time and date for when the business should do certain things. The business operates in Mountain Timezone, so all its times and dat...

36. Define a Graphql Enum Type in Ash (jaketrent.com)

Here's how to define an enum type in Ash that's exposed in Graphql.Adhoc enumAdhoc enums are great, because they're easy and quick to define, and the constraints are enforced. Here's what that definition looks like:defmodule MyLibrary.Shelves.BookReview do use Ash.Resource, domain: MyLibrary.Shelves...

37. Ash Query Time Expressions (jaketrent.com)

Here's how to query using time filters with Ash.Query.As the docs indicate, you can use various datetime functions in ash queries.Here's an example of querying for books that were last checked out less than 14 days ago:MyLibrary.Shelves.Book |> Ash.Query.filter(Ash.Expr.expr(last_checked_out Ash.rea...

38. Ash Embedded Union Type Attributes (jaketrent.com)

Here's how to define, write and query union types in the Ash framework.The docs explain this well. I will give an end to end example, defining, writing and reading unioned data, focused on embedded types in jsonb.Define embedded union typeJsonb is nicely flexible. But once you define an embedded typ...

39. How'd They Do That? (jaketrent.com)

Remember the awe of wondering how someone accomplished a thing?AweI watched movie special effects progress through the 1990s. Production teams used computer graphics to create effects. The technology was primitive at first. Still neat. Then there were moments that were incredible. "Did they really b...

40. Query Embedded Jsonb in Ash (jaketrent.com)

Here's how to query fields in embedded jsonb in the Ash framework.Jsonb is coolJsonb columns in Postgres are so cool. Dump your semi-structured data there as json. Query it from sql:select json->>'jsonField' from my_table;Flexible!Ash Resources with jsonbYou can specify a jsonb attribute on an Ash r...

41. Proxy Backend Requests in Next.js (jaketrent.com)

Here are some ways to proxy requests to a different service using a proxy endpoint in a Next.js app.Next Config RewritesNext.js has a configuration that allows you to modify requests to its Node server and rewrite them as a request to a different host. Modify your next.config.mjs to include:export d...

42. Wrap Instrumentation Around Results (jaketrent.com)

Here's a way to instrument async calls with performance stats.I've written previously about how I like to handle operations that may fail in result types. Often, these are async tasks, like network requests. If we're broadly using a Result type as a return value, we are very close to being able to n...

43. Ash Policies Gotchas (jaketrent.com)

Policies are unexpectedly tricky to get right.Here are some of the Ash policies issues that I've had to work my way through.Fall through if not forbiddenA forbid_if will only forbid the whole policy if the check is true. If that check is not false, but you still want those actors to be able to execu...

44. Celebrating Liability (jaketrent.com)

We may find ourselves celebrating liability.Yes, I wouldIs code a liability?Yes. We own it after it's made.Will programmers celebrate code?Yes. We are easily impressed by cool software.But would we celebrate liability?Yes, but of course, stated this way, we know we shouldn't. To avoid this, we must ...

45. Get Image Dimensions from the Terminal (jaketrent.com)

Here's how to get image dimensions from the terminal.It doesn't take a lot. You have a few tools to choose from. Here's the command plus the output of 3:exiftoolexiftool resources/public/heroes/balloons.webp ExifTool Version Number : 12.40 File Name : balloons.webp Directory : resources/public/heroe...

46. Convert Google.Protobuf.Timestamp to DateTime in Elixir (jaketrent.com)

Here's how to convert a Google.Protobuf.Timestamp to DateTime in Elixir.Convert your DateTime to seconds using DateTime.to_unix, then set that as the seconds field on the Timestamp struct.Utility and a light dinner to follow:defmodule MyApp.Common.DateTime do def google_timestamp(datetime) do if dat...

47. Return a Related Resource via Calculation in Ash (jaketrent.com)

Here's how to return a related resource using a calculation in the Ash framework.As with most of the things I've learned in Ash, this was hard won knowledge.ScenarioI have a review. It has votes. One of those votes is the "final" vote. I want the review to have a field on it for final_vote. This wil...

48. Test Ash Validation (jaketrent.com)

Here's a way to test a validation module in Ash framework.The resourceLet's say that we have an Ash.Resource defined. Here are the bits that matter. There's a resource with an attribute, genre_id, that's defined as a relationship. There is an action for :create. It has a validate macro in its body. ...

49. Git Unstage Before First Commit (jaketrent.com)

Here's how to unstage files before the first commit.You've created a new repo. It's clean and fresh, then you go for the first commit. You add your current directory, then look at your status... A deflated sigh. So soon, too soon, you have sullied your pristine repo by preparing to commit a bunch of...

50. Read Text to Speech in Terminal (jaketrent.com)

Here's a way to read text to speech in terminal.Install toolThere's a small, OSS speech synthesizer, CMU Flite, which you can get for free:sudo apt install fliteGive it textNow you can give it some speech to read:flite -t "Hi"Or something more substantial in a file:flite And you can change the voice...

51. Suddenly, There's More (jaketrent.com)

That feeling of encountering a ton of code all at once.A new projectThink back on the days when humans wrote code. Did you ever get hired onto a new team or moved onto a new project that was already under way? When you showed up, there was already a corpus of code to read, digest, understand and lea...

52. Search Over All Project Files in Telescope Live Grep (jaketrent.com)

Here's how to search all project files using Telescope's Live Grep.First, install telescope.nvim. With lazy.nvim, the parts of the configuration that we need for this particular effort could look like this:return { "nvim-telescope/telescope.nvim", dependencies = { { "nvim-lua/plenary.nvim" }, }, key...

53. Find and Replace Multiple Files in Telescope (jaketrent.com)

Here's how to find and replace a pattern over many files in nvim via telescope.Install telescopeVia lazy.nvim:{ "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim", "BurntSushi/ripgrep", }, cmd = "Telescope", lazy = true, config = function() require("telescope").setup() end, },...

54. Run Docker on Linux Without Docker Desktop (jaketrent.com)

Here's how to run Docker on Linux without Docker Desktop.This essentially follows the official docker docs guide.Docker Desktop is an easy way to run docker for your dev machine. It comes bundled with Docker Engine. That's the thing that you really need. So, if you don't want that gui hanging around...

55. Clean up React Form with useActionState (jaketrent.com)

If you can't just use an HTML form, here's how you can get closer and clean up your React form with the React.useActionState hook.Handling form state in React can get hairy. There are additional libraries on top of React to try to deal with this.In React 19, we have a new hook inside of React itself...

56. AI Goldrush (jaketrent.com)

It sounds a lot like the California gold rush to me.Recently I walked through the room while my wife and kids were reading about the California gold rush of the 19th century. I had just gotten up from my desk, where invariably something about AI was happening. (When is AI not happening these days?) ...

57. Change Favicon Based on Color Scheme (jaketrent.com)

Here's how to change an SVG favicon.svg based on the user's color scheme preference.Set the faviconFirst, create an SVG favicon, then set it in the document's head: A common path is the root. Just put it wherever you want to serve your static assets from and adjust the href accordingly.Adjust the sv...

58. Owners Do it Best (jaketrent.com)

Owners of code care and know the most and will thus do the best job.Programmers are not fungibleManagers try to load balance programmers across projects like stateless computer systems that can run anywhere just as well.But that's not the case. Programmers work best in code that they know, with the ...

59. useReducer in TypeScript (jaketrent.com)

Here's how to type React.useReducer in TypeScript.import React from 'react' /* 1. Create a union type for the actions that you have */ type Action = SearchAction | ToggleUserAction interface User { id: string } /* 2. You can differentiate actions based on type string */ interface SearchAction { type...

60. Engaging as a Human (jaketrent.com)

Life is full when we are engaged, even as some opt themselves out in their use of AI. Let's keep as many of us as possible engaged in life.We were created to act, not to be acted upon. We humans are real agents upon the earth.We have a creative spark in us that needs nourished. It's a part of what i...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open