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 260 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 212 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 Hostinger 119 Jane Street 119 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 IPFS 30 Lazarus Lazaridis 30 Pamela Fox 30 Evan Miller 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 →

301. Fit Psql Output on the Screen (jaketrent.com)

Do you love psql but can't stand how the output wraps and doesn't fit on the screen? Here's a tip for you!CLI for Querying Postgreslpsql is a great little tool that comes with the postgres database. It allows you to connect to the database cluster from a cli and run queries.But let's say you have a ...

302. Set Default Working Directory of Pytest in PyCharm (jaketrent.com)

IDEs are cool and all, but in their magic, they can change configurations that you wanted to stay the same.pytest NormsMany pythonistas write pytests that assume the project root to be the working directory.PyCharm is making the test script that is run the working directory. And when you run a new t...

303. Adjust Screen Brightness in Arch (jaketrent.com)

In Arch, it's the little things. Hang on to them. Cherish your ability to do anything. You've earned it.Here's how to adjust your screen brightness.DocsWho doesn't need help setting up Arch? Arch saves you with some great wiki docs. There's one on many methods for adjusting screen brightness.I had n...

304. Debug FastAPI with pdb (jaketrent.com)

This is a method for debuggging FastAPI with pdb debugger.pdbpdb is a debugger built right into the python standard library. You don't need to install a library. You don't need a fancy IDE.FastAPIThis debugging method should have broad application, but here we will use it in a FastAPI app.FastAPI is...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

330. 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 ...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open