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 →

301. Read Logs for a Kubernetes Pod (jaketrent.com)

Here's how to read the logs for a kubernetes (k8s) pod.Orient your readFirst, we want to orient to where we're reading from. We'll need to know context and application name. A k8s "context" is a set of access parameters, including k8s cluster, user and namespace. The "application name" is a common l...

302. Mark All Tests as Async in pytest (jaketrent.com)

To run an async test in pytest, it must be marked. It can be a pain to mark them all individually. Here's how to mark them all async at once.Asynchronous testsYou'd need an asynchronous test for asynchronous code under test. For instance, Quart is an app server where all the endpoints are asynchrono...

303. Pass Params to Pytest Fixture (jaketrent.com)

This is what it takes to pass params to pytest fixtures.Just Use FunctionsInstead of using pytest fixtures, the easier method would be to just create a function that sets up and tears down what you need. Like this:def test_something(): my_fixture = setup_something('special sauce') # assertion... tea...

304. Add a Cookie to a Curl (jaketrent.com)

How to add a cookie to a curl request.First, find your cookie. Perhaps you're making a test request to an API that your web app uses. You could fire up the web app, authenticate, open devtools and see the cookie in the request headers. Copy it. Keep it secret. Keep it safe.Then back to the terminal ...

305. Get Secet from AWS Secrets Manager via CLI (jaketrent.com)

Here's how to use the aws cli to get a value for a secret out of secrets manager.Using the aws cli can be so much more convenient than clicking through AWS web UIs to find what you want. An example of this is in the retrieval of secret values.List All SecretsIf you need to see what secrets are in se...

306. Assert Exception Message in pytest (jaketrent.com)

pytest(https://pytest.orig) makes it easy to assert that an exception is raised and that it's the one you expect.PrerequisitesOnce we setup pytest, we get a nice assertion utility to verify that exceptions are raised.For instance, in module my_module.py with code:def my_fn(): raise Exception('Kaboom...

307. Simplest Clojure Test (jaketrent.com)

Here's how to set up clojure testing environment.Let's start a new project directory and create a src directory:mkdir srcLet's create the source file with src/calc.clj. There's a simple namespace declaration and function that adds 2 numbers.(ns calc) (def add [a b] (+ a b))Now let's test that add fu...

308. Watch Source and Re-run Pytest on Change (jaketrent.com)

This is how you can watch for changes to your source file and re-run the test on change with pytest.Pytest needs a plugin to be able to watch for file changes. Install the simplest pytest setup, including installing this plugin, pytest-watch.Then you can use the ptw command in place of pytest.Use th...

309. Run Single pytest Test (jaketrent.com)

How to run just one test with pytest.After you make your first test, you'll make hundreds more. But to run them all takes a lot of time. So if you're working in one corner of the code, just run the tests that you care about.Run a single fileTo run a single test file, such as pie_test.py, run:pytest ...

310. Install Clojure (jaketrent.com)

Here's a quick, straightforward way to install Clojure on Linux or MacOS.Install JavaFirst, you need the JDK. You can get that in a lot of ways. It's nice to have a utility to help you manager versions of the Java JDK. asdf is such a version manager -- and currently, the best.Now with asdf, you can ...

311. Fewer Mocks Better Tests (jaketrent.com)

Fewer mocks are usually a better indication of a higher-value test.What is a mock?In testing, a mock is code that is faked out so that the test can control it precisely. The tester will write into the test what a certain piece of code should do. Its behavior is predetermined as a placeholder. When t...

312. Twilio Function Error Response (jaketrent.com)

Here's a recommendation on how to format the error response frorm a Twilio Function.tl;drAlways format the error response yourself as the second argument to callback.The docsThe Twilio docs give a grand total of this advice on the subject of error responses:If you have encountered an exception in yo...

313. My Design System Dreams (jaketrent.com)

These are some of my dreams for a great design system.The best design system would be the one that was already made, cost nothing additional, and fit my needs perfectly. But in the case of a company making a custom design system that meets their specific needs, here are some value targets that I thi...

314. Test a Distributed Lock in Dynamodb (jaketrent.com)

Here's a method to test a distributed lock via a dynamodb table in pytest.Why a distributed lockIf you can avoid locking, do it. It's probably hard to get right. The lock in this example is rudimentary.If you have a shared resource where control of it is important to its processing, you might want a...

315. Connect iPhone to Arch Linux (jaketrent.com)

Here's a method to download photos from your iPhone on Arch Linux. An unholy combination? Yeah, probably.tl;drsudo pacman -S libimobiledevice # needed protocols to connect yay -S ifuse # needed to mount systemctl start usbmuxd.service # ensure service running idevicepair pair # pair phone mkdir /mnt...

316. Set Screen Resolution in i3 with Xrandr (jaketrent.com)

Live in i3, live in the terminal. No GUI for changing display properties. So, here's a CLI command to set a new screen resolution.tl;drIn xrandr lingo, a "mode" is approximately a "resolution" and an "output" is a "monitor".xrandr # list available outputs and modes cvt 3840 2160 60 # calculate mode ...

317. Webpack Skips CSS Import (jaketrent.com)

Avoid the problem of Webpack not importing CSS stylesheets.Missing stylesWebpack bundles your app, but sometimes it leaves something out. Is there a warranty on this thing? Can I get my npm bucks back? What is going on here?Simple enough: A .js file imports a .css file:import './mystyles.css'But the...

318. Restore & Download a Directory from S3 Glacier (jaketrent.com)

Here's a set of setups to get your files restored and downloaded from AWS S3 Glacier.First, which Glacier?Amazon has a couple glaciers. One's called AWS Glacier. You store things there in Vaults. It's legacy, and you shouldn't use it. The other Glacier is in S3. This one's newer and has a unified AP...

319. Set up to Boot from MBR (jaketrent.com)

These are essential milestones in configuring a new system to boot from legacy MBR. These are often done as a part of a new OS install.Boot ModesThere are different boot modes. These days, the modern option is GPT. But on old hardware, you might want or be stuck with MBR, Master Boot Record.Partitio...

320. Scroll Restoration in JavaScript (jaketrent.com)

Maintain our own scroll position with JavaScript.Browser handledIt turns out, we might not need to do anything manually. This is because the browser does this for us most of the time.If the browser is handling this automatically but we'd like to do something special instead, we can turn it off:windo...

321. Simplest Pytest Setup (jaketrent.com)

This is the most basic project layout for running pytest, a desirable test runner for your python code.PrerequisitesFirst, get python3 installed. Then a virtual environment, like pipenv.Get dependenciesThen use pipenv to get your pytest dependencies.cd my_project pipenv shell pipenv install pytest p...

322. Make a Repeating Style with nth-child (jaketrent.com)

Repeating styles are made terse and simple using :nth-child.ScenarioLet's say I have a list of .box components and want to repeat the primary colors -- red, yellow and blue -- over and over for the length of the box list.First, create as many boxes as you'd like: 1 2 3 4 And style them as you'd like...

323. Add a Migration for a Non-null ForeignKey Field in Django (jaketrent.com)

Here's a method for getting that new foreign key column to be non-nullable and without a default.Django migrations are awesomeDjango has a solid ORM and some nice database migrations to go with it. First, make a change to your model in python code, then run:python manage.py makemigrationsThe the mig...

324. We Want to Develop Software Like the Tech Giants (jaketrent.com)

We are different than the Tech Giants. We can and should develop software differently from them. Generally, we have simpler needs.A Part of the Tech Giant DiscussionLately, there is a wider discussion in the public sphere about some of the ills that come from the emergences of very large tech giants...

325. Make Code Blocks Keyboard Accessible (jaketrent.com)

This is how we can allow keyboard users to horizontally scroll code blocks.The Need to ScrollWhy would a code block need to be accessible by keyboard? It's just text after all. Yes, most of the time there's no additional keyboard accessibility required by text. Most visual designs preclude this. But...

326. Override the Code Block Element in Marksy (jaketrent.com)

Here's how you can change the default rendering of code blocks using marksy.An MDX AlternativeMDX is a popular superset of Markdown that allows rendering custom components from within the usual markdown formatting. Marksy is a competing library. It does the same thing, and at least in my experience ...

327. When a font-face is Downloaded (jaketrent.com)

When is a @font-face-declared font file downloaded? When it's needed.Font-face Declarations@font-face declarations are one way of listing which fonts are available to a web page. Importantly, they point to a font file (.otf, .woff2, etc). This is commonly done by a url.@font-face { src: url(https://...

328. When Will Microsoft Drop IE11? (jaketrent.com)

When will Microsoft Drop IE? In 2025. Enjoy the countdown.They have done many things to diminish support for it previous to that, including dropping it from their major web properties, such as Microsoft Teams and M365. But it won't fully go away until long after now.The reason this is the case is co...

329. More Managers, More Priorities (jaketrent.com)

If we're not careful, the number of priorities will grow directly with the number of managers. Since a singular priority is the most useful kind of priority, this is a bad thing.Growing managers, growing prioritiesIt might not be universal, I can't say. But it sure is observable and repeatable. If y...

330. Writing with the Curse of Knowledge (jaketrent.com)

The curse of knowledge may create obstacles to us writing something useful for our reader. We may assume that others know exactly what we know and that they still need to learn certain things. This might be mismatched with their real needs.Knowing where to startIn technical writing, we try to guide ...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open