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 Lerner Consulting 68 Mykhailo Kozik 68 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 →

151. 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, ...

152. 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 ...

153. 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":...

154. 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 ...

155. 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....

156. 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...

157. 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...

158. 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...

159. 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...

160. 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.

161. 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

162. 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...

163. 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...

164. 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...

165. 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] ...

166. 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...

167. 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(...

168. 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...

169. 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...

170. 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...

171. 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...

172. 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...

173. 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...

174. 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...

175. 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...

176. 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...

177. Rendering on Client Only in NextJS (jaketrent.com)

Here is a way to render a React component in the browser only when using NextJS.To render on the client only, wrap your component in a dynamic import.With this component in my-component.ts:'use client' import React from 'react' export interface MyComponentProps {} export function MyComponent(props: ...

178. Add a Script to dmenu (jaketrent.com)

Here's how to add an app, script or any command to dmenu.Often you'll need to add your own command to dmenu because it's not put there automatically for you, as when you install from a package manager. Maybe, for instance, you need a little script that wraps the starting of an app with flags, as is ...

179. Run AppImage on Pop!_OS (jaketrent.com)

Here's a method to run an AppImage on Pop!_OS that worked for me.An AppImage is a file that contains a Linux that will supposedly "run anywhere". It probably does, who knows. But for me, I had trouble with running one that I tried recently.Looking for help, I found some that suggested using fuse to ...

180. Computer-specific i3 Config (jaketrent.com)

Here's a way to config i3 specific to a computer within a single i3 config file.This is a version of this article's solution with a few more basics for a n00b like me.Set a HostnameFirst, we must identify our particular computer. We'll do this by setting a hostname. I'll call my host rexkwando:hostn...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open