HNHacker News
TopNewBestAskShowJobs

2h

308 karma · joined January 15, 2023

Discord srpen6#6983

GitHub 2a.pages.dev

submissionscomments
2h··on Rerun OSS beta is released
here are some pictures, if like me you have no idea what this is:

https://www.rerun.io/docs/getting-started/examples

2h··on Google employees criticize CEO for “dumpster fire” response to ChatGPT
> The cost of using LLMs is so high

Thats true, but they could just use MLLs instead. Much cheaper.

2h··on Gofumpt: A stricter gofmt
you mean a single dimension array pretending to be a multi dimensional array? no thanks.
2h··on Shfmt – format shell programs
Have to agree with the other response. Demanding perfection is not realistic in many situations. If you can get 95% of the way there with 50% of the code/effort, you should do it. Sometimes being productive is knowing when that last percentage just isn't worth it.
2h··on Type hinting sucks
you should never be adding an int to a float. You should be casting one first.
2h··on Gofumpt: A stricter gofmt
> disallowing the developer from adding any value via formatting

formatting doesn't add value. no one formatting is going to please everyone, so it follows that any formatting is going to piss someone off. So I think the point from the Go team is to remove that distraction and let people focus on whats actually important, the code itself.

2h··on Type hinting sucks
the problem is not type hinting. the problem is people trying to use a single function for any type. as can be seen in the article, that is extremely difficult and error prone. so just dont do that:

    def slow_add(a: int, b: int) -> int:
    def slow_add_float(a: float, b: float) -> float:
OK its not as elegant or pretty, but its really clear what is going on. the problems described in the article crop up because people are trying to have the interpreter intuit what the programmer is wanting, when what the programmer is wanting might be ill defined or simply invalid.
2h··on Why did Mozilla remove XUL add-ons? (2020)
that requires registration on AMO. I should not have to do that to install an extension that I WROTE
2h··on Why did Mozilla remove XUL add-ons? (2020)
Firefox Android has been awful for a while now. You cant sideload extesions on Android for at least two years now, with the only workaround being use an older Firefox:

https://github.com/mozilla-mobile/fenix/issues/20736

then they close the issue and move to bugzilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=1796184

2h··on Housing Starts to Look the Same
Can you please speak English? I can even understand this where the sarcasm begins and ends anymore.
2h··on Show HN: StackOverflow.gg – AI-generated answers to every coding question
Yeah it's kind of sad really. I was a member for 10 years. The point is sometimes, yes, your 9th repost of the same question is garbage, and should be treated as such.

But that doesn't get you the sweet sweet ad money I guess. Quick Stack Overflow, make another blog post no one gives a shit about, and continue banning 90k rep users over rollback wars.

2h··on Transparent telemetry for open-source projects
> That's why opting out is just an environment variable (GOTELEMETRY=off) or a single command (go env -w GOTELEMETRY=off)
2h··on Of regrets
you are welcome to use my code, as long is its non-commercial use. If you wish to have commercial use, I offer license for that as well for a fee.
2h··on I wish Asciidoc was more popular
the issue is still open, and for good reason. whatever excuse they may have, the current HTML output for lists is not idiomatic, and their suggestion is essentially to use CSS hacks to fix the problem. sadly the AsciiDoc version with the problem is the one being used by GitHub itself. So until the issue is properly fixed, a new version pushed, and the new version accepted and put into use by GitHub, I am not interested to switch. This could all happen in a week with the proper motivation.

I am not sure what the worry is with backward compat. The only difference with the resultant HTML, is extraneous "p" elements would be removed from "li" elements. Anyone who has been relying on that behavior, has been relying on non-idiomatic HTML and should be inconvenienced.

2h··on Of regrets
CC BY-NC-ND is nearly 4 times larger (688 words versus 2,621 words). So unless you have a better argument than "its worse", I will stick with mine.
2h··on Of regrets
> quietly powering things in companies large and small all over the world

Thats cool that you feel that way, but I absolutely do not. I dont like the idea of huge companies making millions, while the authors of the software "powering" their business get nothing.

2h··on I wish Asciidoc was more popular
AsciiDoc is so close to being good. It slam dunks Markdown, but they just have a few nagging issues that they refuse to fix, for 9 years now:

https://github.com/asciidoctor/asciidoctor/issues/1087

2h··on A patch to enable Windows Subsystem for Android to run on Windows 10
> can’t be mounted as readwrite

yeah it can. you just mount it as tmpfs.

2h··on A patch to enable Windows Subsystem for Android to run on Windows 10
you missed the step, where you can just install a certificate to

    /system/etc/security/cacerts
which unlocks most current Android apps. so maybe learn your own tactics, before commenting further.
2h··on A patch to enable Windows Subsystem for Android to run on Windows 10
No, Android doesn't. Some apps do. And in many cases, the pinning code can be removed in real time with Frida. Please don't spread misinformation.
2h··on A patch to enable Windows Subsystem for Android to run on Windows 10
I wonder if you can use a proxy with this, I would like to run this through MITM Proxy to see the requests made by different Android apps. Current I am using Android Studio or GenyMotion
2h··on A patch to enable Windows Subsystem for Android to run on Windows 10
> I thought WSA for Windows 10 in the first place

this isn't valid English. can you clarify what you were trying to say?

2h··on Reverse-Engineering YouTube: Revisited
I doubt anyone WANTS to log in. 90% of videos are open. Yes, logging in is a burden, but coding wise its literally one extra line in the HTTP request. I think thats a fair tradeoff compared to parsing arbitrary JavaScript.

each person can weigh the pros and cons and make their own decision, but I dont think its as black and white that TVHTML5_SIMPLY_EMBEDDED_PLAYER is the best option, and the article doesn't even discuss OAuth, so I dont think its presenting a balanced take on the different approaches.

2h··on Reverse-Engineering YouTube: Revisited
yeah, it will:

https://github.com/ytdl-org/youtube-dl/pull/30184

2h··on Mount Washington Records Coldest Wind Chill Ever
save you a click:

> Mount Washington set a record for coldest wind chill ever recorded at minus 108 degrees.

> The air temperatures at the region’s highest peak went as low as minus 47 degrees, according to the National Weather Service.

2h··on Reverse-Engineering YouTube: Revisited
who said anything about always? you log in as needed. most videos are open.
2h··on Reverse-Engineering YouTube: Revisited
they mention cookies. that not the correct method for authenticating to the API, OAuth is.
2h··on Reverse-Engineering YouTube: Revisited
> and conveniently avoiding throttling as well

throttling is not avoided. the YouTube web client generates a JavaScript signature that disables the throttling, same as what the code in the article does.

2h··on Reverse-Engineering YouTube: Revisited
Ive said it before on GitHub, I dont think `TVHTML5_SIMPLY_EMBEDDED_PLAYER` is the great solution everyone thinks it is. Yeah, you can get the age-restricted videos anonymously. However you can also get those videos by logging in, which the author doesn't mention:

    POST /youtubei/v1/player HTTP/1.1
    Host: www.youtube.com
    Authorization: Bearer ya29.a0AVvZVsqRwNWFI3R0MSxnugyNlxbqIOXcwXkeA6NMOcpv_...
    
    {
     "contentCheckOk": true,
     "context": {
      "client": {
       "clientName": "ANDROID",
       "clientVersion": "18.04.35"
      }
     },
     "racyCheckOk": true,
     "videoId": "Cr381pDsSsA"
    }
and `TVHTML5_SIMPLY_EMBEDDED_PLAYER` comes with strong drawbacks. Some videos under that client require a JavaScript signature for BOTH downloading and unthrottling. Each person is welcome to their own opinion, but I just dont think its worth the complexity of parsing some arbitrary JavaScript with Python when you can just log in (programmatically as above). Personally I use the ANDROID client, which avoids all JavaScript signatures. Also not mentioned in the article is that you can actually take the throttled URLs as is, and download pieces concurrently for a pretty good result. So each piece is still downloading slowly, but if you use on the order of 99 connections, you get decent speed. You would think you get IP blocked or something for this, but I downloaded quite a bit using this method as a test and the YouTube server allowed it. The combined resultant speed was only something like 2 MB/s, so big picture it doesn't seem like an abuse. My YouTube OAuth code is here for any interested:

http://2a.pages.dev/mech

2h··on Blink virtual machine now supports running GUI programs
huh damn

https://wikipedia.org/wiki/Occupy_Wall_Street#Origins

← PreviousPage 10 of 12Next →