Filter by source
All sources GoCardless 6194 PubNub: 2474 Vercel 1664 Ariya Hidayat 849 Serverless 849 Jake Trent 816 Drew DeVault 784 Nic Raboy 734 SitePoint 629 Neon 504 Supabase 435 Shopify 432 Soundcloud 409 Databricks 396 Real Python 394 Johannes Brodwall 378 Jeremy Kun 327 Laravel 296 PostHog 294 Twilio 259 Graham King 257 MapTiler 257 Carlos Becker 252 Scott Johnson 250 Cloudflare 244 Lea Verou 244 Matt Aimonetti 231 Atomic Object 218 Andrew Bancroft 214 Nvidia 210 Stanko Tadić 189 Lerner Consulting 188 Stack Overflow 183 Freek Van der Herten 182 The Daily WTF 168 Raymond Chen 165 Trivago 159 GitHub Old 155 Discord 140 Dan Luu 137 WyeWorks 134 Swizec Teller 133 Una Kravets 132 Auth0 129 Codrops 126 OCTO Technology 123 Reginald Braithwaite 121 Android 119 Jane Street 119 Hostinger 118 Radek Pazdera 118 Warp 114 AWS 110 Antirez 110 Thoughtbot 105 Cerner 103 AdRoll 102 Changelog 101 Jake Wharton 101 Nelson Elhage 98 Martin Fowler 96 dbt Labs 95 Ilija Eftimov 94 Marek Majkowski 94 Docker 87 .NET 86 Finn.no 86 Nick Desaulniers 86 Hayden James 84 Marcelo Rinesi 84 Nordic APIs 82 Timescale 82 Toptal 82 Luciano Mammino 80 Sentry 79 Wingify 78 Jessie Frazelle 77 Monica Dinculescu 77 Matt Warren 76 Drivy 75 Jan Lelis 75 T.J. Maher 74 Paweł Chudzik 73 Kotlin 69 Ebay 68 Mykhailo Kozik 68 Axel Rauschmayer 64 Mozilla Release 64 Evil Martians 63 Confluent 62 Tania Rascia 60 0xADADA 59 Jake Yesbeck 59 Khan Academy 59 Tailscale 59 Dean Hume 57 RoseHosting 56 SurveyMonkey 53 jOOQ 53 Sam Saffron 51 Facebook AI Research 48 Monstermuffin 48 Huon Wilson 45 Philip Walton 45 Dennis Felsing 44 HackerEarth 44 Rust 44 The Pragmatic Engineer 44 Fly.io 43 Josh Sherman 42 Stripe 42 Gleb Bahmutov 41 Robin Ward 41 Philipp Oppermann 40 Armin Ronacher 36 Daniel Doubrovkine (dB.) 36 Alex Russell 35 Grab 35 Addy Osmani 34 Airbnb 34 Pinterest 34 Tumblr 33 8th Light 32 Joe Nelson 32 Brandwatch 31 Palantir 31 Bartlomiej Filipek 30 Domenico Luciani 30 Lazarus Lazaridis 30 Pamela Fox 30 Evan Miller 29 IPFS 29 Vanilla Java 29 Evan Hahn 28 Jonathan Snook 28 PagerDuty 28 Ruslan Spivak 28 Dereuromark 27 Okta 27 Petr Mitrichev 27 Red 27 GitHub 26 Julia Evans 26 Mozilla Hacks 26 Bad Concurrency 25 CSC - IT Center For Science - Cloud Team 25 GameChanger 25 Guido van Rossum 25 Jay Fields 25 Jeff Preshing 25 Life Plus Linux 25 Mark Seaborn 25 Oona Räisänen 25 Srinivas Tamada 25 Stephen Colebourne 25 Steve Yegge 25 Criteo 24 Eli Bendersky 24 Kogan.com 24 Squarespace 24 Dropbox 23 Crystal 22 Elegant Code 22 Babbel 21 Blundell's Android Tutorials 21 Gusto 21 HomeAway 21 Netflix 21 Dave Cheney 20 David Walsh 20 Erlang Solutions 20 Guardian 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 Wilfred Hughes 20 Yahoo 20 Instacart 19 Jeff Atwood 19 Spotify 19 Thumbtack 19 Aaron Patterson 18 Arkency 18 Nikola Brežnjak 18 The Coded Self 18 Chris Wellons 17 Jerry Gamblin 17 Matthew Green 17 Wealthfront 17 Filippo Valsorda 16 Medium 16 Postmark 16 RocksDB 16 Stack Abuse 16 Yegor Bugayenko 16 Zach Holman 16 Amit Merchant 15 Bigcommerce 15 Blender 15 Edward Faulkner 15 High Scalability 15 Housing.com 15 Hypriot 15 Jacopo Tarantino 15 John Wittenauer 15 Lambda the Ultimate 15 Localytics 15 Microsoft Python 15 Robin Wilson 15 Slack 15 Advanced Web Machinery 14 Grofers 14 Helpshift 14 HubSpot 14 OLX 14 REA Group 14 Rob Allen 14 Vlad Mihalcea 14 Bootstrap.com 13 Feedzai 13 Grafana 13 Indeed 13 Lyft 13 Michael Crump 13 Nextdoor 13 Scott Hanselman 13 Strava 13 Bazaarvoice 12 Canva 12 Henrik Warne 12 Jon Skeet 12 Mary Rose Cook 12 Nicolas Liochon 12 Novoda 12 Steve Bellovin 12 Abu Ashraf Masnun 11 Badoo 11 Deliveroo 11 Eric Lippert 11 Haptik 11 Hashrocket 11 JobTeaser 11 Kevin Burke 11 Marco Pivetta 11 New York Times 11 OpenDNS 11 Paypal 11 Ramon Fried 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 Brendan Eich 10 Brendan Gregg 10 Brujo Benavides 10 Clever 10 Curalate 10 Daily JS 10 Daily Tech Video 10 Daniel Schmidt 10 Dot Dev (.dev) 10 Dragan Djuric 10 Eddie Smith 10 Eric Elliot 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 Nick Craver 10 Ofer Zelig 10 Panorama Education 10 Pat Shaughnessy 10 Piotr Pasich 10 Pony Foo 10 Postman 10 ReactJS News 10 Regular Geek 10 Remind 10 RetailMeNot 10 Riot Games 10 Schakko 10 Skyscanner 10 Stitch Fix 10 Teamwork 10 Tikhon Jelvis 10 Tinder 10 Transferwise 10 TrueCar 10 Undocumented Matlab 10 Universe 10 UpGrad 10 VTS 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 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 Sketch Sky Betting & Gaming Soshace Speedledger Sqreen Square Stackshare Swift Swiggy Takipi Temporal Turso Vena Solutions VersionEye Wayfair William Kennedy Zed Zendesk(old) theScore
816 articles Visit blog →

151. Export Authy Desktop Data (jaketrent.com)

Here's how to get your Authy seeds exported so you can use a new time-based one-time password (TOTP) generator.Props to gboudreau, who has done the heavy lifting, figuring out how this is possible, in his gist. For my own sake, what follows is the subset, slightly-modified instructions that worked f...

152. Test Postgres Connection (jaketrent.com)

Sometimes you need to quickly test your client libraries to make sure that you can connect to Postgres with your tech stack, network and credentials combination.Here are a couple of examples of the simplest connection tests. No previous database migrations are required. The query uses the default po...

153. Avoid Unix Socket Connections with Postgres PGHOST (jaketrent.com)

I had a long, meandering journey to get Postgres to properly connect. I was using an Elixir client, Postgrex, but this advice will probably apply generally. Here's how to avoid a particular problem in getting your postgres clients to connect with tcp/ip on localhost.Defining TCP/IPBy default, if you...

154. Narrow Input Over Time (jaketrent.com)

Narrowing input over time will lead to more efficient decision-making and shipped software.In the BeginningIn the beginning of a project or development of a feature, you want as much input as you can get. You have brainstorming sessions. No ideas are off the table. And everyone who might have an int...

155. Conditionally Change Object in JavaScript (jaketrent.com)

Here's how to conditionally update an object in JavaScript.Best wayThis is the best method for conditionally updating an object for two reasons:It's copy-on-write, avoiding mutation of the object.It uses the most expressive syntax available to accomplish that.function update(obj) { return { ...obj, ...

156. Use Vim Keybindings in Alacritty (jaketrent.com)

Here's how to use search/copy/paste vim key bindings in the terminal.Enter Vim ModeIn Alacritty, to enter vim mode, type:Ctrl-Shift-SpaceVim SearchThen you're free to search, like you usually would in vim. Search with:/ mytermThen myterm will be searched in reverse direction, last buffer references ...

157. Abort Fetch API Request (jaketrent.com)

Here's how to abort a fetch based on a timeout.Sometimes you want to stop a fetch request mid request. Perhaps, for instances, there's not a timeout on the backend server. You could be fetching... forever.There's not a timeout option to pass to fetch. Instead, you get to light up the "fetch signal":...

158. Diff Files in Neovim (jaketrent.com)

Here's a method for diffing two files side by side in neovim.Git has its own diff, and there are many 3rd-party utilities. But sometimes you want to diff two files that are not under version control. You can use the diff command, but the output is difficult to read.Neovim has its own diff mode (see ...

159. Run a Single Elixir Test (jaketrent.com)

Here are a couple ways to run only one elixir test at a time.Start New Mix ProjectThe simplest way to get an Elixir project set up for testing is with mix, which comes with Elixir distributions.mix new my_projectRun All TestsTo run all tests, by default, you run:mix testThis will execute all *_test....

160. Run Elixir Tests in Watch Mode (jaketrent.com)

Here's a way to run Elixir tests in watch mode. "Watch mode" is where your tests will re-run automatically when src changes.Start New Mix ProjectThe simplest way to get an Elixir project set up for testing is with mix, which comes with Elixir distributions.mix new my_project3rd-Party Library Support...

161. Cleanup Local Git Branches (jaketrent.com)

Here's how to quickly delete many local git branches.Over time, as we work, there are many git branches that pile up on our local machine. To see them:git branchDelete One Branch at a TimeTo delete one branch at a time, we name the branch and pass a -D option:git branch -D my-branchDelete Many Branc...

162. React is a Framework (jaketrent.com)

By this definition, React is a framework.The DefinitionI recently read a definition I like for "framework" vs "library". He acknowledges first that "framework" and "library" are squishy terms. From the htmx blog:Library - 3P code whose API does not significantly influence the rest of the application...

163. Format USB Drive as FAT32 (jaketrent.com)

How to format a USB Drive for FAT32.See USB drivesPlug your USB drive in, and you'll see a new device show up. Run lsblk and see something like:NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ... sda 8:0 1 961M 0 diskThere it is. /dev/sda is our USB drive.Format FAT32Fat32 is a pretty good filesystem for a...

164. Empty the Trash from Terminal (jaketrent.com)

Here's a way to empty the trash from the terminal.Trashed files simply sit in a hidden folder in your home directory. Delete it for good, and trash is emptied:rm -rf ~/.local/share/TrashCheck your before/after disk usage with df.

165. Change Hostname in Linux (jaketrent.com)

Here's how to permanently change the hostname in Linux.It's simple enough:hostnamectl set-hostname mynewhostnameThen see what it's set to:hostname

166. Catch Error Thrown from setTimeout (jaketrent.com)

Here's how to catch errors thrown from inside a setTimeout callback.Uncaught ErrorErrors thrown within setTimeout are especially squirrely. This is because the callback function is asynchronously. Explained by Node docs:This will not work because the callback function passed to fs.readFile() is call...

167. TypeScript Type-safe Filter Boolean (jaketrent.com)

Here's how to make a type-safe alternative to .filter(Boolean) in TypeScript.Boolean FilterIn JavaScript, there's a nice little short-hand for filtering non-nulls. If I have a sparse array:const arr = ['a', undefined, 'b', null, 'c']I can get rid of the nulls like this:arr.filter(Boolean).forEach(ch...

168. De-dup Files from the Terminal (jaketrent.com)

Here's a way to remove duplicate files using a cli tool.Install fdupesThere are many tooling options. I have used fdupes to good effect.Get it:sudo apt install fdupesInteractive phasesIf you want to delete the duplicate files in the current directory, run this command:fdupes . -dThis will detect dup...

169. Render Markdown in the Terminal (jaketrent.com)

Here's a tool to render markdown in the terminal.InstallThe tool is called glow. Get it!To install in Ubuntu derivatives:sudo mkdir -p /etc/apt/keyrings curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] ...

170. Cut and Stitch Clips with ffmpeg (jaketrent.com)

For quick and dirty editing of audio and video in the terminal, ffmpeg can do the job.DaVinci isn't around, or you don't want to leave the lovely ascii of the terminal. Go find ffmpeg.Cutting Clips with ffmpegffmpeg can copy or transcode video. If you give it a start and/or stop timestamp, it can do...

171. Unwrap a Promise in TypeScript (jaketrent.com)

To reference or use a type that's defined in a Promise, the Promise must first be unwrapped.The utility type that we need is Awaited. It takes a generic T.Here it is in action. This all type-checks:type A = string type B = Promise type C = Awaited // typeof b is Promise const b: B = Promise.resolve(...

172. Copilot Experience So Far (jaketrent.com)

What my experience with Github Copilot has been so far.After a monthI have been using copilot.vim for a month. I was skeptical to start. I wanted to see if it would be a worthwhile productivity tool for me. Or would it help me write bugs faster?After a month, I think it's a net positive. It's a valu...

173. Serialize Undefined Static Props in NextJS (jaketrent.com)

Here's a way to deal with serializing undefined in NextJS getStaticProps function.NextJS RequirementThe docs say that the props returned from getStaticProps must be serializable:It should be a serializable object so that any props passed, could be serialized with JSON.stringify.Ok, what does "serial...

174. Gamify Games (jaketrent.com)

Gamification of conumser or even business software is overplayed.This sounds only slightly better than "making our product sticky". Egh. That one's the worst. But gamification of things that aren't games isn't much better and means about the same thing.Get people to come back over and over again. Bu...

175. Reduce System76 Fan Noise (jaketrent.com)

Here are some tips to cut down on Systemu76 laptop fan noise.I have yet to find a perfect solution. The System76 Oryx Pro spins up too much and too loudly for my taste. I've done a few things to try and help.Remove High CPU ProcessIf you're fan spins up, it's because something's hot. CPU is a likely...

176. Be on Time, Be Professional (jaketrent.com)

Being on time is important to being professional, the meaning of which includes being respectful of others.In most professional work, there's occasion to call collaborators together. We set up a calendar invite with a start and stop time. That collaboration should start at the latest by the start ti...

177. Install Erlang on Ubuntu 22.04 (jaketrent.com)

Here's how to install Erlang on Ubuntu 22.04. Maybe works for versions before/after; I have not tested.Erlang Version ManagerFirst, pick a source for erlang. I recommend you use asdf, the best version manager around.Install asdf Pluginsasdf plugin add erlang asdf plugin add elixirPotentially Optiona...

178. Mark i3 Windows and Navigate Marks (jaketrent.com)

Here's how to mark or label a window and focus on that window by mark name.What is usual and obvious in much i3 documentation and blogging is how to navigate directionally (focus the window to the top, left, etc). Most i3/configs include examples for these bindings. But there is a fabled way of navi...

179. Center Grid Cells on Page (jaketrent.com)

How does one keep the grid cells centered on the page?If your grid content matches your grid cell width, no problem. But there are other scenarios; Here's one: The grid is full container width, but the content floats in the middle, not stretching to the width of the cell.2 ColumnsIf we have two colu...

180. Type Diacritics in Linux (jaketrent.com)

Here's how to map AltGr to type special characters in Linux.I wanna be cute and write "niños" in my posts, but how do I get that fancy tilde to show up over the 2nd "n" (ñ, called "enye")? Or, I want to write résumé, but I just keep starting again.These little tidbits put over the letters are diacri...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open