HackerNews Digest Daily

Subscribe
Archives
August 27, 2023

Hacker News Top Stories with Summaries (August 27, 2023)

    <style>
        p {
            font-size: 16px;
            line-height: 1.6;
            margin: 0;
            padding: 10px;
        }
        h1 {
            font-size: 24px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        h2 {
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 5px;
        }
        ul {
            padding-left: 20px;
        }
        li {
            margin-bottom: 10px;
        }
        .summary {
            margin-left: 20px;
            margin-bottom: 20px;
        }
    </style>
        <h1> Hacker News Top Stories</h1>
        <p>Here are the top stories from Hacker News with summaries for August 27, 2023 :</p>

    <div style="margin-bottom: 20px;">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="padding-right: 10px;">
                <div style="width: 200px; height: 100px; border-radius: 10px; overflow: hidden; background-image: url('https://adamj.eu/tech/assets/2021-05-11-governor.jpg'); background-size: cover; background-position: center;">

Python Type Hints – args and kwargs (2021)

https://adamj.eu/tech/2021/05/11/python-type-hints-args-and-kwargs/

Summary: In this article, Adam Johnson explains how to correctly use Python type hints with args and kwargs. The key takeaway is that type hints only require defining the types of contained arguments, as the type checker automatically adds the tuple[, ...] and dict[str, ] container types. The correct way to type a function with variable arguments is: def variable(*args: int, kwargs: int) -> None.

    <div style="margin-bottom: 20px;">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="padding-right: 10px;">
                <div style="width: 200px; height: 100px; border-radius: 10px; overflow: hidden; background-image: url('https://hackernewstoemail.s3.us-east-2.amazonaws.com/hnd2'); background-size: cover; background-position: center;">

Block YouTube ads on AppleTV by decrypting and stripping ads from Profobuf

https://ericdraken.com/pfsense-decrypt-ad-traffic/

Summary: A blogger discovered a method to block YouTube ads on Apple TV by using a man-in-the-middle proxy to decrypt HTTPS traffic and manipulate Google's Protocol Buffer data. Although decoding Protobuf on the fly is CPU-intensive, the blogger found a flaw in the Protobuf format that allows for the removal of ads by changing just one byte. The blogger provides a reference guide for setting up a network router to block various types of ads and protect networked devices. However, they also mention that they now pay for YouTube Premium to support content creators.

Want to read the full issue?
Powered by Buttondown, the easiest way to start and grow your newsletter.